From 2bae16eecc0eaf0eca1a08e1ed112e53ad093452 Mon Sep 17 00:00:00 2001 From: osyrisrblx Date: Sat, 30 Sep 2023 15:18:03 +0000 Subject: [PATCH] deploy: 8bdccdd46816699b2000d9af2fd5028452b10707 --- rbxts-worker.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/rbxts-worker.js b/rbxts-worker.js index 75682eb..db6ca54 100644 --- a/rbxts-worker.js +++ b/rbxts-worker.js @@ -1,8 +1,13 @@ /*! For license information please see rbxts-worker.js.LICENSE.txt */ -!function(){var e={2303:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3225),t),i(r(3686),t),i(r(9363),t),i(r(9524),t),i(r(8090),t),i(r(3537),t),i(r(4006),t),i(r(7155),t),i(r(6101),t),i(r(9404),t),i(r(9795),t),i(r(4836),t),i(r(6416),t),i(r(8850),t),i(r(8838),t)},3537:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.list=void 0;const i=n(r(9861)),a=r(1271),o=Symbol("List");var s;(s=t.list||(t.list={})).makeNode=function(e){return(0,a.assert)(i.default.isNode(e)),{value:e}},s.make=function(...e){if((0,a.assert)(e.every((e=>i.default.isNode(e)))),e.length>0){const t=i.default.list.makeNode(e[0]);let r=t;for(let t=1;t{i.default.list.push(t,{...e})})),t},s.push=function(e,t){(0,a.assert)(i.default.isNode(t)),(0,a.assert)(!e.readonly);const r=i.default.list.makeNode(t);e.tail?(e.tail.next=r,r.prev=e.tail):e.head=r,e.tail=r},s.pushList=function(e,t){(0,a.assert)(!e.readonly),(0,a.assert)(!t.readonly),t.readonly=!0,t.head&&t.tail&&(e.head&&e.tail?(e.tail.next=t.head,t.head.prev=e.tail,e.tail=t.tail):(e.head=t.head,e.tail=t.tail))},s.shift=function(e){if((0,a.assert)(!e.readonly),e.head){const t=e.head;return t.next?(e.head=t.next,t.next.prev=void 0):(e.tail=void 0,e.head=void 0),t.value}},s.unshift=function(e,t){(0,a.assert)(i.default.isNode(t)),(0,a.assert)(!e.readonly);const r=i.default.list.makeNode(t);e.head?(e.head.prev=r,r.next=e.head):e.tail=r,e.head=r},s.unshiftList=function(e,t){(0,a.assert)(!e.readonly),(0,a.assert)(!t.readonly),t.readonly=!0,t.head&&t.tail&&(e.head&&e.tail?(e.head.prev=t.tail,t.tail.next=e.head,e.head=t.head):(e.head=t.head,e.tail=t.tail))},s.isEmpty=function(e){return void 0===e.head},s.isNonEmpty=function(e){return void 0!==e.head},s.forEach=function(e,t){let r=e.head;for(;r;)t(r.value),r=r.next},s.forEachListNode=function(e,t){let r=e.head;for(;r;)t(r),r=r.next},s.mapToArray=function(e,t){const r=new Array;return i.default.list.forEach(e,(e=>r.push(t(e)))),r},s.toArray=function(e){const t=new Array;return i.default.list.forEach(e,(e=>t.push(e))),t},s.every=function(e,t){let r=e.head;for(;r;){if(!t(r.value))return!1;r=r.next}return!0},s.some=function(e,t){let r=e.head;for(;r;){if(t(r.value))return!0;r=r.next}return!1},s.size=function(e){let t=0,r=e.head;for(;r;)t++,r=r.next;return t}},9524:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.call=t.property=t.unary=t.binary=t.mixedTable=t.map=t.set=t.array=t.comment=t.id=t.string=t.number=t.bool=t.nil=t.none=t.tempId=t.create=void 0;const o=a(r(2303));t.create=function(e,t){const r=Object.assign({kind:e},t);for(const[e,n]of Object.entries(t))if(o.isNode(n))if(n.parent){const t={...n};t.parent=r,r[e]=t}else n.parent=r;else o.list.isList(n)&&o.list.forEachListNode(n,(e=>{if(e.value.parent){const t={...e.value};t.parent=r,e.value=t}else e.value.parent=r}));return r};let s=0;t.tempId=function(e=""){return o.create(o.SyntaxKind.TemporaryIdentifier,{name:e,id:s++})},t.none=function(){return o.create(o.SyntaxKind.None,{})},t.nil=function(){return o.create(o.SyntaxKind.NilLiteral,{})},t.bool=function(e){return e?o.create(o.SyntaxKind.TrueLiteral,{}):o.create(o.SyntaxKind.FalseLiteral,{})},t.number=function(e){return e>=0?o.create(o.SyntaxKind.NumberLiteral,{value:String(e)}):o.create(o.SyntaxKind.UnaryExpression,{operator:"-",expression:o.number(Math.abs(e))})},t.string=function(e){return o.create(o.SyntaxKind.StringLiteral,{value:e})},t.id=function(e){return o.create(o.SyntaxKind.Identifier,{name:e})},t.comment=function(e){return o.create(o.SyntaxKind.Comment,{text:e})},t.array=function(e=[]){return o.create(o.SyntaxKind.Array,{members:o.list.make(...e)})},t.set=function(e=[]){return o.create(o.SyntaxKind.Set,{members:o.list.make(...e)})},t.map=function(e=[]){return o.create(o.SyntaxKind.Map,{fields:o.list.make(...e.map((([e,t])=>o.create(o.SyntaxKind.MapField,{index:e,value:t}))))})},t.mixedTable=function(e=[]){return o.create(o.SyntaxKind.MixedTable,{fields:o.list.make(...e.map((e=>Array.isArray(e)?o.create(o.SyntaxKind.MapField,{index:e[0],value:e[1]}):e)))})},t.binary=function(e,t,r){return o.create(o.SyntaxKind.BinaryExpression,{left:e,operator:t,right:r})},t.unary=function(e,t){return o.create(o.SyntaxKind.UnaryExpression,{operator:e,expression:t})},t.property=function(e,t){return o.create(o.SyntaxKind.PropertyAccessExpression,{expression:e,name:t})},t.call=function(e,t=[]){return o.create(o.SyntaxKind.CallExpression,{expression:e,args:o.list.make(...t)})}},8090:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.SyntaxKind=void 0,(r=t.SyntaxKind||(t.SyntaxKind={}))[r.Identifier=0]="Identifier",r[r.TemporaryIdentifier=1]="TemporaryIdentifier",r[r.ComputedIndexExpression=2]="ComputedIndexExpression",r[r.PropertyAccessExpression=3]="PropertyAccessExpression",r[r.CallExpression=4]="CallExpression",r[r.MethodCallExpression=5]="MethodCallExpression",r[r.ParenthesizedExpression=6]="ParenthesizedExpression",r[r.None=7]="None",r[r.NilLiteral=8]="NilLiteral",r[r.FalseLiteral=9]="FalseLiteral",r[r.TrueLiteral=10]="TrueLiteral",r[r.NumberLiteral=11]="NumberLiteral",r[r.StringLiteral=12]="StringLiteral",r[r.VarArgsLiteral=13]="VarArgsLiteral",r[r.FunctionExpression=14]="FunctionExpression",r[r.BinaryExpression=15]="BinaryExpression",r[r.UnaryExpression=16]="UnaryExpression",r[r.IfExpression=17]="IfExpression",r[r.Array=18]="Array",r[r.Map=19]="Map",r[r.Set=20]="Set",r[r.MixedTable=21]="MixedTable",r[r.Assignment=22]="Assignment",r[r.BreakStatement=23]="BreakStatement",r[r.CallStatement=24]="CallStatement",r[r.ContinueStatement=25]="ContinueStatement",r[r.DoStatement=26]="DoStatement",r[r.WhileStatement=27]="WhileStatement",r[r.RepeatStatement=28]="RepeatStatement",r[r.IfStatement=29]="IfStatement",r[r.NumericForStatement=30]="NumericForStatement",r[r.ForStatement=31]="ForStatement",r[r.FunctionDeclaration=32]="FunctionDeclaration",r[r.MethodDeclaration=33]="MethodDeclaration",r[r.VariableDeclaration=34]="VariableDeclaration",r[r.ReturnStatement=35]="ReturnStatement",r[r.Comment=36]="Comment",r[r.MapField=37]="MapField",r[r.FirstIndexableExpression=0]="FirstIndexableExpression",r[r.LastIndexableExpression=6]="LastIndexableExpression",r[r.FirstExpression=0]="FirstExpression",r[r.LastExpression=20]="LastExpression",r[r.FirstStatement=22]="FirstStatement",r[r.LastStatement=36]="LastStatement",r[r.FirstField=37]="FirstField",r[r.LastField=37]="LastField"},8850:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.globals=void 0;const o=a(r(2303)),s=o.id("coroutine"),c=o.id("math"),l=o.id("string"),u=o.id("table"),d=o.id("utf8");t.globals={_G:o.id("_G"),TS:o.id("TS"),assert:o.id("assert"),bit32:o.id("bit32"),coroutine:{yield:o.property(s,"yield")},error:o.id("error"),exports:o.id("exports"),getmetatable:o.id("getmetatable"),ipairs:o.id("ipairs"),next:o.id("next"),pairs:o.id("pairs"),pcall:o.id("pcall"),require:o.id("require"),script:o.id("script"),select:o.id("select"),self:o.id("self"),setmetatable:o.id("setmetatable"),string:{byte:o.property(l,"byte"),find:o.property(l,"find"),format:o.property(l,"format"),gmatch:o.property(l,"gmatch"),gsub:o.property(l,"gsub"),lower:o.property(l,"lower"),match:o.property(l,"match"),rep:o.property(l,"rep"),reverse:o.property(l,"reverse"),split:o.property(l,"split"),sub:o.property(l,"sub"),upper:o.property(l,"upper")},super:o.id("super"),table:{clear:o.property(u,"clear"),concat:o.property(u,"concat"),create:o.property(u,"create"),find:o.property(u,"find"),insert:o.property(u,"insert"),move:o.property(u,"move"),remove:o.property(u,"remove"),sort:o.property(u,"sort")},utf8:{charpattern:o.property(d,"charpattern"),codes:o.property(d,"codes")},math:{min:o.property(c,"min")},tostring:o.id("tostring"),type:o.id("type"),typeof:o.id("typeof"),unpack:o.id("unpack"),game:o.id("game")}},8838:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.strings=void 0;const o=a(r(2303));t.strings={__index:o.string("__index"),__tostring:o.string("__tostring"),__mode:o.string("__mode"),k:o.string("k"),number:o.string("number"),table:o.string("table"),success:o.string("success"),value:o.string("value"),error:o.string("error"),", ":o.string(", ")}},4006:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isWritableExpression=t.isCall=t.isFinalStatement=t.isTable=t.isSimplePrimitive=t.isSimple=t.isNode=t.isField=t.isMapField=t.isStatement=t.isComment=t.isReturnStatement=t.isVariableDeclaration=t.isMethodDeclaration=t.isFunctionDeclaration=t.isForStatement=t.isNumericForStatement=t.isIfStatement=t.isRepeatStatement=t.isWhileStatement=t.isDoStatement=t.isContinueStatement=t.isCallStatement=t.isBreakStatement=t.isAssignment=t.isExpression=t.isMixedTable=t.isSet=t.isMap=t.isArray=t.isIfExpression=t.isUnaryExpression=t.isBinaryExpression=t.isFunctionExpression=t.isVarArgsLiteral=t.isStringLiteral=t.isNumberLiteral=t.isTrueLiteral=t.isFalseLiteral=t.isNilLiteral=t.isNone=t.isIndexableExpression=t.isParenthesizedExpression=t.isMethodCallExpression=t.isCallExpression=t.isPropertyAccessExpression=t.isComputedIndexExpression=t.isTemporaryIdentifier=t.isIdentifier=t.isAnyIdentifier=void 0,t.isExpressionWithPrecedence=t.hasStatements=t.isFunctionLike=void 0;const o=a(r(2303));function s(...e){const t=new Set(e);return e=>t.has(e.kind)}t.isAnyIdentifier=s(o.SyntaxKind.Identifier,o.SyntaxKind.TemporaryIdentifier),t.isIdentifier=s(o.SyntaxKind.Identifier),t.isTemporaryIdentifier=s(o.SyntaxKind.TemporaryIdentifier),t.isComputedIndexExpression=s(o.SyntaxKind.ComputedIndexExpression),t.isPropertyAccessExpression=s(o.SyntaxKind.PropertyAccessExpression),t.isCallExpression=s(o.SyntaxKind.CallExpression),t.isMethodCallExpression=s(o.SyntaxKind.MethodCallExpression),t.isParenthesizedExpression=s(o.SyntaxKind.ParenthesizedExpression),t.isIndexableExpression=function(e){return e.kind>=o.SyntaxKind.FirstIndexableExpression&&e.kind<=o.SyntaxKind.LastIndexableExpression},t.isNone=s(o.SyntaxKind.None),t.isNilLiteral=s(o.SyntaxKind.NilLiteral),t.isFalseLiteral=s(o.SyntaxKind.FalseLiteral),t.isTrueLiteral=s(o.SyntaxKind.TrueLiteral),t.isNumberLiteral=s(o.SyntaxKind.NumberLiteral),t.isStringLiteral=s(o.SyntaxKind.StringLiteral),t.isVarArgsLiteral=s(o.SyntaxKind.VarArgsLiteral),t.isFunctionExpression=s(o.SyntaxKind.FunctionExpression),t.isBinaryExpression=s(o.SyntaxKind.BinaryExpression),t.isUnaryExpression=s(o.SyntaxKind.UnaryExpression),t.isIfExpression=s(o.SyntaxKind.IfExpression),t.isArray=s(o.SyntaxKind.Array),t.isMap=s(o.SyntaxKind.Map),t.isSet=s(o.SyntaxKind.Set),t.isMixedTable=s(o.SyntaxKind.MixedTable),t.isExpression=function(e){return e.kind>=o.SyntaxKind.FirstExpression&&e.kind<=o.SyntaxKind.LastExpression},t.isAssignment=s(o.SyntaxKind.Assignment),t.isBreakStatement=s(o.SyntaxKind.BreakStatement),t.isCallStatement=s(o.SyntaxKind.CallStatement),t.isContinueStatement=s(o.SyntaxKind.ContinueStatement),t.isDoStatement=s(o.SyntaxKind.DoStatement),t.isWhileStatement=s(o.SyntaxKind.WhileStatement),t.isRepeatStatement=s(o.SyntaxKind.RepeatStatement),t.isIfStatement=s(o.SyntaxKind.IfStatement),t.isNumericForStatement=s(o.SyntaxKind.NumericForStatement),t.isForStatement=s(o.SyntaxKind.ForStatement),t.isFunctionDeclaration=s(o.SyntaxKind.FunctionDeclaration),t.isMethodDeclaration=s(o.SyntaxKind.MethodDeclaration),t.isVariableDeclaration=s(o.SyntaxKind.VariableDeclaration),t.isReturnStatement=s(o.SyntaxKind.ReturnStatement),t.isComment=s(o.SyntaxKind.Comment),t.isStatement=function(e){return e.kind>=o.SyntaxKind.FirstStatement&&e.kind<=o.SyntaxKind.LastStatement},t.isMapField=s(o.SyntaxKind.MapField),t.isField=function(e){return e.kind>=o.SyntaxKind.FirstField&&e.kind<=o.SyntaxKind.LastField},t.isNode=function(e){if("object"==typeof e&&null!==e&&"kind"in e){const{kind:t}=e;return"number"==typeof t&&t>=o.SyntaxKind.FirstIndexableExpression&&t<=o.SyntaxKind.LastField}return!1},t.isSimple=s(o.SyntaxKind.Identifier,o.SyntaxKind.TemporaryIdentifier,o.SyntaxKind.NilLiteral,o.SyntaxKind.TrueLiteral,o.SyntaxKind.FalseLiteral,o.SyntaxKind.NumberLiteral,o.SyntaxKind.StringLiteral),t.isSimplePrimitive=s(o.SyntaxKind.NilLiteral,o.SyntaxKind.TrueLiteral,o.SyntaxKind.FalseLiteral,o.SyntaxKind.NumberLiteral,o.SyntaxKind.StringLiteral),t.isTable=s(o.SyntaxKind.Array,o.SyntaxKind.Set,o.SyntaxKind.Map),t.isFinalStatement=s(o.SyntaxKind.BreakStatement,o.SyntaxKind.ReturnStatement,o.SyntaxKind.ContinueStatement),t.isCall=s(o.SyntaxKind.CallExpression,o.SyntaxKind.MethodCallExpression),t.isWritableExpression=s(o.SyntaxKind.Identifier,o.SyntaxKind.TemporaryIdentifier,o.SyntaxKind.PropertyAccessExpression,o.SyntaxKind.ComputedIndexExpression),t.isFunctionLike=s(o.SyntaxKind.FunctionDeclaration,o.SyntaxKind.FunctionExpression,o.SyntaxKind.MethodDeclaration),t.hasStatements=s(o.SyntaxKind.ForStatement,o.SyntaxKind.NumericForStatement,o.SyntaxKind.FunctionExpression,o.SyntaxKind.DoStatement,o.SyntaxKind.FunctionDeclaration,o.SyntaxKind.IfStatement,o.SyntaxKind.MethodDeclaration,o.SyntaxKind.RepeatStatement,o.SyntaxKind.WhileStatement),t.isExpressionWithPrecedence=s(o.SyntaxKind.IfExpression,o.SyntaxKind.UnaryExpression,o.SyntaxKind.BinaryExpression)},9861:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});const s=a(r(2303));t.default=s,o(r(3147),t)},3225:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(r(9861))},3686:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(r(9861))},9363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(`Assertion Failed! ${null!=t?t:""}\nThis is a compiler bug! Please submit a bug report here:\nhttps://github.com/roblox-ts/roblox-ts/issues`)}},7155:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getKindName=void 0;const i=n(r(9861));t.getKindName=function(e){return e===i.default.SyntaxKind.Identifier?"Identifier":e===i.default.SyntaxKind.ParenthesizedExpression?"ParenthesizedExpression":e===i.default.SyntaxKind.Set?"Set":e===i.default.SyntaxKind.Assignment?"Assignment":e===i.default.SyntaxKind.Comment?"Comment":e===i.default.SyntaxKind.MapField?"MapField":i.default.SyntaxKind[e]}},6101:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMetamethod=void 0;const r=new Set(["__index","__newindex","__call","__concat","__unm","__add","__sub","__mul","__div","__mod","__pow","__tostring","__metatable","__eq","__lt","__le","__mode","__gc","__len"]);t.isMetamethod=function(e){return r.has(e)}},9404:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedRoactClassField=t.isReservedClassField=void 0;const r=new Set(["__index","new"]);t.isReservedClassField=function(e){return r.has(e)};const n=new Set(["init"]);t.isReservedRoactClassField=function(e){return n.has(e)}},9795:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedIdentifier=void 0;const n=r(8850);t.isReservedIdentifier=function(e){return e in n.globals}},4836:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidIdentifier=void 0;const r=new Set(["and","break","do","else","elseif","end","false","for","function","if","in","local","nil","not","or","repeat","return","then","true","until","while"]),n=/^[A-Za-z_][A-Za-z0-9_]*$/;t.isValidIdentifier=function(e){return!r.has(e)&&n.test(e)}},6416:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidNumberLiteral=void 0;const r=/^(?:\d[\d_]*(?:\.[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?_*\d[\d_]*)?$/,n=/^0_*[bB]_*[01][01_]*$/,i=/^0_*[xX]_*[\da-fA-F][\da-fA-F_]*$/;t.isValidNumberLiteral=function(e){return r.test(e)||n.test(e)||i.test(e)}},5702:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderState=void 0,n(r(9861));const i=r(1271),a=r(6870),o=r(4458),s="\t".length;t.RenderState=class{constructor(){this.indent="",this.seenTempNodes=new Map,this.listNodesStack=new Array,this.tempIdFallback=0}pushIndent(){this.indent+="\t"}popIndent(){this.indent=this.indent.substr(s)}getTempName(e){const t=(0,o.getOrSetDefault)(this.seenTempNodes,e.id,(()=>"_"+this.tempIdFallback++));return(0,i.assert)(t),t}pushListNode(e){this.listNodesStack.push(e)}peekListNode(){return this.listNodesStack[this.listNodesStack.length-1]}popListNode(){return this.listNodesStack.pop()}newline(e){return e+"\n"}indented(e){return this.indent+e}line(e,t){let r=this.indented(e);return t&&(r+=(0,a.getEnding)(this,t)),r=this.newline(r),r}block(e){this.pushIndent();const t=e();return this.popIndent(),t}}},3147:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(2105),t),i(r(5702),t),i(r(7191),t),i(r(8309),t)},6975:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderCallExpression=void 0,n(r(9861));const i=r(3147),a=r(4276);t.renderCallExpression=function(e,t){return`${(0,i.render)(e,t.expression)}(${(0,a.renderArguments)(e,t.args)})`}},986:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderComputedIndexExpression=void 0;const i=n(r(9861)),a=r(3147);t.renderComputedIndexExpression=function(e,t){const r=(0,a.render)(e,t.expression);return i.default.isStringLiteral(t.index)&&i.default.isValidIdentifier(t.index.value)?`${r}.${t.index.value}`:`${r}[${(0,a.render)(e,t.index)}]`}},7313:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderIdentifier=void 0;const i=n(r(9861)),a=r(1271);t.renderIdentifier=function(e,t){return(0,a.assert)(i.default.isValidIdentifier(t.name),`Invalid Luau Identifier: "${t.name}"`),t.name}},5687:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMethodCallExpression=void 0;const i=n(r(9861)),a=r(1271),o=r(3147),s=r(4276);t.renderMethodCallExpression=function(e,t){return(0,a.assert)(i.default.isValidIdentifier(t.name)),`${(0,o.render)(e,t.expression)}:${t.name}(${(0,s.renderArguments)(e,t.args)})`}},857:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderParenthesizedExpression=void 0;const i=n(r(9861)),a=r(3147);t.renderParenthesizedExpression=function(e,t){let r=t.expression;for(;i.default.isParenthesizedExpression(r);)r=r.expression;return i.default.isSimple(r)?(0,a.render)(e,t.expression):`(${(0,a.render)(e,t.expression)})`}},5857:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderPropertyAccessExpression=void 0;const i=n(r(9861)),a=r(3147);t.renderPropertyAccessExpression=function(e,t){const r=(0,a.render)(e,t.expression),n=t.name;return i.default.isValidIdentifier(n)?`${r}.${n}`:`${r}["${n}"]`}},7026:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderTemporaryIdentifier=void 0;const i=n(r(9861)),a=r(1271);t.renderTemporaryIdentifier=function(e,t){const r=e.getTempName(t);return(0,a.assert)(i.default.isValidIdentifier(r),`Invalid Temporary Identifier: "${r}"`),r}},1595:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderArray=void 0;const i=n(r(9861)),a=r(3147);t.renderArray=function(e,t){return i.default.list.isEmpty(t.members)?"{}":`{ ${i.default.list.mapToArray(t.members,(t=>(0,a.render)(e,t))).join(", ")} }`}},7045:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderBinaryExpression=void 0,n(r(9861));const i=r(3147),a=r(2439);t.renderBinaryExpression=function(e,t){let r=`${(0,i.render)(e,t.left)} ${t.operator} ${(0,i.render)(e,t.right)}`;return(0,a.needsParentheses)(t)&&(r=`(${r})`),r}},6111:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderFunctionExpression=void 0;const i=n(r(9861)),a=r(1699),o=r(8309);t.renderFunctionExpression=function(e,t){if(i.default.list.isEmpty(t.statements))return`function(${(0,a.renderParameters)(e,t)}) end`;let r="";return r+=e.newline(`function(${(0,a.renderParameters)(e,t)})`),r+=e.block((()=>(0,o.renderStatements)(e,t.statements))),r+=e.indented("end"),r}},9375:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderIfExpression=void 0;const i=n(r(9861)),a=r(3147),o=r(2439);t.renderIfExpression=function(e,t){let r=`if ${(0,a.render)(e,t.condition)} then ${(0,a.render)(e,t.expression)} `,n=t.alternative;for(;i.default.isIfExpression(n);)r+=`elseif ${(0,a.render)(e,n.condition)} then ${(0,a.render)(e,n.expression)} `,n=n.alternative;return r+=`else ${(0,a.render)(e,n)}`,(0,o.needsParentheses)(t)&&(r=`(${r})`),r}},3549:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMap=void 0;const i=n(r(9861)),a=r(3147);t.renderMap=function(e,t){if(i.default.list.isEmpty(t.fields))return"{}";let r="{\n";return e.block((()=>{i.default.list.forEach(t.fields,(t=>r+=e.line(`${(0,a.render)(e,t)},`)))})),r+=e.indented("}"),r}},3033:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMixedTable=void 0;const i=n(r(9861)),a=r(3147);t.renderMixedTable=function(e,t){if(i.default.list.isEmpty(t.fields))return"{}";let r="{\n";return e.block((()=>{i.default.list.forEach(t.fields,(t=>r+=e.line(`${(0,a.render)(e,t)},`)))})),r+=e.indented("}"),r}},8170:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderNumberLiteral=void 0;const i=n(r(9861));t.renderNumberLiteral=function(e,t){return i.default.isValidNumberLiteral(t.value)?t.value:String(Number(t.value.replace(/_/g,"")))}},2761:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderSet=void 0;const i=n(r(9861)),a=r(3147);t.renderSet=function(e,t){if(i.default.list.isEmpty(t.members))return"{}";let r="{\n";return e.block((()=>{i.default.list.forEach(t.members,(t=>r+=e.line(`[${(0,a.render)(e,t)}] = true,`)))})),r+=e.indented("}"),r}},6076:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderStringLiteral=void 0;const i=n(r(9861)),a=r(5298);t.renderStringLiteral=function(e,t){const r=t.value.includes("\n");if(r||t.value.includes('"')){if(r||t.value.includes("'")){const e=(0,a.getSafeBracketEquals)(t.value),r=function(e){const t=e.parent;return!(!t||!(i.default.isMapField(t)&&e===t.index||i.default.isComputedIndexExpression(t)&&e===t.index||i.default.isSet(t)))}(t)?" ":"";return`${r}[${e}[${t.value}]${e}]${r}`}return`'${t.value}'`}return`"${t.value}"`}},6920:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderUnaryExpression=void 0;const i=n(r(9861)),a=r(3147),o=r(2439);t.renderUnaryExpression=function(e,t){let r=(0,a.render)(e,t.expression),n=t.operator;(function(e){return"not"===e.operator||!(!i.default.isUnaryExpression(e.expression)||"-"!==e.expression.operator)})(t)&&(n+=" "),function(e){return!("#"!==e.operator&&"-"!==e.operator||!i.default.isTable(e.expression))}(t)&&(r=`(${r})`);let s=`${n}${r}`;return(0,o.needsParentheses)(t)&&(s=`(${s})`),s}},8943:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMapField=void 0;const i=n(r(9861)),a=r(3147);t.renderMapField=function(e,t){const{index:r,value:n}=t,o=(0,a.render)(e,n);return i.default.isStringLiteral(r)&&i.default.isValidIdentifier(r.value)?`${r.value} = ${o}`:`[${(0,a.render)(e,r)}] = ${o}`}},5350:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderAssignment=void 0;const i=n(r(9861)),a=r(1271),o=r(3147);t.renderAssignment=function(e,t){let r,n;return i.default.list.isList(t.left)?((0,a.assert)(!i.default.list.isEmpty(t.left)),r=i.default.list.mapToArray(t.left,(t=>(0,o.render)(e,t))).join(", ")):r=(0,o.render)(e,t.left),i.default.list.isList(t.right)?((0,a.assert)(!i.default.list.isEmpty(t.right)),n=i.default.list.mapToArray(t.right,(t=>(0,o.render)(e,t))).join(", ")):n=(0,o.render)(e,t.right),e.line(`${r} ${t.operator} ${n}`,t)}},9786:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderBreakStatement=void 0,t.renderBreakStatement=function(e){return e.line("break")}},4003:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderCallStatement=void 0,n(r(9861));const i=r(3147);t.renderCallStatement=function(e,t){return e.line(`${(0,i.render)(e,t.expression)}`,t)}},279:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderComment=void 0,n(r(9861));const i=r(5298);t.renderComment=function(e,t){const r=t.text.split("\n");if(r.length>1){const n=(0,i.getSafeBracketEquals)(t.text);let a=e.line(`--[${n}[`);return a+=e.block((()=>r.map((e=>e.trim())).filter((e=>""!==e)).map((t=>e.line(t))).join(""))),a+=e.line(`]${n}]`),a}return r.map((t=>e.line(`-- ${t.trim()}`))).join("")}},5415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderContinueStatement=void 0,t.renderContinueStatement=function(e){return e.line("continue")}},3361:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderDoStatement=void 0,n(r(9861));const i=r(8309);t.renderDoStatement=function(e,t){let r="";return r+=e.line("do"),r+=e.block((()=>(0,i.renderStatements)(e,t.statements))),r+=e.line("end"),r}},4618:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderForStatement=void 0;const i=n(r(9861)),a=r(3147),o=r(8309);t.renderForStatement=function(e,t){const r=i.default.list.mapToArray(t.ids,(t=>(0,a.render)(e,t))).join(", ")||"_",n=(0,a.render)(e,t.expression);let s="";return s+=e.line(`for ${r} in ${n} do`),s+=e.block((()=>(0,o.renderStatements)(e,t.statements))),s+=e.line("end"),s}},8784:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderFunctionDeclaration=void 0;const i=n(r(9861)),a=r(1271),o=r(3147),s=r(1699),c=r(8309);t.renderFunctionDeclaration=function(e,t){t.localize&&(0,a.assert)(i.default.isAnyIdentifier(t.name),"local function cannot be a property");const r=(0,o.render)(e,t.name),n=(0,s.renderParameters)(e,t);let l="";return l+=e.line(`${t.localize?"local ":""}function ${r}(${n})`),l+=e.block((()=>(0,c.renderStatements)(e,t.statements))),l+=e.line("end"),l}},1616:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderIfStatement=void 0;const i=n(r(9861)),a=r(3147),o=r(8309);t.renderIfStatement=function(e,t){let r="";r+=e.line(`if ${(0,a.render)(e,t.condition)} then`),r+=e.block((()=>(0,o.renderStatements)(e,t.statements)));let n=t.elseBody;for(;i.default.isNode(n);){const t=n.statements;r+=e.line(`elseif ${(0,a.render)(e,n.condition)} then`),r+=e.block((()=>(0,o.renderStatements)(e,t))),n=n.elseBody}if(n&&i.default.list.isNonEmpty(n)){r+=e.line("else");const t=n;r+=e.block((()=>(0,o.renderStatements)(e,t)))}return r+=e.line("end"),r}},5081:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMethodDeclaration=void 0,n(r(9861));const i=r(3147),a=r(1699),o=r(8309);t.renderMethodDeclaration=function(e,t){let r="";return r+=e.line(`function ${(0,i.render)(e,t.expression)}:${t.name}(${(0,a.renderParameters)(e,t)})`),r+=e.block((()=>(0,o.renderStatements)(e,t.statements))),r+=e.line("end"),r}},289:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderNumericForStatement=void 0;const i=n(r(9861)),a=r(3147),o=r(8309);t.renderNumericForStatement=function(e,t){const r=(0,a.render)(e,t.id);let n=`${(0,a.render)(e,t.start)}, ${(0,a.render)(e,t.end)}`;!t.step||i.default.isNumberLiteral(t.step)&&1===Number(t.step.value)||(n+=`, ${(0,a.render)(e,t.step)}`);let s="";return s+=e.line(`for ${r} = ${n} do`),s+=e.block((()=>(0,o.renderStatements)(e,t.statements))),s+=e.line("end"),s}},9151:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderRepeatStatement=void 0,n(r(9861));const i=r(3147),a=r(8309);t.renderRepeatStatement=function(e,t){let r="";return r+=e.line("repeat"),r+=e.block((()=>(0,a.renderStatements)(e,t.statements))),r+=e.line(`until ${(0,i.render)(e,t.condition)}`),r}},5931:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderReturnStatement=void 0;const i=n(r(9861)),a=r(3147);t.renderReturnStatement=function(e,t){const r=i.default.list.isList(t.expression)?i.default.list.mapToArray(t.expression,(t=>(0,a.render)(e,t))).join(", "):(0,a.render)(e,t.expression);return e.line(`return ${r}`)}},8668:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderVariableDeclaration=void 0;const i=n(r(9861)),a=r(1271),o=r(3147);t.renderVariableDeclaration=function(e,t){let r;if(i.default.list.isList(t.left)?((0,a.assert)(!i.default.list.isEmpty(t.left)),r=i.default.list.mapToArray(t.left,(t=>(0,o.render)(e,t))).join(", ")):r=(0,o.render)(e,t.left),t.right){let n;return i.default.list.isList(t.right)?((0,a.assert)(!i.default.list.isEmpty(t.right)),n=i.default.list.mapToArray(t.right,(t=>(0,o.render)(e,t))).join(", ")):n=(0,o.render)(e,t.right),e.line(`local ${r} = ${n}`,t)}return e.line(`local ${r}`,t)}},7539:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderWhileStatement=void 0,n(r(9861));const i=r(3147),a=r(8309);t.renderWhileStatement=function(e,t){let r="";return r+=e.line(`while ${(0,i.render)(e,t.condition)} do`),r+=e.block((()=>(0,a.renderStatements)(e,t.statements))),r+=e.line("end"),r}},2105:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderAST=t.render=void 0;const i=n(r(9861)),a=r(1271),o=(r(7155),r(6975)),s=r(986),c=r(7313),l=r(5687),u=r(857),d=r(5857),_=r(7026),f=r(1595),p=r(7045),m=r(6111),g=r(9375),y=r(3549),v=r(3033),h=r(8170),x=r(2761),b=r(6076),D=r(6920),S=r(8943),T=r(5350),C=r(9786),E=r(4003),k=r(279),N=r(5415),A=r(3361),P=r(4618),F=r(8784),w=r(1616),I=r(5081),M=r(289),O=r(9151),L=r(5931),R=r(8668),j=r(7539),B=r(5702),J=r(7191),K=r(9007),z=r(8309),U=(r(7173),(0,K.identity)({[i.default.SyntaxKind.Identifier]:c.renderIdentifier,[i.default.SyntaxKind.TemporaryIdentifier]:_.renderTemporaryIdentifier,[i.default.SyntaxKind.ComputedIndexExpression]:s.renderComputedIndexExpression,[i.default.SyntaxKind.PropertyAccessExpression]:d.renderPropertyAccessExpression,[i.default.SyntaxKind.CallExpression]:o.renderCallExpression,[i.default.SyntaxKind.MethodCallExpression]:l.renderMethodCallExpression,[i.default.SyntaxKind.ParenthesizedExpression]:u.renderParenthesizedExpression,[i.default.SyntaxKind.None]:()=>(0,a.assert)(!1,"Cannot render None"),[i.default.SyntaxKind.NilLiteral]:()=>"nil",[i.default.SyntaxKind.FalseLiteral]:()=>"false",[i.default.SyntaxKind.TrueLiteral]:()=>"true",[i.default.SyntaxKind.NumberLiteral]:h.renderNumberLiteral,[i.default.SyntaxKind.StringLiteral]:b.renderStringLiteral,[i.default.SyntaxKind.VarArgsLiteral]:()=>"...",[i.default.SyntaxKind.FunctionExpression]:m.renderFunctionExpression,[i.default.SyntaxKind.BinaryExpression]:p.renderBinaryExpression,[i.default.SyntaxKind.UnaryExpression]:D.renderUnaryExpression,[i.default.SyntaxKind.IfExpression]:g.renderIfExpression,[i.default.SyntaxKind.Array]:f.renderArray,[i.default.SyntaxKind.Map]:y.renderMap,[i.default.SyntaxKind.Set]:x.renderSet,[i.default.SyntaxKind.MixedTable]:v.renderMixedTable,[i.default.SyntaxKind.Assignment]:T.renderAssignment,[i.default.SyntaxKind.BreakStatement]:C.renderBreakStatement,[i.default.SyntaxKind.CallStatement]:E.renderCallStatement,[i.default.SyntaxKind.ContinueStatement]:N.renderContinueStatement,[i.default.SyntaxKind.DoStatement]:A.renderDoStatement,[i.default.SyntaxKind.WhileStatement]:j.renderWhileStatement,[i.default.SyntaxKind.RepeatStatement]:O.renderRepeatStatement,[i.default.SyntaxKind.IfStatement]:w.renderIfStatement,[i.default.SyntaxKind.NumericForStatement]:M.renderNumericForStatement,[i.default.SyntaxKind.ForStatement]:P.renderForStatement,[i.default.SyntaxKind.FunctionDeclaration]:F.renderFunctionDeclaration,[i.default.SyntaxKind.MethodDeclaration]:I.renderMethodDeclaration,[i.default.SyntaxKind.VariableDeclaration]:R.renderVariableDeclaration,[i.default.SyntaxKind.ReturnStatement]:L.renderReturnStatement,[i.default.SyntaxKind.Comment]:k.renderComment,[i.default.SyntaxKind.MapField]:S.renderMapField}));t.render=function(e,t){return U[t.kind](e,t)},t.renderAST=function(e){const t=new B.RenderState;return(0,J.solveTempIds)(t,e),(0,z.renderStatements)(t,e)}},7191:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.solveTempIds=void 0;const i=n(r(9861)),a=r(1271),o=r(7173);function s(e){return i.default.isForStatement(e)||i.default.isNumericForStatement(e)||i.default.isFunctionLike(e)}function c(e,t){var r,n;if(e.parent){if(i.default.hasStatements(e.parent)&&e===(null===(r=e.parent.statements[t])||void 0===r?void 0:r.value))return!0;if(i.default.isIfStatement(e.parent)&&i.default.list.isList(e.parent.elseBody)&&e===(null===(n=e.parent.elseBody[t])||void 0===n?void 0:n.value))return!0}return!1}function l(e){return{ids:new Set,lastTry:new Map,parent:e}}function u(e,t){return!!e.ids.has(t)||!!e.parent&&u(e.parent,t)}t.solveTempIds=function(e,t){var r;const n=new Array,d=new Map,_=[l()];function f(){_.push(l(m()))}function p(){return _.pop()}function m(){const e=_[_.length-1];return(0,a.assert)(e),e}function g(e){m().ids.add(e)}(0,o.visit)(t,{before:e=>{s(e)&&f(),(e=>c(e,"head"))(e)&&f(),i.default.isTemporaryIdentifier(e)?(d.set(e,m()),n.push(e)):i.default.isVariableDeclaration(e)?i.default.list.isList(e.left)?i.default.list.forEach(e.left,(e=>{i.default.isIdentifier(e)&&g(e.name)})):i.default.isIdentifier(e.left)&&g(e.left.name):i.default.isFunctionLike(e)&&i.default.list.forEach(e.parameters,(e=>{i.default.isIdentifier(e)&&g(e.name)}))},after:e=>{s(e)&&p(),(e=>c(e,"tail"))(e)&&p()}});for(const t of n)if(void 0===e.seenTempNodes.get(t.id)){const n=d.get(t);(0,a.assert)(n);const i=""===t.name?"":"_";let o=`_${t.name}`,s=null!==(r=n.lastTry.get(o))&&void 0!==r?r:1;for(;u(n,o);)o=`_${t.name}${i}${s++}`;n.lastTry.set(o,s),n.ids.add(o),e.seenTempNodes.set(t.id,o)}}},6870:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getEnding=void 0;const i=n(r(9861)),a=r(1271);function o(e){return!!i.default.isIndexableExpression(e)||(i.default.isBinaryExpression(e)?o(e.right):i.default.isUnaryExpression(e)?o(e.expression):!!i.default.isIfExpression(e)&&o(e.alternative))}function s(e){if(i.default.isCallStatement(e))return!0;if(i.default.isVariableDeclaration(e)||i.default.isAssignment(e)){let t;return e.right?i.default.list.isList(e.right)?((0,a.assert)(i.default.list.isNonEmpty(e.right)),t=e.right.tail.value):t=e.right:i.default.list.isList(e.left)?((0,a.assert)(i.default.list.isNonEmpty(e.left)),t=e.left.tail.value):t=e.left,o(t)}return!1}function c(e){return!!i.default.isParenthesizedExpression(e)||!!(i.default.isCall(e)||i.default.isPropertyAccessExpression(e)||i.default.isComputedIndexExpression(e))&&c(e.expression)}t.getEnding=function(e,t){const r=function(e){var t;let r=null===(t=e.peekListNode())||void 0===t?void 0:t.next;for(;r&&i.default.isComment(r.value);)r=r.next;return null==r?void 0:r.value}(e);return void 0!==r&&s(t)&&function(e){return i.default.isCallStatement(e)?c(e.expression.expression):!!i.default.isAssignment(e)&&(i.default.list.isList(e.left)?((0,a.assert)(i.default.list.isNonEmpty(e.left)),c(e.left.head.value)):c(e.left))}(r)?";":""}},4458:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrSetDefault=void 0,t.getOrSetDefault=function(e,t,r){let n=e.get(t);return void 0===n&&(n=r(),e.set(t,n)),n}},5298:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSafeBracketEquals=void 0,t.getSafeBracketEquals=function(e){let t=0;for(;e.includes(`]${"=".repeat(t)}]`)||e.endsWith(`]${"=".repeat(t)}`);)t++;return"=".repeat(t)}},9007:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},2439:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.needsParentheses=void 0;const i=n(r(9861)),a=r(1271),o={not:7,"#":7,"-":7},s={or:1,and:2,"<":3,">":3,"<=":3,">=":3,"~=":3,"==":3,"..":4,"+":5,"-":5,"*":6,"/":6,"%":6,"^":8};function c(e){return i.default.isIfExpression(e)?1:i.default.isBinaryExpression(e)?s[e.operator]:i.default.isUnaryExpression(e)?o[e.operator]:void(0,a.assert)(!1)}t.needsParentheses=function(e){if(e.parent&&i.default.isExpressionWithPrecedence(e.parent)){const t=c(e),r=c(e.parent);if(t(0,a.render)(e,t))).join(", ")}},1699:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderParameters=void 0;const i=n(r(9861)),a=r(3147);t.renderParameters=function(e,t){const r=i.default.list.mapToArray(t.parameters,(t=>(0,a.render)(e,t)));return t.hasDotDotDot&&r.push("..."),r.join(", ")}},8309:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderStatements=void 0;const i=n(r(9861)),a=r(1271),o=r(3147);t.renderStatements=function(e,t){let r="",n=t.head,s=!1;for(;void 0!==n;)(0,a.assert)(!s||i.default.isComment(n.value),"Cannot render statement after break, continue, or return!"),s||(s=i.default.isFinalStatement(n.value)),e.pushListNode(n),r+=(0,o.render)(e,n.value),e.popListNode(),n=n.next;return r}},7173:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.visit=void 0;const i=n(r(9861)),a=()=>{},o=(0,r(9007).identity)({[i.default.SyntaxKind.Identifier]:a,[i.default.SyntaxKind.TemporaryIdentifier]:a,[i.default.SyntaxKind.ComputedIndexExpression]:(e,t)=>{s(e.expression,t),s(e.index,t)},[i.default.SyntaxKind.PropertyAccessExpression]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.CallExpression]:(e,t)=>{s(e.expression,t),c(e.args,t)},[i.default.SyntaxKind.MethodCallExpression]:(e,t)=>{s(e.expression,t),c(e.args,t)},[i.default.SyntaxKind.ParenthesizedExpression]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.None]:a,[i.default.SyntaxKind.NilLiteral]:a,[i.default.SyntaxKind.FalseLiteral]:a,[i.default.SyntaxKind.TrueLiteral]:a,[i.default.SyntaxKind.NumberLiteral]:a,[i.default.SyntaxKind.StringLiteral]:a,[i.default.SyntaxKind.VarArgsLiteral]:a,[i.default.SyntaxKind.FunctionExpression]:(e,t)=>{c(e.parameters,t),c(e.statements,t)},[i.default.SyntaxKind.BinaryExpression]:(e,t)=>{s(e.left,t),s(e.right,t)},[i.default.SyntaxKind.UnaryExpression]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.IfExpression]:(e,t)=>{s(e.condition,t),s(e.expression,t),s(e.alternative,t)},[i.default.SyntaxKind.Array]:(e,t)=>c(e.members,t),[i.default.SyntaxKind.Map]:(e,t)=>c(e.fields,t),[i.default.SyntaxKind.Set]:(e,t)=>c(e.members,t),[i.default.SyntaxKind.MixedTable]:(e,t)=>c(e.fields,t),[i.default.SyntaxKind.Assignment]:(e,t)=>{i.default.list.isList(e.left)?c(e.left,t):s(e.left,t),i.default.list.isList(e.right)?c(e.right,t):s(e.right,t)},[i.default.SyntaxKind.BreakStatement]:a,[i.default.SyntaxKind.CallStatement]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.ContinueStatement]:a,[i.default.SyntaxKind.DoStatement]:(e,t)=>c(e.statements,t),[i.default.SyntaxKind.WhileStatement]:(e,t)=>{s(e.condition,t),c(e.statements,t)},[i.default.SyntaxKind.RepeatStatement]:(e,t)=>{c(e.statements,t),s(e.condition,t)},[i.default.SyntaxKind.IfStatement]:(e,t)=>{s(e.condition,t),c(e.statements,t),i.default.list.isList(e.elseBody)?c(e.elseBody,t):s(e.elseBody,t)},[i.default.SyntaxKind.NumericForStatement]:(e,t)=>{s(e.id,t),s(e.start,t),s(e.end,t),e.step&&s(e.step,t),c(e.statements,t)},[i.default.SyntaxKind.ForStatement]:(e,t)=>{c(e.ids,t),c(e.statements,t)},[i.default.SyntaxKind.FunctionDeclaration]:(e,t)=>{s(e.name,t),c(e.parameters,t),c(e.statements,t)},[i.default.SyntaxKind.MethodDeclaration]:(e,t)=>{s(e.expression,t),c(e.parameters,t),c(e.statements,t)},[i.default.SyntaxKind.VariableDeclaration]:(e,t)=>{i.default.list.isList(e.left)?c(e.left,t):s(e.left,t),e.right&&(i.default.list.isList(e.right)?c(e.right,t):s(e.right,t))},[i.default.SyntaxKind.ReturnStatement]:(e,t)=>{i.default.list.isList(e.expression)?c(e.expression,t):s(e.expression,t)},[i.default.SyntaxKind.Comment]:a,[i.default.SyntaxKind.MapField]:(e,t)=>{s(e.index,t),s(e.value,t)}});function s(e,t){var r,n;null===(r=t.before)||void 0===r||r.call(t,e),o[e.kind](e,t),null===(n=t.after)||void 0===n||n.call(t,e)}function c(e,t){i.default.list.forEach(e,(e=>s(e,t)))}t.visit=function(e,t){i.default.list.isList(e)?c(e,t):s(e,t)}},1979:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RojoResolver=t.RbxPathParent=t.NetworkType=t.FileRelation=t.RbxType=void 0;const i=n(r(1581)),a=n(r(651)),o=n(r(6470)),s=o.default.join("/",".."),c=".lua",l=".server",u=".client",d=new i.default,_=/^.+\.project\.json$/,f="default.project.json";var p;!function(e){e[e.ModuleScript=0]="ModuleScript",e[e.Script=1]="Script",e[e.LocalScript=2]="LocalScript",e[e.Unknown=3]="Unknown"}(p=t.RbxType||(t.RbxType={}));const m=new Map([["",p.ModuleScript],[l,p.Script],[u,p.LocalScript]]),g=[["StarterPack"],["StarterGui"],["StarterPlayer"],["StarterPlayer","StarterPlayerScripts"],["StarterPlayer","StarterCharacterScripts"],["StarterPlayer","StarterCharacter"]],y=[["StarterPack"],["StarterGui"],["StarterPlayer"]],v=[["ServerStorage"],["ServerScriptService"]];var h,x;function b(e){const t=o.default.extname(e);if(t===c){e=e.slice(0,-t.length);const r=o.default.extname(e);r!==l&&r!==u||(e=e.slice(0,-r.length))}else".json"===t&&(e=e.slice(0,-t.length));return e}function D(e,t){const r=Math.min(e.length,t.length);for(let n=0;nd.compile(JSON.parse(a.default.readFileSync(T).toString()))));t.RbxPathParent=Symbol("Parent");class E{constructor(){this.warnings=new Array,this.rbxPath=new Array,this.partitions=new Array,this.filePathToRbxPathMap=new Map,this.isolatedContainers=[...g],this.isGame=!1}static findRojoConfigFilePath(e){const t=new Array,r=o.default.join(e,f);if(a.default.pathExistsSync(r))return{path:r,warnings:t};const n=new Array;for(const t of a.default.readdirSync(e))t===f||"roblox-project.json"!==t&&!_.test(t)||n.push(o.default.join(e,t));return n.length>1&&t.push(`Multiple *.project.json files found, using ${n[0]}`),{path:n[0],warnings:t}}warn(e){this.warnings.push(e)}getWarnings(){return this.warnings}static fromPath(e){const t=new E;return t.parseConfig(o.default.resolve(e),!0),t}static synthetic(e){const t=new E;return t.parseTree(e,"",{$path:e},!0),t}static fromTree(e,t){const r=new E;return r.parseTree(e,"",t,!0),r}parseConfig(e,t=!1){const r=a.default.realpathSync(e);if(a.default.pathExistsSync(r)){let i;try{i=JSON.parse(a.default.readFileSync(r).toString())}finally{n=i,!0===C.get()(n)?this.parseTree(o.default.dirname(e),i.name,i.tree,t):this.warn(`RojoResolver: Invalid configuration! ${d.errorsText(C.get().errors)}`)}}else this.warn(`RojoResolver: Path does not exist "${e}"`);var n}parseTree(e,t,r,n=!1){n||this.rbxPath.push(t),void 0!==r.$path&&this.parsePath(o.default.resolve(e,"string"==typeof r.$path?r.$path:r.$path.optional)),"DataModel"===r.$className&&(this.isGame=!0);for(const t of Object.keys(r).filter((e=>!e.startsWith("$"))))this.parseTree(e,t,r[t]);n||this.rbxPath.pop()}parsePath(e){const t=a.default.pathExistsSync(e)?a.default.realpathSync(e):e;if(o.default.extname(e)===c)this.filePathToRbxPathMap.set(e,[...this.rbxPath]);else{const r=a.default.pathExistsSync(t)&&a.default.statSync(t).isDirectory();r&&a.default.readdirSync(t).includes(f)?this.parseConfig(o.default.join(e,f),!0):(this.partitions.unshift({fsPath:e,rbxPath:[...this.rbxPath]}),r&&this.searchDirectory(e))}}searchDirectory(e,t){const r=a.default.realpathSync(e),n=a.default.readdirSync(r);if(n.includes(f))this.parseConfig(o.default.join(e,f));else{t&&this.rbxPath.push(t);for(const t of n){const r=o.default.join(e,t),n=a.default.realpathSync(r);a.default.statSync(n).isFile()&&t!==f&&_.test(t)&&this.parseConfig(r)}for(const t of n){const r=o.default.join(e,t),n=a.default.realpathSync(r);a.default.statSync(n).isDirectory()&&this.searchDirectory(r,t)}t&&this.rbxPath.pop()}}getRbxPathFromFilePath(e){e=o.default.resolve(e);const t=this.filePathToRbxPathMap.get(e);if(t)return t;for(const t of this.partitions)if(S(e,t.fsPath)){const r=b(e),n=o.default.relative(t.fsPath,r),i=""===n?[]:n.split(o.default.sep);return"init"===i[i.length-1]&&i.pop(),t.rbxPath.concat(i)}}getRbxTypeFromFilePath(e){var t;const r=o.default.extname(o.default.basename(e,o.default.extname(e)));return null!==(t=m.get(r))&&void 0!==t?t:p.Unknown}getContainer(e,t){if(this.isGame&&t)for(const r of e)if(D(t,r))return r}getFileRelation(e,t){const r=this.getContainer(this.isolatedContainers,e),n=this.getContainer(this.isolatedContainers,t);return r&&n?r===n?h.InToIn:h.OutToIn:r&&!n?h.InToOut:!r&&n?h.OutToIn:h.OutToOut}isIsolated(e){return void 0!==this.getContainer(this.isolatedContainers,e)}getNetworkType(e){return this.getContainer(v,e)?x.Server:this.getContainer(y,e)?x.Client:x.Unknown}static relative(e,r){const n=Math.max(e.length,r.length);let i=n;for(let t=0;tthis.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var _=r(7426);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return _.default}});var f=r(6646);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},7023:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function a(e,...t){const r=[e[0]];let n=0;for(;n"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends s{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?i.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=F(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=F(this.rhs,e,t),this}get names(){return P(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class _ extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=F(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const i=r[n];i.optimizeNames(e,t)||(w(e,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>A(e,t.names)),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends m{}class v extends g{}v.kind="else";class h extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new v(e):e}return t?!1===e?t instanceof h?t:t.nodes:this.nodes.length?this:new h(I(e),t instanceof h?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=F(this.condition,e,t),this}get names(){const e=super.names;return P(e,this.condition),this.else&&A(e,this.else.names),e}}h.kind="if";class x extends g{}x.kind="for";class b extends x{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=F(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class D extends x{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:r,from:n,to:a}=this;return`for(${t} ${r}=${n}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=P(super.names,this.from);return P(e,this.to)}}class S extends x{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=F(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class T extends g{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}T.kind="func";class C extends m{render(e){return"return "+super.render(e)}}C.kind="return";class E extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class k extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class N extends g{render(e){return"finally"+super.render(e)}}function A(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function P(e,t){return t instanceof n._CodeOrName?A(e,t.names):e}function F(e,t,r){return e instanceof n.Name?a(e):(i=e)instanceof n._Code&&i._items.some((e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str]))?new n._Code(e._items.reduce(((e,t)=>(t instanceof n.Name&&(t=a(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function a(e){const n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function w(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:n._`!${R(e)}`}N.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const i=this._scope.toName(t);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new c(e,i,r)),i}const(e,t,r){return this._def(i.varKinds.const,e,t,r)}let(e,t,r){return this._def(i.varKinds.let,e,t,r)}var(e,t,r){return this._def(i.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new l(e,t,r))}add(e,r){return this._leafNode(new u(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new p(e)),this}object(...e){const t=["{"];for(const[r,i]of e)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,i));return t.push("}"),new n._Code(t)}if(e,t,r){if(this._blockNode(new h(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new h(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(h,v)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new b(e),t)}forRange(e,t,r,n,a=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const o=this._scope.toName(e);return this._for(new D(a,o,t,r),(()=>n(o)))}forOf(e,t,r,a=i.varKinds.const){const o=this._scope.toName(e);if(this.opts.es5){const e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,n._`${e}.length`,(t=>{this.var(o,n._`${e}[${t}]`),r(o)}))}return this._for(new S("of",a,o,t),(()=>r(o)))}forIn(e,t,r,a=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,n._`Object.keys(${t})`,r);const o=this._scope.toName(e);return this._for(new S("in",a,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(x)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new _(e))}return(e){const t=new C;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new E;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new k(e),t(e)}return r&&(this._currNode=n.finally=new N,this.code(r)),this._endBlockNode(k,N)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,i){return this._blockNode(new T(e,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof h))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=I;const M=L(t.operators.AND);t.and=function(...e){return e.reduce(M)};const O=L(t.operators.OR);function L(e){return(t,r)=>t===n.nil?r:r===n.nil?t:n._`${R(t)} ${e} ${R(r)}`}function R(e){return e instanceof n.Name?e:n._`(${e})`}t.or=function(...e){return e.reduce(O)}},8490:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const n=r(7023);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var a;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(a=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new n.Name("const"),let:new n.Name("let"),var:new n.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof n.Name?e:this.name(e)}name(e){return new n.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=o;class s extends n.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=n._`.${new n.Name(t)}[${r}]`}}t.ValueScopeName=s;const c=n._`\n`;t.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:n.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:i}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let o=this._values[i];if(o){const e=o.get(a);if(e)return e}else o=this._values[i]=new Map;o.set(a,n);const s=this._scope[i]||(this._scope[i]=[]),c=s.length;return s[c]=t.ref,n.setValue(t,{property:i,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return n._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,o={},s){let c=n.nil;for(const l in e){const u=e[l];if(!u)continue;const d=o[l]=o[l]||new Map;u.forEach((e=>{if(d.has(e))return;d.set(e,a.Started);let o=r(e);if(o){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=n._`${c}${r} ${e} = ${o};${this.opts._n}`}else{if(!(o=null==s?void 0:s(e)))throw new i(e);c=n._`${c}${o}${this.opts._n}`}d.set(e,a.Completed)}))}return c}}},4181:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const n=r(3487),i=r(6776),a=r(2141);function o(e,t){const r=e.const("err",t);e.if(n._`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,n._`[${r}]`)),n._`${a.default.vErrors}.push(${r})`),e.code(n._`${a.default.errors}++`)}function s(e,t){const{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw(n._`new ${e.ValidationError}(${t})`):(r.assign(n._`${i}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>n.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?n.str`"${e}" keyword must be ${t} ($data)`:n.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,i,a){const{it:c}=e,{gen:u,compositeRule:d,allErrors:_}=c,f=l(e,r,i);(null!=a?a:d||_)?o(u,f):s(c,n._`[${f}]`)},t.reportExtraError=function(e,r=t.keywordError,n){const{it:i}=e,{gen:c,compositeRule:u,allErrors:d}=i;o(c,l(e,r,n)),u||d||s(i,a.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(a.default.errors,t),e.if(n._`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(n._`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:o,it:s}){if(void 0===o)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",o,a.default.errors,(o=>{e.const(c,n._`${a.default.vErrors}[${o}]`),e.if(n._`${c}.instancePath === undefined`,(()=>e.assign(n._`${c}.instancePath`,(0,n.strConcat)(a.default.instancePath,s.errorPath)))),e.assign(n._`${c}.schemaPath`,n.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(n._`${c}.schema`,r),e.assign(n._`${c}.data`,i))}))};const c={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function l(e,t,r){const{createErrors:i}=e.it;return!1===i?n._`{}`:function(e,t,r={}){const{gen:i,it:o}=e,s=[u(o,r),d(e,r)];return function(e,{params:t,message:r},i){const{keyword:o,data:s,schemaValue:l,it:u}=e,{opts:d,propertyName:_,topSchemaRef:f,schemaPath:p}=u;i.push([c.keyword,o],[c.params,"function"==typeof t?t(e):t||n._`{}`]),d.messages&&i.push([c.message,"function"==typeof r?r(e):r]),d.verbose&&i.push([c.schema,l],[c.parentSchema,n._`${f}${p}`],[a.default.data,s]),_&&i.push([c.propertyName,_])}(e,t,s),i.object(...s)}(e,t,r)}function u({errorPath:e},{instancePath:t}){const r=t?n.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,r)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:a}){let o=a?t:n.str`${t}/${e}`;return r&&(o=n.str`${o}${(0,i.getErrorPath)(r,i.Type.Str)}`),[c.schemaPath,o]}},5173:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const n=r(3487),i=r(7426),a=r(2141),o=r(2531),s=r(6776),c=r(4815);class l{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,o.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function u(e){const t=_.call(this,e);if(t)return t;const r=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:l}=this.opts.code,{ownProperties:u}=this.opts,d=new n.CodeGen(this.scope,{es5:s,lines:l,ownProperties:u});let f;e.$async&&(f=d.scopeValue("Error",{ref:i.default,code:n._`require("ajv/dist/runtime/validation_error").default`}));const p=d.scopeName("validate");e.validateName=p;const m={gen:d,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:n._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),d.optimize(this.opts.code.optimize);const t=d.toString();g=`${d.scopeRefs(a.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const r=new Function(`${a.default.self}`,`${a.default.scope}`,g)(this,this.scope.get());if(this.scope.value(p,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:p,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=m;r.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},r.source&&(r.source.evaluated=(0,n.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function d(e){return(0,o.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function _(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function f(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||p.call(this,e,t)}function p(e,t){const r=this.opts.uriResolver.parse(t),n=(0,o._getFullPath)(this.opts.uriResolver,r);let i=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return g.call(this,r,e);const a=(0,o.normalizeId)(n),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=p.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,r,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),a===(0,o.normalizeId)(t)){const{schema:t}=s,{schemaId:r}=this.opts,n=t[r];return n&&(i=(0,o.resolveUrl)(this.opts.uriResolver,i,n)),new l({schema:t,schemaId:r,root:e,baseId:i})}return g.call(this,r,s)}}t.SchemaEnv=l,t.compileSchema=u,t.resolveRef=function(e,t,r){var n;r=(0,o.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let a=f.call(this,e,r);if(void 0===a){const i=null===(n=e.localRefs)||void 0===n?void 0:n[r],{schemaId:o}=this.opts;i&&(a=new l({schema:i,schemaId:o,root:e,baseId:t}))}return void 0!==a?e.refs[r]=d.call(this,a):void 0},t.getCompilingSchema=_,t.resolveSchema=p;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:r,root:n}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,s.unescapeFragment)(n)];if(void 0===e)return;const i="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&i&&(t=(0,o.resolveUrl)(this.opts.uriResolver,t,i))}let a;if("boolean"!=typeof r&&r.$ref&&!(0,s.schemaHasRulesButRef)(r,this.RULES)){const e=(0,o.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=p.call(this,n,e)}const{schemaId:c}=this.opts;return a=a||new l({schema:r,schemaId:c,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}},2141:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")};t.default=i},6646:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2531);class i extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=i},2531:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const n=r(6776),i=r(4063),a=r(9461),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&l(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(s.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(c))return!0;if("object"==typeof r&&c(r))return!0}return!1}function l(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!o.has(r)&&("object"==typeof e[r]&&(0,n.eachItem)(e[r],(e=>t+=l(e))),t===1/0))return 1/0}return t}function u(e,t="",r){!1!==r&&(t=f(t));const n=e.parse(t);return d(e,n)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=d;const _=/#\/?$/;function f(e){return e?e.replace(_,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,r){return r=f(r),e.resolve(t,r)};const p=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:n}=this.opts,o=f(e[r]||t),s={"":o},c=u(n,o,!1),l={},d=new Set;return a(e,{allKeys:!0},((e,t,n,i)=>{if(void 0===i)return;const a=c+t;let o=s[i];function u(t){const r=this.opts.uriResolver.resolve;if(t=f(o?r(o,t):t),d.has(t))throw m(t);d.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?_(e,n.schema,t):t!==f(a)&&("#"===t[0]?(_(e,l[t],t),l[t]=e):this.refs[t]=a),t}function g(e){if("string"==typeof e){if(!p.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[r]&&(o=u.call(this,e[r])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=o})),l;function _(e,t,r){if(void 0!==t&&!i(e,t))throw m(r)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},3141:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},6776:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const n=r(3487),i=r(7023);function a(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const i=n.RULES.keywords;for(const r in t)i[r]||p(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{const l=void 0===s?o:s instanceof n.Name?(o instanceof n.Name?e(a,o,s):t(a,o,s),s):o instanceof n.Name?(t(a,s,o),o):r(o,s);return c!==n.Name||l instanceof n.Name?l:i(a,l)}}function u(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",n._`{}`);return void 0!==t&&d(e,r,t),r}function d(e,t,r){Object.keys(r).forEach((r=>e.assign(n._`${t}${(0,n.getProperty)(r)}`,!0)))}t.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(a(e,t),!o(t,e.self.RULES.all))},t.checkUnknownRules=a,t.schemaHasRules=o,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,i,a){if(!a){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return n._`${r}`}return n._`${e}${t}${(0,n.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>{e.if(n._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,n._`${r} || {}`).code(n._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,n._`${r} || {}`),d(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:l({mergeNames:(e,t,r)=>e.if(n._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,n._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(n._`${r} !== true`,(()=>e.assign(r,!0===t||n._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=d;const _={};var f;function p(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:_[t.code]||(_[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,r){if(e instanceof n.Name){const i=t===f.Num;return r?i?n._`"[" + ${e} + "]"`:n._`"['" + ${e} + "']"`:i?n._`"/" + ${e}`:n._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,n.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=p},8876:function(e,t){"use strict";function r(e,t){return t.rules.some((t=>n(e,t)))}function n(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){const i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=n},5667:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const n=r(4181),i=r(3487),a=r(2141),o={message:"boolean schema is false"};function s(e,t){const{gen:r,data:i}=e,a={gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,n.reportError)(a,o,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?s(e,!1):"object"==typeof r&&!0===r.$async?t.return(a.default.data):(t.assign(i._`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),s(e)):r.var(t,!0)}},453:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const n=r(3141),i=r(8876),a=r(4181),o=r(3487),s=r(6776);var c;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(n.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:r,data:n,opts:a}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,a.coerceTypes),l=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(l){const i=_(t,n,a.strictNumbers,c.Wrong);r.if(i,(()=>{s.length?function(e,t,r){const{gen:n,data:i,opts:a}=e,s=n.let("dataType",o._`typeof ${i}`),c=n.let("coerced",o._`undefined`);"array"===a.coerceTypes&&n.if(o._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>n.assign(i,o._`${i}[0]`).assign(s,o._`typeof ${i}`).if(_(t,i,a.strictNumbers),(()=>n.assign(c,i))))),n.if(o._`${c} !== undefined`);for(const e of r)(u.has(e)||"array"===e&&"array"===a.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void n.elseIf(o._`${s} == "number" || ${s} == "boolean"`).assign(c,o._`"" + ${i}`).elseIf(o._`${i} === null`).assign(c,o._`""`);case"number":return void n.elseIf(o._`${s} == "boolean" || ${i} === null - || (${s} == "string" && ${i} && ${i} == +${i})`).assign(c,o._`+${i}`);case"integer":return void n.elseIf(o._`${s} === "boolean" || ${i} === null - || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,o._`+${i}`);case"boolean":return void n.elseIf(o._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(o._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return n.elseIf(o._`${i} === "" || ${i} === 0 || ${i} === false`),void n.assign(c,null);case"array":n.elseIf(o._`${s} === "string" || ${s} === "number" - || ${s} === "boolean" || ${i} === null`).assign(c,o._`[${i}]`)}}n.else(),p(e),n.endIf(),n.if(o._`${c} !== undefined`,(()=>{n.assign(i,c),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,c)}))}(e,t,s):p(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,n=c.Correct){const i=n===c.Correct?o.operators.EQ:o.operators.NEQ;let a;switch(e){case"null":return o._`${t} ${i} null`;case"array":a=o._`Array.isArray(${t})`;break;case"object":a=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=s(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=s();break;default:return o._`typeof ${t} ${i} ${e}`}return n===c.Correct?a:(0,o.not)(a);function s(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function _(e,t,r,n){if(1===e.length)return d(e[0],t,r,n);let i;const a=(0,s.toHash)(e);if(a.array&&a.object){const e=o._`typeof ${t} != "object"`;i=a.null?e:o._`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else i=o.nil;a.number&&delete a.integer;for(const e in a)i=(0,o.and)(i,d(e,t,r,n));return i}t.checkDataType=d,t.checkDataTypes=_;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:r,schema:n}=e,i=(0,s.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}(e);(0,a.reportError)(t,f)}t.reportTypeError=p},313:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const n=r(3487),i=r(6776);function a(e,t,r){const{gen:a,compositeRule:o,data:s,opts:c}=e;if(void 0===r)return;const l=n._`${s}${(0,n.getProperty)(t)}`;if(o)return void(0,i.checkStrictMode)(e,`default is ignored for: ${l}`);let u=n._`${l} === undefined`;"empty"===c.useDefaults&&(u=n._`${u} || ${l} === null || ${l} === ""`),a.if(u,n._`${l} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)a(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>a(e,r,t.default)))}},4815:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const n=r(5667),i=r(453),a=r(8876),o=r(453),s=r(313),c=r(5005),l=r(3099),u=r(3487),d=r(2141),_=r(2531),f=r(6776),p=r(4181);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},a){i.code.es5?e.func(t,u._`${d.default.data}, ${d.default.valCxt}`,n.$async,(()=>{e.code(u._`"use strict"; ${g(r,i)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,u._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,u._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,u._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,u._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,u._`""`),e.var(d.default.parentData,u._`undefined`),e.var(d.default.parentDataProperty,u._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(a)})):e.func(t,u._`${d.default.data}, ${function(e){return u._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?u._`, ${d.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,n.$async,(()=>e.code(g(r,i)).code(a)))}function g(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?u._`/*# sourceURL=${r} */`:u.nil}function y({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function v(e){return"boolean"!=typeof e.schema}function h(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function x(e,t){if(e.opts.jtd)return D(e,[],!1,t);const r=(0,i.getSchemaTypes)(e.schema);D(e,r,!(0,i.coerceAndCheckDataType)(e,r),t)}function b({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const a=r.$comment;if(!0===i.$comment)e.code(u._`${d.default.self}.logger.log(${a})`);else if("function"==typeof i.$comment){const r=u.str`${n}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${d.default.self}.opts.$comment(${a}, ${r}, ${i}.schema)`)}}function D(e,t,r,n){const{gen:i,schema:s,data:c,allErrors:l,opts:_,self:p}=e,{RULES:m}=p;function g(f){(0,a.shouldUseGroup)(s,f)&&(f.type?(i.if((0,o.checkDataType)(f.type,c,_.strictNumbers)),S(e,f),1===t.length&&t[0]===f.type&&r&&(i.else(),(0,o.reportTypeError)(e)),i.endIf()):S(e,f),l||i.if(u._`${d.default.errors} === ${n||0}`))}!s.$ref||!_.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(s,m)?(_.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{T(e.dataTypes,t)||C(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const r=[];for(const n of e.dataTypes)T(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&C(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if("object"==typeof i&&(0,a.shouldUseRule)(e.schema,i)){const{type:r}=i.definition;r.length&&!r.some((e=>{return n=e,(r=t).includes(n)||"number"===n&&r.includes("integer");var r,n}))&&C(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):i.block((()=>k(e,"$ref",m.all.$ref.definition)))}function S(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,a.shouldUseRule)(n,r)&&k(e,r.keyword,r.definition,t.type)}))}function T(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function C(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){v(e)&&(h(e),y(e))?function(e){const{schema:t,opts:r,gen:n}=e;m(e,(()=>{r.$comment&&t.$comment&&b(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(d.default.vErrors,null),n.let(d.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",u._`${r}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),x(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:a}=e;r.$async?t.if(u._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(u._`new ${i}(${d.default.vErrors})`))):(t.assign(u._`${n}.errors`,d.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof u.Name&&e.assign(u._`${t}.props`,r),n instanceof u.Name&&e.assign(u._`${t}.items`,n)}(e),t.return(u._`${d.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,n.topBoolOrEmptySchema)(e)))};class E{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",P(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,u.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=u.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:i,def:a}=this;r.if((0,u.or)(u._`${n} === undefined`,t)),e!==u.nil&&r.assign(e,!0),(i.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,u.or)(function(){if(r.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return u._`${(0,o.checkDataTypes)(e,t,i.opts.strictNumbers,o.DataType.Wrong)}`}return u.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return u._`!${r}(${t})`}return u.nil}())}subschema(e,t){const r=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(r,this.it,e),(0,l.extendSubschemaMode)(r,e);const i={...this.it,...r,items:void 0,props:void 0};return function(e,t){v(e)&&(h(e),y(e))?function(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&b(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,_.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",d.default.errors);x(e,a),n.var(t,u._`${a} === ${d.default.errors}`)}(e,t):(0,n.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=f.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=f.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function k(e,t,r,n){const i=new E(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,c.funcKeywordCode)(i,r):"macro"in r?(0,c.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(i,r)}t.KeywordCxt=E;const N=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function P(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,a;if(""===e)return d.default.rootData;if("/"===e[0]){if(!N.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,a=d.default.rootData}else{const o=A.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+o[1];if(i=o[2],"#"===i){if(s>=t)throw new Error(c("property/index",s));return n[t-s]}if(s>t)throw new Error(c("data",s));if(a=r[t-s],!i)return a}let o=a;const s=i.split("/");for(const e of s)e&&(a=u._`${a}${(0,u.getProperty)((0,f.unescapeJsonPointer)(e))}`,o=u._`${o} && ${a}`);return o;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=P},5005:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const n=r(3487),i=r(2141),a=r(412),o=r(4181);function s(e){const{gen:t,data:r,it:i}=e;t.if(i.parentData,(()=>t.assign(r,n._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){const{gen:r,keyword:i,schema:a,parentSchema:o,it:s}=e,l=t.macro.call(s.self,a,o,s),u=c(r,i,l);!1!==s.opts.validateSchema&&s.self.validateSchema(l,!0);const d=r.name("valid");e.subschema({schema:l,schemaPath:n.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var r;const{gen:l,keyword:u,schema:d,parentSchema:_,$data:f,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,t);const m=!f&&t.compile?t.compile.call(p.self,d,_,p):t.validate,g=c(l,u,m),y=l.let("valid");function v(r=(t.async?n._`await `:n.nil)){const o=p.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!f||!1===t.schema);l.assign(y,n._`${r}${(0,a.callValidateCode)(e,g,o,s)}`,t.modifying)}function h(e){var r;l.if((0,n.not)(null!==(r=t.valid)&&void 0!==r?r:y),e)}e.block$data(y,(function(){if(!1===t.errors)v(),t.modifying&&s(e),h((()=>e.error()));else{const r=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>v(n._`await `)),(t=>l.assign(y,!1).if(n._`${t} instanceof ${p.ValidationError}`,(()=>l.assign(e,n._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=n._`${g}.errors`;return l.assign(e,null),v(n.nil),e}();t.modifying&&s(e),h((()=>function(e,t){const{gen:r}=e;r.if(n._`Array.isArray(${t})`,(()=>{r.assign(i.default.vErrors,n._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,n._`${i.default.vErrors}.length`),(0,o.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw new Error("ajv implementation error");const o=i.dependencies;if(null==o?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}},3099:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const n=r(3487),i=r(6776);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:a,schemaPath:o,errSchemaPath:s,topSchemaRef:c}){if(void 0!==t&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const a=e.schema[t];return void 0===r?{schema:a,schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:n._`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(r)}`}}if(void 0!==a){if(void 0===o||void 0===s||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:a,data:o,dataTypes:s,propertyName:c}){if(void 0!==o&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==r){const{errorPath:o,dataPathArr:s,opts:c}=t;u(l.let("data",n._`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=n.str`${o}${(0,i.getErrorPath)(r,a,c.jsPropertySyntax)}`,e.parentDataProperty=n._`${r}`,e.dataPathArr=[...s,e.parentDataProperty]}function u(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==o&&(u(o instanceof n.Name?o:l.let("data",o,!0)),void 0!==c&&(e.propertyName=c)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r}},7159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=r(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const a=r(7426),o=r(6646),s=r(3141),c=r(5173),l=r(3487),u=r(2531),d=r(453),_=r(6776),f=r(4775),p=r(3589),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},h={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function x(e){var t,r,n,i,a,o,s,c,l,u,d,_,f,g,y,v,h,x,b,D,S,T,C,E,k;const N=e.strict,A=null===(t=e.code)||void 0===t?void 0:t.optimize,P=!0===A||void 0===A?1:A||0,F=null!==(n=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==n?n:m,w=null!==(i=e.uriResolver)&&void 0!==i?i:p.default;return{strictSchema:null===(o=null!==(a=e.strictSchema)&&void 0!==a?a:N)||void 0===o||o,strictNumbers:null===(c=null!==(s=e.strictNumbers)&&void 0!==s?s:N)||void 0===c||c,strictTypes:null!==(u=null!==(l=e.strictTypes)&&void 0!==l?l:N)&&void 0!==u?u:"log",strictTuples:null!==(_=null!==(d=e.strictTuples)&&void 0!==d?d:N)&&void 0!==_?_:"log",strictRequired:null!==(g=null!==(f=e.strictRequired)&&void 0!==f?f:N)&&void 0!==g&&g,code:e.code?{...e.code,optimize:P,regExp:F}:{optimize:P,regExp:F},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(v=e.loopEnum)&&void 0!==v?v:200,meta:null===(h=e.meta)||void 0===h||h,messages:null===(x=e.messages)||void 0===x||x,inlineRefs:null===(b=e.inlineRefs)||void 0===b||b,schemaId:null!==(D=e.schemaId)&&void 0!==D?D:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(T=e.validateSchema)||void 0===T||T,validateFormats:null===(C=e.validateFormats)||void 0===C||C,unicodeRegExp:null===(E=e.unicodeRegExp)||void 0===E||E,int32range:null===(k=e.int32range)||void 0===k||k,uriResolver:w}}class b{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...x(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:y,es5:t,lines:r}),this.logger=function(e){if(!1===e)return N;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),D.call(this,v,e,"NOT SUPPORTED"),D.call(this,h,e,"DEPRECATED","warn"),this._metaOpts=k.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),T.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let n=f;"id"===r&&(n={...f},n.id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await i.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function i(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),a.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await l.call(this,e);this.refs[e]||await i.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,n=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(P.call(this,r,t),!t)return(0,_.eachItem)(r,(e=>F.call(this,e))),this;I.call(this,t);const n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,_.eachItem)(r,0===n.type.length?e=>F.call(this,e,n):e=>n.type.forEach((t=>F.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=i[e];n&&a&&(i[e]=O(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let a;const{schemaId:o}=this.opts;if("object"==typeof e)a=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;r=(0,u.normalizeId)(a||r);const l=u.getSchemaRefs.call(this,e,r);return s=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:l}),this._cache.set(s.schema,s),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=s),n&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function D(e,t,r,n="error"){for(const i in e){const a=i;a in t&&this.logger[n](`${r}: option ${i}. ${e[a]}`)}}function S(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function T(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function C(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function k(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=b,b.ValidationError=a.default,b.MissingRefError=o.default;const N={log(){},warn(){},error(){}},A=/^[a-z_$][a-z0-9_$:-]*$/i;function P(e,t){const{RULES:r}=this;if((0,_.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!A.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function F(e,t,r){var n;const i=null==t?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let o=i?a.post:a.rules.find((({type:e})=>e===r));if(o||(o={type:r,rules:[]},a.rules.push(o)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?w.call(this,o,s,t.before):o.rules.push(s),a.all[e]=s,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function w(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=O(t)),e.validateSchema=this.compile(t,!0))}const M={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function O(e){return{anyOf:[e,M]}}},3510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4063);n.code='require("ajv/dist/runtime/equal").default',t.default=n},4499:function(e,t){"use strict";function r(e){const t=e.length;let r,n=0,i=0;for(;i=55296&&r<=56319&&in.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?o(e,n):(0,i.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function o(e,t){const{gen:r,schema:a,data:o,keyword:s,it:c}=e;c.items=!0;const l=r.const("len",n._`${o}.length`);if(!1===a)e.setParams({len:t.length}),e.pass(n._`${l} <= ${t.length}`);else if("object"==typeof a&&!(0,i.alwaysValidSchema)(c,a)){const a=r.var("valid",n._`${l} <= ${t.length}`);r.if((0,n.not)(a),(()=>function(a){r.forRange("i",t.length,l,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},a),c.allErrors||r.if((0,n.not)(a),(()=>r.break()))}))}(a))),e.ok(a)}}t.validateAdditionalItems=o,t.default=a},9351:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),a=r(2141),o=r(6776),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:d,opts:_}=u;if(u.props=!0,"all"!==_.removeAdditional&&(0,o.alwaysValidSchema)(u,r))return;const f=(0,n.allSchemaProperties)(s.properties),p=(0,n.allSchemaProperties)(s.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function g(n){if("all"===_.removeAdditional||_.removeAdditional&&!1===r)m(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(d||t.break());if("object"==typeof r&&!(0,o.alwaysValidSchema)(u,r)){const r=t.name("valid");"failing"===_.removeAdditional?(y(n,r,!1),t.if((0,i.not)(r),(()=>{e.reset(),m(n)}))):(y(n,r),d||t.if((0,i.not)(r),(()=>t.break())))}}}function y(t,r,n){const i={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,r)}t.forIn("key",c,(r=>{f.length||p.length?t.if(function(r){let a;if(f.length>8){const e=(0,o.schemaRefOrVal)(u,s.properties,"properties");a=(0,n.isOwnProperty)(t,e,r)}else a=f.length?(0,i.or)(...f.map((e=>i._`${r} === ${e}`))):i.nil;return p.length&&(a=(0,i.or)(a,...p.map((t=>i._`${(0,n.usePattern)(e,t)}.test(${r})`)))),(0,i.not)(a)}(r),(()=>g(r))):g(r)})),e.ok(i._`${l} === ${a.default.errors}`)}};t.default=s},1125:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;const o=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a),e.mergeEvaluated(o)}))}};t.default=i},19:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(412).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=n},9864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?n.str`must contain at least ${e} valid item(s)`:n.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?n._`{minContains: ${e}}`:n._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:o,it:s}=e;let c,l;const{minContains:u,maxContains:d}=a;s.opts.next?(c=void 0===u?1:u,l=d):c=1;const _=t.const("len",n._`${o}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,r)){let t=n._`${_} >= ${c}`;return void 0!==l&&(t=n._`${t} && ${_} <= ${l}`),void e.pass(t)}s.items=!0;const f=t.name("valid");function p(){const e=t.name("_valid"),r=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(n._`${e}++`),void 0===l?t.if(n._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(n._`${e} > ${l}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(n._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(r)))))}function m(r,n){t.forRange("i",0,_,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},r),n()}))}void 0===l&&1===c?m(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==l&&t.if(n._`${o}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,(()=>e.reset()))}};t.default=a},7772:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const n=r(3487),i=r(6776),a=r(412);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const i=1===t?"property":"properties";return n.str`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>n._`{property: ${e}, +!function(){var e={2303:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(3225),t),i(n(3686),t),i(n(9363),t),i(n(9524),t),i(n(8090),t),i(n(3537),t),i(n(4006),t),i(n(7155),t),i(n(6101),t),i(n(9404),t),i(n(9795),t),i(n(4836),t),i(n(6416),t),i(n(8850),t),i(n(8838),t)},3537:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.list=void 0;const i=r(n(9861)),o=n(1271),a=Symbol("List");var s,c;(c=s||(t.list=s={})).makeNode=function(e){return(0,o.assert)(i.default.isNode(e)),{value:e}},c.make=function(...e){if((0,o.assert)(e.every((e=>i.default.isNode(e))),"Not all List values were a luau.Node"),e.length>0){const t=i.default.list.makeNode(e[0]);let n=t;for(let t=1;t{i.default.list.push(t,{...e})})),t},c.push=function(e,t){(0,o.assert)(i.default.isNode(t)),(0,o.assert)(!e.readonly);const n=i.default.list.makeNode(t);e.tail?(e.tail.next=n,n.prev=e.tail):e.head=n,e.tail=n},c.pushList=function(e,t){(0,o.assert)(!e.readonly),(0,o.assert)(!t.readonly),t.readonly=!0,t.head&&t.tail&&(e.head&&e.tail?(e.tail.next=t.head,t.head.prev=e.tail,e.tail=t.tail):(e.head=t.head,e.tail=t.tail))},c.shift=function(e){if((0,o.assert)(!e.readonly),e.head){const t=e.head;return t.next?(e.head=t.next,t.next.prev=void 0):(e.tail=void 0,e.head=void 0),t.value}},c.unshift=function(e,t){(0,o.assert)(i.default.isNode(t)),(0,o.assert)(!e.readonly);const n=i.default.list.makeNode(t);e.head?(e.head.prev=n,n.next=e.head):e.tail=n,e.head=n},c.unshiftList=function(e,t){(0,o.assert)(!e.readonly),(0,o.assert)(!t.readonly),t.readonly=!0,t.head&&t.tail&&(e.head&&e.tail?(e.head.prev=t.tail,t.tail.next=e.head,e.head=t.head):(e.head=t.head,e.tail=t.tail))},c.isEmpty=function(e){return void 0===e.head},c.isNonEmpty=function(e){return void 0!==e.head},c.forEach=function(e,t){let n=e.head;for(;n;)t(n.value),n=n.next},c.forEachListNode=function(e,t){let n=e.head;for(;n;)t(n),n=n.next},c.mapToArray=function(e,t){const n=new Array;return i.default.list.forEach(e,(e=>n.push(t(e)))),n},c.toArray=function(e){const t=new Array;return i.default.list.forEach(e,(e=>t.push(e))),t},c.every=function(e,t){let n=e.head;for(;n;){if(!t(n.value))return!1;n=n.next}return!0},c.some=function(e,t){let n=e.head;for(;n;){if(t(n.value))return!0;n=n.next}return!1},c.size=function(e){let t=0,n=e.head;for(;n;)t++,n=n.next;return t}},9524:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.call=t.property=t.unary=t.binary=t.mixedTable=t.map=t.set=t.array=t.comment=t.id=t.string=t.number=t.bool=t.nil=t.none=t.tempId=t.create=void 0;const a=o(n(2303));t.create=function(e,t){const n=Object.assign({kind:e},t);for(const[e,r]of Object.entries(t))if(a.isNode(r))if(r.parent){const t={...r};t.parent=n,n[e]=t}else r.parent=n;else a.list.isList(r)&&a.list.forEachListNode(r,(e=>{if(e.value.parent){const t={...e.value};t.parent=n,e.value=t}else e.value.parent=n}));return n};let s=0;t.tempId=function(e=""){return a.create(a.SyntaxKind.TemporaryIdentifier,{name:e,id:s++})},t.none=function(){return a.create(a.SyntaxKind.None,{})},t.nil=function(){return a.create(a.SyntaxKind.NilLiteral,{})},t.bool=function(e){return e?a.create(a.SyntaxKind.TrueLiteral,{}):a.create(a.SyntaxKind.FalseLiteral,{})},t.number=function(e){return e>=0?a.create(a.SyntaxKind.NumberLiteral,{value:String(e)}):a.create(a.SyntaxKind.UnaryExpression,{operator:"-",expression:a.number(Math.abs(e))})},t.string=function(e){return a.create(a.SyntaxKind.StringLiteral,{value:e})},t.id=function(e){return a.create(a.SyntaxKind.Identifier,{name:e})},t.comment=function(e){return a.create(a.SyntaxKind.Comment,{text:e})},t.array=function(e=[]){return a.create(a.SyntaxKind.Array,{members:a.list.make(...e)})},t.set=function(e=[]){return a.create(a.SyntaxKind.Set,{members:a.list.make(...e)})},t.map=function(e=[]){return a.create(a.SyntaxKind.Map,{fields:a.list.make(...e.map((([e,t])=>a.create(a.SyntaxKind.MapField,{index:e,value:t}))))})},t.mixedTable=function(e=[]){return a.create(a.SyntaxKind.MixedTable,{fields:a.list.make(...e.map((e=>Array.isArray(e)?a.create(a.SyntaxKind.MapField,{index:e[0],value:e[1]}):e)))})},t.binary=function(e,t,n){return a.create(a.SyntaxKind.BinaryExpression,{left:e,operator:t,right:n})},t.unary=function(e,t){return a.create(a.SyntaxKind.UnaryExpression,{operator:e,expression:t})},t.property=function(e,t){return a.create(a.SyntaxKind.PropertyAccessExpression,{expression:e,name:t})},t.call=function(e,t=[]){return a.create(a.SyntaxKind.CallExpression,{expression:e,args:a.list.make(...t)})}},8090:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SyntaxKind=void 0,function(e){e[e.Identifier=0]="Identifier",e[e.TemporaryIdentifier=1]="TemporaryIdentifier",e[e.ComputedIndexExpression=2]="ComputedIndexExpression",e[e.PropertyAccessExpression=3]="PropertyAccessExpression",e[e.CallExpression=4]="CallExpression",e[e.MethodCallExpression=5]="MethodCallExpression",e[e.ParenthesizedExpression=6]="ParenthesizedExpression",e[e.None=7]="None",e[e.NilLiteral=8]="NilLiteral",e[e.FalseLiteral=9]="FalseLiteral",e[e.TrueLiteral=10]="TrueLiteral",e[e.NumberLiteral=11]="NumberLiteral",e[e.StringLiteral=12]="StringLiteral",e[e.VarArgsLiteral=13]="VarArgsLiteral",e[e.FunctionExpression=14]="FunctionExpression",e[e.BinaryExpression=15]="BinaryExpression",e[e.UnaryExpression=16]="UnaryExpression",e[e.IfExpression=17]="IfExpression",e[e.Array=18]="Array",e[e.Map=19]="Map",e[e.Set=20]="Set",e[e.MixedTable=21]="MixedTable",e[e.Assignment=22]="Assignment",e[e.BreakStatement=23]="BreakStatement",e[e.CallStatement=24]="CallStatement",e[e.ContinueStatement=25]="ContinueStatement",e[e.DoStatement=26]="DoStatement",e[e.WhileStatement=27]="WhileStatement",e[e.RepeatStatement=28]="RepeatStatement",e[e.IfStatement=29]="IfStatement",e[e.NumericForStatement=30]="NumericForStatement",e[e.ForStatement=31]="ForStatement",e[e.FunctionDeclaration=32]="FunctionDeclaration",e[e.MethodDeclaration=33]="MethodDeclaration",e[e.VariableDeclaration=34]="VariableDeclaration",e[e.ReturnStatement=35]="ReturnStatement",e[e.Comment=36]="Comment",e[e.MapField=37]="MapField",e[e.FirstIndexableExpression=0]="FirstIndexableExpression",e[e.LastIndexableExpression=6]="LastIndexableExpression",e[e.FirstExpression=0]="FirstExpression",e[e.LastExpression=20]="LastExpression",e[e.FirstStatement=22]="FirstStatement",e[e.LastStatement=36]="LastStatement",e[e.FirstField=37]="FirstField",e[e.LastField=37]="LastField"}(n||(t.SyntaxKind=n={}))},8850:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.globals=void 0;const a=o(n(2303)),s=a.id("coroutine"),c=a.id("math"),l=a.id("string"),u=a.id("table"),_=a.id("utf8");t.globals={_G:a.id("_G"),TS:a.id("TS"),assert:a.id("assert"),bit32:a.id("bit32"),coroutine:{yield:a.property(s,"yield")},error:a.id("error"),exports:a.id("exports"),getmetatable:a.id("getmetatable"),ipairs:a.id("ipairs"),next:a.id("next"),pairs:a.id("pairs"),pcall:a.id("pcall"),require:a.id("require"),script:a.id("script"),select:a.id("select"),self:a.id("self"),setmetatable:a.id("setmetatable"),string:{byte:a.property(l,"byte"),find:a.property(l,"find"),format:a.property(l,"format"),gmatch:a.property(l,"gmatch"),gsub:a.property(l,"gsub"),lower:a.property(l,"lower"),match:a.property(l,"match"),rep:a.property(l,"rep"),reverse:a.property(l,"reverse"),split:a.property(l,"split"),sub:a.property(l,"sub"),upper:a.property(l,"upper")},super:a.id("super"),table:{clear:a.property(u,"clear"),concat:a.property(u,"concat"),create:a.property(u,"create"),find:a.property(u,"find"),insert:a.property(u,"insert"),move:a.property(u,"move"),remove:a.property(u,"remove"),sort:a.property(u,"sort")},utf8:{charpattern:a.property(_,"charpattern"),codes:a.property(_,"codes")},math:{min:a.property(c,"min")},tostring:a.id("tostring"),type:a.id("type"),typeof:a.id("typeof"),unpack:a.id("unpack"),game:a.id("game")}},8838:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.strings=void 0;const a=o(n(2303));t.strings={__index:a.string("__index"),__tostring:a.string("__tostring"),__mode:a.string("__mode"),k:a.string("k"),number:a.string("number"),table:a.string("table"),success:a.string("success"),value:a.string("value"),error:a.string("error"),", ":a.string(", ")}},4006:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isWritableExpression=t.isCall=t.isFinalStatement=t.isTable=t.isSimplePrimitive=t.isSimple=t.isNode=t.isField=t.isMapField=t.isStatement=t.isComment=t.isReturnStatement=t.isVariableDeclaration=t.isMethodDeclaration=t.isFunctionDeclaration=t.isForStatement=t.isNumericForStatement=t.isIfStatement=t.isRepeatStatement=t.isWhileStatement=t.isDoStatement=t.isContinueStatement=t.isCallStatement=t.isBreakStatement=t.isAssignment=t.isExpression=t.isMixedTable=t.isSet=t.isMap=t.isArray=t.isIfExpression=t.isUnaryExpression=t.isBinaryExpression=t.isFunctionExpression=t.isVarArgsLiteral=t.isStringLiteral=t.isNumberLiteral=t.isTrueLiteral=t.isFalseLiteral=t.isNilLiteral=t.isNone=t.isIndexableExpression=t.isParenthesizedExpression=t.isMethodCallExpression=t.isCallExpression=t.isPropertyAccessExpression=t.isComputedIndexExpression=t.isTemporaryIdentifier=t.isIdentifier=t.isAnyIdentifier=void 0,t.isExpressionWithPrecedence=t.hasStatements=t.isFunctionLike=void 0;const a=o(n(2303));function s(...e){const t=new Set(e);return e=>t.has(e.kind)}t.isAnyIdentifier=s(a.SyntaxKind.Identifier,a.SyntaxKind.TemporaryIdentifier),t.isIdentifier=s(a.SyntaxKind.Identifier),t.isTemporaryIdentifier=s(a.SyntaxKind.TemporaryIdentifier),t.isComputedIndexExpression=s(a.SyntaxKind.ComputedIndexExpression),t.isPropertyAccessExpression=s(a.SyntaxKind.PropertyAccessExpression),t.isCallExpression=s(a.SyntaxKind.CallExpression),t.isMethodCallExpression=s(a.SyntaxKind.MethodCallExpression),t.isParenthesizedExpression=s(a.SyntaxKind.ParenthesizedExpression),t.isIndexableExpression=function(e){return e.kind>=a.SyntaxKind.FirstIndexableExpression&&e.kind<=a.SyntaxKind.LastIndexableExpression},t.isNone=s(a.SyntaxKind.None),t.isNilLiteral=s(a.SyntaxKind.NilLiteral),t.isFalseLiteral=s(a.SyntaxKind.FalseLiteral),t.isTrueLiteral=s(a.SyntaxKind.TrueLiteral),t.isNumberLiteral=s(a.SyntaxKind.NumberLiteral),t.isStringLiteral=s(a.SyntaxKind.StringLiteral),t.isVarArgsLiteral=s(a.SyntaxKind.VarArgsLiteral),t.isFunctionExpression=s(a.SyntaxKind.FunctionExpression),t.isBinaryExpression=s(a.SyntaxKind.BinaryExpression),t.isUnaryExpression=s(a.SyntaxKind.UnaryExpression),t.isIfExpression=s(a.SyntaxKind.IfExpression),t.isArray=s(a.SyntaxKind.Array),t.isMap=s(a.SyntaxKind.Map),t.isSet=s(a.SyntaxKind.Set),t.isMixedTable=s(a.SyntaxKind.MixedTable),t.isExpression=function(e){return e.kind>=a.SyntaxKind.FirstExpression&&e.kind<=a.SyntaxKind.LastExpression},t.isAssignment=s(a.SyntaxKind.Assignment),t.isBreakStatement=s(a.SyntaxKind.BreakStatement),t.isCallStatement=s(a.SyntaxKind.CallStatement),t.isContinueStatement=s(a.SyntaxKind.ContinueStatement),t.isDoStatement=s(a.SyntaxKind.DoStatement),t.isWhileStatement=s(a.SyntaxKind.WhileStatement),t.isRepeatStatement=s(a.SyntaxKind.RepeatStatement),t.isIfStatement=s(a.SyntaxKind.IfStatement),t.isNumericForStatement=s(a.SyntaxKind.NumericForStatement),t.isForStatement=s(a.SyntaxKind.ForStatement),t.isFunctionDeclaration=s(a.SyntaxKind.FunctionDeclaration),t.isMethodDeclaration=s(a.SyntaxKind.MethodDeclaration),t.isVariableDeclaration=s(a.SyntaxKind.VariableDeclaration),t.isReturnStatement=s(a.SyntaxKind.ReturnStatement),t.isComment=s(a.SyntaxKind.Comment),t.isStatement=function(e){return e.kind>=a.SyntaxKind.FirstStatement&&e.kind<=a.SyntaxKind.LastStatement},t.isMapField=s(a.SyntaxKind.MapField),t.isField=function(e){return e.kind>=a.SyntaxKind.FirstField&&e.kind<=a.SyntaxKind.LastField},t.isNode=function(e){if("object"==typeof e&&null!==e&&"kind"in e){const{kind:t}=e;return"number"==typeof t&&t>=a.SyntaxKind.FirstIndexableExpression&&t<=a.SyntaxKind.LastField}return!1},t.isSimple=s(a.SyntaxKind.Identifier,a.SyntaxKind.TemporaryIdentifier,a.SyntaxKind.NilLiteral,a.SyntaxKind.TrueLiteral,a.SyntaxKind.FalseLiteral,a.SyntaxKind.NumberLiteral,a.SyntaxKind.StringLiteral),t.isSimplePrimitive=s(a.SyntaxKind.NilLiteral,a.SyntaxKind.TrueLiteral,a.SyntaxKind.FalseLiteral,a.SyntaxKind.NumberLiteral,a.SyntaxKind.StringLiteral),t.isTable=s(a.SyntaxKind.Array,a.SyntaxKind.Set,a.SyntaxKind.Map),t.isFinalStatement=s(a.SyntaxKind.BreakStatement,a.SyntaxKind.ReturnStatement,a.SyntaxKind.ContinueStatement),t.isCall=s(a.SyntaxKind.CallExpression,a.SyntaxKind.MethodCallExpression),t.isWritableExpression=s(a.SyntaxKind.Identifier,a.SyntaxKind.TemporaryIdentifier,a.SyntaxKind.PropertyAccessExpression,a.SyntaxKind.ComputedIndexExpression),t.isFunctionLike=s(a.SyntaxKind.FunctionDeclaration,a.SyntaxKind.FunctionExpression,a.SyntaxKind.MethodDeclaration),t.hasStatements=s(a.SyntaxKind.ForStatement,a.SyntaxKind.NumericForStatement,a.SyntaxKind.FunctionExpression,a.SyntaxKind.DoStatement,a.SyntaxKind.FunctionDeclaration,a.SyntaxKind.IfStatement,a.SyntaxKind.MethodDeclaration,a.SyntaxKind.RepeatStatement,a.SyntaxKind.WhileStatement),t.isExpressionWithPrecedence=s(a.SyntaxKind.IfExpression,a.SyntaxKind.UnaryExpression,a.SyntaxKind.BinaryExpression)},9861:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(2303));t.default=s,a(n(3147),t)},3225:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),r(n(9861))},3686:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),r(n(9861))},9363:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1271:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(`Assertion Failed! ${null!=t?t:""}\nThis is a compiler bug! Please submit a bug report here:\nhttps://github.com/roblox-ts/roblox-ts/issues`)}},7155:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getKindName=void 0;const i=r(n(9861));t.getKindName=function(e){return e===i.default.SyntaxKind.Identifier?"Identifier":e===i.default.SyntaxKind.ParenthesizedExpression?"ParenthesizedExpression":e===i.default.SyntaxKind.Set?"Set":e===i.default.SyntaxKind.Assignment?"Assignment":e===i.default.SyntaxKind.Comment?"Comment":e===i.default.SyntaxKind.MapField?"MapField":i.default.SyntaxKind[e]}},6101:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMetamethod=void 0;const n=new Set(["__index","__newindex","__call","__concat","__unm","__add","__sub","__mul","__div","__mod","__pow","__tostring","__metatable","__eq","__lt","__le","__mode","__gc","__len"]);t.isMetamethod=function(e){return n.has(e)}},9404:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedRoactClassField=t.isReservedClassField=void 0;const n=new Set(["__index","new"]);t.isReservedClassField=function(e){return n.has(e)};const r=new Set(["init"]);t.isReservedRoactClassField=function(e){return r.has(e)}},9795:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isReservedIdentifier=void 0;const r=n(8850);t.isReservedIdentifier=function(e){return Object.prototype.hasOwnProperty.call(r.globals,e)}},4836:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidIdentifier=void 0;const n=new Set(["and","break","do","else","elseif","end","false","for","function","if","in","local","nil","not","or","repeat","return","then","true","until","while"]),r=/^[A-Za-z_][A-Za-z0-9_]*$/;t.isValidIdentifier=function(e){return!n.has(e)&&r.test(e)}},6416:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidNumberLiteral=void 0;const n=/^(?:\d[\d_]*(?:\.[\d_]*)?|\.\d[\d_]*)(?:[eE][+-]?_*\d[\d_]*)?$/,r=/^0_*[bB]_*[01][01_]*$/,i=/^0_*[xX]_*[\da-fA-F][\da-fA-F_]*$/;t.isValidNumberLiteral=function(e){return n.test(e)||r.test(e)||i.test(e)}},5702:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderState=void 0,r(n(9861));const i=n(1271),o=n(6870),a=n(4458),s="\t".length;t.RenderState=class{constructor(){this.indent="",this.seenTempNodes=new Map,this.listNodesStack=new Array,this.tempIdFallback=0}pushIndent(){this.indent+="\t"}popIndent(){this.indent=this.indent.substr(s)}getTempName(e){const t=(0,a.getOrSetDefault)(this.seenTempNodes,e.id,(()=>"_"+this.tempIdFallback++));return(0,i.assert)(t),t}pushListNode(e){this.listNodesStack.push(e)}peekListNode(){return this.listNodesStack[this.listNodesStack.length-1]}popListNode(){return this.listNodesStack.pop()}newline(e){return e+"\n"}indented(e){return this.indent+e}line(e,t){let n=this.indented(e);return t&&(n+=(0,o.getEnding)(this,t)),n=this.newline(n),n}block(e){this.pushIndent();const t=e();return this.popIndent(),t}}},3147:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(2105),t),i(n(5702),t),i(n(7191),t),i(n(8309),t)},6975:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderCallExpression=void 0,r(n(9861));const i=n(3147),o=n(4276);t.renderCallExpression=function(e,t){return`${(0,i.render)(e,t.expression)}(${(0,o.renderArguments)(e,t.args)})`}},986:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderComputedIndexExpression=void 0;const i=r(n(9861)),o=n(3147);t.renderComputedIndexExpression=function(e,t){const n=(0,o.render)(e,t.expression);return i.default.isStringLiteral(t.index)&&i.default.isValidIdentifier(t.index.value)?`${n}.${t.index.value}`:`${n}[${(0,o.render)(e,t.index)}]`}},7313:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderIdentifier=void 0;const i=r(n(9861)),o=n(1271);t.renderIdentifier=function(e,t){return(0,o.assert)(i.default.isValidIdentifier(t.name),`Invalid Luau Identifier: "${t.name}"`),t.name}},5687:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMethodCallExpression=void 0;const i=r(n(9861)),o=n(1271),a=n(3147),s=n(4276);t.renderMethodCallExpression=function(e,t){return(0,o.assert)(i.default.isValidIdentifier(t.name)),`${(0,a.render)(e,t.expression)}:${t.name}(${(0,s.renderArguments)(e,t.args)})`}},857:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderParenthesizedExpression=void 0;const i=r(n(9861)),o=n(3147);t.renderParenthesizedExpression=function(e,t){let n=t.expression;for(;i.default.isParenthesizedExpression(n);)n=n.expression;return i.default.isSimple(n)?(0,o.render)(e,t.expression):`(${(0,o.render)(e,t.expression)})`}},5857:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderPropertyAccessExpression=void 0;const i=r(n(9861)),o=n(3147);t.renderPropertyAccessExpression=function(e,t){const n=(0,o.render)(e,t.expression),r=t.name;return i.default.isValidIdentifier(r)?`${n}.${r}`:`${n}["${r}"]`}},7026:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderTemporaryIdentifier=void 0;const i=r(n(9861)),o=n(1271);t.renderTemporaryIdentifier=function(e,t){const n=e.getTempName(t);return(0,o.assert)(i.default.isValidIdentifier(n),`Invalid Temporary Identifier: "${n}"`),n}},1595:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderArray=void 0;const i=r(n(9861)),o=n(3147);t.renderArray=function(e,t){return i.default.list.isEmpty(t.members)?"{}":`{ ${i.default.list.mapToArray(t.members,(t=>(0,o.render)(e,t))).join(", ")} }`}},7045:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderBinaryExpression=void 0,r(n(9861));const i=n(3147),o=n(2439);t.renderBinaryExpression=function(e,t){let n=`${(0,i.render)(e,t.left)} ${t.operator} ${(0,i.render)(e,t.right)}`;return(0,o.needsParentheses)(t)&&(n=`(${n})`),n}},6111:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderFunctionExpression=void 0;const i=r(n(9861)),o=n(1699),a=n(8309);t.renderFunctionExpression=function(e,t){if(i.default.list.isEmpty(t.statements))return`function(${(0,o.renderParameters)(e,t)}) end`;let n="";return n+=e.newline(`function(${(0,o.renderParameters)(e,t)})`),n+=e.block((()=>(0,a.renderStatements)(e,t.statements))),n+=e.indented("end"),n}},9375:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderIfExpression=void 0;const i=r(n(9861)),o=n(3147),a=n(2439);t.renderIfExpression=function(e,t){let n=`if ${(0,o.render)(e,t.condition)} then ${(0,o.render)(e,t.expression)} `,r=t.alternative;for(;i.default.isIfExpression(r);)n+=`elseif ${(0,o.render)(e,r.condition)} then ${(0,o.render)(e,r.expression)} `,r=r.alternative;return n+=`else ${(0,o.render)(e,r)}`,(0,a.needsParentheses)(t)&&(n=`(${n})`),n}},3549:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMap=void 0;const i=r(n(9861)),o=n(3147);t.renderMap=function(e,t){if(i.default.list.isEmpty(t.fields))return"{}";let n="{\n";return e.block((()=>{i.default.list.forEach(t.fields,(t=>n+=e.line(`${(0,o.render)(e,t)},`)))})),n+=e.indented("}"),n}},3033:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMixedTable=void 0;const i=r(n(9861)),o=n(3147);t.renderMixedTable=function(e,t){if(i.default.list.isEmpty(t.fields))return"{}";let n="{\n";return e.block((()=>{i.default.list.forEach(t.fields,(t=>n+=e.line(`${(0,o.render)(e,t)},`)))})),n+=e.indented("}"),n}},8170:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderNumberLiteral=void 0;const i=r(n(9861));t.renderNumberLiteral=function(e,t){return i.default.isValidNumberLiteral(t.value)?t.value:String(Number(t.value.replace(/_/g,"")))}},2761:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderSet=void 0;const i=r(n(9861)),o=n(3147);t.renderSet=function(e,t){if(i.default.list.isEmpty(t.members))return"{}";let n="{\n";return e.block((()=>{i.default.list.forEach(t.members,(t=>n+=e.line(`[${(0,o.render)(e,t)}] = true,`)))})),n+=e.indented("}"),n}},6076:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderStringLiteral=void 0;const i=r(n(9861)),o=n(5298);t.renderStringLiteral=function(e,t){const n=t.value.includes("\n");if(n||t.value.includes('"')){if(n||t.value.includes("'")){const e=(0,o.getSafeBracketEquals)(t.value),n=function(e){const t=e.parent;return!(!t||!(i.default.isMapField(t)&&e===t.index||i.default.isComputedIndexExpression(t)&&e===t.index||i.default.isSet(t)))}(t)?" ":"";return`${n}[${e}[${t.value}]${e}]${n}`}return`'${t.value}'`}return`"${t.value}"`}},6920:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderUnaryExpression=void 0;const i=r(n(9861)),o=n(3147),a=n(2439);t.renderUnaryExpression=function(e,t){let n=(0,o.render)(e,t.expression),r=t.operator;(function(e){return"not"===e.operator||!(!i.default.isUnaryExpression(e.expression)||"-"!==e.expression.operator)})(t)&&(r+=" "),function(e){return!("#"!==e.operator&&"-"!==e.operator||!i.default.isTable(e.expression))}(t)&&(n=`(${n})`);let s=`${r}${n}`;return(0,a.needsParentheses)(t)&&(s=`(${s})`),s}},8943:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMapField=void 0;const i=r(n(9861)),o=n(3147);t.renderMapField=function(e,t){const{index:n,value:r}=t,a=(0,o.render)(e,r);return i.default.isStringLiteral(n)&&i.default.isValidIdentifier(n.value)?`${n.value} = ${a}`:`[${(0,o.render)(e,n)}] = ${a}`}},5350:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderAssignment=void 0;const i=r(n(9861)),o=n(1271),a=n(3147);t.renderAssignment=function(e,t){let n,r;return i.default.list.isList(t.left)?((0,o.assert)(!i.default.list.isEmpty(t.left)),n=i.default.list.mapToArray(t.left,(t=>(0,a.render)(e,t))).join(", ")):n=(0,a.render)(e,t.left),i.default.list.isList(t.right)?((0,o.assert)(!i.default.list.isEmpty(t.right)),r=i.default.list.mapToArray(t.right,(t=>(0,a.render)(e,t))).join(", ")):r=(0,a.render)(e,t.right),e.line(`${n} ${t.operator} ${r}`,t)}},9786:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderBreakStatement=void 0,t.renderBreakStatement=function(e){return e.line("break")}},4003:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderCallStatement=void 0,r(n(9861));const i=n(3147);t.renderCallStatement=function(e,t){return e.line(`${(0,i.render)(e,t.expression)}`,t)}},279:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderComment=void 0,r(n(9861));const i=n(5298);t.renderComment=function(e,t){const n=t.text.split("\n");if(n.length>1){const r=(0,i.getSafeBracketEquals)(t.text);let o=e.line(`--[${r}[`);return o+=e.block((()=>n.map((t=>e.line(t))).join(""))),o+=e.line(`]${r}]`),o}return n.map((t=>e.line(`--${t}`))).join("")}},5415:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderContinueStatement=void 0,t.renderContinueStatement=function(e){return e.line("continue")}},3361:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderDoStatement=void 0,r(n(9861));const i=n(8309);t.renderDoStatement=function(e,t){let n="";return n+=e.line("do"),n+=e.block((()=>(0,i.renderStatements)(e,t.statements))),n+=e.line("end"),n}},4618:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderForStatement=void 0;const i=r(n(9861)),o=n(3147),a=n(8309);t.renderForStatement=function(e,t){const n=i.default.list.mapToArray(t.ids,(t=>(0,o.render)(e,t))).join(", ")||"_",r=(0,o.render)(e,t.expression);let s="";return s+=e.line(`for ${n} in ${r} do`),s+=e.block((()=>(0,a.renderStatements)(e,t.statements))),s+=e.line("end"),s}},8784:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderFunctionDeclaration=void 0;const i=r(n(9861)),o=n(1271),a=n(3147),s=n(1699),c=n(8309);t.renderFunctionDeclaration=function(e,t){t.localize&&(0,o.assert)(i.default.isAnyIdentifier(t.name),"local function cannot be a property");const n=(0,a.render)(e,t.name),r=(0,s.renderParameters)(e,t);let l="";return l+=e.line(`${t.localize?"local ":""}function ${n}(${r})`),l+=e.block((()=>(0,c.renderStatements)(e,t.statements))),l+=e.line("end"),l}},1616:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderIfStatement=void 0;const i=r(n(9861)),o=n(3147),a=n(8309);t.renderIfStatement=function(e,t){let n="";n+=e.line(`if ${(0,o.render)(e,t.condition)} then`),n+=e.block((()=>(0,a.renderStatements)(e,t.statements)));let r=t.elseBody;for(;i.default.isNode(r);){const t=r.statements;n+=e.line(`elseif ${(0,o.render)(e,r.condition)} then`),n+=e.block((()=>(0,a.renderStatements)(e,t))),r=r.elseBody}if(r&&i.default.list.isNonEmpty(r)){n+=e.line("else");const t=r;n+=e.block((()=>(0,a.renderStatements)(e,t)))}return n+=e.line("end"),n}},5081:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderMethodDeclaration=void 0,r(n(9861));const i=n(3147),o=n(1699),a=n(8309);t.renderMethodDeclaration=function(e,t){let n="";return n+=e.line(`function ${(0,i.render)(e,t.expression)}:${t.name}(${(0,o.renderParameters)(e,t)})`),n+=e.block((()=>(0,a.renderStatements)(e,t.statements))),n+=e.line("end"),n}},289:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderNumericForStatement=void 0;const i=r(n(9861)),o=n(3147),a=n(8309);t.renderNumericForStatement=function(e,t){const n=(0,o.render)(e,t.id);let r=`${(0,o.render)(e,t.start)}, ${(0,o.render)(e,t.end)}`;!t.step||i.default.isNumberLiteral(t.step)&&1===Number(t.step.value)||(r+=`, ${(0,o.render)(e,t.step)}`);let s="";return s+=e.line(`for ${n} = ${r} do`),s+=e.block((()=>(0,a.renderStatements)(e,t.statements))),s+=e.line("end"),s}},9151:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderRepeatStatement=void 0,r(n(9861));const i=n(3147),o=n(8309);t.renderRepeatStatement=function(e,t){let n="";return n+=e.line("repeat"),n+=e.block((()=>(0,o.renderStatements)(e,t.statements))),n+=e.line(`until ${(0,i.render)(e,t.condition)}`),n}},5931:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderReturnStatement=void 0;const i=r(n(9861)),o=n(3147);t.renderReturnStatement=function(e,t){const n=i.default.list.isList(t.expression)?i.default.list.mapToArray(t.expression,(t=>(0,o.render)(e,t))).join(", "):(0,o.render)(e,t.expression);return e.line(`return ${n}`)}},8668:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderVariableDeclaration=void 0;const i=r(n(9861)),o=n(1271),a=n(3147);t.renderVariableDeclaration=function(e,t){let n;if(i.default.list.isList(t.left)?((0,o.assert)(!i.default.list.isEmpty(t.left)),n=i.default.list.mapToArray(t.left,(t=>(0,a.render)(e,t))).join(", ")):n=(0,a.render)(e,t.left),t.right){let r;return i.default.list.isList(t.right)?((0,o.assert)(!i.default.list.isEmpty(t.right)),r=i.default.list.mapToArray(t.right,(t=>(0,a.render)(e,t))).join(", ")):r=(0,a.render)(e,t.right),e.line(`local ${n} = ${r}`,t)}return e.line(`local ${n}`,t)}},7539:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderWhileStatement=void 0,r(n(9861));const i=n(3147),o=n(8309);t.renderWhileStatement=function(e,t){let n="";return n+=e.line(`while ${(0,i.render)(e,t.condition)} do`),n+=e.block((()=>(0,o.renderStatements)(e,t.statements))),n+=e.line("end"),n}},2105:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderAST=t.render=void 0;const i=r(n(9861)),o=n(1271),a=(n(7155),n(6975)),s=n(986),c=n(7313),l=n(5687),u=n(857),_=n(5857),d=n(7026),f=n(1595),p=n(7045),m=n(6111),g=n(9375),h=n(3549),y=n(3033),v=n(8170),b=n(2761),x=n(6076),S=n(6920),k=n(8943),T=n(5350),C=n(9786),w=n(4003),E=n(279),D=n(5415),N=n(3361),A=n(4618),P=n(8784),F=n(1616),I=n(5081),O=n(289),M=n(9151),L=n(5931),R=n(8668),j=n(7539),B=n(5702),J=n(7191),z=n(9007),$=n(8309),V=(n(7173),(0,z.identity)({[i.default.SyntaxKind.Identifier]:c.renderIdentifier,[i.default.SyntaxKind.TemporaryIdentifier]:d.renderTemporaryIdentifier,[i.default.SyntaxKind.ComputedIndexExpression]:s.renderComputedIndexExpression,[i.default.SyntaxKind.PropertyAccessExpression]:_.renderPropertyAccessExpression,[i.default.SyntaxKind.CallExpression]:a.renderCallExpression,[i.default.SyntaxKind.MethodCallExpression]:l.renderMethodCallExpression,[i.default.SyntaxKind.ParenthesizedExpression]:u.renderParenthesizedExpression,[i.default.SyntaxKind.None]:()=>(0,o.assert)(!1,"Cannot render None"),[i.default.SyntaxKind.NilLiteral]:()=>"nil",[i.default.SyntaxKind.FalseLiteral]:()=>"false",[i.default.SyntaxKind.TrueLiteral]:()=>"true",[i.default.SyntaxKind.NumberLiteral]:v.renderNumberLiteral,[i.default.SyntaxKind.StringLiteral]:x.renderStringLiteral,[i.default.SyntaxKind.VarArgsLiteral]:()=>"...",[i.default.SyntaxKind.FunctionExpression]:m.renderFunctionExpression,[i.default.SyntaxKind.BinaryExpression]:p.renderBinaryExpression,[i.default.SyntaxKind.UnaryExpression]:S.renderUnaryExpression,[i.default.SyntaxKind.IfExpression]:g.renderIfExpression,[i.default.SyntaxKind.Array]:f.renderArray,[i.default.SyntaxKind.Map]:h.renderMap,[i.default.SyntaxKind.Set]:b.renderSet,[i.default.SyntaxKind.MixedTable]:y.renderMixedTable,[i.default.SyntaxKind.Assignment]:T.renderAssignment,[i.default.SyntaxKind.BreakStatement]:C.renderBreakStatement,[i.default.SyntaxKind.CallStatement]:w.renderCallStatement,[i.default.SyntaxKind.ContinueStatement]:D.renderContinueStatement,[i.default.SyntaxKind.DoStatement]:N.renderDoStatement,[i.default.SyntaxKind.WhileStatement]:j.renderWhileStatement,[i.default.SyntaxKind.RepeatStatement]:M.renderRepeatStatement,[i.default.SyntaxKind.IfStatement]:F.renderIfStatement,[i.default.SyntaxKind.NumericForStatement]:O.renderNumericForStatement,[i.default.SyntaxKind.ForStatement]:A.renderForStatement,[i.default.SyntaxKind.FunctionDeclaration]:P.renderFunctionDeclaration,[i.default.SyntaxKind.MethodDeclaration]:I.renderMethodDeclaration,[i.default.SyntaxKind.VariableDeclaration]:R.renderVariableDeclaration,[i.default.SyntaxKind.ReturnStatement]:L.renderReturnStatement,[i.default.SyntaxKind.Comment]:E.renderComment,[i.default.SyntaxKind.MapField]:k.renderMapField}));t.render=function(e,t){return V[t.kind](e,t)},t.renderAST=function(e){const t=new B.RenderState;return(0,J.solveTempIds)(t,e),(0,$.renderStatements)(t,e)}},7191:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.solveTempIds=void 0;const i=r(n(9861)),o=n(1271),a=n(7173);function s(e){return i.default.isForStatement(e)||i.default.isNumericForStatement(e)||i.default.isFunctionLike(e)}function c(e,t){var n,r;if(e.parent){if(i.default.hasStatements(e.parent)&&e===(null===(n=e.parent.statements[t])||void 0===n?void 0:n.value))return!0;if(i.default.isIfStatement(e.parent)&&i.default.list.isList(e.parent.elseBody)&&e===(null===(r=e.parent.elseBody[t])||void 0===r?void 0:r.value))return!0}return!1}function l(e){return{ids:new Set,lastTry:new Map,parent:e}}function u(e,t){return!!e.ids.has(t)||!!e.parent&&u(e.parent,t)}t.solveTempIds=function(e,t){var n;const r=new Array,_=new Map,d=[l()];function f(){d.push(l(m()))}function p(){return d.pop()}function m(){const e=d[d.length-1];return(0,o.assert)(e),e}function g(e){m().ids.add(e)}(0,a.visit)(t,{before:e=>{s(e)&&f(),(e=>c(e,"head"))(e)&&f(),i.default.isTemporaryIdentifier(e)?(_.set(e,m()),r.push(e)):i.default.isVariableDeclaration(e)?i.default.list.isList(e.left)?i.default.list.forEach(e.left,(e=>{i.default.isIdentifier(e)&&g(e.name)})):i.default.isIdentifier(e.left)&&g(e.left.name):i.default.isFunctionLike(e)&&i.default.list.forEach(e.parameters,(e=>{i.default.isIdentifier(e)&&g(e.name)}))},after:e=>{s(e)&&p(),(e=>c(e,"tail"))(e)&&p()}});for(const t of r)if(void 0===e.seenTempNodes.get(t.id)){const r=_.get(t);(0,o.assert)(r);const i=""===t.name?"":"_";let a=`_${t.name}`,s=null!==(n=r.lastTry.get(a))&&void 0!==n?n:1;for(;u(r,a);)a=`_${t.name}${i}${s++}`;r.lastTry.set(a,s),r.ids.add(a),e.seenTempNodes.set(t.id,a)}}},6870:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getEnding=void 0;const i=r(n(9861)),o=n(1271);function a(e){return!!i.default.isIndexableExpression(e)||(i.default.isBinaryExpression(e)?a(e.right):i.default.isUnaryExpression(e)?a(e.expression):!!i.default.isIfExpression(e)&&a(e.alternative))}function s(e){if(i.default.isCallStatement(e))return!0;if(i.default.isVariableDeclaration(e)||i.default.isAssignment(e)){let t;return e.right?i.default.list.isList(e.right)?((0,o.assert)(i.default.list.isNonEmpty(e.right)),t=e.right.tail.value):t=e.right:i.default.list.isList(e.left)?((0,o.assert)(i.default.list.isNonEmpty(e.left)),t=e.left.tail.value):t=e.left,a(t)}return!1}function c(e){return!!i.default.isParenthesizedExpression(e)||!!(i.default.isCall(e)||i.default.isPropertyAccessExpression(e)||i.default.isComputedIndexExpression(e))&&c(e.expression)}t.getEnding=function(e,t){const n=function(e){var t;let n=null===(t=e.peekListNode())||void 0===t?void 0:t.next;for(;n&&i.default.isComment(n.value);)n=n.next;return null==n?void 0:n.value}(e);return void 0!==n&&s(t)&&function(e){return i.default.isCallStatement(e)?c(e.expression.expression):!!i.default.isAssignment(e)&&(i.default.list.isList(e.left)?((0,o.assert)(i.default.list.isNonEmpty(e.left)),c(e.left.head.value)):c(e.left))}(n)?";":""}},4458:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrSetDefault=void 0,t.getOrSetDefault=function(e,t,n){let r=e.get(t);return void 0===r&&(r=n(),e.set(t,r)),r}},5298:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSafeBracketEquals=void 0,t.getSafeBracketEquals=function(e){let t=0;for(;e.includes(`]${"=".repeat(t)}]`)||e.endsWith(`]${"=".repeat(t)}`);)t++;return"=".repeat(t)}},9007:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},2439:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.needsParentheses=void 0;const i=r(n(9861)),o=n(1271),a={not:7,"#":7,"-":7},s={or:1,and:2,"<":3,">":3,"<=":3,">=":3,"~=":3,"==":3,"..":4,"+":5,"-":5,"*":6,"/":6,"%":6,"^":8};function c(e){return i.default.isIfExpression(e)?1:i.default.isBinaryExpression(e)?s[e.operator]:i.default.isUnaryExpression(e)?a[e.operator]:void(0,o.assert)(!1)}t.needsParentheses=function(e){if(e.parent&&i.default.isExpressionWithPrecedence(e.parent)){const t=c(e),n=c(e.parent);if(t(0,o.render)(e,t))).join(", ")}},1699:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderParameters=void 0;const i=r(n(9861)),o=n(3147);t.renderParameters=function(e,t){const n=i.default.list.mapToArray(t.parameters,(t=>(0,o.render)(e,t)));return t.hasDotDotDot&&n.push("..."),n.join(", ")}},8309:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderStatements=void 0;const i=r(n(9861)),o=n(1271),a=n(3147);t.renderStatements=function(e,t){let n="",r=t.head,s=!1;for(;void 0!==r;)(0,o.assert)(!s||i.default.isComment(r.value),"Cannot render statement after break, continue, or return!"),s||(s=i.default.isFinalStatement(r.value)),e.pushListNode(r),n+=(0,a.render)(e,r.value),e.popListNode(),r=r.next;return n}},7173:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.visit=void 0;const i=r(n(9861)),o=()=>{},a=(0,n(9007).identity)({[i.default.SyntaxKind.Identifier]:o,[i.default.SyntaxKind.TemporaryIdentifier]:o,[i.default.SyntaxKind.ComputedIndexExpression]:(e,t)=>{s(e.expression,t),s(e.index,t)},[i.default.SyntaxKind.PropertyAccessExpression]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.CallExpression]:(e,t)=>{s(e.expression,t),c(e.args,t)},[i.default.SyntaxKind.MethodCallExpression]:(e,t)=>{s(e.expression,t),c(e.args,t)},[i.default.SyntaxKind.ParenthesizedExpression]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.None]:o,[i.default.SyntaxKind.NilLiteral]:o,[i.default.SyntaxKind.FalseLiteral]:o,[i.default.SyntaxKind.TrueLiteral]:o,[i.default.SyntaxKind.NumberLiteral]:o,[i.default.SyntaxKind.StringLiteral]:o,[i.default.SyntaxKind.VarArgsLiteral]:o,[i.default.SyntaxKind.FunctionExpression]:(e,t)=>{c(e.parameters,t),c(e.statements,t)},[i.default.SyntaxKind.BinaryExpression]:(e,t)=>{s(e.left,t),s(e.right,t)},[i.default.SyntaxKind.UnaryExpression]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.IfExpression]:(e,t)=>{s(e.condition,t),s(e.expression,t),s(e.alternative,t)},[i.default.SyntaxKind.Array]:(e,t)=>c(e.members,t),[i.default.SyntaxKind.Map]:(e,t)=>c(e.fields,t),[i.default.SyntaxKind.Set]:(e,t)=>c(e.members,t),[i.default.SyntaxKind.MixedTable]:(e,t)=>c(e.fields,t),[i.default.SyntaxKind.Assignment]:(e,t)=>{i.default.list.isList(e.left)?c(e.left,t):s(e.left,t),i.default.list.isList(e.right)?c(e.right,t):s(e.right,t)},[i.default.SyntaxKind.BreakStatement]:o,[i.default.SyntaxKind.CallStatement]:(e,t)=>s(e.expression,t),[i.default.SyntaxKind.ContinueStatement]:o,[i.default.SyntaxKind.DoStatement]:(e,t)=>c(e.statements,t),[i.default.SyntaxKind.WhileStatement]:(e,t)=>{s(e.condition,t),c(e.statements,t)},[i.default.SyntaxKind.RepeatStatement]:(e,t)=>{c(e.statements,t),s(e.condition,t)},[i.default.SyntaxKind.IfStatement]:(e,t)=>{s(e.condition,t),c(e.statements,t),i.default.list.isList(e.elseBody)?c(e.elseBody,t):s(e.elseBody,t)},[i.default.SyntaxKind.NumericForStatement]:(e,t)=>{s(e.id,t),s(e.start,t),s(e.end,t),e.step&&s(e.step,t),c(e.statements,t)},[i.default.SyntaxKind.ForStatement]:(e,t)=>{c(e.ids,t),c(e.statements,t)},[i.default.SyntaxKind.FunctionDeclaration]:(e,t)=>{s(e.name,t),c(e.parameters,t),c(e.statements,t)},[i.default.SyntaxKind.MethodDeclaration]:(e,t)=>{s(e.expression,t),c(e.parameters,t),c(e.statements,t)},[i.default.SyntaxKind.VariableDeclaration]:(e,t)=>{i.default.list.isList(e.left)?c(e.left,t):s(e.left,t),e.right&&(i.default.list.isList(e.right)?c(e.right,t):s(e.right,t))},[i.default.SyntaxKind.ReturnStatement]:(e,t)=>{i.default.list.isList(e.expression)?c(e.expression,t):s(e.expression,t)},[i.default.SyntaxKind.Comment]:o,[i.default.SyntaxKind.MapField]:(e,t)=>{s(e.index,t),s(e.value,t)}});function s(e,t){var n,r;null===(n=t.before)||void 0===n||n.call(t,e),a[e.kind](e,t),null===(r=t.after)||void 0===r||r.call(t,e)}function c(e,t){i.default.list.forEach(e,(e=>s(e,t)))}t.visit=function(e,t){i.default.list.isList(e)?c(e,t):s(e,t)}},1979:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RojoResolver=t.RbxPathParent=t.NetworkType=t.FileRelation=t.RbxType=void 0;const i=r(n(1581)),o=r(n(651)),a=r(n(6470)),s=a.default.join("/",".."),c=".lua",l=".server",u=".client",_=new i.default,d=/^.+\.project\.json$/,f="default.project.json";var p;!function(e){e[e.ModuleScript=0]="ModuleScript",e[e.Script=1]="Script",e[e.LocalScript=2]="LocalScript",e[e.Unknown=3]="Unknown"}(p||(t.RbxType=p={}));const m=new Map([["",p.ModuleScript],[l,p.Script],[u,p.LocalScript]]),g=[["StarterPack"],["StarterGui"],["StarterPlayer","StarterPlayerScripts"],["StarterPlayer","StarterCharacterScripts"],["StarterPlayer","StarterCharacter"]],h=[["StarterPack"],["StarterGui"],["StarterPlayer"]],y=[["ServerStorage"],["ServerScriptService"]];var v,b;function x(e){const t=a.default.extname(e);if(t===c){e=e.slice(0,-t.length);const n=a.default.extname(e);n!==l&&n!==u||(e=e.slice(0,-n.length))}else".json"===t&&(e=e.slice(0,-t.length));return e}function S(e,t){const n=Math.min(e.length,t.length);for(let r=0;r_.compile(JSON.parse(o.default.readFileSync(T).toString()))));t.RbxPathParent=Symbol("Parent");class w{static findRojoConfigFilePath(e){const t=new Array,n=a.default.join(e,f);if(o.default.pathExistsSync(n))return{path:n,warnings:t};const r=new Array;for(const t of o.default.readdirSync(e))t===f||"roblox-project.json"!==t&&!d.test(t)||r.push(a.default.join(e,t));return r.length>1&&t.push(`Multiple *.project.json files found, using ${r[0]}`),{path:r[0],warnings:t}}constructor(){this.warnings=new Array,this.rbxPath=new Array,this.partitions=new Array,this.filePathToRbxPathMap=new Map,this.isolatedContainers=[...g],this.isGame=!1}warn(e){this.warnings.push(e)}getWarnings(){return this.warnings}static fromPath(e){const t=new w;return t.parseConfig(a.default.resolve(e),!0),t}static synthetic(e){const t=new w;return t.parseTree(e,"",{$path:e},!0),t}static fromTree(e,t){const n=new w;return n.parseTree(e,"",t,!0),n}parseConfig(e,t=!1){const n=o.default.realpathSync(e);if(o.default.pathExistsSync(n)){let i;try{i=JSON.parse(o.default.readFileSync(n).toString())}finally{r=i,!0===C.get()(r)?this.parseTree(a.default.dirname(e),i.name,i.tree,t):this.warn(`RojoResolver: Invalid configuration! ${_.errorsText(C.get().errors)}`)}}else this.warn(`RojoResolver: Path does not exist "${e}"`);var r}parseTree(e,t,n,r=!1){r||this.rbxPath.push(t),void 0!==n.$path&&this.parsePath(a.default.resolve(e,"string"==typeof n.$path?n.$path:n.$path.optional)),"DataModel"===n.$className&&(this.isGame=!0);for(const t of Object.keys(n).filter((e=>!e.startsWith("$"))))this.parseTree(e,t,n[t]);r||this.rbxPath.pop()}parsePath(e){const t=o.default.pathExistsSync(e)?o.default.realpathSync(e):e;if(a.default.extname(e)===c)this.filePathToRbxPathMap.set(e,[...this.rbxPath]);else{const n=o.default.pathExistsSync(t)&&o.default.statSync(t).isDirectory();n&&o.default.readdirSync(t).includes(f)?this.parseConfig(a.default.join(e,f),!0):(this.partitions.unshift({fsPath:e,rbxPath:[...this.rbxPath]}),n&&this.searchDirectory(e))}}searchDirectory(e,t){const n=o.default.realpathSync(e),r=o.default.readdirSync(n);if(r.includes(f))this.parseConfig(a.default.join(e,f));else{t&&this.rbxPath.push(t);for(const t of r){const n=a.default.join(e,t),r=o.default.realpathSync(n);o.default.statSync(r).isFile()&&t!==f&&d.test(t)&&this.parseConfig(n)}for(const t of r){const n=a.default.join(e,t),r=o.default.realpathSync(n);o.default.statSync(r).isDirectory()&&this.searchDirectory(n,t)}t&&this.rbxPath.pop()}}getRbxPathFromFilePath(e){e=a.default.resolve(e);const t=this.filePathToRbxPathMap.get(e);if(t)return t;for(const t of this.partitions)if(k(e,t.fsPath)){const n=x(e),r=a.default.relative(t.fsPath,n),i=""===r?[]:r.split(a.default.sep);return"init"===i[i.length-1]&&i.pop(),t.rbxPath.concat(i)}}getRbxTypeFromFilePath(e){var t;const n=a.default.extname(a.default.basename(e,a.default.extname(e)));return null!==(t=m.get(n))&&void 0!==t?t:p.Unknown}getContainer(e,t){if(this.isGame&&t)for(const n of e)if(S(t,n))return n}getFileRelation(e,t){const n=this.getContainer(this.isolatedContainers,e),r=this.getContainer(this.isolatedContainers,t);return n&&r?n===r?v.InToIn:v.OutToIn:n&&!r?v.InToOut:!n&&r?v.OutToIn:v.OutToOut}isIsolated(e){return void 0!==this.getContainer(this.isolatedContainers,e)}getNetworkType(e){return this.getContainer(y,e)?b.Server:this.getContainer(h,e)?b.Client:b.Unknown}static relative(e,n){const r=Math.max(e.length,n.length);let i=r;for(let t=0;tthis.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var u=n(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var _=n(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return _._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return _.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return _.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return _.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return _.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return _.CodeGen}});var d=n(7426);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var f=n(6646);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},7023:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,e,t),this}get names(){return A(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class _ extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=P(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class m extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(F(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>N(e,t.names)),{})}}class g extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class h extends m{}class y extends g{}y.kind="else";class v extends g{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(I(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=P(this.condition,e,t),this}get names(){const e=super.names;return A(e,this.condition),this.else&&N(e,this.else.names),e}}v.kind="if";class b extends g{}b.kind="for";class x extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=P(this.iteration,e,t),this}get names(){return N(super.names,this.iteration.names)}}class S extends b{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=A(super.names,this.from);return A(e,this.to)}}class k extends b{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=P(this.iterable,e,t),this}get names(){return N(super.names,this.iterable.names)}}class T extends g{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}T.kind="func";class C extends m{render(e){return"return "+super.render(e)}}C.kind="return";class w extends g{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&N(e,this.catch.names),this.finally&&N(e,this.finally.names),e}}class E extends g{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class D extends g{render(e){return"finally"+super.render(e)}}function N(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function A(e,t){return t instanceof r._CodeOrName?N(e,t.names):e}function P(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function F(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${R(e)}`}D.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new c(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new l(e,t,n))}add(e,n){return this._leafNode(new u(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new p(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new v(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(v,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new x(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const a=this._scope.toName(e);return this._for(new S(o,a,t,n),(()=>r(a)))}forOf(e,t,n,o=i.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),n(a)}))}return this._for(new k("of",o,a,t),(()=>n(a)))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const a=this._scope.toName(e);return this._for(new k("in",o,a,t),(()=>n(a)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new _(e))}break(e){return this._leafNode(new d(e))}return(e){const t=new C;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new w;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new D,this.code(n)),this._endBlockNode(E,D)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new T(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=I;const O=L(t.operators.AND);t.and=function(...e){return e.reduce(O)};const M=L(t.operators.OR);function L(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${R(t)} ${e} ${R(n)}`}function R(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(M)}},8490:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(7023);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=a;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const c=r._`\n`;t.ValueScope=class extends a{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,r);const s=this._scope[i]||(this._scope[i]=[]),c=s.length;return s[c]=t.ref,r.setValue(t,{property:i,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,a={},s){let c=r.nil;for(const l in e){const u=e[l];if(!u)continue;const _=a[l]=a[l]||new Map;u.forEach((e=>{if(_.has(e))return;_.set(e,o.Started);let a=n(e);if(a){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${a};${this.opts._n}`}else{if(!(a=null==s?void 0:s(e)))throw new i(e);c=r._`${c}${a}${this.opts._n}`}_.set(e,o.Completed)}))}return c}}},4181:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(3487),i=n(6776),o=n(2141);function a(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,r._`[${n}]`)),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function s(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:c}=e,{gen:u,compositeRule:_,allErrors:d}=c,f=l(e,n,i);(null!=o?o:_||d)?a(u,f):s(c,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:c,compositeRule:u,allErrors:_}=i;a(c,l(e,n,r)),u||_||s(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:a,it:s}){if(void 0===a)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(c,r._`${o.default.vErrors}[${a}]`),e.if(r._`${c}.instancePath === undefined`,(()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(o.default.instancePath,s.errorPath)))),e.assign(r._`${c}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,i))}))};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function l(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:a}=e,s=[u(a,n),_(e,n)];return function(e,{params:t,message:n},i){const{keyword:a,data:s,schemaValue:l,it:u}=e,{opts:_,propertyName:d,topSchemaRef:f,schemaPath:p}=u;i.push([c.keyword,a],[c.params,"function"==typeof t?t(e):t||r._`{}`]),_.messages&&i.push([c.message,"function"==typeof n?n(e):n]),_.verbose&&i.push([c.schema,l],[c.parentSchema,r._`${f}${p}`],[o.default.data,s]),d&&i.push([c.propertyName,d])}(e,t,s),i.object(...s)}(e,t,n)}function u({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function _({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let a=o?t:r.str`${t}/${e}`;return n&&(a=r.str`${a}${(0,i.getErrorPath)(n,i.Type.Str)}`),[c.schemaPath,a]}},5173:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(3487),i=n(7426),o=n(2141),a=n(2531),s=n(6776),c=n(4815);class l{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,a.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function u(e){const t=d.call(this,e);if(t)return t;const n=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:l}=this.opts.code,{ownProperties:u}=this.opts,_=new r.CodeGen(this.scope,{es5:s,lines:l,ownProperties:u});let f;e.$async&&(f=_.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const p=_.scopeName("validate");e.validateName=p;const m={gen:_,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:_.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let g;try{this._compilations.add(e),(0,c.validateFunctionCode)(m),_.optimize(this.opts.code.optimize);const t=_.toString();g=`${_.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(g=this.opts.code.process(g,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,g)(this,this.scope.get());if(this.scope.value(p,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:p,validateCode:t,scopeValues:_._values}),this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error("Error compiling schema, function code:",g),t}finally{this._compilations.delete(e)}}function _(e){return(0,a.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:u.call(this,e)}function d(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function f(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||p.call(this,e,t)}function p(e,t){const n=this.opts.uriResolver.parse(t),r=(0,a._getFullPath)(this.opts.uriResolver,n);let i=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return g.call(this,n,e);const o=(0,a.normalizeId)(r),s=this.refs[o]||this.schemas[o];if("string"==typeof s){const t=p.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||u.call(this,s),o===(0,a.normalizeId)(t)){const{schema:t}=s,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,a.resolveUrl)(this.opts.uriResolver,i,r)),new l({schema:t,schemaId:n,root:e,baseId:i})}return g.call(this,n,s)}}t.SchemaEnv=l,t.compileSchema=u,t.resolveRef=function(e,t,n){var r;n=(0,a.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=f.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:a}=this.opts;i&&(o=new l({schema:i,schemaId:a,root:e,baseId:t}))}return void 0!==o?e.refs[n]=_.call(this,o):void 0},t.getCompilingSchema=d,t.resolveSchema=p;const m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,s.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!m.has(r)&&i&&(t=(0,a.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,s.schemaHasRulesButRef)(n,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=p.call(this,r,e)}const{schemaId:c}=this.opts;return o=o||new l({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},2141:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},6646:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(2531);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},2531:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(6776),i=n(4063),o=n(9461),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&l(e)<=t)};const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(s.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function l(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!a.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],(e=>t+=l(e))),t===1/0))return 1/0}return t}function u(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return _(e,r)}function _(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=u,t._getFullPath=_;const d=/#\/?$/;function f(e){return e?e.replace(d,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const p=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,a=f(e[n]||t),s={"":a},c=u(r,a,!1),l={},_=new Set;return o(e,{allKeys:!0},((e,t,r,i)=>{if(void 0===i)return;const o=c+t;let a=s[i];function u(t){const n=this.opts.uriResolver.resolve;if(t=f(a?n(a,t):t),_.has(t))throw m(t);_.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?d(e,r.schema,t):t!==f(o)&&("#"===t[0]?(d(e,l[t],t),l[t]=e):this.refs[t]=o),t}function g(e){if("string"==typeof e){if(!p.test(e))throw new Error(`invalid anchor "${e}"`);u.call(this,`#${e}`)}}"string"==typeof e[n]&&(a=u.call(this,e[n])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=a})),l;function d(e,t,n){if(void 0!==t&&!i(e,t))throw m(n)}function m(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},3141:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},6776:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(3487),i=n(7023);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||p(e,`unknown keyword: "${n}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,s,c)=>{const l=void 0===s?a:s instanceof r.Name?(a instanceof r.Name?e(o,a,s):t(o,a,s),s):a instanceof r.Name?(t(o,s,a),a):n(a,s);return c!==r.Name||l instanceof r.Name?l:i(o,l)}}function u(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&_(e,n,t),n}function _(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),_(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:u}),items:l({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=u,t.setEvaluated=_;const d={};var f;function p(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:d[t.code]||(d[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=p},8876:function(e,t){"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},5667:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(4181),i=n(3487),o=n(2141),a={message:"boolean schema is false"};function s(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,a,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(3141),i=n(8876),o=n(4181),a=n(3487),s=n(6776);var c;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,s=function(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,o.coerceTypes),l=t.length>0&&!(0===s.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(l){const i=d(t,r,o.strictNumbers,c.Wrong);n.if(i,(()=>{s.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,s=r.let("dataType",a._`typeof ${i}`),c=r.let("coerced",a._`undefined`);"array"===o.coerceTypes&&r.if(a._`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,(()=>r.assign(i,a._`${i}[0]`).assign(s,a._`typeof ${i}`).if(d(t,i,o.strictNumbers),(()=>r.assign(c,i))))),r.if(a._`${c} !== undefined`);for(const e of n)(u.has(e)||"array"===e&&"array"===o.coerceTypes)&&l(e);function l(e){switch(e){case"string":return void r.elseIf(a._`${s} == "number" || ${s} == "boolean"`).assign(c,a._`"" + ${i}`).elseIf(a._`${i} === null`).assign(c,a._`""`);case"number":return void r.elseIf(a._`${s} == "boolean" || ${i} === null + || (${s} == "string" && ${i} && ${i} == +${i})`).assign(c,a._`+${i}`);case"integer":return void r.elseIf(a._`${s} === "boolean" || ${i} === null + || (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,a._`+${i}`);case"boolean":return void r.elseIf(a._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(a._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return r.elseIf(a._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(c,null);case"array":r.elseIf(a._`${s} === "string" || ${s} === "number" + || ${s} === "boolean" || ${i} === null`).assign(c,a._`[${i}]`)}}r.else(),p(e),r.endIf(),r.if(a._`${c} !== undefined`,(()=>{r.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(a._`${t} !== undefined`,(()=>e.assign(a._`${t}[${n}]`,r)))}(e,c)}))}(e,t,s):p(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function _(e,t,n,r=c.Correct){const i=r===c.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return a._`${t} ${i} null`;case"array":o=a._`Array.isArray(${t})`;break;case"object":o=a._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s(a._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return a._`typeof ${t} ${i} ${e}`}return r===c.Correct?o:(0,a.not)(o);function s(e=a.nil){return(0,a.and)(a._`typeof ${t} == "number"`,e,n?a._`isFinite(${t})`:a.nil)}}function d(e,t,n,r){if(1===e.length)return _(e[0],t,n,r);let i;const o=(0,s.toHash)(e);if(o.array&&o.object){const e=a._`typeof ${t} != "object"`;i=o.null?e:a._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=a.nil;o.number&&delete o.integer;for(const e in o)i=(0,a.and)(i,_(e,t,n,r));return i}t.checkDataType=_,t.checkDataTypes=d;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?a._`{type: ${e}}`:a._`{type: ${t}}`};function p(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,s.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=p},313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(3487),i=n(6776);function o(e,t,n){const{gen:o,compositeRule:a,data:s,opts:c}=e;if(void 0===n)return;const l=r._`${s}${(0,r.getProperty)(t)}`;if(a)return void(0,i.checkStrictMode)(e,`default is ignored for: ${l}`);let u=r._`${l} === undefined`;"empty"===c.useDefaults&&(u=r._`${u} || ${l} === null || ${l} === ""`),o.if(u,r._`${l} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>o(e,n,t.default)))}},4815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(5667),i=n(453),o=n(8876),a=n(453),s=n(313),c=n(5005),l=n(3099),u=n(3487),_=n(2141),d=n(2531),f=n(6776),p=n(4181);function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,u._`${_.default.data}, ${_.default.valCxt}`,r.$async,(()=>{e.code(u._`"use strict"; ${g(n,i)}`),function(e,t){e.if(_.default.valCxt,(()=>{e.var(_.default.instancePath,u._`${_.default.valCxt}.${_.default.instancePath}`),e.var(_.default.parentData,u._`${_.default.valCxt}.${_.default.parentData}`),e.var(_.default.parentDataProperty,u._`${_.default.valCxt}.${_.default.parentDataProperty}`),e.var(_.default.rootData,u._`${_.default.valCxt}.${_.default.rootData}`),t.dynamicRef&&e.var(_.default.dynamicAnchors,u._`${_.default.valCxt}.${_.default.dynamicAnchors}`)}),(()=>{e.var(_.default.instancePath,u._`""`),e.var(_.default.parentData,u._`undefined`),e.var(_.default.parentDataProperty,u._`undefined`),e.var(_.default.rootData,_.default.data),t.dynamicRef&&e.var(_.default.dynamicAnchors,u._`{}`)}))}(e,i),e.code(o)})):e.func(t,u._`${_.default.data}, ${function(e){return u._`{${_.default.instancePath}="", ${_.default.parentData}, ${_.default.parentDataProperty}, ${_.default.rootData}=${_.default.data}${e.dynamicRef?u._`, ${_.default.dynamicAnchors}={}`:u.nil}}={}`}(i)}`,r.$async,(()=>e.code(g(n,i)).code(o)))}function g(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?u._`/*# sourceURL=${n} */`:u.nil}function h({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function y(e){return"boolean"!=typeof e.schema}function v(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function b(e,t){if(e.opts.jtd)return S(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);S(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function x({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(u._`${_.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=u.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(u._`${_.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function S(e,t,n,r){const{gen:i,schema:s,data:c,allErrors:l,opts:d,self:p}=e,{RULES:m}=p;function g(f){(0,o.shouldUseGroup)(s,f)&&(f.type?(i.if((0,a.checkDataType)(f.type,c,d.strictNumbers)),k(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,a.reportTypeError)(e)),i.endIf()):k(e,f),l||i.if(u._`${_.default.errors} === ${r||0}`))}!s.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(s,m)?(d.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{T(e.dataTypes,t)||C(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const r of e.dataTypes)T(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&C(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some((e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r}))&&C(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block((()=>{for(const e of m.rules)g(e);g(m.post)}))):i.block((()=>E(e,"$ref",m.all.$ref.definition)))}function k(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,s.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&E(e,n.keyword,n.definition,t.type)}))}function T(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function C(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){y(e)&&(v(e),h(e))?function(e){const{schema:t,opts:n,gen:r}=e;m(e,(()=>{n.$comment&&t.$comment&&x(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(_.default.vErrors,null),r.let(_.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",u._`${n}.evaluated`),t.if(u._`${e.evaluated}.dynamicProps`,(()=>t.assign(u._`${e.evaluated}.props`,u._`undefined`))),t.if(u._`${e.evaluated}.dynamicItems`,(()=>t.assign(u._`${e.evaluated}.items`,u._`undefined`)))}(e),b(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(u._`${_.default.errors} === 0`,(()=>t.return(_.default.data)),(()=>t.throw(u._`new ${i}(${_.default.vErrors})`))):(t.assign(u._`${r}.errors`,_.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof u.Name&&e.assign(u._`${t}.props`,n),r instanceof u.Name&&e.assign(u._`${t}.items`,r)}(e),t.return(u._`${_.default.errors} === 0`))}(e)}))}(e):m(e,(()=>(0,r.topBoolOrEmptySchema)(e)))};class w{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",A(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",_.default.errors))}result(e,t,n){this.failResult((0,u.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,u.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(u._`${t} !== undefined && (${(0,u.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=u.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=u.nil,t=u.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,u.or)(u._`${r} === undefined`,t)),e!==u.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==u.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,u.or)(function(){if(n.length){if(!(t instanceof u.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return u._`${(0,a.checkDataTypes)(e,t,i.opts.strictNumbers,a.DataType.Wrong)}`}return u.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return u._`!${n}(${t})`}return u.nil}())}subschema(e,t){const n=(0,l.getSubschema)(this.it,e);(0,l.extendSubschemaData)(n,this.it,e),(0,l.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){y(e)&&(v(e),h(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&x(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",_.default.errors);b(e,o),r.var(t,u._`${o} === ${_.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,u.Name))),!0}}function E(e,t,n,r){const i=new w(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,c.funcKeywordCode)(i,n):"macro"in n?(0,c.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(i,n)}t.KeywordCxt=w;const D=/^\/(?:[^~]|~0|~1)*$/,N=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function A(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return _.default.rootData;if("/"===e[0]){if(!D.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=_.default.rootData}else{const a=N.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+a[1];if(i=a[2],"#"===i){if(s>=t)throw new Error(c("property/index",s));return r[t-s]}if(s>t)throw new Error(c("data",s));if(o=n[t-s],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=u._`${o}${(0,u.getProperty)((0,f.unescapeJsonPointer)(e))}`,a=u._`${a} && ${o}`);return a;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=A},5005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(3487),i=n(2141),o=n(412),a=n(4181);function s(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,(()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:a,it:s}=e,l=t.macro.call(s.self,o,a,s),u=c(n,i,l);!1!==s.opts.validateSchema&&s.self.validateSchema(l,!0);const _=n.name("valid");e.subschema({schema:l,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:u,compositeRule:!0},_),e.pass(_,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:l,keyword:u,schema:_,parentSchema:d,$data:f,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(p,t);const m=!f&&t.compile?t.compile.call(p.self,_,d,p):t.validate,g=c(l,u,m),h=l.let("valid");function y(n=(t.async?r._`await `:r.nil)){const a=p.opts.passContext?i.default.this:i.default.self,s=!("compile"in t&&!f||!1===t.schema);l.assign(h,r._`${n}${(0,o.callValidateCode)(e,g,a,s)}`,t.modifying)}function v(e){var n;l.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:h),e)}e.block$data(h,(function(){if(!1===t.errors)y(),t.modifying&&s(e),v((()=>e.error()));else{const n=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>y(r._`await `)),(t=>l.assign(h,!1).if(r._`${t} instanceof ${p.ValidationError}`,(()=>l.assign(e,r._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=r._`${g}.errors`;return l.assign(e,null),y(r.nil),e}();t.modifying&&s(e),v((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,a.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:h)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},3099:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(3487),i=n(6776);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:a,errSchemaPath:s,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===a||void 0===s||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:a,dataTypes:s,propertyName:c}){if(void 0!==a&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==n){const{errorPath:a,dataPathArr:s,opts:c}=t;u(l.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${a}${(0,i.getErrorPath)(n,o,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}function u(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==a&&(u(a instanceof r.Name?a:l.let("data",a,!0)),void 0!==c&&(e.propertyName=c)),s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},7159:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(4815);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(3487);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(7426),a=n(6646),s=n(3141),c=n(5173),l=n(3487),u=n(2531),_=n(453),d=n(6776),f=n(4775),p=n(3589),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,n,r,i,o,a,s,c,l,u,_,d,f,g,h,y,v,b,x,S,k,T,C,w,E;const D=e.strict,N=null===(t=e.code)||void 0===t?void 0:t.optimize,A=!0===N||void 0===N?1:N||0,P=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:m,F=null!==(i=e.uriResolver)&&void 0!==i?i:p.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:D)||void 0===a||a,strictNumbers:null===(c=null!==(s=e.strictNumbers)&&void 0!==s?s:D)||void 0===c||c,strictTypes:null!==(u=null!==(l=e.strictTypes)&&void 0!==l?l:D)&&void 0!==u?u:"log",strictTuples:null!==(d=null!==(_=e.strictTuples)&&void 0!==_?_:D)&&void 0!==d?d:"log",strictRequired:null!==(g=null!==(f=e.strictRequired)&&void 0!==f?f:D)&&void 0!==g&&g,code:e.code?{...e.code,optimize:A,regExp:P}:{optimize:A,regExp:P},loopRequired:null!==(h=e.loopRequired)&&void 0!==h?h:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(v=e.meta)||void 0===v||v,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(S=e.schemaId)&&void 0!==S?S:"$id",addUsedSchema:null===(k=e.addUsedSchema)||void 0===k||k,validateSchema:null===(T=e.validateSchema)||void 0===T||T,validateFormats:null===(C=e.validateFormats)||void 0===C||C,unicodeRegExp:null===(w=e.unicodeRegExp)||void 0===w||w,int32range:null===(E=e.int32range)||void 0===E||E,uriResolver:F}}class x{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:h,es5:t,lines:n}),this.logger=function(e){if(!1===e)return D;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,s.getRules)(),S.call(this,y,e,"NOT SUPPORTED"),S.call(this,v,e,"DEPRECATED","warn"),this._metaOpts=E.call(this),e.formats&&C.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&w.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),T.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=f;"id"===n&&(r={...f},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await l.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,u.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=k.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new c.SchemaEnv({schema:{},schemaId:n});if(t=c.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=k.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,u.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,n,t),!t)return(0,d.eachItem)(n,(e=>P.call(this,e))),this;I.call(this,t);const r={...t,type:(0,_.getJSONTypes)(t.type),schemaType:(0,_.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(n,0===r.type.length?e=>P.call(this,e,r):e=>r.type.forEach((t=>P.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=M(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if("object"==typeof e)o=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;n=(0,u.normalizeId)(o||n);const l=u.getSchemaRefs.call(this,e,n);return s=new c.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:n,localRefs:l}),this._cache.set(s.schema,s),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=s),r&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function S(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function k(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function T(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function C(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function w(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function E(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=x,x.ValidationError=o.default,x.MissingRefError=a.default;const D={log(){},warn(){},error(){}},N=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,t){const{RULES:n}=this;if((0,d.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!N.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function P(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===n));if(a||(a={type:n,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:(0,_.getJSONTypes)(t.type),schemaType:(0,_.getJSONTypes)(t.schemaType)}};t.before?F.call(this,a,s,t.before):a.rules.push(s),o.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function F(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function I(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=M(t)),e.validateSchema=this.compile(t,!0))}const O={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function M(e){return{anyOf:[e,O]}}},3510:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4063);r.code='require("ajv/dist/runtime/equal").default',t.default=r},4499:function(e,t){"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i=55296&&n<=56319&&ir.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?a(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function a(e,t){const{gen:n,schema:o,data:a,keyword:s,it:c}=e;c.items=!0;const l=n.const("len",r._`${a}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${l} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=n.var("valid",r._`${l} <= ${t.length}`);n.if((0,r.not)(o),(()=>function(o){n.forRange("i",t.length,l,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||n.if((0,r.not)(o),(()=>n.break()))}))}(o))),e.ok(o)}}t.validateAdditionalItems=a,t.default=o},9351:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(412),i=n(3487),o=n(2141),a=n(6776),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:_,opts:d}=u;if(u.props=!0,"all"!==d.removeAdditional&&(0,a.alwaysValidSchema)(u,n))return;const f=(0,r.allSchemaProperties)(s.properties),p=(0,r.allSchemaProperties)(s.patternProperties);function m(e){t.code(i._`delete ${c}[${e}]`)}function g(r){if("all"===d.removeAdditional||d.removeAdditional&&!1===n)m(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(_||t.break());if("object"==typeof n&&!(0,a.alwaysValidSchema)(u,n)){const n=t.name("valid");"failing"===d.removeAdditional?(h(r,n,!1),t.if((0,i.not)(n),(()=>{e.reset(),m(r)}))):(h(r,n),_||t.if((0,i.not)(n),(()=>t.break())))}}}function h(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",c,(n=>{f.length||p.length?t.if(function(n){let o;if(f.length>8){const e=(0,a.schemaRefOrVal)(u,s.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map((e=>i._`${n} === ${e}`))):i.nil;return p.length&&(o=(0,i.or)(o,...p.map((t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`)))),(0,i.not)(o)}(n),(()=>g(n))):g(n)})),e.ok(i._`${l} === ${o.default.errors}`)}};t.default=s},1125:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6776),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const a=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(a)}))}};t.default=i},19:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(412).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},9864:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:a,it:s}=e;let c,l;const{minContains:u,maxContains:_}=o;s.opts.next?(c=void 0===u?1:u,l=_):c=1;const d=t.const("len",r._`${a}.length`);if(e.setParams({min:c,max:l}),void 0===l&&0===c)return void(0,i.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&c>l)return(0,i.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(s,n)){let t=r._`${d} >= ${c}`;return void 0!==l&&(t=r._`${t} && ${d} <= ${l}`),void e.pass(t)}s.items=!0;const f=t.name("valid");function p(){const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===l?t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(r._`${e} > ${l}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(r._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(n)))))}function m(n,r){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()}))}void 0===l&&1===c?m(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==l&&t.if(r._`${a}.length > 0`,p)):(t.let(f,!1),p()),e.result(f,(()=>e.reset()))}};t.default=o},7772:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(3487),i=n(6776),o=n(412);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e}, missingProperty: ${i}, depsCount: ${t}, - deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);s(e,t),c(e,r)}};function s(e,t=e.schema){const{gen:r,data:i,it:o}=e;if(0===Object.keys(t).length)return;const s=r.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,a.propertyInData)(r,i,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),o.allErrors?r.if(u,(()=>{for(const t of l)(0,a.checkReportMissingProp)(e,t)})):(r.if(n._`${u} && (${(0,a.checkMissingProp)(e,l,s)})`),(0,a.reportMissingProp)(e,s),r.else())}}function c(e,t=e.schema){const{gen:r,data:n,keyword:o,it:s}=e,c=r.name("valid");for(const l in t)(0,i.alwaysValidSchema)(s,t[l])||(r.if((0,a.propertyInData)(r,n,l,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=s,t.validateSchemaDeps=c,t.default=o},9434:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>n.str`must match "${e.ifClause}" schema`,params:({params:e})=>n._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:a}=e;void 0===r.then&&void 0===r.else&&(0,i.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const s=o(a,"then"),c=o(a,"else");if(!s&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),s&&c){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,d("then",r),d("else",r))}else s?t.if(u,d("then")):t.if((0,n.not)(u),d("else"));function d(r,i){return()=>{const a=e.subschema({keyword:r},u);t.assign(l,u),e.mergeValidEvaluated(a,l),i?t.assign(i,n._`${r}`):e.setParams({ifClause:r})}}e.pass(l,(()=>e.error(!0)))}};function o(e,t){const r=e.schema[t];return void 0!==r&&!(0,i.alwaysValidSchema)(e,r)}t.default=a},8200:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4783),i=r(2924),a=r(4665),o=r(1119),s=r(9864),c=r(7772),l=r(3708),u=r(9351),d=r(6239),_=r(2296),f=r(5697),p=r(19),m=r(4200),g=r(1125),y=r(9434),v=r(6552);t.default=function(e=!1){const t=[f.default,p.default,m.default,g.default,y.default,v.default,l.default,u.default,c.default,d.default,_.default];return e?t.push(i.default,o.default):t.push(n.default,a.default),t.push(s.default),t}},4665:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const n=r(3487),i=r(6776),a=r(412),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return s(e,"additionalItems",t);r.items=!0,(0,i.alwaysValidSchema)(r,t)||e.ok((0,a.validateArray)(e))}};function s(e,t,r=e.schema){const{gen:a,parentSchema:o,data:s,keyword:c,it:l}=e;!function(e){const{opts:n,errSchemaPath:a}=l,o=r.length,s=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(n.strictTuples&&!s){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;(0,i.checkStrictMode)(l,e,n.strictTuples)}}(o),l.opts.unevaluated&&r.length&&!0!==l.items&&(l.items=i.mergeEvaluated.items(a,r.length,l.items));const u=a.name("valid"),d=a.const("len",n._`${s}.length`);r.forEach(((t,r)=>{(0,i.alwaysValidSchema)(l,t)||(a.if(n._`${d} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},u))),e.ok(u))}))}t.validateTuple=s,t.default=o},1119:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a=r(412),o=r(4783),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>n.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>n._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:s}=r;n.items=!0,(0,i.alwaysValidSchema)(n,t)||(s?(0,o.validateAdditionalItems)(e,s):e.ok((0,a.validateArray)(e)))}};t.default=s},5697:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return void e.fail();const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},4200:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>n._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&a.discriminator)return;const s=r,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){s.forEach(((r,a)=>{let s;(0,i.alwaysValidSchema)(o,r)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},u),a>0&&t.if(n._`${u} && ${c}`).assign(c,!1).assign(l,n._`[${l}, ${a}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,a),s&&e.mergeEvaluated(s,n.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=a},2296:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),a=r(6776),o=r(6776),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:s,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,n.allSchemaProperties)(r),_=d.filter((e=>(0,a.alwaysValidSchema)(l,r[e])));if(0===d.length||_.length===d.length&&(!l.opts.unevaluated||!0===l.props))return;const f=u.strictSchema&&!u.allowMatchingProperties&&c.properties,p=t.name("valid");!0===l.props||l.props instanceof i.Name||(l.props=(0,o.evaluatedPropsToName)(t,l.props));const{props:m}=l;function g(e){for(const t in f)new RegExp(e).test(t)&&(0,a.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function y(r){t.forIn("key",s,(a=>{t.if(i._`${(0,n.usePattern)(e,r)}.test(${a})`,(()=>{const n=_.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:o.Type.Str},p),l.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${a}]`,!0):n||l.allErrors||t.if((0,i.not)(p),(()=>t.break()))}))}))}!function(){for(const e of d)f&&g(e),l.allErrors?y(e):(t.var(p,!0),y(e),t.if(p))}()}};t.default=s},2924:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4665),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")};t.default=i},6239:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4815),i=r(412),a=r(6776),o=r(9351),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:s,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===s.additionalProperties&&o.default.code(new n.KeywordCxt(l,o.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(r);for(const e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=a.mergeEvaluated.props(t,(0,a.toHash)(u),l.props));const d=u.filter((e=>!(0,a.alwaysValidSchema)(l,r[e])));if(0===d.length)return;const _=t.name("valid");for(const r of d)f(r)?p(r):(t.if((0,i.propertyInData)(t,c,r,l.opts.ownProperties)),p(r),l.allErrors||t.else().var(_,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(_);function f(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==r[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},_)}}};t.default=s},3708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>n._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:a,it:o}=e;if((0,i.alwaysValidSchema)(o,r))return;const s=t.name("valid");t.forIn("key",a,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},s),t.if((0,n.not)(s),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(s)}};t.default=a},6552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(6776),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=i},412:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const n=r(3487),i=r(6776),a=r(2141),o=r(6776);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:n._`Object.prototype.hasOwnProperty`})}function c(e,t,r){return n._`${s(e)}.call(${t}, ${r})`}function l(e,t,r,i){const a=n._`${t}${(0,n.getProperty)(r)} === undefined`;return i?(0,n.or)(a,(0,n.not)(c(e,t,r))):a}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:r,data:i,it:a}=e;r.if(l(r,i,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:n._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},i,a){return(0,n.or)(...i.map((i=>(0,n.and)(l(e,t,i,r.ownProperties),n._`${a} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=c,t.propertyInData=function(e,t,r,i){const a=n._`${t}${(0,n.getProperty)(r)} !== undefined`;return i?n._`${a} && ${c(e,t,r)}`:a},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((r=>!(0,i.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:o,errorPath:s},it:c},l,u,d){const _=d?n._`${e}, ${t}, ${i}${o}`:t,f=[[a.default.instancePath,(0,n.strConcat)(a.default.instancePath,s)],[a.default.parentData,c.parentData],[a.default.parentDataProperty,c.parentDataProperty],[a.default.rootData,a.default.rootData]];c.opts.dynamicRef&&f.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const p=n._`${_}, ${r.object(...f)}`;return u!==n.nil?n._`${l}.call(${u}, ${p})`:n._`${l}(${p})`};const d=n._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){const i=t.unicodeRegExp?"u":"",{regExp:a}=t.code,s=a(r,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:n._`${"new RegExp"===a.code?d:(0,o.useFunc)(e,a)}(${r}, ${i})`})},t.validateArray=function(e){const{gen:t,data:r,keyword:a,it:o}=e,s=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(s,!0),c((()=>t.break())),s;function c(o){const c=t.const("len",n._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:a,dataProp:r,dataPropType:i.Type.Num},s),t.if((0,n.not)(s),o)}))}},t.validateUnion=function(e){const{gen:t,schema:r,keyword:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,i.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const s=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,i)=>{const o=e.subschema({keyword:a,schemaProp:i,compositeRule:!0},c);t.assign(s,n._`${s} || ${c}`),e.mergeValidEvaluated(o,c)||t.if((0,n.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},8386:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},5684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(8386),i=r(8280),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,i.default];t.default=a},8280:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const n=r(6646),i=r(412),a=r(3487),o=r(2141),s=r(5173),c=r(6776),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:i}=e,{baseId:o,schemaEnv:c,validateName:l,opts:_,self:f}=i,{root:p}=c;if(("#"===r||"#/"===r)&&o===p.baseId)return function(){if(c===p)return d(e,l,c,c.$async);const r=t.scopeValue("root",{ref:p});return d(e,a._`${r}.validate`,p,p.$async)}();const m=s.resolveRef.call(f,p,o,r);if(void 0===m)throw new n.default(i.opts.uriResolver,o,r);return m instanceof s.SchemaEnv?function(t){const r=u(e,t);d(e,r,t,t.$async)}(m):function(n){const i=t.scopeValue("schema",!0===_.code.source?{ref:n,code:(0,a.stringify)(n)}:{ref:n}),o=t.name("valid"),s=e.subschema({schema:n,dataTypes:[],schemaPath:a.nil,topSchemaRef:i,errSchemaPath:r},o);e.mergeEvaluated(s),e.ok(o)}(m)}};function u(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):a._`${r.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,r,n){const{gen:s,it:l}=e,{allErrors:u,schemaEnv:d,opts:_}=l,f=_.passContext?o.default.this:a.nil;function p(e){const t=a._`${e}.errors`;s.assign(o.default.vErrors,a._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),s.assign(o.default.errors,a._`${o.default.vErrors}.length`)}function m(e){var t;if(!l.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(n&&!n.dynamicProps)void 0!==n.props&&(l.props=c.mergeEvaluated.props(s,n.props,l.props));else{const t=s.var("props",a._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(s,t,l.props,a.Name)}if(!0!==l.items)if(n&&!n.dynamicItems)void 0!==n.items&&(l.items=c.mergeEvaluated.items(s,n.items,l.items));else{const t=s.var("items",a._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(s,t,l.items,a.Name)}}n?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const r=s.let("valid");s.try((()=>{s.code(a._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),u||s.assign(r,!0)}),(e=>{s.if(a._`!(${e} instanceof ${l.ValidationError})`,(()=>s.throw(e))),p(e),u||s.assign(r,!1)})),e.ok(r)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>p(t)))}t.getValidate=u,t.callRef=d,t.default=l},1240:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(9306),a=r(5173),o=r(6776),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>n._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:s,parentSchema:c,it:l}=e,{oneOf:u}=c;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=s.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const _=t.let("valid",!1),f=t.const("tag",n._`${r}${(0,n.getProperty)(d)}`);function p(r){const i=t.name("valid"),a=e.subschema({keyword:"oneOf",schemaProp:r},i);return e.mergeEvaluated(a,n.Name),i}t.if(n._`typeof ${f} == "string"`,(()=>function(){const r=function(){var e;const t={},r=i(c);let n=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:d}))),e.ok(_)}};t.default=s},9306:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(r=t.DiscrError||(t.DiscrError={})).Tag="tag",r.Mapping="mapping"},3924:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5684),i=r(2649),a=r(8200),o=r(9502),s=r(6167),c=[n.default,i.default,(0,a.default)(),o.default,s.metadataVocabulary,s.contentVocabulary];t.default=c},9651:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match format "${e}"`,params:({schemaCode:e})=>n._`{format: ${e}}`},code(e,t){const{gen:r,data:i,$data:a,schema:o,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:_}=c;l.validateFormats&&(a?function(){const a=r.scopeValue("formats",{ref:_.formats,code:l.code.formats}),o=r.const("fDef",n._`${a}[${s}]`),c=r.let("fType"),u=r.let("format");r.if(n._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(c,n._`${o}.type || "string"`).assign(u,n._`${o}.validate`)),(()=>r.assign(c,n._`"string"`).assign(u,o))),e.fail$data((0,n.or)(!1===l.strictSchema?n.nil:n._`${s} && !${u}`,function(){const e=d.$async?n._`(${o}.async ? await ${u}(${i}) : ${u}(${i}))`:n._`${u}(${i})`,r=n._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return n._`${u} && ${u} !== true && ${c} === ${t} && !${r}`}()))}():function(){const a=_.formats[o];if(!a)return void function(){if(!1!==l.strictSchema)throw new Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}_.logger.warn(e())}();if(!0===a)return;const[s,c,f]=function(e){const t=e instanceof RegExp?(0,n.regexpCode)(e):l.code.formats?n._`${l.code.formats}${(0,n.getProperty)(o)}`:void 0,i=r.scopeValue("formats",{key:o,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,n._`${i}.validate`]}(a);s===t&&e.pass(function(){if("object"==typeof a&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw new Error("async format in sync schema");return n._`await ${f}(${i})`}return"function"==typeof c?n._`${f}(${i})`:n._`${f}.test(${i})`}())}())}};t.default=i},9502:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=[r(9651).default];t.default=n},6167:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},4693:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a=r(3510),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>n._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:o,schemaCode:s,schema:c}=e;o||c&&"object"==typeof c?e.fail$data(n._`!${(0,i.useFunc)(t,a.default)}(${r}, ${s})`):e.fail(n._`${c} !== ${r}`)}};t.default=o},966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a=r(3510),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>n._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:o,schema:s,schemaCode:c,it:l}=e;if(!o&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=l.opts.loopEnum;let d;const _=()=>null!=d?d:d=(0,i.useFunc)(t,a.default);let f;if(u||o)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",c,(e=>t.if(n._`${_()}(${r}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,n.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?n._`${_()}(${r}, ${e}[${t}])`:n._`${r} === ${i}`}(e,i))))}e.pass(f)}};t.default=o},2649:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3983),i=r(430),a=r(3229),o=r(4336),s=r(498),c=r(3301),l=r(1687),u=r(2958),d=r(4693),_=r(966),f=[n.default,i.default,a.default,o.default,s.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,_.default];t.default=f},1687:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,a="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`${r}.length ${a} ${i}`)}};t.default=i},3229:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=r(6776),a=r(4499),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o,it:s}=e,c="maxLength"===t?n.operators.GT:n.operators.LT,l=!1===s.opts.unicode?n._`${r}.length`:n._`${(0,i.useFunc)(e.gen,a.default)}(${r})`;e.fail$data(n._`${l} ${c} ${o}`)}};t.default=o},3983:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i=n.operators,a={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},o={message:({keyword:e,schemaCode:t})=>n.str`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${a[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:o,code(e){const{keyword:t,data:r,schemaCode:i}=e;e.fail$data(n._`${r} ${a[t].fail} ${i} || isNaN(${r})`)}};t.default=s},498:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return n.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>n._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:i}=e,a="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data(n._`Object.keys(${r}).length ${a} ${i}`)}};t.default=i},430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3487),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>n.str`must be multiple of ${e}`,params:({schemaCode:e})=>n._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:i,it:a}=e,o=a.opts.multipleOfPrecision,s=t.let("res"),c=o?n._`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:n._`${s} !== parseInt(${s})`;e.fail$data(n._`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`)}};t.default=i},4336:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:a,schemaCode:o,it:s}=e,c=s.opts.unicodeRegExp?"u":"",l=r?i._`(new RegExp(${o}, ${c}))`:(0,n.usePattern)(e,a);e.fail$data(i._`!${l}.test(${t})`)}};t.default=a},3301:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(412),i=r(3487),a=r(6776),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:o,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===r.length)return;const d=r.length>=u.loopRequired;if(l.allErrors?function(){if(d||c)e.block$data(i.nil,_);else for(const t of r)(0,n.checkReportMissingProp)(e,t)}():function(){const a=t.let("missing");if(d||c){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,o,(()=>{t.assign(a,(0,n.propertyInData)(t,s,r,u.ownProperties)),t.if((0,i.not)(a),(()=>{e.error(),t.break()}))}),i.nil)}(a,r))),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,a)),(0,n.reportMissingProp)(e,a),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,a.checkStrictMode)(l,t,l.opts.strictRequired)}}function _(){t.forOf("prop",o,(r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,s,r,u.ownProperties),(()=>e.error()))}))}}};t.default=o},2958:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(453),i=r(3487),a=r(6776),o=r(3510),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:s,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!s&&!c)return;const _=t.let("valid"),f=l.items?(0,n.getSchemaTypes)(l.items):[];function p(a,o){const s=t.name("item"),c=(0,n.checkDataTypes)(f,s,d.opts.strictNumbers,n.DataType.Wrong),l=t.const("indices",i._`{}`);t.for(i._`;${a}--;`,(()=>{t.let(s,i._`${r}[${a}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${l}[${s}] == "number"`,(()=>{t.assign(o,i._`${l}[${s}]`),e.error(),t.assign(_,!1).break()})).code(i._`${l}[${s}] = ${a}`)}))}function m(n,s){const c=(0,a.useFunc)(t,o.default),l=t.name("outer");t.label(l).for(i._`;${n}--;`,(()=>t.for(i._`${s} = ${n}; ${s}--;`,(()=>t.if(i._`${c}(${r}[${n}], ${r}[${s}])`,(()=>{e.error(),t.assign(_,!1).break(l)}))))))}e.block$data(_,(function(){const n=t.let("i",i._`${r}.length`),a=t.let("j");e.setParams({i:n,j:a}),t.assign(_,!0),t.if(i._`${n} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?p:m)(n,a)))}),i._`${u} === false`),e.ok(_)}};t.default=s},4063:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){var o=a[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},9461:function(e){"use strict";var t=e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(e,n,i,a,o,s,c,l,u,d){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var _ in n(a,o,s,c,l,u,d),a){var f=a[_];if(Array.isArray(f)){if(_ in t.arrayKeywords)for(var p=0;p2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=s,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=s,o=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var o={resolve:function(){for(var e,t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=n.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,r=47===s.charCodeAt(0))}return t=a(t,!r),r?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=a(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":o.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=o.resolve(e))===(t=o.resolve(t)))return"";for(var r=1;rl){if(47===t.charCodeAt(s+d))return t.slice(s+d+1);if(0===d)return t.slice(s+d)}else a>l&&(47===e.charCodeAt(r+d)?u=d:0===d&&(u=0));break}var _=e.charCodeAt(r+d);if(_!==t.charCodeAt(s+d))break;47===_&&(u=d)}var f="";for(d=r+u+1;d<=n;++d)d!==n&&47!==e.charCodeAt(d)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!a){n=o;break}}else a=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var r,n=0,a=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!o){n=r+1;break}}else-1===c&&(o=!1,c=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=c))}return n===a?a=c:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){n=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":e.slice(n,a)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===n&&(a=!1,n=s+1),46===c?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!a){r=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,n=e.charCodeAt(0),a=47===n;a?(t.root="/",r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=r;--u)if(47!==(n=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===n?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!l){s=u+1;break}return-1===o||-1===c||0===d||1===d&&o===c-1&&o===s+1?-1!==c&&(t.base=t.name=0===s&&a?e.slice(1,c):e.slice(s,c)):(0===s&&a?(t.name=e.slice(1,o),t.base=e.slice(1,c)):(t.name=e.slice(s,o),t.base=e.slice(s,c)),t.ext=e.slice(o,c)),s>0?t.dir=e.slice(0,s-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,e.exports=o},4155:function(e){var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&_())}function _(){if(!l){var e=o(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var r=1;r{},D=async()=>{};null!==(n=x.default.copy)&&void 0!==n||(x.default.copy=D),null!==(i=x.default.copySync)&&void 0!==i||(x.default.copySync=b),null!==(a=x.default.existsSync)&&void 0!==a||(x.default.existsSync=()=>!1),null!==(o=x.default.outputFile)&&void 0!==o||(x.default.outputFile=D),null!==(s=x.default.outputFileSync)&&void 0!==s||(x.default.outputFileSync=b),null!==(c=x.default.pathExists)&&void 0!==c||(x.default.pathExists=async()=>!1),null!==(l=x.default.pathExistsSync)&&void 0!==l||(x.default.pathExistsSync=()=>!1),null!==(u=x.default.readdir)&&void 0!==u||(x.default.readdir=async()=>[]),null!==(d=x.default.readdirSync)&&void 0!==d||(x.default.readdirSync=()=>[]),null!==(_=x.default.readFileSync)&&void 0!==_||(x.default.readFileSync=()=>Buffer.from("")),null!==(f=x.default.readJson)&&void 0!==f||(x.default.readJson=D),null!==(p=x.default.readJSONSync)&&void 0!==p||(x.default.readJSONSync=b),null!==(m=x.default.realpathSync)&&void 0!==m||(x.default.realpathSync=e=>e),null!==(g=x.default.removeSync)&&void 0!==g||(x.default.removeSync=b),null!==(y=x.default.stat)&&void 0!==y||(x.default.stat=()=>({})),null!==(v=x.default.statSync)&&void 0!==v||(x.default.statSync=()=>({}))},440:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualFileSystem=t.pathJoin=t.PATH_SEP=void 0;const n=r(2287),i=r(2991);function a(...e){let r=e[0];for(let n=1;ne.length>0))}writeFile(e,t){const r=this.getPathParts(e),a=r.pop();let o=this.root;for(const e of r){const t=(0,i.getOrSetDefault)(o.children,e,(()=>({name:e,children:new Map})));(0,n.assert)("children"in t),o=t}o.children.set(a,{name:a,content:t})}get(e){const t=this.getPathParts(e),r=t.pop();let n=this.root;for(const e of t){const t=n.children.get(e);if(!t)return;if(!("children"in t))return;n=t}return n.children.get(r)}readFile(e){const t=this.get(e);if(t&&"content"in t)return t.content}fileExists(e){const t=this.get(e);return void 0!==t&&"content"in t}directoryExists(e){const t=this.get(e);return void 0!==t&&"children"in t}getDirectories(e){const t=new Array,r=this.get(e);if(r&&"children"in r)for(const[n,i]of r.children)"children"in i&&t.push(a(e,n));return t}getFilePaths(){const e=new Array,t=(r,n="")=>{for(const[i,a]of r.children)"children"in a?t(a,`${n}/${i}`):e.push(`${n}/${i}`)};return t(this.root),e}}},1614:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualProject=void 0;const i=r(9861),a=r(1979),o=r(440),s=r(9665),c=r(2179),l=r(421),u=r(6258),d=r(7783),_=r(2287),f=r(7856),p=r(3115),m=r(4502),g=r(4567),y=n(r(5423)),v=o.PATH_SEP,h=(0,o.pathJoin)(v,"src"),x=(0,o.pathJoin)(v,"out"),b=(0,o.pathJoin)(h,"playground.tsx"),D=(0,o.pathJoin)(v,u.NODE_MODULES),S=(0,o.pathJoin)(D,u.RBXTS_SCOPE),T=(0,o.pathJoin)(v,"include");t.VirtualProject=class{constructor(){this.nodeModulesPathMapping=new Map,this.data={isPackage:!1,nodeModulesPath:D,projectOptions:Object.assign({},u.DEFAULT_PROJECT_OPTIONS,{rojo:"",type:u.ProjectType.Model,optimizedLoops:!0}),projectPath:v,rojoConfigPath:void 0,tsConfigPath:""},this.compilerOptions={allowSyntheticDefaultImports:!0,downlevelIteration:!0,noLib:!0,strict:!0,target:y.default.ScriptTarget.ESNext,module:y.default.ModuleKind.CommonJS,moduleResolution:y.default.ModuleResolutionKind.NodeJs,moduleDetection:y.default.ModuleDetectionKind.Force,typeRoots:[S],resolveJsonModule:!0,experimentalDecorators:!0,rootDir:h,outDir:x,jsx:y.default.JsxEmit.React,jsxFactory:"Roact.createElement",jsxFragmentFactory:"Roact.createFragment"},(0,s.validateCompilerOptions)(this.compilerOptions,this.data.nodeModulesPath),this.vfs=new o.VirtualFileSystem;this.compilerHost=y.default.createCompilerHostWorker(this.compilerOptions,void 0,{getExecutingFilePath:()=>"/index.js",getCurrentDirectory:()=>"/"}),this.compilerHost.readFile=e=>this.vfs.readFile(e),this.compilerHost.fileExists=e=>this.vfs.fileExists(e),this.compilerHost.directoryExists=e=>this.vfs.directoryExists(e),this.compilerHost.getDirectories=e=>this.vfs.getDirectories(e),this.compilerHost.useCaseSensitiveFileNames=()=>!0,this.compilerHost.getCurrentDirectory=()=>o.PATH_SEP,this.rojoResolver=a.RojoResolver.fromTree(v,{$path:x,include:{$path:T,node_modules:{$className:"Folder","@rbxts":{$path:S}}}}),this.pkgRojoResolvers=this.compilerOptions.typeRoots.map(a.RojoResolver.synthetic)}compileSource(e){this.vfs.writeFile(b,e);const t=this.vfs.getFilePaths().filter((e=>e.endsWith(y.default.Extension.Ts)||e.endsWith(y.default.Extension.Tsx)||e.endsWith(y.default.Extension.Dts)));this.program=y.default.createProgram(t,this.compilerOptions,this.compilerHost,this.program),this.typeChecker=this.program.getTypeChecker();const r=(0,g.createTransformServices)(this.program,this.typeChecker,this.data),n=new l.PathTranslator(h,x,void 0,!1),a=this.program.getSourceFile(b);(0,_.assert)(a);const o=new Array;if(o.push(...y.default.getPreEmitDiagnostics(this.program,a)),o.push(...(0,c.getCustomPreEmitDiagnostics)(this.data,a)),(0,f.hasErrors)(o))throw new d.DiagnosticError(o);const s=new p.MultiTransformState,u=this.data.projectOptions.type,v=new p.TransformState(this.program,this.data,r,n,s,this.compilerOptions,this.rojoResolver,this.pkgRojoResolvers,this.nodeModulesPathMapping,new Map,void 0,this.typeChecker,u,a),D=(0,p.transformSourceFile)(v,a);if(o.push(...m.DiagnosticService.flush()),(0,f.hasErrors)(o))throw new d.DiagnosticError(o);return(0,i.renderAST)(D)}setMapping(e,t){this.nodeModulesPathMapping.set(e,t)}}},4141:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cleanup=void 0;const i=n(r(651)),a=n(r(6470)),o=r(3710);function s(e,t){if(i.default.pathExistsSync(t))for(const r of i.default.readdirSync(t)){const n=a.default.join(t,r);if(i.default.statSync(n).isDirectory()){if(".git"===r)continue;s(e,n)}(0,o.tryRemoveOutput)(e,n)}}t.cleanup=function(e){const t=e.outDir;i.default.pathExistsSync(t)&&s(e,t)}},648:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createProgramFactory=void 0;const i=n(r(651)),a=r(1627),o=r(6258),s=r(2287),c=n(r(5423));t.createProgramFactory=function(e,t){return(r,n=t,l=function(e,t){var r;const n=c.default.createIncrementalCompilerHost(t);let a="";return a+=`type=${String(e.projectOptions.type)},`,a+=`isPackage=${String(e.isPackage)},`,a+=`plugins=${JSON.stringify(null!==(r=t.plugins)&&void 0!==r?r:[])},`,e.rojoConfigPath&&i.default.existsSync(e.rojoConfigPath)&&(a+=i.default.readFileSync(e.rojoConfigPath).toString()),(0,s.assert)(n.createHash),c.default.version=`${o.COMPILER_VERSION}-hash-${n.createHash(a)}`,n}(e,t),u=c.default.readBuilderProgram(t,(0,a.createReadBuildProgramHost)()))=>c.default.createEmitAndSemanticDiagnosticsBuilderProgram(r,n,l,u)}},2230:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createProjectData=void 0;const i=r(1979),a=n(r(651)),o=n(r(6470)),s=r(761),c=r(6258),l=r(3333),u=n(r(5423)),d=/^@[a-z0-9-]*\//;t.createProjectData=function(e,t){var r;const n=o.default.dirname(e),_=u.default.findPackageJson(n,u.default.sys);if(!_)throw new l.ProjectError("Unable to find package.json");let f=!1;try{const e=JSON.parse(a.default.readFileSync(_).toString());f=d.test(null!==(r=e.name)&&void 0!==r?r:"")}catch(e){}t.includePath=o.default.resolve(t.includePath||o.default.join(n,"include"));const p=o.default.join(o.default.dirname(_),c.NODE_MODULES);let m;if(t.rojo)m=o.default.resolve(t.rojo);else{const{path:e,warnings:t}=i.RojoResolver.findRojoConfigFilePath(n);m=e;for(const e of t)s.LogService.warn(e)}return{tsConfigPath:e,isPackage:f,nodeModulesPath:p,projectOptions:t,projectPath:n,rojoConfigPath:m}}},6020:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProjectProgram=void 0;const n=r(648),i=r(5607);t.createProjectProgram=function(e,t){const{fileNames:r,options:a}=(0,i.getParsedCommandLine)(e);return(0,n.createProgramFactory)(e,a)(r,a,t)}},5607:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedCommandLine=void 0;const i=n(r(651)),a=r(9665),o=r(7783),s=r(3333),c=n(r(5423));t.getParsedCommandLine=function(e){const t=c.default.getParsedCommandLineOfConfigFile(e.tsConfigPath,{},{fileExists:c.default.sys.fileExists,getCurrentDirectory:c.default.sys.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:e=>{throw new o.DiagnosticError([e])},readDirectory:c.default.sys.readDirectory,readFile:c.default.sys.readFile,useCaseSensitiveFileNames:c.default.sys.useCaseSensitiveFileNames});if(void 0===t)throw new s.ProjectError("Unable to load TS program!");if(t.errors.length>0)throw new o.DiagnosticError(t.errors);return(globalThis.RBXTSC_DEV||void 0!==i.default.url())&&(t.options.incremental=!1,t.options.tsBuildInfoFile=void 0),(0,a.validateCompilerOptions)(t.options,e.nodeModulesPath),t}},3710:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.tryRemoveOutput=void 0;const i=n(r(651)),a=r(761),o=r(6258);t.tryRemoveOutput=function(e,t){(function(e,t){if(t.endsWith(o.DTS_EXT)&&!e.declaration)return!0;for(const r of e.getInputPaths(t))if(i.default.pathExistsSync(r))return!1;return e.buildInfoOutputPath!==t})(e,t)&&(i.default.removeSync(t),a.LogService.writeLineIfVerbose(`remove ${t}`))}},9665:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateCompilerOptions=void 0;const i=n(r(1391)),a=n(r(6470)),o=r(6258),s=r(3333),c=n(r(5423)),l=(c.default.ScriptTarget.ESNext,c.default.ModuleKind.CommonJS),u=c.default.ModuleDetectionKind.Force,d=c.default.ModuleResolutionKind.NodeJs;function _(e){return i.default.yellow(e)}t.validateCompilerOptions=function(e,t){const r=new Array;true!==e.noLib&&r.push(`${_('"noLib"')} must be ${_("true")}`),true!==e.strict&&r.push(`${_('"strict"')} must be ${_("true")}`),e.target,e.module!==l&&r.push(`${_('"module"')} must be ${_("commonjs")}`),e.moduleDetection!==u&&r.push(`${_('"moduleDetection"')} must be ${_('"force"')}`),e.moduleResolution!==d&&r.push(`${_('"moduleResolution"')} must be ${_('"Node"')}`),true!==e.allowSyntheticDefaultImports&&r.push(`${_('"allowSyntheticDefaultImports"')} must be ${_("true")}`);const n=a.default.join(t,o.RBXTS_SCOPE);if(void 0!==e.typeRoots&&function(e,t){const r=a.default.resolve(e);for(const e of t)if(a.default.resolve(e)===r)return!0;return!1}(n,e.typeRoots)||r.push(`${_('"typeRoots"')} must contain ${_(n)}`),void 0===e.rootDir&&void 0===e.rootDirs&&r.push(`${_('"rootDir"')} or ${_('"rootDirs"')} must be defined`),void 0===e.outDir&&r.push(`${_('"outDir"')} must be defined`),r.length>0)throw new s.ProjectError(['Invalid "tsconfig.json" configuration!',"https://roblox-ts.com/docs/quick-start#project-folder-setup",r.map((e=>`- ${e}\n`)).join("")].join("\n"))}},6581:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1614),t),i(r(4141),t),i(r(2230),t),i(r(6020),t)},8405:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileUsesCommentDirectives=void 0;const n=r(7370);t.fileUsesCommentDirectives=function(e,t){var r;if(e.projectOptions.allowCommentDirectives)return[];const i=new Array;for(const e of null!==(r=t.commentDirectives)&&void 0!==r?r:[])i.push(n.errors.noCommentDirectives({sourceFile:t,range:e.range}));const a=t.pragmas.get("ts-nocheck");if(a)for(const e of Array.isArray(a)?a:[a])i.push(n.errors.noCommentDirectives({sourceFile:t,range:e.range}));return i}},1627:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createReadBuildProgramHost=void 0;const i=n(r(5423));t.createReadBuildProgramHost=function(){return{getCurrentDirectory:i.default.sys.getCurrentDirectory,readFile:i.default.sys.readFile,useCaseSensitiveFileNames:()=>i.default.sys.useCaseSensitiveFileNames}}},2179:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomPreEmitDiagnostics=void 0;const n=[r(8405).fileUsesCommentDirectives];t.getCustomPreEmitDiagnostics=function(e,t){const r=new Array;for(const i of n)r.push(...i(e,t));return r}},1164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lazy=void 0,t.Lazy=class{constructor(e){this.getValue=e,this.isInitialized=!1}get(){return this.isInitialized||(this.isInitialized=!0,this.value=this.getValue()),this.value}set(e){this.isInitialized=!0,this.value=e}}},761:function(e,t,r){"use strict";var n=r(4155),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;const a=i(r(1391));class o{static write(e){this.partial=!e.endsWith("\n"),n.stdout.write(e)}static writeLine(...e){this.partial&&this.write("\n");for(const t of e)this.write(t+"\n")}static writeLineIfVerbose(...e){this.verbose&&this.writeLine(...e)}static warn(e){this.writeLine(`${a.default.yellow("Compiler Warning:")} ${e}`)}}t.LogService=o,o.verbose=!1,o.partial=!1},421:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PathTranslator=void 0;const i=n(r(6470)),a=r(6258),o=r(2287);class s{constructor(e,t,r){this.dirName=e,this.fileName=t,this.exts=r}static from(e){const t=i.default.dirname(e),r=e.slice(t.length+i.default.sep.length).split("."),n=r.shift(),a=r.map((e=>"."+e));return(0,o.assert)(void 0!==n),new s(t,n,a)}extsPeek(e=0){return this.exts[this.exts.length-(e+1)]}join(){return i.default.join(this.dirName,[this.fileName,...this.exts].join(""))}}t.PathTranslator=class{constructor(e,t,r,n){this.rootDir=e,this.outDir=t,this.buildInfoOutputPath=r,this.declaration=n}makeRelativeFactory(e=this.rootDir,t=this.outDir){return r=>i.default.join(t,i.default.relative(e,r.join()))}getOutputPath(e){const t=this.makeRelativeFactory(),r=s.from(e);return r.extsPeek()!==a.TS_EXT&&r.extsPeek()!==a.TSX_EXT||r.extsPeek(1)===a.D_EXT||(r.exts.pop(),r.fileName===a.INDEX_NAME&&(r.fileName=a.INIT_NAME),r.exts.push(a.LUA_EXT)),t(r)}getOutputDeclarationPath(e){const t=this.makeRelativeFactory(),r=s.from(e);return r.extsPeek()!==a.TS_EXT&&r.extsPeek()!==a.TSX_EXT||r.extsPeek(1)===a.D_EXT||(r.exts.pop(),r.exts.push(a.DTS_EXT)),t(r)}getOutputTransformedPath(e){const t=this.makeRelativeFactory(),r=s.from(e);return r.extsPeek(1)===a.D_EXT?r.exts.splice(r.exts.length-2,0,a.TRANSFORMED_EXT):r.exts.splice(r.exts.length-1,0,a.TRANSFORMED_EXT),t(r)}getInputPaths(e){const t=this.makeRelativeFactory(this.outDir,this.rootDir),r=new Array,n=s.from(e);if(n.extsPeek()===a.LUA_EXT&&n.fileName!==a.INDEX_NAME){if(n.exts.pop(),n.exts.push(a.TS_EXT),r.push(t(n)),n.exts.pop(),n.exts.push(a.TSX_EXT),r.push(t(n)),n.exts.pop(),n.fileName===a.INIT_NAME){const e=n.fileName;n.fileName=a.INDEX_NAME,n.exts.push(a.TS_EXT),r.push(t(n)),n.exts.pop(),n.exts.push(a.TSX_EXT),r.push(t(n)),n.exts.pop(),n.fileName=e}n.exts.push(a.LUA_EXT)}if(this.declaration&&(n.extsPeek()===a.TS_EXT||n.extsPeek()===a.TSX_EXT)&&n.extsPeek(1)===a.D_EXT){const e=n.exts.pop();(0,o.assert)(e),n.exts.pop(),n.exts.push(a.TS_EXT),r.push(t(n)),n.exts.pop(),n.exts.push(a.TSX_EXT),r.push(t(n)),n.exts.pop(),n.exts.push(a.D_EXT),n.exts.push(e)}return r.push(t(n)),r}getImportPath(e,t=!1){const r=this.makeRelativeFactory(),n=s.from(e);return n.extsPeek()!==a.TS_EXT&&n.extsPeek()!==a.TSX_EXT||(n.exts.pop(),n.extsPeek()===a.D_EXT&&n.exts.pop(),n.fileName===a.INDEX_NAME&&(n.fileName=a.INIT_NAME),n.exts.push(a.LUA_EXT)),t?n.join():r(n)}}},6258:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PROJECT_OPTIONS=t.ProjectType=t.PARENT_FIELD=t.FILENAME_WARNINGS=t.MODULE_SUBEXT=t.CLIENT_SUBEXT=t.SERVER_SUBEXT=t.INIT_NAME=t.INDEX_NAME=t.JSON_EXT=t.LUA_EXT=t.TRANSFORMED_EXT=t.DTS_EXT=t.D_EXT=t.TSX_EXT=t.TS_EXT=t.RBXTS_SCOPE=t.NODE_MODULES=t.COMPILER_VERSION=t.INCLUDE_PATH=t.PACKAGE_ROOT=void 0;const i=n(r(6470));t.PACKAGE_ROOT=i.default.join("/","..",".."),t.INCLUDE_PATH=i.default.join(t.PACKAGE_ROOT,"include"),t.COMPILER_VERSION=r(5402).version,t.NODE_MODULES="node_modules",t.RBXTS_SCOPE="@rbxts",t.TS_EXT=".ts",t.TSX_EXT=".tsx",t.D_EXT=".d",t.DTS_EXT=t.D_EXT+t.TS_EXT,t.TRANSFORMED_EXT=".transformed",t.LUA_EXT=".lua",t.JSON_EXT=".json",t.INDEX_NAME="index",t.INIT_NAME="init",t.SERVER_SUBEXT=".server",t.CLIENT_SUBEXT=".client",t.MODULE_SUBEXT="",t.FILENAME_WARNINGS=new Map;for(const e of[t.SERVER_SUBEXT,t.CLIENT_SUBEXT,t.MODULE_SUBEXT])for(const r of[t.TS_EXT,t.TSX_EXT,t.DTS_EXT])t.FILENAME_WARNINGS.set(t.INIT_NAME+e+r,t.INDEX_NAME+e+r);var a;t.PARENT_FIELD="Parent",(a=t.ProjectType||(t.ProjectType={})).Game="game",a.Model="model",a.Package="package",t.DEFAULT_PROJECT_OPTIONS={includePath:"",rojo:void 0,type:void 0,watch:!1,usePolling:!1,verbose:!1,noInclude:!1,logTruthyChanges:!1,writeOnlyChanged:!1,writeTransformedFiles:!1,optimizedLoops:!1,allowCommentDirectives:!1}},7370:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.warnings=t.errors=t.getDiagnosticId=void 0;const i=n(r(1391)),a=r(8597),o=r(9889),s=n(r(5423));function c(e){return"Suggestion: "+i.default.yellow(e)}function l(e){return"More information: "+i.default.grey(`https://github.com/roblox-ts/roblox-ts/issues/${e}`)}let u=0;function d(e,...t){return _(e,void 0,...t)}function _(e,t,...r){const n=(i,...o)=>(s.default.DiagnosticCategory.Error,t&&r.push(...t(...o)),(0,a.createDiagnosticWithLocation)(n.id,r.filter((e=>!1!==e)).join("\n"),e,i));return n.id=u++,n}function f(e,...t){return(0,o.createTextDiagnostic)(t.filter((e=>!1!==e)).join("\n"),e)}function p(...e){return d(s.default.DiagnosticCategory.Error,...e)}function m(e,...t){return _(s.default.DiagnosticCategory.Error,e,...t)}function g(...e){return f(s.default.DiagnosticCategory.Error,...e)}function y(...e){return d(s.default.DiagnosticCategory.Warning,...e)}t.getDiagnosticId=function(e){return e.id},t.errors={noInvalidIdentifier:p("Invalid Luau identifier!","Luau identifiers must start with a letter and only contain letters, numbers, and underscores.","Reserved Luau keywords cannot be used as identifiers."),noReservedIdentifier:p("Cannot use identifier reserved for compiler internal usage."),noReservedClassFields:p("Cannot use class field reserved for compiler internal usage."),noClassMetamethods:p("Metamethods cannot be used in class definitions!"),noForInStatement:p("for-in loop statements are not supported!"),noLabeledStatement:p("labels are not supported!"),noDebuggerStatement:p("`debugger` is not supported!"),noNullLiteral:p("`null` is not supported!",c("Use `undefined` instead.")),noPrivateIdentifier:p("Private identifiers are not supported!"),noTypeOfExpression:p("`typeof` operator is not supported!",c("Use `typeIs(value, type)` or `typeOf(value)` instead.")),noRegex:p("Regular expressions are not supported!"),noBigInt:p("BigInt literals are not supported!"),noAny:p("Using values of type `any` is not supported!",c("Use `unknown` instead.")),noVar:p("`var` keyword is not supported!",c("Use `let` or `const` instead.")),noGetterSetter:p("Getters and Setters are not supported!",l(457)),noAutoAccessorModifiers:p("Getters and Setters are not supported!","The `accessor` keyword requires generating get/set accessors",l(457)),noEqualsEquals:p("operator `==` is not supported!",c("Use `===` instead.")),noExclamationEquals:p("operator `!=` is not supported!",c("Use `!==` instead.")),noEnumMerging:p("Enum merging is not supported!"),noNamespaceMerging:p("Namespace merging is not supported!"),noSpreadDestructuring:p("Operator `...` is not supported for destructuring!"),noFunctionExpressionName:p("Function expression names are not supported!"),noPrecedingSpreadElement:p("Spread element must come last in a list of arguments!"),noLuaTupleDestructureAssignmentExpression:p("Cannot destructure LuaTuple expression outside of an ExpressionStatement!"),noExportAssignmentLet:p("Cannot use `export =` on a `let` variable!",c("Use `const` instead.")),noGlobalThis:p("`globalThis` is not supported!"),noArguments:p("`arguments` is not supported!"),noPrototype:p("`prototype` is not supported!"),noSuperProperty:p("super properties are not supported!"),noRobloxSymbolInstanceof:p("The `instanceof` operator can only be used on roblox-ts classes!",c('Use `typeIs(myThing, "TypeToCheck") instead')),noNonNumberStringRelationOperator:p("Relation operators can only be used on number or string types!"),noInstanceMethodCollisions:p("Static methods cannot use the same name as instance methods!"),noStaticMethodCollisions:p("Instance methods cannot use the same name as static methods!"),noUnaryPlus:p("Unary `+` is not supported!",c("Use `tonumber(x)` instead.")),noNonNumberUnaryMinus:p("Unary `-` is only supported for number types!"),noAwaitForOf:p("`await` is not supported in for-of loops!"),noAsyncGeneratorFunctions:p("Async generator functions are not supported!"),noNonStringModuleSpecifier:p("Module specifiers must be a string literal."),noIterableIteration:p("Iterating on Iterable is not supported! You must use a more specific type."),noLuaTupleInTemplateExpression:p("Can't use LuaTuple in a template literal expression!",c("Did you mean to add `[0]`?")),noMixedTypeCall:p("Attempted to call a function with mixed types! All definitions must either be a method or a callback."),noIndexWithoutCall:p("Cannot index a method without calling it!",c("Use the form `() => a.b()` instead of `a.b`.")),noCommentDirectives:p("Usage of `@ts-ignore`, `@ts-expect-error`, and `@ts-nocheck` are not supported!","roblox-ts needs type and symbol info to compile correctly.",c("Consider using type assertions or `declare` statements.")),noOptionalMacroCall:p("Macro methods can not be optionally called!",c("Macros always exist. Use a normal call.")),noConstructorMacroWithoutNew:p("Cannot index a constructor macro without using the `new` operator!"),noMacroExtends:p("Cannot extend from a macro class!"),noMacroUnion:p("Macro cannot be applied to a union type!"),noMacroObjectSpread:p("Macro classes cannot be used in an object spread!",c("Did you mean to use an array spread? `[ ...exp ]`")),noVarArgsMacroSpread:p("Macros which use variadric arguments do not support spread expressions!",l(1149)),noRangeMacroOutsideForOf:p("$range() macro is only valid as an expression of a for-of loop!"),noTupleMacroOutsideReturn:p("$tuple() macro is only valid as an expression of a return statement!"),noModuleSpecifierFile:p("Could not find file for import. Did you forget to `npm install`?"),noInvalidModule:p("You can only use npm scopes that are listed in your typeRoots."),noUnscopedModule:p("You cannot use modules directly under node_modules."),noNonModuleImport:p("Cannot import a non-ModuleScript!"),noIsolatedImport:p("Attempted to import a file inside of an isolated container from outside!"),noServerImport:p("Cannot import a server file from a shared or client location!",c("Move the file you want to import to a shared location.")),invalidJsxFactory:p("compilerOptions.jsxFactory must be `Roact.createElement`!"),invalidJsxFragmentFactory:p("compilerOptions.jsxFragmentFactory must be `Roact.createFragment`!"),noRoactInheritance:p("Composition is preferred over inheritance with Roact components.","More info: https://reactjs.org/docs/composition-vs-inheritance.html"),noSuperPropertyCallRoactComponent:p("`super` is not supported inside Roact components!"),missingSuperConstructorRoactComponent:p("`super(props)` must be the first statement of the constructor in a Roact component!"),noJsxText:p("JSX text is not supported!"),expectedMethodGotFunction:p("Attempted to assign non-method where method was expected."),expectedFunctionGotMethod:p("Attempted to assign method where non-method was expected."),noRojoData:m(((e,t)=>[`Could not find Rojo data. There is no $path in your Rojo config that covers ${e}`,t&&c("Did you forget to add a custom npm scope to your default.project.json?")])),noPackageImportWithoutScope:m(((e,t)=>["Imported package Roblox path is missing an npm scope!",`Package path: ${e}`,`Roblox path: ${t.join(".")}`,c('You might need to update your "node_modules" in default.project.json to match:\n"node_modules": {\n\t"$className": "Folder",\n\t"@rbxts": {\n\t\t"$path": "node_modules/@rbxts"\n\t}\n}')])),incorrectFileName:(e,t,r)=>g(`Incorrect file name: \`${e}\`!`,`Full path: ${r}`,c(`Change \`${e}\` to \`${t}\`.`)),rojoPathInSrc:(e,t)=>g("Invalid Rojo configuration. $path fields should be relative to out directory.",c(`Change the value of $path from "${e}" to "${t}".`))},t.warnings={truthyChange:e=>y(`Value will be checked against ${e}`),stringOffsetChange:e=>y(`String macros no longer offset inputs: ${e}`),transformerNotFound:(e,t)=>function(...e){return f(s.default.DiagnosticCategory.Warning,...e)}(`Transformer \`${e}\` was not found!`,"More info: "+t,c("Did you forget to install the package?")),runtimeLibUsedInReplicatedFirst:y("This statement would generate a call to the runtime library. The runtime library should not be used from ReplicatedFirst.")}},7783:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticError=void 0;const n=r(779),i=r(8301);class a extends n.LoggableError{constructor(e){super(),this.diagnostics=e}toString(){return(0,i.formatDiagnostics)(this.diagnostics)}}t.DiagnosticError=a},779:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggableError=void 0;const n=r(761);t.LoggableError=class{constructor(){}log(){n.LogService.writeLine(this.toString())}}},3333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectError=void 0;const n=r(7783),i=r(9889);class a extends n.DiagnosticError{constructor(e){super([(0,i.createTextDiagnostic)(e)])}}t.ProjectError=a},2287:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(`Assertion Failed! ${null!=t?t:""}\nThis is a compiler bug! Please submit a bug report here:\nhttps://github.com/roblox-ts/roblox-ts/issues`)}},5568:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.assertNever=void 0;const i=n(r(5423));t.assertNever=function(e,t){throw new Error(`Exhaustiveness Assertion Failed! ${t}, value was ${i.default.isNode(e)?e.kind:e}\nThis is usually caused by a TypeScript version mismatch.\nMake sure that all TS versions in your project are the same.\nYou can check the list of installed versions with \`npm list typescript\``)}},8597:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDiagnosticWithLocation=void 0,t.createDiagnosticWithLocation=function(e,t,r,n){const i=" roblox-ts";return"kind"in n?{category:r,code:i,messageText:t,diagnosticType:0,id:e,file:n.getSourceFile(),start:n.getStart(),length:n.getWidth()}:{category:r,code:i,messageText:t,diagnosticType:0,id:e,file:n.sourceFile,start:n.range.pos,length:n.range.end}}},9889:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createTextDiagnostic=void 0;const i=n(r(5423));t.createTextDiagnostic=function(e,t=i.default.DiagnosticCategory.Error){return{category:t,code:" roblox-ts",file:void 0,messageText:e,start:void 0,length:void 0}}},2532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findLastIndex=void 0,t.findLastIndex=function(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}},8301:function(e,t,r){"use strict";var n=r(4155),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatDiagnostics=void 0;const a=r(7435),o=i(r(5423));t.formatDiagnostics=function(e){return o.default.formatDiagnosticsWithColorAndContext(e,{getCurrentDirectory:()=>n.cwd(),getCanonicalFileName:e=>e,getNewLine:()=>a.EOL})}},4998:function(e,t,r){"use strict";var n,i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCanonicalFileName=void 0;const o=a(r(5423));t.getCanonicalFileName=o.default.createGetCanonicalFileName(null===(i=null===(n=o.default.sys)||void 0===n?void 0:n.useCaseSensitiveFileNames)||void 0===i||i)},2991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrSetDefault=void 0,t.getOrSetDefault=function(e,t,r){let n=e.get(t);return void 0===n&&(n=r(),e.set(t,n)),n}},7856:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hasErrors=void 0;const i=n(r(5423));t.hasErrors=function(e){return e.some((e=>e.category===i.default.DiagnosticCategory.Error))}},2420:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isPathDescendantOf=void 0;const i=n(r(6470));t.isPathDescendantOf=function(e,t){return t===e||!i.default.relative(t,e).startsWith("..")}},4482:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.realPathExistsSync=void 0;const i=n(r(651));t.realPathExistsSync=function(e){if(i.default.pathExistsSync(e))return i.default.realpathSync(e)}},4502:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticService=void 0;const n=r(7856);class i{static addSingleDiagnostic(e){this.singleDiagnostics.has(e.code)||(this.singleDiagnostics.add(e.code),this.addDiagnostic(e))}static addDiagnostic(e){this.diagnostics.push(e)}static addDiagnostics(e){this.diagnostics.push(...e)}static addDiagnosticWithCache(e,t,r){r.has(e)||(r.add(e),this.addDiagnostic(t))}static flush(){const e=this.diagnostics;return this.diagnostics=[],this.singleDiagnostics.clear(),e}static hasErrors(){return(0,n.hasErrors)(this.diagnostics)}}t.DiagnosticService=i,i.diagnostics=new Array,i.singleDiagnostics=new Set},1677:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MacroManager=t.NOMINAL_LUA_TUPLE_NAME=t.SYMBOL_NAMES=void 0;const i=r(3333),a=r(2287),o=r(6662),s=r(8221),c=r(8503),l=r(153),u=r(6219),d=n(r(5423));function _(e,t){return e.getTypeAtLocation((0,u.skipUpwards)(t))}t.SYMBOL_NAMES={globalThis:"globalThis",ArrayConstructor:"ArrayConstructor",SetConstructor:"SetConstructor",MapConstructor:"MapConstructor",WeakSetConstructor:"WeakSetConstructor",WeakMapConstructor:"WeakMapConstructor",ReadonlyMapConstructor:"ReadonlyMapConstructor",ReadonlySetConstructor:"ReadonlySetConstructor",Array:"Array",Generator:"Generator",IterableFunction:"IterableFunction",LuaTuple:"LuaTuple",Map:"Map",Object:"Object",ReadonlyArray:"ReadonlyArray",ReadonlyMap:"ReadonlyMap",ReadonlySet:"ReadonlySet",ReadVoxelsArray:"ReadVoxelsArray",Set:"Set",String:"String",TemplateStringsArray:"TemplateStringsArray",WeakMap:"WeakMap",WeakSet:"WeakSet",Iterable:"Iterable",$range:"$range",$tuple:"$tuple"},t.NOMINAL_LUA_TUPLE_NAME="_nominal_LuaTuple";const f=new Set([t.SYMBOL_NAMES.ReadonlyArray,t.SYMBOL_NAMES.Array,t.SYMBOL_NAMES.ReadonlyMap,t.SYMBOL_NAMES.WeakMap,t.SYMBOL_NAMES.Map,t.SYMBOL_NAMES.ReadonlySet,t.SYMBOL_NAMES.WeakSet,t.SYMBOL_NAMES.Set,t.SYMBOL_NAMES.String]);function p(e,t){var r;for(const n of null!==(r=e.declarations)&&void 0!==r?r:[])if(t(n))return n;throw new i.ProjectError("")}function m(e,t,r){const n=e.resolveName(t,void 0,r,!1);if(n)return n;throw new i.ProjectError(`MacroManager could not find symbol for ${t}\nYou may need to update your @rbxts/compiler-types!`)}function g(e){for(const t of e.members)if(d.default.isConstructSignatureDeclaration(t))return(0,a.assert)(t.symbol),t.symbol;throw new i.ProjectError(`MacroManager could not find constructor for ${e.name.text}\nYou may need to update your @rbxts/compiler-types!`)}t.MacroManager=class{constructor(e){var r,n,u;this.symbols=new Map,this.identifierMacros=new Map,this.callMacros=new Map,this.constructorMacros=new Map,this.propertyCallMacros=new Map;for(const[t,r]of Object.entries(c.IDENTIFIER_MACROS)){const n=m(e,t,d.default.SymbolFlags.Variable);this.identifierMacros.set(n,r)}for(const[t,r]of Object.entries(o.CALL_MACROS)){const n=m(e,t,d.default.SymbolFlags.Function);this.callMacros.set(n,r)}for(const[t,r]of Object.entries(s.CONSTRUCTOR_MACROS)){const n=g(p(m(e,t,d.default.SymbolFlags.Interface),d.default.isInterfaceDeclaration));this.constructorMacros.set(n,r)}for(const[t,n]of Object.entries(l.PROPERTY_CALL_MACROS)){const o=m(e,t,d.default.SymbolFlags.Interface),s=new Map;for(const t of null!==(r=o.declarations)&&void 0!==r?r:[])if(d.default.isInterfaceDeclaration(t))for(const r of t.members)if(d.default.isMethodSignature(r)&&d.default.isIdentifier(r.name)){const t=_(e,r).symbol;(0,a.assert)(t),s.set(r.name.text,t)}for(const[e,r]of Object.entries(n)){const n=s.get(e);if(!n)throw new i.ProjectError(`MacroManager could not find method for ${t}.${e}\nYou may need to update your @rbxts/compiler-types!`);this.propertyCallMacros.set(n,r)}}for(const r of Object.values(t.SYMBOL_NAMES)){const t=e.resolveName(r,void 0,d.default.SymbolFlags.All,!1);if(!t)throw new i.ProjectError(`MacroManager could not find symbol for ${r}\nYou may need to update your @rbxts/compiler-types!`);this.symbols.set(r,t)}const f=null===(u=null===(n=this.symbols.get(t.SYMBOL_NAMES.LuaTuple))||void 0===n?void 0:n.declarations)||void 0===u?void 0:u.find((e=>d.default.isTypeAliasDeclaration(e)));if(f){const r=e.getTypeAtLocation(f).getProperty(t.NOMINAL_LUA_TUPLE_NAME);r&&this.symbols.set(t.NOMINAL_LUA_TUPLE_NAME,r)}}getSymbolOrThrow(e){const t=this.symbols.get(e);return(0,a.assert)(t),t}isMacroOnlyClass(e){return this.symbols.get(e.name)===e&&f.has(e.name)}getIdentifierMacro(e){return this.identifierMacros.get(e)}getCallMacro(e){return this.callMacros.get(e)}getConstructorMacro(e){return this.constructorMacros.get(e)}getPropertyCallMacro(e){const t=this.propertyCallMacros.get(e);return!t&&e.parent&&this.symbols.get(e.parent.name)===e.parent&&this.isMacroOnlyClass(e.parent)&&(0,a.assert)(!1,`Macro ${e.parent.name}.${e.name}() is not implemented!`),t}}},8570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTransformState=void 0,t.MultiTransformState=class{constructor(){this.isMethodCache=new Map,this.isDefinedAsLetCache=new Map,this.isReportedByNoAnyCache=new Set,this.isReportedByMultipleDefinitionsCache=new Set,this.getModuleExportsCache=new Map,this.getModuleExportsAliasMapCache=new Map}}},3506:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RoactSymbolManager=t.ROACT_SYMBOL_NAMES=void 0;const i=n(r(651)),a=n(r(6470)),o=r(6258),s=r(2287),c=r(4482),l=r(8368),u=n(r(5423));t.ROACT_SYMBOL_NAMES={Component:"Component",PureComponent:"PureComponent",Fragment:"Fragment",Element:"Element"};class d{constructor(e,r){var n,i,a,o;this.symbols=new Map,this.jsxIntrinsicNameMap=new Map;const c=null===(i=null===(n=r.locals)||void 0===n?void 0:n.get(u.default.escapeLeadingUnderscores("Roact")))||void 0===i?void 0:i.valueDeclaration;(0,s.assert)(c);const d=c.symbol.exports;(0,s.assert)(d);for(const r of Object.values(t.ROACT_SYMBOL_NAMES)){const t=d.get(u.default.escapeLeadingUnderscores(r));(0,s.assert)(t),this.symbols.set(r,u.default.skipAlias(t,e))}for(const t of e.getJsxIntrinsicTagNamesAt(r)){(0,s.assert)(t.valueDeclaration&&u.default.isPropertySignature(t.valueDeclaration)),(0,s.assert)(t.valueDeclaration.type&&u.default.isTypeReferenceNode(t.valueDeclaration.type));const r=null===(a=t.valueDeclaration.type.typeArguments)||void 0===a?void 0:a[0].getText();(0,s.assert)(r),this.jsxIntrinsicNameMap.set(u.default.skipAlias(t,e),r)}const _=d.get(u.default.escapeLeadingUnderscores("JsxInstance"));(0,s.assert)(_);const f=null===(o=_.declarations)||void 0===o?void 0:o[0];(0,s.assert)(f);const p=e.getTypeAtLocation(f),m=e.getPropertyOfType(p,l.CHANGE_ATTRIBUTE_NAME);(0,s.assert)(m),this.symbols.set(l.CHANGE_ATTRIBUTE_NAME,u.default.skipAlias(m,e));const g=e.getPropertyOfType(p,l.EVENT_ATTRIBUTE_NAME);(0,s.assert)(g),this.symbols.set(l.EVENT_ATTRIBUTE_NAME,u.default.skipAlias(g,e))}static create(e,t,r){var n,s;const l=a.default.join(e.nodeModulesPath,o.RBXTS_SCOPE,"roact"),u=(0,c.realPathExistsSync)(a.default.join(l,"package.json"));if(void 0!==u){const e=i.default.readJsonSync(u),o=(0,c.realPathExistsSync)(a.default.join(l,null!==(s=null!==(n=e.types)&&void 0!==n?n:e.typings)&&void 0!==s?s:"index.d.ts"));if(void 0!==o){const e=t.getSourceFile(o);if(e)return new d(r,e)}}const _=a.default.join(e.nodeModulesPath,o.RBXTS_SCOPE,"roact","src","index.d.ts"),f=t.getSourceFile(_);if(f)return new d(r,f)}getSymbolOrThrow(e){const t=this.symbols.get(e);return(0,s.assert)(t,`Could not find symbol for ${e}`),t}getIntrinsicElementClassNameFromSymbol(e){return this.jsxIntrinsicNameMap.get(e)}}t.RoactSymbolManager=d},7196:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TransformState=void 0;const s=a(r(9861)),c=r(1979),l=o(r(6470)),u=r(6258),d=r(7370),_=r(2287),f=r(2991),p=r(4502),m=r(8446),g=r(4160),y=r(6219),v=r(2161),h=o(r(5423));t.TransformState=class{debugRender(e){const t=new s.RenderState;return(0,s.solveTempIds)(t,e),(0,s.render)(t,e)}debugRenderList(e){const t=new s.RenderState;return(0,s.solveTempIds)(t,e),(0,s.renderStatements)(t,e)}constructor(e,t,r,n,i,a,o,s,c,l,u,d,_,f){this.program=e,this.data=t,this.services=r,this.pathTranslator=n,this.multiTransformState=i,this.compilerOptions=a,this.rojoResolver=o,this.pkgRojoResolvers=s,this.nodeModulesPathMapping=c,this.reverseSymlinkMap=l,this.runtimeLibRbxPath=u,this.typeChecker=d,this.projectType=_,this.hasExportEquals=!1,this.hasExportFrom=!1,this.tryUsesStack=new Array,this.prereqStatementsStack=new Array,this.hoistsByStatement=new Map,this.isHoisted=new Map,this.getTypeCache=new Map,this.usesRuntimeLib=!1,this.moduleIdBySymbol=new Map,this.symbolToIdMap=new Map,this.classElementToObjectKeyMap=new Map,this.sourceFileText=f.getFullText(),this.resolver=d.getEmitResolver(f);const p=this.pathTranslator.getOutputPath(f.fileName),m=this.rojoResolver.getRbxPathFromFilePath(p);this.isInReplicatedFirst=void 0!==m&&"ReplicatedFirst"===m[0]}pushTryUsesStack(){const e={usesReturn:!1,usesBreak:!1,usesContinue:!1};return this.tryUsesStack.push(e),e}markTryUses(e){0!==this.tryUsesStack.length&&(this.tryUsesStack[this.tryUsesStack.length-1][e]=!0)}popTryUsesStack(){this.tryUsesStack.pop()}prereq(e){s.default.list.push(this.prereqStatementsStack[this.prereqStatementsStack.length-1],e)}prereqList(e){s.default.list.pushList(this.prereqStatementsStack[this.prereqStatementsStack.length-1],e)}pushPrereqStatementsStack(){const e=s.default.list.make();return this.prereqStatementsStack.push(e),e}popPrereqStatementsStack(){const e=this.prereqStatementsStack.pop();return(0,_.assert)(e),e}getLeadingComments(e){var t;const r=null!==(t=h.default.getLeadingCommentRanges(this.sourceFileText,e.pos))&&void 0!==t?t:[];return s.default.list.make(...r.map((e=>s.default.comment(this.sourceFileText.substring(e.pos+2,e.kind===h.default.SyntaxKind.SingleLineCommentTrivia?e.end:e.end-2)))))}capturePrereqs(e){return this.pushPrereqStatementsStack(),e(),this.popPrereqStatementsStack()}capture(e){let t;const r=this.capturePrereqs((()=>t=e()));return[t,r]}noPrereqs(e){let t;const r=this.capturePrereqs((()=>t=e()));return(0,_.assert)(s.default.list.isEmpty(r)),t}getType(e){return(0,f.getOrSetDefault)(this.getTypeCache,e,(()=>this.typeChecker.getTypeAtLocation((0,y.skipUpwards)(e))))}TS(e,t){return this.usesRuntimeLib=!0,this.projectType===u.ProjectType.Game&&this.isInReplicatedFirst&&p.DiagnosticService.addDiagnostic(d.warnings.runtimeLibUsedInReplicatedFirst(e)),s.default.property(s.default.globals.TS,t)}createRuntimeLibImport(e){if(this.runtimeLibRbxPath){if(this.projectType===u.ProjectType.Game){const e=this.runtimeLibRbxPath[0];(0,_.assert)(e);let t=(0,m.createGetService)(e);for(let e=1;ee===c.RbxPathParent?u.PARENT_FIELD:e)))])}):(p.DiagnosticService.addDiagnostic(d.errors.noRojoData(e,l.default.relative(this.data.projectPath,t),!1)),s.default.create(s.default.SyntaxKind.VariableDeclaration,{left:s.default.globals.TS,right:s.default.none()}))}}return s.default.create(s.default.SyntaxKind.VariableDeclaration,{left:s.default.globals.TS,right:s.default.create(s.default.SyntaxKind.ComputedIndexExpression,{expression:s.default.globals._G,index:s.default.globals.script})})}pushToVar(e,t){const r=s.default.tempId(t||e&&(0,v.valueToIdStr)(e));return this.prereq(s.default.create(s.default.SyntaxKind.VariableDeclaration,{left:r,right:e})),r}pushToVarIfComplex(e,t){return s.default.isSimple(e)?e:this.pushToVar(e,t)}pushToVarIfNonId(e,t){return s.default.isAnyIdentifier(e)?e:this.pushToVar(e,t)}getModuleExports(e){return(0,f.getOrSetDefault)(this.multiTransformState.getModuleExportsCache,e,(()=>this.typeChecker.getExportsOfModule(e)))}getModuleExportsAliasMap(e){return(0,f.getOrSetDefault)(this.multiTransformState.getModuleExportsAliasMapCache,e,(()=>{var t;const r=new Map;for(const n of this.getModuleExports(e)){const e=h.default.skipAlias(n,this.typeChecker),i=null===(t=n.getDeclarations())||void 0===t?void 0:t[0];i&&h.default.isExportSpecifier(i)?r.set(e,i.name.text):r.set(e,n.name)}return r}))}getModuleSymbolFromNode(e){const t=(0,y.getModuleAncestor)(e),r=this.typeChecker.getSymbolAtLocation(h.default.isSourceFile(t)?t:t.name);return(0,_.assert)(r),r}getModuleIdFromSymbol(e){const t=this.moduleIdBySymbol.get(e);return(0,_.assert)(t),t}setModuleIdBySymbol(e,t){this.moduleIdBySymbol.set(e,t)}getModuleIdFromNode(e){const t=this.getModuleSymbolFromNode(e);return this.getModuleIdFromSymbol(t)}getModuleIdPropertyAccess(e){if(e.valueDeclaration){const t=this.getModuleSymbolFromNode(e.valueDeclaration),r=this.getModuleExportsAliasMap(t).get(e);if(r)return s.default.property(this.getModuleIdFromSymbol(t),r)}}guessVirtualPath(e){const t=e;for(;;){const r=l.default.dirname(e);if(e===r)break;e=r;const n=this.reverseSymlinkMap.get(e);if(n)return l.default.join(n,l.default.relative(e,t))}return t}setClassElementObjectKey(e,t){(0,_.assert)(!this.classElementToObjectKeyMap.has(e)),this.classElementToObjectKeyMap.set(e,t)}getClassElementObjectKey(e){return this.classElementToObjectKeyMap.get(e)}}},3115:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSourceFile=void 0,i(r(1677),t),i(r(8570),t),i(r(3506),t),i(r(7196),t);var a=r(8228);Object.defineProperty(t,"transformSourceFile",{enumerable:!0,get:function(){return a.transformSourceFile}})},6662:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CALL_MACROS=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(6453),c=r(3842),l=r(410),u=new Set(["nil","boolean","string","number","table","userdata","function","thread","vector"]);t.CALL_MACROS={assert:(e,t,r,n)=>(n[0]=(0,l.createTruthinessChecks)(e,n[0],t.arguments[0]),i.default.call(i.default.globals.assert,n)),typeOf:(e,t,r,n)=>i.default.call(i.default.globals.typeof,n),typeIs:(e,t,r,n)=>{const[a,o]=n,s=i.default.isStringLiteral(o)&&u.has(o.value)?i.default.globals.type:i.default.globals.typeof;return i.default.binary(i.default.call(s,[a]),"==",o)},classIs:(e,t,r,n)=>{const[a,o]=n;return i.default.binary(i.default.property((0,s.convertToIndexableExpression)(a),"ClassName"),"==",o)},identity:(e,t,r,n)=>n[0],$range:(e,t)=>(o.DiagnosticService.addDiagnostic(a.errors.noRangeMacroOutsideForOf(t.expression)),i.default.none()),$tuple:(e,t)=>(o.DiagnosticService.addDiagnostic(a.errors.noTupleMacroOutsideReturn(t)),i.default.none()),$getModuleTree:(e,t)=>{const r=(0,c.getImportParts)(e,t.getSourceFile(),t.arguments[0]);return i.default.array([r.shift(),i.default.array(r)])}}},8221:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTRUCTOR_MACROS=void 0;const i=n(r(9861)),a=r(2287),o=r(6671),s=r(7034),c=n(r(5423));function l(e,t,r){return i.default.call(i.default.globals.setmetatable,[r(e,t),i.default.map([[i.default.strings.__mode,i.default.strings.k]])])}const u=(e,t)=>{if(!t.arguments||0===t.arguments.length)return i.default.set();const r=t.arguments[0];if(c.default.isArrayLiteralExpression(r)&&!r.elements.some(c.default.isSpreadElement))return i.default.set((0,s.ensureTransformOrder)(e,r.elements));{const t=e.pushToVar(i.default.set(),"set"),n=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(i.default.tempId(),n),expression:(0,o.transformExpression)(e,r),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:n}),operator:"=",right:i.default.bool(!0)}))})),t}},d=(e,t)=>{if(!t.arguments||0===t.arguments.length)return i.default.map();const r=t.arguments[0],n=(0,o.transformExpression)(e,r);if(i.default.isArray(n)&&i.default.list.every(n.members,(e=>i.default.isArray(e)))){const e=i.default.list.toArray(n.members).map((e=>((0,a.assert)(i.default.isArray(e)&&i.default.list.isNonEmpty(e.members)),[e.members.head.value,e.members.head.next.value])));return i.default.map(e)}{const t=e.pushToVar(i.default.map(),"map"),r=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(i.default.tempId(),r),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:i.default.number(1)})}),operator:"=",right:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:i.default.number(2)})}))})),t}};t.CONSTRUCTOR_MACROS={ArrayConstructor:(e,t)=>{if(t.arguments&&t.arguments.length>0){const r=(0,s.ensureTransformOrder)(e,t.arguments);return i.default.call(i.default.globals.table.create,r)}return i.default.array()},SetConstructor:u,MapConstructor:d,WeakSetConstructor:(e,t)=>l(e,t,u),WeakMapConstructor:(e,t)=>l(e,t,d),ReadonlyMapConstructor:d,ReadonlySetConstructor:u}},8503:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDENTIFIER_MACROS=void 0,t.IDENTIFIER_MACROS={Promise:(e,t)=>e.TS(t,"Promise")}},153:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PROPERTY_CALL_MACROS=void 0;const i=n(r(9861)),a=r(2287),o=r(6453),s=r(6409),c=r(9582),l=r(1915),u=r(2161),d=n(r(5423));function _(e){return(t,r,n,a)=>{let o=a[0];return i.default.isSimple(o)||(o=i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:o})),i.default.binary(n,e,o)}}const f=new Map([["+","add"],["-","sub"],["*","mul"],["/","div"]]);function p(...e){const t={};for(const r of e){const e=f.get(r);(0,a.assert)(e),t[e]=_(r)}return t}function m(e){return(t,r,n,a)=>i.default.call(e,[n,...a])}const g={size:(e,t,r)=>i.default.unary("#",r),byte:m(i.default.globals.string.byte),find:m(i.default.globals.string.find),format:m(i.default.globals.string.format),gmatch:m(i.default.globals.string.gmatch),gsub:m(i.default.globals.string.gsub),lower:m(i.default.globals.string.lower),match:m(i.default.globals.string.match),rep:m(i.default.globals.string.rep),reverse:m(i.default.globals.string.reverse),split:m(i.default.globals.string.split),sub:m(i.default.globals.string.sub),upper:m(i.default.globals.string.upper)};function y(e,t){return(r,n,a,o)=>{a=r.pushToVarIfComplex(a,"exp");const s=r.pushToVar(i.default.bool(t),"result"),c=r.pushToVarIfNonId(o[0],"callback"),l=i.default.tempId("k"),u=i.default.tempId("v"),d=i.default.call(c,e(l,u,a));return r.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(l,u),expression:a,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:t?i.default.unary("not",d):d,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"=",right:i.default.bool(!t)}),i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}))})),s}}const v={size:(e,t,r)=>i.default.unary("#",r)},h={isEmpty:(e,t,r)=>i.default.binary(i.default.unary("#",r),"==",i.default.number(0)),join:(e,t,r,n)=>{n=function(e,t,r){for(let n=0;n{const a=[r,(0,c.offset)(n[0],1),(0,c.offset)(n[1],1),(0,c.offset)(n[2],1)];return n[3]&&a.push(n[3]),i.default.call(i.default.globals.table.move,a)},includes:(e,t,r,n)=>{const a=[r,n[0]];return n[1]&&a.push((0,c.offset)(n[1],1)),i.default.binary(i.default.call(i.default.globals.table.find,a),"~=",i.default.nil())},indexOf:(e,t,r,n)=>{const a=[r,n[0]];return n.length>1&&a.push((0,c.offset)(n[1],1)),(0,c.offset)(i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(i.default.globals.table.find,a),operator:"or",right:i.default.number(0)}),-1)},every:(x=(e,t,r)=>[t,(0,c.offset)(e,-1),r],y(x,!0)),some:y(((e,t,r)=>[t,(0,c.offset)(e,-1),r]),!1),forEach:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVarIfNonId(n[0],"callback"),o=i.default.tempId("k"),l=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(o,l),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(a,[l,(0,c.offset)(o,-1),r])}))})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil()},map:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVar(i.default.call(i.default.globals.table.create,[i.default.unary("#",r)]),"newValue"),o=e.pushToVarIfNonId(n[0],"callback"),s=i.default.tempId("k"),l=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s,l),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:a,index:s}),operator:"=",right:i.default.call(o,[l,(0,c.offset)(s,-1),r])}))})),a},mapFiltered:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVar(i.default.array(),"newValue"),o=e.pushToVarIfNonId(n[0],"callback"),s=e.pushToVar(i.default.number(0),"length"),l=i.default.tempId("k"),u=i.default.tempId("v"),d=i.default.tempId("result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(l,u),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:d,right:i.default.call(o,[u,(0,c.offset)(l,-1),r])}),i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(d,"~=",i.default.nil()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:a,index:s}),operator:"=",right:d})),elseBody:i.default.list.make()}))})),a},filterUndefined:(e,t,r)=>{r=e.pushToVarIfComplex(r,"exp");const n=e.pushToVar(i.default.number(0),"length"),a=i.default.tempId("i");e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(a),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(a,">",n),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:a})),elseBody:i.default.list.make()}))}));const s=e.pushToVar(i.default.array(),"result"),c=e.pushToVar(i.default.number(0),"resultLength"),l=i.default.tempId("i"),u=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.NumericForStatement,{id:l,start:i.default.number(1),end:n,step:void 0,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:u,right:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:l})}),i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(u,"~=",i.default.nil()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:c,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:s,index:c}),operator:"=",right:u})),elseBody:i.default.list.make()}))})),s},filter:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVar(i.default.array(),"newValue"),o=e.pushToVarIfNonId(n[0],"callback"),s=e.pushToVar(i.default.number(0),"length"),l=i.default.tempId("k"),u=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(l,u),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(o,[u,(0,c.offset)(l,-1),r]),operator:"==",right:i.default.bool(!0)}),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:a,index:s}),operator:"=",right:u})),elseBody:i.default.list.make()}))})),a},reduce:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");let a=i.default.number(1);const s=i.default.unary("#",r),l=i.default.unary("#",r);let u;n.length<2?(e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(l,"==",i.default.number(0)),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.error,[i.default.string("Attempted to call `ReadonlyArray.reduce()` on an empty array without an initialValue.")])})),elseBody:i.default.list.make()})),u=e.pushToVar(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:a}),"result"),a=(0,c.offset)(a,1)):u=e.pushToVar(n[1],"result");const d=e.pushToVar(n[0],"callback"),_=i.default.tempId("i");return e.prereq(i.default.create(i.default.SyntaxKind.NumericForStatement,{id:_,start:a,end:s,step:void 0,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:i.default.call(d,[u,i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:_}),(0,c.offset)(_,-1),r])}))})),u},find:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVarIfNonId(n[0],"callback"),o=i.default.tempId("i"),s=i.default.tempId("v"),l=e.pushToVar(void 0,"result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{expression:r,ids:i.default.list.make(o,s),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(a,[s,(0,c.offset)(o,-1),r]),operator:"==",right:i.default.bool(!0)}),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:l,operator:"=",right:s}),i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}))})),l},findIndex:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVarIfNonId(n[0],"callback"),o=i.default.tempId("i"),s=i.default.tempId("v"),l=e.pushToVar(i.default.number(-1),"result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{expression:r,ids:i.default.list.make(o,s),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(a,[s,(0,c.offset)(o,-1),r]),operator:"==",right:i.default.bool(!0)}),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:l,operator:"=",right:(0,c.offset)(o,-1)}),i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}))})),l}};var x;const b={push:(e,t,r,n)=>{for(let t=0;t{r=e.pushToVarIfComplex(r,"exp");let n=i.default.unary("#",r);const a=!(0,s.isUsedAsStatement)(t);let c;return a&&(n=e.pushToVar(n,"length"),c=e.pushToVar(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:n}),"result")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:n}),operator:"=",right:i.default.nil()})),a?c:i.default.none()},shift:(e,t,r)=>i.default.call(i.default.globals.table.remove,[r,i.default.number(1)]),unshift:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");for(let t=n.length-1;t>=0;t--){const a=n[t];e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.insert,[r,i.default.number(1),a])}))}return(0,s.isUsedAsStatement)(t)?i.default.none():i.default.unary("#",r)},insert:(e,t,r,n)=>i.default.call(i.default.globals.table.insert,[r,(0,c.offset)(n[0],1),n[1]]),remove:(e,t,r,n)=>i.default.call(i.default.globals.table.remove,[r,(0,c.offset)(n[0],1)]),unorderedRemove:(e,t,r,n)=>{const a=e.pushToVarIfComplex((0,c.offset)(n[0],1),"index");r=e.pushToVarIfComplex(r,"exp");const l=e.pushToVar(i.default.unary("#",r),"length"),u=!(0,s.isUsedAsStatement)(t),d=e.pushToVar(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:a}),"value");return e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(d,"~=",i.default.nil()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:a}),operator:"=",right:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:l})}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:l}),operator:"=",right:i.default.nil()})),elseBody:i.default.list.make()})),u?d:i.default.none()},sort:(e,t,r,n)=>{const a=!(0,s.isUsedAsStatement)(t);return a&&(r=e.pushToVarIfComplex(r,"exp")),n.unshift(r),e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.sort,n)})),a?r:i.default.none()},clear:(e,t,r)=>(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.clear,[r])})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil())},D={isEmpty:(e,t,r)=>i.default.binary(i.default.call(i.default.globals.next,[r]),"==",i.default.nil()),size:(e,t,r)=>{const n=e.pushToVar(i.default.number(0),"size");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(i.default.tempId()),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(1)}))})),n},has:(e,t,r,n)=>{const a=i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:n[0]});return i.default.binary(a,"~=",i.default.nil())}},S={delete:(e,t,r,n)=>{const a=e.pushToVarIfComplex(n[0],"value"),c=!(0,s.isUsedAsStatement)(t);let l;return c&&(l=e.pushToVar(i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:a}),operator:"~=",right:i.default.nil()}),"valueExisted")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:a}),operator:"=",right:i.default.nil()})),c?l:i.default.none()},clear:(e,t,r)=>(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.clear,[r])})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil())},T={...D,forEach:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVarIfNonId(n[0],"callback"),o=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(o),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(a,[o,o,r])}))})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil()}},C={...S,add:(e,t,r,n)=>{const a=!(0,s.isUsedAsStatement)(t);return a&&(r=e.pushToVarIfComplex(r,"exp")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:n[0]}),operator:"=",right:i.default.bool(!0)})),a?r:i.default.none()}},E={...D,forEach:(e,t,r,n)=>{r=e.pushToVarIfComplex(r,"exp");const a=e.pushToVarIfNonId(n[0],"callback"),o=i.default.tempId("k"),c=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(o,c),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(a,[c,o,r])}))})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil()},get:(e,t,r,n)=>i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:n[0]})},k={...S,set:(e,t,r,n)=>{const[a,c]=n,l=!(0,s.isUsedAsStatement)(t);return l&&(r=e.pushToVarIfComplex(r,"exp")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,o.convertToIndexableExpression)(r),index:a}),operator:"=",right:c})),l?r:i.default.none()}},N={then:(e,t,r,n)=>i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:(0,o.convertToIndexableExpression)(r),name:"andThen",args:i.default.list.make(...n)})};function A(e,t){return(r,n,a,o)=>{const[s,c]=r.capture((()=>t(r,n,a,o)));let l=i.default.list.size(c);if(l>0){const t=function(e,t){if(i.default.list.isNonEmpty(e)){const r=e.head.value;if(i.default.isVariableDeclaration(r)&&!i.default.list.isList(r.left)&&i.default.isTemporaryIdentifier(r.left)&&r.right===t)return!0}return!1}(c,a);let r;t&&(r=i.default.list.shift(c),l--),l>1?(i.default.list.unshift(c,(u=e,i.default.comment(`â–¼ ${u} â–¼`))),t&&r&&i.default.list.unshift(c,r),i.default.list.push(c,function(e){return i.default.comment(`â–² ${e} â–²`)}(e))):t&&r&&i.default.list.unshift(c,r)}var u;return r.prereqList(c),s}}t.PROPERTY_CALL_MACROS={CFrame:p("+","-","*"),UDim:p("+","-"),UDim2:p("+","-"),Vector2:p("+","-","*","/"),Vector2int16:p("+","-","*","/"),Vector3:p("+","-","*","/"),Vector3int16:p("+","-","*","/"),String:g,ArrayLike:v,ReadonlyArray:h,Array:b,ReadonlySet:T,Set:C,ReadonlyMap:E,Map:k,Promise:N};for(const[e,r]of Object.entries(t.PROPERTY_CALL_MACROS))for(const[t,n]of Object.entries(r))r[t]=A(`${e}.${t}`,n)},7598:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformArrayAssignmentPattern=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(2865),l=r(1782),u=r(7010),d=r(3550),_=r(2036),f=r(6219),p=n(r(5423));t.transformArrayAssignmentPattern=function e(t,r,n){let m=0;const g=new Array,y=(0,d.getAccessorForBindingType)(t,r,t.typeChecker.getTypeOfAssignmentPattern(r));for(let d of r.elements){if(p.default.isOmittedExpression(d))y(t,n,m,g,!0);else if(p.default.isSpreadElement(d))s.DiagnosticService.addDiagnostic(a.errors.noSpreadDestructuring(d));else{let r;p.default.isBinaryExpression(d)&&(r=(0,f.skipDownwards)(d.right),d=(0,f.skipDownwards)(d.left));const a=y(t,n,m,g,!1);if(p.default.isIdentifier(d)||p.default.isElementAccessExpression(d)||p.default.isPropertyAccessExpression(d)){const e=(0,u.transformWritableExpression)(t,d,void 0!==r);t.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:e,operator:"=",right:a})),r&&t.prereq((0,l.transformInitializer)(t,e,r))}else if(p.default.isArrayLiteralExpression(d)){const n=t.pushToVar(a,"binding");r&&t.prereq((0,l.transformInitializer)(t,n,r)),e(t,d,n)}else if(p.default.isObjectLiteralExpression(d)){const e=t.pushToVar(a,"binding");r&&t.prereq((0,l.transformInitializer)(t,e,r)),(0,c.transformObjectAssignmentPattern)(t,d,e)}else(0,o.assert)(!1,`transformArrayAssignmentPattern invalid element: ${(0,_.getKindName)(d.kind)}`)}m++}}},2396:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformArrayBindingPattern=void 0;const i=r(7370),a=r(4502),o=r(5235),s=r(8007),c=r(1782),l=r(3550),u=r(3972),d=n(r(5423));t.transformArrayBindingPattern=function e(t,r,n){(0,u.validateNotAnyType)(t,r);let _=0;const f=new Array,p=(0,l.getAccessorForBindingType)(t,r,t.getType(r));for(const l of r.elements){if(d.default.isOmittedExpression(l))p(t,n,_,f,!0);else{if(l.dotDotDotToken)return void a.DiagnosticService.addDiagnostic(i.errors.noSpreadDestructuring(l));const r=l.name,u=p(t,n,_,f,!1);if(d.default.isIdentifier(r)){const e=(0,s.transformVariable)(t,r,u);l.initializer&&t.prereq((0,c.transformInitializer)(t,e,l.initializer))}else{const n=t.pushToVar(u,"binding");l.initializer&&t.prereq((0,c.transformInitializer)(t,n,l.initializer)),d.default.isArrayBindingPattern(r)?e(t,r,n):(0,o.transformObjectBindingPattern)(t,r,n)}}_++}}},1822:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBindingName=void 0;const i=n(r(9861)),a=r(2396),o=r(5235),s=r(6848),c=n(r(5423));t.transformBindingName=function(e,t,r){let n;return c.default.isIdentifier(t)?n=(0,s.transformIdentifierDefined)(e,t):(n=i.default.tempId("binding"),i.default.list.pushList(r,e.capturePrereqs((()=>{c.default.isArrayBindingPattern(t)?(0,a.transformArrayBindingPattern)(e,t,n):(0,o.transformObjectBindingPattern)(e,t,n)})))),n}},2865:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformObjectAssignmentPattern=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(7598),l=r(1782),u=r(7010),d=r(529),_=r(2036),f=r(6219),p=n(r(5423));t.transformObjectAssignmentPattern=function e(t,r,n){for(const m of r.properties)if(p.default.isShorthandPropertyAssignment(m)){const e=m.name,a=(0,d.objectAccessor)(t,n,t.typeChecker.getTypeOfAssignmentPattern(r),e),s=(0,u.transformWritableExpression)(t,e,void 0!==m.objectAssignmentInitializer);t.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"=",right:a})),(0,o.assert)(i.default.isAnyIdentifier(s)),m.objectAssignmentInitializer&&t.prereq((0,l.transformInitializer)(t,s,m.objectAssignmentInitializer))}else{if(p.default.isSpreadAssignment(m))return void s.DiagnosticService.addDiagnostic(a.errors.noSpreadDestructuring(m));if(p.default.isPropertyAssignment(m)){const a=m.name;let s,g=m.initializer;p.default.isBinaryExpression(m.initializer)&&(s=(0,f.skipDownwards)(m.initializer.right),g=(0,f.skipDownwards)(m.initializer.left));const y=(0,d.objectAccessor)(t,n,t.typeChecker.getTypeOfAssignmentPattern(r),a);if(p.default.isIdentifier(g)||p.default.isElementAccessExpression(g)||p.default.isPropertyAccessExpression(g)){const e=(0,u.transformWritableExpression)(t,g,void 0!==s);t.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:e,operator:"=",right:y})),s&&t.prereq((0,l.transformInitializer)(t,e,s))}else if(p.default.isArrayLiteralExpression(g)){const e=t.pushToVar(y,"binding");s&&t.prereq((0,l.transformInitializer)(t,e,s)),(0,o.assert)(p.default.isIdentifier(a)),(0,c.transformArrayAssignmentPattern)(t,g,e)}else if(p.default.isObjectLiteralExpression(g)){const r=t.pushToVar(y,"binding");s&&t.prereq((0,l.transformInitializer)(t,r,s)),e(t,g,r)}else(0,o.assert)(!1,`transformObjectAssignmentPattern invalid initializer: ${(0,_.getKindName)(g.kind)}`)}else(0,o.assert)(!1,`transformObjectAssignmentPattern invalid property: ${(0,_.getKindName)(m.kind)}`)}}},5235:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformObjectBindingPattern=void 0;const i=r(7370),a=r(2287),o=r(4502),s=r(2396),c=r(8007),l=r(1782),u=r(529),d=r(3972),_=n(r(5423));t.transformObjectBindingPattern=function e(t,r,n){(0,d.validateNotAnyType)(t,r);for(const d of r.elements){if(d.dotDotDotToken)return void o.DiagnosticService.addDiagnostic(i.errors.noSpreadDestructuring(d));const f=d.name,p=d.propertyName;if(_.default.isIdentifier(f)){const e=(0,u.objectAccessor)(t,n,t.getType(r),null!=p?p:f),i=(0,c.transformVariable)(t,f,e);d.initializer&&t.prereq((0,l.transformInitializer)(t,i,d.initializer))}else{(0,a.assert)(p);const i=(0,u.objectAccessor)(t,n,t.getType(r),p),o=t.pushToVar(i,"binding");d.initializer&&t.prereq((0,l.transformInitializer)(t,o,d.initializer)),_.default.isArrayBindingPattern(f)?(0,s.transformArrayBindingPattern)(t,f,o):e(t,f,o)}}}},7759:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassConstructor=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(6671),c=r(6848),l=r(7937),u=r(5671),d=r(8043),_=r(8966),f=r(9655),p=r(1441),m=n(r(5423));t.transformClassConstructor=function(e,t,r,n){var g;const y=i.default.list.make();let v=n?(0,p.getStatements)(n.body):[];const h=(0,_.extendsRoactComponent)(e,t);let x=h,b=i.default.list.make(),D=!1;if(n){const{statements:t,parameters:r,hasDotDotDot:a}=(0,l.transformParameters)(e,n);i.default.list.pushList(y,t),b=r,D=a}else!h&&(0,f.getExtendsNode)(t)&&(D=!0,i.default.list.push(y,i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.property(i.default.globals.super,"constructor"),[i.default.globals.self,i.default.create(i.default.SyntaxKind.VarArgsLiteral,{})])})));function S(){if(!x&&(x=!0,v.length>0)){const t=v[0];m.default.isExpressionStatement(t)&&m.default.isSuperCall(t.expression)&&i.default.list.pushList(y,(0,d.transformStatementList)(e,[t]))}}for(const t of null!==(g=null==n?void 0:n.parameters)&&void 0!==g?g:[])if(m.default.isParameterPropertyDeclaration(t,t.parent)){S();const r=(0,c.transformIdentifierDefined)(e,t.name);i.default.list.push(y,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(i.default.globals.self,r.name),operator:"=",right:r}))}for(const r of t.members)if(m.default.isPropertyDeclaration(r)&&!m.default.hasStaticModifier(r)){S();const n=r.name;if(m.default.isPrivateIdentifier(n)){o.DiagnosticService.addDiagnostic(a.errors.noPrivateIdentifier(t));continue}const c=r.initializer;if(!c)continue;const[l,d]=e.capture((()=>(0,u.transformPropertyName)(e,n)));i.default.list.pushList(y,d);const[_,f]=e.capture((()=>(0,s.transformExpression)(e,c)));i.default.list.pushList(y,f),i.default.list.push(y,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:i.default.globals.self,index:l}),operator:"=",right:_}))}if(x&&v.length>0){const e=v[0];m.default.isExpressionStatement(e)&&m.default.isSuperCall(e.expression)&&(v=v.slice(1))}return i.default.list.pushList(y,(0,d.transformStatementList)(e,v)),i.default.list.make(i.default.create(i.default.SyntaxKind.MethodDeclaration,{expression:r,name:h?"init":"constructor",statements:y,parameters:b,hasDotDotDot:D}))}},5082:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassLikeDeclaration=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(3115),c=r(4502),l=r(7759),u=r(4541),d=r(5616),_=r(6671),f=r(6848),p=r(8111),m=r(6453),g=r(8966),y=r(9655),v=r(2036),h=r(9525),x=r(837),b=r(4735),D=n(r(5423)),S="toString";t.transformClassLikeDeclaration=function(e,t){const r=D.default.isClassExpression(t),n=i.default.list.make(),T=!!D.default.getSelectedSyntacticModifierFlags(t,D.default.ModifierFlags.ExportDefault);t.name&&(0,x.validateIdentifier)(e,t.name);const C=r&&void 0!==t.name;let E,k;E=C?i.default.tempId("class"):t.name?(0,f.transformIdentifierDefined)(e,t.name):T?i.default.id("default"):i.default.tempId("class"),k=C?t.name?(0,f.transformIdentifierDefined)(e,t.name):i.default.tempId("class"):E,function(e,t){if(t.name){const r=e.typeChecker.getSymbolAtLocation(t.name);return(0,o.assert)(r),!0===e.isHoisted.get(r)}return!1}(e,t)||i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:E,right:void 0})),function(e,t){const r=(0,y.getExtendsNode)(t);if(r){const t=(0,h.getOriginalSymbolOfNode)(e.typeChecker,r.expression);if(t)return t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.ArrayConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.SetConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.MapConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.WeakSetConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.WeakMapConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.ReadonlyMapConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.ReadonlySetConstructor)}return!1}(e,t)&&c.DiagnosticService.addDiagnostic(a.errors.noMacroExtends(t));const N=(0,g.extendsRoactComponent)(e,t),A=i.default.list.make();N?i.default.list.pushList(A,function(e,t,r,n){const a=(0,y.getExtendsNode)(t);(0,o.assert)(a);const s=i.default.list.make(),[c,l]=e.capture((()=>(0,_.transformExpression)(e,a.expression)));i.default.list.pushList(s,l);const u=i.default.isIdentifier(r)?r.name:"Anonymous",d=i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:(0,m.convertToIndexableExpression)(c),name:"extend",args:i.default.list.make(i.default.string(u))});return n&&t.name?i.default.list.push(s,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:(0,f.transformIdentifierDefined)(e,t.name),right:d})):i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:d})),s}(e,t,k,r)):i.default.list.pushList(A,function(e,t,r,n){const o=!!D.default.getSelectedSyntacticModifierFlags(t,D.default.ModifierFlags.Abstract),s=i.default.list.make(),l=(0,y.getExtendsNode)(t);if(o&&!l)i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:i.default.mixedTable()}));else{const o=i.default.list.make();if(i.default.list.push(o,i.default.create(i.default.SyntaxKind.MapField,{index:i.default.strings.__tostring,value:(u=i.default.isTemporaryIdentifier(r)?"Anonymous":r.name,i.default.create(i.default.SyntaxKind.FunctionExpression,{statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.string(u)})),parameters:i.default.list.make(),hasDotDotDot:!1}))})),l){const r=function(e,t){if(D.default.isClassLike(t))return t;const r=e.typeChecker.getSymbolAtLocation(t);return r&&r.valueDeclaration&&D.default.isClassLike(r.valueDeclaration)?r.valueDeclaration:void 0}(e,l.expression);r&&(0,g.extendsRoactComponent)(e,r)&&c.DiagnosticService.addDiagnostic(a.errors.noRoactInheritance(t));const[n,u]=e.capture((()=>(0,_.transformExpression)(e,l.expression))),d=i.default.id("super");i.default.list.pushList(s,u),i.default.list.push(s,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:d,right:n})),i.default.list.push(o,i.default.create(i.default.SyntaxKind.MapField,{index:i.default.strings.__index,value:d}))}const d=i.default.call(i.default.globals.setmetatable,[i.default.map(),i.default.create(i.default.SyntaxKind.Map,{fields:o})]);n&&t.name?i.default.list.push(s,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:(0,f.transformIdentifierDefined)(e,t.name),right:d})):i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:d})),i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(r,"__index"),operator:"=",right:r}))}var u;if(!o){const e=i.default.list.make();i.default.list.push(e,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.globals.self,right:i.default.call(i.default.globals.setmetatable,[i.default.map(),r])})),i.default.list.push(e,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.binary(i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:i.default.globals.self,name:"constructor",args:i.default.list.make(i.default.create(i.default.SyntaxKind.VarArgsLiteral,{}))}),"or",i.default.globals.self)})),i.default.list.push(s,i.default.create(i.default.SyntaxKind.FunctionDeclaration,{name:i.default.property(r,"new"),parameters:i.default.list.make(),hasDotDotDot:!0,statements:e,localize:!1}))}return s}(e,t,k,r)),i.default.list.pushList(A,(0,l.transformClassConstructor)(e,t,k,function(e){return e.members.find((e=>D.default.isConstructorDeclaration(e)&&void 0!==e.body))}(t)));for(const e of t.members)if((D.default.isPropertyDeclaration(e)||D.default.isMethodDeclaration(e))&&(D.default.isIdentifier(e.name)||D.default.isStringLiteral(e.name))&&(i.default.isReservedClassField(e.name.text)||N&&i.default.isReservedRoactClassField(e.name.text))&&c.DiagnosticService.addDiagnostic(a.errors.noReservedClassFields(e.name)),D.default.isAutoAccessorPropertyDeclaration(e)){const t=D.default.getModifiers(e).find((e=>e.kind===D.default.SyntaxKind.AccessorKeyword));c.DiagnosticService.addDiagnostic(a.errors.noAutoAccessorModifiers(t))}const P=new Array,F=new Array;for(const r of t.members)if((0,b.validateMethodAssignment)(e,r),!(D.default.isConstructorDeclaration(r)||D.default.isIndexSignatureDeclaration(r)||D.default.isSemicolonClassElement(r)))if(D.default.isMethodDeclaration(r))P.push(r);else if(D.default.isPropertyDeclaration(r)){if(!D.default.hasStaticModifier(r))continue;F.push(r)}else D.default.isAccessor(r)?c.DiagnosticService.addDiagnostic(a.errors.noGetterSetter(r)):(0,o.assert)(!1,`ClassMember kind not implemented: ${(0,v.getKindName)(r.kind)}`);const w=e.typeChecker.getTypeOfSymbolAtLocation(t.symbol,t),I=e.typeChecker.getDeclaredTypeOfSymbol(t.symbol);for(const t of P)(D.default.isIdentifier(t.name)||D.default.isStringLiteral(t.name))&&(i.default.isMetamethod(t.name.text)&&c.DiagnosticService.addDiagnostic(a.errors.noClassMetamethods(t.name)),D.default.getSelectedSyntacticModifierFlags(t,D.default.ModifierFlags.Static)?void 0!==I.getProperty(t.name.text)&&c.DiagnosticService.addDiagnostic(a.errors.noInstanceMethodCollisions(t)):void 0!==w.getProperty(t.name.text)&&c.DiagnosticService.addDiagnostic(a.errors.noStaticMethodCollisions(t))),i.default.list.pushList(A,(0,p.transformMethodDeclaration)(e,t,{name:"name",value:k}));const M=I.getProperty(S);M&&M.flags&D.default.SymbolFlags.Method&&i.default.list.push(A,i.default.create(i.default.SyntaxKind.MethodDeclaration,{expression:k,name:"__tostring",hasDotDotDot:!1,parameters:i.default.list.make(),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:i.default.globals.self,name:S,args:i.default.list.make()})}))}));for(const t of F)i.default.list.pushList(A,(0,d.transformPropertyDeclaration)(e,t,k));return C&&i.default.list.push(A,i.default.create(i.default.SyntaxKind.Assignment,{left:E,operator:"=",right:k})),i.default.list.pushList(A,(0,u.transformDecorators)(e,t,E)),i.default.list.push(n,i.default.create(i.default.SyntaxKind.DoStatement,{statements:A})),{statements:n,name:E}}},4541:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformDecorators=void 0;const i=n(r(9861)),a=r(2287),o=r(6671),s=r(5671),c=r(6453),l=n(r(5423));function u(e,t,r){const n=i.default.list.make(),u=i.default.list.make(),d=l.default.getDecorators(t),_=void 0!==d&&d.length>1,f=t.name;if(!f||l.default.isPrivateIdentifier(f))return n;for(const p of null!=d?d:[]){let d,[m,g]=e.capture((()=>(0,o.transformExpression)(e,p.expression)));if(i.default.list.pushList(n,g),_&&!i.default.isSimple(m)){const e=i.default.tempId("decorator");i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:e,right:m})),m=e}if((l.default.isMethodDeclaration(t)||l.default.isPropertyDeclaration(t))&&(d=e.getClassElementObjectKey(t),!d)){(0,a.assert)(!l.default.isBindingPattern(f));const t=e.capturePrereqs((()=>d=(0,s.transformPropertyName)(e,f)));i.default.list.pushList(n,t)}i.default.list.unshiftList(u,r((0,c.convertToIndexableExpression)(m),d))}return i.default.list.pushList(n,u),n}function d(e,t,r){return u(e,t,((e,t)=>{(0,a.assert)(t);const n=i.default.list.make(),o=i.default.tempId("descriptor");return i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:o,right:i.default.call(e,[r,t,i.default.map([[i.default.string("value"),i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:t})]])])})),i.default.list.push(n,i.default.create(i.default.SyntaxKind.IfStatement,{condition:o,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:t}),operator:"=",right:i.default.property(o,"value")})),elseBody:i.default.list.make()})),n}))}function _(e,t,r){return u(e,t,((e,t)=>((0,a.assert)(t),i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(e,[r,t])})))))}function f(e,t,r){const n=i.default.list.make();for(let a=0;ai.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(e,[r,i.default.string(s.text),i.default.number(a)])})))))}return n}t.transformDecorators=function(e,t,r){const n=i.default.list.make();for(const a of t.members)l.default.getSelectedSyntacticModifierFlags(a,l.default.ModifierFlags.Static)||(l.default.isMethodDeclaration(a)?(i.default.list.pushList(n,d(e,a,r)),i.default.list.pushList(n,f(e,a,r))):l.default.isPropertyDeclaration(a)&&i.default.list.pushList(n,_(e,a,r)));for(const a of t.members)l.default.getSelectedSyntacticModifierFlags(a,l.default.ModifierFlags.Static)&&(l.default.isMethodDeclaration(a)?(i.default.list.pushList(n,d(e,a,r)),i.default.list.pushList(n,f(e,a,r))):l.default.isPropertyDeclaration(a)&&i.default.list.pushList(n,_(e,a,r)));for(const a of t.members)l.default.isConstructorDeclaration(a)&&i.default.list.pushList(n,f(e,a,r));return i.default.list.pushList(n,function(e,t,r){return u(e,t,(e=>i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:i.default.binary(i.default.call(e,[r]),"or",r)}))))}(e,t,r)),n}},5616:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropertyDeclaration=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(6671),c=r(5671),l=n(r(5423));t.transformPropertyDeclaration=function(e,t,r){return l.default.hasStaticModifier(t)?l.default.isPrivateIdentifier(t.name)?(o.DiagnosticService.addDiagnostic(a.errors.noPrivateIdentifier(t)),i.default.list.make()):t.initializer?i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:(0,c.transformPropertyName)(e,t.name)}),operator:"=",right:(0,s.transformExpression)(e,t.initializer)})):i.default.list.make():i.default.list.make()}},250:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformArrayLiteralExpression=void 0;const i=n(r(9861)),a=r(2287),o=r(6671),s=r(7034),c=r(3901),l=r(274),u=n(r(5423));t.transformArrayLiteralExpression=function(e,t){if(!t.elements.find((e=>u.default.isSpreadElement(e))))return i.default.array((0,s.ensureTransformOrder)(e,t.elements));const r=(0,l.createArrayPointer)("array"),n=i.default.tempId("length");let d=!1,_=0;function f(){const t=i.default.unary("#",r.value);d?e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:t})):(e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:t})),d=!0),_=0}for(let s=0;s(0,o.transformExpression)(e,d)));i.default.isArray(r.value)&&!i.default.list.isEmpty(a)&&((0,l.disableArrayInline)(e,r),f()),i.default.isArray(r.value)?i.default.list.push(r.value.members,t):(e.prereqList(a),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r.value,index:i.default.binary(n,"+",i.default.number(_+1))}),operator:"=",right:t}))),_++}}return r.value}},7075:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformAwaitExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(6219);t.transformAwaitExpression=function(e,t){return i.default.call(e.TS(t,"await"),[(0,a.transformExpression)(e,(0,o.skipDownwards)(t.expression))])}},8e3:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBinaryExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(7598),l=r(2865),u=r(6671),d=r(1782),_=r(5741),f=r(5260),p=r(7010),m=r(6614),g=r(6453),y=r(3262),v=r(7034),h=r(2036),x=r(2824),b=r(6409),D=r(6219),S=r(1915),T=r(3972),C=n(r(5423));function E(e,t,r){const n=i.default.list.make(),u=i.default.list.make(),_=i.default.list.make(),f=e.capturePrereqs((()=>{for(let r of t.elements)if(C.default.isOmittedExpression(r))i.default.list.push(u,i.default.tempId());else if(C.default.isSpreadElement(r))s.DiagnosticService.addDiagnostic(a.errors.noSpreadDestructuring(r));else{let t;if(C.default.isBinaryExpression(r)&&(t=(0,D.skipDownwards)(r.right),r=(0,D.skipDownwards)(r.left)),C.default.isIdentifier(r)||C.default.isElementAccessExpression(r)||C.default.isPropertyAccessExpression(r)){const[n,a]=e.capture((()=>(0,p.transformWritableExpression)(e,r,!0)));i.default.list.pushList(_,a),i.default.list.push(u,n),t&&e.prereq((0,d.transformInitializer)(e,n,t))}else if(C.default.isArrayLiteralExpression(r)){const a=i.default.tempId("binding");i.default.list.push(n,a),i.default.list.push(u,a),t&&e.prereq((0,d.transformInitializer)(e,a,t)),(0,c.transformArrayAssignmentPattern)(e,r,a)}else if(C.default.isObjectLiteralExpression(r)){const a=i.default.tempId("binding");i.default.list.push(n,a),i.default.list.push(u,a),t&&e.prereq((0,d.transformInitializer)(e,a,t)),(0,l.transformObjectAssignmentPattern)(e,r,a)}else(0,o.assert)(!1,`transformOptimizedArrayAssignmentPattern invalid element: ${(0,h.getKindName)(r.kind)}`)}}));i.default.list.isEmpty(n)||e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:void 0})),e.prereqList(_),(0,o.assert)(!i.default.list.isEmpty(u)),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:r})),e.prereqList(f)}t.transformBinaryExpression=function(e,t){const r=t.operatorToken.kind;if((0,T.validateNotAnyType)(e,t.left),(0,T.validateNotAnyType)(e,t.right),r===C.default.SyntaxKind.EqualsEqualsToken)return s.DiagnosticService.addDiagnostic(a.errors.noEqualsEquals(t)),i.default.none();if(r===C.default.SyntaxKind.ExclamationEqualsToken)return s.DiagnosticService.addDiagnostic(a.errors.noExclamationEquals(t)),i.default.none();if(r===C.default.SyntaxKind.AmpersandAmpersandToken||r===C.default.SyntaxKind.BarBarToken||r===C.default.SyntaxKind.QuestionQuestionToken)return(0,_.transformLogical)(e,t);if(C.default.isLogicalOrCoalescingAssignmentExpression(t))return(0,f.transformLogicalOrCoalescingAssignmentExpression)(e,t);if(C.default.isAssignmentOperator(r)){if(C.default.isArrayLiteralExpression(t.left)){const r=(0,u.transformExpression)(e,t.right);if(0===t.left.elements.length)return(0,b.isUsedAsStatement)(t)&&i.default.isArray(r)&&i.default.list.isEmpty(r.members)?i.default.none():r;if(i.default.isCall(r)&&(0,S.isLuaTupleType)(e)(e.getType(t.right)))return E(e,t.left,r),(0,b.isUsedAsStatement)(t)||s.DiagnosticService.addDiagnostic(a.errors.noLuaTupleDestructureAssignmentExpression(t)),i.default.none();if(i.default.isArray(r)&&!i.default.list.isEmpty(r.members)&&(0,b.isUsedAsStatement)(t))return E(e,t.left,r.members),i.default.none();const n=e.pushToVar(r,"binding");return(0,c.transformArrayAssignmentPattern)(e,t.left,n),n}if(C.default.isObjectLiteralExpression(t.left)){const r=(0,u.transformExpression)(e,t.right);if(0===t.left.properties.length)return(0,b.isUsedAsStatement)(t)&&i.default.isMap(r)&&i.default.list.isEmpty(r.fields)?i.default.none():r;const n=e.pushToVar(r,"binding");return(0,l.transformObjectAssignmentPattern)(e,t.left,n),n}const n=e.getType(t.left),o=e.getType(t.right),d=(0,m.getSimpleAssignmentOperator)(n,r,o),{writable:_,readable:f,value:g}=(0,p.transformWritableAssignment)(e,t.left,t.right,!0,void 0===d);return void 0!==d?(0,m.createAssignmentExpression)(e,_,d,"..="!==d||(0,S.isDefinitelyType)(o,S.isStringType)?g:i.default.call(i.default.globals.tostring,[g])):(0,m.createCompoundAssignmentExpression)(e,t,_,n,f,r,g,o)}const[n,o]=(0,v.ensureTransformOrder)(e,[t.left,t.right]);if(r===C.default.SyntaxKind.InKeyword)return i.default.binary(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,g.convertToIndexableExpression)(o),index:n}),"~=",i.default.nil());if(r===C.default.SyntaxKind.InstanceOfKeyword){const r=(0,S.getFirstDefinedSymbol)(e,e.getType(t.right));return(0,x.isSymbolFromRobloxTypes)(e,r)&&s.DiagnosticService.addDiagnostic(a.errors.noRobloxSymbolInstanceof(t.right)),i.default.call(e.TS(t,"instanceof"),[n,o])}const d=e.getType(t.left),h=e.getType(t.right);return r!==C.default.SyntaxKind.LessThanToken&&r!==C.default.SyntaxKind.LessThanEqualsToken&&r!==C.default.SyntaxKind.GreaterThanToken&&r!==C.default.SyntaxKind.GreaterThanEqualsToken||((0,S.isDefinitelyType)(d,S.isStringType)||(0,S.isDefinitelyType)(d,S.isNumberType))&&((0,S.isDefinitelyType)(h,S.isStringType)||(0,S.isDefinitelyType)(d,S.isNumberType))||s.DiagnosticService.addDiagnostic(a.errors.noNonNumberStringRelationOperator(t)),(0,y.createBinaryFromOperator)(e,t,n,d,r,o,h)}},2157:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformFalseKeyword=t.transformTrueKeyword=void 0;const i=n(r(9861));t.transformTrueKeyword=function(){return i.default.create(i.default.SyntaxKind.TrueLiteral,{})},t.transformFalseKeyword=function(){return i.default.create(i.default.SyntaxKind.FalseLiteral,{})}},4698:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformCallExpression=t.transformElementCallExpressionInner=t.transformPropertyCallExpressionInner=t.transformCallExpressionInner=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(6671),c=r(7637),l=r(8087),u=r(8576),d=r(6453),_=r(7034),f=r(5708),p=r(3968),m=r(833),g=r(2824),y=r(1915),v=r(3972),h=r(2161),x=r(1511),b=n(r(5423));function D(e,t,r,n,s){let c;const l=t.capturePrereqs((()=>{c=(0,_.ensureTransformOrder)(t,s);const e=s[s.length-1];if(e&&b.default.isSpreadElement(e)){const n=t.typeChecker.getSignaturesOfType(t.getType(r.expression),b.default.SignatureKind.Call)[0],s=n.parameters[n.parameters.length-1].valueDeclaration;if(s&&b.default.isParameter(s)&&s.dotDotDotToken)return void o.DiagnosticService.addDiagnostic(a.errors.noVarArgsMacroSpread(e));const l=n.minArgumentCount,u=c.pop(),d=i.default.list.make();for(let e=c.length;e(0,_.ensureTransformOrder)(e,n)));S(e,l,u,n),!i.default.list.isEmpty(m)&&(0,f.expressionMightMutate)(e,r,t.expression)&&(r=e.pushToVar(r,"fn")),e.prereqList(m);const g=i.default.call((0,d.convertToIndexableExpression)(r),u);return(0,x.wrapReturnIfLuaTuple)(e,t,g)},t.transformPropertyCallExpressionInner=function(e,t,r,n,s,c){if((0,v.validateNotAnyType)(e,t.expression),b.default.isSuperProperty(r))return(0,p.isInsideRoactComponent)(e,t)&&o.DiagnosticService.addDiagnostic(a.errors.noSuperPropertyCallRoactComponent(t)),i.default.call(i.default.property((0,d.convertToIndexableExpression)(n),r.name.text),[i.default.globals.self,...(0,_.ensureTransformOrder)(e,t.arguments)]);const l=e.typeChecker.getNonOptionalType(e.getType(t.expression)),u=(0,y.getFirstDefinedSymbol)(e,l);if(u){const r=e.services.macroManager.getPropertyCallMacro(u);if(r)return D(r,e,t,n,c)}const[g,h]=e.capture((()=>(0,_.ensureTransformOrder)(e,c)));let T;return S(e,u,g,c),!i.default.list.isEmpty(h)&&(0,f.expressionMightMutate)(e,n,t.expression)&&(n=e.pushToVar(n,"fn")),e.prereqList(h),(0,m.isMethod)(e,r)?i.default.isValidIdentifier(s)?T=i.default.create(i.default.SyntaxKind.MethodCallExpression,{name:s,expression:(0,d.convertToIndexableExpression)(n),args:i.default.list.make(...g)}):(n=e.pushToVarIfComplex(n,"fn"),g.unshift(n),T=i.default.call(i.default.property((0,d.convertToIndexableExpression)(n),s),g)):T=i.default.call(i.default.property((0,d.convertToIndexableExpression)(n),s),g),(0,x.wrapReturnIfLuaTuple)(e,t,T)},t.transformElementCallExpressionInner=function(e,t,r,n,c,l){if((0,v.validateNotAnyType)(e,t.expression),b.default.isSuperProperty(r))return(0,p.isInsideRoactComponent)(e,t)&&o.DiagnosticService.addDiagnostic(a.errors.noSuperPropertyCallRoactComponent(t)),i.default.call(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,d.convertToIndexableExpression)(n),index:(0,s.transformExpression)(e,r.argumentExpression)}),[i.default.globals.self,...(0,_.ensureTransformOrder)(e,t.arguments)]);const g=e.typeChecker.getNonOptionalType(e.getType(t.expression)),h=(0,y.getFirstDefinedSymbol)(e,g);if(h){const r=e.services.macroManager.getPropertyCallMacro(h);if(r)return D(r,e,t,n,l)}const[[T,...C],E]=e.capture((()=>(0,_.ensureTransformOrder)(e,[c,...l])));S(e,h,C,l),!i.default.list.isEmpty(E)&&(0,f.expressionMightMutate)(e,n,t.expression)&&(n=e.pushToVar(n,"fn")),e.prereqList(E),(0,m.isMethod)(e,r)&&(n=e.pushToVarIfComplex(n,"fn"),C.unshift(n));const k=i.default.call(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,d.convertToIndexableExpression)(n),index:(0,u.addOneIfArrayType)(e,e.typeChecker.getNonOptionalType(e.getType(r.expression)),T)}),C);return(0,x.wrapReturnIfLuaTuple)(e,t,k)},t.transformCallExpression=function(e,t){return(0,l.transformOptionalChain)(e,t)}},9365:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassExpression=void 0;const n=r(5082);t.transformClassExpression=function(e,t){const{statements:r,name:i}=(0,n.transformClassLikeDeclaration)(e,t);return e.prereqList(r),i}},1392:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformConditionalExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(410),s=r(6409),c=r(6837);t.transformConditionalExpression=function(e,t){const r=(0,a.transformExpression)(e,t.condition),[n,l]=e.capture((()=>(0,a.transformExpression)(e,t.whenTrue))),[u,d]=e.capture((()=>(0,a.transformExpression)(e,t.whenFalse)));if((0,s.isUsedAsStatement)(t))return i.default.list.pushList(l,(0,c.wrapExpressionStatement)(n)),i.default.list.pushList(d,(0,c.wrapExpressionStatement)(u)),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,o.createTruthinessChecks)(e,r,t.condition),statements:l,elseBody:d})),i.default.none();if(i.default.list.isEmpty(l)&&i.default.list.isEmpty(d))return i.default.create(i.default.SyntaxKind.IfExpression,{condition:(0,o.createTruthinessChecks)(e,r,t.condition),expression:n,alternative:u});const _=i.default.tempId("result");return e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:_,right:void 0})),i.default.list.push(l,i.default.create(i.default.SyntaxKind.Assignment,{left:_,operator:"=",right:n})),i.default.list.push(d,i.default.create(i.default.SyntaxKind.Assignment,{left:_,operator:"=",right:u})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,o.createTruthinessChecks)(e,r,t.condition),statements:l,elseBody:d})),_}},7484:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformDeleteExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(6409);t.transformDeleteExpression=function(e,t){return(0,a.transformExpression)(e,t.expression),(0,o.isUsedAsStatement)(t)?i.default.none():i.default.bool(!0)}},8010:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformElementAccessExpression=t.transformElementAccessExpressionInner=void 0;const i=n(r(9861)),a=r(6671),o=r(8087),s=r(5949),c=r(8576),l=r(6453),u=r(835),d=r(9582),_=r(6219),f=r(1915),p=r(3972),m=n(r(5423));t.transformElementAccessExpressionInner=function(e,t,r,n){(0,p.validateNotAnyType)(e,t.expression),(0,p.validateNotAnyType)(e,t.argumentExpression);const o=e.typeChecker.getNonOptionalType(e.getType(t.expression));(0,s.addIndexDiagnostics)(e,t,o);const[u,g]=e.capture((()=>(0,a.transformExpression)(e,n)));return i.default.list.isEmpty(g)||((0,f.isLuaTupleType)(e)(o)&&(r=i.default.array([r])),r=e.pushToVar(r,"exp"),e.prereqList(g)),i.default.isCall(r)&&(0,f.isLuaTupleType)(e)(o)?(i.default.isNumberLiteral(u)&&0===Number(u.value)||(r=i.default.call(i.default.globals.select,[(0,d.offset)(u,1),r])),i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:r})):m.default.isDeleteExpression((0,_.skipUpwards)(t).parent)?(e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,l.convertToIndexableExpression)(r),index:(0,c.addOneIfArrayType)(e,o,u)}),operator:"=",right:i.default.nil()})),i.default.none()):i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,l.convertToIndexableExpression)(r),index:(0,c.addOneIfArrayType)(e,o,u)})},t.transformElementAccessExpression=function(e,t){return(0,u.getConstantValueLiteral)(e,t)||(0,o.transformOptionalChain)(e,t)}},6671:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(250),l=r(7075),u=r(8e3),d=r(2157),_=r(4698),f=r(9365),p=r(1392),m=r(7484),g=r(8010),y=r(8998),v=r(6848),h=r(8279),x=r(650),b=r(1406),D=r(7517),S=r(2572),T=r(2578),C=r(4104),E=r(6484),k=r(8685),N=r(9760),A=r(7480),P=r(4379),F=r(8946),w=r(8141),I=r(8652),M=r(2772),O=r(1471),L=r(1475),R=r(7895),j=r(2036),B=n(r(5423)),J=()=>i.default.none(),K=e=>(t,r)=>(s.DiagnosticService.addDiagnostic(e(r)),J()),z=new Map([[B.default.SyntaxKind.BigIntLiteral,K(a.errors.noBigInt)],[B.default.SyntaxKind.NullKeyword,K(a.errors.noNullLiteral)],[B.default.SyntaxKind.PrivateIdentifier,K(a.errors.noPrivateIdentifier)],[B.default.SyntaxKind.RegularExpressionLiteral,K(a.errors.noRegex)],[B.default.SyntaxKind.TypeOfExpression,K(a.errors.noTypeOfExpression)],[B.default.SyntaxKind.ImportKeyword,J],[B.default.SyntaxKind.ArrayLiteralExpression,c.transformArrayLiteralExpression],[B.default.SyntaxKind.ArrowFunction,y.transformFunctionExpression],[B.default.SyntaxKind.AsExpression,M.transformTypeExpression],[B.default.SyntaxKind.AwaitExpression,l.transformAwaitExpression],[B.default.SyntaxKind.BinaryExpression,u.transformBinaryExpression],[B.default.SyntaxKind.CallExpression,_.transformCallExpression],[B.default.SyntaxKind.ClassExpression,f.transformClassExpression],[B.default.SyntaxKind.ConditionalExpression,p.transformConditionalExpression],[B.default.SyntaxKind.DeleteExpression,m.transformDeleteExpression],[B.default.SyntaxKind.ElementAccessExpression,g.transformElementAccessExpression],[B.default.SyntaxKind.FalseKeyword,d.transformFalseKeyword],[B.default.SyntaxKind.FunctionExpression,y.transformFunctionExpression],[B.default.SyntaxKind.Identifier,v.transformIdentifier],[B.default.SyntaxKind.JsxElement,h.transformJsxElement],[B.default.SyntaxKind.JsxFragment,x.transformJsxFragment],[B.default.SyntaxKind.JsxSelfClosingElement,b.transformJsxSelfClosingElement],[B.default.SyntaxKind.NewExpression,D.transformNewExpression],[B.default.SyntaxKind.NonNullExpression,M.transformTypeExpression],[B.default.SyntaxKind.NoSubstitutionTemplateLiteral,A.transformStringLiteral],[B.default.SyntaxKind.NumericLiteral,S.transformNumericLiteral],[B.default.SyntaxKind.ObjectLiteralExpression,T.transformObjectLiteralExpression],[B.default.SyntaxKind.OmittedExpression,C.transformOmittedExpression],[B.default.SyntaxKind.ParenthesizedExpression,E.transformParenthesizedExpression],[B.default.SyntaxKind.PostfixUnaryExpression,O.transformPostfixUnaryExpression],[B.default.SyntaxKind.PrefixUnaryExpression,O.transformPrefixUnaryExpression],[B.default.SyntaxKind.PropertyAccessExpression,k.transformPropertyAccessExpression],[B.default.SyntaxKind.SatisfiesExpression,M.transformTypeExpression],[B.default.SyntaxKind.SpreadElement,N.transformSpreadElement],[B.default.SyntaxKind.StringLiteral,A.transformStringLiteral],[B.default.SyntaxKind.SuperKeyword,P.transformSuperKeyword],[B.default.SyntaxKind.TaggedTemplateExpression,F.transformTaggedTemplateExpression],[B.default.SyntaxKind.TemplateExpression,w.transformTemplateExpression],[B.default.SyntaxKind.ThisKeyword,I.transformThisExpression],[B.default.SyntaxKind.TrueKeyword,d.transformTrueKeyword],[B.default.SyntaxKind.TypeAssertionExpression,M.transformTypeExpression],[B.default.SyntaxKind.VoidExpression,L.transformVoidExpression],[B.default.SyntaxKind.YieldExpression,R.transformYieldExpression]]);t.transformExpression=function(e,t){const r=z.get(t.kind);if(r)return r(e,t);(0,o.assert)(!1,`Unknown expression: ${(0,j.getKindName)(t.kind)}`)}},8998:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformFunctionExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(5807),c=r(7937),l=r(8043),u=r(6442),d=n(r(5423));t.transformFunctionExpression=function(e,t){t.name&&o.DiagnosticService.addDiagnostic(a.errors.noFunctionExpressionName(t.name));let{statements:r,parameters:n,hasDotDotDot:_}=(0,c.transformParameters)(e,t);const f=t.body;if(d.default.isFunctionBody(f))i.default.list.pushList(r,(0,l.transformStatementList)(e,f.statements));else{const[t,n]=e.capture((()=>(0,s.transformReturnStatementInner)(e,f)));i.default.list.pushList(r,n),i.default.list.pushList(r,t)}const p=!!d.default.getSelectedSyntacticModifierFlags(t,d.default.ModifierFlags.Async);t.asteriskToken&&(p&&o.DiagnosticService.addDiagnostic(a.errors.noAsyncGeneratorFunctions(t)),r=(0,u.wrapStatementsAsGenerator)(e,t,r));let m=i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:_,parameters:n,statements:r});return p&&(m=i.default.call(e.TS(t,"async"),[m])),m}},6848:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformIdentifier=t.transformIdentifierDefined=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(2991),c=r(3115),l=r(4502),u=r(226),d=r(3527),_=r(6219),f=r(1915),p=n(r(5423));function m(e,t){const r=p.default.isShorthandPropertyAssignment(t.parent)?e.typeChecker.getShorthandAssignmentValueSymbol(t.parent):e.typeChecker.getSymbolAtLocation(t);(0,o.assert)(r);return e.symbolToIdMap.get(r)||i.default.create(i.default.SyntaxKind.Identifier,{name:t.text})}t.transformIdentifierDefined=m,t.transformIdentifier=function(e,t){const r=p.default.isShorthandPropertyAssignment(t.parent)?e.typeChecker.getShorthandAssignmentValueSymbol(t.parent):e.typeChecker.getSymbolAtLocation(t);if((0,o.assert)(r),e.typeChecker.isUndefinedSymbol(r))return i.default.nil();e.typeChecker.isArgumentsSymbol(r)?l.DiagnosticService.addDiagnostic(a.errors.noArguments(t)):r===e.services.macroManager.getSymbolOrThrow(c.SYMBOL_NAMES.globalThis)&&l.DiagnosticService.addDiagnostic(a.errors.noGlobalThis(t));const n=e.services.macroManager.getIdentifierMacro(r);if(n)return n(e,t);const g=(0,f.getFirstConstructSymbol)(e,t);g&&e.services.macroManager.getConstructorMacro(g)&&l.DiagnosticService.addDiagnostic(a.errors.noConstructorMacroWithoutNew(t));const y=(0,_.skipUpwards)(t).parent;if((!p.default.isCallExpression(y)||(0,_.skipDownwards)(y.expression)!=t)&&e.services.macroManager.getCallMacro(r))return l.DiagnosticService.addDiagnostic(a.errors.noIndexWithoutCall(t)),i.default.none();if(r.valueDeclaration&&r.valueDeclaration.getSourceFile()===t.getSourceFile()&&void 0===(0,_.getAncestor)(r.valueDeclaration,(e=>p.default.isModuleDeclaration(e)&&!(0,u.isNamespace)(e)))){const t=e.getModuleIdPropertyAccess(r);if(t&&(0,d.isSymbolMutable)(e,r))return t}return function(e,t,r){var n;if(void 0!==e.isHoisted.get(r))return;const i=null!==(n=r.valueDeclaration)&&void 0!==n?n:function(e){var t;for(const r of null!==(t=e.declarations)&&void 0!==t?t:[])if((0,_.getAncestor)(r,p.default.isAnyImportSyntax))return r}(r);if(!i||(0,_.getAncestor)(i,p.default.isParameter)||p.default.isShorthandPropertyAssignment(i))return;if(p.default.isClassLike(i)&&(0,_.isAncestorOf)(i,t))return;const a=(0,_.getAncestor)(i,p.default.isStatement);if(!a||p.default.isForStatement(a)||p.default.isForOfStatement(a)||p.default.isTryStatement(a))return;const o=a.parent;if(!o||!(0,u.isBlockLike)(o))return;const c=function(e,t){for(;t.parent&&t.parent!==e;)t=t.parent;return t.parent?t:void 0}(o,t);if(!c||!p.default.isStatement(c))return;const l=o.statements.indexOf(a),d=o.statements.indexOf(c);d>l||d===l&&(p.default.isFunctionDeclaration(a)&&!p.default.getSelectedSyntacticModifierFlags(a,p.default.ModifierFlags.Async)||p.default.isClassDeclaration(a)||p.default.isVariableStatement(a)&&(0,_.getAncestor)(t,(e=>p.default.isStatement(e)||p.default.isFunctionLikeDeclaration(e)))===a)||((0,s.getOrSetDefault)(e.hoistsByStatement,c,(()=>new Array)).push(t),e.isHoisted.set(r,!0))}(e,t,r),m(e,t)}},7637:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformImportExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(3842),c=n(r(5423));t.transformImportExpression=function(e,t){const r=t.arguments[0];if(!r||!c.default.isStringLiteral(r))return o.DiagnosticService.addDiagnostic(a.errors.noNonStringModuleSpecifier(t)),i.default.none();const n=(0,s.createImportExpression)(e,t.getSourceFile(),r),l=i.default.id("resolve");return i.default.call(i.default.property(e.TS(t,"Promise"),"new"),[i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:!1,parameters:i.default.list.make(l),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(l,[n])}))})])}},8279:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxElement=void 0;const n=r(4487);t.transformJsxElement=function(e,t){return(0,n.transformJsx)(e,t,t.openingElement.tagName,t.openingElement.attributes,t.children)}},650:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxFragment=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(3340),c=r(9693),l=r(274);t.transformJsxFragment=function(e,t){if("Roact.createFragment"!==e.compilerOptions.jsxFragmentFactory)return o.DiagnosticService.addSingleDiagnostic(a.errors.invalidJsxFragmentFactory(t)),i.default.none();const r=(0,l.createMixedTablePointer)("children");(0,s.transformJsxChildren)(e,t.children,(0,l.createMapPointer)("attributes"),r);const n=new Array;return!i.default.isAnyIdentifier(r.value)&&i.default.list.isEmpty(r.value.fields)||n.push(r.value),i.default.call((0,c.createRoactIndex)("createFragment"),n)}},1406:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxSelfClosingElement=void 0;const n=r(4487);t.transformJsxSelfClosingElement=function(e,t){return(0,n.transformJsx)(e,t,t.tagName,t.attributes,[])}},7517:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformNewExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(6453),s=r(7034),c=r(1915),l=r(3972);t.transformNewExpression=function(e,t){(0,l.validateNotAnyType)(e,t.expression);const r=(0,c.getFirstConstructSymbol)(e,t.expression);if(r){const n=e.services.macroManager.getConstructorMacro(r);if(n)return n(e,t)}const n=(0,o.convertToIndexableExpression)((0,a.transformExpression)(e,t.expression)),u=t.arguments?(0,s.ensureTransformOrder)(e,t.arguments):[];return i.default.call(i.default.property(n,"new"),u)}},2572:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformNumericLiteral=void 0;const i=n(r(9861));t.transformNumericLiteral=function(e,t){return i.default.create(i.default.SyntaxKind.NumberLiteral,{value:t.getText()})}},2578:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformObjectLiteralExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(6671),c=r(8111),l=r(5671),u=r(7850),d=r(274),_=r(1915),f=r(4735),p=n(r(5423));function m(e,t,r,n){let[a,o]=e.capture((()=>(0,l.transformPropertyName)(e,r)));const[c,u]=e.capture((()=>(0,s.transformExpression)(e,n)));i.default.list.isEmpty(o)&&i.default.list.isEmpty(u)||((0,d.disableMapInline)(e,t),e.prereqList(o),a=e.pushToVar(a,"left")),e.prereqList(u),(0,d.assignToMapPointer)(e,t,a,c)}function g(e,t,r){const n=e.typeChecker.getNonOptionalType(e.getType(r.expression)),c=(0,_.getFirstDefinedSymbol)(e,n);c&&e.services.macroManager.isMacroOnlyClass(c)&&o.DiagnosticService.addDiagnostic(a.errors.noMacroObjectSpread(r)),(0,d.disableMapInline)(e,t);let l=(0,s.transformExpression)(e,r.expression);const f=e.getType(r.expression),p=(0,_.isPossiblyType)(f,_.isUndefinedType),m=!(0,_.isDefinitelyType)(f,_.isObjectType);(p||m)&&(l=e.pushToVarIfComplex(l,"spread"));const g=i.default.tempId("k"),y=i.default.tempId("v");let v=i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(g,y),expression:l,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t.value,index:g}),operator:"=",right:y}))});m?v=i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,u.createTypeCheck)(l,i.default.strings.table),statements:i.default.list.make(v),elseBody:i.default.list.make()}):p&&(v=i.default.create(i.default.SyntaxKind.IfStatement,{condition:l,statements:i.default.list.make(v),elseBody:i.default.list.make()})),e.prereq(v)}t.transformObjectLiteralExpression=function(e,t){const r=(0,d.createMapPointer)("object");for(const n of t.properties)if((0,f.validateMethodAssignment)(e,n),p.default.isPropertyAssignment(n)){if(p.default.isPrivateIdentifier(n.name)){o.DiagnosticService.addDiagnostic(a.errors.noPrivateIdentifier(n.name));continue}m(e,r,n.name,n.initializer)}else p.default.isShorthandPropertyAssignment(n)?m(e,r,n.name,n.name):p.default.isSpreadAssignment(n)?g(e,r,n):p.default.isMethodDeclaration(n)?e.prereqList((0,c.transformMethodDeclaration)(e,n,r)):o.DiagnosticService.addDiagnostic(a.errors.noGetterSetter(n));return r.value}},4104:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformOmittedExpression=void 0;const i=n(r(9861));t.transformOmittedExpression=function(){return i.default.nil()}},6484:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformParenthesizedExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(6219);t.transformParenthesizedExpression=function(e,t){const r=(0,a.transformExpression)(e,(0,o.skipDownwards)(t.expression));return i.default.isSimple(r)?r:i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:r})}},8685:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropertyAccessExpression=t.transformPropertyAccessExpressionInner=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(8087),c=r(5949),l=r(6453),u=r(835),d=r(6219),_=r(3972),f=n(r(5423));t.transformPropertyAccessExpressionInner=function(e,t,r,n){return(0,_.validateNotAnyType)(e,t.expression),(0,c.addIndexDiagnostics)(e,t,e.typeChecker.getNonOptionalType(e.getType(t))),f.default.isDeleteExpression((0,d.skipUpwards)(t).parent)?(e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property((0,l.convertToIndexableExpression)(r),n),operator:"=",right:i.default.nil()})),i.default.none()):i.default.property((0,l.convertToIndexableExpression)(r),n)},t.transformPropertyAccessExpression=function(e,t){f.default.isSuperProperty(t)&&o.DiagnosticService.addDiagnostic(a.errors.noSuperProperty(t));return(0,u.getConstantValueLiteral)(e,t)||(0,s.transformOptionalChain)(e,t)}},9760:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSpreadElement=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6671),l=r(3901),u=r(1915),d=r(3972),_=n(r(5423));t.transformSpreadElement=function(e,t){(0,d.validateNotAnyType)(e,t.expression),(0,o.assert)(!_.default.isArrayLiteralExpression(t.parent)&&t.parent.arguments),t.parent.arguments[t.parent.arguments.length-1]!==t&&s.DiagnosticService.addDiagnostic(a.errors.noPrecedingSpreadElement(t));const r=(0,c.transformExpression)(e,t.expression),n=e.getType(t.expression);if((0,u.isDefinitelyType)(n,(0,u.isArrayType)(e)))return i.default.call(i.default.globals.unpack,[r]);{const a=(0,l.getAddIterableToArrayBuilder)(e,t.expression,n),o=e.pushToVar(i.default.array(),"array"),s=e.pushToVar(i.default.number(0),"length");return e.prereqList(a(e,r,o,s,0,!1)),i.default.call(i.default.globals.unpack,[o])}}},7480:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformStringLiteral=void 0;const n=r(4397);t.transformStringLiteral=function(e,t){return(0,n.createStringFromLiteral)(t)}},4379:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSuperKeyword=void 0;const i=n(r(9861));t.transformSuperKeyword=function(){return i.default.globals.super}},8946:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformTaggedTemplateExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(6453),s=r(7034),c=n(r(5423));t.transformTaggedTemplateExpression=function(e,t){const r=(0,a.transformExpression)(e,t.tag);if(c.default.isTemplateExpression(t.template)){const n=new Array;n.push(i.default.string(t.template.head.text));for(const e of t.template.templateSpans)n.push(i.default.string(e.literal.text));const a=(0,s.ensureTransformOrder)(e,t.template.templateSpans.map((e=>e.expression)));return i.default.call((0,o.convertToIndexableExpression)(r),[i.default.array(n),...a])}return i.default.call((0,o.convertToIndexableExpression)(r),[i.default.array([i.default.string(t.template.text)])])}},8141:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformTemplateExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(4397),l=r(7034),u=r(4160),d=r(1915),_=n(r(5423));t.transformTemplateExpression=function(e,t){(0,o.assert)(t.templateSpans.length>0);const r=new Array;t.head.text.length>0&&r.push((0,c.createStringFromLiteral)(t.head));const n=(0,l.ensureTransformOrder)(e,t.templateSpans.map((e=>e.expression)));for(let o=0;o0&&r.push((0,c.createStringFromLiteral)(l.literal))}return(0,u.binaryExpressionChain)(r,"..")}},8652:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformThisExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(3115),s=r(4502);t.transformThisExpression=function(e,t){return e.typeChecker.getSymbolAtLocation(t)===e.services.macroManager.getSymbolOrThrow(o.SYMBOL_NAMES.globalThis)&&s.DiagnosticService.addDiagnostic(a.errors.noGlobalThis(t)),i.default.globals.self}},2772:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformTypeExpression=void 0;const n=r(6671);t.transformTypeExpression=function(e,t){return(0,n.transformExpression)(e,t.expression)}},1471:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPrefixUnaryExpression=t.transformPostfixUnaryExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(5568),s=r(4502),c=r(6671),l=r(7010),u=r(410),d=r(1915),_=r(3972),f=n(r(5423));t.transformPostfixUnaryExpression=function(e,t){(0,_.validateNotAnyType)(e,t.operand);const r=(0,l.transformWritableExpression)(e,t.operand,!0),n=i.default.tempId("original");return e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:r})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:t.operator===f.default.SyntaxKind.PlusPlusToken?"+=":t.operator===f.default.SyntaxKind.MinusMinusToken?"-=":(0,o.assertNever)(t.operator,"transformPostfixUnaryExpression"),right:i.default.number(1)})),n},t.transformPrefixUnaryExpression=function(e,t){if((0,_.validateNotAnyType)(e,t.operand),t.operator===f.default.SyntaxKind.PlusPlusToken||t.operator===f.default.SyntaxKind.MinusMinusToken){const r=(0,l.transformWritableExpression)(e,t.operand,!0),n=t.operator===f.default.SyntaxKind.PlusPlusToken?"+=":"-=";return e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:n,right:i.default.number(1)})),r}if(t.operator===f.default.SyntaxKind.PlusToken)return s.DiagnosticService.addDiagnostic(a.errors.noUnaryPlus(t)),(0,c.transformExpression)(e,t.operand);if(t.operator===f.default.SyntaxKind.MinusToken)return(0,d.isDefinitelyType)(e.getType(t.operand),d.isNumberType)||s.DiagnosticService.addDiagnostic(a.errors.noNonNumberUnaryMinus(t)),i.default.unary("-",(0,c.transformExpression)(e,t.operand));if(t.operator===f.default.SyntaxKind.ExclamationToken){const r=(0,u.createTruthinessChecks)(e,(0,c.transformExpression)(e,t.operand),t.operand);return i.default.unary("not",r)}return t.operator===f.default.SyntaxKind.TildeToken?i.default.call(i.default.property(i.default.globals.bit32,"bnot"),[(0,c.transformExpression)(e,t.operand)]):(0,o.assertNever)(t.operator,"transformPrefixUnaryExpression")}},1475:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformVoidExpression=void 0;const i=n(r(9861)),a=r(7858),o=r(6219);t.transformVoidExpression=function(e,t){return e.prereqList((0,a.transformExpressionStatementInner)(e,(0,o.skipDownwards)(t.expression))),i.default.create(i.default.SyntaxKind.NilLiteral,{})}},7895:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformYieldExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(6453);t.transformYieldExpression=function(e,t){if(!t.expression)return i.default.call(i.default.globals.coroutine.yield,[]);const r=(0,a.transformExpression)(e,t.expression);if(t.asteriskToken){const t=i.default.tempId("result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(t),expression:i.default.property((0,o.convertToIndexableExpression)(r),"next"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.property(t,"done"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}),i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.coroutine.yield,[i.default.property(t,"value")])}))})),i.default.none()}return i.default.call(i.default.globals.coroutine.yield,[r])}},4487:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsx=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(3506),c=r(6671),l=r(1472),u=r(3340),d=r(1974),_=r(9693),f=r(7472),p=r(274),m=n(r(5423));t.transformJsx=function(e,t,r,n,g){if("Roact.createElement"!==e.compilerOptions.jsxFactory)return o.DiagnosticService.addSingleDiagnostic(a.errors.invalidJsxFactory(t)),i.default.none();const y=e.services.roactSymbolManager&&e.typeChecker.getSymbolAtLocation(r)===e.services.roactSymbolManager.getSymbolOrThrow(s.ROACT_SYMBOL_NAMES.Fragment),v=y?i.default.none():(0,d.transformJsxTagName)(e,r),h=(0,p.createMapPointer)("attributes"),x=(0,p.createMixedTablePointer)("children");(0,l.transformJsxAttributes)(e,n,h),(0,u.transformJsxChildren)(e,g,h,x);const b=new Array;y||b.push(v);const D=i.default.isAnyIdentifier(h.value)||!i.default.list.isEmpty(h.value.fields),S=i.default.isAnyIdentifier(x.value)||!i.default.list.isEmpty(x.value.fields);y||!D&&!S||b.push(h.value),S&&b.push(x.value);let T=i.default.call(y?(0,_.createRoactIndex)("createFragment"):(0,_.createRoactIndex)("createElement"),b);if(!m.default.isJsxElement(t.parent)){const r=(0,f.getKeyAttributeInitializer)(t);if(r){const[t,n]=e.capture((()=>(0,c.transformExpression)(e,r)));e.prereqList(n),T=i.default.call((0,_.createRoactIndex)("createFragment"),[i.default.map([[t,T]])])}}return T}},1472:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxAttributes=void 0;const i=n(r(9861)),a=r(2287),o=r(6671),s=r(8368),c=r(9693),l=r(274),u=r(1915),d=n(r(5423));function _(e,t){return t&&d.default.isJsxExpression(t)&&(t=t.expression),t?e.capture((()=>(0,o.transformExpression)(e,t))):[i.default.bool(!0),i.default.list.make()]}function f(e,t,r,n){const a=(0,u.isPossiblyType)(n,u.isUndefinedType);a&&(r=e.pushToVarIfComplex(r,"attribute"));const o=i.default.tempId("k"),s=i.default.tempId("v");let c=i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(o,s),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:o}),operator:"=",right:s}))});return a&&(c=i.default.create(i.default.SyntaxKind.IfStatement,{condition:r,statements:i.default.list.make(c),elseBody:i.default.list.make()})),c}function p(e,t,r){const n=t.name.text;if(n===s.KEY_ATTRIBUTE_NAME)return;if(function(e,t){(0,a.assert)(e.services.roactSymbolManager);const r=e.typeChecker.getContextualType(t.parent);if(r){const n=r.getProperty(t.name.text);if(n){const t=d.default.getSymbolTarget(n,e.typeChecker);if(t===e.services.roactSymbolManager.getSymbolOrThrow(s.EVENT_ATTRIBUTE_NAME)||t===e.services.roactSymbolManager.getSymbolOrThrow(s.CHANGE_ATTRIBUTE_NAME))return!0}}return!1}(e,t))return void function(e,t,r){(0,a.assert)(t.initializer&&d.default.isJsxExpression(t.initializer)&&t.initializer.expression);const n=t.initializer.expression;if(d.default.isObjectLiteralExpression(n)&&function(e){for(const t of e.properties)if(!d.default.isPropertyAssignment(t)||!d.default.isIdentifier(t.name))return!1;return!0}(n))for(const o of n.properties){(0,a.assert)(d.default.isPropertyAssignment(o)&&d.default.isIdentifier(o.name));const[n,s]=_(e,o.initializer);i.default.list.isEmpty(s)||(0,l.disableMapInline)(e,r),e.prereqList(s),(0,l.assignToMapPointer)(e,r,(0,c.createRoactIndex)(t.name.text,o.name.text),n)}else{(0,l.disableMapInline)(e,r);const a=(0,o.transformExpression)(e,n),s=i.default.tempId("k"),u=i.default.tempId("v");e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s,u),expression:a,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r.value,index:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,c.createRoactIndex)(t.name.text),index:s})}),operator:"=",right:u}))}))}}(e,t,r);const[u,f]=_(e,t.initializer);i.default.list.isEmpty(f)||((0,l.disableMapInline)(e,r),e.prereqList(f));const p=n===s.REF_ATTRIBUTE_NAME?(0,c.createRoactIndex)(s.REF_ATTRIBUTE_NAME):i.default.string(n);(0,l.assignToMapPointer)(e,r,p,u)}t.transformJsxAttributes=function(e,t,r){for(const n of t.properties)if(d.default.isJsxAttribute(n))p(e,n,r);else{(0,l.disableMapInline)(e,r);const t=(0,o.transformExpression)(e,n.expression);e.prereq(f(e,r.value,t,e.getType(n.expression)))}}},3340:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxChildren=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6671),l=r(7850),u=r(7472),d=r(9582),_=r(274),f=r(1915),p=r(6837),m=n(r(5423));function g(e,t,r,n){return i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:e,index:i.default.binary(t,"+",r)}),operator:"=",right:n})}function y(e,t,r){return i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:e,index:t}),operator:"=",right:r})}function v(e,t,r,n){const a=i.default.tempId("k"),o=i.default.tempId("v");return i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(a,o),expression:n,statements:i.default.list.make(g(e,(0,d.offset)(r,t),a,o))})}function h(e,t,r,n,a,s){const c=(0,f.isPossiblyType)(s,f.isUndefinedType,(0,f.isBooleanLiteralType)(e,!1)),u=(0,f.isPossiblyType)(s,(0,f.isBooleanLiteralType)(e,!0)),_=(0,f.isPossiblyType)(s,(0,f.isRoactElementType)(e));let m=!1;const h=(0,f.isPossiblyType)(s,(t=>{if((0,f.isMapType)(e)(t)){if(!m){const r=(0,f.getTypeArguments)(e,t);(0,f.isPossiblyType)(r[0],f.isNumberType)&&(m=!0)}return!0}return!1})),x=m||(0,f.isPossiblyType)(s,(0,f.isArrayType)(e)),b=function(e,t,r,n,i){let a=0;return r&&(a+=1),(n||i)&&(a+=1,r&&(a+=3)),(e||t)&&(r||n||i)&&(a+=1),a}(c,u,_,x,h);let D;if(b>1&&(a=e.pushToVarIfNonId(a,"child")),_&&(D=g(t,n,i.default.number(r+1),a)),x||h){let e;if(e=x&&h?function(e,t,r,n){const a=i.default.tempId("k"),o=i.default.tempId("v");return i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(a,o),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,l.createTypeCheck)(a,i.default.strings.number),statements:i.default.list.make(g(e,(0,d.offset)(r,t),a,o)),elseBody:i.default.list.make(y(e,a,o))}))})}(t,r,n,a):x?v(t,r,n,a):function(e,t){const r=i.default.tempId("k"),n=i.default.tempId("v");return i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(r,n),expression:t,statements:i.default.list.make(y(e,r,n))})}(t,a),_){(0,o.assert)(i.default.isAnyIdentifier(a));const t=i.default.binary(i.default.property(a,"elements"),"~=",i.default.nil()),r=i.default.binary(i.default.property(a,"props"),"~=",i.default.nil()),n=i.default.binary(i.default.property(a,"component"),"~=",i.default.nil()),s=i.default.binary(r,"and",n),c=i.default.binary(t,"or",s);D=i.default.create(i.default.SyntaxKind.IfStatement,{condition:c,statements:i.default.list.make(D),elseBody:i.default.list.make(e)})}else D=e}if(c||u)if(_||x||h){let e;e=u?(0,l.createTypeCheck)(a,i.default.strings.table):a,D=i.default.create(i.default.SyntaxKind.IfStatement,{condition:e,statements:i.default.list.make(D),elseBody:i.default.list.make()})}else e.prereqList((0,p.wrapExpressionStatement)(a));return(0,o.assert)(D),D}t.transformJsxChildren=function(e,t,r,n){const l=i.default.tempId("length");let d,p=!1,y=0;function x(){const t=i.default.unary("#",n.value);p?e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:l,operator:"=",right:t})):(e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:l,right:t})),p=!0),y=0}function b(){i.default.isMixedTable(n.value)&&(i.default.isMap(r.value)&&!i.default.list.isEmpty(r.value.fields)&&(0,_.disableMapInline)(e,r),(0,_.disableMixedTableInline)(e,n),x())}for(d=t.length-1;d>=0;d--){const e=t[d];if(!m.default.isJsxText(e)||!e.containsOnlyTriviaWhiteSpaces)break}for(let r=0;r(0,c.transformExpression)(e,t)));if(i.default.list.isEmpty(s)||(e.prereqList(s),b()),p.dotDotDotToken)b(),(0,o.assert)(i.default.isAnyIdentifier(n.value)),e.prereq(v(n.value,y,l,a));else{const r=e.getType(t);(0,f.isDefinitelyType)(r,(0,f.isRoactElementType)(e))?(i.default.isMixedTable(n.value)?i.default.list.push(n.value.fields,a):e.prereq(g(n.value,l,i.default.number(y+1),a)),y++):(b(),(0,o.assert)(i.default.isAnyIdentifier(n.value)),e.prereq(h(e,n.value,y,l,a,r)))}!i.default.isMixedTable(n.value)&&r(0,c.transformExpression)(e,p)));i.default.list.isEmpty(r)||b(),e.prereqList(r);const a=!m.default.isJsxFragment(p)&&(0,u.getKeyAttributeInitializer)(p);if(a){const[r,o]=e.capture((()=>(0,c.transformExpression)(e,a)));i.default.list.isEmpty(o)||b(),e.prereqList(o),(0,_.assignToMixedTablePointer)(e,n,r,t)}else i.default.isMixedTable(n.value)?i.default.list.push(n.value.fields,t):e.prereq(g(n.value,l,i.default.number(y+1),t)),y++}}}},1974:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxTagName=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6671),l=r(6453),u=n(r(5423));t.transformJsxTagName=function(e,t){const[r,n]=e.capture((()=>function(e,t){if(u.default.isIdentifier(t)){const r=e.typeChecker.getSymbolAtLocation(t);if(r){(0,o.assert)(e.services.roactSymbolManager);const t=e.services.roactSymbolManager.getIntrinsicElementClassNameFromSymbol(r);if(void 0!==t)return i.default.string(t)}}return u.default.isPropertyAccessExpression(t)?(u.default.isPrivateIdentifier(t.name)&&s.DiagnosticService.addDiagnostic(a.errors.noPrivateIdentifier(t.name)),i.default.property((0,l.convertToIndexableExpression)((0,c.transformExpression)(e,t.expression)),t.name.text)):(0,c.transformExpression)(e,t)}(e,t)));let d=r;return i.default.list.isEmpty(n)||(e.prereqList(n),d=e.pushToVarIfComplex(d,"tagName")),d}},2852:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBlock=void 0;const i=n(r(9861)),a=r(8043);t.transformBlock=function(e,t){return i.default.list.make(i.default.create(i.default.SyntaxKind.DoStatement,{statements:(0,a.transformStatementList)(e,t.statements)}))}},3489:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBreakStatement=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(965);t.transformBreakStatement=function(e,t){return t.label?(o.DiagnosticService.addDiagnostic(a.errors.noLabeledStatement(t.label)),i.default.list.make()):(0,s.isBreakBlockedByTryStatement)(t)?(e.markTryUses("usesBreak"),i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:e.TS(t,"TRY_BREAK")}))):i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{}))}},9015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassDeclaration=void 0;const n=r(5082);t.transformClassDeclaration=function(e,t){return(0,n.transformClassLikeDeclaration)(e,t).statements}},254:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformContinueStatement=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(965);t.transformContinueStatement=function(e,t){return t.label?(o.DiagnosticService.addDiagnostic(a.errors.noLabeledStatement(t.label)),i.default.list.make()):(0,s.isBreakBlockedByTryStatement)(t)?(e.markTryUses("usesContinue"),i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:e.TS(t,"TRY_CONTINUE")}))):i.default.list.make(i.default.create(i.default.SyntaxKind.ContinueStatement,{}))}},299:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformDoStatement=void 0;const i=n(r(9861)),a=r(6671),o=r(8043),s=r(410),c=r(1441),l=n(r(5423));t.transformDoStatement=function(e,{expression:t,statement:r}){const n=(0,o.transformStatementList)(e,(0,c.getStatements)(r));let u=!0;l.default.isPrefixUnaryExpression(t)&&t.operator===l.default.SyntaxKind.ExclamationToken&&(t=t.operand,u=!1);const[d,_]=e.capture((()=>(0,s.createTruthinessChecks)(e,(0,a.transformExpression)(e,t),t))),f=i.default.list.make();return i.default.list.push(f,i.default.create(i.default.SyntaxKind.DoStatement,{statements:n})),i.default.list.pushList(f,_),i.default.list.make(i.default.create(i.default.SyntaxKind.RepeatStatement,{statements:f,condition:u?i.default.unary("not",d):d}))}},9915:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformEnumDeclaration=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6671),l=r(6848),u=r(5671),d=r(5708),_=r(1871),f=r(837),p=n(r(5423));t.transformEnumDeclaration=function(e,t){if(p.default.getSelectedSyntacticModifierFlags(t,p.default.ModifierFlags.Const)&&!0!==e.compilerOptions.preserveConstEnums)return i.default.list.make();const r=e.typeChecker.getSymbolAtLocation(t.name);if(r&&(0,_.hasMultipleDefinitions)(r,(e=>p.default.isEnumDeclaration(e)&&!p.default.getSelectedSyntacticModifierFlags(e,p.default.ModifierFlags.Const))))return s.DiagnosticService.addDiagnosticWithCache(r,a.errors.noEnumMerging(t),e.multiTransformState.isReportedByMultipleDefinitionsCache),i.default.list.make();(0,f.validateIdentifier)(e,t.name);const n=(0,l.transformIdentifierDefined)(e,t.name),m=e.capturePrereqs((()=>{const r=e.pushToVar(i.default.map(),"inverse");e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:i.default.call(i.default.globals.setmetatable,[i.default.map(),i.default.map([[i.default.strings.__index,r]])])}));for(const a of t.members){const t=(0,u.transformPropertyName)(e,a.name),s=(0,d.expressionMightMutate)(e,t,p.default.isComputedPropertyName(a.name)?a.name.expression:a.name)?e.pushToVar(t):t,l=e.typeChecker.getConstantValue(a);let _;"string"==typeof l?_=i.default.string(l):"number"==typeof l?_=i.default.number(l):((0,o.assert)(a.initializer),_=e.pushToVarIfComplex((0,c.transformExpression)(e,a.initializer),"value")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:s}),operator:"=",right:_})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:_}),operator:"=",right:s}))}})),g=i.default.list.make(i.default.create(i.default.SyntaxKind.DoStatement,{statements:m}));return r&&!0!==e.isHoisted.get(r)&&i.default.list.unshift(g,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:void 0})),g}},6602:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExportAssignment=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(6671),c=r(3527),l=r(1205),u=n(r(5423));t.transformExportAssignment=function(e,t){const r=e.typeChecker.getSymbolAtLocation(t.expression);return r&&(0,c.isSymbolMutable)(e,r)&&o.DiagnosticService.addDiagnostic(a.errors.noExportAssignmentLet(t)),r&&!(0,l.isSymbolOfValue)(u.default.skipAlias(r,e.typeChecker))?i.default.list.make():t.isExportEquals?function(e,t){e.hasExportEquals=!0;const r=t.getSourceFile();return r.statements[r.statements.length-1]===t?i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:(0,s.transformExpression)(e,t.expression)})):i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:e.getModuleIdFromNode(t),right:(0,s.transformExpression)(e,t.expression)}))}(e,t):function(e,t){const r=i.default.list.make(),[n,a]=e.capture((()=>(0,s.transformExpression)(e,t.expression)));return i.default.list.pushList(r,a),i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.id("default"),right:n})),r}(e,t)}},9337:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExportDeclaration=void 0;const i=n(r(9861)),a=r(2287),o=r(6073),s=r(3842),c=r(1205),l=n(r(5423));function u(e,t){if(t.isTypeOnly)return!1;if(e.resolver.isReferencedAliasDeclaration(t))return!0;const r=e.typeChecker.getSymbolAtLocation(t.name);return!(!r||!(0,c.isSymbolOfValue)(l.default.skipAlias(r,e.typeChecker)))}t.transformExportDeclaration=function(e,t){return t.isTypeOnly?i.default.list.make():t.moduleSpecifier?function(e,t){var r;(0,a.assert)(t.moduleSpecifier&&l.default.isStringLiteral(t.moduleSpecifier));const n=i.default.list.make();let c;const d=t.exportClause,_=function(e,t){let r=0;if(t&&l.default.isNamedExports(t))for(const n of t.elements)u(e,n)&&r++;else r++;return r}(e,d);if(1===_)c=(0,s.createImportExpression)(e,t.getSourceFile(),t.moduleSpecifier);else if(_>1){const r=t.moduleSpecifier.text.split("/");c=i.default.tempId((0,o.cleanModuleName)(r[r.length-1])),i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:c,right:(0,s.createImportExpression)(e,t.getSourceFile(),t.moduleSpecifier)}))}if(!c)return n;const f=e.getModuleIdFromNode(t);if(d)if(l.default.isNamedExports(d))for(const t of d.elements)u(e,t)&&i.default.list.push(n,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(f,t.name.text),operator:"=",right:i.default.property(c,(null!==(r=t.propertyName)&&void 0!==r?r:t.name).text)}));else i.default.list.push(n,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(f,d.name.text),operator:"=",right:c}));else{const e=i.default.tempId("k"),t=i.default.tempId("v");i.default.list.push(n,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(e,t),expression:i.default.binary(c,"or",i.default.map()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:f,index:e}),operator:"=",right:t}))}))}return e.hasExportFrom=!0,n}(e,t):i.default.list.make()}},7858:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExpressionStatement=t.transformExpressionStatementInner=void 0;const i=n(r(9861)),a=r(6671),o=r(5260),s=r(7010),c=r(226),l=r(6614),u=r(6219),d=r(1915),_=r(6837),f=n(r(5423));function p(e,t){if(f.default.isBinaryExpression(t)){const r=t.operatorToken.kind;if(f.default.isLogicalOrCoalescingAssignmentExpression(t))return(0,o.transformLogicalOrCoalescingAssignmentExpressionStatement)(e,t);if(f.default.isAssignmentOperator(r)&&!f.default.isArrayLiteralExpression(t.left)&&!f.default.isObjectLiteralExpression(t.left)){const n=e.getType(t.left),a=e.getType(t.right),o=(0,l.getSimpleAssignmentOperator)(n,r,a),{writable:c,readable:u,value:_}=(0,s.transformWritableAssignment)(e,t.left,t.right,void 0===o,void 0===o);return void 0!==o?i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:c,operator:o,right:"..="!==o||(0,d.isDefinitelyType)(a,d.isStringType)?_:i.default.call(i.default.globals.tostring,[_])})):i.default.list.make((0,l.createCompoundAssignmentStatement)(e,t,c,n,u,r,_,a))}}else if((f.default.isPrefixUnaryExpression(t)||f.default.isPostfixUnaryExpression(t))&&(0,c.isUnaryAssignmentOperator)(t.operator))return i.default.list.make(function(e,t){const r=(0,s.transformWritableExpression)(e,t.operand,!1),n=t.operator===f.default.SyntaxKind.PlusPlusToken?"+=":"-=";return i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:n,right:i.default.number(1)})}(e,t));return(0,_.wrapExpressionStatement)((0,a.transformExpression)(e,t))}t.transformExpressionStatementInner=p,t.transformExpressionStatement=function(e,t){return p(e,(0,u.skipDownwards)(t.expression))}},5869:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformForOfStatement=t.transformForOfRangeMacro=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(3115),c=r(4502),l=r(7598),u=r(1822),d=r(2865),_=r(6671),f=r(1782),p=r(8043),m=r(7010),g=r(6453),y=r(7034),v=r(2036),h=r(1441),x=r(6219),b=r(1915),D=r(837),S=r(2161),T=n(r(5423));function C(e){return(t,r,n,a)=>{const o=i.default.list.make(),s=i.default.list.make(),c=e(t,n,a,o,s);return i.default.list.unshiftList(r,s),i.default.list.make(i.default.create(i.default.SyntaxKind.ForStatement,{ids:o,expression:c,statements:r}))}}function E(e,t,r,n){if(T.default.isArrayLiteralExpression(t)){const[a,o]=e.capture((()=>{const r=e.pushToVar(n,"binding");return(0,l.transformArrayAssignmentPattern)(e,t,r),r}));return i.default.list.pushList(r,o),a}if(T.default.isObjectLiteralExpression(t)){const[a,o]=e.capture((()=>{const r=e.pushToVar(n,"binding");return(0,d.transformObjectAssignmentPattern)(e,t,r),r}));return i.default.list.pushList(r,o),a}{const a=(0,m.transformWritableExpression)(e,t,!1);i.default.list.push(r,i.default.create(i.default.SyntaxKind.Assignment,{left:a,operator:"=",right:n}))}}function k(e,t,r){if(T.default.isVariableDeclarationList(t))return(0,u.transformBindingName)(e,t.declarations[0].name,r);if(T.default.isArrayLiteralExpression(t)){const n=i.default.tempId("binding");return i.default.list.pushList(r,e.capturePrereqs((()=>(0,l.transformArrayAssignmentPattern)(e,t,n)))),n}if(T.default.isObjectLiteralExpression(t)){const n=i.default.tempId("binding");return i.default.list.pushList(r,e.capturePrereqs((()=>(0,d.transformObjectAssignmentPattern)(e,t,n)))),n}{const n=i.default.tempId("v"),a=(0,m.transformWritableExpression)(e,t,!1);return i.default.list.push(r,i.default.create(i.default.SyntaxKind.Assignment,{left:a,operator:"=",right:n})),n}}const N=C(((e,t,r,n,a)=>(i.default.list.push(n,i.default.tempId()),i.default.list.push(n,k(e,t,a)),r))),A=C(((e,t,r,n,a)=>(i.default.list.push(n,k(e,t,a)),r)));function P(e,t,r,n){for(const o of t.elements)if(T.default.isOmittedExpression(o))i.default.list.push(r,i.default.tempId());else if(T.default.isSpreadElement(o))c.DiagnosticService.addDiagnostic(a.errors.noSpreadDestructuring(o));else{const t=(0,u.transformBindingName)(e,o.name,n);o.initializer&&i.default.list.push(n,(0,f.transformInitializer)(e,t,o.initializer)),i.default.list.push(r,t)}}function F(e,t,r,n){i.default.list.pushList(n,e.capturePrereqs((()=>{for(let n of t.elements)if(T.default.isOmittedExpression(n))i.default.list.push(r,i.default.tempId());else if(T.default.isSpreadElement(n))c.DiagnosticService.addDiagnostic(a.errors.noSpreadDestructuring(n));else{let t;T.default.isBinaryExpression(n)&&(t=(0,x.skipDownwards)(n.right),n=(0,x.skipDownwards)(n.left));const a=i.default.tempId("binding");if(T.default.isIdentifier(n)||T.default.isElementAccessExpression(n)||T.default.isPropertyAccessExpression(n)){const r=(0,m.transformWritableExpression)(e,n,void 0!==t);e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:a})),t&&e.prereq((0,f.transformInitializer)(e,r,t))}else T.default.isArrayLiteralExpression(n)?(t&&e.prereq((0,f.transformInitializer)(e,a,t)),(0,l.transformArrayAssignmentPattern)(e,n,a)):T.default.isObjectLiteralExpression(n)?(t&&e.prereq((0,f.transformInitializer)(e,a,t)),(0,d.transformObjectAssignmentPattern)(e,n,a)):(0,o.assert)(!1,`transformInLineArrayAssignmentPattern invalid element: ${(0,v.getKindName)(n.kind)}`);i.default.list.push(r,a)}})))}const w=C(((e,t,r,n,a)=>{if(T.default.isVariableDeclarationList(t)){const i=t.declarations[0].name;if(T.default.isArrayBindingPattern(i))return P(e,i,n,a),r}else if(T.default.isArrayLiteralExpression(t))return F(e,t,n,a),r;const o=i.default.tempId("k"),s=i.default.tempId("v");if(i.default.list.push(n,o),i.default.list.push(n,s),T.default.isVariableDeclarationList(t)){const r=i.default.list.make();i.default.list.push(a,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:k(e,t,r),right:i.default.array([o,s])})),i.default.list.pushList(a,r)}else E(e,t,a,i.default.array([o,s]));return r})),I=C(((e,t,r,n,a)=>(i.default.list.push(n,k(e,t,a)),i.default.call(i.default.globals.string.gmatch,[r,i.default.globals.utf8.charpattern])))),M=C(((e,t,r,n,a)=>(i.default.list.push(n,k(e,t,a)),r)));function O(e,t,r,n){const a=i.default.list.make(),o=i.default.list.make();return T.default.isArrayBindingPattern(t)?P(e,t,a,o):F(e,t,a,o),i.default.list.unshiftList(r,o),i.default.list.make(i.default.create(i.default.SyntaxKind.ForStatement,{ids:a,expression:n,statements:r}))}const L=C(((e,t,r,n,a)=>{const o=i.default.tempId("result");if(i.default.list.push(n,o),i.default.list.push(a,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.property(o,"done"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),T.default.isVariableDeclarationList(t)){const r=i.default.list.make();i.default.list.push(a,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:k(e,t,r),right:i.default.property(o,"value")})),i.default.list.pushList(a,r)}else E(e,t,a,i.default.property(o,"value"));return i.default.property((0,g.convertToIndexableExpression)(r),"next")}));function R(e,t){const r=i.default.list.make(),n=i.default.list.make(),a=k(e,t.initializer,n),[[o,s,c],l]=e.capture((()=>(0,y.ensureTransformOrder)(e,t.expression.arguments)));return i.default.list.pushList(r,l),i.default.list.pushList(n,(0,p.transformStatementList)(e,(0,h.getStatements)(t.statement))),i.default.list.push(r,i.default.create(i.default.SyntaxKind.NumericForStatement,{id:a,start:o,end:s,step:c,statements:n})),r}t.transformForOfRangeMacro=R,t.transformForOfStatement=function(e,t){if(t.awaitModifier&&c.DiagnosticService.addDiagnostic(a.errors.noAwaitForOf(t)),T.default.isVariableDeclarationList(t.initializer)){const r=t.initializer.declarations[0].name;T.default.isIdentifier(r)&&(0,D.validateIdentifier)(e,r)}if(function(e,t){if(T.default.isCallExpression(t.expression)){const r=(0,b.getFirstDefinedSymbol)(e,e.getType(t.expression.expression));if(r&&r===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.$range))return!0}return!1}(e,t))return R(e,t);const r=i.default.list.make(),[n,l]=e.capture((()=>(0,_.transformExpression)(e,t.expression)));i.default.list.pushList(r,l);const u=e.getType(t.expression),d=(0,p.transformStatementList)(e,(0,h.getStatements)(t.statement)),f=function(e,t,r){return(0,b.isDefinitelyType)(r,(0,b.isArrayType)(e))?N:(0,b.isDefinitelyType)(r,(0,b.isSetType)(e))?A:(0,b.isDefinitelyType)(r,(0,b.isMapType)(e))?w:(0,b.isDefinitelyType)(r,b.isStringType)?I:(0,b.isDefinitelyType)(r,(0,b.isIterableFunctionLuaTupleType)(e))?(e=>(t,r,n,a)=>{if(T.default.isVariableDeclarationList(n)){const e=n.declarations[0].name;if(T.default.isArrayBindingPattern(e))return O(t,e,r,a)}else if(T.default.isArrayLiteralExpression(n))return O(t,n,r,a);const s=new Array,c=e.getCallSignatures()[0].getReturnType();(0,o.assert)(c&&c.aliasTypeArguments&&1===c.aliasTypeArguments.length,"Incorrect LuaTuple type arguments");const l=c.aliasTypeArguments[0];if(!T.default.isVariableDeclarationList(n)||!t.typeChecker.isTupleType(l)||l.target.combinedFlags&T.default.ElementFlags.Rest){const e=t.pushToVar(a,(0,S.valueToIdStr)(a)||"iterFunc"),o=i.default.list.make(),s=i.default.list.make(),c=k(t,n,s);return i.default.list.push(o,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:c,right:i.default.array([i.default.call(e)])})),i.default.list.push(o,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(i.default.unary("#",c),"==",i.default.number(0)),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),i.default.list.pushList(o,s),i.default.list.pushList(o,r),i.default.list.make(i.default.create(i.default.SyntaxKind.WhileStatement,{condition:i.default.bool(!0),statements:o}))}{const e=l.target;for(let t=0;t{for(const e of s)i.default.list.push(n,e);return i.default.list.push(a,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:u,right:i.default.array(s)})),r}));return d(t,r,n,a)})(r):(0,b.isDefinitelyType)(r,(0,b.isIterableFunctionType)(e))?M:(0,b.isDefinitelyType)(r,(0,b.isGeneratorType)(e))?L:(0,b.isDefinitelyType)(r,(0,b.isIterableType)(e))?(c.DiagnosticService.addDiagnostic(a.errors.noIterableIteration(t)),()=>i.default.list.make()):r.isUnion()?(c.DiagnosticService.addDiagnostic(a.errors.noMacroUnion(t)),()=>i.default.list.make()):void(0,o.assert)(!1,`ForOf iteration type not implemented: ${e.typeChecker.typeToString(r)}`)}(e,t.expression,u);return i.default.list.pushList(r,f(e,d,t.initializer,n)),r}},9430:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformForStatement=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6671),l=r(6848),u=r(7858),d=r(8007),_=r(8043),f=r(410),p=r(6117),m=r(1441),g=r(9582),y=r(6219),v=r(1915),h=n(r(5423));function x(e,t){i.default.list.isNonEmpty(e.statements)&&b(e.statements,e.statements.head,t),i.default.list.isList(e.elseBody)?i.default.list.isNonEmpty(e.elseBody)&&b(e.elseBody,e.elseBody.head,t):x(e.elseBody,t)}function b(e,t,r){(0,o.assert)(!i.default.list.isEmpty(e));const n=t.value;if(i.default.isContinueStatement(n)){const a=i.default.list.clone(r);i.default.list.forEach(a,(e=>e.parent=n.parent)),t.prev?t.prev.next=a.head:t===e.head&&(e.head=a.head),t.prev=a.tail,a.tail.next=t}i.default.isDoStatement(n)?i.default.list.isNonEmpty(n.statements)&&b(n.statements,n.statements.head,r):i.default.isIfStatement(n)&&x(n,r),t.next&&b(e,t.next,r)}function D(e,t,r){return!h.default.FindAllReferences.Core.isSymbolReferencedInFile(r,e.typeChecker,r.getSourceFile(),t)}function S(e,t,r){return h.default.FindAllReferences.Core.eachSymbolReferenceInFile(r,e.typeChecker,r.getSourceFile(),(e=>{if(h.default.isWriteAccess(e)&&(!t.incrementor||!(0,y.isAncestorOf)(t.incrementor,e)))return!0;const r=(0,y.getAncestor)(e,(e=>e===t||h.default.isFunctionLike(e)));return!(!r||r===t)||void 0}),t)}function T(e,t){if(h.default.isNumericLiteral(t))return Number.isInteger(Number(t.getText()));if(h.default.isBinaryExpression(t)){if(t.operatorToken.kind===h.default.SyntaxKind.PlusToken||t.operatorToken.kind===h.default.SyntaxKind.MinusToken||t.operatorToken.kind===h.default.SyntaxKind.AsteriskToken||t.operatorToken.kind===h.default.SyntaxKind.AsteriskAsteriskToken)return T(e,t.left)&&T(e,t.right)}else if(h.default.isPrefixUnaryExpression(t)){if(t.operator===h.default.SyntaxKind.PlusToken||t.operator===h.default.SyntaxKind.MinusToken)return T(e,t.operand)}else{if(function(e,t){if(h.default.isCallExpression(t)){const r=e.typeChecker.getNonOptionalType(e.getType(t.expression)),n=(0,v.getFirstDefinedSymbol)(e,r);if(n&&e.services.macroManager.getPropertyCallMacro(n)&&"size"===n.name)return!0}return!1}(e,t))return!0;if((0,v.isDefinitelyType)(e.getType(t),(e=>e.isNumberLiteral()&&Number.isInteger(e.value))))return!0}return!1}t.transformForStatement=function(e,t){if(e.data.projectOptions.optimizedLoops){const r=function(e,t){const{initializer:r,condition:n,incrementor:a,statement:o}=t;if(!r||!h.default.isVariableDeclarationList(r)||1!==r.declarations.length)return;const{name:s,initializer:u}=r.declarations[0];if(!h.default.isIdentifier(s)||void 0===u)return;const d=e.typeChecker.getSymbolAtLocation(s);if(!d)return;if(!T(e,u))return;if(!a)return;const f=function(e,t,r){return h.default.isBinaryExpression(t)&&h.default.isIdentifier(t.left)&&e.typeChecker.getSymbolAtLocation(t.left)===r&&t.operatorToken.kind===h.default.SyntaxKind.PlusEqualsToken&&h.default.isNumericLiteral(t.right)&&T(e,t.right)?Number(t.right.getText()):h.default.isBinaryExpression(t)&&t.operatorToken.kind===h.default.SyntaxKind.MinusEqualsToken&&h.default.isNumericLiteral(t.right)&&T(e,t.right)?-Number(t.right.getText()):(h.default.isPostfixUnaryExpression(t)||h.default.isPrefixUnaryExpression(t))&&h.default.isIdentifier(t.operand)&&e.typeChecker.getSymbolAtLocation(t.operand)===r&&t.operator===h.default.SyntaxKind.PlusPlusToken?1:(h.default.isPostfixUnaryExpression(t)||h.default.isPrefixUnaryExpression(t))&&h.default.isIdentifier(t.operand)&&e.typeChecker.getSymbolAtLocation(t.operand)===r&&t.operator===h.default.SyntaxKind.MinusMinusToken?-1:void 0}(e,a,d);if(void 0===f)return;if(!n||!h.default.isBinaryExpression(n))return;if(n.operatorToken.kind===h.default.SyntaxKind.LessThanToken||n.operatorToken.kind===h.default.SyntaxKind.LessThanEqualsToken){if(f<0)return}else{if(n.operatorToken.kind!==h.default.SyntaxKind.GreaterThanToken&&n.operatorToken.kind!==h.default.SyntaxKind.GreaterThanEqualsToken)return;if(f>0)return}if(!T(e,n.right))return;if(function(e,t,r){return!0===h.default.FindAllReferences.Core.eachSymbolReferenceInFile(t,e.typeChecker,t.getSourceFile(),(e=>{const t=(0,y.skipUpwards)(e).parent;return!(!h.default.isAssignmentExpression(t)||(0,y.skipDownwards)(t.left)!==e)||!(!h.default.isUnaryExpressionWithWrite(t)||(0,y.skipDownwards)(t.operand)!==e)}),r)}(e,s,o))return;const p=i.default.list.make(),v=(0,l.transformIdentifierDefined)(e,s),[x,b]=e.capture((()=>(0,c.transformExpression)(e,u)));i.default.list.pushList(p,b);let[D,S]=e.capture((()=>(0,c.transformExpression)(e,n.right)));i.default.list.pushList(p,S);const C=i.default.number(f),E=(0,_.transformStatementList)(e,(0,m.getStatements)(o));return n.operatorToken.kind===h.default.SyntaxKind.LessThanToken?D=(0,g.offset)(D,-1):n.operatorToken.kind===h.default.SyntaxKind.GreaterThanToken&&(D=(0,g.offset)(D,1)),i.default.list.push(p,i.default.create(i.default.SyntaxKind.NumericForStatement,{id:v,start:x,end:D,step:C,statements:E})),p}(e,t);if(r)return r}return function(e,t){const{initializer:r,condition:n,incrementor:g,statement:y}=t,v=i.default.list.make(),x=i.default.list.make(),T=i.default.list.make(),C=r&&h.default.isVariableDeclarationList(r)?(0,p.getDeclaredVariables)(r):[],E=new Set,k=new Set;if(r&&h.default.isVariableDeclarationList(r))for(const n of C){const i=e.typeChecker.getSymbolAtLocation(n);(0,o.assert)(i),S(e,t,n)&&E.add(i),D(e,r,n)&&k.add(i)}if(r)if(h.default.isVariableDeclarationList(r)){(0,d.isVarDeclaration)(r)&&s.DiagnosticService.addDiagnostic(a.errors.noVar(t));for(const t of C){const r=e.typeChecker.getSymbolAtLocation(t);if((0,o.assert)(r),E.has(r))if(k.has(r))e.symbolToIdMap.set(r,i.default.tempId(t.getText()));else{const n=i.default.tempId(`${t.getText()}Copy`);e.symbolToIdMap.set(r,n)}}for(const t of r.declarations){const[r,n]=e.capture((()=>{const r=i.default.list.make(),[n,a]=e.capture((()=>(0,d.transformVariableDeclaration)(e,t)));return i.default.list.pushList(r,a),i.default.list.pushList(r,n),r}));i.default.list.pushList(v,n),i.default.list.pushList(v,r)}for(const t of C){const r=e.typeChecker.getSymbolAtLocation(t);if((0,o.assert)(r),E.has(r)){let n;if(k.has(r))n=e.symbolToIdMap.get(r),(0,o.assert)(n);else{n=i.default.tempId(t.getText());const a=e.symbolToIdMap.get(r);(0,o.assert)(a),i.default.list.push(v,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:a}))}e.symbolToIdMap.delete(r);const a=(0,l.transformIdentifierDefined)(e,t);i.default.list.push(x,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:a,right:n})),i.default.list.push(T,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:a}))}}}else{const[t,n]=e.capture((()=>(0,u.transformExpressionStatementInner)(e,r)));i.default.list.pushList(v,n),i.default.list.pushList(v,t)}if(g){const t=i.default.tempId("shouldIncrement");i.default.list.push(v,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:t,right:i.default.bool(!1)}));const r=i.default.list.make(),[n,a]=e.capture((()=>(0,u.transformExpressionStatementInner)(e,g)));i.default.list.pushList(r,a),i.default.list.pushList(r,n),i.default.list.push(x,i.default.create(i.default.SyntaxKind.IfStatement,{condition:t,statements:r,elseBody:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:i.default.bool(!0)}))}))}let[N,A]=e.capture((()=>n?(0,f.createTruthinessChecks)(e,(0,c.transformExpression)(e,n),n):i.default.bool(!0)));return i.default.list.pushList(x,A),i.default.list.isEmpty(x)||(n&&i.default.list.push(x,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.unary("not",N),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),N=i.default.bool(!0)),i.default.list.pushList(x,(0,_.transformStatementList)(e,(0,m.getStatements)(y))),i.default.list.isNonEmpty(x)&&i.default.list.isNonEmpty(T)&&b(x,x.head,T),x.tail&&i.default.isFinalStatement(x.tail.value)||i.default.list.pushList(x,T),i.default.list.push(v,i.default.create(i.default.SyntaxKind.WhileStatement,{condition:N,statements:x})),v.head===v.tail?v:i.default.list.make(i.default.create(i.default.SyntaxKind.DoStatement,{statements:v}))}(e,t)}},2797:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformFunctionDeclaration=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6848),l=r(7937),u=r(8043),d=r(837),_=r(6442),f=n(r(5423));t.transformFunctionDeclaration=function(e,t){if(!t.body)return i.default.list.make();const r=!!f.default.getSelectedSyntacticModifierFlags(t,f.default.ModifierFlags.ExportDefault);(0,o.assert)(t.name||r),t.name&&(0,d.validateIdentifier)(e,t.name);const n=t.name?(0,c.transformIdentifierDefined)(e,t.name):i.default.id("default");let{statements:p,parameters:m,hasDotDotDot:g}=(0,l.transformParameters)(e,t);i.default.list.pushList(p,(0,u.transformStatementList)(e,t.body.statements));let y=r;if(t.name){const r=e.typeChecker.getSymbolAtLocation(t.name);(0,o.assert)(r),y=!0!==e.isHoisted.get(r)}const v=!!f.default.getSelectedSyntacticModifierFlags(t,f.default.ModifierFlags.Async);if(t.asteriskToken&&(v&&s.DiagnosticService.addDiagnostic(a.errors.noAsyncGeneratorFunctions(t)),p=(0,_.wrapStatementsAsGenerator)(e,t,p)),v){const r=i.default.call(e.TS(t,"async"),[i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:g,parameters:m,statements:p})]);return y?i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:r})):i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:r}))}return i.default.list.make(i.default.create(i.default.SyntaxKind.FunctionDeclaration,{localize:y,name:n,statements:p,parameters:m,hasDotDotDot:g}))}},9770:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformIfStatement=t.transformIfStatementInner=void 0;const i=n(r(9861)),a=r(6671),o=r(8043),s=r(410),c=r(1441),l=n(r(5423));function u(e,t){const r=(0,s.createTruthinessChecks)(e,(0,a.transformExpression)(e,t.expression),t.expression),n=(0,o.transformStatementList)(e,(0,c.getStatements)(t.thenStatement)),d=t.elseStatement;let _;if(void 0===d)_=i.default.list.make();else if(l.default.isIfStatement(d)){const[t,r]=e.capture((()=>u(e,d)));if(i.default.list.isEmpty(r))_=t;else{const e=i.default.list.make();i.default.list.pushList(e,r),i.default.list.push(e,t),_=e}}else _=(0,o.transformStatementList)(e,(0,c.getStatements)(d));return i.default.create(i.default.SyntaxKind.IfStatement,{condition:r,statements:n,elseBody:_})}t.transformIfStatementInner=u,t.transformIfStatement=function(e,t){return i.default.list.make(u(e,t))}},8677:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformImportDeclaration=void 0;const i=n(r(9861)),a=r(1164),o=r(2287),s=r(8007),c=r(6073),l=r(3842),u=r(9525),d=r(4164),_=r(1205),f=n(r(5423));t.transformImportDeclaration=function(e,t){const r=t.importClause;if(r&&r.isTypeOnly)return i.default.list.make();const n=i.default.list.make();(0,o.assert)(f.default.isStringLiteral(t.moduleSpecifier));const p=new a.Lazy((()=>(0,l.createImportExpression)(e,t.getSourceFile(),t.moduleSpecifier)));if(r){const a=function(e,t){let r=0;if(t.name){const n=(0,u.getOriginalSymbolOfNode)(e.typeChecker,t.name);!e.resolver.isReferencedAliasDeclaration(t)||n&&!(0,_.isSymbolOfValue)(n)||r++}if(t.namedBindings)if(f.default.isNamespaceImport(t.namedBindings))r++;else for(const n of t.namedBindings.elements){const t=(0,u.getOriginalSymbolOfNode)(e.typeChecker,n.name);!e.resolver.isReferencedAliasDeclaration(n)||t&&!(0,_.isSymbolOfValue)(t)||r++}return r}(e,r);if(a>1){const e=t.moduleSpecifier.text.split("/"),r=i.default.tempId((0,c.cleanModuleName)(e[e.length-1]));i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:p.get()})),p.set(r)}const o=r.name;if(o){const a=(0,u.getOriginalSymbolOfNode)(e.typeChecker,o);if(e.resolver.isReferencedAliasDeclaration(r)&&(!a||(0,_.isSymbolOfValue)(a))){const r=(0,d.getSourceFileFromModuleSpecifier)(e,t.moduleSpecifier),a=r&&e.typeChecker.getSymbolAtLocation(r);a&&e.getModuleExports(a).some((e=>"default"===e.name))?i.default.list.pushList(n,e.capturePrereqs((()=>(0,s.transformVariable)(e,o,i.default.property(p.get(),"default"))))):i.default.list.pushList(n,e.capturePrereqs((()=>(0,s.transformVariable)(e,o,p.get()))))}}const l=r.namedBindings;if(l)if(f.default.isNamespaceImport(l))i.default.list.pushList(n,e.capturePrereqs((()=>(0,s.transformVariable)(e,l.name,p.get()))));else for(const t of l.elements){const r=(0,u.getOriginalSymbolOfNode)(e.typeChecker,t.name);!e.resolver.isReferencedAliasDeclaration(t)||r&&!(0,_.isSymbolOfValue)(r)||i.default.list.pushList(n,e.capturePrereqs((()=>{var r;return(0,s.transformVariable)(e,t.name,i.default.property(p.get(),(null!==(r=t.propertyName)&&void 0!==r?r:t.name).text))})))}}if(!r||e.compilerOptions.importsNotUsedAsValues===f.default.ImportsNotUsedAsValues.Preserve&&i.default.list.isEmpty(n)){const e=p.get();i.default.isCallExpression(e)&&i.default.list.push(n,i.default.create(i.default.SyntaxKind.CallStatement,{expression:e}))}return n}},4789:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformImportEqualsDeclaration=void 0;const i=n(r(9861)),a=r(2287),o=r(6848),s=r(8007),c=r(3842),l=r(1205),u=n(r(5423));function d(e,t){return u.default.isIdentifier(t)?(0,o.transformIdentifierDefined)(e,t):function(e,t){return i.default.property(d(e,t.left),t.right.text)}(e,t)}t.transformImportEqualsDeclaration=function(e,t){const{moduleReference:r}=t;if(u.default.isExternalModuleReference(r)){(0,a.assert)(u.default.isStringLiteral(r.expression));const n=(0,c.createImportExpression)(e,t.getSourceFile(),r.expression),o=i.default.list.make(),d=e.typeChecker.getSymbolAtLocation(t.name);return(0,a.assert)(d),(0,l.isSymbolOfValue)(u.default.skipAlias(d,e.typeChecker))&&i.default.list.pushList(o,e.capturePrereqs((()=>(0,s.transformVariable)(e,t.name,n)))),e.compilerOptions.importsNotUsedAsValues===u.default.ImportsNotUsedAsValues.Preserve&&i.default.list.isEmpty(o)&&i.default.isCallExpression(n)&&i.default.list.push(o,i.default.create(i.default.SyntaxKind.CallStatement,{expression:n})),o}return e.capturePrereqs((()=>(0,s.transformVariable)(e,t.name,d(e,r))))}},6389:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformModuleDeclaration=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(2991),c=r(4502),l=r(6848),u=r(8043),d=r(1871),_=r(3527),f=r(1205),p=r(6219),m=r(837),g=n(r(5423));function y(e){var t;for(const r of null!==(t=e.getDeclarations())&&void 0!==t?t:[]){const e=(0,p.getAncestor)(r,g.default.isStatement);if(e){const t=g.default.canHaveModifiers(e)?g.default.getModifiers(e):void 0;if(g.default.isFunctionDeclaration(e)&&!e.body)continue;if(g.default.isTypeAliasDeclaration(e))continue;if(g.default.isInterfaceDeclaration(e))continue;if(null==t?void 0:t.some((e=>e.kind===g.default.SyntaxKind.DeclareKeyword)))continue;return e}}}function v(e,t,r){const n=e.typeChecker.getSymbolAtLocation(t);(0,o.assert)(n),(0,m.validateIdentifier)(e,t);const a=(0,l.transformIdentifierDefined)(e,t),c=i.default.list.make(),d=i.default.list.make(),p=i.default.tempId("container");e.setModuleIdBySymbol(n,p),e.isHoisted.get(n)?i.default.list.push(c,i.default.create(i.default.SyntaxKind.Assignment,{left:a,operator:"=",right:i.default.map()})):i.default.list.push(c,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:a,right:i.default.map()}));const h=e.getModuleExports(n);if(h.length>0&&i.default.list.push(d,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:p,right:a})),g.default.isModuleBlock(r)){const t=new Map;if(h.length>0)for(const r of h){const n=g.default.skipAlias(r,e.typeChecker);if((0,f.isSymbolOfValue)(n)&&!(0,_.isSymbolMutable)(e,n)){const e=y(r);e&&(0,s.getOrSetDefault)(t,e,(()=>[])).push(r.name)}}i.default.list.pushList(d,(0,u.transformStatementList)(e,r.statements,{id:p,mapping:t}))}else i.default.list.pushList(d,v(e,r.name,r.body)),i.default.list.push(d,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(p,r.name.text),operator:"=",right:(0,l.transformIdentifierDefined)(e,r.name)}));return i.default.list.push(c,i.default.create(i.default.SyntaxKind.DoStatement,{statements:d})),c}t.transformModuleDeclaration=function(e,t){if(!g.default.isInstantiatedModule(t,!1))return i.default.list.make();const r=e.typeChecker.getSymbolAtLocation(t.name);return r&&(0,d.hasMultipleDefinitions)(r,(e=>function(e){const t=g.default.canHaveModifiers(e)?g.default.getModifiers(e):void 0;return!((null==t?void 0:t.some((e=>e.kind===g.default.SyntaxKind.DeclareKeyword)))||(!g.default.isModuleDeclaration(e)||!g.default.isInstantiatedModule(e,!1))&&(!g.default.isFunctionDeclaration(e)||!e.body)&&!g.default.isClassDeclaration(e))}(e)))?(c.DiagnosticService.addDiagnosticWithCache(r,a.errors.noNamespaceMerging(t),e.multiTransformState.isReportedByMultipleDefinitionsCache),i.default.list.make()):((0,o.assert)(!g.default.isStringLiteral(t.name)),(0,o.assert)(t.body&&!g.default.isIdentifier(t.body)),v(e,t.name,t.body))}},5807:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformReturnStatement=t.transformReturnStatementInner=void 0;const i=n(r(9861)),a=r(3115),o=r(6671),s=r(7034),c=r(965),l=r(6219),u=r(1915),d=n(r(5423));function _(e,t){const r=i.default.list.make();let n;if(d.default.isCallExpression(t)&&function(e,t){if(d.default.isCallExpression(t)){const r=(0,u.getFirstDefinedSymbol)(e,e.getType(t.expression));if(r&&r===e.services.macroManager.getSymbolOrThrow(a.SYMBOL_NAMES.$tuple))return!0}return!1}(e,t)){const[a,o]=e.capture((()=>(0,s.ensureTransformOrder)(e,t.arguments)));i.default.list.pushList(r,o),n=i.default.list.make(...a)}else n=(0,o.transformExpression)(e,(0,l.skipDownwards)(t)),(0,u.isLuaTupleType)(e)(e.getType(t))&&!function(e,t,r){return i.default.isCall(r)&&(0,u.isLuaTupleType)(e)(e.typeChecker.getTypeAtLocation((0,l.skipDownwards)(t)))}(e,t,n)&&(n=i.default.isArray(n)?n.members:i.default.call(i.default.globals.unpack,[n]));return(0,c.isReturnBlockedByTryStatement)(t)?(e.markTryUses("usesReturn"),i.default.list.push(r,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.list.make(e.TS(t,"TRY_RETURN"),i.default.create(i.default.SyntaxKind.Array,{members:i.default.list.isList(n)?n:i.default.list.make(n)}))}))):i.default.list.push(r,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:n})),r}t.transformReturnStatementInner=_,t.transformReturnStatement=function(e,t){return t.expression?_(e,t.expression):(0,c.isReturnBlockedByTryStatement)(t)?(e.markTryUses("usesReturn"),i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.list.make(e.TS(t,"TRY_RETURN"),i.default.array())}))):i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.nil()}))}},4318:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformStatement=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(2852),l=r(3489),u=r(9015),d=r(254),_=r(299),f=r(9915),p=r(6602),m=r(9337),g=r(7858),y=r(5869),v=r(9430),h=r(2797),x=r(9770),b=r(8677),D=r(4789),S=r(6389),T=r(5807),C=r(9753),E=r(6518),k=r(3785),N=r(8007),A=r(3847),P=r(2036),F=n(r(5423)),w=()=>i.default.list.make(),I=e=>(t,r)=>(s.DiagnosticService.addDiagnostic(e(r)),w()),M=new Map([[F.default.SyntaxKind.InterfaceDeclaration,w],[F.default.SyntaxKind.TypeAliasDeclaration,w],[F.default.SyntaxKind.EmptyStatement,w],[F.default.SyntaxKind.ForInStatement,I(a.errors.noForInStatement)],[F.default.SyntaxKind.LabeledStatement,I(a.errors.noLabeledStatement)],[F.default.SyntaxKind.DebuggerStatement,I(a.errors.noDebuggerStatement)],[F.default.SyntaxKind.Block,c.transformBlock],[F.default.SyntaxKind.BreakStatement,l.transformBreakStatement],[F.default.SyntaxKind.ClassDeclaration,u.transformClassDeclaration],[F.default.SyntaxKind.ContinueStatement,d.transformContinueStatement],[F.default.SyntaxKind.DoStatement,_.transformDoStatement],[F.default.SyntaxKind.EnumDeclaration,f.transformEnumDeclaration],[F.default.SyntaxKind.ExportAssignment,p.transformExportAssignment],[F.default.SyntaxKind.ExportDeclaration,m.transformExportDeclaration],[F.default.SyntaxKind.ExpressionStatement,g.transformExpressionStatement],[F.default.SyntaxKind.ForOfStatement,y.transformForOfStatement],[F.default.SyntaxKind.ForStatement,v.transformForStatement],[F.default.SyntaxKind.FunctionDeclaration,h.transformFunctionDeclaration],[F.default.SyntaxKind.IfStatement,x.transformIfStatement],[F.default.SyntaxKind.ImportDeclaration,b.transformImportDeclaration],[F.default.SyntaxKind.ImportEqualsDeclaration,D.transformImportEqualsDeclaration],[F.default.SyntaxKind.ModuleDeclaration,S.transformModuleDeclaration],[F.default.SyntaxKind.ReturnStatement,T.transformReturnStatement],[F.default.SyntaxKind.SwitchStatement,C.transformSwitchStatement],[F.default.SyntaxKind.ThrowStatement,E.transformThrowStatement],[F.default.SyntaxKind.TryStatement,k.transformTryStatement],[F.default.SyntaxKind.VariableStatement,N.transformVariableStatement],[F.default.SyntaxKind.WhileStatement,A.transformWhileStatement]]);t.transformStatement=function(e,t){const r=F.default.canHaveModifiers(t)?F.default.getModifiers(t):void 0;if(null==r?void 0:r.some((e=>e.kind===F.default.SyntaxKind.DeclareKeyword)))return w();const n=M.get(t.kind);if(n)return n(e,t);(0,o.assert)(!1,`Unknown statement: ${(0,P.getKindName)(t.kind)}`)}},9753:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSwitchStatement=void 0;const i=n(r(9861)),a=r(6671),o=r(8043),s=r(6749),c=n(r(5423));function l(e,t,r,n,l,u){const{condition:d,prereqStatements:_}=function(e,t,r,n,o){let[s,c]=e.capture((()=>(0,a.transformExpression)(e,t)));s=i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:s});let l=i.default.binary(r,"==",s);if(o)if(i.default.list.isEmpty(c))l=i.default.binary(n,"or",l);else{const e=i.default.unary("not",n);i.default.list.push(c,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:l})),c=i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:e,statements:c,elseBody:i.default.list.make()})),l=n}return{condition:l,prereqStatements:c}}(e,t.expression,r,n,l),f=t.statements.filter((e=>!c.default.isEmptyStatement(e))),p=f[0],m=(0,o.transformStatementList)(e,1===f.length&&c.default.isBlock(p)?p.statements:t.statements),g=void 0===m.tail||!i.default.isFinalStatement(m.tail.value);g&&u&&i.default.list.push(m,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:i.default.bool(!0)}));const y=i.default.list.make(),v=(0,s.createHoistDeclaration)(e,t);return v&&i.default.list.push(y,v),i.default.list.push(y,i.default.create(i.default.SyntaxKind.IfStatement,{condition:d,statements:m,elseBody:i.default.list.make()})),{canFallThroughFrom:g,prereqs:_,clauseStatements:y}}t.transformSwitchStatement=function(e,t){const r=e.pushToVarIfComplex((0,a.transformExpression)(e,t.expression),"exp"),n=i.default.tempId("fallthrough");let s=!1;const u=i.default.list.make();let d=!1;for(let a=0;a0);let r=i.default.create(i.default.SyntaxKind.IfStatement,{condition:e,statements:t[t.length-1].statements,elseBody:i.default.list.make()});for(let n=t.length-2;n>=0;n--)r=i.default.create(i.default.SyntaxKind.IfStatement,{condition:t[n].condition||e,statements:t[n].statements,elseBody:r});return i.default.list.make(r)}t.transformTryStatement=function(e,t){const r=i.default.list.make(),n=i.default.tempId("exitType"),d=i.default.tempId("returns"),_=e.pushTryUsesStack();return i.default.list.push(r,function(e,t,r,n,c){const l=new Array;return l.push(i.default.create(i.default.SyntaxKind.FunctionExpression,{parameters:i.default.list.make(),hasDotDotDot:!1,statements:(0,s.transformStatementList)(e,t.tryBlock.statements)})),t.catchClause?l.push(function(e,t){const r=i.default.list.make(),n=i.default.list.make();return t.variableDeclaration&&i.default.list.push(r,(0,o.transformBindingName)(e,t.variableDeclaration.name,n)),i.default.list.pushList(n,(0,s.transformStatementList)(e,t.block.statements)),i.default.create(i.default.SyntaxKind.FunctionExpression,{parameters:r,hasDotDotDot:!1,statements:n})}(e,t.catchClause)):((0,a.assert)(t.finallyBlock),l.push(i.default.nil())),t.finallyBlock&&l.push(i.default.create(i.default.SyntaxKind.FunctionExpression,{parameters:i.default.list.make(),hasDotDotDot:!1,statements:(0,s.transformStatementList)(e,t.finallyBlock.statements)})),c.usesReturn||c.usesBreak||c.usesContinue?i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.list.make(r,n),right:i.default.call(e.TS(t,"try"),l)}):i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(e.TS(t,"try"),l)})}(e,t,n,d,_)),e.popTryUsesStack(),i.default.list.pushList(r,function(e,t,r,n,a){const o=new Array;if(!a.usesReturn&&!a.usesBreak&&!a.usesContinue)return i.default.list.make();const s=(0,c.isReturnBlockedByTryStatement)(t.parent),d=(0,c.isBreakBlockedByTryStatement)(t.parent);if(a.usesReturn&&s&&e.markTryUses("usesReturn"),a.usesBreak&&d&&e.markTryUses("usesBreak"),a.usesContinue&&d&&e.markTryUses("usesContinue"),a.usesReturn)if(s){if(o.push({condition:l(e,t,r,"TRY_RETURN"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.list.make(r,n)}))}),d)return u(r,o)}else o.push({condition:l(e,t,r,"TRY_RETURN"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.call(i.default.globals.unpack,[n])}))});return(a.usesBreak||a.usesContinue)&&(d?o.push({statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:r}))}):(a.usesBreak&&o.push({condition:l(e,t,r,"TRY_BREAK"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{}))}),a.usesContinue&&o.push({condition:l(e,t,r,"TRY_CONTINUE"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ContinueStatement,{}))}))),u(r,o)}(e,t,n,d,_)),r}},8007:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformVariableStatement=t.transformVariableDeclarationList=t.isVarDeclaration=t.transformVariableDeclaration=t.transformVariable=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(2396),l=r(5235),u=r(6671),d=r(6848),_=r(1782),f=r(9254),p=r(4953),m=r(3527),g=r(1915),y=r(837),v=r(6837),h=n(r(5423));function x(e,t,r){(0,y.validateIdentifier)(e,t);const n=e.typeChecker.getSymbolAtLocation(t);if((0,o.assert)(n),(0,m.isSymbolMutable)(e,n)){const t=e.getModuleIdPropertyAccess(n);if(t)return r&&e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:r})),t}const a=(0,d.transformIdentifierDefined)(e,t);return(0,p.checkVariableHoist)(e,t,n),!0===e.isHoisted.get(n)?r&&e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:a,operator:"=",right:r})):e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:a,right:r})),a}function b(e,t,r){return e.capturePrereqs((()=>{const n=i.default.list.make(),u=e.capturePrereqs((()=>{for(const r of t.elements)if(h.default.isOmittedExpression(r))i.default.list.push(n,i.default.tempId());else{if(r.dotDotDotToken)return void s.DiagnosticService.addDiagnostic(a.errors.noSpreadDestructuring(r));if(h.default.isIdentifier(r.name)){(0,y.validateIdentifier)(e,r.name);const t=(0,d.transformIdentifierDefined)(e,r.name);i.default.list.push(n,t),r.initializer&&e.prereq((0,_.transformInitializer)(e,t,r.initializer))}else{const t=i.default.tempId("binding");i.default.list.push(n,t),r.initializer&&e.prereq((0,_.transformInitializer)(e,t,r.initializer)),h.default.isArrayBindingPattern(r.name)?(0,c.transformArrayBindingPattern)(e,r.name,t):(0,l.transformObjectBindingPattern)(e,r.name,t)}}}));(0,o.assert)(!i.default.list.isEmpty(n)),e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:r})),e.prereqList(u)}))}function D(e,t){const r=i.default.list.make();let n;t.initializer&&i.default.list.pushList(r,e.capturePrereqs((()=>n=(0,u.transformExpression)(e,t.initializer))));const a=t.name;if(h.default.isIdentifier(a))i.default.list.pushList(r,e.capturePrereqs((()=>x(e,a,n))));else{if((0,o.assert)(t.initializer&&n),0===a.elements.length)return i.default.isArray(n)&&i.default.list.isEmpty(n.members)||i.default.list.pushList(r,(0,v.wrapExpressionStatement)(n)),r;h.default.isArrayBindingPattern(a)?i.default.isCall(n)&&(0,g.isLuaTupleType)(e)(e.getType(t.initializer))&&!(0,f.arrayBindingPatternContainsHoists)(e,a)?i.default.list.pushList(r,b(e,a,n)):!i.default.isArray(n)||i.default.list.isEmpty(n.members)||(0,f.arrayBindingPatternContainsHoists)(e,a)?i.default.list.pushList(r,e.capturePrereqs((()=>(0,c.transformArrayBindingPattern)(e,a,e.pushToVar(n,"binding"))))):i.default.list.pushList(r,b(e,a,n.members)):i.default.list.pushList(r,e.capturePrereqs((()=>(0,l.transformObjectBindingPattern)(e,a,e.pushToVar(n,"binding")))))}return r}function S(e){return!(e.flags&h.default.NodeFlags.Const||e.flags&h.default.NodeFlags.Let)}function T(e,t){S(t)&&s.DiagnosticService.addDiagnostic(a.errors.noVar(t));const r=i.default.list.make();for(const n of t.declarations){const[t,a]=e.capture((()=>D(e,n)));i.default.list.pushList(r,a),i.default.list.pushList(r,t)}return r}t.transformVariable=x,t.transformVariableDeclaration=D,t.isVarDeclaration=S,t.transformVariableDeclarationList=T,t.transformVariableStatement=function(e,t){return T(e,t.declarationList)}},3847:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformWhileStatement=void 0;const i=n(r(9861)),a=r(6671),o=r(8043),s=r(410),c=r(1441);t.transformWhileStatement=function(e,t){const r=i.default.list.make();let[n,l]=e.capture((()=>(0,s.createTruthinessChecks)(e,(0,a.transformExpression)(e,t.expression),t.expression)));return i.default.list.isEmpty(l)||(i.default.list.pushList(r,l),i.default.list.push(r,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.unary("not",n),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),n=i.default.bool(!0)),i.default.list.pushList(r,(0,o.transformStatementList)(e,(0,c.getStatements)(t.statement))),i.default.list.make(i.default.create(i.default.SyntaxKind.WhileStatement,{condition:n,statements:r}))}},1782:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformInitializer=void 0;const i=n(r(9861)),a=r(6671);t.transformInitializer=function(e,t,r){return i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(t,"==",i.default.nil()),elseBody:i.default.list.make(),statements:e.capturePrereqs((()=>{e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:(0,a.transformExpression)(e,r)}))}))})}},5741:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformLogical=void 0;const i=n(r(9861)),a=r(2287),o=r(6671),s=r(410),c=r(4160),l=r(2036),u=r(1915),d=n(r(5423));function _(e,t,r,n){return function(e,t){const r=new Array;for(;d.default.isBinaryExpression(e)&&e.operatorToken.kind===t;)r.unshift(e.right),e=e.left;return r.unshift(e),r}(t,r).map(((t,r,a)=>{const c=e.getType(t),[l,u]=e.capture((()=>(0,o.transformExpression)(e,t)));let d=!1;if(n){const e=rf(e,t,r,n,a+1))),elseBody:i.default.list.make()}))}function p(e,t,r,n,a){const o=_(e,t,r,!0);if(function(e,t){for(let r=0;r(0,s.createTruthinessChecks)(e,t,r)));if(t.operatorToken.kind===d.default.SyntaxKind.BarBarToken)return p(e,t,t.operatorToken.kind,"or",((t,r)=>i.default.unary("not",(0,s.createTruthinessChecks)(e,t,r))));if(t.operatorToken.kind===d.default.SyntaxKind.QuestionQuestionToken){const r=e=>i.default.binary(e,"==",i.default.nil());if(!(0,u.isPossiblyType)(e.getType(t),(0,u.isBooleanLiteralType)(e,!1)))return p(e,t,t.operatorToken.kind,"or",r);const n=_(e,t,d.default.SyntaxKind.QuestionQuestionToken,!1),a=i.default.tempId("condition");return f(e,n,a,r),a}(0,a.assert)(!1,`Operator not implemented: ${(0,l.getKindName)(t.operatorToken.kind)}`)}},5260:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformLogicalOrCoalescingAssignmentExpressionStatement=t.transformLogicalOrCoalescingAssignmentExpression=void 0;const i=n(r(9861)),a=r(6671),o=r(7010),s=r(410),c=n(r(5423));function l(e,t){const r=t.operatorToken.kind;return r===c.default.SyntaxKind.QuestionQuestionEqualsToken?function(e,t,r){const n=(0,o.transformWritableExpression)(e,t,!0),[s,c]=e.capture((()=>(0,a.transformExpression)(e,r))),l=i.default.list.make();return i.default.list.pushList(l,c),i.default.list.push(l,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:s})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(n,"==",i.default.nil()),statements:l,elseBody:i.default.list.make()})),n}(e,t.left,t.right):r===c.default.SyntaxKind.AmpersandAmpersandEqualsToken?function(e,t,r){const n=(0,o.transformWritableExpression)(e,t,!0),[c,l]=e.capture((()=>(0,a.transformExpression)(e,r))),u=e.pushToVar(n,"condition"),d=i.default.list.make();return i.default.list.pushList(d,l),i.default.list.push(d,i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:c})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,s.createTruthinessChecks)(e,n,t),statements:d,elseBody:i.default.list.make()})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:u})),n}(e,t.left,t.right):function(e,t,r){const n=(0,o.transformWritableExpression)(e,t,!0),[c,l]=e.capture((()=>(0,a.transformExpression)(e,r))),u=e.pushToVar(n,"condition"),d=i.default.list.make();return i.default.list.pushList(d,l),i.default.list.push(d,i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:c})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.unary("not",(0,s.createTruthinessChecks)(e,n,t)),statements:d,elseBody:i.default.list.make()})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:u})),n}(e,t.left,t.right)}t.transformLogicalOrCoalescingAssignmentExpression=l,t.transformLogicalOrCoalescingAssignmentExpressionStatement=function(e,t){return e.capturePrereqs((()=>l(e,t)))}},8111:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformMethodDeclaration=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(7937),l=r(5671),u=r(8043),d=r(833),_=r(274),f=r(6442),p=n(r(5423));t.transformMethodDeclaration=function(e,t,r){const n=i.default.list.make();if(!t.body)return i.default.list.make();if((0,o.assert)(t.name),p.default.isPrivateIdentifier(t.name))return s.DiagnosticService.addDiagnostic(a.errors.noPrivateIdentifier(t.name)),i.default.list.make();let{statements:m,parameters:g,hasDotDotDot:y}=(0,c.transformParameters)(e,t);i.default.list.pushList(m,(0,u.transformStatementList)(e,t.body.statements));let v=(0,l.transformPropertyName)(e,t.name);if(p.default.hasDecorators(t)&&!i.default.isSimple(v)){const r=i.default.tempId("key");i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:v})),v=r,e.setClassElementObjectKey(t,r)}const h=!!p.default.getSelectedSyntacticModifierFlags(t,p.default.ModifierFlags.Async);if(t.asteriskToken&&(h&&s.DiagnosticService.addDiagnostic(a.errors.noAsyncGeneratorFunctions(t)),m=(0,f.wrapStatementsAsGenerator)(e,t,m)),!h&&i.default.isStringLiteral(v)&&!i.default.isMap(r.value)&&i.default.isValidIdentifier(v.value))return(0,d.isMethod)(e,t)?(i.default.list.shift(g),i.default.list.push(n,i.default.create(i.default.SyntaxKind.MethodDeclaration,{expression:r.value,name:v.value,statements:m,parameters:g,hasDotDotDot:y}))):i.default.list.push(n,i.default.create(i.default.SyntaxKind.FunctionDeclaration,{name:i.default.property(r.value,v.value),localize:!1,statements:m,parameters:g,hasDotDotDot:y})),n;let x=i.default.create(i.default.SyntaxKind.FunctionExpression,{statements:m,parameters:g,hasDotDotDot:y});return h&&(x=i.default.call(e.TS(t,"async"),[x])),i.default.list.pushList(n,e.capturePrereqs((()=>(0,_.assignToMapPointer)(e,r,v,x)))),n}},8087:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformOptionalChain=t.flattenOptionalChain=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(4698),c=r(8010),l=r(6671),u=r(8685),d=r(6453),_=r(7034),f=r(833),p=r(6409),m=r(6219),g=r(1915),y=r(1511),v=n(r(5423));var h;function x(e,t){return{node:t,kind:h.PropertyAccess,optional:void 0!==t.questionDotToken,type:e.getType(t.expression),name:t.name.text}}function b(e,t){return{node:t,kind:h.ElementAccess,optional:void 0!==t.questionDotToken,type:e.getType(t.expression),expression:t.argumentExpression}}function D(e,t){return{node:t,kind:h.Call,optional:void 0!==t.questionDotToken,type:e.getType(t.expression),args:t.arguments}}function S(e,t,r){return{node:t,expression:r,kind:h.PropertyCall,optional:void 0!==r.questionDotToken,type:e.getType(t.expression),name:r.name.text,callType:e.getType(t),callOptional:void 0!==t.questionDotToken,args:t.arguments}}function T(e,t,r){return{node:t,expression:r,kind:h.ElementCall,optional:void 0!==r.questionDotToken,type:e.getType(r),argumentExpression:r.argumentExpression,callType:e.getType(t),callOptional:void 0!==t.questionDotToken,args:t.arguments}}function C(e,t){const r=new Array;for(;;)if(v.default.isPropertyAccessExpression(t))r.unshift(x(e,t)),t=t.expression;else if(v.default.isElementAccessExpression(t))r.unshift(b(e,t)),t=t.expression;else{if(!v.default.isCallExpression(t))break;{const n=(0,m.skipDownwards)(t.expression);v.default.isPropertyAccessExpression(n)?(r.unshift(S(e,t,n)),t=n.expression):v.default.isElementAccessExpression(n)?(r.unshift(T(e,t,n)),t=n.expression):(r.unshift(D(e,t)),t=n)}}return{chain:r,expression:t}}function E(e,t,r){return r.kind===h.PropertyAccess?(0,u.transformPropertyAccessExpressionInner)(e,r.node,t,r.name):r.kind===h.ElementAccess?(0,c.transformElementAccessExpressionInner)(e,r.node,t,r.expression):r.kind===h.Call?(0,s.transformCallExpressionInner)(e,r.node,t,r.args):r.kind===h.PropertyCall?(0,s.transformPropertyCallExpressionInner)(e,r.node,r.expression,t,r.name,r.args):(0,s.transformElementCallExpressionInner)(e,r.node,r.expression,t,r.argumentExpression,r.args)}function k(e,t,r,n){return void 0===t?t=e.pushToVar(r,n.parent&&v.default.isVariableDeclaration(n.parent)&&v.default.isIdentifier(n.parent.name)?n.parent.name.text:"result"):t!==r&&e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:r})),t}function N(e,t){return i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(e,"~=",i.default.nil()),statements:t,elseBody:i.default.list.make()})}function A(e){return e.kind===h.PropertyCall||e.kind===h.ElementCall}function P(e,t,r,n,s=0){if(s>=t.length)return r;const c=t[s];if(c.optional||A(c)&&c.callOptional){let u,m=!1,x=!1;A(c)&&(m=(0,f.isMethod)(e,c.expression),x=v.default.isSuperProperty(c.expression),c.callOptional&&m&&!x&&(u=e.pushToVar(r,"self"),r=u),c.optional&&(n=k(e,n,r,t[t.length-1].node),r=n),c.callOptional&&(r=c.kind===h.PropertyCall?i.default.property((0,d.convertToIndexableExpression)(r),c.name):i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,d.convertToIndexableExpression)(r),index:(0,l.transformExpression)(e,c.argumentExpression)})));const[b,D]=e.capture((()=>{n=k(e,n,r,t[t.length-1].node);const[l,d]=e.capture((()=>{let r;if(A(c)&&c.callOptional){const t=e.typeChecker.getNonOptionalType(e.getType(c.node.expression)),s=(0,g.getFirstDefinedSymbol)(e,t);if(s&&e.services.macroManager.getPropertyCallMacro(s))return o.DiagnosticService.addDiagnostic(a.errors.noOptionalMacroCall(c.node)),i.default.none();const l=(0,_.ensureTransformOrder)(e,c.args);m&&(x?l.unshift(i.default.globals.self):l.unshift(u)),r=(0,y.wrapReturnIfLuaTuple)(e,c.node,i.default.call(n,l))}else r=E(e,n,c);return P(e,t,r,n,s+1)})),f=!i.default.isNone(l)&&!(0,p.isUsedAsStatement)(c.node);return n!==l&&f?i.default.list.push(d,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:l})):i.default.isCall(l)&&i.default.list.push(d,i.default.create(i.default.SyntaxKind.CallStatement,{expression:l})),e.prereq(N(n,d)),f?n:i.default.none()}));return A(c)&&c.optional&&c.callOptional?e.prereq(N(n,D)):e.prereqList(D),b}return P(e,t,E(e,r,c),n,s+1)}!function(e){e[e.PropertyAccess=0]="PropertyAccess",e[e.ElementAccess=1]="ElementAccess",e[e.Call=2]="Call",e[e.PropertyCall=3]="PropertyCall",e[e.ElementCall=4]="ElementCall"}(h||(h={})),t.flattenOptionalChain=C,t.transformOptionalChain=function(e,t){const{chain:r,expression:n}=C(e,t);return P(e,r,(0,l.transformExpression)(e,n))}},7937:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformParameters=void 0;const i=n(r(9861)),a=r(7370),o=r(4502),s=r(2396),c=r(5235),l=r(6848),u=r(1782),d=r(833),_=r(837),f=n(r(5423));function p(e,t,r){for(const n of r.elements)if(f.default.isOmittedExpression(n))i.default.list.push(t,i.default.tempId());else{if(n.dotDotDotToken)return void o.DiagnosticService.addDiagnostic(a.errors.noSpreadDestructuring(n));const r=n.name;if(f.default.isIdentifier(r)){const a=(0,l.transformIdentifierDefined)(e,r);(0,_.validateIdentifier)(e,r),i.default.list.push(t,a),n.initializer&&e.prereq((0,u.transformInitializer)(e,a,n.initializer))}else{const a=i.default.tempId("param");i.default.list.push(t,a),n.initializer&&e.prereq((0,u.transformInitializer)(e,a,n.initializer)),f.default.isArrayBindingPattern(r)?(0,s.transformArrayBindingPattern)(e,r,a):(0,c.transformObjectBindingPattern)(e,r,a)}}}t.transformParameters=function(e,t){const r=i.default.list.make(),n=i.default.list.make();let a=!1;(0,d.isMethod)(e,t)&&i.default.list.push(r,i.default.globals.self);for(const o of t.parameters){if(f.default.isThisIdentifier(o.name))continue;if(o.dotDotDotToken&&f.default.isArrayBindingPattern(o.name)){const t=e.capturePrereqs((()=>p(e,r,o.name)));i.default.list.pushList(n,t);continue}let t;if(f.default.isIdentifier(o.name)?(t=(0,l.transformIdentifierDefined)(e,o.name),(0,_.validateIdentifier)(e,o.name)):t=i.default.tempId("param"),o.dotDotDotToken?(a=!0,i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:t,right:i.default.create(i.default.SyntaxKind.Array,{members:i.default.list.make(i.default.create(i.default.SyntaxKind.VarArgsLiteral,{}))})}))):i.default.list.push(r,t),o.initializer&&i.default.list.push(n,(0,u.transformInitializer)(e,t,o.initializer)),!f.default.isIdentifier(o.name)){const r=o.name;f.default.isArrayBindingPattern(r)?i.default.list.pushList(n,e.capturePrereqs((()=>(0,s.transformArrayBindingPattern)(e,r,t)))):i.default.list.pushList(n,e.capturePrereqs((()=>(0,c.transformObjectBindingPattern)(e,r,t))))}}return{parameters:r,statements:n,hasDotDotDot:a}}},5671:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropertyName=void 0;const i=n(r(9861)),a=r(6671),o=n(r(5423));t.transformPropertyName=function(e,t){return o.default.isIdentifier(t)?i.default.string(t.text):(0,a.transformExpression)(e,o.default.isComputedPropertyName(t)?t.expression:t)}},8228:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSourceFile=void 0;const i=n(r(9861)),a=r(1979),o=r(6258),s=r(2287),c=r(6848),l=r(8043),u=r(9525),d=r(3527),_=r(1205),f=r(6219),p=n(r(5423));function m(e,t){var r,n;const a=null===(r=t.getDeclarations())||void 0===r?void 0:r[0];if(a&&p.default.isExportSpecifier(a))return[a.name.text,(0,c.transformIdentifierDefined)(e,null!==(n=a.propertyName)&&void 0!==n?n:a.name)];{let e=t.name;return"default"===t.name&&a&&(p.default.isFunctionDeclaration(a)||p.default.isClassDeclaration(a))&&a.name&&(e=a.name.text),[t.name,i.default.id(e)]}}function g(e){if(e.declarations)for(const t of e.declarations)if(p.default.isExportSpecifier(t)){const e=t.parent.parent;if(p.default.isExportDeclaration(e)&&e.moduleSpecifier)return!0}return!1}t.transformSourceFile=function(e,t){const r=e.typeChecker.getSymbolAtLocation(t);(0,s.assert)(r),e.setModuleIdBySymbol(r,i.default.globals.exports);const n=(0,l.transformStatementList)(e,t.statements);!function(e,t,r,n){const a=function(e,t){const r=new Set;for(const n of t.statements)if(p.default.isExportDeclaration(n)&&n.moduleSpecifier)if(n.exportClause){if(p.default.isNamespaceExport(n.exportClause)){const t=e.typeChecker.getSymbolAtLocation(n.exportClause.name);t&&r.add(t)}}else{const t=(0,u.getOriginalSymbolOfNode)(e.typeChecker,n.moduleSpecifier);t&&e.getModuleExports(t).forEach((e=>r.add(e)))}return r}(e,t);let o=e.hasExportFrom;const s=new Array;if(!e.hasExportEquals)for(const t of e.getModuleExports(r)){if(a.has(t))continue;if(t.flags&p.default.SymbolFlags.Prototype)continue;if(g(t))continue;const r=p.default.skipAlias(t,e.typeChecker);if((0,_.isSymbolOfValue)(r))if((0,d.isSymbolMutable)(e,r))o=!0;else{if(r.valueDeclaration){const e=(0,f.getAncestor)(r.valueDeclaration,p.default.isStatement),t=e&&p.default.canHaveModifiers(e)?p.default.getModifiers(e):void 0;if(null==t?void 0:t.some((e=>e.kind===p.default.SyntaxKind.DeclareKeyword)))continue}s.push(m(e,t))}}if(e.hasExportEquals){const e=t.statements[t.statements.length-1];p.default.isExportAssignment(e)&&e.isExportEquals||i.default.list.push(n,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.globals.exports}))}else if(o){i.default.list.unshift(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.globals.exports,right:i.default.map()}));for(const[e,t]of s)i.default.list.push(n,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(i.default.globals.exports,e),operator:"=",right:t}));i.default.list.push(n,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.globals.exports}))}else if(s.length>0){const e=i.default.list.make();for(const[t,r]of s)i.default.list.push(e,i.default.create(i.default.SyntaxKind.MapField,{index:i.default.string(t),value:r}));i.default.list.push(n,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.create(i.default.SyntaxKind.Map,{fields:e})}))}}(e,t,r,n);const c=function(e){for(;e&&i.default.isComment(e.value);)e=e.prev;return e}(n.tail);if(!c||!i.default.isReturnStatement(c.value)){const r=e.pathTranslator.getOutputPath(t.fileName);e.rojoResolver.getRbxTypeFromFilePath(r)===a.RbxType.ModuleScript&&i.default.list.push(n,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.nil()}))}return e.usesRuntimeLib&&i.default.list.unshift(n,e.createRuntimeLibImport(t)),i.default.list.unshift(n,i.default.comment(`Compiled with roblox-ts v${o.COMPILER_VERSION}`)),n}},8043:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformStatementList=void 0;const i=n(r(9861)),a=r(4318),o=r(6749),s=n(r(5423));t.transformStatementList=function(e,t,r){var n;const c=i.default.list.make();for(const s of t){const[t,l]=e.capture((()=>(0,a.transformStatement)(e,s)));!0!==e.compilerOptions.removeComments&&i.default.list.pushList(c,e.getLeadingComments(s));const u=(0,o.createHoistDeclaration)(e,s);u&&i.default.list.push(c,u),i.default.list.pushList(c,l),i.default.list.pushList(c,t);const d=null===(n=t.tail)||void 0===n?void 0:n.value;if(d&&i.default.isFinalStatement(d))break;if(r){const e=r.id,t=r.mapping.get(s);if(void 0!==t)for(const r of t)i.default.list.push(c,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(e,r),operator:"=",right:i.default.id(r)}))}}if(!0!==e.compilerOptions.removeComments&&t.length>0){const r=t[t.length-1],n=r.parent.getLastToken();n&&!s.default.isNodeDescendantOf(n,r)&&i.default.list.pushList(c,e.getLeadingComments(n))}return c}},7010:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformWritableAssignment=t.transformWritableExpression=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6671),l=r(8576),u=r(6453),d=r(7034),_=r(6219),f=n(r(5423));function p(e,t,r){if(f.default.isPrototypeAccess(t)&&s.DiagnosticService.addDiagnostic(a.errors.noPrototype(t)),f.default.isPropertyAccessExpression(t)){const n=(0,c.transformExpression)(e,t.expression);return i.default.property(r?e.pushToVarIfNonId(n,"exp"):(0,u.convertToIndexableExpression)(n),t.name.text)}if(f.default.isElementAccessExpression(t)){const[n,a]=(0,d.ensureTransformOrder)(e,[t.expression,t.argumentExpression]),o=(0,l.addOneIfArrayType)(e,e.getType(t.expression),a);return i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r?e.pushToVarIfNonId(n,"exp"):(0,u.convertToIndexableExpression)(n),index:r?e.pushToVarIfComplex(o,"index"):o})}{const r=(0,c.transformExpression)(e,(0,_.skipDownwards)(t));return(0,o.assert)(i.default.isWritableExpression(r)),r}}t.transformWritableExpression=p,t.transformWritableAssignment=function(e,t,r,n=!1,a=!1){const o=p(e,t,n),[s,l]=e.capture((()=>(0,c.transformExpression)(e,r))),u=!a||i.default.list.isEmpty(l)?o:e.pushToVar(o,"readable");return e.prereqList(l),{writable:o,readable:u,value:s}}},226:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isNamespace=t.isTemplateLiteralType=t.isUnaryAssignmentOperator=t.isBlockLike=void 0;const i=n(r(5423));t.isBlockLike=function(e){return e.kind===i.default.SyntaxKind.SourceFile||e.kind===i.default.SyntaxKind.Block||e.kind===i.default.SyntaxKind.ModuleBlock||e.kind===i.default.SyntaxKind.CaseClause||e.kind===i.default.SyntaxKind.DefaultClause},t.isUnaryAssignmentOperator=function(e){return e===i.default.SyntaxKind.PlusPlusToken||e===i.default.SyntaxKind.MinusMinusToken},t.isTemplateLiteralType=function(e){return"texts"in e&&"types"in e&&!!(e.flags&i.default.TypeFlags.TemplateLiteral)},t.isNamespace=function(e){return i.default.isModuleDeclaration(e)&&!!(e.flags&i.default.NodeFlags.Namespace)}},5949:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addIndexDiagnostics=void 0;const i=r(7370),a=r(4502),o=r(833),s=r(7011),c=r(6219),l=r(1915),u=n(r(5423));t.addIndexDiagnostics=function(e,t,r){const n=(0,l.getFirstDefinedSymbol)(e,r);(n&&e.services.macroManager.getPropertyCallMacro(n)||!(0,s.isValidMethodIndexWithoutCall)(e,(0,c.skipUpwards)(t))&&(0,o.isMethod)(e,t))&&a.DiagnosticService.addDiagnostic(i.errors.noIndexWithoutCall(t)),u.default.isPrototypeAccess(t)&&a.DiagnosticService.addDiagnostic(i.errors.noPrototype(t))}},8576:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addOneIfArrayType=void 0;const n=r(9582),i=r(1915);t.addOneIfArrayType=function(e,t,r){return(0,i.isDefinitelyType)(t,(0,i.isArrayType)(e),i.isUndefinedType)?(0,n.offset)(r,1):r}},9254:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.arrayBindingPatternContainsHoists=void 0;const i=r(4953),a=n(r(5423));t.arrayBindingPatternContainsHoists=function(e,t){for(const r of t.elements)if(a.default.isBindingElement(r)&&a.default.isIdentifier(r.name)){const t=e.typeChecker.getSymbolAtLocation(r.name);if(t&&((0,i.checkVariableHoist)(e,r.name,t),e.isHoisted.get(t)))return!0}return!1}},6614:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createCompoundAssignmentExpression=t.createCompoundAssignmentStatement=t.createAssignmentExpression=t.getSimpleAssignmentOperator=void 0;const i=n(r(9861)),a=r(3262),o=r(1915),s=n(r(5423)),c=new Map([[s.default.SyntaxKind.MinusEqualsToken,"-="],[s.default.SyntaxKind.AsteriskEqualsToken,"*="],[s.default.SyntaxKind.SlashEqualsToken,"/="],[s.default.SyntaxKind.AsteriskAsteriskEqualsToken,"^="],[s.default.SyntaxKind.PercentEqualsToken,"%="],[s.default.SyntaxKind.PlusPlusToken,"+="],[s.default.SyntaxKind.MinusMinusToken,"-="],[s.default.SyntaxKind.EqualsToken,"="]]);function l(e,t,r,n){return e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:r,right:n})),t}t.getSimpleAssignmentOperator=function(e,t,r){return t===s.default.SyntaxKind.PlusEqualsToken?(0,o.isDefinitelyType)(e,o.isStringType)||(0,o.isDefinitelyType)(r,o.isStringType)?"..=":"+=":c.get(t)},t.createAssignmentExpression=l,t.createCompoundAssignmentStatement=function(e,t,r,n,o,s,c,l){return i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:(0,a.createBinaryFromOperator)(e,t,o,n,s,c,l)})},t.createCompoundAssignmentExpression=function(e,t,r,n,i,o,s,c){return l(e,r,"=",(0,a.createBinaryFromOperator)(e,t,i,n,o,s,c))}},3550:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAccessorForBindingType=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(1915),l=n(r(5423));function u(e){return e[e.length-1]}const d=(e,t,r)=>i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:i.default.number(r+1)}),_=(e,t,r,n,a)=>{let o;0===n.length?(o=e.pushToVar(i.default.call(i.default.globals.string.gmatch,[t,i.default.globals.utf8.charpattern]),"matcher"),n.push(o)):o=n[0];const s=i.default.call(o);return a?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:s})),i.default.none()):s},f=(e,t,r,n,a)=>{const o=[t],s=u(n);s&&o.push(s);const c=i.default.call(i.default.globals.next,o);if(a)return e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:c})),i.default.none();{const t=e.pushToVar(c,"value");return n.push(t),t}},p=(e,t,r,n)=>{const a=[t],o=u(n);o&&a.push(o);const s=i.default.tempId("k"),c=i.default.tempId("v"),l=i.default.list.make(s,c);return e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:l,right:i.default.call(i.default.globals.next,a)})),n.push(s),i.default.create(i.default.SyntaxKind.Array,{members:l})},m=(e,t,r,n,a)=>{const o=i.default.call(t);return a?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:o})),i.default.none()):i.default.array([o])},g=(e,t,r,n,a)=>{const o=i.default.call(t);return a?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:o})),i.default.none()):o},y=(e,t,r,n,a)=>{const o=i.default.call(i.default.property(t,"next"));return a?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:o})),i.default.none()):i.default.property(o,"value")};t.getAccessorForBindingType=function(e,t,r){return(0,c.isDefinitelyType)(r,(0,c.isArrayType)(e))?d:(0,c.isDefinitelyType)(r,c.isStringType)?_:(0,c.isDefinitelyType)(r,(0,c.isSetType)(e))?f:(0,c.isDefinitelyType)(r,(0,c.isMapType)(e))?p:(0,c.isDefinitelyType)(r,(0,c.isIterableFunctionLuaTupleType)(e))?m:(0,c.isDefinitelyType)(r,(0,c.isIterableFunctionType)(e))?g:(0,c.isDefinitelyType)(r,(0,c.isIterableType)(e))?(s.DiagnosticService.addDiagnostic(a.errors.noIterableIteration(t)),()=>i.default.none()):(0,c.isDefinitelyType)(r,(0,c.isGeneratorType)(e))||(0,c.isDefinitelyType)(r,c.isObjectType)||l.default.isThis(t)?y:void(0,o.assert)(!1,`Destructuring not supported for type: ${e.typeChecker.typeToString(r)}`)}},529:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.objectAccessor=void 0;const i=n(r(9861)),a=r(7370),o=r(5568),s=r(4502),c=r(6671),l=r(5949),u=r(8576),d=n(r(5423));t.objectAccessor=(e,t,r,n)=>((0,l.addIndexDiagnostics)(e,n,e.getType(n)),d.default.isIdentifier(n)?i.default.property(t,n.text):d.default.isComputedPropertyName(n)?i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:(0,u.addOneIfArrayType)(e,r,(0,c.transformExpression)(e,n.expression))}):d.default.isNumericLiteral(n)||d.default.isStringLiteral(n)?i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:(0,c.transformExpression)(e,n)}):d.default.isPrivateIdentifier(n)?(s.DiagnosticService.addDiagnostic(a.errors.noPrivateIdentifier(n)),i.default.none()):(0,o.assertNever)(n,"transformPrefixUnaryExpression"))},4953:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkVariableHoist=void 0;const i=r(2991),a=r(6219),o=n(r(5423));t.checkVariableHoist=function(e,t,r){if(void 0!==e.isHoisted.get(r))return;const n=(0,a.getAncestor)(t,o.default.isStatement);if(!n)return;const s=n.parent;if(!o.default.isCaseClause(s))return;const c=s.parent;!0===o.default.FindAllReferences.Core.eachSymbolReferenceInFile(t,e.typeChecker,t.getSourceFile(),(e=>{if(!(0,a.isAncestorOf)(s,e))return!0}),c)&&((0,i.getOrSetDefault)(e.hoistsByStatement,n.parent,(()=>new Array)).push(t),e.isHoisted.set(r,!0))}},6073:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanModuleName=void 0,t.cleanModuleName=function(e){return e.replace(/\W/g,"_")}},6453:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.convertToIndexableExpression=void 0;const i=n(r(9861));t.convertToIndexableExpression=function(e){return i.default.isIndexableExpression(e)?e:i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:e})}},3262:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createBinaryFromOperator=void 0;const i=n(r(9861)),a=r(2287),o=r(2036),s=r(1915),c=r(6837),l=n(r(5423)),u=new Map([[l.default.SyntaxKind.LessThanToken,"<"],[l.default.SyntaxKind.GreaterThanToken,">"],[l.default.SyntaxKind.LessThanEqualsToken,"<="],[l.default.SyntaxKind.GreaterThanEqualsToken,">="],[l.default.SyntaxKind.EqualsEqualsEqualsToken,"=="],[l.default.SyntaxKind.ExclamationEqualsEqualsToken,"~="],[l.default.SyntaxKind.MinusToken,"-"],[l.default.SyntaxKind.AsteriskToken,"*"],[l.default.SyntaxKind.SlashToken,"/"],[l.default.SyntaxKind.AsteriskAsteriskToken,"^"],[l.default.SyntaxKind.PercentToken,"%"]]),d=new Map([[l.default.SyntaxKind.AmpersandToken,"band"],[l.default.SyntaxKind.BarToken,"bor"],[l.default.SyntaxKind.CaretToken,"bxor"],[l.default.SyntaxKind.LessThanLessThanToken,"lshift"],[l.default.SyntaxKind.GreaterThanGreaterThanGreaterThanToken,"rshift"],[l.default.SyntaxKind.GreaterThanGreaterThanToken,"arshift"],[l.default.SyntaxKind.AmpersandEqualsToken,"band"],[l.default.SyntaxKind.BarEqualsToken,"bor"],[l.default.SyntaxKind.CaretEqualsToken,"bxor"],[l.default.SyntaxKind.LessThanLessThanEqualsToken,"lshift"],[l.default.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken,"rshift"],[l.default.SyntaxKind.GreaterThanGreaterThanEqualsToken,"arshift"]]);t.createBinaryFromOperator=function(e,t,r,n,_,f,p){const m=u.get(_);if(void 0!==m)return i.default.binary(r,m,f);if(_===l.default.SyntaxKind.PlusToken||_===l.default.SyntaxKind.PlusEqualsToken)return function(e,t,r,n){const a=(0,s.isDefinitelyType)(t,s.isStringType),o=(0,s.isDefinitelyType)(n,s.isStringType);return a||o?i.default.binary(a?e:i.default.call(i.default.globals.tostring,[e]),"..",o?r:i.default.call(i.default.globals.tostring,[r])):i.default.binary(e,"+",r)}(r,n,f,p);const g=d.get(_);return void 0!==g?i.default.call(i.default.property(i.default.globals.bit32,g),[r,f]):_===l.default.SyntaxKind.CommaToken?(e.prereqList((0,c.wrapExpressionStatement)(r)),f):void(0,a.assert)(!1,`createBinaryFromOperator unknown operator: ${(0,o.getKindName)(_)}`)}},8446:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createGetService=void 0;const i=n(r(9861));t.createGetService=function(e){return i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:i.default.globals.game,name:"GetService",args:i.default.list.make(i.default.string(e))})}},6749:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createHoistDeclaration=void 0;const i=n(r(9861)),a=r(6848),o=r(837);t.createHoistDeclaration=function(e,t){const r=e.hoistsByStatement.get(t);if(r&&r.length>0)return r.forEach((t=>(0,o.validateIdentifier)(e,t))),i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.list.make(...r.map((t=>(0,a.transformIdentifierDefined)(e,t)))),right:void 0})}},3842:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createImportExpression=t.getImportParts=void 0;const i=n(r(9861)),a=r(1979),o=n(r(6470)),s=r(6258),c=r(7370),l=r(2287),u=r(4998),d=r(4502),_=r(8446),f=r(4160),p=r(4164),m=n(r(5423));function g(e,t){const r=a.RojoResolver.relative(e,t),n=new Array;let o=0;for(;r[o]===a.RbxPathParent;)n.push(s.PARENT_FIELD),o++;const c=[(0,f.propertyAccessExpressionChain)(i.default.globals.script,n)];for(;oe.capture((()=>(0,o.transformExpression)(e,t))))),n=(0,a.findLastIndex)(r,(e=>!i.default.list.isEmpty(e[1]))),l=new Array;for(let a=0;ae(t,r)));if(i.default.isMap(r))return i.default.list.some(r.fields,(r=>e(t,r.index)||e(t,r.value)));if(i.default.isMixedTable(r))return i.default.list.some(r.fields,(r=>i.default.isMapField(r)?e(t,r.index)||e(t,r.value):e(t,r)));if(n&&(n=(0,o.skipDownwards)(n),s.default.isIdentifier(n))){const e=t.typeChecker.getSymbolAtLocation(n);if(e&&!(0,a.isSymbolMutable)(t,e))return!1}return!0}},8966:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendsRoactComponent=void 0;const n=r(3506),i=r(9655),a=r(9525);t.extendsRoactComponent=function(e,t){if(e.services.roactSymbolManager){const r=(0,i.getExtendsNode)(t);if(r){const t=(0,a.getOriginalSymbolOfNode)(e.typeChecker,r.expression);if(t)return t===e.services.roactSymbolManager.getSymbolOrThrow(n.ROACT_SYMBOL_NAMES.Component)||t===e.services.roactSymbolManager.getSymbolOrThrow(n.ROACT_SYMBOL_NAMES.PureComponent)}}return!1}},3901:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAddIterableToArrayBuilder=void 0;const i=n(r(9861)),a=r(7370),o=r(2287),s=r(4502),c=r(6453),l=r(1915),u=r(2161),d=(e,t,r,n,a,o)=>{const s=i.default.list.make(),c=e.pushToVarIfNonId(t,"array");let l=i.default.unary("#",c);return o&&(l=e.pushToVar(l,(0,u.valueToIdStr)(c)+"Length")),i.default.list.push(s,i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.move,[c,i.default.number(1),l,i.default.binary(n,"+",i.default.number(a+1)),r])})),o&&i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:l})),s},_=(e,t,r,n,a)=>{const o=i.default.list.make();a>0&&i.default.list.push(o,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(a)}));const s=i.default.tempId("char");return i.default.list.push(o,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:i.default.call(i.default.globals.string.gmatch,[t,i.default.globals.utf8.charpattern]),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:n}),operator:"=",right:s}))})),o},f=(e,t,r,n,a)=>{const o=i.default.list.make();a>0&&i.default.list.push(o,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(a)}));const s=i.default.tempId("v");return i.default.list.push(o,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:t,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:n}),operator:"=",right:s}))})),o},p=(e,t,r,n,a)=>{const o=i.default.list.make();a>0&&i.default.list.push(o,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(a)}));const s=i.default.tempId("k"),c=i.default.tempId("v");return i.default.list.push(o,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s,c),expression:t,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:n}),operator:"=",right:i.default.array([s,c])}))})),o},m=(e,t,r,n,a)=>{const o=i.default.list.make();a>0&&i.default.list.push(o,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(a)}));const s=i.default.tempId("result");return i.default.list.push(o,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:t,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:n}),operator:"=",right:s}))})),o},g=(e,t,r,n,a)=>{const o=i.default.list.make();a>0&&i.default.list.push(o,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(a)}));const s=e.pushToVar(t,"iterFunc"),c=i.default.tempId("results");return i.default.list.push(o,i.default.create(i.default.SyntaxKind.WhileStatement,{condition:i.default.bool(!0),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:c,right:i.default.array([i.default.call(s)])}),i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(i.default.unary("#",c),"==",i.default.number(0)),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}),i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:n}),operator:"=",right:c}))})),o},y=(e,t,r,n,a)=>{const o=i.default.list.make();a>0&&i.default.list.push(o,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(a)}));const s=i.default.tempId("result");return i.default.list.push(o,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:i.default.property((0,c.convertToIndexableExpression)(t),"next"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.property(s,"done"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}),i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:n}),operator:"=",right:i.default.property(s,"value")}))})),o};t.getAddIterableToArrayBuilder=function(e,t,r){return(0,l.isDefinitelyType)(r,(0,l.isArrayType)(e))?d:(0,l.isDefinitelyType)(r,l.isStringType)?_:(0,l.isDefinitelyType)(r,(0,l.isSetType)(e))?f:(0,l.isDefinitelyType)(r,(0,l.isMapType)(e))?p:(0,l.isDefinitelyType)(r,(0,l.isIterableFunctionLuaTupleType)(e))?g:(0,l.isDefinitelyType)(r,(0,l.isIterableFunctionType)(e))?m:(0,l.isDefinitelyType)(r,(0,l.isGeneratorType)(e))?y:(0,l.isDefinitelyType)(r,(0,l.isIterableType)(e))?(s.DiagnosticService.addDiagnostic(a.errors.noIterableIteration(t)),()=>i.default.list.make()):r.isUnion()?(s.DiagnosticService.addDiagnostic(a.errors.noMacroUnion(t)),()=>i.default.list.make()):void(0,o.assert)(!1,`Iteration type not implemented: ${e.typeChecker.typeToString(r)}`)}},835:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getConstantValueLiteral=void 0;const i=n(r(9861));t.getConstantValueLiteral=function(e,t){const r=e.typeChecker.getConstantValue(t);if(void 0!==r)return"string"==typeof r?i.default.string(r):i.default.number(r)}},6117:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDeclaredVariables=void 0;const i=n(r(5423));function a(e,t){if(i.default.isIdentifier(e))t.push(e);else if(i.default.isObjectBindingPattern(e))for(const r of e.elements)a(r.name,t);else if(i.default.isArrayBindingPattern(e))for(const r of e.elements)i.default.isOmittedExpression(r)||a(r.name,t)}t.getDeclaredVariables=function(e){const t=new Array;if(i.default.isVariableDeclarationList(e))for(const r of e.declarations)a(r.name,t);else a(e.name,t);return t}},9655:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getExtendsNode=void 0;const i=n(r(5423));t.getExtendsNode=function(e){var t;for(const r of null!==(t=e.heritageClauses)&&void 0!==t?t:[])if(r.token===i.default.SyntaxKind.ExtendsKeyword)return r.types[0]}},2036:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getKindName=void 0;const i=n(r(5423));t.getKindName=function(e){return e===i.default.SyntaxKind.FirstAssignment?"EqualsToken":e===i.default.SyntaxKind.FirstCompoundAssignment?"PlusEqualsToken":e===i.default.SyntaxKind.LastReservedWord?"WithKeyword":e===i.default.SyntaxKind.FirstKeyword?"BreakKeyword":e===i.default.SyntaxKind.FirstFutureReservedWord?"ImplementsKeyword":e===i.default.SyntaxKind.LastFutureReservedWord?"YieldKeyword":e===i.default.SyntaxKind.FirstTypeNode?"TypePredicate":e===i.default.SyntaxKind.LastTypeNode?"ImportType":e===i.default.SyntaxKind.FirstPunctuation?"OpenBraceToken":e===i.default.SyntaxKind.FirstToken?"Unknown":e===i.default.SyntaxKind.FirstTriviaToken?"SingleLineCommentTrivia":e===i.default.SyntaxKind.LastTriviaToken?"ConflictMarkerTrivia":e===i.default.SyntaxKind.FirstLiteralToken?"NumericLiteral":e===i.default.SyntaxKind.FirstTemplateToken?"NoSubstitutionTemplateLiteral":e===i.default.SyntaxKind.LastTemplateToken?"TemplateTail":e===i.default.SyntaxKind.FirstBinaryOperator?"LessThanToken":e===i.default.SyntaxKind.LastBinaryOperator?"CaretEqualsToken":e===i.default.SyntaxKind.FirstStatement?"VariableStatement":e===i.default.SyntaxKind.LastStatement?"DebuggerStatement":e===i.default.SyntaxKind.FirstNode?"QualifiedName":e===i.default.SyntaxKind.FirstJSDocNode?"JSDocTypeExpression":e===i.default.SyntaxKind.FirstJSDocTagNode?"JSDocTag":e===i.default.SyntaxKind.LastJSDocTagNode?"JSDocPropertyTag":e===i.default.SyntaxKind.FirstContextualKeyword?"AbstractKeyword":e===i.default.SyntaxKind.LastContextualKeyword?"OfKeyword":i.default.SyntaxKind[e]}},9525:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getOriginalSymbolOfNode=void 0;const i=n(r(5423));t.getOriginalSymbolOfNode=function(e,t){const r=e.getSymbolAtLocation(t);return r?i.default.skipAlias(r,e):r}},4164:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSourceFileFromModuleSpecifier=void 0;const i=n(r(5423));t.getSourceFileFromModuleSpecifier=function(e,t){var r;const n=null!==(r=e.typeChecker.getSymbolAtLocation(t))&&void 0!==r?r:e.typeChecker.resolveExternalModuleName(t);if(n){const r=n.valueDeclaration;if(r&&i.default.isModuleDeclaration(r)&&i.default.isStringLiteralLike(r.name)){const n=t.getSourceFile(),a=i.default.getModeForUsageLocation(n,r.name),o=i.default.getResolvedModule(n,r.name.text,a);if(o)return e.program.getSourceFile(o.resolvedFileName)}if(r&&i.default.isSourceFile(r))return r}if(i.default.isStringLiteralLike(t)){const r=t.getSourceFile(),n=i.default.resolveModuleName(t.text,r.path,e.compilerOptions,i.default.sys);if(n.resolvedModule)return e.program.getSourceFile(n.resolvedModule.resolvedFileName)}}},1441:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getStatements=void 0;const i=n(r(5423));t.getStatements=function(e){return i.default.isBlock(e)?e.statements:[e]}},1871:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasMultipleDefinitions=void 0,t.hasMultipleDefinitions=function(e,t){var r;let n=0;for(const i of null!==(r=e.getDeclarations())&&void 0!==r?r:[])if(t(i)&&(n++,n>1))return!0;return!1}},965:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isBreakBlockedByTryStatement=t.isReturnBlockedByTryStatement=void 0;const i=n(r(5423));t.isReturnBlockedByTryStatement=function(e){const t=i.default.findAncestor(e,(e=>i.default.isTryStatement(e)||i.default.isFunctionLikeDeclaration(e)));return void 0!==t&&i.default.isTryStatement(t)},t.isBreakBlockedByTryStatement=function(e){const t=i.default.findAncestor(e,(e=>i.default.isTryStatement(e)||i.default.isIterationStatement(e,!1)||i.default.isSwitchStatement(e)));return void 0!==t&&i.default.isTryStatement(t)}},3968:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isInsideRoactComponent=void 0;const i=r(8966),a=r(6219),o=n(r(5423));t.isInsideRoactComponent=function(e,t){const r=(0,a.getAncestor)(t,o.default.isClassLike);return!!r&&(0,i.extendsRoactComponent)(e,r)}},833:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isMethod=t.isMethodFromType=void 0;const i=r(7370),a=r(2991),o=r(4502),s=r(6219),c=r(1915),l=n(r(5423));function u(e,t){if(l.default.isFunctionLike(t)){const r=function(e){const t=e[0];if(t){const e=t.name;if(l.default.isIdentifier(e)&&l.default.isThisIdentifier(e))return e}}(t.parameters);if(r)return!(e.getType(r).flags&l.default.TypeFlags.Void);if(l.default.isFunctionDeclaration(t))return!1;if(l.default.isMethodDeclaration(t)||l.default.isMethodSignature(t))return!0;if(l.default.isFunctionExpression(t)){const e=(0,s.skipUpwards)(t).parent;if(l.default.isPropertyAssignment(e)){const t=(0,s.skipUpwards)(e).parent;if(l.default.isObjectLiteralExpression(t))return!0}}return!1}return!1}function d(e,t,r){let n=!1;return(0,c.walkTypes)(r,(r=>{r.symbol&&(n||(n=(0,a.getOrSetDefault)(e.multiTransformState.isMethodCache,r.symbol,(()=>function(e,t,r){var n;let a=!1,s=!1;for(const t of r.getCallSignatures()){const r=null===(n=t.thisParameter)||void 0===n?void 0:n.valueDeclaration;r?e.getType(r).flags&l.default.TypeFlags.Void?s=!0:a=!0:t.declaration&&(u(e,t.declaration)?a=!0:s=!0)}return a&&s&&o.DiagnosticService.addDiagnostic(i.errors.noMixedTypeCall(t)),a}(e,t,r)))))})),n}t.isMethodFromType=d,t.isMethod=function(e,t){return d(e,t,e.getType(t))}},2824:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbolFromRobloxTypes=void 0;const i=n(r(6470)),a=r(6258),o=r(2420);t.isSymbolFromRobloxTypes=function(e,t){var r,n;const s=null===(n=null===(r=null==t?void 0:t.valueDeclaration)||void 0===r?void 0:r.getSourceFile())||void 0===n?void 0:n.fileName,c=i.default.join(e.data.nodeModulesPath,a.RBXTS_SCOPE,"types");return void 0!==s&&(0,o.isPathDescendantOf)(s,c)}},3527:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbolMutable=void 0;const i=r(2991),a=r(6219),o=n(r(5423));t.isSymbolMutable=function(e,t){return(0,i.getOrSetDefault)(e.multiTransformState.isDefinedAsLetCache,t,(()=>{if(t.valueDeclaration){if(o.default.isParameter(t.valueDeclaration))return!0;const e=(0,a.getAncestor)(t.valueDeclaration,o.default.isVariableDeclarationList);if(e)return!!(e.flags&o.default.NodeFlags.Let)}return!1}))}},1205:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbolOfValue=void 0;const i=n(r(5423));t.isSymbolOfValue=function(e){return!(!(e.flags&i.default.SymbolFlags.Value)||e.flags&i.default.SymbolFlags.ConstEnum)}},6409:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isUsedAsStatement=void 0;const i=r(6219),a=n(r(5423));t.isUsedAsStatement=function e(t){const r=(0,i.skipUpwards)(t),n=r.parent;return!!a.default.isExpressionStatement(n)||!(!a.default.isForStatement(n)||n.condition===r)||!(!a.default.isDeleteExpression(n)||!e(n))}},7011:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidMethodIndexWithoutCall=void 0;const i=r(6662),a=r(1915),o=n(r(5423));t.isValidMethodIndexWithoutCall=function(e,t){const{parent:r}=t;if(o.default.isBinaryExpression(r))return!0;if(o.default.isPrefixUnaryExpression(r))return!0;if(o.default.isCallExpression(r)){const t=e.typeChecker.getNonOptionalType(e.getType(r.expression)),n=(0,a.getFirstDefinedSymbol)(e,t);if(n){const t=e.services.macroManager.getCallMacro(n);if(t===i.CALL_MACROS.typeIs||t===i.CALL_MACROS.typeOf)return!0}}return!1}},8368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_ATTRIBUTE_NAME=t.CHANGE_ATTRIBUTE_NAME=t.REF_ATTRIBUTE_NAME=t.KEY_ATTRIBUTE_NAME=void 0,t.KEY_ATTRIBUTE_NAME="Key",t.REF_ATTRIBUTE_NAME="Ref",t.CHANGE_ATTRIBUTE_NAME="Change",t.EVENT_ATTRIBUTE_NAME="Event"},9693:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createRoactIndex=void 0;const i=n(r(9861)),a=r(4160);t.createRoactIndex=function(...e){return(0,a.propertyAccessExpressionChain)(i.default.id("Roact"),e)}},8223:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=void 0;const i=n(r(5423));t.getAttributes=function(e){return i.default.isJsxElement(e)?e.openingElement.attributes:e.attributes}},7472:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getKeyAttributeInitializer=void 0;const i=r(8368),a=r(8223),o=n(r(5423));t.getKeyAttributeInitializer=function(e){for(const t of(0,a.getAttributes)(e).properties)if(o.default.isJsxAttribute(t)&&t.name.text===i.KEY_ATTRIBUTE_NAME&&t.initializer){if(o.default.isStringLiteral(t.initializer))return t.initializer;if(o.default.isJsxExpression(t.initializer))return t.initializer.expression}}},9582:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.offset=void 0;const i=n(r(9861));function a(e){if(i.default.isNumberLiteral(e))return Number(e.value);if(i.default.isUnaryExpression(e)&&"-"===e.operator){const t=a(e.expression);if(void 0!==t)return-t}}t.offset=function(e,t){if(0===t)return e;const r=a(e);return void 0!==r?i.default.number(r+t):i.default.binary(e,t>0?"+":"-",i.default.number(Math.abs(t)))}},274:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.disableMixedTableInline=t.disableArrayInline=t.disableMapInline=t.assignToMixedTablePointer=t.assignToMapPointer=t.createMixedTablePointer=t.createArrayPointer=t.createMapPointer=void 0;const i=n(r(9861));t.createMapPointer=function(e){return{name:e,value:i.default.map()}},t.createArrayPointer=function(e){return{name:e,value:i.default.array()}},t.createMixedTablePointer=function(e){return{name:e,value:i.default.mixedTable()}},t.assignToMapPointer=function(e,t,r,n){i.default.isMap(t.value)?i.default.list.push(t.value.fields,i.default.create(i.default.SyntaxKind.MapField,{index:r,value:n})):e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t.value,index:r}),operator:"=",right:n}))},t.assignToMixedTablePointer=function(e,t,r,n){i.default.isMixedTable(t.value)?i.default.list.push(t.value.fields,i.default.create(i.default.SyntaxKind.MapField,{index:r,value:n})):e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t.value,index:r}),operator:"=",right:n}))},t.disableMapInline=function(e,t){i.default.isMap(t.value)&&(t.value=e.pushToVar(t.value,t.name))},t.disableArrayInline=function(e,t){i.default.isArray(t.value)&&(t.value=e.pushToVar(t.value,t.name))},t.disableMixedTableInline=function(e,t){i.default.isMixedTable(t.value)&&(t.value=e.pushToVar(t.value,t.name))}},6219:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getModuleAncestor=t.getAncestor=t.skipUpwards=t.skipDownwards=t.isAncestorOf=void 0;const i=n(r(5423));function a(e,t){let r=e;for(;r&&!t(r);)r=r.parent;return r}function o(e){return i.default.isSourceFile(e)||i.default.isModuleDeclaration(e)}t.isAncestorOf=function(e,t){do{if(e===t)return!0;t=t.parent}while(t);return!1},t.skipDownwards=function(e){for(;i.default.isNonNullExpression(e)||i.default.isParenthesizedExpression(e)||i.default.isAsExpression(e)||i.default.isTypeAssertionExpression(e)||i.default.isSatisfiesExpression(e);)e=e.expression;return e},t.skipUpwards=function(e){let t=e.parent;for(;t&&(i.default.isNonNullExpression(t)||i.default.isParenthesizedExpression(t)||i.default.isAsExpression(t)||i.default.isTypeAssertionExpression(t)||i.default.isSatisfiesExpression(t));)t=(e=t).parent;return e},t.getAncestor=a,t.getModuleAncestor=function(e){return a(e,o)}},1915:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeArguments=t.getFirstDefinedSymbol=t.getFirstConstructSymbol=t.walkTypes=t.isRoactElementType=t.isEmptyStringType=t.isUndefinedType=t.isObjectType=t.isIterableType=t.isIterableFunctionLuaTupleType=t.isLuaTupleType=t.isIterableFunctionType=t.isGeneratorType=t.isMapType=t.isSetType=t.isArrayType=t.isStringType=t.isNaNType=t.isNumberLiteralType=t.isNumberType=t.isBooleanLiteralType=t.isBooleanType=t.isAnyType=t.isDefinedType=t.isPossiblyType=t.isDefinitelyType=void 0;const i=r(3115),a=r(1677),o=r(226),s=n(r(5423));function c(e,t){var r;for(const n of null!==(r=t.getBaseTypes())&&void 0!==r?r:[])e.push(n),n.isClassOrInterface()&&c(e,n)}function l(e){const t=new Array;return c(t,e),t}function u(e,t){return e.isUnion()?e.types.every((e=>u(e,t))):e.isIntersection()?e.types.some((e=>u(e,t))):!(!e.isClassOrInterface()||!l(e).some((e=>u(e,t))))||t.some((t=>t(e)))}function d(e,t){return e.isUnionOrIntersection()?e.types.some((e=>d(e,t))):!(!e.isClassOrInterface()||!l(e).some((e=>d(e,t))))||!!(e.flags&(s.default.TypeFlags.TypeVariable|s.default.TypeFlags.AnyOrUnknown))||(_(e)?1!==t.length||t[0]!==v:t.some((t=>t(e))))}function _(e){return e.flags===s.default.TypeFlags.Object&&0===e.getProperties().length&&0===e.getCallSignatures().length&&0===e.getConstructSignatures().length&&void 0===e.getNumberIndexType()&&void 0===e.getStringIndexType()}function f(e){return!!(e.flags&(s.default.TypeFlags.Boolean|s.default.TypeFlags.BooleanLiteral))}function p(e){return!!(e.flags&(s.default.TypeFlags.Number|s.default.TypeFlags.NumberLike|s.default.TypeFlags.NumberLiteral))}function m(e){return!!(e.flags&(s.default.TypeFlags.String|s.default.TypeFlags.StringLike|s.default.TypeFlags.StringLiteral))}function g(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.IterableFunction)}function y(e){return t=>t.getProperty(a.NOMINAL_LUA_TUPLE_NAME)===e.services.macroManager.getSymbolOrThrow(a.NOMINAL_LUA_TUPLE_NAME)}function v(e){return!!(e.flags&(s.default.TypeFlags.Undefined|s.default.TypeFlags.Void))}function h(e,t){var r;return null!==(r=e.typeChecker.getTypeArguments(t))&&void 0!==r?r:[]}t.isDefinitelyType=function(e,...t){var r;return u(null!==(r=e.getConstraint())&&void 0!==r?r:e,t)},t.isPossiblyType=function(e,...t){var r;return d(null!==(r=e.getConstraint())&&void 0!==r?r:e,t)},t.isDefinedType=_,t.isAnyType=function(e){return t=>t===e.typeChecker.getAnyType()},t.isBooleanType=f,t.isBooleanLiteralType=function(e,t){return r=>r.flags&s.default.TypeFlags.BooleanLiteral?r===(t?e.typeChecker.getTrueType():e.typeChecker.getFalseType()):f(r)},t.isNumberType=p,t.isNumberLiteralType=function(e){return t=>t.isNumberLiteral()?t.value===e:p(t)},t.isNaNType=function(e){return p(e)&&!e.isNumberLiteral()},t.isStringType=m,t.isArrayType=function(e){return t=>e.typeChecker.isTupleType(t)||e.typeChecker.isArrayLikeType(t)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadonlyArray)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Array)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadVoxelsArray)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.TemplateStringsArray)},t.isSetType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Set)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadonlySet)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.WeakSet)},t.isMapType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Map)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadonlyMap)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.WeakMap)},t.isGeneratorType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Generator)},t.isIterableFunctionType=g,t.isLuaTupleType=y,t.isIterableFunctionLuaTupleType=function(e){return t=>{if(g(e)(t)){const r=h(e,t)[0];return void 0!==r&&y(e)(r)}return!1}},t.isIterableType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Iterable)},t.isObjectType=function(e){return!!(e.flags&s.default.TypeFlags.Object)},t.isUndefinedType=v,t.isEmptyStringType=function(e){return e.isStringLiteral()?""===e.value:(0,o.isTemplateLiteralType)(e)?0===e.texts.length||e.texts.every((e=>0===e.length)):m(e)},t.isRoactElementType=function(e){return t=>{var r;const n=null===(r=e.services.roactSymbolManager)||void 0===r?void 0:r.getSymbolOrThrow(i.ROACT_SYMBOL_NAMES.Element);return void 0!==n&&t.symbol===n}},t.walkTypes=function e(t,r){if(t.isUnionOrIntersection())for(const n of t.types)e(n,r);else{const n=t.getConstraint();n&&n!==t?e(n,r):r(t)}},t.getFirstConstructSymbol=function(e,t){const r=e.getType(t);if(r.symbol){const e=r.symbol.getDeclarations();if(e)for(const t of e)if(s.default.isInterfaceDeclaration(t))for(const e of t.members)if(s.default.isConstructSignatureDeclaration(e))return e.symbol}},t.getFirstDefinedSymbol=function(e,t){if(!t.isUnionOrIntersection())return t.symbol;for(const r of t.types)if(r.symbol&&!e.typeChecker.isUndefinedSymbol(r.symbol))return r.symbol},t.getTypeArguments=h},837:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateIdentifier=void 0;const i=n(r(9861)),a=r(7370),o=r(4502);t.validateIdentifier=function(e,t){i.default.isValidIdentifier(t.text)?i.default.isReservedIdentifier(t.text)&&o.DiagnosticService.addDiagnostic(a.errors.noReservedIdentifier(t)):o.DiagnosticService.addDiagnostic(a.errors.noInvalidIdentifier(t))}},4735:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMethodAssignment=void 0;const i=r(7370),a=r(4502),o=r(833),s=r(1915),c=n(r(5423));function l(e){let t=!1;return(0,s.walkTypes)(e,(e=>{t||(t=e.getCallSignatures().length>0)})),t}function u(e,t,r,n){if(l(r)&&l(n)){const s=(0,o.isMethodFromType)(e,t,n);(0,o.isMethodFromType)(e,t,r)!==s&&(s?a.DiagnosticService.addDiagnostic(i.errors.expectedMethodGotFunction(t)):a.DiagnosticService.addDiagnostic(i.errors.expectedFunctionGotMethod(t)))}}function d(e,t,r){const n=c.default.getPropertyNameForPropertyNameNode(t.name);if(!n)return;const i=e.getType(t),a=e.typeChecker.getTypeOfPropertyOfType(e.getType(r),n);a&&u(e,t,i,a)}t.validateMethodAssignment=function(e,t){if(c.default.isClassElement(t)&&c.default.isClassLike(t.parent)&&t.name)for(const r of c.default.getAllSuperTypeNodes(t.parent))d(e,t,r);else c.default.isObjectLiteralElementLike(t)&&(c.default.isSpreadAssignment(t)?c.default.isObjectLiteralExpression(t.expression)||function(e,t){const r=e.getType(t.expression),n=e.typeChecker.getContextualType(t.expression);if(n)for(const i of r.getProperties()){const a=e.typeChecker.getTypeOfPropertyOfType(r,i.name),o=e.typeChecker.getTypeOfPropertyOfType(n,i.name);a&&o&&u(e,t,a,o)}}(e,t):function(e,t){const r=e.getType(t),n=e.typeChecker.getContextualTypeForObjectLiteralElement(t);n&&n!==r&&u(e,t,r,n)}(e,t))}},3972:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateNotAnyType=void 0;const i=r(7370),a=r(4502),o=r(9525),s=r(6219),c=r(1915),l=n(r(5423));t.validateNotAnyType=function(e,t){l.default.isSpreadElement(t)&&(t=(0,s.skipDownwards)(t.expression));let r=e.getType(t);if((0,c.isDefinitelyType)(r,(0,c.isArrayType)(e))){const t=e.typeChecker.getIndexTypeOfType(r,l.default.IndexKind.Number);t&&(r=t)}if((0,c.isDefinitelyType)(r,(0,c.isAnyType)(e))){const r=(0,o.getOriginalSymbolOfNode)(e.typeChecker,t);r&&!e.multiTransformState.isReportedByNoAnyCache.has(r)&&(e.multiTransformState.isReportedByNoAnyCache.add(r),a.DiagnosticService.addDiagnostic(i.errors.noAny(t)))}}},2161:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.valueToIdStr=void 0;const i=n(r(9861));function a(e){return i.default.isIdentifier(e)||i.default.isPropertyAccessExpression(e)?e.name:i.default.isCallExpression(e)&&i.default.isPropertyAccessExpression(e.expression)&&"new"===e.expression.name?a(e.expression.expression):void 0}t.valueToIdStr=function(e){const t=a(e);return void 0!==t&&i.default.isValidIdentifier(t)?(r=t).charAt(0).toLowerCase()+r.slice(1):"";var r}},6837:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapExpressionStatement=void 0;const i=n(r(9861));t.wrapExpressionStatement=function(e){return i.default.isTemporaryIdentifier(e)||i.default.isNone(e)?i.default.list.make():i.default.isCall(e)?i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:e})):i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.tempId(),right:e}))}},1511:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapReturnIfLuaTuple=void 0;const i=n(r(9861)),a=r(9254),o=r(6219),s=r(1915),c=n(r(5423));t.wrapReturnIfLuaTuple=function(e,t,r){return(0,s.isLuaTupleType)(e)(e.getType(t))&&function(e,t,r){if(!i.default.isCall(r))return!0;const n=(0,o.skipUpwards)(t),s=n.parent;return!(c.default.isExpressionStatement(s)||c.default.isForStatement(s)&&s.condition!==n||c.default.isVariableDeclaration(s)&&c.default.isArrayBindingPattern(s.name)&&!(0,a.arrayBindingPatternContainsHoists)(e,s.name)||c.default.isAssignmentExpression(s)&&c.default.isArrayLiteralExpression(s.left)||c.default.isElementAccessExpression(s)||c.default.isReturnStatement(s)||c.default.isVoidExpression(s))}(e,t,r)?i.default.array([r]):r}},6442:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapStatementsAsGenerator=void 0;const i=n(r(9861));t.wrapStatementsAsGenerator=function(e,t,r){return i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.call(e.TS(t,"generator"),[i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:!1,parameters:i.default.list.make(),statements:r})])}))}},5423:function(e,t,r){"use strict";var n,i="/index.js",a=r(4155),o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0;for(var r=0,n=e;r>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function y(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.getIterator=function(t){if(t){if(k(t))return f(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r=0;n--){var i=e[n];if(t(i,n))return i}},e.findIndex=function(e,t,r){if(void 0===e)return-1;for(var n=null!=r?r:0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n100&&r>t.length>>1){var i=t.length-r;t.copyWithin(0,r),t.length=i,r=0}return e},isEmpty:n}},e.createSet=function(r,n){var i=new e.Map,a=0;function o(){var e,t=i.values();return{next:function(){for(;;)if(e){if(!(r=e.next()).done)return{value:r.value};e=void 0}else{var r;if((r=t.next()).done)return{value:void 0,done:!0};if(!k(r.value))return{value:r.value};e=f(r.value)}}}}return{has:function(e){var t=r(e);if(!i.has(t))return!1;var a=i.get(t);if(!k(a))return n(a,e);for(var o=0,s=a;ot?1:0}function j(e,t){return O(e,t)}e.toFileNameLowerCase=I,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n="".concat(typeof e,":").concat(e),i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o0?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 z(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,d=1;dr)return;var p=n;n=i,i=p}var m=n[t.length];return m>r?void 0:m}function U(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function V(e,t){for(var r=t;r=r.length+n.length&&H(t,r)&&U(t,n)}function G(e,t,r,n){for(var i=0,a=e[n];i0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;ri&&(i=c.prefix.length,n=s)}return n},e.startsWith=H,e.removePrefix=function(e,t){return H(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=A),H(r(e),r(t))?e.substring(t.length):void 0},e.isPatternMatch=$,e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(_||(_={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.enableDeprecationWarnings=!0,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var u={};function d(e){return a>=e}function _(t,n){return!!d(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function f(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||f),r}function p(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),f(t,n||p))}function m(e,t,r){null==e&&f(t,r||m)}function g(e,t,r){for(var n=0,i=e;n0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a=[],o=t,s=0,c=i;st)break;0!==u&&u&t&&(a.push(d),o&=~u)}if(0===o)return a.join("|")}else for(var _=0,f=i;_n)for(var i=0,o=e.getOwnKeys(u);i=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=d,r.fail=f,r.failBadSyntaxKind=function e(t,r,n){return f("".concat(r||"Unexpected node.","\r\nNode ").concat(b(t.kind)," was unexpected."),n||e)},r.assert=p,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";f("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&f("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&f("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t= ").concat(r),n||e)},r.assertIsDefined=m,r.checkDefined=function e(t,r,n){return m(t,r,n||e),t},r.assertEachIsDefined=g,r.checkEachDefined=function e(t,r,n){return g(t,r,n||e),t},r.assertNever=y,r.assertEachNode=function t(r,n,i,a){_(1,"assertEachNode")&&p(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '".concat(v(n),"'.")}),a||t)},r.assertNode=function e(t,r,n,i){_(1,"assertNode")&&p(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node ".concat(b(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")}),i||e)},r.assertNotNode=function e(t,r,n,i){_(1,"assertNotNode")&&p(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node ".concat(b(t.kind)," should not have passed test '").concat(v(r),"'.")}),i||e)},r.assertOptionalNode=function e(t,r,n,i){_(1,"assertOptionalNode")&&p(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node ".concat(b(null==t?void 0:t.kind)," did not pass test '").concat(v(r),"'.")}),i||e)},r.assertOptionalToken=function e(t,r,n,i){_(1,"assertOptionalToken")&&p(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node ".concat(b(null==t?void 0:t.kind)," was not a '").concat(b(r),"' token.")}),i||e)},r.assertMissingNode=function e(t,r,n){_(1,"assertMissingNode")&&p(void 0===t,r||"Unexpected node.",(function(){return"Node ".concat(b(t.kind)," was unexpected'.")}),n||e)},r.type=function(e){},r.getFunctionName=v,r.formatSymbol=function(t){return"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(E(t.flags),"; declarations: ").concat(e.map(t.declarations,(function(e){return b(e.kind)}))," }")},r.formatEnum=h;var x=new e.Map;function b(t){return h(t,e.SyntaxKind,!1)}function D(t){return h(t,e.NodeFlags,!0)}function S(t){return h(t,e.ModifierFlags,!0)}function T(t){return h(t,e.TransformFlags,!0)}function C(t){return h(t,e.EmitFlags,!0)}function E(t){return h(t,e.SymbolFlags,!0)}function k(t){return h(t,e.TypeFlags,!0)}function N(t){return h(t,e.SignatureFlags,!0)}function A(t){return h(t,e.ObjectFlags,!0)}function P(t){return h(t,e.FlowFlags,!0)}r.formatSyntaxKind=b,r.formatSnippetKind=function(t){return h(t,e.SnippetKind,!1)},r.formatNodeFlags=D,r.formatModifierFlags=S,r.formatTransformFlags=T,r.formatEmitFlags=C,r.formatSymbolFlags=E,r.formatTypeFlags=k,r.formatSignatureFlags=N,r.formatObjectFlags=A,r.formatFlowFlags=P,r.formatRelationComparisonResult=function(t){return h(t,e.RelationComparisonResult,!0)},r.formatCheckMode=function(t){return h(t,e.CheckMode,!0)},r.formatSignatureCheckMode=function(t){return h(t,e.SignatureCheckMode,!0)},r.formatTypeFacts=function(t){return h(t,e.TypeFacts,!0)};var F,w,I,M=!1;function O(e){return function(){if(j(),!F)throw new Error("Debugging helpers could not be loaded.");return F}().formatControlFlowGraph(e)}function L(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(P(t),")"):"")}},__debugFlowFlags:{get:function(){return h(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return O(this)}}})}function R(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function j(){if(!M){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(E(r),")"):"")}},__debugFlags:{get:function(){return E(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(A(r),")"):"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?A(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return N(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n=0;return _?function(e,t,r,n){var i=B(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,c,d,n.message):f?function(e,t,n,i){var a=!1;return function(){r.enableDeprecationWarnings&&!a&&(l.warn(B(e,!1,t,n,i)),a=!0)}}(t,c,d,n.message):e.noop}r.printControlFlowGraph=function(e){return console.log(O(e))},r.formatControlFlowGraph=O,r.attachFlowNodeDebugInfo=function(e){M&&("function"==typeof Object.setPrototypeOf?(w||L(w=Object.create(Object.prototype)),Object.setPrototypeOf(e,w)):L(e))},r.attachNodeArrayDebugInfo=function(e){M&&("function"==typeof Object.setPrototypeOf?(I||R(I=Object.create(Array.prototype)),Object.setPrototypeOf(e,I)):R(e))},r.enableDebugInfo=j,r.createDeprecation=J,r.deprecate=function(e,t){var r;return function(e,t){return function(){return e(),t.apply(this,arguments)}}(J(null!==(r=null==t?void 0:t.name)&&void 0!==r?r:v(e),t),e)},r.formatVariance=function(e){var t=7&e,r=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?r+=" (unmeasurable)":16&e&&(r+=" (unreliable)"),r};var K=function(){function t(){}return t.prototype.__debugToString=function(){var t;switch(this.kind){case 3:return(null===(t=this.debugInfo)||void 0===t?void 0:t.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return e.zipWith(this.sources,this.targets||e.map(this.sources,(function(){return"any"})),(function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat("string"==typeof t?t:t.__debugTypeToString())})).join(", ");case 2:return e.zipWith(this.sources,this.targets,(function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat(t().__debugTypeToString())})).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "),"\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));default:return y(this)}},t}();r.DebugTypeMapper=K,r.attachDebugPrototypeIfDebug=function(e){return r.isDebugging?Object.setPrototypeOf(e,K.prototype):e}}(e.Debug||(e.Debug={}))}(_||(_={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,i=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^[a-z0-9-]+$/i,o=/^(0|[1-9]\d*)$/,s=function(){function t(t,r,i,o,s){if(void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=""),void 0===s&&(s=""),"string"==typeof t){var l=e.Debug.checkDefined(c(t),"Invalid version");t=l.major,r=l.minor,i=l.patch,o=l.prerelease,s=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(r>=0,"Invalid argument: minor"),e.Debug.assert(i>=0,"Invalid argument: patch");var u=o?e.isArray(o)?o:o.split("."):e.emptyArray,d=s?e.isArray(s)?s:s.split("."):e.emptyArray;e.Debug.assert(e.every(u,(function(e){return n.test(e)})),"Invalid argument: prerelease"),e.Debug.assert(e.every(d,(function(e){return a.test(e)})),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=u,this.build=d}return t.tryParse=function(e){var r=c(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),i=0;i|>=|=)?\s*([a-z0-9-+.*]+)$/i;function m(t){for(var r=[],n=0,i=e.trimString(t).split(u);n=",n.version)),h(i.major)||r.push(h(i.minor)?x("<",i.version.increment("major")):h(i.patch)?x("<",i.version.increment("minor")):x("<=",i.version)),!0)}function v(e,t,r){var n=g(t);if(!n)return!1;var i=n.version,a=n.major,o=n.minor,c=n.patch;if(h(a))"<"!==e&&">"!==e||r.push(x("<",s.zero));else switch(e){case"~":r.push(x(">=",i)),r.push(x("<",i.increment(h(o)?"major":"minor")));break;case"^":r.push(x(">=",i)),r.push(x("<",i.increment(i.major>0||h(o)?"major":i.minor>0||h(c)?"minor":"patch")));break;case"<":case">=":r.push(h(o)||h(c)?x(e,i.with({prerelease:"0"})):x(e,i));break;case"<=":case">":r.push(h(o)?x("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):h(c)?x("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):x(e,i));break;case"=":case void 0:h(o)||h(c)?(r.push(x(">=",i.with({prerelease:"0"}))),r.push(x("<",i.increment(h(o)?"major":"minor").with({prerelease:"0"})))):r.push(x("=",i));break;default:return!1}return!0}function h(e){return"*"===e||"x"===e||"X"===e}function x(e,t){return{operator:e,operand:t}}function b(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function S(t){return e.map(t,T).join(" ")}function T(e){return"".concat(e.operator).concat(e.operand)}}(_||(_={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}var n=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(void 0!==a&&a.nextTick&&!a.browser)try{var n,i=r(651),o=i.performance,s=i.PerformanceObserver;if(t(o,s)){n=o;var c=new e.Version(a.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(c)&&(n={get timeOrigin(){return o.timeOrigin},now:function(){return o.now()},mark:function(e){return o.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",o.mark(r)),o.measure(e,t,r),"__performance.measure-fix__"===r&&o.clearMarks("__performance.measure-fix__")},clearMarks:function(e){return o.clearMarks(e)},clearMeasures:function(e){return o.clearMeasures(e)}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:s}}}catch(e){}}(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=i?function(){return i.now()}:Date.now?Date.now:function(){return+new Date}}(_||(_={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),d(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function d(t,r,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),_=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,f=l.get(t)||0;l.set(t,f+(d-_)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=d,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.forEach((function(t,r){return e(r,t)}))},t.forEachMark=function(e){s.forEach((function(t,r){return e(r)}))},t.clearMeasures=function(e){void 0!==e?l.delete(e):l.clear(),null==n||n.clearMeasures(e)},t.clearMarks=function(e){void 0!==e?(c.delete(e),s.delete(e)):(c.clear(),s.clear()),null==n||n.clearMarks(e)},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(_||(_={})),function(e){var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var o=null!==(t=a.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r(3411)(o)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(_||(_={})),function(e){var t;!function(t){var n,i,o,c,l=0,u=0,d=[],_=[];t.startTracing=function(c,f,p){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=r(651)}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=c,d.length=0,void 0===o&&(o=e.combinePaths(f,"legend.json")),n.existsSync(f)||n.mkdirSync(f,{recursive:!0});var m="build"===i?".".concat(a.pid,"-").concat(++l):"server"===i?".".concat(a.pid):"",g=e.combinePaths(f,"trace".concat(m,".json")),y=e.combinePaths(f,"types".concat(m,".json"));_.push({configFilePath:p,tracePath:g,typesPath:y}),u=n.openSync(g,"w"),e.tracing=t;var v={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(u,"[\n"+[s({name:"process_name",args:{name:"tsc"}},v),s({name:"thread_name",args:{name:"Main"}},v),s(s({name:"TracingStartedInBrowser"},v),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!d.length==("server"!==i)),n.writeSync(u,"\n]\n"),n.closeSync(u),e.tracing=void 0,d.length?function(t){var r,i,a,o,c,l,u,d,f,p,m,y,v,h,x,b,D,S,T,C,E,k;e.performance.mark("beginDumpTypes");var N=_[_.length-1].typesPath,A=n.openSync(N,"w"),P=new e.Map;n.writeSync(A,"[");for(var F=t.length,w=0;w0),p(f.length-1,1e3*e.timestamp(),t),f.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=f.length-1;r>=0;r--)p(r,t);f.length=0},t.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(_))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(_||(_={})),function(e){var t,r,n,i,a,o,s,c,l;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AccessorKeyword=127]="AccessorKeyword",l[l.AsKeyword=128]="AsKeyword",l[l.AssertsKeyword=129]="AssertsKeyword",l[l.AssertKeyword=130]="AssertKeyword",l[l.AnyKeyword=131]="AnyKeyword",l[l.AsyncKeyword=132]="AsyncKeyword",l[l.AwaitKeyword=133]="AwaitKeyword",l[l.BooleanKeyword=134]="BooleanKeyword",l[l.ConstructorKeyword=135]="ConstructorKeyword",l[l.DeclareKeyword=136]="DeclareKeyword",l[l.GetKeyword=137]="GetKeyword",l[l.InferKeyword=138]="InferKeyword",l[l.IntrinsicKeyword=139]="IntrinsicKeyword",l[l.IsKeyword=140]="IsKeyword",l[l.KeyOfKeyword=141]="KeyOfKeyword",l[l.ModuleKeyword=142]="ModuleKeyword",l[l.NamespaceKeyword=143]="NamespaceKeyword",l[l.NeverKeyword=144]="NeverKeyword",l[l.OutKeyword=145]="OutKeyword",l[l.ReadonlyKeyword=146]="ReadonlyKeyword",l[l.RequireKeyword=147]="RequireKeyword",l[l.NumberKeyword=148]="NumberKeyword",l[l.ObjectKeyword=149]="ObjectKeyword",l[l.SatisfiesKeyword=150]="SatisfiesKeyword",l[l.SetKeyword=151]="SetKeyword",l[l.StringKeyword=152]="StringKeyword",l[l.SymbolKeyword=153]="SymbolKeyword",l[l.TypeKeyword=154]="TypeKeyword",l[l.UndefinedKeyword=155]="UndefinedKeyword",l[l.UniqueKeyword=156]="UniqueKeyword",l[l.UnknownKeyword=157]="UnknownKeyword",l[l.FromKeyword=158]="FromKeyword",l[l.GlobalKeyword=159]="GlobalKeyword",l[l.BigIntKeyword=160]="BigIntKeyword",l[l.OverrideKeyword=161]="OverrideKeyword",l[l.OfKeyword=162]="OfKeyword",l[l.QualifiedName=163]="QualifiedName",l[l.ComputedPropertyName=164]="ComputedPropertyName",l[l.TypeParameter=165]="TypeParameter",l[l.Parameter=166]="Parameter",l[l.Decorator=167]="Decorator",l[l.PropertySignature=168]="PropertySignature",l[l.PropertyDeclaration=169]="PropertyDeclaration",l[l.MethodSignature=170]="MethodSignature",l[l.MethodDeclaration=171]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",l[l.Constructor=173]="Constructor",l[l.GetAccessor=174]="GetAccessor",l[l.SetAccessor=175]="SetAccessor",l[l.CallSignature=176]="CallSignature",l[l.ConstructSignature=177]="ConstructSignature",l[l.IndexSignature=178]="IndexSignature",l[l.TypePredicate=179]="TypePredicate",l[l.TypeReference=180]="TypeReference",l[l.FunctionType=181]="FunctionType",l[l.ConstructorType=182]="ConstructorType",l[l.TypeQuery=183]="TypeQuery",l[l.TypeLiteral=184]="TypeLiteral",l[l.ArrayType=185]="ArrayType",l[l.TupleType=186]="TupleType",l[l.OptionalType=187]="OptionalType",l[l.RestType=188]="RestType",l[l.UnionType=189]="UnionType",l[l.IntersectionType=190]="IntersectionType",l[l.ConditionalType=191]="ConditionalType",l[l.InferType=192]="InferType",l[l.ParenthesizedType=193]="ParenthesizedType",l[l.ThisType=194]="ThisType",l[l.TypeOperator=195]="TypeOperator",l[l.IndexedAccessType=196]="IndexedAccessType",l[l.MappedType=197]="MappedType",l[l.LiteralType=198]="LiteralType",l[l.NamedTupleMember=199]="NamedTupleMember",l[l.TemplateLiteralType=200]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",l[l.ImportType=202]="ImportType",l[l.ObjectBindingPattern=203]="ObjectBindingPattern",l[l.ArrayBindingPattern=204]="ArrayBindingPattern",l[l.BindingElement=205]="BindingElement",l[l.ArrayLiteralExpression=206]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=207]="ObjectLiteralExpression",l[l.PropertyAccessExpression=208]="PropertyAccessExpression",l[l.ElementAccessExpression=209]="ElementAccessExpression",l[l.CallExpression=210]="CallExpression",l[l.NewExpression=211]="NewExpression",l[l.TaggedTemplateExpression=212]="TaggedTemplateExpression",l[l.TypeAssertionExpression=213]="TypeAssertionExpression",l[l.ParenthesizedExpression=214]="ParenthesizedExpression",l[l.FunctionExpression=215]="FunctionExpression",l[l.ArrowFunction=216]="ArrowFunction",l[l.DeleteExpression=217]="DeleteExpression",l[l.TypeOfExpression=218]="TypeOfExpression",l[l.VoidExpression=219]="VoidExpression",l[l.AwaitExpression=220]="AwaitExpression",l[l.PrefixUnaryExpression=221]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=222]="PostfixUnaryExpression",l[l.BinaryExpression=223]="BinaryExpression",l[l.ConditionalExpression=224]="ConditionalExpression",l[l.TemplateExpression=225]="TemplateExpression",l[l.YieldExpression=226]="YieldExpression",l[l.SpreadElement=227]="SpreadElement",l[l.ClassExpression=228]="ClassExpression",l[l.OmittedExpression=229]="OmittedExpression",l[l.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",l[l.AsExpression=231]="AsExpression",l[l.NonNullExpression=232]="NonNullExpression",l[l.MetaProperty=233]="MetaProperty",l[l.SyntheticExpression=234]="SyntheticExpression",l[l.SatisfiesExpression=235]="SatisfiesExpression",l[l.TemplateSpan=236]="TemplateSpan",l[l.SemicolonClassElement=237]="SemicolonClassElement",l[l.Block=238]="Block",l[l.EmptyStatement=239]="EmptyStatement",l[l.VariableStatement=240]="VariableStatement",l[l.ExpressionStatement=241]="ExpressionStatement",l[l.IfStatement=242]="IfStatement",l[l.DoStatement=243]="DoStatement",l[l.WhileStatement=244]="WhileStatement",l[l.ForStatement=245]="ForStatement",l[l.ForInStatement=246]="ForInStatement",l[l.ForOfStatement=247]="ForOfStatement",l[l.ContinueStatement=248]="ContinueStatement",l[l.BreakStatement=249]="BreakStatement",l[l.ReturnStatement=250]="ReturnStatement",l[l.WithStatement=251]="WithStatement",l[l.SwitchStatement=252]="SwitchStatement",l[l.LabeledStatement=253]="LabeledStatement",l[l.ThrowStatement=254]="ThrowStatement",l[l.TryStatement=255]="TryStatement",l[l.DebuggerStatement=256]="DebuggerStatement",l[l.VariableDeclaration=257]="VariableDeclaration",l[l.VariableDeclarationList=258]="VariableDeclarationList",l[l.FunctionDeclaration=259]="FunctionDeclaration",l[l.ClassDeclaration=260]="ClassDeclaration",l[l.InterfaceDeclaration=261]="InterfaceDeclaration",l[l.TypeAliasDeclaration=262]="TypeAliasDeclaration",l[l.EnumDeclaration=263]="EnumDeclaration",l[l.ModuleDeclaration=264]="ModuleDeclaration",l[l.ModuleBlock=265]="ModuleBlock",l[l.CaseBlock=266]="CaseBlock",l[l.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",l[l.ImportDeclaration=269]="ImportDeclaration",l[l.ImportClause=270]="ImportClause",l[l.NamespaceImport=271]="NamespaceImport",l[l.NamedImports=272]="NamedImports",l[l.ImportSpecifier=273]="ImportSpecifier",l[l.ExportAssignment=274]="ExportAssignment",l[l.ExportDeclaration=275]="ExportDeclaration",l[l.NamedExports=276]="NamedExports",l[l.NamespaceExport=277]="NamespaceExport",l[l.ExportSpecifier=278]="ExportSpecifier",l[l.MissingDeclaration=279]="MissingDeclaration",l[l.ExternalModuleReference=280]="ExternalModuleReference",l[l.JsxElement=281]="JsxElement",l[l.JsxSelfClosingElement=282]="JsxSelfClosingElement",l[l.JsxOpeningElement=283]="JsxOpeningElement",l[l.JsxClosingElement=284]="JsxClosingElement",l[l.JsxFragment=285]="JsxFragment",l[l.JsxOpeningFragment=286]="JsxOpeningFragment",l[l.JsxClosingFragment=287]="JsxClosingFragment",l[l.JsxAttribute=288]="JsxAttribute",l[l.JsxAttributes=289]="JsxAttributes",l[l.JsxSpreadAttribute=290]="JsxSpreadAttribute",l[l.JsxExpression=291]="JsxExpression",l[l.CaseClause=292]="CaseClause",l[l.DefaultClause=293]="DefaultClause",l[l.HeritageClause=294]="HeritageClause",l[l.CatchClause=295]="CatchClause",l[l.AssertClause=296]="AssertClause",l[l.AssertEntry=297]="AssertEntry",l[l.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",l[l.PropertyAssignment=299]="PropertyAssignment",l[l.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",l[l.SpreadAssignment=301]="SpreadAssignment",l[l.EnumMember=302]="EnumMember",l[l.UnparsedPrologue=303]="UnparsedPrologue",l[l.UnparsedPrepend=304]="UnparsedPrepend",l[l.UnparsedText=305]="UnparsedText",l[l.UnparsedInternalText=306]="UnparsedInternalText",l[l.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",l[l.SourceFile=308]="SourceFile",l[l.Bundle=309]="Bundle",l[l.UnparsedSource=310]="UnparsedSource",l[l.InputFiles=311]="InputFiles",l[l.JSDocTypeExpression=312]="JSDocTypeExpression",l[l.JSDocNameReference=313]="JSDocNameReference",l[l.JSDocMemberName=314]="JSDocMemberName",l[l.JSDocAllType=315]="JSDocAllType",l[l.JSDocUnknownType=316]="JSDocUnknownType",l[l.JSDocNullableType=317]="JSDocNullableType",l[l.JSDocNonNullableType=318]="JSDocNonNullableType",l[l.JSDocOptionalType=319]="JSDocOptionalType",l[l.JSDocFunctionType=320]="JSDocFunctionType",l[l.JSDocVariadicType=321]="JSDocVariadicType",l[l.JSDocNamepathType=322]="JSDocNamepathType",l[l.JSDoc=323]="JSDoc",l[l.JSDocComment=323]="JSDocComment",l[l.JSDocText=324]="JSDocText",l[l.JSDocTypeLiteral=325]="JSDocTypeLiteral",l[l.JSDocSignature=326]="JSDocSignature",l[l.JSDocLink=327]="JSDocLink",l[l.JSDocLinkCode=328]="JSDocLinkCode",l[l.JSDocLinkPlain=329]="JSDocLinkPlain",l[l.JSDocTag=330]="JSDocTag",l[l.JSDocAugmentsTag=331]="JSDocAugmentsTag",l[l.JSDocImplementsTag=332]="JSDocImplementsTag",l[l.JSDocAuthorTag=333]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",l[l.JSDocClassTag=335]="JSDocClassTag",l[l.JSDocPublicTag=336]="JSDocPublicTag",l[l.JSDocPrivateTag=337]="JSDocPrivateTag",l[l.JSDocProtectedTag=338]="JSDocProtectedTag",l[l.JSDocReadonlyTag=339]="JSDocReadonlyTag",l[l.JSDocOverrideTag=340]="JSDocOverrideTag",l[l.JSDocCallbackTag=341]="JSDocCallbackTag",l[l.JSDocEnumTag=342]="JSDocEnumTag",l[l.JSDocParameterTag=343]="JSDocParameterTag",l[l.JSDocReturnTag=344]="JSDocReturnTag",l[l.JSDocThisTag=345]="JSDocThisTag",l[l.JSDocTypeTag=346]="JSDocTypeTag",l[l.JSDocTemplateTag=347]="JSDocTemplateTag",l[l.JSDocTypedefTag=348]="JSDocTypedefTag",l[l.JSDocSeeTag=349]="JSDocSeeTag",l[l.JSDocPropertyTag=350]="JSDocPropertyTag",l[l.SyntaxList=351]="SyntaxList",l[l.NotEmittedStatement=352]="NotEmittedStatement",l[l.PartiallyEmittedExpression=353]="PartiallyEmittedExpression",l[l.CommaListExpression=354]="CommaListExpression",l[l.MergeDeclarationMarker=355]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=356]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",l[l.Count=358]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=162]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=179]="FirstTypeNode",l[l.LastTypeNode=202]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=162]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=240]="FirstStatement",l[l.LastStatement=256]="LastStatement",l[l.FirstNode=163]="FirstNode",l[l.FirstJSDocNode=312]="FirstJSDocNode",l[l.LastJSDocNode=350]="LastJSDocNode",l[l.FirstJSDocTagNode=330]="FirstJSDocTagNode",l[l.LastJSDocTagNode=350]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=162]="LastContextualKeyword",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",c[c.ThisNodeHasError=131072]="ThisNodeHasError",c[c.JavaScriptFile=262144]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=1048576]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",c[c.JSDoc=8388608]="JSDoc",c[c.Ambient=16777216]="Ambient",c[c.InWithStatement=33554432]="InWithStatement",c[c.JsonFile=67108864]="JsonFile",c[c.TypeCached=134217728]="TypeCached",c[c.Deprecated=268435456]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=50720768]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Accessor=128]="Accessor",s[s.Abstract=256]="Abstract",s[s.Async=512]="Async",s[s.Default=1024]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.In=32768]="In",s[s.Out=65536]="Out",s[s.Decorator=131072]="Decorator",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=117086]="TypeScriptModifier",s[s.ExportDefault=1025]="ExportDefault",s[s.All=258047]="All",s[s.Modifier=126975]="Modifier",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore";var u,d,_,f,p,m,g,y,v,h,x,b,D,S,T,C,E,k,N,A,P,F,w,I,M,O,L,R,j,B,J,K,z,U,V,q,W,H,$,G,X,Q,Y,Z,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,de,_e,fe,pe;e.OperationCanceledException=function(){},(pe=e.FileIncludeKind||(e.FileIncludeKind={}))[pe.RootFile=0]="RootFile",pe[pe.SourceFromProjectReference=1]="SourceFromProjectReference",pe[pe.OutputFromProjectReference=2]="OutputFromProjectReference",pe[pe.Import=3]="Import",pe[pe.ReferenceFile=4]="ReferenceFile",pe[pe.TypeReferenceDirective=5]="TypeReferenceDirective",pe[pe.LibFile=6]="LibFile",pe[pe.LibReferenceDirective=7]="LibReferenceDirective",pe[pe.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(fe=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[fe.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",fe[fe.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(_e=e.StructureIsReused||(e.StructureIsReused={}))[_e.Not=0]="Not",_e[_e.SafeModules=1]="SafeModules",_e[_e.Completely=2]="Completely",(de=e.ExitStatus||(e.ExitStatus={}))[de.Success=0]="Success",de[de.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",de[de.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",de[de.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",de[de.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",de[de.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(ue=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[ue.Ok=0]="Ok",ue[ue.NeedsOverride=1]="NeedsOverride",ue[ue.HasInvalidOverride=2]="HasInvalidOverride",(le=e.UnionReduction||(e.UnionReduction={}))[le.None=0]="None",le[le.Literal=1]="Literal",le[le.Subtype=2]="Subtype",(ce=e.ContextFlags||(e.ContextFlags={}))[ce.None=0]="None",ce[ce.Signature=1]="Signature",ce[ce.NoConstraints=2]="NoConstraints",ce[ce.Completions=4]="Completions",ce[ce.SkipBindingPatterns=8]="SkipBindingPatterns",(se=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[se.None=0]="None",se[se.NoTruncation=1]="NoTruncation",se[se.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",se[se.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",se[se.UseStructuralFallback=8]="UseStructuralFallback",se[se.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",se[se.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",se[se.UseFullyQualifiedType=64]="UseFullyQualifiedType",se[se.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",se[se.SuppressAnyReturnType=256]="SuppressAnyReturnType",se[se.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",se[se.MultilineObjectLiterals=1024]="MultilineObjectLiterals",se[se.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",se[se.UseTypeOfFunction=4096]="UseTypeOfFunction",se[se.OmitParameterModifiers=8192]="OmitParameterModifiers",se[se.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",se[se.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",se[se.NoTypeReduction=536870912]="NoTypeReduction",se[se.OmitThisParameter=33554432]="OmitThisParameter",se[se.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",se[se.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",se[se.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",se[se.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",se[se.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",se[se.AllowEmptyTuple=524288]="AllowEmptyTuple",se[se.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",se[se.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",se[se.WriteComputedProps=1073741824]="WriteComputedProps",se[se.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",se[se.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",se[se.IgnoreErrors=70221824]="IgnoreErrors",se[se.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",se[se.InTypeAlias=8388608]="InTypeAlias",se[se.InInitialEntityName=16777216]="InInitialEntityName",(oe=e.TypeFormatFlags||(e.TypeFormatFlags={}))[oe.None=0]="None",oe[oe.NoTruncation=1]="NoTruncation",oe[oe.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",oe[oe.UseStructuralFallback=8]="UseStructuralFallback",oe[oe.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",oe[oe.UseFullyQualifiedType=64]="UseFullyQualifiedType",oe[oe.SuppressAnyReturnType=256]="SuppressAnyReturnType",oe[oe.MultilineObjectLiterals=1024]="MultilineObjectLiterals",oe[oe.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",oe[oe.UseTypeOfFunction=4096]="UseTypeOfFunction",oe[oe.OmitParameterModifiers=8192]="OmitParameterModifiers",oe[oe.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",oe[oe.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",oe[oe.NoTypeReduction=536870912]="NoTypeReduction",oe[oe.OmitThisParameter=33554432]="OmitThisParameter",oe[oe.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",oe[oe.AddUndefined=131072]="AddUndefined",oe[oe.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",oe[oe.InArrayType=524288]="InArrayType",oe[oe.InElementType=2097152]="InElementType",oe[oe.InFirstTypeArgument=4194304]="InFirstTypeArgument",oe[oe.InTypeAlias=8388608]="InTypeAlias",oe[oe.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",oe[oe.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",(ae=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ae.None=0]="None",ae[ae.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ae[ae.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ae[ae.AllowAnyNodeKind=4]="AllowAnyNodeKind",ae[ae.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ae[ae.WriteComputedProps=16]="WriteComputedProps",ae[ae.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",(ie=e.SymbolAccessibility||(e.SymbolAccessibility={}))[ie.Accessible=0]="Accessible",ie[ie.NotAccessible=1]="NotAccessible",ie[ie.CannotBeNamed=2]="CannotBeNamed",(ne=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[ne.UnionOrIntersection=0]="UnionOrIntersection",ne[ne.Spread=1]="Spread",(re=e.TypePredicateKind||(e.TypePredicateKind={}))[re.This=0]="This",re[re.Identifier=1]="Identifier",re[re.AssertsThis=2]="AssertsThis",re[re.AssertsIdentifier=3]="AssertsIdentifier",(te=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[te.Unknown=0]="Unknown",te[te.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",te[te.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",te[te.NumberLikeType=3]="NumberLikeType",te[te.BigIntLikeType=4]="BigIntLikeType",te[te.StringLikeType=5]="StringLikeType",te[te.BooleanType=6]="BooleanType",te[te.ArrayLikeType=7]="ArrayLikeType",te[te.ESSymbolType=8]="ESSymbolType",te[te.Promise=9]="Promise",te[te.TypeWithCallSignature=10]="TypeWithCallSignature",te[te.ObjectType=11]="ObjectType",(ee=e.SymbolFlags||(e.SymbolFlags={}))[ee.None=0]="None",ee[ee.FunctionScopedVariable=1]="FunctionScopedVariable",ee[ee.BlockScopedVariable=2]="BlockScopedVariable",ee[ee.Property=4]="Property",ee[ee.EnumMember=8]="EnumMember",ee[ee.Function=16]="Function",ee[ee.Class=32]="Class",ee[ee.Interface=64]="Interface",ee[ee.ConstEnum=128]="ConstEnum",ee[ee.RegularEnum=256]="RegularEnum",ee[ee.ValueModule=512]="ValueModule",ee[ee.NamespaceModule=1024]="NamespaceModule",ee[ee.TypeLiteral=2048]="TypeLiteral",ee[ee.ObjectLiteral=4096]="ObjectLiteral",ee[ee.Method=8192]="Method",ee[ee.Constructor=16384]="Constructor",ee[ee.GetAccessor=32768]="GetAccessor",ee[ee.SetAccessor=65536]="SetAccessor",ee[ee.Signature=131072]="Signature",ee[ee.TypeParameter=262144]="TypeParameter",ee[ee.TypeAlias=524288]="TypeAlias",ee[ee.ExportValue=1048576]="ExportValue",ee[ee.Alias=2097152]="Alias",ee[ee.Prototype=4194304]="Prototype",ee[ee.ExportStar=8388608]="ExportStar",ee[ee.Optional=16777216]="Optional",ee[ee.Transient=33554432]="Transient",ee[ee.Assignment=67108864]="Assignment",ee[ee.ModuleExports=134217728]="ModuleExports",ee[ee.All=67108863]="All",ee[ee.Enum=384]="Enum",ee[ee.Variable=3]="Variable",ee[ee.Value=111551]="Value",ee[ee.Type=788968]="Type",ee[ee.Namespace=1920]="Namespace",ee[ee.Module=1536]="Module",ee[ee.Accessor=98304]="Accessor",ee[ee.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",ee[ee.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",ee[ee.ParameterExcludes=111551]="ParameterExcludes",ee[ee.PropertyExcludes=0]="PropertyExcludes",ee[ee.EnumMemberExcludes=900095]="EnumMemberExcludes",ee[ee.FunctionExcludes=110991]="FunctionExcludes",ee[ee.ClassExcludes=899503]="ClassExcludes",ee[ee.InterfaceExcludes=788872]="InterfaceExcludes",ee[ee.RegularEnumExcludes=899327]="RegularEnumExcludes",ee[ee.ConstEnumExcludes=899967]="ConstEnumExcludes",ee[ee.ValueModuleExcludes=110735]="ValueModuleExcludes",ee[ee.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",ee[ee.MethodExcludes=103359]="MethodExcludes",ee[ee.GetAccessorExcludes=46015]="GetAccessorExcludes",ee[ee.SetAccessorExcludes=78783]="SetAccessorExcludes",ee[ee.AccessorExcludes=13247]="AccessorExcludes",ee[ee.TypeParameterExcludes=526824]="TypeParameterExcludes",ee[ee.TypeAliasExcludes=788968]="TypeAliasExcludes",ee[ee.AliasExcludes=2097152]="AliasExcludes",ee[ee.ModuleMember=2623475]="ModuleMember",ee[ee.ExportHasLocal=944]="ExportHasLocal",ee[ee.BlockScoped=418]="BlockScoped",ee[ee.PropertyOrAccessor=98308]="PropertyOrAccessor",ee[ee.ClassMember=106500]="ClassMember",ee[ee.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",ee[ee.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",ee[ee.Classifiable=2885600]="Classifiable",ee[ee.LateBindingContainer=6256]="LateBindingContainer",(Z=e.EnumKind||(e.EnumKind={}))[Z.Numeric=0]="Numeric",Z[Z.Literal=1]="Literal",(Y=e.CheckFlags||(e.CheckFlags={}))[Y.Instantiated=1]="Instantiated",Y[Y.SyntheticProperty=2]="SyntheticProperty",Y[Y.SyntheticMethod=4]="SyntheticMethod",Y[Y.Readonly=8]="Readonly",Y[Y.ReadPartial=16]="ReadPartial",Y[Y.WritePartial=32]="WritePartial",Y[Y.HasNonUniformType=64]="HasNonUniformType",Y[Y.HasLiteralType=128]="HasLiteralType",Y[Y.ContainsPublic=256]="ContainsPublic",Y[Y.ContainsProtected=512]="ContainsProtected",Y[Y.ContainsPrivate=1024]="ContainsPrivate",Y[Y.ContainsStatic=2048]="ContainsStatic",Y[Y.Late=4096]="Late",Y[Y.ReverseMapped=8192]="ReverseMapped",Y[Y.OptionalParameter=16384]="OptionalParameter",Y[Y.RestParameter=32768]="RestParameter",Y[Y.DeferredType=65536]="DeferredType",Y[Y.HasNeverType=131072]="HasNeverType",Y[Y.Mapped=262144]="Mapped",Y[Y.StripOptional=524288]="StripOptional",Y[Y.Unresolved=1048576]="Unresolved",Y[Y.Synthetic=6]="Synthetic",Y[Y.Discriminant=192]="Discriminant",Y[Y.Partial=48]="Partial",(Q=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",Q.Constructor="__constructor",Q.New="__new",Q.Index="__index",Q.ExportStar="__export",Q.Global="__global",Q.Missing="__missing",Q.Type="__type",Q.Object="__object",Q.JSXAttributes="__jsxAttributes",Q.Class="__class",Q.Function="__function",Q.Computed="__computed",Q.Resolving="__resolving__",Q.ExportEquals="export=",Q.Default="default",Q.This="this",(X=e.NodeCheckFlags||(e.NodeCheckFlags={}))[X.TypeChecked=1]="TypeChecked",X[X.LexicalThis=2]="LexicalThis",X[X.CaptureThis=4]="CaptureThis",X[X.CaptureNewTarget=8]="CaptureNewTarget",X[X.SuperInstance=256]="SuperInstance",X[X.SuperStatic=512]="SuperStatic",X[X.ContextChecked=1024]="ContextChecked",X[X.MethodWithSuperPropertyAccessInAsync=2048]="MethodWithSuperPropertyAccessInAsync",X[X.MethodWithSuperPropertyAssignmentInAsync=4096]="MethodWithSuperPropertyAssignmentInAsync",X[X.CaptureArguments=8192]="CaptureArguments",X[X.EnumValuesComputed=16384]="EnumValuesComputed",X[X.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",X[X.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",X[X.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",X[X.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",X[X.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",X[X.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",X[X.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",X[X.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",X[X.AssignmentsMarked=8388608]="AssignmentsMarked",X[X.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",X[X.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",X[X.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",X[X.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",X[X.InCheckIdentifier=268435456]="InCheckIdentifier",(G=e.TypeFlags||(e.TypeFlags={}))[G.Any=1]="Any",G[G.Unknown=2]="Unknown",G[G.String=4]="String",G[G.Number=8]="Number",G[G.Boolean=16]="Boolean",G[G.Enum=32]="Enum",G[G.BigInt=64]="BigInt",G[G.StringLiteral=128]="StringLiteral",G[G.NumberLiteral=256]="NumberLiteral",G[G.BooleanLiteral=512]="BooleanLiteral",G[G.EnumLiteral=1024]="EnumLiteral",G[G.BigIntLiteral=2048]="BigIntLiteral",G[G.ESSymbol=4096]="ESSymbol",G[G.UniqueESSymbol=8192]="UniqueESSymbol",G[G.Void=16384]="Void",G[G.Undefined=32768]="Undefined",G[G.Null=65536]="Null",G[G.Never=131072]="Never",G[G.TypeParameter=262144]="TypeParameter",G[G.Object=524288]="Object",G[G.Union=1048576]="Union",G[G.Intersection=2097152]="Intersection",G[G.Index=4194304]="Index",G[G.IndexedAccess=8388608]="IndexedAccess",G[G.Conditional=16777216]="Conditional",G[G.Substitution=33554432]="Substitution",G[G.NonPrimitive=67108864]="NonPrimitive",G[G.TemplateLiteral=134217728]="TemplateLiteral",G[G.StringMapping=268435456]="StringMapping",G[G.AnyOrUnknown=3]="AnyOrUnknown",G[G.Nullable=98304]="Nullable",G[G.Literal=2944]="Literal",G[G.Unit=109440]="Unit",G[G.StringOrNumberLiteral=384]="StringOrNumberLiteral",G[G.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",G[G.DefinitelyFalsy=117632]="DefinitelyFalsy",G[G.PossiblyFalsy=117724]="PossiblyFalsy",G[G.Intrinsic=67359327]="Intrinsic",G[G.Primitive=131068]="Primitive",G[G.StringLike=402653316]="StringLike",G[G.NumberLike=296]="NumberLike",G[G.BigIntLike=2112]="BigIntLike",G[G.BooleanLike=528]="BooleanLike",G[G.EnumLike=1056]="EnumLike",G[G.ESSymbolLike=12288]="ESSymbolLike",G[G.VoidLike=49152]="VoidLike",G[G.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",G[G.DisjointDomains=469892092]="DisjointDomains",G[G.UnionOrIntersection=3145728]="UnionOrIntersection",G[G.StructuredType=3670016]="StructuredType",G[G.TypeVariable=8650752]="TypeVariable",G[G.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",G[G.InstantiablePrimitive=406847488]="InstantiablePrimitive",G[G.Instantiable=465829888]="Instantiable",G[G.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",G[G.ObjectFlagsType=3899393]="ObjectFlagsType",G[G.Simplifiable=25165824]="Simplifiable",G[G.Singleton=67358815]="Singleton",G[G.Narrowable=536624127]="Narrowable",G[G.IncludesMask=205258751]="IncludesMask",G[G.IncludesMissingType=262144]="IncludesMissingType",G[G.IncludesNonWideningType=4194304]="IncludesNonWideningType",G[G.IncludesWildcard=8388608]="IncludesWildcard",G[G.IncludesEmptyObject=16777216]="IncludesEmptyObject",G[G.IncludesInstantiable=33554432]="IncludesInstantiable",G[G.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",($=e.ObjectFlags||(e.ObjectFlags={}))[$.Class=1]="Class",$[$.Interface=2]="Interface",$[$.Reference=4]="Reference",$[$.Tuple=8]="Tuple",$[$.Anonymous=16]="Anonymous",$[$.Mapped=32]="Mapped",$[$.Instantiated=64]="Instantiated",$[$.ObjectLiteral=128]="ObjectLiteral",$[$.EvolvingArray=256]="EvolvingArray",$[$.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",$[$.ReverseMapped=1024]="ReverseMapped",$[$.JsxAttributes=2048]="JsxAttributes",$[$.JSLiteral=4096]="JSLiteral",$[$.FreshLiteral=8192]="FreshLiteral",$[$.ArrayLiteral=16384]="ArrayLiteral",$[$.PrimitiveUnion=32768]="PrimitiveUnion",$[$.ContainsWideningType=65536]="ContainsWideningType",$[$.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",$[$.NonInferrableType=262144]="NonInferrableType",$[$.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",$[$.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",$[$.ClassOrInterface=3]="ClassOrInterface",$[$.RequiresWidening=196608]="RequiresWidening",$[$.PropagatingFlags=458752]="PropagatingFlags",$[$.ObjectTypeKindMask=1343]="ObjectTypeKindMask",$[$.ContainsSpread=2097152]="ContainsSpread",$[$.ObjectRestType=4194304]="ObjectRestType",$[$.InstantiationExpressionType=8388608]="InstantiationExpressionType",$[$.IsClassInstanceClone=16777216]="IsClassInstanceClone",$[$.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",$[$.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",$[$.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",$[$.IsGenericObjectType=4194304]="IsGenericObjectType",$[$.IsGenericIndexType=8388608]="IsGenericIndexType",$[$.IsGenericType=12582912]="IsGenericType",$[$.ContainsIntersections=16777216]="ContainsIntersections",$[$.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",$[$.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",$[$.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",$[$.IsNeverIntersection=33554432]="IsNeverIntersection",(H=e.VarianceFlags||(e.VarianceFlags={}))[H.Invariant=0]="Invariant",H[H.Covariant=1]="Covariant",H[H.Contravariant=2]="Contravariant",H[H.Bivariant=3]="Bivariant",H[H.Independent=4]="Independent",H[H.VarianceMask=7]="VarianceMask",H[H.Unmeasurable=8]="Unmeasurable",H[H.Unreliable=16]="Unreliable",H[H.AllowsStructuralFallback=24]="AllowsStructuralFallback",(W=e.ElementFlags||(e.ElementFlags={}))[W.Required=1]="Required",W[W.Optional=2]="Optional",W[W.Rest=4]="Rest",W[W.Variadic=8]="Variadic",W[W.Fixed=3]="Fixed",W[W.Variable=12]="Variable",W[W.NonRequired=14]="NonRequired",W[W.NonRest=11]="NonRest",(q=e.AccessFlags||(e.AccessFlags={}))[q.None=0]="None",q[q.IncludeUndefined=1]="IncludeUndefined",q[q.NoIndexSignatures=2]="NoIndexSignatures",q[q.Writing=4]="Writing",q[q.CacheSymbol=8]="CacheSymbol",q[q.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",q[q.ExpressionPosition=32]="ExpressionPosition",q[q.ReportDeprecated=64]="ReportDeprecated",q[q.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",q[q.Contextual=256]="Contextual",q[q.Persistent=1]="Persistent",(V=e.JsxReferenceKind||(e.JsxReferenceKind={}))[V.Component=0]="Component",V[V.Function=1]="Function",V[V.Mixed=2]="Mixed",(U=e.SignatureKind||(e.SignatureKind={}))[U.Call=0]="Call",U[U.Construct=1]="Construct",(z=e.SignatureFlags||(e.SignatureFlags={}))[z.None=0]="None",z[z.HasRestParameter=1]="HasRestParameter",z[z.HasLiteralTypes=2]="HasLiteralTypes",z[z.Abstract=4]="Abstract",z[z.IsInnerCallChain=8]="IsInnerCallChain",z[z.IsOuterCallChain=16]="IsOuterCallChain",z[z.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",z[z.PropagatingFlags=39]="PropagatingFlags",z[z.CallChainFlags=24]="CallChainFlags",(K=e.IndexKind||(e.IndexKind={}))[K.String=0]="String",K[K.Number=1]="Number",(J=e.TypeMapKind||(e.TypeMapKind={}))[J.Simple=0]="Simple",J[J.Array=1]="Array",J[J.Deferred=2]="Deferred",J[J.Function=3]="Function",J[J.Composite=4]="Composite",J[J.Merged=5]="Merged",(B=e.InferencePriority||(e.InferencePriority={}))[B.NakedTypeVariable=1]="NakedTypeVariable",B[B.SpeculativeTuple=2]="SpeculativeTuple",B[B.SubstituteSource=4]="SubstituteSource",B[B.HomomorphicMappedType=8]="HomomorphicMappedType",B[B.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",B[B.MappedTypeConstraint=32]="MappedTypeConstraint",B[B.ContravariantConditional=64]="ContravariantConditional",B[B.ReturnType=128]="ReturnType",B[B.LiteralKeyof=256]="LiteralKeyof",B[B.NoConstraints=512]="NoConstraints",B[B.AlwaysStrict=1024]="AlwaysStrict",B[B.MaxValue=2048]="MaxValue",B[B.PriorityImpliesCombination=416]="PriorityImpliesCombination",B[B.Circularity=-1]="Circularity",(j=e.InferenceFlags||(e.InferenceFlags={}))[j.None=0]="None",j[j.NoDefault=1]="NoDefault",j[j.AnyDefault=2]="AnyDefault",j[j.SkippedGenericFunction=4]="SkippedGenericFunction",(R=e.Ternary||(e.Ternary={}))[R.False=0]="False",R[R.Unknown=1]="Unknown",R[R.Maybe=3]="Maybe",R[R.True=-1]="True",(L=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[L.None=0]="None",L[L.ExportsProperty=1]="ExportsProperty",L[L.ModuleExports=2]="ModuleExports",L[L.PrototypeProperty=3]="PrototypeProperty",L[L.ThisProperty=4]="ThisProperty",L[L.Property=5]="Property",L[L.Prototype=6]="Prototype",L[L.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",L[L.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",L[L.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=u[e.category];return t?r.toLowerCase():r},(O=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[O.Classic=1]="Classic",O[O.NodeJs=2]="NodeJs",O[O.Node16=3]="Node16",O[O.NodeNext=99]="NodeNext",(M=e.ModuleDetectionKind||(e.ModuleDetectionKind={}))[M.Legacy=1]="Legacy",M[M.Auto=2]="Auto",M[M.Force=3]="Force",(I=e.WatchFileKind||(e.WatchFileKind={}))[I.FixedPollingInterval=0]="FixedPollingInterval",I[I.PriorityPollingInterval=1]="PriorityPollingInterval",I[I.DynamicPriorityPolling=2]="DynamicPriorityPolling",I[I.FixedChunkSizePolling=3]="FixedChunkSizePolling",I[I.UseFsEvents=4]="UseFsEvents",I[I.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(w=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[w.UseFsEvents=0]="UseFsEvents",w[w.FixedPollingInterval=1]="FixedPollingInterval",w[w.DynamicPriorityPolling=2]="DynamicPriorityPolling",w[w.FixedChunkSizePolling=3]="FixedChunkSizePolling",(F=e.PollingWatchKind||(e.PollingWatchKind={}))[F.FixedInterval=0]="FixedInterval",F[F.PriorityInterval=1]="PriorityInterval",F[F.DynamicPriority=2]="DynamicPriority",F[F.FixedChunkSize=3]="FixedChunkSize",(P=e.ModuleKind||(e.ModuleKind={}))[P.None=0]="None",P[P.CommonJS=1]="CommonJS",P[P.AMD=2]="AMD",P[P.UMD=3]="UMD",P[P.System=4]="System",P[P.ES2015=5]="ES2015",P[P.ES2020=6]="ES2020",P[P.ES2022=7]="ES2022",P[P.ESNext=99]="ESNext",P[P.Node16=100]="Node16",P[P.NodeNext=199]="NodeNext",(A=e.JsxEmit||(e.JsxEmit={}))[A.None=0]="None",A[A.Preserve=1]="Preserve",A[A.React=2]="React",A[A.ReactNative=3]="ReactNative",A[A.ReactJSX=4]="ReactJSX",A[A.ReactJSXDev=5]="ReactJSXDev",(N=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[N.Remove=0]="Remove",N[N.Preserve=1]="Preserve",N[N.Error=2]="Error",(k=e.NewLineKind||(e.NewLineKind={}))[k.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",k[k.LineFeed=1]="LineFeed",(E=e.ScriptKind||(e.ScriptKind={}))[E.Unknown=0]="Unknown",E[E.JS=1]="JS",E[E.JSX=2]="JSX",E[E.TS=3]="TS",E[E.TSX=4]="TSX",E[E.External=5]="External",E[E.JSON=6]="JSON",E[E.Deferred=7]="Deferred",(C=e.ScriptTarget||(e.ScriptTarget={}))[C.ES3=0]="ES3",C[C.ES5=1]="ES5",C[C.ES2015=2]="ES2015",C[C.ES2016=3]="ES2016",C[C.ES2017=4]="ES2017",C[C.ES2018=5]="ES2018",C[C.ES2019=6]="ES2019",C[C.ES2020=7]="ES2020",C[C.ES2021=8]="ES2021",C[C.ES2022=9]="ES2022",C[C.ESNext=99]="ESNext",C[C.JSON=100]="JSON",C[C.Latest=99]="Latest",(T=e.LanguageVariant||(e.LanguageVariant={}))[T.Standard=0]="Standard",T[T.JSX=1]="JSX",(S=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[S.None=0]="None",S[S.Recursive=1]="Recursive",(D=e.CharacterCodes||(e.CharacterCodes={}))[D.nullCharacter=0]="nullCharacter",D[D.maxAsciiCharacter=127]="maxAsciiCharacter",D[D.lineFeed=10]="lineFeed",D[D.carriageReturn=13]="carriageReturn",D[D.lineSeparator=8232]="lineSeparator",D[D.paragraphSeparator=8233]="paragraphSeparator",D[D.nextLine=133]="nextLine",D[D.space=32]="space",D[D.nonBreakingSpace=160]="nonBreakingSpace",D[D.enQuad=8192]="enQuad",D[D.emQuad=8193]="emQuad",D[D.enSpace=8194]="enSpace",D[D.emSpace=8195]="emSpace",D[D.threePerEmSpace=8196]="threePerEmSpace",D[D.fourPerEmSpace=8197]="fourPerEmSpace",D[D.sixPerEmSpace=8198]="sixPerEmSpace",D[D.figureSpace=8199]="figureSpace",D[D.punctuationSpace=8200]="punctuationSpace",D[D.thinSpace=8201]="thinSpace",D[D.hairSpace=8202]="hairSpace",D[D.zeroWidthSpace=8203]="zeroWidthSpace",D[D.narrowNoBreakSpace=8239]="narrowNoBreakSpace",D[D.ideographicSpace=12288]="ideographicSpace",D[D.mathematicalSpace=8287]="mathematicalSpace",D[D.ogham=5760]="ogham",D[D._=95]="_",D[D.$=36]="$",D[D._0=48]="_0",D[D._1=49]="_1",D[D._2=50]="_2",D[D._3=51]="_3",D[D._4=52]="_4",D[D._5=53]="_5",D[D._6=54]="_6",D[D._7=55]="_7",D[D._8=56]="_8",D[D._9=57]="_9",D[D.a=97]="a",D[D.b=98]="b",D[D.c=99]="c",D[D.d=100]="d",D[D.e=101]="e",D[D.f=102]="f",D[D.g=103]="g",D[D.h=104]="h",D[D.i=105]="i",D[D.j=106]="j",D[D.k=107]="k",D[D.l=108]="l",D[D.m=109]="m",D[D.n=110]="n",D[D.o=111]="o",D[D.p=112]="p",D[D.q=113]="q",D[D.r=114]="r",D[D.s=115]="s",D[D.t=116]="t",D[D.u=117]="u",D[D.v=118]="v",D[D.w=119]="w",D[D.x=120]="x",D[D.y=121]="y",D[D.z=122]="z",D[D.A=65]="A",D[D.B=66]="B",D[D.C=67]="C",D[D.D=68]="D",D[D.E=69]="E",D[D.F=70]="F",D[D.G=71]="G",D[D.H=72]="H",D[D.I=73]="I",D[D.J=74]="J",D[D.K=75]="K",D[D.L=76]="L",D[D.M=77]="M",D[D.N=78]="N",D[D.O=79]="O",D[D.P=80]="P",D[D.Q=81]="Q",D[D.R=82]="R",D[D.S=83]="S",D[D.T=84]="T",D[D.U=85]="U",D[D.V=86]="V",D[D.W=87]="W",D[D.X=88]="X",D[D.Y=89]="Y",D[D.Z=90]="Z",D[D.ampersand=38]="ampersand",D[D.asterisk=42]="asterisk",D[D.at=64]="at",D[D.backslash=92]="backslash",D[D.backtick=96]="backtick",D[D.bar=124]="bar",D[D.caret=94]="caret",D[D.closeBrace=125]="closeBrace",D[D.closeBracket=93]="closeBracket",D[D.closeParen=41]="closeParen",D[D.colon=58]="colon",D[D.comma=44]="comma",D[D.dot=46]="dot",D[D.doubleQuote=34]="doubleQuote",D[D.equals=61]="equals",D[D.exclamation=33]="exclamation",D[D.greaterThan=62]="greaterThan",D[D.hash=35]="hash",D[D.lessThan=60]="lessThan",D[D.minus=45]="minus",D[D.openBrace=123]="openBrace",D[D.openBracket=91]="openBracket",D[D.openParen=40]="openParen",D[D.percent=37]="percent",D[D.plus=43]="plus",D[D.question=63]="question",D[D.semicolon=59]="semicolon",D[D.singleQuote=39]="singleQuote",D[D.slash=47]="slash",D[D.tilde=126]="tilde",D[D.backspace=8]="backspace",D[D.formFeed=12]="formFeed",D[D.byteOrderMark=65279]="byteOrderMark",D[D.tab=9]="tab",D[D.verticalTab=11]="verticalTab",(b=e.Extension||(e.Extension={})).Ts=".ts",b.Tsx=".tsx",b.Dts=".d.ts",b.Js=".js",b.Jsx=".jsx",b.Json=".json",b.TsBuildInfo=".tsbuildinfo",b.Mjs=".mjs",b.Mts=".mts",b.Dmts=".d.mts",b.Cjs=".cjs",b.Cts=".cts",b.Dcts=".d.cts",(x=e.TransformFlags||(e.TransformFlags={}))[x.None=0]="None",x[x.ContainsTypeScript=1]="ContainsTypeScript",x[x.ContainsJsx=2]="ContainsJsx",x[x.ContainsESNext=4]="ContainsESNext",x[x.ContainsES2022=8]="ContainsES2022",x[x.ContainsES2021=16]="ContainsES2021",x[x.ContainsES2020=32]="ContainsES2020",x[x.ContainsES2019=64]="ContainsES2019",x[x.ContainsES2018=128]="ContainsES2018",x[x.ContainsES2017=256]="ContainsES2017",x[x.ContainsES2016=512]="ContainsES2016",x[x.ContainsES2015=1024]="ContainsES2015",x[x.ContainsGenerator=2048]="ContainsGenerator",x[x.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",x[x.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",x[x.ContainsLexicalThis=16384]="ContainsLexicalThis",x[x.ContainsRestOrSpread=32768]="ContainsRestOrSpread",x[x.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",x[x.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",x[x.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",x[x.ContainsBindingPattern=524288]="ContainsBindingPattern",x[x.ContainsYield=1048576]="ContainsYield",x[x.ContainsAwait=2097152]="ContainsAwait",x[x.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",x[x.ContainsDynamicImport=8388608]="ContainsDynamicImport",x[x.ContainsClassFields=16777216]="ContainsClassFields",x[x.ContainsDecorators=33554432]="ContainsDecorators",x[x.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",x[x.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",x[x.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",x[x.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",x[x.HasComputedFlags=-2147483648]="HasComputedFlags",x[x.AssertTypeScript=1]="AssertTypeScript",x[x.AssertJsx=2]="AssertJsx",x[x.AssertESNext=4]="AssertESNext",x[x.AssertES2022=8]="AssertES2022",x[x.AssertES2021=16]="AssertES2021",x[x.AssertES2020=32]="AssertES2020",x[x.AssertES2019=64]="AssertES2019",x[x.AssertES2018=128]="AssertES2018",x[x.AssertES2017=256]="AssertES2017",x[x.AssertES2016=512]="AssertES2016",x[x.AssertES2015=1024]="AssertES2015",x[x.AssertGenerator=2048]="AssertGenerator",x[x.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",x[x.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",x[x.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",x[x.NodeExcludes=-2147483648]="NodeExcludes",x[x.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",x[x.FunctionExcludes=-1937940480]="FunctionExcludes",x[x.ConstructorExcludes=-1937948672]="ConstructorExcludes",x[x.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",x[x.PropertyExcludes=-2013249536]="PropertyExcludes",x[x.ClassExcludes=-2147344384]="ClassExcludes",x[x.ModuleExcludes=-1941676032]="ModuleExcludes",x[x.TypeExcludes=-2]="TypeExcludes",x[x.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",x[x.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",x[x.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",x[x.ParameterExcludes=-2147483648]="ParameterExcludes",x[x.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",x[x.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",x[x.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",x[x.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",(h=e.SnippetKind||(e.SnippetKind={}))[h.TabStop=0]="TabStop",h[h.Placeholder=1]="Placeholder",h[h.Choice=2]="Choice",h[h.Variable=3]="Variable",(v=e.EmitFlags||(e.EmitFlags={}))[v.None=0]="None",v[v.SingleLine=1]="SingleLine",v[v.AdviseOnEmitNode=2]="AdviseOnEmitNode",v[v.NoSubstitution=4]="NoSubstitution",v[v.CapturesThis=8]="CapturesThis",v[v.NoLeadingSourceMap=16]="NoLeadingSourceMap",v[v.NoTrailingSourceMap=32]="NoTrailingSourceMap",v[v.NoSourceMap=48]="NoSourceMap",v[v.NoNestedSourceMaps=64]="NoNestedSourceMaps",v[v.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",v[v.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",v[v.NoTokenSourceMaps=384]="NoTokenSourceMaps",v[v.NoLeadingComments=512]="NoLeadingComments",v[v.NoTrailingComments=1024]="NoTrailingComments",v[v.NoComments=1536]="NoComments",v[v.NoNestedComments=2048]="NoNestedComments",v[v.HelperName=4096]="HelperName",v[v.ExportName=8192]="ExportName",v[v.LocalName=16384]="LocalName",v[v.InternalName=32768]="InternalName",v[v.Indented=65536]="Indented",v[v.NoIndentation=131072]="NoIndentation",v[v.AsyncFunctionBody=262144]="AsyncFunctionBody",v[v.ReuseTempVariableScope=524288]="ReuseTempVariableScope",v[v.CustomPrologue=1048576]="CustomPrologue",v[v.NoHoisting=2097152]="NoHoisting",v[v.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",v[v.Iterator=8388608]="Iterator",v[v.NoAsciiEscaping=16777216]="NoAsciiEscaping",v[v.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",v[v.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",v[v.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",v[v.Immutable=268435456]="Immutable",v[v.IndirectCall=536870912]="IndirectCall",(y=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[y.Extends=1]="Extends",y[y.Assign=2]="Assign",y[y.Rest=4]="Rest",y[y.Decorate=8]="Decorate",y[y.Metadata=16]="Metadata",y[y.Param=32]="Param",y[y.Awaiter=64]="Awaiter",y[y.Generator=128]="Generator",y[y.Values=256]="Values",y[y.Read=512]="Read",y[y.SpreadArray=1024]="SpreadArray",y[y.Await=2048]="Await",y[y.AsyncGenerator=4096]="AsyncGenerator",y[y.AsyncDelegator=8192]="AsyncDelegator",y[y.AsyncValues=16384]="AsyncValues",y[y.ExportStar=32768]="ExportStar",y[y.ImportStar=65536]="ImportStar",y[y.ImportDefault=131072]="ImportDefault",y[y.MakeTemplateObject=262144]="MakeTemplateObject",y[y.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",y[y.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",y[y.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",y[y.CreateBinding=4194304]="CreateBinding",y[y.FirstEmitHelper=1]="FirstEmitHelper",y[y.LastEmitHelper=4194304]="LastEmitHelper",y[y.ForOfIncludes=256]="ForOfIncludes",y[y.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",y[y.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",y[y.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",y[y.SpreadIncludes=1536]="SpreadIncludes",(g=e.EmitHint||(e.EmitHint={}))[g.SourceFile=0]="SourceFile",g[g.Expression=1]="Expression",g[g.IdentifierName=2]="IdentifierName",g[g.MappedTypeParameter=3]="MappedTypeParameter",g[g.Unspecified=4]="Unspecified",g[g.EmbeddedStatement=5]="EmbeddedStatement",g[g.JsxAttributeValue=6]="JsxAttributeValue",(m=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[m.Parentheses=1]="Parentheses",m[m.TypeAssertions=2]="TypeAssertions",m[m.NonNullAssertions=4]="NonNullAssertions",m[m.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",m[m.Assertions=6]="Assertions",m[m.All=15]="All",m[m.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(p=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[p.None=0]="None",p[p.InParameters=1]="InParameters",p[p.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(f=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",f.EmitHelpers="emitHelpers",f.NoDefaultLib="no-default-lib",f.Reference="reference",f.Type="type",f.TypeResolutionModeRequire="type-require",f.TypeResolutionModeImport="type-import",f.Lib="lib",f.Prepend="prepend",f.Text="text",f.Internal="internal",(_=e.ListFormat||(e.ListFormat={}))[_.None=0]="None",_[_.SingleLine=0]="SingleLine",_[_.MultiLine=1]="MultiLine",_[_.PreserveLines=2]="PreserveLines",_[_.LinesMask=3]="LinesMask",_[_.NotDelimited=0]="NotDelimited",_[_.BarDelimited=4]="BarDelimited",_[_.AmpersandDelimited=8]="AmpersandDelimited",_[_.CommaDelimited=16]="CommaDelimited",_[_.AsteriskDelimited=32]="AsteriskDelimited",_[_.DelimitersMask=60]="DelimitersMask",_[_.AllowTrailingComma=64]="AllowTrailingComma",_[_.Indented=128]="Indented",_[_.SpaceBetweenBraces=256]="SpaceBetweenBraces",_[_.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",_[_.Braces=1024]="Braces",_[_.Parenthesis=2048]="Parenthesis",_[_.AngleBrackets=4096]="AngleBrackets",_[_.SquareBrackets=8192]="SquareBrackets",_[_.BracketsMask=15360]="BracketsMask",_[_.OptionalIfUndefined=16384]="OptionalIfUndefined",_[_.OptionalIfEmpty=32768]="OptionalIfEmpty",_[_.Optional=49152]="Optional",_[_.PreferNewLine=65536]="PreferNewLine",_[_.NoTrailingNewLine=131072]="NoTrailingNewLine",_[_.NoInterveningComments=262144]="NoInterveningComments",_[_.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",_[_.SingleElement=1048576]="SingleElement",_[_.SpaceAfterList=2097152]="SpaceAfterList",_[_.Modifiers=2359808]="Modifiers",_[_.HeritageClauses=512]="HeritageClauses",_[_.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",_[_.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",_[_.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",_[_.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",_[_.UnionTypeConstituents=516]="UnionTypeConstituents",_[_.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",_[_.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",_[_.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",_[_.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",_[_.ImportClauseEntries=526226]="ImportClauseEntries",_[_.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",_[_.CommaListElements=528]="CommaListElements",_[_.CallExpressionArguments=2576]="CallExpressionArguments",_[_.NewExpressionArguments=18960]="NewExpressionArguments",_[_.TemplateExpressionSpans=262144]="TemplateExpressionSpans",_[_.SingleLineBlockStatements=768]="SingleLineBlockStatements",_[_.MultiLineBlockStatements=129]="MultiLineBlockStatements",_[_.VariableDeclarationList=528]="VariableDeclarationList",_[_.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",_[_.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",_[_.ClassHeritageClauses=0]="ClassHeritageClauses",_[_.ClassMembers=129]="ClassMembers",_[_.InterfaceMembers=129]="InterfaceMembers",_[_.EnumMembers=145]="EnumMembers",_[_.CaseBlockClauses=129]="CaseBlockClauses",_[_.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",_[_.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",_[_.JsxElementAttributes=262656]="JsxElementAttributes",_[_.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",_[_.HeritageClauseTypes=528]="HeritageClauseTypes",_[_.SourceFileStatements=131073]="SourceFileStatements",_[_.Decorators=2146305]="Decorators",_[_.TypeArguments=53776]="TypeArguments",_[_.TypeParameters=53776]="TypeParameters",_[_.Parameters=2576]="Parameters",_[_.IndexSignatureParameters=8848]="IndexSignatureParameters",_[_.JSDocComment=33]="JSDocComment",(d=e.PragmaKindFlags||(e.PragmaKindFlags={}))[d.None=0]="None",d[d.TripleSlashXML=1]="TripleSlashXML",d[d.SingleLine=2]="SingleLine",d[d.MultiLine=4]="MultiLine",d[d.All=7]="All",d[d.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(_||(_={})),function(e){function t(e){for(var t=5381,r=0;r=4,g="linux"===a.platform||"darwin"===a.platform,y=d.platform(),v="win32"!==y&&"win64"!==y&&!M((_=i,_.replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),h=l.realpathSync.native?"win32"===a.platform?function(e){return e.length<260?l.realpathSync.native(e):l.realpathSync(e)}:l.realpathSync.native:l.realpathSync,x=m&&("win32"===a.platform||"darwin"===a.platform),D=e.memoize((function(){return a.cwd()})),S=C({pollingWatchFileWorker:function(e,t,r){var i;return l.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return l.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i,r.mtime)}},getModifiedTime:L,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,t,r){return l.watch(e,x?{persistent:!0,recursive:!!t}:{persistent:!0},r)},useCaseSensitiveFileNames:v,getCurrentDirectory:D,fileSystemEntryExists:I,fsSupportsRecursiveFsWatch:x,getAccessibleSortedChildDirectories:function(e){return w(e).directories},realpath:O,tscWatchFile:a.env.TSC_WATCHFILE,useNonPollingWatchers:a.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:a.env.TSC_WATCHDIRECTORY,inodeWatching:g,sysLog:b}),T=S.watchFile,E=S.watchDirectory,N={args:a.argv.slice(2),newLine:d.EOL,useCaseSensitiveFileNames:v,write:function(e){a.stdout.write(e)},getWidthOfTerminal:function(){return a.stdout.columns},writeOutputIsTTY:function(){return a.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e,t){var r;try{r=l.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=l.openSync(t,"w"),l.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&l.closeSync(i)}},watchFile:T,watchDirectory:E,resolvePath:function(e){return u.resolve(e)},fileExists:M,directoryExists:function(e){return I(e,1)},createDirectory:function(e){if(!N.directoryExists(e))try{l.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return i},getCurrentDirectory:D,getDirectories:function(e){return w(e).directories.slice()},getEnvironmentVariable:function(e){return a.env[e]||""},readDirectory:function(t,r,n,i,o){return e.matchFiles(t,r,n,i,v,a.cwd(),o,w,O)},getModifiedTime:L,setModifiedTime:function(e,t){try{l.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return l.unlinkSync(e)}catch(e){return}},createHash:o?R:t,createSHA256Hash:o?R:void 0,getMemoryUsage:function(){return r.g.gc&&r.g.gc(),a.memoryUsage().heapUsed},getFileSize:function(e){try{var t=A(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){P((function(){return a.exit(e)}))},enableCPUProfiler:function(e,t){if(s)return t(),!1;var n=r(651);if(!n||!n.Session)return t(),!1;var i=new n.Session;return i.connect(),i.post("Profiler.enable",(function(){i.post("Profiler.start",(function(){s=i,f=e,t()}))})),!0},disableCPUProfiler:P,cpuProfilingEnabled:function(){return!!s||e.contains(a.execArgv,"--cpu-prof")||e.contains(a.execArgv,"--prof")},realpath:O,debugMode:!!a.env.NODE_INSPECTOR_IPC||!!a.env.VSCODE_INSPECTOR_OPTIONS||e.some(a.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{r(3454).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){a.stdout.write("c")},setBlocking:function(){a.stdout&&a.stdout._handle&&a.stdout._handle.setBlocking&&a.stdout._handle.setBlocking(!0)},bufferFrom:F,base64decode:function(e){return F(e,"base64").toString("utf8")},base64encode:function(e){return F(e).toString("base64")},require:function(t,n){try{var i=e.resolveJSModule(n,t,N);return{module:r(3411)(i),modulePath:i,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return N;function A(e){return l.statSync(e,{throwIfNoEntry:!1})}function P(t){if(s&&"stopping"!==s){var r=s;return s.post("Profiler.stop",(function(n,i){var o,d=i.profile;if(!n){try{(null===(o=A(f))||void 0===o?void 0:o.isDirectory())&&(f=u.join(f,"".concat((new Date).toISOString().replace(/:/g,"-"),"+P").concat(a.pid,".cpuprofile")))}catch(e){}try{l.mkdirSync(u.dirname(f),{recursive:!0})}catch(e){}l.writeFileSync(f,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes("/"),a="file://".concat(1===e.getRootLength(i)?"":"/").concat(i),o=0,s=t.nodes;o0}function i(e){return 0!==u(e)}function a(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(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:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(l(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("://");if(-1!==a){var o=a+"://".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)&&l(t.charCodeAt(s+1))){var d=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!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(s+1)}return~t.length}return 0}function d(e){var t=u(e);return t<0?~t:t}function _(t){var r=d(t=v(t));return r===t.length?t:(t=C(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function f(t,r,n){if(d(t=v(t))===t.length)return"";var i=(t=C(t)).slice(Math.max(d(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?m(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function p(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function m(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return p(e,t,r)||"";for(var n=0,i=t;n=0?i.substring(a):""}function g(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(),o([n],i,!0)}(t=x(r,t),d(t))}function y(t){return 0===t.length?"":(t[0]&&E(t[0]))+t.slice(1).join(e.directorySeparator)}function v(r){return-1!==r.indexOf("\\")?r.replace(t,e.directorySeparator):r}function h(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 x(e){for(var t=[],r=1;r0&&t===e.length},e.pathIsAbsolute=i,e.pathIsRelative=a,e.pathIsBareSpecifier=function(e){return!i(e)&&!a(e)},e.hasExtension=function(t){return e.stringContains(f(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r0==d(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(P(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function w(t,r,i,a,o){var s=P(b(i,t),b(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return A(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return A(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=x(n,t),r=x(n,r)):"boolean"==typeof n&&(i=n),A(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=x(n,t),r=x(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=h(g(t)),o=h(g(r));if(o.length type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:t(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:t(1209,e.DiagnosticCategory.Error,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:t(1275,e.DiagnosticCategory.Error,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:t(1276,e.DiagnosticCategory.Error,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:t(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:t(1360,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:t(1368,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:t(1457,e.DiagnosticCategory.Message,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:t(1458,e.DiagnosticCategory.Message,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:t(1459,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:t(1460,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:t(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:t(1477,e.DiagnosticCategory.Error,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:t(1478,e.DiagnosticCategory.Error,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:t(1479,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:t(1480,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:t(1481,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:t(1482,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:t(1483,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:t(2208,e.DiagnosticCategory.Error,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:t(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:t(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:t(2514,e.DiagnosticCategory.Error,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:t(2638,e.DiagnosticCategory.Error,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:t(2839,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:t(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:t(2842,e.DiagnosticCategory.Error,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:t(2843,e.DiagnosticCategory.Error,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2844,e.DiagnosticCategory.Error,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:t(2845,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:t(6399,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:t(6400,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:t(6401,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:t(6402,e.DiagnosticCategory.Message,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:t(6403,e.DiagnosticCategory.Message,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:t(6404,e.DiagnosticCategory.Message,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:t(6405,e.DiagnosticCategory.Message,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:t(8035,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:t(8036,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:t(8037,e.DiagnosticCategory.Error,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:t(90059,e.DiagnosticCategory.Message,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:t(90060,e.DiagnosticCategory.Message,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:t(95102,e.DiagnosticCategory.Message,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:t(95174,e.DiagnosticCategory.Message,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:t(95175,e.DiagnosticCategory.Message,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:t(18042,e.DiagnosticCategory.Error,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:t(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:t(18044,e.DiagnosticCategory.Message,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18045,e.DiagnosticCategory.Error,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:t(18046,e.DiagnosticCategory.Error,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:t(18047,e.DiagnosticCategory.Error,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:t(18048,e.DiagnosticCategory.Error,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:t(18049,e.DiagnosticCategory.Error,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:t(18050,e.DiagnosticCategory.Error,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here.")}}(_||(_={})),function(e){var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)},e.textToKeywordObj=((t={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=135,t.debugger=87,t.declare=136,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=158,t.function=98,t.get=137,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=138,t.instanceof=102,t.interface=118,t.intrinsic=139,t.is=140,t.keyof=141,t.let=119,t.module=142,t.namespace=143,t.never=144,t.new=103,t.null=104,t.number=148,t.object=149,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=161,t.out=145,t.readonly=146,t.require=147,t.global=159,t.return=105,t.satisfies=150,t.set=151,t.static=124,t.string=152,t.super=106,t.switch=107,t.symbol=153,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=154,t.typeof=112,t.undefined=155,t.unique=156,t.unknown=157,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=132,t.await=133,t.of=162,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(s(s({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),a=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,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],o=[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],c=[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],l=[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],u=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],d=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],_=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function p(e,t){if(e=2?u:1===t?c:a)}e.isUnicodeIdentifierStart=m;var g,y=(g=[],i.forEach((function(e,t){g[e]=t})),g);function v(e){for(var t=[],r=0,n=0;r127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function h(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function C(e){return 10===e||13===e||8232===e||8233===e}function E(e){return e>=48&&e<=57}function k(e){return E(e)||e>=65&&e<=70||e>=97&&e<=102}function N(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):h(x(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=x,e.computeLineAndCharacterOfPosition=b,e.computeLineOfPosition=D,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=x(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=D(n,i),c=D(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return b(x(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=T,e.isLineBreak=C,e.isOctalDigit=N,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,a){if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;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&&S(s)){r++;continue}}return r}};var A="<<<<<<<".length;function P(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+A=0&&r127&&S(m)){d&&C(m)&&(u=!0),r++;continue}break e}}return d&&(f=i(s,c,l,u,a,f)),f}function L(e,t,r,n,i){return O(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return O(!0,e,t,!0,r,n,i)}function j(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function B(e){var t=w.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&m(e,t)}function K(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return p(e,t>=2?d:1===t?l:o)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=M,e.forEachLeadingCommentRange=function(e,t,r,n){return O(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return O(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=L,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return L(e,t,j,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return R(e,t,j,void 0,void 0)},e.getShebang=B,e.isIdentifierStart=J,e.isIdentifierPart=K,e.isIdentifierText=function(e,t,r){var n=z(e,0);if(!J(n,t))return!1;for(var i=U(n);i116},isReservedWord:function(){return g>=81&&g<=116},isUnterminated:function(){return 0!=(4&v)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&v},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(31===g){if(62===x.charCodeAt(u))return 62===x.charCodeAt(u+1)?61===x.charCodeAt(u+2)?(u+=3,g=72):(u+=2,g=49):61===x.charCodeAt(u+1)?(u+=2,g=71):(u++,g=48);if(61===x.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=m+1,g=63},reScanSlashToken:function(){if(43===g||68===g){for(var r=m+1,n=!1,i=!1;;){if(r>=d){v|=4,A(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=x.charCodeAt(r);if(C(a)){v|=4,A(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r=d)return g=1;var e=z(x,u);switch(u+=U(e),e){case 9:case 11:case 12:case 32:for(;u=0&&J(r,t))return u+=3,v|=8,y=X()+Z(),g=ee();var n=Q();return n>=0&&J(n,t)?(u+=6,v|=1024,y=String.fromCharCode(n)+Z(),g=ee()):(u++,g=0)}if(J(e,t)){for(var i=e;u=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length=d){n+=x.substring(i,u),v|=4,A(e.Diagnostics.Unterminated_string_literal);break}var a=x.charCodeAt(u);if(a===r){n+=x.substring(i,u),u++;break}if(92!==a||t){if(C(a)&&!t){n+=x.substring(i,u),v|=4,A(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=x.substring(i,u),n+=$(),i=u}return n}function H(t){for(var r,n=96===x.charCodeAt(u),i=++u,a="";;){if(u>=d){a+=x.substring(i,u),v|=4,A(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=x.charCodeAt(u);if(96===o){a+=x.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1=d)return A(e.Diagnostics.Unexpected_end_of_text),"";var n=x.charCodeAt(u);switch(u++,n){case 48:return t&&u=0?String.fromCharCode(r):(A(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=B(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(A(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(A(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=d?(A(e.Diagnostics.Unexpected_end_of_text),n=!0):125===x.charCodeAt(u)?u++:(A(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":q(r)}function Q(){if(u+5=0&&K(n,t)){u+=3,v|=8,e+=X(),r=u;continue}if(!((n=Q())>=0&&K(n,t)))break;v|=1024,e+=x.substring(r,u),e+=q(n),r=u+=6}}return e+x.substring(r,u)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(y);if(void 0!==r)return g=r}}return g=79}function te(t){for(var r="",n=!1,i=!1;;){var a=x.charCodeAt(u);if(95!==a){if(n=!0,!E(a)||a-48>=t)break;r+=x[u],u++,i=!1}else v|=512,n?(n=!1,i=!0):A(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===x.charCodeAt(u-1)&&A(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function re(){if(110===x.charCodeAt(u))return y+="n",384&v&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var t=128&v?parseInt(y.slice(2),2):256&v?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;p=u,v=0;for(var n=!1;;){if(m=u,u>=d)return g=1;var o=z(x,u);if(35===o&&0===u&&I(x,u)){if(u=M(x,u),i)continue;return g=6}switch(o){case 10:case 13:if(v|=1,i){u++;continue}return 13===o&&u+1=0&&J(D,t))return u+=3,v|=8,y=X()+Z(),g=ee();var S=Q();return S>=0&&J(S,t)?(u+=6,v|=1024,y=String.fromCharCode(S)+Z(),g=ee()):(A(e.Diagnostics.Invalid_character),u++,g=0);case 35:if(0!==u&&"!"===x[u+1])return A(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0;var k=z(x,u+1);if(92===k){u++;var w=Y();if(w>=0&&J(w,t))return u+=3,v|=8,y="#"+X()+Z(),g=80;var L=Q();if(L>=0&&J(L,t))return u+=6,v|=1024,y="#"+String.fromCharCode(L)+Z(),g=80;u--}return J(k,t)?(u++,ie(k,t)):(y="#",A(e.Diagnostics.Invalid_character,u++,U(o))),g=80;default:var j=ie(o,t);if(j)return g=j;if(T(o)){u+=U(o);continue}if(C(o)){v|=1,u+=U(o);continue}var K=U(o);return A(e.Diagnostics.Invalid_character,u,K),u+=K,g=0}}}function ie(e,t){var r=e;if(J(r,t)){for(u+=U(r);u=d)return g=1;var r=x.charCodeAt(u);if(60===r)return 47===x.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===r)return u++,g=18;for(var n=0;u0)break;S(r)||(n=u)}u++}return y=x.substring(p,u),-1===n?12:11}function se(){switch(p=u,x.charCodeAt(u)){case 34:case 39:return y=W(!0),g=10;default:return ne()}}function ce(e,t){var r=u,n=p,i=m,a=g,o=y,s=v,c=e();return c&&!t||(u=r,p=n,m=i,g=a,y=o,v=s),c}function le(e,t,r){x=e||"",d=void 0===r?x.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),u=t,p=t,m=t,g=0,y=void 0,v=0}};var z=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function U(e){return e>=65536?2:1}var V=String.fromCodePoint?function(e){return String.fromCodePoint(e)}: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)};function q(e){return V(e)}e.utf16EncodeAsString=q}(_||(_={})),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 l(t){return!!Z(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function _(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 257===t.kind&&(t=t.parent),t&&258===t.kind&&(n|=r(t),t=t.parent),t&&240===t.kind&&(n|=r(t)),n}function f(e){return 0==(8&e.flags)}function p(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 m(e){return p(e.escapedText)}function g(t){var r=t.parent.parent;if(r){if(ce(r))return y(r);switch(r.kind){case 240:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 241:var n=r.expression;switch(223===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 208:return n.name;case 209:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 214:return y(r.expression);case 253:if(ce(r.statement)||ie(r.statement))return y(r.statement)}}}function y(t){var r=b(t);return r&&e.isIdentifier(r)?r:void 0}function v(e){return e.name||g(e)}function h(e){return!!e.name}function x(t){switch(t.kind){case 79:return t;case 350:case 343:var r=t.name;if(163===r.kind)return r.right;break;case 210:case 223:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 348:return v(t);case 342:return g(t);case 274:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 209:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function b(t){if(void 0!==t)return x(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){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.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return A(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=A(t.parent,r).filter(e.isJSDocParameterTag);if(i=163}function j(e){return e>=0&&e<=162}function B(e){return 8<=e&&e<=14}function J(e){return 14<=e&&e<=17}function K(t){return(e.isPropertyDeclaration(t)||X(t))&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function U(t){return!!(16476&e.modifierToFlag(t))}function V(e){return z(e.kind)}function q(e){return!!e&&H(e.kind)}function W(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function H(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return W(e)}}function $(e){var t=e.kind;return 173===t||169===t||171===t||174===t||175===t||178===t||172===t||237===t}function G(e){return e&&(260===e.kind||228===e.kind)}function X(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function Q(e){var t=e.kind;return 177===t||176===t||168===t||170===t||178===t||174===t||175===t}function Y(e){var t=e.kind;return 299===t||300===t||301===t||171===t||174===t||175===t}function Z(e){if(e){var t=e.kind;return 204===t||203===t}return!1}function ee(e){switch(e.kind){case 203:case 207:return!0}return!1}function te(e){switch(e.kind){case 204:case 206:return!0}return!1}function re(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:return!0;default:return!1}}function ne(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return re(e)}}function ie(e){return function(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 354:case 353:case 235:return!0;default:return ne(e)}}(O(e).kind)}function ae(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function oe(e){return 259===e||279===e||260===e||261===e||262===e||263===e||264===e||269===e||268===e||275===e||274===e||267===e}function se(e){return 249===e||248===e||256===e||243===e||241===e||239===e||246===e||247===e||245===e||242===e||253===e||250===e||252===e||254===e||255===e||240===e||244===e||251===e||352===e||356===e||355===e}function ce(t){return 165===t.kind?t.parent&&347!==t.parent.kind||e.isInJSFile(t):216===(r=t.kind)||205===r||260===r||228===r||172===r||173===r||263===r||302===r||278===r||259===r||215===r||174===r||270===r||268===r||273===r||261===r||288===r||171===r||170===r||264===r||267===r||271===r||277===r||166===r||299===r||169===r||168===r||175===r||300===r||262===r||165===r||257===r||348===r||341===r||350===r;var r}function le(e){return e.kind>=330&&e.kind<=350}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(t){switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=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.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,l=1;l=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=p,e.idText=m,e.symbolName=function(e){return e.valueDeclaration&&K(e.valueDeclaration)?m(e.valueDeclaration.name):p(e.escapedName)},e.nodeHasName=function t(r,n){return!(!h(r)||!e.isIdentifier(r.name)||m(r.name)!==m(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=h,e.getNonAssignedNameOfDeclaration=x,e.getNameOfDeclaration=b,e.getAssignedName=D,e.getDecorators=function(t){if(e.hasDecorators(t))return e.filter(t.modifiers,e.isDecorator)},e.getModifiers=function(t){if(e.hasSyntacticModifier(t,126975))return e.filter(t.modifiers,V)},e.getJSDocParameterTags=T,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!F(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return F(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return w(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return F(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return F(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return F(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return F(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return F(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return F(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return F(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return F(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return F(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return F(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return F(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return F(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return F(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return F(t,e.isJSDocThisTag)},e.getJSDocReturnTag=E,e.getJSDocTemplateTag=function(t){return F(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=N,e.getJSDocReturnType=function(t){var r=E(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=P,e.getJSDocTagsNoCache=function(e){return A(e,!0)},e.getAllJSDocTags=w,e.getAllJSDocTagsOfKind=function(e,t){return P(e).filter((function(e){return e.kind===t}))},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map((function(t){return 324===t.kind?t.text:(n=327===(r=t).kind?"link":328===r.kind?"linkcode":"linkplain",i=r.name?e.entityNameToString(r.name):"",a=r.name&&r.text.startsWith("://")?"":" ","{@".concat(n," ").concat(i).concat(a).concat(r.text,"}"));var r,n,i,a})).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(323===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.canHaveIllegalTypeParameters(t)&&t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=N(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 175===e.kind||174===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=I,e.isOptionalChainRoot=M,e.isExpressionOfOptionalChainRoot=function(e){return M(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!I(e.parent)||M(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 223===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=O,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 249===e.kind||248===e.kind},e.isNamedExportBindings=function(e){return 277===e.kind||276===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||303===e.kind||307===e.kind},e.isJSDocPropertyLikeTag=function(e){return 350===e.kind||343===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isTokenKind=j,e.isToken=function(e){return j(e.kind)},e.isNodeArray=function(t){return e.hasProperty(t,"pos")&&e.hasProperty(t,"end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isLiteralExpressionOfObject=function(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1},e.isTemplateLiteralKind=J,e.isTemplateLiteralToken=function(e){return J(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 273:case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly;default:return!1}},e.isAssertionKey=function(t){return e.isStringLiteral(t)||e.isIdentifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||J(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isGeneratedPrivateIdentifier=function(t){return e.isPrivateIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=K,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=z,e.isParameterPropertyModifier=U,e.isClassMemberModifier=function(e){return U(e)||124===e||161===e||127===e},e.isModifier=V,e.isEntityName=function(e){var t=e.kind;return 163===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||164===t},e.isBindingName=function(e){var t=e.kind;return 79===t||203===t||204===t},e.isFunctionLike=q,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(H(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&W(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=H,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&q(t.parent)},e.isClassElement=$,e.isClassLike=G,e.isAccessor=function(e){return e&&(174===e.kind||175===e.kind)},e.isAutoAccessorPropertyDeclaration=function(t){return e.isPropertyDeclaration(t)&&e.hasAccessorModifier(t)},e.isMethodOrAccessor=X,e.isNamedClassElement=function(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}},e.isModifierLike=function(t){return V(t)||e.isDecorator(t)},e.isTypeElement=Q,e.isClassOrTypeElement=function(e){return Q(e)||$(e)},e.isObjectLiteralElementLike=Y,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 181:case 182:return!0}return!1},e.isBindingPattern=Z,e.isAssignmentPattern=function(e){var t=e.kind;return 206===t||207===t},e.isArrayBindingElement=function(e){var t=e.kind;return 205===t||229===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return ee(e)||te(e)},e.isObjectBindingOrAssignmentPattern=ee,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1},e.isArrayBindingOrAssignmentPattern=te,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 208===t||163===t||202===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 208===t||163===t},e.isCallLikeExpression=function(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 210===e.kind||211===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 225===t||14===t},e.isLeftHandSideExpression=function(e){return re(O(e).kind)},e.isUnaryExpression=function(e){return ne(O(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 222:return!0;case 221:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ie,e.isAssertionExpression=function(e){var t=e.kind;return 213===t||231===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ae,e.hasScopeMarker=function(t){return e.some(t,ae)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 246===e.kind||247===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||ie(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||ie(t)},e.isModuleBody=function(e){var t=e.kind;return 265===t||264===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 265===t||264===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||264===t},e.isNamedImportBindings=function(e){var t=e.kind;return 272===t||271===t},e.isModuleOrEnumDeclaration=function(e){return 264===e.kind||263===e.kind},e.isDeclaration=ce,e.isDeclarationStatement=function(e){return oe(e.kind)},e.isStatementButNotDeclaration=function(e){return se(e.kind)},e.isStatement=function(t){var r=t.kind;return se(r)||oe(r)||function(t){return 238===t.kind&&((void 0===t.parent||255!==t.parent.kind&&295!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return se(t)||oe(t)||238===t},e.isModuleReference=function(e){var t=e.kind;return 280===t||163===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 108===t||79===t||208===t},e.isJsxChild=function(e){var t=e.kind;return 281===t||291===t||282===t||11===t||285===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 288===t||290===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||291===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 283===t||282===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 292===t||293===t},e.isJSDocNode=function(e){return e.kind>=312&&e.kind<=350},e.isJSDocCommentContainingNode=function(t){return 323===t.kind||322===t.kind||324===t.kind||de(t)||le(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=le,e.isSetAccessor=function(e){return 175===e.kind},e.isGetAccessor=function(e){return 174===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 288===e.kind||290===e.kind||Y(e)},e.isTypeReferenceType=function(e){return 180===e.kind||230===e.kind};var ue=1073741823;function de(e){return 327===e.kind||328===e.kind||329===e.kind}function _e(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&321===r.kind}e.guessIndentation=function(t){for(var r=ue,n=0,i=t;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 f(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!f(e)}function m(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n0?h(t._children[0],r,n):e.skipTrivia((r||d(t)).text,t.pos,!1,!1,Te(t))}function x(e,t,r){return void 0===r&&(r=!1),b(e.text,t,r)}function b(t,r,n){if(void 0===n&&(n=!1),f(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.split(/\r\n|\n|\r/).map((function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))})).join("\n")),i}function D(e,t){return void 0===t&&(t=!1),x(d(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=Ft(e);return 257===t.kind&&295===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||N(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function N(e){return!!(1024&e.flags)}function A(e){return E(e)&&P(e)}function P(t){switch(t.parent.kind){case 308:return e.isExternalModule(t.parent);case 265:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function F(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(A(t)||e.isModuleDeclaration(t)&&N(t))}))}function w(t,r){switch(t.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function I(t){switch(t.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 347:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return e.assertType(t),!1}}function M(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function O(t){return M(t)||e.isExportDeclaration(t)}function L(t){return e.findAncestor(t.parent,(function(e){return w(e,e.parent)}))}function R(e){return e&&0!==l(e)?D(e):"(Missing)"}function j(t){switch(t.kind){case 79:case 80:return t.autoGenerateFlags?void 0:t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 164:return Tt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function B(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===l(t)?e.idText(t):D(t);case 163:return B(t.left)+"."+B(t.right);case 208:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?B(t.expression)+"."+B(t.name):e.Debug.assertNever(t.name);case 314:return B(t.left)+B(t.right);default:return e.Debug.assertNever(t)}}function J(e,t,r,n,i,a,o){var s=V(e,t);return Cn(e,s.start,s.length,r,n,i,a,o)}function K(t,r,n){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))}function z(e,t,r,n,i){return K(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function U(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 V(t,r){var n=r;switch(r.kind){case 308:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):U(t,i);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:n=r.name;break;case 216:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&238===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return U(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=f(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function q(e){return 6===e.scriptKind}function W(t){return!!(2&e.getCombinedNodeFlags(t))}function H(e){return 210===e.kind&&100===e.expression.kind}function $(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function G(e){return 241===e.kind&&10===e.expression.kind}function X(e){return!!(1048576&T(e))}function Q(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||a(e,t)},e.optionsHaveModuleResolutionChanges=a,e.changesAffectingProgramStructure=function(t,r){return c(t,r,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=c,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=i.getText();try{return e(i),i.getText()}finally{i.clear(),i.writeKeyword(t)}},e.getFullWidth=l,e.getResolvedModule=function(e,t,r){return e&&e.resolvedModules&&e.resolvedModules.get(t,r)},e.setResolvedModule=function(t,r,n,i){t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},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.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToPackageName=u,e.packageIdToString=function(e){return"".concat(u(e),"@").concat(e.version)},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,r,n,i,a){e.Debug.assert(t.length===r.length);for(var o=0;o=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=d(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=_,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=f,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=function(e,t){return m(e,t,G)},e.insertStatementsAfterCustomPrologue=function(e,t){return m(e,t,y)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,G)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,y)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isAmbientPropertyDeclaration=function(e){return!!(16777216&e.flags)||Cr(e,2)},e.isBlockScope=w,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 341:case 348:case 326:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=M,e.isAnyImportOrBareOrAccessedRequire=function(e){return M(e)||ke(e)},e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return O(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||H(t)},e.isAnyImportOrReExport=O,e.getEnclosingBlockScopeContainer=L,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=L(e);r;)t(r),r=L(r)},e.declarationNameToString=R,e.getNameFromIndexInfo=function(e){return e.declaration?R(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 164===e.kind&&!Tt(e.expression)},e.tryGetTextOfPropertyName=j,e.getTextOfPropertyName=function(t){return e.Debug.checkDefined(j(t))},e.entityNameToString=B,e.createDiagnosticForNode=function(e,t,r,n,i,a){return J(d(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return Cn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=J,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=d(e),i=V(n,e);return z(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=z,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticMessageChainFromDiagnostic=function(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=U,e.getErrorSpanForNode=V,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=q,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=W,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 210===e.kind&&106===e.expression.kind},e.isImportCall=H,e.isImportMeta=function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=$,e.isPrologueDirective=G,e.isCustomPrologue=X,e.isHoistedFunction=function(t){return X(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return X(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,Q)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=166===t.kind||165===t.kind||215===t.kind||216===t.kind||214===t.kind||257===t.kind||278===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var Y=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var Z,ee,te,re,ne=/^(\/\/\/\s*/;function ie(t){if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return 219!==t.parent.kind;case 230:return e.isHeritageClause(t.parent)&&!Vr(t);case 165:return 197===t.parent.kind||192===t.parent.kind;case 79:(163===t.parent.kind&&t.parent.right===t||208===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||163===t.kind||208===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:var r=t.parent;if(183===r.kind)return!1;if(202===r.kind)return!r.isTypeOf;if(179<=r.kind&&r.kind<=202)return!0;switch(r.kind){case 230:return e.isHeritageClause(r.parent)&&!Vr(r);case 165:case 347:return t===r.constraint;case 169:case 168:case 166:case 257:case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:case 176:case 177:case 178:case 213:return t===r.type;case 210:case 211:return e.contains(r.typeArguments,t);case 212:return!1}}return!1}function ae(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function oe(e){return 258===e.parent.kind&&240===e.parent.parent.kind}function se(t){return!!Se(t)&&e.isBinaryExpression(t)&&1===Re(t)}function ce(e,t,r){return e.properties.filter((function(e){if(299===e.kind){var n=j(e.name);return t===n||!!r&&r===n}return!1}))}function le(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ue(t,r){var n=le(t);return n?ce(n,r):e.emptyArray}function de(t,r){for(e.Debug.assert(308!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 164:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 167:166===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 216:if(!r)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return t}}}function _e(e){var t=e.kind;return(208===t||209===t)&&106===e.expression.kind}function fe(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 260:return!0;case 169:return 260===r.kind;case 174:case 175:case 171:return void 0!==t.body&&260===r.kind;case 166:return void 0!==r.body&&(173===r.kind||171===r.kind||175===r.kind)&&260===n.kind}return!1}function pe(e,t,r){return Ar(e)&&fe(e,t,r)}function me(e,t,r){return pe(e,t,r)||ge(e,t)}function ge(t,r){switch(t.kind){case 260:return e.some(t.members,(function(e){return me(e,t,r)}));case 171:case 175:case 173:return e.some(t.parameters,(function(e){return pe(e,t,r)}));default:return!1}}function ye(e){var t=e.parent;return(283===t.kind||282===t.kind||284===t.kind)&&t.tagName===e}function ve(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!e.isHeritageClause(t.parent);case 163:for(;163===t.parent.kind;)t=t.parent;return 183===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ye(t);case 314:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 183===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ye(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&101===t.parent.operatorToken.kind;case 79:if(183===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ye(t))return!0;case 8:case 9:case 10:case 14:case 108:return he(t);default:return!1}}function he(e){var t=e.parent;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:var r=t;return r.initializer===e&&258!==r.initializer.kind||r.condition===e||r.incrementor===e;case 246:case 247:var n=t;return n.initializer===e&&258!==n.initializer.kind||n.expression===e;case 213:case 231:case 236:case 164:case 235:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!ie(t);case 300:return t.objectAssignmentInitializer===e;default:return ve(t)}}function xe(e){for(;163===e.kind||79===e.kind;)e=e.parent;return 183===e.kind}function be(e){return 268===e.kind&&280===e.moduleReference.kind}function De(e){return Se(e)}function Se(e){return!!e&&!!(262144&e.flags)}function Te(e){return!!e&&!!(8388608&e.flags)}function Ce(t,r){if(210!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ee(e){return Ne(e,!1)}function ke(e){return Ne(e,!0)}function Ne(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&Ce(r?fn(t.initializer):t.initializer,!0)}function Ae(t){return e.isBinaryExpression(t)||_n(t)||e.isIdentifier(t)||e.isCallExpression(t)}function Pe(t){return Se(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&qr(t.name)&&we(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Fe(t,r){if(e.isCallExpression(t)){var n=_t(t.expression);return 215===n.kind||216===n.kind?t:void 0}return 215===t.kind||228===t.kind||216===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function we(t,r){return At(t)&&At(r)?Pt(t)===Pt(r):e.isMemberName(t)&&Be(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))?we(t,Ve(r)):!(!Be(t)||!Be(r))&&We(t)===We(r)&&we(t.expression,r.expression)}function Ie(e){for(;Ur(e,!0);)e=e.right;return e}function Me(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Oe(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Le(t){return(e.isPropertyAccessExpression(t)||Je(t))&&Oe(t.expression)&&"exports"===We(t)}function Re(t){var r=function(t){if(e.isCallExpression(t)){if(!je(t))return 0;var r=t.arguments[0];return Me(r)||Le(r)?8:Ke(r)&&"prototype"===We(r)?9:7}return 63!==t.operatorToken.kind||!_n(t.left)||(n=Ie(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:Ue(t.left.expression,!0)&&"prototype"===We(t.left)&&e.isObjectLiteralExpression($e(t))?6:He(t.left);var n}(t);return 5===r||Se(t)?r:0}function je(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Tt(t.arguments[1])&&Ue(t.arguments[0],!0)}function Be(t){return e.isPropertyAccessExpression(t)||Je(t)}function Je(t){return e.isElementAccessExpression(t)&&Tt(t.argumentExpression)}function Ke(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&Ue(t.expression,!0))||ze(t,r)}function ze(e,t){return Je(e)&&(!t&&108===e.expression.kind||qr(e.expression)||Ke(e.expression,!0))}function Ue(e,t){return qr(e)||Ke(e,t)}function Ve(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function qe(t){if(e.isPropertyAccessExpression(t))return t.name;var r=_t(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function We(t){var r=qe(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function He(t){if(108===t.expression.kind)return 4;if(Le(t))return 2;if(Ue(t.expression,!0)){if(Hr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===We(r))&&Ke(t))return 1;if(Ue(t,!0)||e.isElementAccessExpression(t)&&kt(t))return 5}return 0}function $e(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Ge(t){switch(t.parent.kind){case 269:case 275:return t.parent;case 280:return t.parent.parent;case 210:return H(t.parent)||Ce(t.parent,!1)?t.parent:void 0;case 198:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Xe(t){switch(t.kind){case 269:case 275:return t.moduleSpecifier;case 268:return 280===t.moduleReference.kind?t.moduleReference.expression:void 0;case 202:return $(t)?t.argument.literal:void 0;case 210:return t.arguments[0];case 264:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Qe(e){return 348===e.kind||341===e.kind||342===e.kind}function Ye(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Re(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Ze(e){switch(e.kind){case 240:var t=et(e);return t&&t.initializer;case 169:case 299:return e.initializer}}function et(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function tt(t){return e.isModuleDeclaration(t)&&t.body&&264===t.body.kind?t.body:void 0}function rt(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(function(e){return nt(t,e)}));return r.tags===n?[r]:n}return nt(t,r)?[r]:void 0}function nt(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function it(t){var r=t.parent;return 299===r.kind||274===r.kind||169===r.kind||241===r.kind&&208===t.kind||250===r.kind||tt(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(et(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(et(r.parent.parent)||Ze(r.parent.parent)===t||Ye(r.parent.parent))?r.parent.parent:void 0}function at(t){var r=ot(t);if(r)return e.isPropertySignature(r)&&r.type&&e.isFunctionLike(r.type)?r.type:e.isFunctionLike(r)?r:void 0}function ot(t){var r=st(t);if(r)return Ye(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ie(t.expression):void 0}(r)||Ze(r)||et(r)||tt(r)||r}function st(t){var r=ct(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function ct(t){return e.findAncestor(t.parent,e.isJSDoc)}function lt(e){for(var t=e.parent;;){switch(t.kind){case 223:var r=t.operatorToken.kind;return Jr(r)&&t.left===e?63===r||Br(r)?1:2:0;case 221:case 222:var n=t.operator;return 45===n||46===n?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ut(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function dt(e){return ut(e,214)}function _t(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function ft(t){return qr(t)||e.isClassExpression(t)}function pt(e){return ft(mt(e))}function mt(t){return e.isExportAssignment(t)?t.expression:t.right}function gt(t){var r=yt(t);if(r&&Se(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function yt(e){var t=xt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function vt(t){if(Se(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=xt(t.heritageClauses,117);return null==r?void 0:r.types}function ht(e){var t=xt(e.heritageClauses,94);return t?t.types:void 0}function xt(e,t){if(e)for(var r=0,n=e;r0&&e.every(t.declarationList.declarations,(function(e){return Ee(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===x(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Ae,e.getEffectiveInitializer=Pe,e.getDeclaredExpandoInitializer=function(e){var t=Pe(e);return t&&Fe(t,Hr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Hr(t.parent.left);return Fe(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&Fe(r.right,n);if(i&&we(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&je(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&Fe(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=Fe,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&Fe(t.right,Hr(r))&&qr(r)&&we(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=we,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=Me,e.isModuleIdentifier=Oe,e.isModuleExportsAccessExpression=Le,e.getAssignmentDeclarationKind=Re,e.isBindableObjectDefinePropertyCall=je,e.isLiteralLikeAccess=Be,e.isLiteralLikeElementAccess=Je,e.isBindableStaticAccessExpression=Ke,e.isBindableStaticElementAccessExpression=ze,e.isBindableStaticNameExpression=Ue,e.getNameOrArgument=Ve,e.getElementOrPropertyAccessArgumentExpressionOrName=qe,e.getElementOrPropertyAccessName=We,e.getAssignmentDeclarationPropertyAccessKind=He,e.getInitializerOfBinaryExpression=$e,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Re(t)},e.isSpecialPropertyDeclaration=function(t){return Se(t)&&t.parent&&241===t.parent.kind&&(!e.isElementAccessExpression(t)||Je(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(16777216&t.flags)||16777216&r.flags)&&Ae(r)&&!Ae(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 259===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var r,n;switch(t.kind){case 257:return null===(r=e.findAncestor(t.initializer,(function(e){return Ce(e,!0)})))||void 0===r?void 0:r.arguments[0];case 269:return e.tryCast(t.moduleSpecifier,e.isStringLiteralLike);case 268:return e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike);default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return Ge(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Ge,e.getExternalModuleName=Xe,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 269:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 268:return t;case 275:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 269===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;return t.name&&(n=r(t))||t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r))?n:void 0},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Qe,e.isTypeAlias=function(t){return Qe(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ze,e.getSingleVariableOfVariableStatement=et,e.getJSDocCommentsAndTags=function(t,r){var n;ae(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,rt(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,rt(t,e.last(i.jsDoc)))),166===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(165===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=it(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=it,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=at(t);if(n){var i=e.find(n.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=function(t){if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,Qe);if(r)return r}return at(t)},e.getHostSignatureFromJSDoc=at,e.getEffectiveJSDocHost=ot,e.getJSDocHost=st,e.getJSDocRoot=ct,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasTypeArguments=function(e){return!!e.typeArguments},(re=e.AssignmentKind||(e.AssignmentKind={}))[re.None=0]="None",re[re.Definite=1]="Definite",re[re.Compound=2]="Compound",e.getAssignmentTargetKind=lt,e.isAssignmentTarget=function(e){return 0!==lt(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295: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 ut(e,193)},e.walkUpParenthesizedExpressions=dt,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&193===e.kind;)t=e,e=e.parent;return[t,e]},e.skipTypeParentheses=function(t){for(;e.isParenthesizedTypeNode(t);)t=t.type;return t},e.skipParentheses=_t,e.isDeleteTarget=function(e){return(208===e.kind||209===e.kind)&&(e=dt(e.parent))&&217===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.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Re(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return Tt(t)&&164===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return!!(268===t.kind||267===t.kind||270===t.kind&&t.name||271===t.kind||277===t.kind||273===t.kind||278===t.kind||274===t.kind&&pt(t))||Se(t)&&(e.isBinaryExpression(t)&&2===Re(t)&&pt(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ft(t.parent.right))},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return t.parent;case 163:do{t=t.parent}while(163===t.parent.kind);return e(t)}},e.isAliasableExpression=ft,e.exportAssignmentIsAlias=pt,e.getExportAssignmentExpression=mt,e.getPropertyAssignmentAliasLikeExpression=function(e){return 300===e.kind?e.name:299===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=gt,e.getClassExtendsHeritageElement=yt,e.getEffectiveImplementsTypeNodes=vt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?ht(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(gt(t)),vt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=ht,e.getHeritageClause=xt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=bt,e.isContextualKeyword=Dt,e.isNonContextualKeyword=St,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&St(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&bt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!Dt(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(te=e.FunctionFlags||(e.FunctionFlags={}))[te.Normal=0]="Normal",te[te.Generator=1]="Generator",te[te.Async=2]="Async",te[te.Invalid=4]="Invalid",te[te.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:Cr(e,512)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 259:case 215:case 216:case 171:return void 0!==e.body&&void 0===e.asteriskToken&&Cr(e,512)}return!1},e.isStringOrNumericLiteralLike=Tt,e.isSignedNumericLiteral=Ct,e.hasDynamicName=Et,e.isDynamicName=kt,e.getPropertyNameForPropertyNameNode=Nt,e.isPropertyNameLiteral=At,e.getTextOfIdentifierOrLiteral=Pt,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName)},e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#".concat(e.getSymbolId(t),"@").concat(r)},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 166===Ft(e).kind},e.getRootDeclaration=Ft,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 173===t||215===t||259===t||216===t||171===t||174===t||175===t||264===t||308===t},e.nodeIsSynthesized=wt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(ee=e.Associativity||(e.Associativity={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=Mt(e),r=211===e.kind&&void 0!==e.arguments;return It(e.kind,t,r)},e.getOperatorAssociativity=It,e.getExpressionPrecedence=function(e){var t=Mt(e),r=211===e.kind&&void 0!==e.arguments;return Ot(e.kind,t,r)},e.getOperator=Mt,(Z=e.OperatorPrecedence||(e.OperatorPrecedence={}))[Z.Comma=0]="Comma",Z[Z.Spread=1]="Spread",Z[Z.Yield=2]="Yield",Z[Z.Assignment=3]="Assignment",Z[Z.Conditional=4]="Conditional",Z[Z.Coalesce=4]="Coalesce",Z[Z.LogicalOR=5]="LogicalOR",Z[Z.LogicalAND=6]="LogicalAND",Z[Z.BitwiseOR=7]="BitwiseOR",Z[Z.BitwiseXOR=8]="BitwiseXOR",Z[Z.BitwiseAND=9]="BitwiseAND",Z[Z.Equality=10]="Equality",Z[Z.Relational=11]="Relational",Z[Z.Shift=12]="Shift",Z[Z.Additive=13]="Additive",Z[Z.Multiplicative=14]="Multiplicative",Z[Z.Exponentiation=15]="Exponentiation",Z[Z.Unary=16]="Unary",Z[Z.Update=17]="Update",Z[Z.LeftHandSide=18]="LeftHandSide",Z[Z.Member=19]="Member",Z[Z.Primary=20]="Primary",Z[Z.Highest=20]="Highest",Z[Z.Lowest=0]="Lowest",Z[Z.Invalid=-1]="Invalid",e.getOperatorPrecedence=Ot,e.getBinaryOperatorPrecedence=Lt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 291:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,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,Nn)},lookup:function(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,Nn);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.flatMapToMutable(r,(function(e){return n.get(e)}));return t.length?(a.unshift.apply(a,t),a):a}}};var Rt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var jt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Bt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Jt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Kt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085","\r\n":"\\r\\n"}));function zt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Ut(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Kt.get(e)||zt(e.charCodeAt(0))}function Vt(e,t){var r=96===t?Jt:39===t?Bt:jt;return e.replace(r,Ut)}e.escapeString=Vt;var qt=/[^\u0000-\u007F]/g;function Wt(e,t){return e=Vt(e,t),qt.test(e)?e.replace(qt,(function(e){return zt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Wt;var Ht=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,$t=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Gt=new e.Map(e.getEntries({'"':""","'":"'"}));function Xt(e){return 0===e.charCodeAt(0)?"�":Gt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Qt(e,t){var r=39===t?$t:Ht;return e.replace(r,Xt)}e.escapeJsxAttributeString=Qt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Yt=[""," "];function Zt(e){for(var t=Yt[1],r=Yt.length;r<=e;r++)Yt.push(Yt[r-1]+t);return Yt[e]}function er(){return Yt[1].length}function tr(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function rr(e,t,r){return t.moduleName||ir(e,t.fileName,r&&r.fileName)}function nr(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function ir(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=pi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function ar(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?ur(e,a,r,n,i):e,s=or(o);return pi(o)+s}function or(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":".d.ts"}function sr(e){return e.outFile||e.out}function cr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&De(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(q(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function lr(e,t,r){return ur(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function ur(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 dr(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(dr(e.getDirectoryPath(t),r,n),r(t))}function _r(t,r){return e.computeLineOfPosition(t,r)}function fr(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&p(t.body)}))}function pr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&mr(e.parameters[0]);return e.parameters[t?1:0]}}function mr(e){return gr(e.name)}function gr(e){return!!e&&79===e.kind&&yr(e)}function yr(e){return 108===e.originalKeywordKind}function vr(t){if(Se(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!Se(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function hr(e,t,r,n){xr(e,t,r.pos,n)}function xr(e,t,r,n){n&&n.length&&r!==n[0].pos&&_r(e,r)!==_r(e,n[0].pos)&&t.writeLine()}function br(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l=0&&e.kind<=162?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Lr(e)),!t||4096&e.modifierFlagsCache||!r&&!Se(e)||!e.parent||(e.modifierFlagsCache|=4096|Or(e)),-536875009&e.modifierFlagsCache)}function Ir(e){return wr(e,!0)}function Mr(e){return wr(e,!1)}function Or(t){var r=0;return t.parent&&!e.isParameter(t)&&(Se(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Lr(t){var r=e.canHaveModifiers(t)?Rr(t.modifiers):0;return(4&t.flags||79===t.kind&&t.isInJSDocNamespace)&&(r|=1),r}function Rr(e){var t=0;if(e)for(var r=0,n=e;r=63&&e<=78}function Kr(e){var t=zr(e);return t&&!t.isImplements?t.class:void 0}function zr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Ur(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Jr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Vr(e){return void 0!==Kr(e)}function qr(e){return 79===e.kind||Wr(e)}function Wr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&qr(t.expression)}function Hr(e){return Ke(e)&&"prototype"===We(e)}function $r(t){return e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isElementAccessExpression(t.parent)&&t.parent.argumentExpression===t}e.getIndentString=Zt,e.getIndentSize=er,e.isNightly=function(){return e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders")},e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(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 l(e){e&&e.length&&(i&&(e=Zt(n)+e,i=!1),r+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*er():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return s(s({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=tr,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(tr(t))},e.getResolvedExternalModuleName=rr,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=Xe(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==nr(t,i.path).indexOf(nr(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return rr(t,i)}},e.getExternalModuleNameFromPath=ir,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?pi(lr(e,t,n.outDir)):pi(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return ar(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=ar,e.getDeclarationEmitExtensionForPath=or,e.getPossibleOriginalInputExtensionForExtension=function(t){return e.fileExtensionIsOneOf(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(t,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]},e.outFile=sr,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(sr(i)){var a=Mn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&cr(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return cr(e,t,n)}))},e.sourceFileMayBeEmitted=cr,e.getSourceFilePathInNewDir=lr,e.getSourceFilePathInNewDirWorker=ur,e.writeFile=function(t,r,n,i,a,o,s){t.writeFile(n,i,a,(function(t){r.add(En(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o,s)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){dr(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=_r,e.getFirstConstructorWithBody=fr,e.getSetAccessorValueParameter=pr,e.getSetAccessorTypeAnnotationNode=function(e){var t=pr(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(mr(r))return r}},e.parameterIsThisKeyword=mr,e.isThisIdentifier=gr,e.isThisInTypeQuery=function(t){if(!gr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 183===t.parent.kind},e.identifierIsThisKeyword=yr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return Et(r)?(n=r,174===r.kind?a=r:175===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&Er(t)===Er(r)&&Nt(t.name)===Nt(r.name)&&(n?i||(i=t):n=t,174!==t.kind||a||(a=t),175!==t.kind||o||(o=t))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=vr,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||(Se(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)&&!(323===t.parent.kind&&t.parent.tags.some(Qe))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=pr(e);return t&&vr(t)},e.emitNewLineBeforeLeadingComments=hr,e.emitNewLineBeforeLeadingCommentsOfPosition=xr,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&_r(e,r)!==_r(e,n)&&t.writeLine()},e.emitComments=br,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return v(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],d=void 0,_=0,f=c;_=m+2)break}u.push(p),d=p}u.length&&(m=_r(r,e.last(u).end),_r(r,e.skipTrivia(t,a.pos))>=m+2&&(hr(r,n,a,c),br(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},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,l=void 0,u=i,d=s.line;u0){var p=f%er(),m=Zt((f-p)/er());for(n.rawWrite(m);p;)n.rawWrite(" "),p--}else n.rawWrite("")}Dr(t,a,n,o,u,_),u=_}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==Ir(e)},e.hasSyntacticModifiers=function(e){return 0!==Mr(e)},e.hasEffectiveModifier=Tr,e.hasSyntacticModifier=Cr,e.isStatic=Er,e.hasStaticModifier=kr,e.hasOverrideModifier=function(e){return Tr(e,16384)},e.hasAbstractModifier=function(e){return Cr(e,256)},e.hasAmbientModifier=function(e){return Cr(e,2)},e.hasAccessorModifier=function(e){return Cr(e,128)},e.hasEffectiveReadonlyModifier=Nr,e.hasDecorators=Ar,e.getSelectedEffectiveModifierFlags=Pr,e.getSelectedSyntacticModifierFlags=Fr,e.getEffectiveModifierFlags=Ir,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return wr(e,!0,!0)},e.getSyntacticModifierFlags=Mr,e.getEffectiveModifierFlagsNoCache=function(e){return Lr(e)|Or(e)},e.getSyntacticModifierFlagsNoCache=Lr,e.modifiersToFlags=Rr,e.modifierToFlag=jr,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Br,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Br(e.operatorToken.kind)},e.isAssignmentOperator=Jr,e.tryGetClassExtendingExpressionWithTypeArguments=Kr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=zr,e.isAssignmentExpression=Ur,e.isLeftHandSideOfAssignment=function(e){return Ur(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Ur(e,!0)){var t=e.left.kind;return 207===t||206===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Vr,e.isEntityNameExpression=qr,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 163:do{e=e.left}while(79!==e.kind);return e;case 208:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||233===t.kind||208===t.kind&&e(t.expression)||214===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Wr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+B(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+Nt(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Hr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 163===e.parent.kind&&e.parent.right===e||208===e.parent.kind&&e.parent.name===e},e.isRightSideOfAccessExpression=$r,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 207===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 206===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&Cr(t.declarations[0],1024)}(t)&&t.declarations)for(var r=0,n=t.declarations;r>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,l=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>=l?i=a=64:c+2>=l&&(a=64),o+=Qr.charAt(r)+Qr.charAt(n)+Qr.charAt(i)+Qr.charAt(a),c+=3;return o}function Zr(t,r){var n=e.isString(r)?r:r.readFile(t);if(n){var i=e.parseConfigFileTextToJson(t,n);return i.error?void 0:i.config}}function en(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function tn(e,t){return en(t,e.end)}function rn(t){var r=e.canHaveModifiers(t)?e.findLast(t.modifiers,e.isDecorator):void 0;return r&&!vi(r.end)?tn(t,r.end):t}function nn(e,t,r){return an(on(e,r,!1),t.end,r)}function an(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function on(t,r,n){return vi(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function sn(e){return void 0!==e.initializer}function cn(e){return 33554432&e.flags?e.checkFlags:0}function ln(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 214:case 206:return ln(r);case 222:case 221:var n=r.operator;return 45===n||46===n?c():0;case 223:var i=r,a=i.left,o=i.operatorToken;return a===t&&Jr(o.kind)?63===o.kind?1:c():0;case 208:return r.name!==t?0:ln(r);case 299:var s=ln(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 300:return t===r.objectAssignmentInitializer?0:ln(r.parent);default:return 0}function c(){return r.parent&&241===dt(r.parent).kind?1:2}}function un(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach((function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function dn(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function _n(e){return 208===e.kind||209===e.kind}function fn(e){for(;_n(e);)e=e.expression;return e}function pn(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function mn(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function gn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function yn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function vn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function hn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function xn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function bn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function Dn(e){return Xr&&Xr[e.key]||e.message}function Sn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Tn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(i=bn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function En(e){var t=Dn(e);return arguments.length>1&&(t=bn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function kn(e){return e.file?e.file.path:void 0}function Nn(t,r){return e.compareStringsCaseSensitive(kn(t),kn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||An(t.messageText,r.messageText)||0}function An(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;ar.next.length?1:0}function Pn(t){if(2&t.transformFlags)return e.isJsxOpeningLikeElement(t)||e.isJsxFragment(t)?t:e.forEachChild(t,Pn)}function Fn(e){return e.isDeclarationFile?void 0:Pn(e)}function wn(t){return!(t.impliedNodeFormat!==e.ModuleKind.ESNext&&!e.fileExtensionIsOneOf(t.fileName,[".cjs",".cts",".mjs",".mts"])||t.isDeclarationFile)||void 0}function In(t){return t.target||t.module===e.ModuleKind.Node16&&9||t.module===e.ModuleKind.NodeNext&&99||0}function Mn(t){return"number"==typeof t.module?t.module:In(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function On(t){return t.moduleDetection||(Mn(t)===e.ModuleKind.Node16||Mn(t)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}function Ln(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(Mn(t)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}function Rn(e){return!(!e.declaration&&!e.composite)}function jn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Bn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Jn(e,t){return t.strictFlag?jn(e,t.name):e[t.name]}function Kn(t,r){return void 0!==t&&("node_modules"===r(t)||e.startsWith(t,"@"))}e.convertToBase64=Yr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Yr(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,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===d&&0!==c?n.push(l,u):n.push(l,u,d),i+=4}return function(e){for(var t="",r=0,n=e.length;rr;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 263:case 264:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,sn)},e.isWatchSet=function(t){return t.watch&&e.hasProperty(t,"watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=cn,e.getDeclarationModifierFlagsFromSymbol=function(t,r){if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,e.isSetAccessorDeclaration)||32768&t.flags&&e.find(t.declarations,e.isGetAccessorDeclaration)||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&cn(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?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===ln(e)},e.isWriteAccess=function(e){return 0!==ln(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Gr||(Gr={})),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"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=un,e.mutateMap=function(e,t,r){un(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=dn(e);return!!t&&Cr(t,256)}return!1},e.getClassLikeDeclarationOfSymbol=dn,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(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:D(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){p(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(p(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=179&&e<=202||131===e||157===e||148===e||160===e||149===e||134===e||152===e||153===e||114===e||155===e||144===e||230===e||315===e||316===e||317===e||318===e||319===e||320===e||321===e},e.isAccessExpression=_n,e.getNameOfAccessExpression=function(t){return 208===t.kind?t.name:(e.Debug.assert(209===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 272===e.kind||276===e.kind},e.getLeftmostAccessExpression=fn,e.forEachNameInAccessChainWalkingLeft=function(t,r){if(_n(t.parent)&&$r(t))return function t(n){if(208===n.kind){if(void 0!==(i=r(n.name)))return i}else if(209===n.kind){if(!e.isIdentifier(n.argumentExpression)&&!e.isStringLiteralLike(n.argumentExpression))return;var i;if(void 0!==(i=r(n.argumentExpression)))return i}return _n(n.expression)?t(n.expression):e.isIdentifier(n.expression)?r(n.expression):void 0}(t.parent)},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 353:case 235:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return yn},getTokenConstructor:function(){return vn},getIdentifierConstructor:function(){return hn},getPrivateIdentifierConstructor:function(){return yn},getSourceFileConstructor:function(){return yn},getSymbolConstructor:function(){return pn},getTypeConstructor:function(){return mn},getSignatureConstructor:function(){return gn},getSourceMapSourceConstructor:function(){return xn}},e.setObjectAllocator=function(t){Object.assign(e.objectAllocator,t)},e.formatStringFromArgs=bn,e.setLocalizedDiagnosticMessages=function(e){Xr=e},e.maybeSetLocalizedDiagnosticMessages=function(e){!Xr&&e&&(Xr=e())},e.getLocaleSpecificMessage=Dn,e.createDetachedDiagnostic=function(e,t,r,n){K(void 0,t,r);var i=Dn(n);return arguments.length>4&&(i=bn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n2&&(r=bn(r,arguments,2)),r},e.createCompilerDiagnostic=En,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=Dn(t);return arguments.length>2&&(r=bn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=function t(r,n){return Nn(r,n)||function(r,n){return r.relatedInformation||n.relatedInformation?r.relatedInformation&&n.relatedInformation?e.compareValues(r.relatedInformation.length,n.relatedInformation.length)||e.forEach(r.relatedInformation,(function(e,r){return t(e,n.relatedInformation[r])}))||0:r.relatedInformation?-1:1:0}(r,n)||0},e.compareDiagnosticsSkipRelatedInformation=Nn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getSetExternalModuleIndicator=function(t){switch(On(t)){case e.ModuleDetectionKind.Force:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)||!t.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)};case e.ModuleDetectionKind.Auto:var r=[e.isFileProbablyExternalModule];4!==t.jsx&&5!==t.jsx||r.push(Fn),r.push(wn);var n=e.or.apply(void 0,r);return function(e){e.externalModuleIndicator=n(e)}}},e.getEmitScriptTarget=In,e.getEmitModuleKind=Mn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;if(void 0===r)switch(Mn(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:r=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.getEmitModuleDetectionKind=On,e.hasJsonModuleEmitEnabled=function(t){switch(Mn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Rn(e)||!e.declarationMap)},e.getESModuleInterop=Ln,e.getAllowSyntheticDefaultImports=function(t){var r=Mn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Ln(t)||r===e.ModuleKind.System},e.getEmitDeclarations=Rn,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=jn,e.getAllowJSCompilerOption=Bn,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?In(e)>=9:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return c(r,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,r){return c(r,t,e.affectsEmitOptionDeclarations)},e.compilerOptionsAffectDeclarationPath=function(t,r){return c(r,t,e.affectsDeclarationPathOptionDeclarations)},e.getCompilerOptionValue=Jn,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r=2&&o.length>=2&&!Kn(a[a.length-2],i)&&!Kn(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}(a,o,t,r)||e.emptyArray,c=s[0],l=s[1];c&&l&&n.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,t,r)})}}},e.tryRemoveDirectoryPrefix=function(t,r,n){var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var zn=/[^\w\s\/]/g;function Un(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(zn,Un)};var Vn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var qn="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Wn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(qn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ei(e,Wn.singleAsteriskRegexFragment)}},Hn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(qn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ei(e,Hn.singleAsteriskRegexFragment)}},$n={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return ei(e,$n.singleAsteriskRegexFragment)}},Gn={files:Wn,directories:Hn,exclude:$n};function Xn(e,t,r){var n=Qn(e,t,r);if(n&&n.length){var i=n.map((function(e){return"(".concat(e,")")})).join("|"),a="exclude"===r?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Qn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(e){return e&&Zn(e,r,n,Gn[n])}))}function Yn(e){return!/[.*?]/.test(e)}function Zn(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,r),d=e.last(u);if("exclude"===n||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Yn(d)&&u.push("**","*");for(var _=0,f=0,p=u;f0;)c+=")?",_--;return c}}function ei(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ti(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Qn(n,o,"files"),(function(e){return"^".concat(e,"$")})),includeFilePattern:Xn(n,o,"files"),includeDirectoryPattern:Xn(n,o,"directories"),excludePattern:Xn(r,o,"exclude"),basePaths:ni(t,n,i)}}function ri(e,t){return new RegExp(e,t?"":"i")}function ni(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o=0)}function hi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function xi(t){return e.find(fi,(function(r){return e.fileExtensionIs(t,r)}))}function bi(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,bi)}function Di(e,t){return e.pos=t,e}function Si(e,t){return e.end=t,e}function Ti(e,t,r){return Si(Di(e,t),r)}function Ci(e,t){return e&&t&&(e.parent=t),e}function Ei(t){return!e.isOmittedExpression(t)}function ki(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}function Ni(e){return 257===e.kind&&295===e.parent.kind}function Ai(e){return(+e).toString()===e}function Pi(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 348:case 341:case 342:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}e.removeFileExtension=pi,e.tryRemoveExtension=mi,e.removeExtension=gi,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,fi,!1)},e.tryParsePattern=yi,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return yi(e)}))},e.positionIsSynthesized=vi,e.extensionIsTS=hi,e.resolutionExtensionIsTSOrJson=function(e){return hi(e)||".json"===e},e.extensionFromPath=function(t){var r=xi(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=function(e){return void 0!==xi(e)},e.tryGetExtensionFromPath=xi,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;ii&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=bi,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var _=d>>>16;_&&(o[l+1]|=_)}for(var f="",p=o.length-1,m=!0;m;){var g=0;for(m=!1,l=p;l>=0;l--){var y=g<<16|o[l],v=y/10|0;o[l]=v,g=y-10*v,v&&!m&&(p=l,m=!0)}f=g+f}return f},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(16777216&t.flags)||xe(t)||function(t){if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||261===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;79===e.kind||208===e.kind;)e=e.parent;if(164!==e.kind)return!1;if(Cr(e.parent,256))return!0;var t=e.parent.parent.kind;return 261===t||184===t}(t)||!(ve(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)},e.isThisTypeParameter=function(e){return!!(262144&e.flags&&e.isThisType)},e.getNodeModulePathParts=function(t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0},e.getParameterTypeNode=function(e){var t;return 343===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type},e.isTypeDeclaration=Pi,e.canHaveExportModifier=function(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||Pi(t)||e.isModuleDeclaration(t)&&!A(t)&&!N(t)}}(_||(_={})),function(e){e.createBaseNodeFactory=function(){var t,r,n,i,a;return{createBaseSourceFileNode:function(t){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(r){return new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}}}(_||(_={})),function(e){e.createParenthesizerRules=function(t){var r,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(t){r||(r=new e.Map);var n=r.get(t);return n||(n=function(e){return o(t,e)},r.set(t,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(t){n||(n=new e.Map);var r=n.get(t);return r||(r=function(e){return s(t,void 0,e)},n.set(t,r)),r},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(r){return e.isCommaSequence(r)?t.createParenthesizedExpression(r):r},parenthesizeConditionOfConditionalExpression:function(r){var n=e.getOperatorPrecedence(224,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,n)?t.createParenthesizedExpression(r):r},parenthesizeBranchOfConditionalExpression:function(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault:function(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 228:case 215:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew:function(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 210:return t.createParenthesizedExpression(r);case 211:return n.arguments?r:t.createParenthesizedExpression(r)}return c(r)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:function(r){return e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeOperandOfPrefixUnary:function(r){return e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeExpressionsOfCommaDelimitedList:function(r){var n=e.sameMap(r,l);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(215===a||216===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;return 207===s||215===s?e.setTextRange(t.createParenthesizedExpression(r),r):r},parenthesizeConciseBodyOfArrowFunction:function(r){return e.isBlock(r)||!e.isCommaSequence(r)&&207!==e.getLeftmostExpression(r,!1).kind?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeCheckTypeOfConditionalType:u,parenthesizeExtendsTypeOfConditionalType:function(e){return 191===e.kind?t.createParenthesizedType(e):e},parenthesizeConstituentTypesOfUnionType:function(r){return t.createNodeArray(e.sameMap(r,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(r){return t.createNodeArray(e.sameMap(r,_))},parenthesizeConstituentTypeOfIntersectionType:_,parenthesizeOperandOfTypeOperator:f,parenthesizeOperandOfReadonlyTypeOperator:function(e){return 195===e.kind?t.createParenthesizedType(e):f(e)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(r){return t.createNodeArray(e.sameMap(r,m))},parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:function(e){return g(e)?t.createParenthesizedType(e):p(e)},parenthesizeTypeArguments:function(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,v))},parenthesizeLeadingTypeArgument:y};function i(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(223===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=i(t.left),n=e.isLiteralKind(r)&&r===i(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function a(r,n,a,o){return 214===e.skipPartiallyEmittedExpressions(n).kind?n:function(t,r,n,a){var o=e.getOperatorPrecedence(223,t),s=e.getOperatorAssociativity(223,t),c=e.skipPartiallyEmittedExpressions(r);if(!n&&216===r.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&226===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e||27===e}(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r,n){var i=e.skipPartiallyEmittedExpressions(r);return!e.isLeftHandSideExpression(i)||211===i.kind&&!i.arguments||!n&&e.isOptionalChain(i)?e.setTextRange(t.createParenthesizedExpression(r),r):r}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(223,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(e){switch(e.kind){case 181:case 182:case 191:return t.createParenthesizedType(e)}return e}function d(e){switch(e.kind){case 189:case 190:return t.createParenthesizedType(e)}return u(e)}function _(e){switch(e.kind){case 189:case 190:return t.createParenthesizedType(e)}return d(e)}function f(e){return 190===e.kind?t.createParenthesizedType(e):_(e)}function p(e){switch(e.kind){case 192:case 195:case 183:return t.createParenthesizedType(e)}return f(e)}function m(e){return g(e)?t.createParenthesizedType(e):e}function g(t){return e.isJSDocNullableType(t)?t.postfix:e.isNamedTupleMember(t)||e.isFunctionTypeNode(t)||e.isConstructorTypeNode(t)||e.isTypeOperatorNode(t)?g(t.type):e.isConditionalTypeNode(t)?g(t.falseType):e.isUnionTypeNode(t)||e.isIntersectionTypeNode(t)?g(e.last(t.types)):!!e.isInferTypeNode(t)&&!!t.typeParameter.constraint&&g(t.typeParameter.constraint)}function y(r){return e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}function v(e,t){return 0===t?y(e):e}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)},parenthesizeLeadingTypeArgument:e.identity}}(_||(_={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);return e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0),n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 204:case 206:return o(e);case 203:case 207:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(_||(_={})),function(e){var t,r,n=0;function i(r,i){var p=8&r?a:s,m=e.memoize((function(){return 1&r?e.nullParenthesizerRules:e.createParenthesizerRules(P)})),g=e.memoize((function(){return 2&r?e.nullNodeConverters:e.createNodeConverters(P)})),y=e.memoizeOne((function(e){return function(t,r){return Bt(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return Rt(e,t)}})),x=e.memoizeOne((function(e){return function(t){return jt(t,e)}})),b=e.memoizeOne((function(e){return function(){return function(e){return w(e)}(e)}})),D=e.memoizeOne((function(e){return function(t){return un(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?p(un(e,r),t):t}(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r){return ln(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?p(ln(e,r,t.postfix),t):t}(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r){return Pn(e,t,r)}})),k=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){return void 0===r&&(r=mn(t)),t.tagName!==r||t.comment!==n?p(Pn(e,r,n),t):t}(e,t,r,n)}})),N=e.memoizeOne((function(e){return function(t,r,n){return Fn(e,t,r,n)}})),A=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){return void 0===r&&(r=mn(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?p(Fn(e,r,n,i),t):t}(e,t,r,n,i)}})),P={get parenthesizer(){return m()},get converters(){return g()},baseFactory:i,flags:r,createNodeArray:F,createNumericLiteral:V,createBigIntLiteral:q,createStringLiteral:H,createStringLiteralFromNode:function(t){var r=W(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:$,createLiteralLikeNode:function(e,t){switch(e){case 8:return V(t,0);case 9:return q(t);case 10:return H(t,void 0);case 11:return Jn(t,!1);case 12:return Jn(t,!0);case 13:return $(t);case 14:return Vt(e,t,void 0,0)}},createIdentifier:Q,updateIdentifier:function(t,r){return t.typeArguments!==r?p(Q(e.idText(t),r),t):t},createTempVariable:Y,createLoopVariable:function(e){var t=2;return e&&(t|=8),X("",t,void 0,void 0)},createUniqueName:function(t,r,n,i){return void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),X(t,3|r,n,i)},getGeneratedNameForNode:Z,createPrivateIdentifier:function(t){return e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t),ee(t)},createUniquePrivateName:function(t,r,n){return t&&!e.startsWith(t,"#")&&e.Debug.fail("First character of private identifier must be #: "+t),te(null!=t?t:"",8|(t?3:1),r,n)},getGeneratedPrivateNameForNode:function(t,r,n){var i=te(e.isMemberName(t)?e.formatGeneratedName(!0,r,t,n,e.idText):"#generated@".concat(e.getNodeId(t)),4|(r||n?16:0),r,n);return i.original=t,i},createToken:ne,createSuper:function(){return ne(106)},createThis:ie,createNull:function(){return ne(104)},createTrue:ae,createFalse:oe,createModifier:se,createModifiersFromModifierFlags:ce,createQualifiedName:le,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?p(le(t,r),e):e},createComputedPropertyName:ue,updateComputedPropertyName:function(e,t){return e.expression!==t?p(ue(t),e):e},createTypeParameterDeclaration:de,updateTypeParameterDeclaration:_e,createParameterDeclaration:fe,updateParameterDeclaration:pe,createDecorator:me,updateDecorator:function(e,t){return e.expression!==t?p(me(t),e):e},createPropertySignature:ge,updatePropertySignature:ye,createPropertyDeclaration:ve,updatePropertyDeclaration:he,createMethodSignature:xe,updateMethodSignature:be,createMethodDeclaration:De,updateMethodDeclaration:Se,createConstructorDeclaration:Ce,updateConstructorDeclaration:Ee,createGetAccessorDeclaration:ke,updateGetAccessorDeclaration:Ne,createSetAccessorDeclaration:Ae,updateSetAccessorDeclaration:Pe,createCallSignature:Fe,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?R(Fe(t,r,n),e):e},createConstructSignature:we,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?R(we(t,r,n),e):e},createIndexSignature:Ie,updateIndexSignature:Me,createClassStaticBlockDeclaration:Te,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((r=Te(t))!==(n=e)&&(r.illegalDecorators=n.illegalDecorators,r.modifiers=n.modifiers),p(r,n)):e;var r,n},createTemplateLiteralTypeSpan:Oe,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?p(Oe(t,r),e):e},createKeywordTypeNode:function(e){return ne(e)},createTypePredicateNode:Le,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?p(Le(t,r,n),e):e},createTypeReferenceNode:Re,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?p(Re(t,r),e):e},createFunctionTypeNode:je,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?((i=je(t,r,n))!==(a=e)&&(i.modifiers=a.modifiers),R(i,a)):e;var i,a},createConstructorTypeNode:Be,updateConstructorTypeNode:function(){for(var t=[],r=0;r10?ii(t):e.reduceLeft(t,P.createComma)},getInternalName:function(e,t,r){return _i(e,t,r,49152)},getLocalName:function(e,t,r){return _i(e,t,r,16384)},getExportName:fi,getDeclarationName:function(e,t,r){return _i(e,t,r)},getNamespaceMemberName:pi,getExternalModuleOrNamespaceExportName:function(t,r,n,i){return t&&e.hasSyntacticModifier(r,1)?pi(t,_i(r),n,i):fi(r,n,i)},restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(e,t){switch(e.kind){case 214:return Nt(e,t);case 213:return Et(e,e.type,t);case 231:return Qt(e,t,e.type);case 235:return tr(e,t,e.type);case 232:return Zt(e,t);case 353:return ri(e,t)}}(r,t(r.expression,n)):n;var a},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=Sr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);return i&&i(n),a},createUseStrictPrologue:mi,copyPrologue:function(e,t,r,n){return yi(e,t,gi(e,t,0,r),n)},copyStandardPrologue:gi,copyCustomPrologue:yi,ensureUseStrict:function(t){return e.findUseStrictPrologue(t)?t:e.setTextRange(F(o([mi()],t,!0)),t)},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||or(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var n=vi(t,e.isPrologueDirective,0),i=vi(t,e.isHoistedFunction,n),a=vi(t,e.isHoistedVariableStatement,i),s=vi(r,e.isPrologueDirective,0),c=vi(r,e.isHoistedFunction,s),l=vi(r,e.isHoistedVariableStatement,c),u=vi(r,e.isCustomPrologue,l);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;if(u>l&&d.splice.apply(d,o([a,0],r.slice(l,u),!1)),l>c&&d.splice.apply(d,o([i,0],r.slice(c,l),!1)),c>s&&d.splice.apply(d,o([n,0],r.slice(s,c),!1)),s>0)if(0===n)d.splice.apply(d,o([0,0],r.slice(0,s),!1));else{for(var _=new e.Map,f=0;f=0;f--){var m=r[f];_.has(m.expression.text)||d.unshift(m)}}return e.isNodeArray(t)?e.setTextRange(F(d,t.hasTrailingComma),t):t},updateModifiers:function(t,r){var n,i;return i="number"==typeof r?ce(r):r,e.isTypeParameterDeclaration(t)?_e(t,i,t.name,t.constraint,t.default):e.isParameter(t)?pe(t,i,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isConstructorTypeNode(t)?ze(t,i,t.typeParameters,t.parameters,t.type):e.isPropertySignature(t)?ye(t,i,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?he(t,i,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?be(t,i,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?Se(t,i,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?Ee(t,i,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ne(t,i,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Pe(t,i,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Me(t,i,t.parameters,t.type):e.isFunctionExpression(t)?Pt(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?wt(t,i,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?$t(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?cr(t,i,t.declarationList):e.isFunctionDeclaration(t)?Ar(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Fr(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?Ir(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Or(t,i,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Rr(t,i,t.name,t.members):e.isModuleDeclaration(t)?Br(t,i,t.name,t.body):e.isImportEqualsDeclaration(t)?Vr(t,i,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Wr(t,i,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?rn(t,i,t.expression):e.isExportDeclaration(t)?an(t,i,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return P;function F(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&f(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,f(a),e.Debug.attachNodeArrayDebugInfo(a),a}function w(e){return i.createBaseNode(e)}function I(e){var t=w(e);return t.symbol=void 0,t.localSymbol=void 0,t.locals=void 0,t.nextContainer=void 0,t}function M(t,r,n){var i=I(t);if(n=xi(n),i.name=n,e.canHaveModifiers(i)&&(i.modifiers=hi(r),i.transformFlags|=_(i.modifiers)),n)switch(i.kind){case 171:case 174:case 175:case 169:case 299:if(e.isIdentifier(n)){i.transformFlags|=u(n);break}default:i.transformFlags|=d(n)}return i}function O(e,t,r,n){var i=M(e,t,r);return i.typeParameters=hi(n),i.transformFlags|=_(i.typeParameters),n&&(i.transformFlags|=1),i}function L(e,t,r,n,i,a){var o=O(e,t,r,n);return o.parameters=F(i),o.type=a,o.transformFlags|=_(o.parameters)|d(o.type),a&&(o.transformFlags|=1),o.typeArguments=void 0,o}function R(e,t){return e!==t&&(e.typeArguments=t.typeArguments),p(e,t)}function j(e,t,r,n,i,a,o){var s=L(e,t,r,n,i,a);return s.body=o,s.transformFlags|=-67108865&d(s.body),o||(s.transformFlags|=1),s}function B(e,t,r,n,i){var a=O(e,t,r,n);return a.heritageClauses=hi(i),a.transformFlags|=_(a.heritageClauses),a}function J(e,t,r,n,i,a){var o=B(e,t,r,n,i);return o.members=F(a),o.transformFlags|=_(o.members),o}function K(e,t,r,n){var i=M(e,t,r);return i.initializer=n,i.transformFlags|=d(i.initializer),i}function z(e,t,r,n,i){var a=K(e,t,r,i);return a.type=n,a.transformFlags|=d(n),n&&(a.transformFlags|=1),a}function U(e,t){var r=re(e);return r.text=t,r}function V(e,t){void 0===t&&(t=0);var r=U(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function q(t){var r=U(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function W(e,t){var r=U(10,e);return r.singleQuote=t,r}function H(e,t,r){var n=W(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=1024),n}function $(e){return U(13,e)}function G(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=i.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function X(e,t,r,i){var a=G(e,void 0);return a.autoGenerateFlags=t,a.autoGenerateId=n,a.autoGeneratePrefix=r,a.autoGenerateSuffix=i,n++,a}function Q(e,t,r,n){var i=G(e,r);return t&&(i.typeArguments=F(t)),133===i.originalKeywordKind&&(i.transformFlags|=67108864),n&&(i.hasExtendedUnicodeEscape=n,i.transformFlags|=1024),i}function Y(e,t,r,n){var i=1;t&&(i|=8);var a=X("",i,r,n);return e&&e(a),a}function Z(t,r,n,i){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),(n||i)&&(r|=16);var a=X(t?e.isMemberName(t)?e.formatGeneratedName(!1,n,t,i,e.idText):"generated@".concat(e.getNodeId(t)):"",4|r,n,i);return a.original=t,a}function ee(t){var r=i.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=16777216,r}function te(e,t,r,i){var a=ee(e);return a.autoGenerateFlags=t,a.autoGenerateId=n,a.autoGeneratePrefix=r,a.autoGenerateSuffix=i,n++,a}function re(e){return i.createBaseTokenNode(e)}function ne(t){e.Debug.assert(t>=0&&t<=162,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=re(t),n=0;switch(t){case 132:n=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:n=1;break;case 106:n=134218752;break;case 124:n=1024;break;case 127:n=16777216;break;case 108:n=16384}return n&&(r.transformFlags|=n),r}function ie(){return ne(108)}function ae(){return ne(110)}function oe(){return ne(95)}function se(e){return ne(e)}function ce(e){var t=[];return 1&e&&t.push(se(93)),2&e&&t.push(se(136)),1024&e&&t.push(se(88)),2048&e&&t.push(se(85)),4&e&&t.push(se(123)),8&e&&t.push(se(121)),16&e&&t.push(se(122)),256&e&&t.push(se(126)),32&e&&t.push(se(124)),16384&e&&t.push(se(161)),64&e&&t.push(se(146)),128&e&&t.push(se(127)),512&e&&t.push(se(132)),32768&e&&t.push(se(101)),65536&e&&t.push(se(145)),t.length?t:void 0}function le(e,t){var r=w(163);return r.left=e,r.right=xi(t),r.transformFlags|=d(r.left)|u(r.right),r}function ue(e){var t=w(164);return t.expression=m().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|d(t.expression),t}function de(e,t,r,n){var i=M(165,e,t);return i.constraint=r,i.default=n,i.transformFlags=1,i}function _e(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.constraint!==n||e.default!==i?p(de(t,r,n,i),e):e}function fe(t,r,n,i,a,o){var s=z(166,t,n,a,o&&m().parenthesizeExpressionForDisallowedComma(o));return s.dotDotDotToken=r,s.questionToken=i,e.isThisIdentifier(s.name)?s.transformFlags=1:(s.transformFlags|=d(s.dotDotDotToken)|d(s.questionToken),i&&(s.transformFlags|=1),16476&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8192),(o||r)&&(s.transformFlags|=1024)),s}function pe(e,t,r,n,i,a,o){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?p(fe(t,r,n,i,a,o),e):e}function me(e){var t=w(167);return t.expression=m().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|d(t.expression),t}function ge(e,t,r,n){var i=M(168,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i.initializer=void 0,i}function ye(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?((a=ge(t,r,n,i))!==(o=e)&&(a.initializer=o.initializer),p(a,o)):e;var a,o}function ve(t,r,n,i,a){var o=z(169,t,r,i,a);return o.questionToken=n&&e.isQuestionToken(n)?n:void 0,o.exclamationToken=n&&e.isExclamationToken(n)?n:void 0,o.transformFlags|=d(o.questionToken)|d(o.exclamationToken)|16777216,(e.isComputedPropertyName(o.name)||e.hasStaticModifier(o)&&o.initializer)&&(o.transformFlags|=8192),(n||2&e.modifiersToFlags(o.modifiers))&&(o.transformFlags|=1),o}function he(t,r,n,i,a,o){return t.modifiers!==r||t.name!==n||t.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||t.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||t.type!==a||t.initializer!==o?p(ve(r,n,i,a,o),t):t}function xe(e,t,r,n,i,a){var o=L(170,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function be(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?R(xe(t,r,n,i,a,o),e):e}function De(t,r,n,i,a,o,s,c){var l=j(171,t,n,a,o,s,c);return l.asteriskToken=r,l.questionToken=i,l.transformFlags|=d(l.asteriskToken)|d(l.questionToken)|1024,i&&(l.transformFlags|=1),512&e.modifiersToFlags(l.modifiers)?l.transformFlags|=r?128:256:r&&(l.transformFlags|=2048),l.exclamationToken=void 0,l}function Se(e,t,r,n,i,a,o,s,c){return e.modifiers!==t||e.asteriskToken!==r||e.name!==n||e.questionToken!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?((l=De(t,r,n,i,a,o,s,c))!==(u=e)&&(l.exclamationToken=u.exclamationToken),p(l,u)):e;var l,u}function Te(e){var t=O(172,void 0,void 0,void 0);return t.body=e,t.transformFlags=16777216|d(e),t.illegalDecorators=void 0,t.modifiers=void 0,t}function Ce(e,t,r){var n=j(173,e,void 0,void 0,t,void 0,r);return n.transformFlags|=1024,n.illegalDecorators=void 0,n.typeParameters=void 0,n.type=void 0,n}function Ee(e,t,r,n){return e.modifiers!==t||e.parameters!==r||e.body!==n?((i=Ce(t,r,n))!==(a=e)&&(i.illegalDecorators=a.illegalDecorators,i.typeParameters=a.typeParameters,i.type=a.type),R(i,a)):e;var i,a}function ke(e,t,r,n,i){var a=j(174,e,t,void 0,r,n,i);return a.typeParameters=void 0,a}function Ne(e,t,r,n,i,a){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.type!==i||e.body!==a?((o=ke(t,r,n,i,a))!==(s=e)&&(o.typeParameters=s.typeParameters),R(o,s)):e;var o,s}function Ae(e,t,r,n){var i=j(175,e,t,void 0,r,void 0,n);return i.typeParameters=void 0,i.type=void 0,i}function Pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.parameters!==n||e.body!==i?((a=Ae(t,r,n,i))!==(o=e)&&(a.typeParameters=o.typeParameters,a.type=o.type),R(a,o)):e;var a,o}function Fe(e,t,r){var n=L(176,void 0,void 0,e,t,r);return n.transformFlags=1,n}function we(e,t,r){var n=L(177,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ie(e,t,r){var n=L(178,e,void 0,void 0,t,r);return n.transformFlags=1,n}function Me(e,t,r,n){return e.parameters!==r||e.type!==n||e.modifiers!==t?R(Ie(t,r,n),e):e}function Oe(e,t){var r=w(201);return r.type=e,r.literal=t,r.transformFlags=1,r}function Le(e,t,r){var n=w(179);return n.assertsModifier=e,n.parameterName=xi(t),n.type=r,n.transformFlags=1,n}function Re(e,t){var r=w(180);return r.typeName=xi(e),r.typeArguments=t&&m().parenthesizeTypeArguments(F(t)),r.transformFlags=1,r}function je(e,t,r){var n=L(181,void 0,void 0,e,t,r);return n.transformFlags=1,n.modifiers=void 0,n}function Be(){for(var t=[],r=0;r0;default:return!0}}function _i(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.setParent(e.setTextRange(oi(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Z(t)}function fi(e,t,r){return _i(e,t,r,8192)}function pi(t,r,n,i){var a=pt(t,e.nodeIsSynthesized(r)?r:oi(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function mi(){return e.startOnNewLine(ur(H("use strict")))}function gi(t,r,n,i){void 0===n&&(n=0),e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var a,o=!1,s=t.length;n=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:case 203:case 204:return-2147450880;case 264:return-1941676032;case 166:case 213:case 235:case 231:case 353:case 214:case 106:case 208:case 209:default:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112}}e.getTransformFlagsSubtreeExclusions=p;var m=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var y,v={createBaseSourceFileNode:function(e){return g(m.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return g(m.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return g(m.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return g(m.createBaseTokenNode(e))},createBaseNode:function(e){return g(m.createBaseNode(e))}};function h(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,l=t.constantValue,u=t.helpers,d=t.startsOnNewLine,_=t.snippetElement;if(r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=-268435457&n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=function(e,t){for(var r in t||(t=[]),e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges)),void 0!==l&&(r.constantValue=l),u)for(var f=0,p=u;f0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=function(e,r){return t(e).snippetElement=r,e},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e},e.setTypeNode=function(e,r){return t(e).typeNode=r,e},e.getTypeNode=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.typeNode}}(_||(_={})),function(e){function t(e){for(var t=[],r=1;r=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(a("__assign"),void 0,n))},createAwaitHelper:function(n){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(a("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(a("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(a("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(a("__asyncValues"),void 0,[n])},createRestHelper:function(n,i,o,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u= 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 };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(c(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(c(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r}}(_||(_={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 132===e.kind},e.isAssertsKeyword=function(e){return 129===e.kind},e.isAwaitKeyword=function(e){return 133===e.kind},e.isReadonlyKeyword=function(e){return 146===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isOverrideModifier=function(e){return 161===e.kind},e.isAccessorModifier=function(e){return 127===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 163===e.kind},e.isComputedPropertyName=function(e){return 164===e.kind},e.isTypeParameterDeclaration=function(e){return 165===e.kind},e.isParameter=function(e){return 166===e.kind},e.isDecorator=function(e){return 167===e.kind},e.isPropertySignature=function(e){return 168===e.kind},e.isPropertyDeclaration=function(e){return 169===e.kind},e.isMethodSignature=function(e){return 170===e.kind},e.isMethodDeclaration=function(e){return 171===e.kind},e.isClassStaticBlockDeclaration=function(e){return 172===e.kind},e.isConstructorDeclaration=function(e){return 173===e.kind},e.isGetAccessorDeclaration=function(e){return 174===e.kind},e.isSetAccessorDeclaration=function(e){return 175===e.kind},e.isCallSignatureDeclaration=function(e){return 176===e.kind},e.isConstructSignatureDeclaration=function(e){return 177===e.kind},e.isIndexSignatureDeclaration=function(e){return 178===e.kind},e.isTypePredicateNode=function(e){return 179===e.kind},e.isTypeReferenceNode=function(e){return 180===e.kind},e.isFunctionTypeNode=function(e){return 181===e.kind},e.isConstructorTypeNode=function(e){return 182===e.kind},e.isTypeQueryNode=function(e){return 183===e.kind},e.isTypeLiteralNode=function(e){return 184===e.kind},e.isArrayTypeNode=function(e){return 185===e.kind},e.isTupleTypeNode=function(e){return 186===e.kind},e.isNamedTupleMember=function(e){return 199===e.kind},e.isOptionalTypeNode=function(e){return 187===e.kind},e.isRestTypeNode=function(e){return 188===e.kind},e.isUnionTypeNode=function(e){return 189===e.kind},e.isIntersectionTypeNode=function(e){return 190===e.kind},e.isConditionalTypeNode=function(e){return 191===e.kind},e.isInferTypeNode=function(e){return 192===e.kind},e.isParenthesizedTypeNode=function(e){return 193===e.kind},e.isThisTypeNode=function(e){return 194===e.kind},e.isTypeOperatorNode=function(e){return 195===e.kind},e.isIndexedAccessTypeNode=function(e){return 196===e.kind},e.isMappedTypeNode=function(e){return 197===e.kind},e.isLiteralTypeNode=function(e){return 198===e.kind},e.isImportTypeNode=function(e){return 202===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 201===e.kind},e.isTemplateLiteralTypeNode=function(e){return 200===e.kind},e.isObjectBindingPattern=function(e){return 203===e.kind},e.isArrayBindingPattern=function(e){return 204===e.kind},e.isBindingElement=function(e){return 205===e.kind},e.isArrayLiteralExpression=function(e){return 206===e.kind},e.isObjectLiteralExpression=function(e){return 207===e.kind},e.isPropertyAccessExpression=function(e){return 208===e.kind},e.isElementAccessExpression=function(e){return 209===e.kind},e.isCallExpression=function(e){return 210===e.kind},e.isNewExpression=function(e){return 211===e.kind},e.isTaggedTemplateExpression=function(e){return 212===e.kind},e.isTypeAssertionExpression=function(e){return 213===e.kind},e.isParenthesizedExpression=function(e){return 214===e.kind},e.isFunctionExpression=function(e){return 215===e.kind},e.isArrowFunction=function(e){return 216===e.kind},e.isDeleteExpression=function(e){return 217===e.kind},e.isTypeOfExpression=function(e){return 218===e.kind},e.isVoidExpression=function(e){return 219===e.kind},e.isAwaitExpression=function(e){return 220===e.kind},e.isPrefixUnaryExpression=function(e){return 221===e.kind},e.isPostfixUnaryExpression=function(e){return 222===e.kind},e.isBinaryExpression=function(e){return 223===e.kind},e.isConditionalExpression=function(e){return 224===e.kind},e.isTemplateExpression=function(e){return 225===e.kind},e.isYieldExpression=function(e){return 226===e.kind},e.isSpreadElement=function(e){return 227===e.kind},e.isClassExpression=function(e){return 228===e.kind},e.isOmittedExpression=function(e){return 229===e.kind},e.isExpressionWithTypeArguments=function(e){return 230===e.kind},e.isAsExpression=function(e){return 231===e.kind},e.isSatisfiesExpression=function(e){return 235===e.kind},e.isNonNullExpression=function(e){return 232===e.kind},e.isMetaProperty=function(e){return 233===e.kind},e.isSyntheticExpression=function(e){return 234===e.kind},e.isPartiallyEmittedExpression=function(e){return 353===e.kind},e.isCommaListExpression=function(e){return 354===e.kind},e.isTemplateSpan=function(e){return 236===e.kind},e.isSemicolonClassElement=function(e){return 237===e.kind},e.isBlock=function(e){return 238===e.kind},e.isVariableStatement=function(e){return 240===e.kind},e.isEmptyStatement=function(e){return 239===e.kind},e.isExpressionStatement=function(e){return 241===e.kind},e.isIfStatement=function(e){return 242===e.kind},e.isDoStatement=function(e){return 243===e.kind},e.isWhileStatement=function(e){return 244===e.kind},e.isForStatement=function(e){return 245===e.kind},e.isForInStatement=function(e){return 246===e.kind},e.isForOfStatement=function(e){return 247===e.kind},e.isContinueStatement=function(e){return 248===e.kind},e.isBreakStatement=function(e){return 249===e.kind},e.isReturnStatement=function(e){return 250===e.kind},e.isWithStatement=function(e){return 251===e.kind},e.isSwitchStatement=function(e){return 252===e.kind},e.isLabeledStatement=function(e){return 253===e.kind},e.isThrowStatement=function(e){return 254===e.kind},e.isTryStatement=function(e){return 255===e.kind},e.isDebuggerStatement=function(e){return 256===e.kind},e.isVariableDeclaration=function(e){return 257===e.kind},e.isVariableDeclarationList=function(e){return 258===e.kind},e.isFunctionDeclaration=function(e){return 259===e.kind},e.isClassDeclaration=function(e){return 260===e.kind},e.isInterfaceDeclaration=function(e){return 261===e.kind},e.isTypeAliasDeclaration=function(e){return 262===e.kind},e.isEnumDeclaration=function(e){return 263===e.kind},e.isModuleDeclaration=function(e){return 264===e.kind},e.isModuleBlock=function(e){return 265===e.kind},e.isCaseBlock=function(e){return 266===e.kind},e.isNamespaceExportDeclaration=function(e){return 267===e.kind},e.isImportEqualsDeclaration=function(e){return 268===e.kind},e.isImportDeclaration=function(e){return 269===e.kind},e.isImportClause=function(e){return 270===e.kind},e.isImportTypeAssertionContainer=function(e){return 298===e.kind},e.isAssertClause=function(e){return 296===e.kind},e.isAssertEntry=function(e){return 297===e.kind},e.isNamespaceImport=function(e){return 271===e.kind},e.isNamespaceExport=function(e){return 277===e.kind},e.isNamedImports=function(e){return 272===e.kind},e.isImportSpecifier=function(e){return 273===e.kind},e.isExportAssignment=function(e){return 274===e.kind},e.isExportDeclaration=function(e){return 275===e.kind},e.isNamedExports=function(e){return 276===e.kind},e.isExportSpecifier=function(e){return 278===e.kind},e.isMissingDeclaration=function(e){return 279===e.kind},e.isNotEmittedStatement=function(e){return 352===e.kind},e.isSyntheticReference=function(e){return 357===e.kind},e.isMergeDeclarationMarker=function(e){return 355===e.kind},e.isEndOfDeclarationMarker=function(e){return 356===e.kind},e.isExternalModuleReference=function(e){return 280===e.kind},e.isJsxElement=function(e){return 281===e.kind},e.isJsxSelfClosingElement=function(e){return 282===e.kind},e.isJsxOpeningElement=function(e){return 283===e.kind},e.isJsxClosingElement=function(e){return 284===e.kind},e.isJsxFragment=function(e){return 285===e.kind},e.isJsxOpeningFragment=function(e){return 286===e.kind},e.isJsxClosingFragment=function(e){return 287===e.kind},e.isJsxAttribute=function(e){return 288===e.kind},e.isJsxAttributes=function(e){return 289===e.kind},e.isJsxSpreadAttribute=function(e){return 290===e.kind},e.isJsxExpression=function(e){return 291===e.kind},e.isCaseClause=function(e){return 292===e.kind},e.isDefaultClause=function(e){return 293===e.kind},e.isHeritageClause=function(e){return 294===e.kind},e.isCatchClause=function(e){return 295===e.kind},e.isPropertyAssignment=function(e){return 299===e.kind},e.isShorthandPropertyAssignment=function(e){return 300===e.kind},e.isSpreadAssignment=function(e){return 301===e.kind},e.isEnumMember=function(e){return 302===e.kind},e.isUnparsedPrepend=function(e){return 304===e.kind},e.isSourceFile=function(e){return 308===e.kind},e.isBundle=function(e){return 309===e.kind},e.isUnparsedSource=function(e){return 310===e.kind},e.isJSDocTypeExpression=function(e){return 312===e.kind},e.isJSDocNameReference=function(e){return 313===e.kind},e.isJSDocMemberName=function(e){return 314===e.kind},e.isJSDocLink=function(e){return 327===e.kind},e.isJSDocLinkCode=function(e){return 328===e.kind},e.isJSDocLinkPlain=function(e){return 329===e.kind},e.isJSDocAllType=function(e){return 315===e.kind},e.isJSDocUnknownType=function(e){return 316===e.kind},e.isJSDocNullableType=function(e){return 317===e.kind},e.isJSDocNonNullableType=function(e){return 318===e.kind},e.isJSDocOptionalType=function(e){return 319===e.kind},e.isJSDocFunctionType=function(e){return 320===e.kind},e.isJSDocVariadicType=function(e){return 321===e.kind},e.isJSDocNamepathType=function(e){return 322===e.kind},e.isJSDoc=function(e){return 323===e.kind},e.isJSDocTypeLiteral=function(e){return 325===e.kind},e.isJSDocSignature=function(e){return 326===e.kind},e.isJSDocAugmentsTag=function(e){return 331===e.kind},e.isJSDocAuthorTag=function(e){return 333===e.kind},e.isJSDocClassTag=function(e){return 335===e.kind},e.isJSDocCallbackTag=function(e){return 341===e.kind},e.isJSDocPublicTag=function(e){return 336===e.kind},e.isJSDocPrivateTag=function(e){return 337===e.kind},e.isJSDocProtectedTag=function(e){return 338===e.kind},e.isJSDocReadonlyTag=function(e){return 339===e.kind},e.isJSDocOverrideTag=function(e){return 340===e.kind},e.isJSDocDeprecatedTag=function(e){return 334===e.kind},e.isJSDocSeeTag=function(e){return 349===e.kind},e.isJSDocEnumTag=function(e){return 342===e.kind},e.isJSDocParameterTag=function(e){return 343===e.kind},e.isJSDocReturnTag=function(e){return 344===e.kind},e.isJSDocThisTag=function(e){return 345===e.kind},e.isJSDocTypeTag=function(e){return 346===e.kind},e.isJSDocTemplateTag=function(e){return 347===e.kind},e.isJSDocTypedefTag=function(e){return 348===e.kind},e.isJSDocUnknownTag=function(e){return 330===e.kind},e.isJSDocPropertyTag=function(e){return 350===e.kind},e.isJSDocImplementsTag=function(e){return 332===e.kind},e.isSyntaxList=function(e){return 351===e.kind}}(_||(_={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function i(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function a(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function l(e,t){switch(void 0===t&&(t=15),e.kind){case 214:return!(16&t&&c(e))&&0!=(1&t);case 213:case 231:case 235:return 0!=(2&t);case 232:return 0!=(4&t);case 353:return 0!=(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);l(e,t);)e=e.expression;return e}function d(t){return e.setStartsOnNewLine(t,!0)}function _(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function f(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=_(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c0)if(c.length>1)for(var p=0,m=c;p=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var d=[],_=0,p=u;_0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,d){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var _=t.onLeft(a[r].left,o[r],a[r]);return _?(u(r,a,_),l(r,i,a,o,_)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,d){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var _=t.onRight(i[r].right,o[r],i[r]);return _?(u(r,i,_),l(r,n,i,o,_)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var d=n[r]===o?"right":"left";a[r]=t.foldState(a[r],u,d)}}else s.value=u;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(v||(v={}));var h=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};function x(e,t){return"object"==typeof e?b(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function b(t,r,n,i,a){return r=x(r,a),i=x(i,a),n=function(t,r){return"string"==typeof t?t:function(t,r){return e.isGeneratedPrivateIdentifier(t)?r(t).slice(1):e.isGeneratedIdentifier(t)?r(t):e.isPrivateIdentifier(t)?t.escapedText.slice(1):e.idText(t)}(t,e.Debug.checkDefined(r))}(n,a),"".concat(t?"#":"").concat(r).concat(n).concat(i)}e.createBinaryExpressionTrampoline=function(t,r,n,i,a,o){var s=new h(t,r,n,i,a,o);return function(t,r){for(var n={value:void 0},i=[v.enter],a=[t],o=[void 0],c=0;i[c]!==v.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}},e.elideNodes=function(t,r){if(void 0!==r)return 0===r.length?r:e.setTextRange(t.createNodeArray([],r.hasTrailingComma),r)},e.getNodeForGeneratedName=function(t){if(4&t.autoGenerateFlags){for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isMemberName(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}return t},e.formatGeneratedNamePart=x,e.formatGeneratedName=b,e.createAccessorPropertyBackingField=function(e,t,r,n){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,n)},e.createAccessorPropertyGetRedirector=function(e,t,r,n){return e.createGetAccessorDeclaration(r,n,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))},e.createAccessorPropertySetRedirector=function(e,t,r,n){return e.createSetAccessorDeclaration(r,n,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}}(_||(_={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t},e.canHaveModifiers=function(e){var t=e.kind;return 165===t||166===t||168===t||169===t||170===t||171===t||173===t||174===t||175===t||178===t||182===t||215===t||216===t||228===t||240===t||259===t||260===t||261===t||262===t||263===t||264===t||268===t||269===t||274===t||275===t},e.canHaveDecorators=function(e){var t=e.kind;return 166===t||169===t||171===t||174===t||175===t||228===t||260===t}}(_||(_={})),function(e){var t,r,n,i,a,c,l,u;function d(e,t){return t&&e(t)}function _(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":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}e.forEachChild=L,e.forEachChildRecursively=function(t,r,n){for(var i=R(t),a=[];a.length=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=163)for(var u=0,d=R(o);u=r.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),l):-1;l>=0&&e.addRange(y,a,l,u>=0?u:void 0),Pe((function(){var e=N;for(N|=32768,c.setTextPos(n.pos),De();1!==he();){var r=c.getStartPos(),a=Ct(0,Hn);if(i.push(a),r===c.getStartPos()&&De(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=p(t.statements,o+1))}}N=e}),2),s=o>=0?f(t.statements,o):-1};-1!==s;)l();if(o>=0){var u=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,(function(e){return e.start>=u.pos}));d>=0&&e.addRange(y,a,d)}return x=r,P.updateSourceFile(t,e.setTextRange(P.createNodeArray(i),t.statements));function _(e){return!(32768&e.flags||!(67108864&e.transformFlags))}function f(e,t){for(var r=t;r116}function Me(){return 79===he()||(125!==he()||!se())&&(133!==he()||!de())&&he()>116}function Oe(t,r,n){return void 0===n&&(n=!0),he()===t?(n&&De(),!0):(r?_e(r):_e(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=q;var Le,Re,je,Be=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Je(t){var r;if(e.isTaggedTemplateExpression(t))pe(e.skipTrivia(_,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,p)){var i=e.skipTrivia(_,t.pos);switch(n){case"const":case"let":case"var":return void pe(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ke(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void pe(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Ke(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ke(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,Be,(function(e){return e})))&&void 0!==r?r:function(t){for(var r=0,n=Be;ri.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}}(n);a?pe(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==he()&&pe(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else _e(e.Diagnostics._0_expected,e.tokenToString(26))}}function Ke(e,t,r){he()===r?_e(t):_e(e,c.getTokenValue())}function ze(t){return he()===t?(Se(),!0):(_e(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Ue(t,r,n,i){if(he()!==r){var a=_e(e.Diagnostics._0_expected,e.tokenToString(r));n&&a&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,i,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(t),e.tokenToString(r)))}else De()}function Ve(e){return he()===e&&(De(),!0)}function qe(e){if(he()===e)return He()}function We(t,r,n){return qe(t)||Ze(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function He(){var e=ye(),t=he();return De(),Ye(P.createToken(t),e)}function $e(){return 26===he()||19===he()||1===he()||c.hasPrecedingLineBreak()}function Ge(){return!!$e()&&(26===he()&&De(),!0)}function Xe(){return Ge()||Oe(26)}function Qe(t,r,n,i){var a=P.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function Ye(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),N&&(t.flags|=N),w&&(w=!1,t.flags|=131072),t}function Ze(t,r,n,i){r?fe(c.getStartPos(),0,n,i):n&&_e(n,i);var a=ye();return Ye(79===t?P.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?P.createTemplateLiteralLikeNode(t,"","",void 0):8===t?P.createNumericLiteral("",void 0):10===t?P.createStringLiteral("",void 0):279===t?P.createMissingDeclaration():P.createToken(t),a)}function et(e){var t=S.get(e);return void 0===t&&S.set(e,t=e),t}function tt(t,r,n){if(t){C++;var i=ye(),a=he(),o=et(c.getTokenValue()),s=c.hasExtendedUnicodeEscape();return xe(),Ye(P.createIdentifier(o,void 0,a,s),i)}if(80===he())return _e(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),tt(!0);if(0===he()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return tt(!0);C++;var l=1===he(),u=c.isReservedWord(),d=c.getTokenText(),_=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ze(79,l,r||_,d)}function rt(e){return tt(Ie(),void 0,e)}function nt(e,t){return tt(Me(),e,t)}function it(t){return tt(e.tokenIsIdentifierOrKeyword(he()),t)}function at(){return e.tokenIsIdentifierOrKeyword(he())||10===he()||8===he()}function ot(){return function(e){if(10===he()||8===he()){var t=Jt();return t.text=et(t.text),t}return e&&22===he()?function(){var e=ye();Oe(22);var t=te(Vr);return Oe(23),Ye(P.createComputedPropertyName(t),e)}():80===he()?st():it()}(!0)}function st(){var e,t,r=ye(),n=P.createPrivateIdentifier((e=c.getTokenValue(),void 0===(t=T.get(e))&&T.set(e,t=e),t));return De(),Ye(n,r)}function ct(e){return he()===e&&we(ut)}function lt(){return De(),!c.hasPrecedingLineBreak()&&ft()}function ut(){switch(he()){case 85:return 92===De();case 93:return De(),88===he()?Fe(pt):154===he()?Fe(_t):dt();case 88:return pt();case 127:case 124:case 137:case 151:return De(),ft();default:return lt()}}function dt(){return 41!==he()&&128!==he()&&18!==he()&&ft()}function _t(){return De(),dt()}function ft(){return 22===he()||18===he()||41===he()||25===he()||at()}function pt(){return De(),84===he()||98===he()||118===he()||126===he()&&Fe(Jn)||132===he()&&Fe(Kn)}function mt(t,r){if(Et(t))return!0;switch(t){case 0:case 1:case 3:return!(26===he()&&r)&&qn();case 2:return 82===he()||88===he();case 4:return Fe(lr);case 5:return Fe(_i)||26===he()&&!r;case 6:return 22===he()||at();case 12:switch(he()){case 22:case 41:case 25:case 24:return!0;default:return at()}case 18:return at();case 9:return 22===he()||25===he()||at();case 24:return e.tokenIsIdentifierOrKeyword(he())||10===he();case 7:return 18===he()?Fe(gt):r?Me()&&!xt():zr()&&!xt();case 8:return ei();case 10:return 27===he()||25===he()||ei();case 19:return 101===he()||Me();case 15:switch(he()){case 27:case 24:return!0}case 11:return 25===he()||Ur();case 16:return Yt(!1);case 17:return Yt(!0);case 20:case 21:return 27===he()||kr();case 22:return ki();case 23:return e.tokenIsIdentifierOrKeyword(he());case 13:return e.tokenIsIdentifierOrKeyword(he())||18===he();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function gt(){if(e.Debug.assert(18===he()),19===De()){var t=De();return 27===t||18===t||94===t||117===t}return!0}function yt(){return De(),Me()}function vt(){return De(),e.tokenIsIdentifierOrKeyword(he())}function ht(){return De(),e.tokenIsIdentifierOrKeywordOrGreaterThan(he())}function xt(){return(117===he()||94===he())&&Fe(bt)}function bt(){return De(),Ur()}function Dt(){return De(),kr()}function St(e){if(1===he())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===he();case 3:return 19===he()||82===he()||88===he();case 7:return 18===he()||94===he()||117===he();case 8:return!!$e()||!!Zr(he())||38===he();case 19:return 31===he()||20===he()||18===he()||94===he()||117===he();case 11:return 21===he()||26===he();case 15:case 21:case 10:return 23===he();case 17:case 16:case 18:return 21===he()||23===he();case 20:return 27!==he();case 22:return 18===he()||19===he();case 13:return 31===he()||43===he();case 14:return 29===he()&&Fe(Mi);default:return!1}}function Tt(e,t){var r=E;E|=1<=0)}function Pt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ft(){var e=Qe([],ye());return e.isMissingList=!0,e}function wt(e,t,r,n){if(Oe(r)){var i=At(e,t);return Oe(n),i}return Ft()}function It(e,t){for(var r=ye(),n=e?it(t):nt(t),i=ye();Ve(24);){if(29===he()){n.jsdocDotPos=i;break}i=ye(),n=Ye(P.createQualifiedName(n,Ot(e,!1)),r)}return n}function Mt(e,t){return Ye(P.createQualifiedName(e,t),e.pos)}function Ot(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(he())&&Fe(Bn))return Ze(79,!0,e.Diagnostics.Identifier_expected);if(80===he()){var n=st();return r?n:Ze(79,!0,e.Diagnostics.Identifier_expected)}return t?it():nt()}function Lt(e){var t=ye();return Ye(P.createTemplateExpression(Kt(e),function(e){var t,r=ye(),n=[];do{t=Bt(e),n.push(t)}while(16===t.literal.kind);return Qe(n,r)}(e)),t)}function Rt(){var e=ye();return Ye(P.createTemplateLiteralTypeSpan(Jr(),jt(!1)),e)}function jt(t){return 19===he()?(function(e){b=c.reScanTemplateToken(e)}(t),r=zt(he()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):We(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Bt(e){var t=ye();return Ye(P.createTemplateSpan(te(Vr),jt(e)),t)}function Jt(){return zt(he())}function Kt(t){t&&Ce();var r=zt(he());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function zt(t){var r=ye(),n=e.isTemplateLiteralKind(t)?P.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,r=c.getTokenText();return r.substring(1,r.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?P.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?P.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?P.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),De(),Ye(n,r)}function Ut(){return It(!0,e.Diagnostics.Type_expected)}function Vt(){if(!c.hasPrecedingLineBreak()&&29===Ee())return wt(20,Jr,29,31)}function qt(){var e=ye();return Ye(P.createTypeReferenceNode(Ut(),Vt()),e)}function Wt(t){switch(t.kind){case 180:return e.nodeIsMissing(t.typeName);case 181:case 182:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Wt(i);case 193:return Wt(t.type);default:return!1}}function Ht(){var e=ye();return De(),Ye(P.createThisTypeNode(),e)}function $t(){var e,t=ye();return 108!==he()&&103!==he()||(e=it(),Oe(58)),Ye(P.createParameterDeclaration(void 0,void 0,e,void 0,Gt(),void 0),t)}function Gt(){c.setInJSDocType(!0);var e=ye();if(Ve(142)){var t=P.createJSDocNamepathType(void 0);e:for(;;)switch(he()){case 19:case 1:case 27:case 5:break e;default:Se()}return c.setInJSDocType(!1),Ye(t,e)}var r=Ve(25),n=jr();return c.setInJSDocType(!1),r&&(n=Ye(P.createJSDocVariadicType(n),e)),63===he()?(De(),Ye(P.createJSDocOptionalType(n),e)):n}function Xt(){var e,t,r=ye(),n=vi(),i=nt();Ve(94)&&(kr()||!Ur()?e=Jr():t=on());var a=Ve(63)?Jr():void 0,o=P.createTypeParameterDeclaration(n,i,e,a);return o.expression=t,Ye(o,r)}function Qt(){if(29===he())return wt(19,Xt,29,31)}function Yt(t){return 25===he()||ei()||e.isModifierKind(he())||59===he()||kr(!t)}function Zt(e){return er(e)}function er(t,r){void 0===r&&(r=!0);var n=ye(),i=ve(),a=t?ie(mi):ae(mi);if(108===he()){var o=P.createParameterDeclaration(a,void 0,tt(!0),void 0,Kr(),void 0);return a&&me(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),R(Ye(o,n),i)}var s=F;F=!1;var c=yi(a,vi()),l=qe(25);if(r||Ie()||22===he()||18===he()){var u=R(Ye(P.createParameterDeclaration(c,l,function(t){var r=ti(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(he())&&De(),r}(c),qe(57),Kr(),qr()),n),i);return F=s,u}}function tr(t,r){if(function(t,r){return 38===t?(Oe(t),!0):!!Ve(58)||!(!r||38!==he())&&(_e(e.Diagnostics._0_expected,e.tokenToString(58)),De(),!0)}(t,r))return re(jr)}function rr(e,t){var r=se(),n=de();X(!!(1&e)),Y(!!(2&e));var i=32&e?At(17,$t):At(16,(function(){return t?Zt(n):er(n,!1)}));return X(r),Y(n),i}function nr(e){if(!Oe(20))return Ft();var t=rr(e,!0);return Oe(21),t}function ir(){Ve(27)||Xe()}function ar(e){var t=ye(),r=ve();177===e&&Oe(103);var n=Qt(),i=nr(4),a=tr(58,!0);return ir(),R(Ye(176===e?P.createCallSignature(n,i,a):P.createConstructSignature(n,i,a),t),r)}function or(){return 22===he()&&Fe(sr)}function sr(){if(De(),25===he()||23===he())return!0;if(e.isModifierKind(he())){if(De(),Me())return!0}else{if(!Me())return!1;De()}return 58===he()||27===he()||57===he()&&(De(),58===he()||27===he()||23===he())}function cr(e,t,r,n){var i=wt(16,(function(){return Zt(!1)}),22,23),a=Kr();ir();var o=P.createIndexSignature(n,i,a);return o.illegalDecorators=r,R(Ye(o,e),t)}function lr(){if(20===he()||29===he()||137===he()||151===he())return!0;for(var t=!1;e.isModifierKind(he());)t=!0,De();return 22===he()||(at()&&(t=!0,De()),!!t&&(20===he()||29===he()||57===he()||58===he()||27===he()||$e()))}function ur(){if(20===he()||29===he())return ar(176);if(103===he()&&Fe(dr))return ar(177);var e=ye(),t=ve(),r=vi();return ct(137)?di(e,t,void 0,r,174,4):ct(151)?di(e,t,void 0,r,175,4):or()?cr(e,t,void 0,r):function(e,t,r){var n,i=ot(),a=qe(57);if(20===he()||29===he()){var o=Qt(),s=nr(4),c=tr(58,!0);n=P.createMethodSignature(r,i,a,o,s,c)}else c=Kr(),n=P.createPropertySignature(r,i,a,c),63===he()&&(n.initializer=qr());return ir(),R(Ye(n,e),t)}(e,t,r)}function dr(){return De(),20===he()||29===he()}function _r(){return 24===De()}function fr(){switch(De()){case 20:case 29:case 24:return!0}return!1}function pr(){var e;return Oe(18)?(e=Tt(4,ur),Oe(19)):e=Ft(),e}function mr(){return De(),39===he()||40===he()?146===De():(146===he()&&De(),22===he()&&yt()&&101===De())}function gr(){var t=ye();if(Ve(25))return Ye(P.createRestTypeNode(Jr()),t);var r=Jr();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=P.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function yr(){return 58===De()||57===he()&&58===De()}function vr(){return 25===he()?e.tokenIsIdentifierOrKeyword(De())&&yr():e.tokenIsIdentifierOrKeyword(he())&&yr()}function hr(){if(Fe(vr)){var e=ye(),t=ve(),r=qe(25),n=it(),i=qe(57);Oe(58);var a=gr();return R(Ye(P.createNamedTupleMember(r,n,i,a),e),t)}return gr()}function xr(){var e=ye(),t=ve(),r=function(){var e;if(126===he()){var t=ye();De(),e=Qe([Ye(P.createToken(126),t)],t)}return e}(),n=Ve(103),i=Qt(),a=nr(4),o=tr(38,!1),s=n?P.createConstructorTypeNode(r,i,a,o):P.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),R(Ye(s,e),t)}function br(){var e=He();return 24===he()?void 0:e}function Dr(e){var t=ye();e&&De();var r=110===he()||95===he()||104===he()?He():zt(he());return e&&(r=Ye(P.createPrefixUnaryExpression(40,r),t)),Ye(P.createLiteralTypeNode(r),t)}function Sr(){return De(),100===he()}function Tr(){d|=2097152;var t=ye(),r=Ve(112);Oe(100),Oe(20);var n,i=Jr();Ve(27)&&(n=function(){var t=ye(),r=c.getTokenPos();Oe(18);var n=c.hasPrecedingLineBreak();Oe(130),Oe(58);var i=Li(!0);if(!Oe(19)){var a=e.lastOrUndefined(y);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,r,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ye(P.createImportTypeAssertionContainer(i,n),t)}()),Oe(21);var a=Ve(24)?Ut():void 0,o=Vt();return Ye(P.createImportTypeNode(i,n,a,o,r),t)}function Cr(){return De(),8===he()||9===he()}function Er(){switch(he()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return we(br)||qt();case 66:c.reScanAsteriskEqualsToken();case 41:return r=ye(),De(),Ye(P.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=ye();return De(),27===he()||19===he()||21===he()||31===he()||63===he()||51===he()?Ye(P.createJSDocUnknownType(),e):Ye(P.createJSDocNullableType(Jr(),!1),e)}();case 98:return function(){var e=ye(),t=ve();if(Fe(wi)){De();var r=nr(36),n=tr(58,!1);return R(Ye(P.createJSDocFunctionType(r,n),e),t)}return Ye(P.createTypeReferenceNode(it(),void 0),e)}();case 53:return function(){var e=ye();return De(),Ye(P.createJSDocNonNullableType(Er(),!1),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Dr();case 40:return Fe(Cr)?Dr(!0):qt();case 114:return He();case 108:var e=Ht();return 140!==he()||c.hasPrecedingLineBreak()?e:(t=e,De(),Ye(P.createTypePredicateNode(void 0,t,Jr()),t.pos));case 112:return Fe(Sr)?Tr():function(){var e=ye();Oe(112);var t=It(!0),r=c.hasPrecedingLineBreak()?void 0:Ei();return Ye(P.createTypeQueryNode(t,r),e)}();case 18:return Fe(mr)?function(){var e,t=ye();Oe(18),146!==he()&&39!==he()&&40!==he()||146!==(e=He()).kind&&Oe(146),Oe(22);var r,n=function(){var e=ye(),t=it();Oe(101);var r=Jr();return Ye(P.createTypeParameterDeclaration(void 0,t,r,void 0),e)}(),i=Ve(128)?Jr():void 0;Oe(23),57!==he()&&39!==he()&&40!==he()||57!==(r=He()).kind&&Oe(57);var a=Kr();Xe();var o=Tt(4,ur);return Oe(19),Ye(P.createMappedTypeNode(e,n,i,r,a,o),t)}():function(){var e=ye();return Ye(P.createTypeLiteralNode(pr()),e)}();case 22:return function(){var e=ye();return Ye(P.createTupleTypeNode(wt(21,hr,22,23)),e)}();case 20:return function(){var e=ye();Oe(20);var t=Jr();return Oe(21),Ye(P.createParenthesizedType(t),e)}();case 100:return Tr();case 129:return Fe(Bn)?function(){var e=ye(),t=We(129),r=108===he()?Ht():nt(),n=Ve(140)?Jr():void 0;return Ye(P.createTypePredicateNode(t,r,n),e)}():qt();case 15:return function(){var e=ye();return Ye(P.createTemplateLiteralType(Kt(!1),function(){var e,t=ye(),r=[];do{e=Rt(),r.push(e)}while(16===e.literal.kind);return Qe(r,t)}()),e)}();default:return qt()}var t,r}function kr(e){switch(he()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&Fe(Cr);case 20:return!e&&Fe(Nr);default:return Me()}}function Nr(){return De(),21===he()||Yt(!1)||kr()}function Ar(){for(var e=ye(),t=Er();!c.hasPrecedingLineBreak();)switch(he()){case 53:De(),t=Ye(P.createJSDocNonNullableType(t,!0),e);break;case 57:if(Fe(Dt))return t;De(),t=Ye(P.createJSDocNullableType(t,!0),e);break;case 22:if(Oe(22),kr()){var r=Jr();Oe(23),t=Ye(P.createIndexedAccessTypeNode(t,r),e)}else Oe(23),t=Ye(P.createArrayTypeNode(t),e);break;default:return t}return t}function Pr(){if(Ve(94)){var e=ne(Jr);if(le()||57!==he())return e}}function Fr(){var e,t=he();switch(t){case 141:case 156:case 146:return function(e){var t=ye();return Oe(e),Ye(P.createTypeOperatorNode(e,Fr()),t)}(t);case 138:return e=ye(),Oe(138),Ye(P.createInferTypeNode(function(){var e=ye(),t=nt(),r=we(Pr);return Ye(P.createTypeParameterDeclaration(void 0,t,r),e)}()),e)}return re(Ar)}function wr(t){if(Lr()){var r=xr();return me(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function Ir(e,t,r){var n=ye(),i=51===e,a=Ve(e),o=a&&wr(i)||t();if(he()===e||a){for(var s=[o];Ve(e);)s.push(wr(i)||t());o=Ye(r(Qe(s,n)),n)}return o}function Mr(){return Ir(50,Fr,P.createIntersectionTypeNode)}function Or(){return De(),103===he()}function Lr(){return 29===he()||!(20!==he()||!Fe(Rr))||103===he()||126===he()&&Fe(Or)}function Rr(){if(De(),21===he()||25===he())return!0;if(function(){if(e.isModifierKind(he())&&vi(),Me()||108===he())return De(),!0;if(22===he()||18===he()){var t=y.length;return ti(),t===y.length}return!1}()){if(58===he()||27===he()||57===he()||63===he())return!0;if(21===he()&&(De(),38===he()))return!0}return!1}function jr(){var e=ye(),t=Me()&&we(Br),r=Jr();return t?Ye(P.createTypePredicateNode(void 0,t,r),e):r}function Br(){var e=nt();if(140===he()&&!c.hasPrecedingLineBreak())return De(),e}function Jr(){if(40960&N)return Z(40960,Jr);if(Lr())return xr();var e=ye(),t=Ir(51,Mr,P.createUnionTypeNode);if(!le()&&!c.hasPrecedingLineBreak()&&Ve(94)){var r=ne(Jr);Oe(57);var n=re(Jr);Oe(58);var i=re(Jr);return Ye(P.createConditionalTypeNode(t,r,n,i),e)}return t}function Kr(){return Ve(58)?Jr():void 0}function zr(){switch(he()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Fe(fr);default:return Me()}}function Ur(){if(zr())return!0;switch(he()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:return!0;default:return!!tn()||Me()}}function Vr(){var e=ue();e&&Q(!1);for(var t,r=ye(),n=Wr(!0);t=qe(27);)n=rn(n,t,Wr(!0),r);return e&&Q(!0),n}function qr(){return Ve(63)?Wr(!0):void 0}function Wr(t){if(125===he()&&(se()||Fe(zn)))return function(){var e=ye();return De(),c.hasPrecedingLineBreak()||41!==he()&&!Ur()?Ye(P.createYieldExpression(void 0,void 0),e):Ye(P.createYieldExpression(qe(41),Wr(!0)),e)}();var r=function(t){var r=20===he()||29===he()||132===he()?Fe($r):38===he()?1:0;if(0!==r)return 1===r?Xr(!0,!0):we((function(){return function(t){var r=c.getTokenPos();if(!(null==k?void 0:k.has(r))){var n=Xr(!1,t);return n||(k||(k=new e.Set)).add(r),n}}(t)}))}(t)||function(e){if(132===he()&&1===Fe(Gr)){var t=ye(),r=hi();return Hr(t,Yr(0),e,r)}}(t);if(r)return r;var n=ye(),i=Yr(0);return 79===i.kind&&38===he()?Hr(n,i,t,void 0):e.isLeftHandSideExpression(i)&&e.isAssignmentOperator(Te())?rn(i,He(),Wr(t),n):function(t,r,n){var i,a=qe(57);return a?Ye(P.createConditionalExpression(t,a,Z(20480,(function(){return Wr(!1)})),i=We(58),e.nodeIsPresent(i)?Wr(n):Ze(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t}(i,n,t)}function Hr(t,r,n,i){e.Debug.assert(38===he(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=P.createParameterDeclaration(void 0,void 0,r,void 0,void 0,void 0);Ye(a,r.pos);var o=Qe([a],a.pos,a.end),s=We(38),c=Qr(!!i,n);return V(Ye(P.createArrowFunction(i,void 0,o,void 0,s,c),t))}function $r(){if(132===he()){if(De(),c.hasPrecedingLineBreak())return 0;if(20!==he()&&29!==he())return 0}var t=he(),r=De();if(20===t){if(21===r)switch(De()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&132!==r&&Fe(yt))return 128===De()?0:1;if(!Me()&&108!==r)return 0;switch(De()){case 58:return 1;case 57:return De(),58===he()||27===he()||63===he()||21===he()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Me()?1===g?Fe((function(){var e=De();if(94===e)switch(De()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1}))?1:0:2:0}function Gr(){if(132===he()){if(De(),c.hasPrecedingLineBreak()||38===he())return 0;var e=Yr(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===he())return 1}return 0}function Xr(t,r){var n,i=ye(),a=ve(),o=hi(),s=e.some(o,e.isAsyncModifier)?2:0,c=Qt();if(Oe(20)){if(t)n=rr(s,t);else{var l=rr(s,t);if(!l)return;n=l}if(!Oe(21)&&!t)return}else{if(!t)return;n=Ft()}var u=58===he(),d=tr(58,!1);if(!d||t||!Wt(d)){for(var _=d;193===(null==_?void 0:_.kind);)_=_.type;var f=_&&e.isJSDocFunctionType(_);if(t||38===he()||!f&&18===he()){var p=he(),m=We(38),g=38===p||18===p?Qr(e.some(o,e.isAsyncModifier),r):nt();if(r||!u||58===he())return R(Ye(P.createArrowFunction(o,c,n,d,m,g),i),a)}}}function Qr(e,t){if(18===he())return Ln(e?2:0);if(26!==he()&&98!==he()&&84!==he()&&qn()&&(18===he()||98===he()||84===he()||59===he()||!Ur()))return Ln(16|(e?2:0));var r=F;F=!1;var n=e?ie((function(){return Wr(t)})):ae((function(){return Wr(t)}));return F=r,n}function Yr(e){var t=ye();return en(e,on(),t)}function Zr(e){return 101===e||162===e}function en(t,r,n){for(;;){Te();var i=e.getBinaryOperatorPrecedence(he());if(!(42===he()?i>=t:i>t))break;if(101===he()&&ce())break;if(128===he()||150===he()){if(c.hasPrecedingLineBreak())break;var a=he();De(),r=150===a?(o=r,s=Jr(),Ye(P.createSatisfiesExpression(o,s),o.pos)):nn(r,Jr())}else r=rn(r,He(),Yr(i),n)}var o,s;return r}function tn(){return(!ce()||101!==he())&&e.getBinaryOperatorPrecedence(he())>0}function rn(e,t,r,n){return Ye(P.createBinaryExpression(e,t,r),n)}function nn(e,t){return Ye(P.createAsExpression(e,t),e.pos)}function an(){var e=ye();return Ye(P.createPrefixUnaryExpression(he(),be(sn)),e)}function on(){if(function(){switch(he()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(1!==g)return!1;default:return!0}}()){var t=ye(),r=cn();return 42===he()?en(e.getBinaryOperatorPrecedence(he()),r,t):r}var n=he(),i=sn();if(42===he()){t=e.skipTrivia(_,i.pos);var a=i.end;213===i.kind?pe(t,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):pe(t,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(n))}return i}function sn(){switch(he()){case 39:case 40:case 54:case 53:return an();case 89:return e=ye(),Ye(P.createDeleteExpression(be(sn)),e);case 112:return function(){var e=ye();return Ye(P.createTypeOfExpression(be(sn)),e)}();case 114:return function(){var e=ye();return Ye(P.createVoidExpression(be(sn)),e)}();case 29:return function(){var e=ye();Oe(29);var t=Jr();Oe(31);var r=sn();return Ye(P.createTypeAssertion(t,r),e)}();case 133:if(133===he()&&(de()||Fe(zn)))return function(){var e=ye();return Ye(P.createAwaitExpression(be(sn)),e)}();default:return cn()}var e}function cn(){if(45===he()||46===he()){var t=ye();return Ye(P.createPrefixUnaryExpression(he(),be(ln)),t)}if(1===g&&29===he()&&Fe(ht))return dn(!0);var r=ln();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===he()||46===he())&&!c.hasPrecedingLineBreak()){var n=he();return De(),Ye(P.createPostfixUnaryExpression(r,n),r.pos)}return r}function ln(){var t,r=ye();return 100===he()?Fe(dr)?(d|=2097152,t=He()):Fe(_r)?(De(),De(),t=Ye(P.createMetaProperty(100,it()),r),d|=4194304):t=un():t=106===he()?function(){var t=ye(),r=He();if(29===he()){var n=ye(),i=we(En);void 0!==i&&(pe(n,ye(),e.Diagnostics.super_may_not_use_type_arguments),Dn()||(r=P.createExpressionWithTypeArguments(r,i)))}return 20===he()||24===he()||22===he()?r:(We(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ye(P.createPropertyAccessExpression(r,Ot(!0,!0)),t))}():un(),Tn(r,t)}function un(){return bn(ye(),kn(),!0)}function dn(t,r,n){var i,a=ye(),s=function(e){var t=ye();if(Oe(29),31===he())return Ae(),Ye(P.createJsxOpeningFragment(),t);var r,n=pn(),i=0==(262144&N)?Ei():void 0,a=function(){var e=ye();return Ye(P.createJsxAttributes(Tt(13,gn)),e)}();return 31===he()?(Ae(),r=P.createJsxOpeningElement(n,i,a)):(Oe(43),Oe(31,void 0,!1)&&(e?De():Ae()),r=P.createJsxSelfClosingElement(n,i,a)),Ye(r,t)}(t);if(283===s.kind){var c=fn(s),l=void 0,u=c[c.length-1];if(281===(null==u?void 0:u.kind)&&!G(u.openingElement.tagName,u.closingElement.tagName)&&G(s.tagName,u.closingElement.tagName)){var d=u.children.end,f=Ye(P.createJsxElement(u.openingElement,u.children,Ye(P.createJsxClosingElement(Ye(P.createIdentifier(""),d,d)),d,d)),u.openingElement.pos,d);c=Qe(o(o([],c.slice(0,c.length-1),!0),[f],!1),c.pos,d),l=u.closingElement}else l=function(e,t){var r=ye();Oe(30);var n=pn();return Oe(31,void 0,!1)&&(t||!G(e.tagName,n)?De():Ae()),Ye(P.createJsxClosingElement(n),r)}(s,t),G(s.tagName,l.tagName)||(n&&e.isJsxOpeningElement(n)&&G(l.tagName,n.tagName)?me(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,s.tagName)):me(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(_,s.tagName)));i=Ye(P.createJsxElement(s,c,l),a)}else 286===s.kind?i=Ye(P.createJsxFragment(s,fn(s),function(t){var r=ye();return Oe(30),e.tokenIsIdentifierOrKeyword(he())&&me(pn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Oe(31,void 0,!1)&&(t?De():Ae()),Ye(P.createJsxJsxClosingFragment(),r)}(t)),a):(e.Debug.assert(282===s.kind),i=s);if(t&&29===he()){var p=void 0===r?i.pos:r,m=we((function(){return dn(!0,p)}));if(m){var g=Ze(27,!1);return e.setTextRangePosWidth(g,m.pos,0),pe(e.skipTrivia(_,p),m.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ye(P.createBinaryExpression(i,g,m),a)}}return i}function _n(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))me(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;pe(e.skipTrivia(_,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=ye(),a=P.createJsxText(c.getTokenValue(),12===b),b=c.scanJsxToken(),Ye(a,i);case 18:return mn(!1);case 29:return dn(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function fn(t){var r=[],n=ye(),i=E;for(E|=16384;;){var a=_n(t,b=c.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&281===(null==a?void 0:a.kind)&&!G(a.openingElement.tagName,a.closingElement.tagName)&&G(t.tagName,a.closingElement.tagName))break}return E=i,Qe(r,n)}function pn(){var e=ye();Ne();for(var t=108===he()?He():it();Ve(24);)t=Ye(P.createPropertyAccessExpression(t,Ot(!0,!1)),e);return t}function mn(e){var t,r,n=ye();if(Oe(18))return 19!==he()&&(t=qe(25),r=Vr()),e?Oe(19):Oe(19,void 0,!1)&&Ae(),Ye(P.createJsxExpression(t,r),n)}function gn(){if(18===he())return function(){var e=ye();Oe(18),Oe(25);var t=Vr();return Oe(19),Ye(P.createJsxSpreadAttribute(t),e)}();Ne();var t=ye();return Ye(P.createJsxAttribute(it(),function(){if(63===he()){if(10===(b=c.scanJsxAttributeValue()))return Jt();if(18===he())return mn(!0);if(29===he())return dn(!0);_e(e.Diagnostics.or_JSX_element_expected)}}()),t)}function yn(){return De(),e.tokenIsIdentifierOrKeyword(he())||22===he()||Dn()}function vn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function hn(t,r,n){var i=Ot(!0,!0),a=n||vn(r),o=a?P.createPropertyAccessChain(r,n,i):P.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&me(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),e.isExpressionWithTypeArguments(r)&&r.typeArguments&&pe(r.typeArguments.pos-1,e.skipTrivia(_,r.typeArguments.end)+1,e.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access),Ye(o,t)}function xn(t,r,n){var i;if(23===he())i=Ze(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(Vr);e.isStringOrNumericLiteralLike(a)&&(a.text=et(a.text)),i=a}return Oe(23),Ye(n||vn(r)?P.createElementAccessChain(r,n,i):P.createElementAccessExpression(r,i),t)}function bn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===he()&&Fe(yn)?(i=We(28),a=e.tokenIsIdentifierOrKeyword(he())):a=Ve(24),a)r=hn(t,r,i);else if(!i&&ue()||!Ve(22)){if(!Dn()){if(!i){if(53===he()&&!c.hasPrecedingLineBreak()){De(),r=Ye(P.createNonNullExpression(r),t);continue}var o=we(En);if(o){r=Ye(P.createExpressionWithTypeArguments(r,o),t);continue}}return r}r=i||230!==r.kind?Sn(t,r,i,void 0):Sn(t,r.expression,i,r.typeArguments)}else r=xn(t,r,i)}}function Dn(){return 14===he()||15===he()}function Sn(e,t,r,n){var i=P.createTaggedTemplateExpression(t,n,14===he()?(Ce(),Jt()):Lt(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Ye(i,e)}function Tn(t,r){for(;;){r=bn(t,r,!0);var n=void 0,i=qe(28);if(i&&(n=we(En),Dn()))r=Sn(t,r,i,n);else{if(!n&&20!==he()){if(i){var a=Ze(79,!1,e.Diagnostics.Identifier_expected);r=Ye(P.createPropertyAccessChain(r,i,a),t)}break}i||230!==r.kind||(n=r.typeArguments,r=r.expression);var o=Cn();r=Ye(i||vn(r)?P.createCallChain(r,i,n,o):P.createCallExpression(r,n,o),t)}}return r}function Cn(){Oe(20);var e=At(11,An);return Oe(21),e}function En(){if(0==(262144&N)&&29===Ee()){De();var e=At(20,Jr);if(31===Te())return De(),e&&function(){switch(he()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return c.hasPrecedingLineBreak()||tn()||!Ur()}()?e:void 0}}function kn(){switch(he()){case 8:case 9:case 10:case 14:return Jt();case 108:case 106:case 104:case 110:case 95:return He();case 20:return function(){var e=ye(),t=ve();Oe(20);var r=te(Vr);return Oe(21),R(Ye(P.createParenthesizedExpression(r),e),t)}();case 22:return Pn();case 18:return wn();case 132:if(!Fe(Kn))break;return In();case 84:return Di(ye(),ve(),void 0,void 0,228);case 98:return In();case 103:return function(){var t=ye();if(Oe(103),Ve(24)){var r=it();return Ye(P.createMetaProperty(103,r),t)}var n,i=bn(ye(),kn(),!1);230===i.kind&&(n=i.typeArguments,i=i.expression),28===he()&&_e(e.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,e.getTextOfNodeFromSourceText(_,i));var a=20===he()?Cn():void 0;return Ye(P.createNewExpression(i,n,a),t)}();case 43:case 68:if(13===(b=c.reScanSlashToken()))return Jt();break;case 15:return Lt(!1);case 80:return st()}return nt(e.Diagnostics.Expression_expected)}function Nn(){return 25===he()?function(){var e=ye();Oe(25);var t=Wr(!0);return Ye(P.createSpreadElement(t),e)}():27===he()?Ye(P.createOmittedExpression(),ye()):Wr(!0)}function An(){return Z(20480,Nn)}function Pn(){var e=ye(),t=c.getTokenPos(),r=Oe(22),n=c.hasPrecedingLineBreak(),i=At(15,Nn);return Ue(22,23,r,t),Ye(P.createArrayLiteralExpression(i,n),e)}function Fn(){var e=ye(),t=ve();if(qe(25)){var r=Wr(!0);return R(Ye(P.createSpreadAssignment(r),e),t)}var n=mi(),i=vi();if(ct(137))return di(e,t,n,i,174,0);if(ct(151))return di(e,t,n,i,175,0);var a,o=qe(41),s=Me(),c=ot(),l=qe(57),u=qe(53);if(o||20===he()||29===he())return ci(e,t,n,i,o,c,l,u);if(s&&58!==he()){var d=qe(63),_=d?te((function(){return Wr(!0)})):void 0;(a=P.createShorthandPropertyAssignment(c,_)).equalsToken=d}else{Oe(58);var f=te((function(){return Wr(!0)}));a=P.createPropertyAssignment(c,f)}return a.illegalDecorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,R(Ye(a,e),t)}function wn(){var e=ye(),t=c.getTokenPos(),r=Oe(18),n=c.hasPrecedingLineBreak(),i=At(12,Fn,!0);return Ue(18,19,r,t),Ye(P.createObjectLiteralExpression(i,n),e)}function In(){var t=ue();Q(!1);var r=ye(),n=ve(),i=vi();Oe(98);var a=qe(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ee(40960,Mn):o?ee(8192,Mn):s?ie(Mn):Mn(),l=Qt(),u=nr(o|s),d=tr(58,!1),_=Ln(o|s);return Q(t),R(Ye(P.createFunctionExpression(i,a,c,l,u,d,_),r),n)}function Mn(){return Ie()?rt():void 0}function On(t,r){var n=ye(),i=ve(),a=c.getTokenPos(),o=Oe(18,r);if(o||t){var s=c.hasPrecedingLineBreak(),l=Tt(1,Hn);Ue(18,19,o,a);var u=R(Ye(P.createBlock(l,s),n),i);return 63===he()&&(_e(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),De()),u}return l=Ft(),R(Ye(P.createBlock(l,void 0),n),i)}function Ln(e,t){var r=se();X(!!(1&e));var n=de();Y(!!(2&e));var i=F;F=!1;var a=ue();a&&Q(!1);var o=On(!!(16&e),t);return a&&Q(!0),F=i,X(r),Y(n),o}function Rn(e){var t=ye(),r=ve();Oe(249===e?81:86);var n=$e()?void 0:nt();return Xe(),R(Ye(249===e?P.createBreakStatement(n):P.createContinueStatement(n),t),r)}function jn(){return 82===he()?function(){var e=ye(),t=ve();Oe(82);var r=te(Vr);Oe(58);var n=Tt(3,Hn);return R(Ye(P.createCaseClause(r,n),e),t)}():function(){var e=ye();Oe(88),Oe(58);var t=Tt(3,Hn);return Ye(P.createDefaultClause(t),e)}()}function Bn(){return De(),e.tokenIsIdentifierOrKeyword(he())&&!c.hasPrecedingLineBreak()}function Jn(){return De(),84===he()&&!c.hasPrecedingLineBreak()}function Kn(){return De(),98===he()&&!c.hasPrecedingLineBreak()}function zn(){return De(),(e.tokenIsIdentifierOrKeyword(he())||8===he()||9===he()||10===he())&&!c.hasPrecedingLineBreak()}function Un(){for(;;)switch(he()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return De(),!c.hasPrecedingLineBreak()&&Me();case 142:case 143:return De(),!c.hasPrecedingLineBreak()&&(Me()||10===he());case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(De(),c.hasPrecedingLineBreak())return!1;continue;case 159:return De(),18===he()||79===he()||93===he();case 100:return De(),10===he()||41===he()||18===he()||e.tokenIsIdentifierOrKeyword(he());case 93:var t=De();if(154===t&&(t=Fe(De)),63===t||41===t||18===t||88===t||128===t)return!0;continue;case 124:De();continue;default:return!1}}function Vn(){return Fe(Un)}function qn(){switch(he()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 100:return Vn()||Fe(fr);case 85:case 93:return Vn();case 127:case 123:case 121:case 122:case 124:case 146:return Vn()||!Fe(Bn);default:return Ur()}}function Wn(){return De(),Ie()||18===he()||22===he()}function Hn(){switch(he()){case 26:return t=ye(),r=ve(),Oe(26),R(Ye(P.createEmptyStatement(),t),r);case 18:return On(!1);case 113:return oi(ye(),ve(),void 0,void 0);case 119:if(Fe(Wn))return oi(ye(),ve(),void 0,void 0);break;case 98:return si(ye(),ve(),void 0,void 0);case 84:return bi(ye(),ve(),void 0,void 0);case 99:return function(){var e=ye(),t=ve();Oe(99);var r=c.getTokenPos(),n=Oe(20),i=te(Vr);Ue(20,21,n,r);var a=Hn(),o=Ve(91)?Hn():void 0;return R(Ye(P.createIfStatement(i,a,o),e),t)}();case 90:return function(){var e=ye(),t=ve();Oe(90);var r=Hn();Oe(115);var n=c.getTokenPos(),i=Oe(20),a=te(Vr);return Ue(20,21,i,n),Ve(26),R(Ye(P.createDoStatement(r,a),e),t)}();case 115:return function(){var e=ye(),t=ve();Oe(115);var r=c.getTokenPos(),n=Oe(20),i=te(Vr);Ue(20,21,n,r);var a=Hn();return R(Ye(P.createWhileStatement(i,a),e),t)}();case 97:return function(){var e=ye(),t=ve();Oe(97);var r,n,i=qe(133);if(Oe(20),26!==he()&&(r=113===he()||119===he()||85===he()?ii(!0):ee(4096,Vr)),i?Oe(162):Ve(162)){var a=te((function(){return Wr(!0)}));Oe(21),n=P.createForOfStatement(i,r,a,Hn())}else if(Ve(101))a=te(Vr),Oe(21),n=P.createForInStatement(r,a,Hn());else{Oe(26);var o=26!==he()&&21!==he()?te(Vr):void 0;Oe(26);var s=21!==he()?te(Vr):void 0;Oe(21),n=P.createForStatement(r,o,s,Hn())}return R(Ye(n,e),t)}();case 86:return Rn(248);case 81:return Rn(249);case 105:return function(){var e=ye(),t=ve();Oe(105);var r=$e()?void 0:te(Vr);return Xe(),R(Ye(P.createReturnStatement(r),e),t)}();case 116:return function(){var e=ye(),t=ve();Oe(116);var r=c.getTokenPos(),n=Oe(20),i=te(Vr);Ue(20,21,n,r);var a=ee(33554432,Hn);return R(Ye(P.createWithStatement(i,a),e),t)}();case 107:return function(){var e=ye(),t=ve();Oe(107),Oe(20);var r=te(Vr);Oe(21);var n=function(){var e=ye();Oe(18);var t=Tt(2,jn);return Oe(19),Ye(P.createCaseBlock(t),e)}();return R(Ye(P.createSwitchStatement(r,n),e),t)}();case 109:return function(){var e=ye(),t=ve();Oe(109);var r=c.hasPrecedingLineBreak()?void 0:te(Vr);return void 0===r&&(C++,r=Ye(P.createIdentifier(""),ye())),Ge()||Je(r),R(Ye(P.createThrowStatement(r),e),t)}();case 111:case 83:case 96:return function(){var t=ye(),r=ve();Oe(111);var n,i=On(!1),a=83===he()?function(){var e,t=ye();Oe(83),Ve(20)?(e=ni(),Oe(21)):e=void 0;var r=On(!1);return Ye(P.createCatchClause(e,r),t)}():void 0;return a&&96!==he()||(Oe(96,e.Diagnostics.catch_or_finally_expected),n=On(!1)),R(Ye(P.createTryStatement(i,a,n),t),r)}();case 87:return function(){var e=ye(),t=ve();return Oe(87),Xe(),R(Ye(P.createDebuggerStatement(),e),t)}();case 59:return Gn();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(Vn())return Gn()}var t,r;return function(){var t,r=ye(),n=ve(),i=20===he(),a=te(Vr);return e.isIdentifier(a)&&Ve(58)?t=P.createLabeledStatement(a,Hn()):(Ge()||Je(a),t=P.createExpressionStatement(a),i&&(n=!1)),R(Ye(t,r),n)}()}function $n(e){return 136===e.kind}function Gn(){var t=ye(),r=ve(),n=mi(),i=vi();if(e.some(i,$n)){var a=function(e){return ee(16777216,(function(){var t=Et(E,e);if(t)return kt(t)}))}(t);if(a)return a;for(var o=0,s=i;o=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),f(a,t)){var s,l,d,p,m,g=[],y=[];return c.scanRange(t+3,i-5,(function(){var r,n,i=1,u=t-(a.lastIndexOf("\n",t)+1)+4;function _(e){r||(r=u),g.push(e),u+=e.length}for(Se();W(5););W(4)&&(i=0,u=0);e:for(;;){switch(he()){case 59:0===i||1===i?(h(g),m||(m=ye()),(n=S(u))&&(s?s.push(n):(s=[n],l=n.pos),d=n.end),i=0,r=void 0):_(c.getTokenText());break;case 4:g.push(c.getTokenText()),i=0,u=0;break;case 41:var f=c.getTokenText();1===i||2===i?(i=2,_(f)):(i=1,u+=f.length);break;case 5:var x=c.getTokenText();2===i?g.push(x):void 0!==r&&u+x.length>r&&g.push(x.slice(r-u)),u+=x.length;break;case 1:break e;case 18:i=2;var b=c.getStartPos(),D=N(c.getTextPos()-1);if(D){p||v(g),y.push(Ye(P.createJSDocText(g.join("")),null!=p?p:t,b)),y.push(D),g=[],p=c.getTextPos();break}default:i=2,_(c.getTokenText())}Se()}h(g),y.length&&g.length&&y.push(Ye(P.createJSDocText(g.join("")),null!=p?p:t,m)),y.length&&s&&e.Debug.assertIsDefined(m,"having parsed tags implies that the end of the comment span should be set");var T=s&&Qe(s,l,d);return Ye(P.createJSDocComment(y.length?Qe(y,t,m):g.length?g.join(""):void 0,T),t,o)}))}function v(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function h(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function x(){for(;;){if(Se(),1===he())return!0;if(5!==he()&&4!==he())return!1}}function b(){if(5!==he()&&4!==he()||!Fe(x))for(;5===he()||4===he();)Se()}function D(){if((5===he()||4===he())&&Fe(x))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===he()||5===he()||4===he();)r+=c.getTokenText(),4===he()?(e=!0,t=!0,r=""):41===he()&&(e=!1),Se();return t?r:""}function S(t){e.Debug.assert(59===he());var i=c.getTokenPos();Se();var a,o=H(void 0),l=D();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=ye(),o=function(){for(var e=[],t=!1,r=c.getToken();1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),r=Se()}return P.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=T(t,s,n,i);l||(s=c.getStartPos());var u="string"!=typeof l?Qe(e.concatenate([Ye(o,a,s)],l),a):o.text+l;return Ye(P.createJSDocAuthorTag(r,u),t)}(i,o,t,l);break;case"implements":a=function(e,t,r,n){var i=R();return Ye(P.createJSDocImplementsTag(t,i,T(e,ye(),r,n)),e)}(i,o,t,l);break;case"augments":case"extends":a=function(e,t,r,n){var i=R();return Ye(P.createJSDocAugmentsTag(t,i,T(e,ye(),r,n)),e)}(i,o,t,l);break;case"class":case"constructor":a=j(i,P.createJSDocClassTag,o,t,l);break;case"public":a=j(i,P.createJSDocPublicTag,o,t,l);break;case"private":a=j(i,P.createJSDocPrivateTag,o,t,l);break;case"protected":a=j(i,P.createJSDocProtectedTag,o,t,l);break;case"readonly":a=j(i,P.createJSDocReadonlyTag,o,t,l);break;case"override":a=j(i,P.createJSDocOverrideTag,o,t,l);break;case"deprecated":U=!0,a=j(i,P.createJSDocDeprecatedTag,o,t,l);break;case"this":a=function(e,t,n,i){var a=r(!0);return b(),Ye(P.createJSDocThisTag(t,a,T(e,ye(),n,i)),e)}(i,o,t,l);break;case"enum":a=function(e,t,n,i){var a=r(!0);return b(),Ye(P.createJSDocEnumTag(t,a,T(e,ye(),n,i)),e)}(i,o,t,l);break;case"arg":case"argument":case"param":return O(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&pe(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=w();return Ye(P.createJSDocReturnTag(r,a,T(t,ye(),n,i)),t)}(i,o,t,l);break;case"template":a=function(e,t,n,i){var a=18===he()?r():void 0,o=function(){var e=ye(),t=[];do{b();var r=q();void 0!==r&&t.push(r),D()}while(W(27));return Qe(t,e)}();return Ye(P.createJSDocTemplateTag(t,a,o,T(e,ye(),n,i)),e)}(i,o,t,l);break;case"type":a=L(i,o,t,l);break;case"typedef":a=function(t,r,n,i){var a,o=w();D();var s=B();b();var c,l=E(n);if(!o||M(o.type)){for(var d=void 0,_=void 0,f=void 0,p=!1;d=we((function(){return K(n)}));)if(p=!0,346===d.kind){if(_){var m=_e(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);m&&e.addRelatedInfo(m,e.createDetachedDiagnostic(u,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}_=d}else f=e.append(f,d);if(p){var g=o&&185===o.type.kind,y=P.createJSDocTypeLiteral(f,g);c=(o=_&&_.typeExpression&&!M(_.typeExpression.type)?_.typeExpression:Ye(y,t)).end}}return c=c||void 0!==l?ye():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=T(t,c,n,i)),Ye(P.createJSDocTypedefTag(r,o,s,l),t,c)}(i,o,t,l);break;case"callback":a=function(t,r,n,i){var a=B();b();var o=E(n),s=function(t){for(var r,n,i=ye();r=we((function(){return z(4,t)}));)n=e.append(n,r);return Qe(n||[],i)}(n),c=we((function(){if(W(59)){var e=S(n);if(e&&344===e.kind)return e}})),l=Ye(P.createJSDocSignature(void 0,s,c),t);o||(o=T(t,ye(),n,i));var u=void 0!==o?ye():l.end;return Ye(P.createJSDocCallbackTag(r,l,a,o),t,u)}(i,o,t,l);break;case"see":a=function(t,r,i,a){var o=22===he()||Fe((function(){return 59===Se()&&e.tokenIsIdentifierOrKeyword(Se())&&F(c.getTokenValue())}))?void 0:n(),s=void 0!==i&&void 0!==a?T(t,ye(),i,a):void 0;return Ye(P.createJSDocSeeTag(r,o,s),t)}(i,o,t,l);break;default:a=function(e,t,r,n){return Ye(P.createJSDocUnknownTag(t,T(e,ye(),r,n)),e)}(i,o,t,l)}return a}function T(e,t,r,n){return n||(r+=t-e),E(r,n.slice(r))}function E(e,t){var r,n,i=ye(),a=[],o=[],s=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),s=1);var d=he();e:for(;;){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||Fe(k))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(c.getTokenText());else{var _=c.getTokenText();void 0!==n&&e+_.length>n&&a.push(_.slice(n-e)),e+=_.length}break;case 18:s=2;var f=c.getStartPos(),p=N(c.getTextPos()-1);p?(o.push(Ye(P.createJSDocText(a.join("")),null!=r?r:i,f)),o.push(p),a=[],r=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===he(),d=Se()}return v(a),h(a),o.length?(a.length&&o.push(Ye(P.createJSDocText(a.join("")),null!=r?r:i)),Qe(o,i,c.getTextPos())):a.length?a.join(""):void 0}function k(){var e=Se();return 5===e||4===e}function N(t){var r=we(A);if(r){Se(),b();var n=ye(),i=e.tokenIsIdentifierOrKeyword(he())?It(!0):void 0;if(i)for(;80===he();)ke(),Se(),i=Ye(P.createJSDocMemberName(i,nt()),n);for(var a=[];19!==he()&&4!==he()&&1!==he();)a.push(c.getTokenText()),Se();return Ye(("link"===r?P.createJSDocLink:"linkcode"===r?P.createJSDocLinkCode:P.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function A(){if(D(),18===he()&&59===Se()&&e.tokenIsIdentifierOrKeyword(Se())){var t=c.getTokenValue();if(F(t))return t}}function F(e){return"link"===e||"linkcode"===e||"linkplain"===e}function w(){return D(),18===he()?r():void 0}function I(){var t=W(22);t&&b();var r=W(61),n=function(){var e=H();for(Ve(22)&&Oe(23);Ve(24);){var t=H();Ve(22)&&Oe(23),e=Mt(e,t)}return e}();return r&&(function(e){if(he()===e)return t=ye(),r=he(),Se(),Ye(P.createToken(r),t);var t,r}(61)||Ze(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(b(),qe(63)&&Vr(),Oe(23)),{name:n,isBracketed:t}}function M(t){switch(t.kind){case 149:return!0;case 185:return M(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function O(t,r,n,i){var a=w(),o=!a;D();var s=I(),c=s.name,l=s.isBracketed,u=D();o&&!Fe(A)&&(a=w());var d=T(t,ye(),i,u),_=4!==n&&function(t,r,n,i){if(t&&M(t.type)){for(var a=ye(),o=void 0,s=void 0;o=we((function(){return z(n,i,r)}));)343!==o.kind&&350!==o.kind||(s=e.append(s,o));if(s){var c=Ye(P.createJSDocTypeLiteral(s,185===t.type.kind),a);return Ye(P.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return _&&(a=_,o=!0),Ye(1===n?P.createJSDocPropertyTag(r,c,l,a,o,d):P.createJSDocParameterTag(r,c,l,a,o,d),t)}function L(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&pe(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?T(t,ye(),i,a):void 0;return Ye(P.createJSDocTypeTag(n,o,l),t)}function R(){var e=Ve(18),t=ye(),r=function(){for(var e=ye(),t=H();Ve(24);){var r=H();t=Ye(P.createPropertyAccessExpression(t,r),e)}return t}(),n=Ei(),i=Ye(P.createExpressionWithTypeArguments(r,n),t);return e&&Oe(19),i}function j(e,t,r,n,i){return Ye(t(r,T(e,ye(),n,i)),e)}function B(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(he())){var n=H();if(Ve(24)){var i=B(!0);return Ye(P.createModuleDeclaration(void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function J(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 K(e){return z(1,e)}function z(t,r,n){for(var i=!0,a=!1;;)switch(Se()){case 59:if(i){var o=V(t,r);return!(o&&(343===o.kind||350===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!J(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function V(t,r){e.Debug.assert(59===he());var n=c.getStartPos();Se();var i,a=H();switch(b(),a.escapedText){case"type":return 1===t&&L(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&O(n,a,t,r)}function q(){var t=ye(),r=W(22);r&&b();var n,i=H(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(b(),Oe(63),n=ee(8388608,Gt),Oe(23)),!e.nodeIsMissing(i))return Ye(P.createTypeParameterDeclaration(void 0,i,void 0,n),t)}function W(e){return he()===e&&(Se(),!0)}function H(t){if(!e.tokenIsIdentifierOrKeyword(he()))return Ze(79,!t,t||e.Diagnostics.Identifier_expected);C++;var r=c.getTokenPos(),n=c.getTextPos(),i=he(),a=et(c.getTokenValue()),o=Ye(P.createIdentifier(a,void 0,i),r,n);return Se(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){M("file.js",t,99,void 0,1),c.setText(t,n,i),b=c.scan();var a=r(),o=W("file.js",99,1,!1,[],P.createToken(1),0,e.noop),s=e.attachFileToDiagnostics(y,o);return h&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(h,o)),O(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){M("",t,99,void 0,1);var i=ee(8388608,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(y,a);return O(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=b,a=y.length,s=w,c=ee(8388608,(function(){return o(r,n)}));return e.setParent(c,t),262144&N&&(h||(h=[]),h.push.apply(h,y)),b=i,y.length=a,w=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(je=t.JSDocParser||(t.JSDocParser={}))}(y||(y={})),function(t){function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),L(t,l,u),e.hasJSDocNodes(t))for(var d=0,_=t.jsDoc;d<_.length;d++)l(_[d]);a(t,c)}function u(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r=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);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}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;a=i.pos&&(i=a),rr),!0)})),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function s(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),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,l)}(t,l);s(t,n,p,u),e.Debug.assert(p.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(p.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(p))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var m=e.textChangeRangeNewSpan(p).length-p.span.length;!function(t,n,o,s,c,l,u,d){return void _(t);function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,d);else{var p=t.end;if(p>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),L(t,_,f),e.hasJSDocNodes(t))for(var m=0,g=t.jsDoc;mo)r(t,!0,c,l,u,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var f=0,p=t;fi){y();var g={range:{pos:p.pos+a,end:p.end+a},type:m};l=e.append(l,g),c&&e.Debug.assert(o.substring(p.pos,p.end)===s.substring(g.range.pos,g.range.end))}}return y(),l;function y(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}}(t.commentDirectives,g.commentDirectives,p.span.start,e.textSpanEnd(p.span),m,_,n,u),g.impliedNodeFormat=t.impliedNodeFormat,g},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(v||(v={})),e.isDeclarationFileName=J,e.processCommentPragmas=K,e.processPragmasIntoFields=z;var U=new e.Map;function V(e){if(U.has(e))return U.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return U.set(e,t),t}var q=/^\/\/\/\s*<(\S+)\s.*?\/>/im,W=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function H(t,r,n){var i=2===r.kind&&q.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,l=o.args;c=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function h(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=ge(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,z(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=ge(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=ge(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=ge(i,t[r]||"",o),r++;break;case"list":var c=m(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=p(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function x(e,t){return b(c,e,t)}function b(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function D(){return l||(l=a(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=_,e.parseCustomTypeOption=p,e.parseListTypeOption=m,e.parseCommandLineWorker=v,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return v(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=x;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:D,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function T(t,r){var n=e.parseJsonText(t,r);return{config:B(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function C(t,r){var n=E(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function E(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,g)}e.parseBuildCommand=function(t){var r=v(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n=0)return l.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o(o([],c,!0),[_],!1).join(" -> "))),{raw:t||J(r,l)};var f=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=le(t.compilerOptions,n,a,i),c=de(t.typeAcquisition||t.typingOptions,n,a,i),l=function(e,t,r){return _e(R(),e,t,void 0,O,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=fe(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?te(i,n):n;o=se(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,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(t,n,a,s,l):function(t,r,n,a,o){var s,c,l,u,d,_=ce(a),f={onSetValidOptionKeyValueInParent:function(t,r,i){var o;switch(t){case"compilerOptions":o=_;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ue(a));break;case"typingOptions":o=c||(c=ue(a));break;default:e.Debug.fail("Unknown option")}o[r.name]=pe(r,n,i)},onSetValidOptionKeyValueInRoot:function(i,s,c,l){if("extends"!==i);else{var d=a?te(a,n):n;u=se(c,r,d,o,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,a,s){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(i,(function(e){return e.name===r}))&&(d=e.append(d,n))}},p=B(t,o,!0,f);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ue(a)),d&&p&&void 0===p.compilerOptions&&o.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0]))),{raw:p,options:_,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}}(r,n,a,s,l);if((null===(d=f.options)||void 0===d?void 0:d.paths)&&(f.options.pathsBasePath=a),f.extendedConfigPath){c=c.concat([_]);var p=function(t,r,n,i,a,o){var s,c,l,u,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):(l=C(r,(function(e){return n.readFile(e)})),l.parseDiagnostics.length||(u=oe(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)}(r,f.extendedConfigPath,n,c,l,u);if(p&&p.options){var m,g=p.raw,y=f.raw,v=function(t){!y[t]&&g[t]&&(y[t]=e.map(g[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(m||(m=e.convertToRelativePath(e.getDirectoryPath(f.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t)})))};v("include"),v("exclude"),v("files"),void 0===y.compileOnSave&&(y.compileOnSave=g.compileOnSave),f.options=e.assign({},p.options,f.options),f.watchOptions=f.watchOptions&&p.watchOptions?e.assign({},p.watchOptions,f.watchOptions):f.watchOptions||p.watchOptions}}return f}function se(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);return r.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function le(t,r,n,i){var a=ce(i);return _e(L(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ue(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function de(e,t,r,n){var i=ue(n),a=d(e);return _e(j(),a,t,i,A,r),i}function _e(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=fe(c,r[s],n,o):o.push(y(s,a,e.createCompilerDiagnostic))}return i}}function fe(t,r,n,i){if(U(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return fe(t.element,e,n,i)})),(function(e){return!!t.listPreserveFalsyValues||!!e}))}(t,r,n,i);if(!e.isString(a))return ye(t,r,i);var o=ge(t,r,i);return ee(o)?o:me(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,z(t)))}function pe(t,r,n){if(!ee(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return pe(i.element,r,e)})),(function(e){return!!i.listPreserveFalsyValues||!!e})):n}return e.isString(t.type)?me(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function me(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ge(t,r,n){var i;if(!ee(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function ye(e,t,r){if(!ee(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return ge(e,i,r);r.push(_(e))}}e.convertToObject=J,e.convertToObjectWorker=K,e.convertToTSConfig=function(t,r,n){var i,a,o,c=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),l=e.map(e.filter(t.fileNames,(null===(a=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===a?void 0:a.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),c)})),u=$(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),d=t.watchOptions&&G(t.watchOptions,P());return s(s({compilerOptions:s(s({},V(u)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:d&&V(d),references:e.map(t.projectReferences,(function(e){return s(s({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(l)?l:void 0},(null===(o=t.options.configFile)||void 0===o?void 0:o.configFileSpecs)?{include:q(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getNameOfCompilerOptionValue=H,e.getCompilerOptionsDiffValue=function(t,r){var n,a,o=X(t);return n=[],2,a=Array(3).join(" "),i.forEach((function(t){if(o.has(t.name)){var r=o.get(t.name),i=Ne(t);r!==i?n.push("".concat(a).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(a).concat(t.name,": ").concat(i))}})),n.join(r)+r},e.generateTSConfig=function(t,r,n){var i=X(t);return function(){var t=new e.Map;t.set(e.Diagnostics.Projects,[]),t.set(e.Diagnostics.Language_and_Environment,[]),t.set(e.Diagnostics.Modules,[]),t.set(e.Diagnostics.JavaScript_Support,[]),t.set(e.Diagnostics.Emit,[]),t.set(e.Diagnostics.Interop_Constraints,[]),t.set(e.Diagnostics.Type_Checking,[]),t.set(e.Diagnostics.Completeness,[]);for(var s=0,c=e.optionDeclarations;s0)for(var x=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=_.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^".concat(e,"$")}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(t)}))){var d=s(t);c.has(d)||u.has(d)||u.set(d,t)}return"continue"}if(function(t,r,n,i,a){var o=e.forEach(i,(function(r){return e.fileExtensionIsOneOf(t,r)?r:void 0}));if(!o)return!1;for(var s=0,c=o;s=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}}(t,l,p,s);var f=s(t);c.has(f)||l.has(f)||l.set(f,t)},b=0,D=i.readDirectory(r,e.flatten(m),f,_,void 0);br}function De(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function Se(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=Te(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Te(t,r){return r&&ve.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:be(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ce(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function k(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return C(n,a,o,(function(){return N()}))},clear:function(){n.clear()},update:function(e){E(e,n)}}}function N(){var t=new e.Map,r=new e.Map,n={get:function(e,r){return t.get(i(e,r))},set:function(e,r,a){return t.set(i(e,r),a),n},delete:function(e,r){return t.delete(i(e,r)),n},has:function(e,r){return t.has(i(e,r))},forEach:function(e){return t.forEach((function(t,n){var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)}))},size:function(){return t.size}};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function A(r,n,i,a,o){var s=function(r,n,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),fe(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,d=o.compilerOptions.rootDirs;u=e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(o)<=e.ModuleResolutionKind.NodeNext&&t(l,e.Diagnostics.Resolving_in_0_mode_with_conditions_1,n&h.EsmMode?"ESM":"CJS",x.map((function(e){return"'".concat(e,"'")})).join(", "));var T=e.forEach(_,(function(r){return function(r){var d,_=A(r,i,a,(function(e,t,r,n){return B(e,t,r,n,!0)}),S);if(_)return he({resolved:_,isExternalLibraryImport:J(_.path)});if(e.isExternalModuleNameRelative(i)){var p=R(a,i),m=p.path,y=p.parts,v=B(r,m,!1,S,!0);return v&&he({resolved:v,isExternalLibraryImport:e.contains(y,"node_modules")})}if(n&h.Imports&&e.startsWith(i,"#")&&(d=function(r,n,i,a,o,s){var c,l;if("#"===n||e.startsWith(n,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,n),he(void 0);var u=e.getNormalizedAbsolutePath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c)),d=Z(u,a);if(!d)return a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,u),he(void 0);if(!d.contents.packageJsonContent.imports)return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,d.packageDirectory),he(void 0);var _=oe(r,a,o,s,n,d.contents.packageJsonContent.imports,d,!0);return _||(a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,d.packageDirectory),he(void 0))}(r,i,a,S,u,f)),!d&&n&h.SelfName&&(d=function(t,r,n,i,a,o){var s,c,l=Z(e.getNormalizedAbsolutePath(e.combinePaths(n,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s)),i);if(l&&l.contents.packageJsonContent.exports&&"string"==typeof l.contents.packageJsonContent.name){var u=e.getPathComponents(r),d=e.getPathComponents(l.contents.packageJsonContent.name);if(e.every(d,(function(e,t){return u[t]===e}))){var _=u.slice(d.length);return ie(l,t,e.length(_)?".".concat(e.directorySeparator).concat(_.join(e.directorySeparator)):".",i,a,o)}}}(r,i,a,S,u,f)),d||(g&&t(l,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,c[r]),d=le(r,i,a,S,u,f)),d){var x=d.value;if(!o.preserveSymlinks&&x&&!x.originalPath){var D=j(x.path,l,g),T=b(D,x.path,l),C=T?void 0:x.path;x=s(s({},x),{path:T?x.path:D,originalPath:C})}return{value:x&&{resolved:x,isExternalLibraryImport:!0}}}}(r)}));return d(null===(p=null==T?void 0:T.value)||void 0===p?void 0:p.resolved,null===(m=null==T?void 0:T.value)||void 0===m?void 0:m.isExternalLibraryImport,y,v,D,S.resultFromCache)}function R(t,r){var n=e.combinePaths(t,r),i=e.getPathComponents(n),a=e.lastOrUndefined(i);return{path:"."===a||".."===a?e.ensureTrailingDirectorySeparator(e.normalizePath(n)):e.normalizePath(n),parts:i}}function j(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),"".concat(r," linked to nonexistent file ").concat(a)),a}function B(r,i,a,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,c[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=V(r,i,a,o);if(u){var d=s?K(u.path):void 0;return n(d?ee(d,!1,o):void 0,u)}}if(a||e.directoryProbablyExists(i,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0),!(o.features&h.EsmMode))return X(r,i,a,o,s)}function J(t){return e.stringContains(t,e.nodeModulesPathPart)}function K(t){var r=e.normalizePath(t),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1!==n){var i=n+e.nodeModulesPathPart.length,a=z(r,i);return 64===r.charCodeAt(i)&&(a=z(r,a)),r.slice(0,a)}}function z(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function U(e,t,r,n){return i(V(e,t,r,n))}function V(t,r,n,i){if(t===c.Json||t===c.TSConfig){var a=e.tryRemoveExtension(r,".json"),o=a?r.substring(a.length):"";return void 0===a&&t===c.Json?void 0:H(a||r,t,o,n,i)}if(!(i.features&h.EsmMode)){var s=H(r,t,"",n,i);if(s)return s}return q(t,r,n,i)}function q(r,n,i,a){if(e.hasJSFileExtension(n)||e.fileExtensionIs(n,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(n),s=n.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s),H(o,r,s,i,a)}}function W(t,r,n,i){return t!==c.TypeScript&&t!==c.DtsOnly||!e.fileExtensionIsOneOf(r,e.supportedTSExtensionsFlat)?q(t,r,n,i):void 0!==$(r,n,i)?{path:r,ext:e.tryExtractTSExtension(r)}:void 0}function H(t,r,n,i,a){if(!i){var o=e.getDirectoryPath(t);o&&(i=!e.directoryProbablyExists(o,a.host))}switch(r){case c.DtsOnly:switch(n){case".mjs":case".mts":case".d.mts":return l(".d.mts");case".cjs":case".cts":case".d.cts":return l(".d.cts");case".json":return t+=".json",l(".d.ts");default:return l(".d.ts")}case c.TypeScript:case c.TsOnly:var s=r===c.TypeScript;switch(n){case".mjs":case".mts":case".d.mts":return l(".mts")||(s?l(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return l(".cts")||(s?l(".d.cts"):void 0);case".json":return t+=".json",s?l(".d.ts"):void 0;default:return l(".ts")||l(".tsx")||(s?l(".d.ts"):void 0)}case c.JavaScript:switch(n){case".mjs":case".mts":case".d.mts":return l(".mjs");case".cjs":case".cts":case".d.cts":return l(".cjs");case".json":return l(".json");default:return l(".js")||l(".jsx")}case c.TSConfig:case c.Json:return l(".json")}function l(e){var r=$(t+e,i,a);return void 0===r?void 0:{path:r,ext:e}}}function $(t,r,n){var i,a;if(!(null===(i=n.compilerOptions.moduleSuffixes)||void 0===i?void 0:i.length))return G(t,r,n);var o=null!==(a=e.tryGetExtensionFromPath(t))&&void 0!==a?a:"",s=o?e.removeExtension(t,o):t;return e.forEach(n.compilerOptions.moduleSuffixes,(function(e){return G(s+e+o,r,n)}))}function G(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function X(e,t,r,i,a){void 0===a&&(a=!0);var o=a?ee(t,r,i):void 0;return n(o,te(e,t,r,i,o&&o.contents.packageJsonContent,o&&o.contents.versionPaths))}function Q(t,r,n,i){var a;if(e.isArray(r))for(var o=0,s=r;o=0||c.indexOf(".")>=0||c.indexOf("node_modules")>=0)return!1;var u=e.combinePaths(t.packageDirectory,r),d=e.getNormalizedAbsolutePath(u,null===(s=(o=n.host).getCurrentDirectory)||void 0===s?void 0:s.call(o)),_=W(i,d,!1,n);if(_)return a=e.appendIfUnique(a,_,(function(e,t){return e.path===t.path})),!0}else if(Array.isArray(r)){for(var f=0,p=r;f0;){var i=ee(e.getPathFromPathComponents(n),!1,r);if(i)return i;n.pop()}}function ee(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,u=e.combinePaths(r,"package.json");if(n)i.failedLookupLocations.push(u);else{var d=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!=typeof d?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),i.affectingLocations.push(u),d.packageDirectory===r?d:{packageDirectory:r,contents:d.contents}):(d&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void i.failedLookupLocations.push(u));var _=e.directoryProbablyExists(r,c);if(_&&c.fileExists(u)){var f=e.readJson(u,c);l&&t(c,e.Diagnostics.Found_package_json_at_0,u);var p={packageDirectory:r,contents:{packageJsonContent:f,versionPaths:g(f,i),resolvedEntrypoints:void 0}};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,p),i.affectingLocations.push(u),p}_&&l&&t(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,_),i.failedLookupLocations.push(u)}}function te(r,n,o,s,l,u){var d;if(l)switch(r){case c.JavaScript:case c.Json:case c.TsOnly:d=m(l,n,s);break;case c.TypeScript:d=p(l,n,s)||m(l,n,s);break;case c.DtsOnly:d=p(l,n,s);break;case c.TSConfig:d=function(e,t,r){return f(e,"tsconfig",t,r)}(l,n,s);break;default:return e.Debug.assertNever(r)}var _=function(r,n,a,o){var s=$(n,a,o);if(s){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case c.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case c.TSConfig:case c.Json:return".json"===t;case c.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t;case c.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t;case c.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,s);if(u)return i(u);o.traceEnabled&&t(o.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}var d=r===c.DtsOnly?c.TypeScript:r,_=o.features;"module"!==(null==l?void 0:l.type)&&(o.features&=~h.EsmMode);var f=B(d,n,a,o,!1);return o.features=_,f},g=d?!e.directoryProbablyExists(e.getDirectoryPath(d),s.host):void 0,y=o||!e.directoryProbablyExists(n,s.host),v=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(u&&(!d||e.containsPath(n,d))){var x=e.getRelativePathFromDirectory(n,d||v,!1);s.traceEnabled&&t(s.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,x);var b=fe(r,x,n,u.paths,void 0,_,g||y,s);if(b)return a(b.value)}return d&&a(_(r,d,g,s))||(s.features&h.EsmMode?void 0:V(r,v,y,s))}function re(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 ne(t){return e.every(e.getOwnKeys(t),(function(t){return e.startsWith(t,".")}))}function ie(r,n,i,a,o,s){if(r.contents.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.contents.packageJsonContent.exports||Array.isArray(r.contents.packageJsonContent.exports)||"object"==typeof r.contents.packageJsonContent.exports&&(u=r.contents.packageJsonContent.exports,!e.some(e.getOwnKeys(u),(function(t){return e.startsWith(t,".")})))?c=r.contents.packageJsonContent.exports:e.hasProperty(r.contents.packageJsonContent.exports,".")&&(c=r.contents.packageJsonContent.exports["."]),c)return se(n,a,o,s,i,r,!1)(c,"",!1,".")}else if(ne(r.contents.packageJsonContent.exports)){if("object"!=typeof r.contents.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),he(void 0);var l=oe(n,a,o,s,i,r.contents.packageJsonContent.exports,r,!1);if(l)return l}var u;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),he(void 0)}}function ae(e,t){var r=e.indexOf("*"),n=t.indexOf("*"),i=-1===r?e.length:r+1,a=-1===n?t.length:n+1;return i>a?-1:a>i||-1===r?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function oe(t,r,n,i,a,o,s,c){var l=se(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(f=o[a],"",!1,a);for(var u=0,d=e.sort(e.filter(e.getOwnKeys(o),(function(t){return-1!==t.indexOf("*")||e.endsWith(t,"/")})),ae);u0&&!e.endsWith(_,"/"))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),he(void 0);if(!e.startsWith(_,"./")){if(u&&!e.startsWith(_,"../")&&!e.startsWith(_,"/")&&!e.isRootedDiskPath(_)){var g=p?_.replace(/\*/g,f):_+f;return xe(i,e.Diagnostics.Using_0_subpath_1_with_target_2,"imports",m,g),xe(i,e.Diagnostics.Resolving_module_0_from_1,g,l.packageDirectory+"/"),he((C=L(i.features,g,l.packageDirectory+"/",i.compilerOptions,i.host,a,[r],o)).resolvedModule?{path:C.resolvedModule.resolvedFileName,extension:C.resolvedModule.extension,packageId:C.resolvedModule.packageId,originalPath:C.resolvedModule.originalPath}:void 0)}return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),he(void 0)}var y=(e.pathIsRelative(_)?e.getPathComponents(_).slice(1):e.getPathComponents(_)).slice(1);if(y.indexOf("..")>=0||y.indexOf(".")>=0||y.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),he(void 0);var v=e.combinePaths(l.packageDirectory,_),h=e.getPathComponents(f);if(h.indexOf("..")>=0||h.indexOf(".")>=0||h.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),he(void 0);i.traceEnabled&&t(i.host,e.Diagnostics.Using_0_subpath_1_with_target_2,u?"imports":"exports",m,p?_.replace(/\*/g,f):_+f);var x=N(p?v.replace(/\*/g,f):v+f),b=function(t,a,o,s){var u,d,_,f;if((r===c.TypeScript||r===c.JavaScript||r===c.Json)&&(i.compilerOptions.declarationDir||i.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&(!i.compilerOptions.configFile||e.containsPath(l.packageDirectory,N(i.compilerOptions.configFile.fileName),!P()))){var p=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:P}),m=[];if(i.compilerOptions.rootDir||i.compilerOptions.composite&&i.compilerOptions.configFilePath){var g=N(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[]}),(null===(d=(u=i.host).getCurrentDirectory)||void 0===d?void 0:d.call(u))||"",p));m.push(g)}else if(i.requestContainingDirectory){var y=N(e.combinePaths(i.requestContainingDirectory,"index.ts"));g=N(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[y,N(o)]}),(null===(f=(_=i.host).getCurrentDirectory)||void 0===f?void 0:f.call(_))||"",p)),m.push(g);for(var v=e.ensureTrailingDirectorySeparator(g);v&&v.length>1;){var h=e.getPathComponents(v);h.pop();var x=e.getPathFromPathComponents(h);m.unshift(x),v=e.ensureTrailingDirectorySeparator(x)}}m.length>1&&i.reportDiagnostic(e.createCompilerDiagnostic(s?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===a?".":a,o));for(var b=0,D=m;b=0||ce(i.conditions,T)){xe(i,e.Diagnostics.Matched_0_condition_1,u?"imports":"exports",T);var C=d(_[T],f,p,m);if(C)return C}else xe(i,e.Diagnostics.Saw_non_matching_condition_0,T)}return}if(!e.length(_))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),he(void 0);for(var E=0,k=_;Es&&(s=u),1===s)return s}return s}break;case 265:var d=0;return e.forEachChild(t,(function(t){var n=i(t,r);switch(n){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(n)}})),d;case 264:return n(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(o,s),s}function a(t,r){for(var n=t.propertyName||t.name,a=t.parent;a;){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=void 0,s=0,c=a.statements;so)&&(o=u),1===o)return o}}if(void 0!==o)return o}a=a.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(r=e.ModuleInstanceState||(e.ModuleInstanceState={}))[r.NonInstantiated=0]="NonInstantiated",r[r.Instantiated=1]="Instantiated",r[r.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=n,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.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"}(t||(t={}));var l=function(){var t,r,i,a,l,f,p,m,g,y,v,h,x,b,D,S,T,C,E,k,N,A,P,F,w=!1,I=0,M={flags:1},O={flags:1},L=function(){return e.createBinaryExpressionTrampoline((function(t,r){if(r){r.stackIndex++,e.setParent(t,a);var n=A;Be(t);var i=a;a=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var o=t.operatorToken.kind;if(55===o||56===o||60===o||e.isLogicalOrCoalescingAssignmentOperator(o)){if(ue(t)){var s=Z();he(t,s,s),v=ce(s)}else he(t,D,S);r.skip=!0}return r}),(function(e,r,n){if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),(function(e,t,r){t.skip||Le(e)}),(function(e,r,n){if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),(function(t,r){if(!r.skip){var n=t.operatorToken.kind;e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(ve(t.left),63===n&&209===t.left.kind&&Y(t.left.expression)&&(v=oe(256,v,t)))}var i=r.inStrictModeStack[r.stackIndex],o=r.parentStack[r.stackIndex];void 0!==i&&(A=i),void 0!==o&&(a=o),r.skip=!1,r.stackIndex--}),void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Le(t)}}();function R(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(n,o){t=n,r=o,i=e.getEmitScriptTarget(r),A=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,o),F=new e.Set,I=0,P=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(M),e.Debug.attachFlowNodeDebugInfo(O),t.locals||(null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),Le(t),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t.symbolCount=I,t.classifiableNames=F,function(){if(g){for(var r=l,n=m,i=p,o=a,s=v,u=0,_=g;u<_.length;u++){var f=_[u],y=f.parent.parent;l=e.findAncestor(y.parent,(function(e){return!!(1&Ce(e))}))||t,p=e.getEnclosingBlockScopeContainer(y)||t,v=c({flags:2}),a=f,Le(f.typeExpression);var h=e.getNameOfDeclaration(f);if((e.isJSDocEnumTag(f)||!f.fullName)&&h&&e.isPropertyAccessEntityNameExpression(h.parent)){var x=Qe(h.parent);if(x){Ge(t.symbol,h.parent,x,!!e.findAncestor(h,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var b=l;switch(e.getAssignmentDeclarationPropertyAccessKind(h.parent)){case 1:case 2:l=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:l=h.parent.expression;break;case 3:l=h.parent.expression.name;break;case 5:l=d(t,h.parent.expression)?t:e.isPropertyAccessExpression(h.parent.expression)?h.parent.expression.name:h.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}l&&U(f,524288,788968),l=b}}else e.isJSDocEnumTag(f)||!f.fullName||79===f.fullName.kind?(a=f.parent,Fe(f,524288,788968)):Le(f.fullName)}l=r,m=n,p=i,a=o,v=s}}()),t=void 0,r=void 0,i=void 0,a=void 0,l=void 0,f=void 0,p=void 0,m=void 0,g=void 0,y=!1,v=void 0,h=void 0,x=void 0,b=void 0,D=void 0,S=void 0,T=void 0,E=void 0,k=!1,w=!1,N=0};function j(e,t){return I++,new P(e,t)}function B(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function J(t){if(274===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'.concat(n,'"')}if(164===r.kind){var i=r.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 173:return"__constructor";case 181:case 176:case 326:return"__call";case 182:case 177:return"__new";case 178:return"__index";case 275:return"__export";case 308:return"export=";case 223:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 320:return e.isJSDocConstructSignature(t)?"__new":"__call";case 166:return e.Debug.assert(320===t.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: ".concat(e.Debug.formatSyntaxKind(t.parent.kind),", expected JSDocFunctionType")})),"arg"+t.parent.parameters.indexOf(t)}}function K(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(J(t)))}function z(r,n,i,a,s,c,l){e.Debug.assert(l||!e.hasDynamicName(i));var u,d=e.hasSyntacticModifier(i,1024)||e.isExportSpecifier(i)&&"default"===i.name.escapedText,_=l?"__computed":d&&n?"default":J(i);if(void 0===_)u=j(0,"__missing");else if(u=r.get(_),2885600&a&&F.add(_),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)r.set(_,u=j(0,_));else if(!(3&a&&67108864&u.flags)){e.isNamedDeclaration(i)&&e.setParent(i.name,i);var f=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,p=!0;(384&u.flags||384&a)&&(f=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,p=!1);var m=!1;e.length(u.declarations)&&(d||u.declarations&&u.declarations.length&&274===i.kind&&!i.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,m=!0);var g=[];e.isTypeAliasDeclaration(i)&&e.nodeIsMissing(i.type)&&e.hasSyntacticModifier(i,1)&&2887656&u.flags&&g.push(R(i,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(i.name.escapedText)," }")));var y=e.getNameOfDeclaration(i)||i;e.forEach(u.declarations,(function(r,n){var i=e.getNameOfDeclaration(r)||r,a=R(i,f,p?K(r):void 0);t.bindDiagnostics.push(m?e.addRelatedInfo(a,R(y,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),m&&g.push(R(i,e.Diagnostics.The_first_export_default_is_here))}));var v=R(y,f,p?K(i):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,o([v],g,!1))),u=j(0,_)}}else r.set(_,u=j(0,_)),c&&(u.isReplaceableByMethod=!0);return B(u,i,a),u.parent?e.Debug.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function U(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||function(t){if(t.parent&&e.isModuleDeclaration(t)&&(t=t.parent),!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!!(r&&(e.isPropertyAccessEntityNameExpression(r.parent)&&Qe(r.parent)||e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))}(t);if(2097152&r)return 278===t.kind||268===t.kind&&i?z(l.symbol.exports,l.symbol,t,r,n):z(l.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&l.flags)){if(!l.locals||e.hasSyntacticModifier(t,1024)&&!J(t))return z(l.symbol.exports,l.symbol,t,r,n);var a=111551&r?1048576:0,o=z(l.locals,void 0,t,a,n);return o.exportSymbol=z(l.symbol.exports,l.symbol,t,r,n),t.localSymbol=o,o}return z(l.locals,void 0,t,r,n)}function V(e){q(e,(function(e){return 259===e.kind?Le(e):void 0})),q(e,(function(e){return 259!==e.kind?Le(e):void 0}))}function q(t,r){void 0===r&&(r=Le),void 0!==t&&e.forEach(t,r)}function W(t){e.forEachChild(t,Le,q)}function H(t){var i=w;if(w=!1,function(t){if(!(1&v.flags))return!1;if(v===M){var i=e.isStatementButNotDeclaration(t)&&239!==t.kind||260===t.kind||264===t.kind&&function(t){var i=n(t);return 1===i||2===i&&e.shouldPreserveConstEnums(r)}(t);if(i&&(v=O,!r.allowUnreachableCode)){var a=e.unreachableCodeIsError(r)&&!(16777216&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((function(e){return!!e.initializer})));!function(t,r){if(e.isStatement(t)&&u(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,u,(function(e,t){return r(i[e],i[t-1])}))}else r(t,t)}(t,(function(t,r){return Oe(a,t,r,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return W(t),Re(t),void(w=i);switch(t.kind>=240&&t.kind<=256&&!r.allowUnreachableCode&&(t.flowNode=v),t.kind){case 244:!function(e){var t=pe(e,ee()),r=Z(),n=Z();ne(t,v),v=t,_e(e.expression,r,n),v=ce(r),fe(e.statement,n,t),ne(t,v),v=ce(n)}(t);break;case 243:!function(e){var t=ee(),r=pe(e,Z()),n=Z();ne(t,v),v=t,fe(e.statement,n,r),ne(r,v),v=ce(r),_e(e.expression,t,n),v=ce(n)}(t);break;case 245:!function(e){var t=pe(e,ee()),r=Z(),n=Z();Le(e.initializer),ne(t,v),v=t,_e(e.condition,r,n),v=ce(r),fe(e.statement,n,t),Le(e.incrementor),ne(t,v),v=ce(n)}(t);break;case 246:case 247:!function(e){var t=pe(e,ee()),r=Z();Le(e.expression),ne(t,v),v=t,247===e.kind&&Le(e.awaitModifier),ne(r,v),Le(e.initializer),258!==e.initializer.kind&&ve(e.initializer),fe(e.statement,r,t),ne(t,v),v=ce(r)}(t);break;case 242:!function(e){var t=Z(),r=Z(),n=Z();_e(e.expression,t,r),v=ce(t),Le(e.thenStatement),ne(n,v),v=ce(r),Le(e.elseStatement),ne(n,v),v=ce(n)}(t);break;case 250:case 254:!function(e){Le(e.expression),250===e.kind&&(k=!0,b&&ne(b,v)),v=M}(t);break;case 249:case 248:!function(e){if(Le(e.label),e.label){var t=function(e){for(var t=E;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,h,x)}(t);break;case 255:!function(t){var r=b,n=T,i=Z(),a=Z(),o=Z();if(t.finallyBlock&&(b=a),ne(o,v),T=o,Le(t.tryBlock),ne(i,v),t.catchClause&&(v=ce(o),ne(o=Z(),v),T=o,Le(t.catchClause),ne(i,v)),b=r,T=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),v=s,Le(t.finallyBlock),1&v.flags?v=M:(b&&a.antecedents&&ne(b,te(s,a.antecedents,v)),T&&o.antecedents&&ne(T,te(s,o.antecedents,v)),v=i.antecedents?te(s,i.antecedents,v):M)}else v=ce(i)}(t);break;case 252:!function(t){var r=Z();Le(t.expression);var n=h,i=C;h=r,C=v,Le(t.caseBlock),ne(r,v);var a=e.forEach(t.caseBlock.clauses,(function(e){return 293===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(C,t,0,0)),h=n,C=i,v=ce(r)}(t);break;case 266:!function(e){for(var t=e.clauses,n=$(e.parent.expression),i=M,a=0;a162){var i=a;a=r;var o=Ce(r);0===o?H(r):function(t,r){var n=l,i=f,a=p;if(1&r?(216!==t.kind&&(f=l),l=p=t,32&r&&(l.locals=e.createSymbolTable()),Ee(l)):2&r&&((p=t).locals=void 0),4&r){var o=v,s=h,u=x,d=b,_=T,m=E,g=k,D=16&r&&!e.hasSyntacticModifier(t,512)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t)||172===t.kind;D||(v=c({flags:2}),144&r&&(v.node=t)),b=D||173===t.kind||e.isInJSFile(t)&&(259===t.kind||215===t.kind)?Z():void 0,T=void 0,h=void 0,x=void 0,E=void 0,k=!1,H(t),t.flags&=-2817,!(1&v.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=v),308===t.kind&&(t.flags|=N,t.endFlowNode=v),b&&(ne(b,v),v=ce(b),(173===t.kind||172===t.kind||e.isInJSFile(t)&&(259===t.kind||215===t.kind))&&(t.returnFlowNode=v)),D||(v=o),h=s,x=u,b=d,T=_,E=m,k=g}else 64&r?(y=!1,H(t),t.flags=y?128|t.flags:-129&t.flags):H(t);l=n,f=i,p=a}(r,o),a=i}else i=a,1===r.kind&&(a=r),Re(r),a=i;A=n}}function Re(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(R(r,function(r){return e.getContainingClass(r)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):133===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}(n);case 163:v&&e.isPartOfTypeQuery(n)&&(n.flowNode=v);break;case 233:case 106:n.flowNode=v;break;case 80:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(R(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(n);case 208:case 209:var s=n;v&&G(s)&&(s.flowNode=v),e.isSpecialPropertyDeclaration(s)&&function(t){108===t.expression.kind?Ve(t):e.isBindableStaticAccessExpression(t)&&308===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?He(t,t.parent):$e(t))}(s),e.isInJSFile(s)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(s)&&!_(p,"module")&&z(t.locals,void 0,s.expression,134217729,111550);break;case 223:switch(e.getAssignmentDeclarationKind(n)){case 1:ze(n);break;case 2:!function(r){if(Ke(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||l===t&&d(t,n)))if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))e.forEach(n.properties,Ue);else{var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=z(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}}(n);break;case 3:He(n.left,n);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Ye(t.left.expression,t.left,!1,!0)}(n);break;case 4:Ve(n);break;case 5:var c=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(c)){var u=_(p,c.escapedText);if(e.isThisInitializedDeclaration(null==u?void 0:u.valueDeclaration)){Ve(n);break}}!function(r){var n,i=Ze(r.left.expression,l)||Ze(r.left.expression,p);if(e.isInJSFile(r)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(r.left);e.isIdentifier(a)&&2097152&(null===(n=_(l,a.escapedText))||void 0===n?void 0:n.flags)||(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&l===t&&d(t,r.left.expression)?ze(r):e.hasDynamicName(r)?(Pe(r,67108868,"__computed"),We(r,Ge(i,r.left.expression,Qe(r.left),!1,!1))):$e(e.cast(r.left,e.isBindableStaticNameExpression)))}}(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){A&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&we(t,t.left)}(n);case 295:return function(e){A&&e.variableDeclaration&&we(e,e.variableDeclaration.name)}(n);case 217:return function(r){if(A&&79===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))}}(n);case 8:return function(r){i<1&&A&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 222:return function(e){A&&we(e,e.operand)}(n);case 221:return function(e){A&&(45!==e.operator&&46!==e.operator||we(e,e.operand))}(n);case 251:return function(t){A&&Me(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 253:return function(t){A&&e.getEmitScriptTarget(r)>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Me(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(n);case 194:return void(y=!0);case 179:break;case 165:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),z(r.locals,void 0,t,262144,526824)):ke(t,262144,526824)}else if(192===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()),z(n.locals,void 0,t,262144,526824)):Pe(t,262144,J(t))}else ke(t,262144,526824)}(n);case 166:return rt(n);case 257:return tt(n);case 205:return n.flowNode=v,tt(n);case 169:case 168:return function(t){var r=e.isAutoAccessorPropertyDeclaration(t),n=r?13247:0;return nt(t,(r?98304:4)|(t.questionToken?16777216:0),n)}(n);case 299:case 300:return nt(n,4,0);case 302:return nt(n,8,900095);case 176:case 177:case 178:return ke(n,131072,0);case 171:case 170:return nt(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 259:return function(r){t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(N|=2048),Ie(r),A?(function(r){if(i<2&&308!==p.kind&&264!==p.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(p)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}(r),Fe(r,16,110991)):ke(r,16,110991)}(n);case 173:return ke(n,16384,0);case 174:return nt(n,32768,46015);case 175:return nt(n,65536,78783);case 181:case 320:case 326:case 182:return function(t){var r=j(131072,J(t));B(r,t,131072);var n=j(2048,"__type");B(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(n);case 184:case 325:case 197:return function(e){return Pe(e,2048,"__type")}(n);case 335:return function(t){W(t);var r=e.getHostSignatureFromJSDoc(t);r&&171!==r.kind&&B(r.symbol,r,32)}(n);case 207:return function(e){return Pe(e,4096,"__object")}(n);case 215:case 216:return function(r){return t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(N|=2048),v&&(r.flowNode=v),Ie(r),Pe(r,16,r.name?r.name.escapedText:"__function")}(n);case 210:switch(e.getAssignmentDeclarationKind(n)){case 7:return function(e){var t=Ze(e.arguments[0]),r=308===e.parent.parent.kind;Xe(e,t=Ge(t,e.arguments[0],r,!1,!1),!1)}(n);case 8:return function(e){if(Ke(e)){var t=et(e.arguments[0],void 0,(function(e,t){return t&&B(t,e,67110400),t}));if(t){z(t.exports,t,e,1048580,0)}}}(n);case 9:return function(e){var t=Ze(e.arguments[0].expression);t&&t.valueDeclaration&&B(t,t.valueDeclaration,32),Xe(e,t,!0)}(n);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(n)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Ke(r)}(n);break;case 228:case 260:return A=!0,function(r){260===r.kind?Fe(r,32,899503):(Pe(r,32,r.name?r.name.escapedText:"__class"),r.name&&F.add(r.name.escapedText));var n=r.symbol,i=j(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(R(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),n.exports.set(i.escapedName,i),i.parent=n}(n);case 261:return Fe(n,64,788872);case 262:return Fe(n,524288,788968);case 263:return function(t){return e.isEnumConst(t)?Fe(t,128,899967):Fe(t,256,899327)}(n);case 264:return function(r){if(Ne(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Me(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ae(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Me(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=ke(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=Ae(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(n);case 289:return function(e){return Pe(e,4096,"__jsxAttributes")}(n);case 288:return function(e,t,r){return ke(e,4,0)}(n);case 268:case 271:case 273:case 278:return ke(n,2097152,2097152);case 267:return function(r){e.some(r.modifiers)&&t.bindDiagnostics.push(R(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(R(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),z(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(n);case 270:return function(e){e.name&&ke(e,2097152,2097152)}(n);case 275:return function(t){l.symbol&&l.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),z(l.symbol.exports,l.symbol,t.exportClause,2097152,2097152)):z(l.symbol.exports,l.symbol,t,8388608,0):Pe(t,8388608,J(t))}(n);case 274:return function(t){if(l.symbol&&l.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=z(l.symbol.exports,l.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Pe(t,111551,J(t))}(n);case 308:return je(n.statements),function(){if(Ne(t),e.isExternalModule(t))Je();else if(e.isJsonSourceFile(t)){Je();var r=t.symbol;z(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 238:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(n.parent))return;case 265:return je(n.statements);case 343:if(326===n.parent.kind)return rt(n);if(325!==n.parent.kind)break;case 350:var f=n;return ke(f,f.isBracketed||f.typeExpression&&319===f.typeExpression.type.kind?16777220:4,0);case 348:case 341:case 342:return(g||(g=[])).push(n)}}function Je(){Pe(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function Ke(e){return!(t.externalModuleIndicator&&!0!==t.externalModuleIndicator||(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||Je()),0))}function ze(t){if(Ke(t)){var r=et(t.left.expression,void 0,(function(e,t){return t&&B(t,e,67110400),t}));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),z(r.exports,r,t.left,n,0)}}}function Ue(e){z(t.symbol.exports,t.symbol,e,69206016,0)}function Ve(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 259:case 215:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Ze(i.expression.expression,f))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?qe(t,n,n.members):z(n.members,n,t,67108868,0),B(n,n.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?qe(t,a.symbol,o):z(o,a.symbol,t,67108868,0,!0);break;case 308:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?z(r.symbol.exports,r.symbol,t,1048580,0):ke(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function qe(e,t,r){z(r,t,e,4,0,!0,!0),We(e,t)}function We(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function He(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),Ye(i,t,!0,!0)}function $e(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Ye(t.expression,t,!1,!1)}function Ge(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=et(n,r,(function(r,n,i){return n?(B(n,r,s),n):z(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)}))}return o&&r&&r.valueDeclaration&&B(r,r.valueDeclaration,32),r}function Xe(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),z(i,r,t,67108864|a,-67108865&o)}}function Qe(t){return e.isBinaryExpression(t.parent)?308===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:308===t.parent.parent.kind}function Ye(e,t,r,n){var i=Ze(e,l)||Ze(e,p),a=Qe(t);Xe(t,i=Ge(i,t.expression,a,r,n),r)}function Ze(t,r){if(void 0===r&&(r=l),e.isIdentifier(t))return _(r,t.escapedText);var n=Ze(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function et(r,n,i){if(d(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Ze(r),n);var a=et(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function tt(t){if(A&&we(t,t.name),!e.isBindingPattern(t.name)){var r=257===t.kind?t:t.parent.parent;!e.isInJSFile(t)||!e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||e.getJSDocTypeTag(t)||1&e.getCombinedModifierFlags(t)?e.isBlockOrCatchScoped(t)?Fe(t,2,111551):e.isParameterDeclaration(t)?ke(t,1,111551):ke(t,1,111550):ke(t,2097152,2097152)}}function rt(t){if((343!==t.kind||326===l.kind)&&(!A||16777216&t.flags||we(t,t.name),e.isBindingPattern(t.name)?Pe(t,1,"__"+t.parent.parameters.indexOf(t)):ke(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;z(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function nt(r,n,i){return t.isDeclarationFile||16777216&r.flags||!e.isAsyncFunction(r)||(N|=2048),v&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(r)&&(r.flowNode=v),e.hasDynamicName(r)?Pe(r,n,"__computed"):ke(r,n,i)}}();function u(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 261:case 262:return!0;case 264:return 1!==n(t);case 263:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((function(e){return!e.initializer})))}function d(t,r){var n=0,i=e.createQueue();for(i.enqueue(r);!i.isEmpty()&&n<100;){if(n++,r=i.dequeue(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=_(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.enqueue(o),e.isAssignmentExpression(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function _(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),l(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=d}(_||(_={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,l,u){return function(d){void 0===d&&(d=function(){return!0});var _=[],f=[];return{walkType:function(t){try{return p(t),{visitedTypes:e.getOwnValues(_),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(_),e.clear(f)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(_),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(_),e.clear(f)}}};function p(t){if(t&&!_[t.id]&&(_[t.id]=t,!y(t.symbol))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){p(t.target),e.forEach(u(t),p)}(t),32&n&&function(e){p(e.typeParameter),p(e.constraintType),p(e.templateType),p(e.modifiersType)}(t),3&n&&(g(a=t),e.forEach(a.typeParameters,p),e.forEach(i(a),p),p(a.thisType)),24&n&&g(r)}var a;262144&t.flags&&function(e){p(c(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,p)}(t),4194304&t.flags&&function(e){p(e.type)}(t),8388608&t.flags&&function(e){p(e.objectType),p(e.indexType),p(e.constraint)}(t)}}function m(i){var a=r(i);a&&p(a.type),e.forEach(i.typeParameters,p);for(var o=0,s=i.parameters;o1&&2097152&x.flags&&(t=e.createSymbolTable()).set("export=",x),C(t),y=function(t){var r=e.findIndex(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!t.assertClause&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(r){return e.canHaveExportModifier(t[r])}))){for(var a=0,o=i;a1){var n=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=o(o([],n,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var i=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(i)>1){var a=e.group(i,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(a.length!==i.length)for(var s=function(r){r.length>1&&(t=o(o([],e.filter(t,(function(e){return-1===r.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)],!1))},c=0,l=a;c0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,V)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function re(e,t){var n=M(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=te(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,u)}))},symbolToNode:function(t,r,i,a,o){return n(i,a,o,(function(n){return function(t,r,n){if(1073741824&r.flags){if(t.valueDeclaration){var i=e.getNameOfDeclaration(t.valueDeclaration);if(i&&e.isComputedPropertyName(i))return i}var a=di(t).nameType;if(a&&9216&a.flags)return r.enclosingDeclaration=a.symbol.valueDeclaration,e.factory.createComputedPropertyName(w(a.symbol,r,n))}return w(t,r,n)}(t,n,r)}))}};function n(r,n,a,o){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:a&&a.trackSymbol?a:{trackSymbol:function(){return!1},moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getPackageJsonInfoCache)||void 0===e?void 0:e.call(t)},useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()},readFile:t.readFile?function(e){return t.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=i(l,l.tracker);var u=o(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function i(e,t){var r=t.trackSymbol;return s(s({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(t,n){var i=n.flags,a=function(t,n){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&n.flags;if(n.flags&=-8388609,!t)return 262144&n.flags?(n.approximateLength+=3,e.factory.createKeywordTypeNode(131)):void(n.encounteredError=!0);if(536870912&n.flags||(t=sl(t)),1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(k(t.aliasSymbol),p(t.aliasTypeArguments,n)):t===Je?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(131),3,"unresolved"):(n.approximateLength+=3,e.factory.createKeywordTypeNode(t===ze?139:131));if(2&t.flags)return e.factory.createKeywordTypeNode(157);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(152);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(160);if(16&t.flags&&!t.aliasSymbol)return n.approximateLength+=7,e.factory.createKeywordTypeNode(134);if(1024&t.flags&&!(1048576&t.flags)){var a=Sa(t.symbol),o=N(a,n,788968);if(Js(a)===t)return o;var s=e.symbolName(t.symbol);return e.isIdentifierText(s,0)?W(o,e.factory.createTypeReferenceNode(s,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return N(t.symbol,n,788968);if(128&t.flags)return n.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&n.flags)),16777216));if(256&t.flags){var _=t.value;return n.approximateLength+=(""+_).length,e.factory.createLiteralTypeNode(_<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-_)):e.factory.createNumericLiteral(_))}if(2048&t.flags)return n.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return n.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&n.flags)){if(Wa(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,N(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(156,e.factory.createKeywordTypeNode(153))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(155);if(65536&t.flags)return n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return n.approximateLength+=5,e.factory.createKeywordTypeNode(144);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(153);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(e.isThisTypeParameter(t))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),n.tracker.reportInaccessibleThisError&&n.tracker.reportInaccessibleThisError()),n.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&n.flags||qa(t.aliasSymbol,n.enclosingDeclaration))){var v=p(t.aliasTypeArguments,n);return!La(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?1===e.length(v)&&t.aliasSymbol===Gt.symbol?e.factory.createArrayTypeNode(v[0]):N(t.aliasSymbol,n,788968,v):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),v)}var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),t.node?U(t,q):q(t);if(262144&t.flags||3&h){if(262144&t.flags&&e.contains(n.inferTypeParameters,t)){n.approximateLength+=e.symbolName(t.symbol).length+6;var x=void 0,b=Uc(t);if(b){var D=au(t,!0);D&&Af(b,D)||(n.approximateLength+=9,x=b&&l(b,n))}return e.factory.createInferTypeNode(y(t,n,x))}if(4&n.flags&&262144&t.flags&&!qa(t.symbol,n.enclosingDeclaration)){var S=P(t,n);return n.approximateLength+=e.idText(S).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(S)),void 0)}if(t.symbol)return N(t.symbol,n,788968);var T=(t===Bt||t===Jt)&&d&&d.symbol?(t===Jt?"sub-":"super-")+e.symbolName(d.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(T),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var C=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&t.flags)),z(t);if(4194304&t.flags){var A=t.type;n.approximateLength+=6;var F=l(A,n);return e.factory.createTypeOperatorNode(141,F)}if(134217728&t.flags){var w=t.texts,O=t.types,L=e.factory.createTemplateHead(w[0]),R=e.factory.createNodeArray(e.map(O,(function(t,r){return e.factory.createTemplateLiteralTypeSpan(l(t,n),(r10)return u(n);n.symbolDepth.set(c,_+1)}n.visitedTypes.add(o);var p=n.approximateLength,m=r(t),g=n.approximateLength-p;return n.reportedDiagnostic||n.encounteredError||(n.truncating&&(m.truncating=!0),m.addedLength=g,null===(a=null==l?void 0:l.serializedTypes)||void 0===a||a.set(d,m)),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,_),m;function y(t,r,n,i,a){return t&&0===t.length?e.setTextRange(e.factory.createNodeArray(void 0,t.hasTrailingComma),t):e.visitNodes(t,r,n,i,a)}}function V(t){if(Lc(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var r,i,a=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,o=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;if(Fc(t)){if(K(t)&&4&n.flags){var s=P(Oa(ri(262144,"T")),n);i=e.factory.createTypeReferenceNode(s)}r=e.factory.createTypeOperatorNode(141,i||l(wc(t),n))}else r=l(kc(t),n);var c=y(Ec(t),n,r),u=t.declaration.nameType?l(Nc(t),n):void 0,d=l(pm(Ac(t),!!(4&Ic(t))),n),_=e.factory.createMappedTypeNode(a,c,u,o,d,void 0);n.approximateLength+=10;var f=e.setEmitFlags(_,1);if(K(t)&&4&n.flags){var p=xf(Uc(H_(t.declaration.typeParameter.constraint.type))||Ue,t.mapper);return e.factory.createConditionalTypeNode(l(wc(t),n),e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(i.typeName),2&p.flags?void 0:l(p,n))),f,e.factory.createKeywordTypeNode(144))}return f}(t);var r=Rc(t);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return g(r.callSignatures[0],181,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return g(r.constructSignatures[0],182,n)}var i=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,Ql);return r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&n.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties))&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=Ja(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(r)),l(Nd(a),n)}var o=n.flags;n.flags|=4194304;var s=function(t){if(c(n))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,a=t.callSignatures;i0){var v=(t.target.typeParameters||e.emptyArray).length;y=p(r.slice(D,v),n)}S=n.flags,n.flags|=16;var h=N(t.symbol,n,788968,y);return n.flags=S,c?W(c,h):h}if(r=e.sameMap(r,(function(e,r){return pm(e,!!(2&t.target.elementFlags[r]))})),r.length>0){var x=mu(t),b=p(r.slice(0,x),n);if(b){if(t.target.labeledElementDeclarations)for(var D=0;D2)return[l(t[0],r),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),l(t[t.length-1],r)]}for(var i=64&r.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],o=0,s=0,u=t;s0)),a}function S(t,r){var n;return 524384&QS(t).flags&&(n=e.factory.createNodeArray(e.map(xs(t),(function(e){return v(e,r)})))),n}function T(t,r,n){var i;e.Debug.assert(t&&0<=r&&r1?A(l,l.length-1,1):void 0,_=i||T(l,0,r),f=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),p=e.getSourceFileOfModule(l[0]),m=void 0,g=void 0;if(e.getEmitModuleResolutionKind(U)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(U)!==e.ModuleResolutionKind.NodeNext||(null==p?void 0:p.impliedNodeFormat)===e.ModuleKind.ESNext&&p.impliedNodeFormat!==(null==f?void 0:f.impliedNodeFormat)&&(m=E(l[0],r,e.ModuleKind.ESNext),g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),null===(o=(a=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===o||o.call(a)),m||(m=E(l[0],r)),!(67108864&r.flags)&&e.getEmitModuleResolutionKind(U)!==e.ModuleResolutionKind.Classic&&m.indexOf("/node_modules/")>=0){var y=m;if(e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.NodeNext){var v=(null==f?void 0:f.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;(m=E(l[0],r,v)).indexOf("/node_modules/")>=0?m=y:(g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(v===e.ModuleKind.ESNext?"import":"require"))]))),null===(c=(s=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===c||c.call(s))}g||(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(y))}var h=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(m));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l[0]),r.approximateLength+=m.length+10,!d||e.isEntityName(d))return d&&((k=e.isIdentifier(d)?d:d.right).typeArguments=void 0),e.factory.createImportTypeNode(h,g,d,_,u);var x=C(d),D=x.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(h,g,D,_,u),x.indexType)}var S=A(l,l.length-1,0);if(e.isIndexedAccessTypeNode(S))return S;if(u)return e.factory.createTypeQueryNode(S);var k,N=(k=e.isIdentifier(S)?S:S.right).typeArguments;return k.typeArguments=void 0,e.factory.createTypeReferenceNode(S,N);function A(t,n,a){var o,s=n===t.length-1?i:T(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=go(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&ya(l)){var u=ya(l);e.forEachEntry(u,(function(t,r){if(ka(t,c)&&!Ys(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(void 0===o){var d=e.firstDefined(c.declarations,e.getNameOfDeclaration);if(d&&e.isComputedPropertyName(d)&&e.isEntityName(d.expression)){var _=A(t,n-1,a);return e.isEntityName(_)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(_)),e.factory.createTypeQueryNode(d.expression)):_}o=go(c,r)}if(r.approximateLength+=o.length+1,!(16&r.flags)&&l&&ic(l)&&ic(l).get(c.escapedName)&&ka(ic(l).get(c.escapedName),c))return _=A(t,n-1,a),e.isIndexedAccessTypeNode(_)?e.factory.createIndexedAccessTypeNode(_,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(_,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)));var f=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return f.symbol=c,n>a?(_=A(t,n-1,a),e.isEntityName(_)?e.factory.createQualifiedName(_,f):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):f}}function A(e,t,r){var n=vi(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!n||262144&n.flags&&n===r.symbol)}function P(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(fd(t));if(a)return a}var o=F(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||A(l,r,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(fd(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function F(t,r,n,i){var a=b(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=go(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function w(t,r,n){var i=b(t,r,n);return function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=go(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Za))return e.factory.createStringLiteral(E(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),V):e.isIdentifierStart(c,V);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return!e.isSingleOrDoubleQuote(c)||8&o.flags?""+ +s===s&&(d=e.factory.createNumericLiteral(+s)):d=e.factory.createStringLiteral(e.stripQuotes(s).replace(/\\./g,(function(e){return e.substring(1)})),39===c),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function O(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function L(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function R(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,L),i=function(t,r,n){var i=di(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(U))||e.isNumericLiteralName(a)?e.isNumericLiteralName(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(U)):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(w(i.symbol,r,111551))}}(t,r,n);if(i)return i;var a=e.unescapeLeadingUnderscores(t.escapedName),o=!!e.length(t.declarations)&&e.every(t.declarations,O);return e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(U),n,o)}function j(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function B(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=wl(r.target.typeParameters)}function J(t,r,n,i,a,o){if(!Eo(r)&&i){var s=j(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(function(t,r,n){var i=H_(t);return i===n||!(!e.isParameter(r)||!r.questionToken)&&Pg(n,524288)===i}(c,s,r)&&B(c,r)){var u=z(t,c,a,o);if(u)return u}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var _=l(r,t);return t.flags=d,_}function K(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=ia(s,67108863,!0,!0);if(c&&(0!==Ga(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=Js(c),u=262144&c.flags&&!qa(l.symbol,r.enclosingDeclaration)?P(l,r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function z(n,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,(function r(i){if(e.isJSDocAllType(i)||322===i.kind)return e.factory.createKeywordTypeNode(131);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(157);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(155)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=To(H_(i),a.escapedText),s=o&&t.typeExpression&&H_(t.typeExpression.type)!==o?l(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,r)||e.factory.createKeywordTypeNode(131))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(131),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(void 0,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,(function(t,n){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(u||i.type,r)||e.factory.createKeywordTypeNode(131)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,(function(t,n){return e.factory.createParameterDeclaration(void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(131));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!B(i,H_(i))||Au(i)||we===bu(i,788968,!0)))return e.setOriginalNode(l(H_(i),n),i);if(e.isLiteralImportTypeNode(i)){var d=_i(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=wl(xs(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(r,i){if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=bC(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return n.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return n.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=sa(i,i,void 0);l&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.assertions,i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(H_(i),n),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var _=K(i,n,a),f=_.introducesError,p=_.node;if(s=s||f,p!==i)return p}return c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,r,e.nullTransformationContext);function m(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function g(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg".concat(r)}}));if(!s)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}}(),se=e.createSymbolTable(),ce=ri(4,"undefined");ce.declarations=[];var le=ri(1536,"globalThis",8);le.exports=se,le.declarations=[],se.set(le.escapedName,le);var ue,de=ri(4,"arguments"),_e=ri(4,"require"),fe={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+b},getTypeCount:function(){return x},getInstantiationCount:function(){return T},getRelationCacheSizes:function(){return{assignable:Ln.size,identity:jn.size,subtype:Mn.size,strictSubtype:On.size}},isUndefinedSymbol:function(e){return e===ce},isArgumentsSymbol:function(e){return e===de},isUnknownSymbol:function(e){return e===we},getMergedSymbol:ba,getDiagnostics:CT,getGlobalDiagnostics:function(){return ET(),Fn.getGlobalDiagnostics()},getRecursionIdentity:Np,getUnmatchedProperties:qm,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=Gb(r);if(Na(_i(r).resolvedSymbol)===t)return n}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&rs(r.parent)?as(r.parent.symbol):fs(t)}(t,n):Be},getTypeOfSymbol:_s,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=pi(n.locals,r,111551),o=pi(ic(i.symbol),r,111551);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:Js,getPropertiesOfType:Kc,getPropertyOfType:function(t,r){return _l(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=oh(e.escapeLeadingUnderscores(r),i);return a?ch(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return To(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return xl(e,0===t?Qe:Ye)},getIndexInfosOfType:hl,getIndexInfosOfIndexSymbol:ru,getSignaturesOfType:pl,getIndexTypeOfType:function(e,t){return bl(e,0===t?Qe:Ye)},getIndexType:function(e){return Kd(e)},getBaseTypes:Ns,getBaseTypeOfLiteralType:$p,getWidenedType:Cm,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?H_(r):Be},getParameterType:Kx,getParameterIdentifierNameAtPosition:function(e,t){var r;if(320!==(null===(r=e.declaration)||void 0===r?void 0:r.kind)){var n=e.parameters.length-(B(e)?1:0);if(t>",0,Le),Jr=cc(void 0,void 0,void 0,e.emptyArray,Le,void 0,0,0),Kr=cc(void 0,void 0,void 0,e.emptyArray,Be,void 0,0,0),zr=cc(void 0,void 0,void 0,e.emptyArray,Le,void 0,0,0),Ur=cc(void 0,void 0,void 0,e.emptyArray,lt,void 0,0,0),Vr=eu(Ye,Qe,!0),qr=new e.Map,Wr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Hr=yS(Le,Le,Le),$r=yS(Le,Le,Ue),Gr=yS(ct,Le,qe),Xr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return br||(br=ju("AsyncIterator",3,e))||Ft},getGlobalIterableType:Hu,getGlobalIterableIteratorType:function(e){return Dr||(Dr=ju("AsyncIterableIterator",1,e))||Ft},getGlobalGeneratorType:function(e){return Sr||(Sr=ju("AsyncGenerator",3,e))||Ft},resolveIterationType:CD,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Qr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return mr||(mr=ju("Iterator",3,e))||Ft},getGlobalIterableType:$u,getGlobalIterableIteratorType:function(e){return gr||(gr=ju("IterableIterator",1,e))||Ft},getGlobalGeneratorType:function(e){return yr||(yr=ju("Generator",3,e))||Ft},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Yr=new e.Map,Zr=!1,en=new e.Map,tn=0,rn=0,nn=0,an=!1,on=0,sn=B_(""),cn=J_(0),ln=K_({negative:!1,base10Value:"0"}),un=[],dn=[],_n=[],fn=0,pn=[],mn=[],gn=[],yn=[],vn=[],hn=[],xn=[],bn=[],Dn=[],Sn=[],Tn=[],Cn=[],En=[],kn=[],Nn=[],An=[],Pn=[],Fn=e.createDiagnosticCollection(),wn=e.createDiagnosticCollection(),In=xd(e.arrayFrom(S.keys(),B_)),Mn=new e.Map,On=new e.Map,Ln=new e.Map,Rn=new e.Map,jn=new e.Map,Bn=new e.Map,Jn=e.createSymbolTable();Jn.set(ce.escapedName,ce);var Kn=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===U.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(var r=0,n=t.getSourceFiles();r=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c1)}function di(e){if(33554432&e.flags)return e;var t=M(e);return mn[t]||(mn[t]=new F)}function _i(e){var t=I(e);return gn[t]||(gn[t]=new w)}function fi(t){return 308===t.kind&&!e.isExternalOrCommonJsModule(t)}function pi(t,r,n){if(n){var i=ba(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&&Xi(i)&n)return i}}}function mi(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(q&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(U)||fg(n)||16777216&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(205===r.kind){var c=e.getAncestor(n,205);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!Zf(Dy(l,r,cm(r))))return!0}}return!1}(a,_s(Da(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else if(169!==r.kind||e.isStatic(r)||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function u(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 216:return!0;case 169:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 238:switch(r.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}}))}}function gi(t,r,n){var i=e.getEmitScriptTarget(U),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=_i(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return s(t.name);case 169:return e.hasStaticModifier(t)?i<99||!W:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function yi(t){return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeTag(t)&&e.isConstTypeReference(t.typeExpression)}function vi(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),hi(e,t,r,n,i,a,o,s,pi)}function hi(t,r,n,i,a,o,s,c,l){var u,d,_,f,p,m,y,v,h,x=t,b=!1,D=t,S=!1;e:for(;t;){if("const"===r&&yi(t))return;if(t.locals&&!fi(t)&&(f=l(t.locals,r,n))){var T=!0;if(e.isFunctionLike(t)&&p&&p!==t.body?(n&f.flags&788968&&323!==p.kind&&(T=!!(262144&f.flags)&&(p===t.type||166===p.kind||343===p.kind||344===p.kind||165===p.kind)),n&f.flags&3&&(gi(f,t,p)?T=!1:1&f.flags&&(T=166===p.kind||p===t.type&&!!e.findAncestor(f.valueDeclaration,e.isParameter)))):191===t.kind&&(T=p===t.trueType),T)break e;f=void 0}switch(b=b||bi(t,p),t.kind){case 308:if(!e.isExternalOrCommonJsModule(t))break;S=!0;case 264:var C=(null===(u=Da(t))||void 0===u?void 0:u.exports)||K;if(308===t.kind||e.isModuleDeclaration(t)&&16777216&t.flags&&!e.isGlobalScopeAugmentation(t)){if(f=C.get("default")){var E=e.getLocalSymbolForExportDefault(f);if(E&&f.flags&n&&E.escapedName===r)break e;f=void 0}var k=C.get(r);if(k&&2097152===k.flags&&(e.getDeclarationOfKind(k,278)||e.getDeclarationOfKind(k,277)))break}if("default"!==r&&(f=l(C,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(d=f.declarations)||void 0===d?void 0:d.some(e.isJSDocTypeAlias)))break e;f=void 0}break;case 263:if(f=l((null===(_=Da(t))||void 0===_?void 0:_.exports)||K,r,8&n))break e;break;case 169:if(!e.isStatic(t)){var N=Pa(t.parent);N&&N.locals&&l(N.locals,r,111551&n)&&(e.Debug.assertNode(t,e.isPropertyDeclaration),y=t)}break;case 260:case 228:case 261:if(f=l(Da(t).members||K,r,788968&n)){if(!Ti(f,t)){f=void 0;break}if(p&&e.isStatic(p))return void(i&&Gn(D,e.Diagnostics.Static_members_cannot_reference_class_type_parameters));break e}if(228===t.kind&&32&n){var A=t.name;if(A&&r===A.escapedText){f=t.symbol;break e}}break;case 230:if(p===t.expression&&94===t.parent.token){var P=t.parent.parent;if(e.isClassLike(P)&&(f=l(Da(P).members,r,788968&n)))return void(i&&Gn(D,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 164:if(h=t.parent.parent,(e.isClassLike(h)||261===h.kind)&&(f=l(Da(h).members,r,788968&n)))return void(i&&Gn(D,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 216:if(e.getEmitScriptTarget(U)>=2)break;case 171:case 173:case 174:case 175:case 259:if(3&n&&"arguments"===r){f=de;break e}break;case 215:if(3&n&&"arguments"===r){f=de;break e}if(16&n){var F=t.name;if(F&&r===F.escapedText){f=t.symbol;break e}}break;case 167:t.parent&&166===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||260===t.parent.kind)&&(t=t.parent);break;case 348:case 341:case 342:var w=e.getJSDocRoot(t);w&&(t=w.parent);break;case 166:p&&(p===t.initializer||p===t.name&&e.isBindingPattern(p))&&(v||(v=t));break;case 205:p&&(p===t.initializer||p===t.name&&e.isBindingPattern(p))&&e.isParameterDeclaration(t)&&!v&&(v=t);break;case 192:if(262144&n){var I=t.typeParameter.name;if(I&&r===I.escapedText){f=t.typeParameter.symbol;break e}}}Di(t)&&(m=t),p=t,t=e.isJSDocTemplateTag(t)?e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent:(e.isJSDocParameterTag(t)||e.isJSDocReturnTag(t))&&e.getHostSignatureFromJSDoc(t)||t.parent}if(!o||!f||m&&f===m.symbol||(f.isReferenced|=n),!f){if(p&&(e.Debug.assert(308===p.kind),p.commonJsModuleIndicator&&"exports"===r&&n&p.symbol.flags))return p.symbol;s||(f=l(se,r,n))}if(!f&&x&&e.isInJSFile(x)&&x.parent&&e.isRequireCall(x.parent,!1))return _e;function M(){return!(!y||W&&e.getEmitScriptTarget(U)>=9||(Gn(D,D&&y.type&&e.textRangeContainsPositionInclusive(y.type,D.pos)?e.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(y.name),Si(a)),0))}if(f){if(!i||!M())return i&&g((function(){if(D&&(2&n||(32&n||384&n)&&111551==(111551&n))){var t=Na(f);(2&t.flags||32&t.flags||384&t.flags)&&function(t,r){var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||263===t.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&i.flags||mi(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Gn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Gn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Gn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(U)&&(a=Gn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}}(t,D)}if(f&&S&&111551==(111551&n)&&!(8388608&x.flags)){var i=ba(f);e.length(i.declarations)&&e.every(i.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&Qn(!U.allowUmdGlobalAccess,D,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(f&&v&&!b&&111551==(111551&n)){var a=ba(ac(f)),o=e.getRootDeclaration(v);a===Da(v)?Gn(D,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(v.name)):a.valueDeclaration&&a.valueDeclaration.pos>v.pos&&o.parent.locals&&l(o.parent.locals,a.escapedName,n)===a&&Gn(D,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(v.name),e.declarationNameToString(D))}if(f&&D&&111551&n&&2097152&f.flags&&!(111551&f.flags)&&!e.isValidTypeOnlyAliasUseSite(D)){var s=Zi(f,111551);if(s){var c=278===s.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,u=e.unescapeLeadingUnderscores(r);xi(Gn(D,c,u),s,u)}}})),f}else i&&g((function(){if(!D||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||NT(t)||fg(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=Da(a.parent);if(!o)break;if(_l(_s(o),r))return Gn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Si(n),ro(o)),!0;if(a===i&&!e.isStatic(a)&&_l(Js(o).thisType,r))return Gn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Si(n)),!0}a=a.parent}return!1}(D,r,a)||M()||Ci(D)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=$i(vi(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(_l(Js(a),s))return Gn(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Gn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(D,r,n)||function(t,r){return!(!ki(r)||278!==t.parent.kind)&&(Gn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0)}(D,r)||function(t,r,n){if(111127&n){if($i(vi(t,r,1024,void 0,void 0,!1)))return Gn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n&&$i(vi(t,r,1536,void 0,void 0,!1)))return Gn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0;return!1}(D,r,n)||function(t,r,n){if(111551&n){if(ki(r))return function(t){var r=t.parent.parent,n=r.parent;if(r&&n){var i=e.isHeritageClause(r)&&94===r.token,a=e.isInterfaceDeclaration(n);return i&&a}return!1}(t)?Gn(t,e.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,e.unescapeLeadingUnderscores(r)):Gn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=$i(vi(t,r,788544,void 0,void 0,!1)),a=i&&Xi(i);if(i&&void 0!==a&&!(111551&a)){var o=e.unescapeLeadingUnderscores(r);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?Gn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,o):function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=Js(r);return!!(1048576&i.flags)&&xb(i,384,!0)}return!1}(t,i)?Gn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,o,"K"===o?"P":"K"):Gn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,o),!0}}return!1}(D,r,n)||function(t,r,n){if(788584&n){var i=$i(vi(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Gn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n))){var t=void 0,o=void 0;if(a&&(o=function(t){for(var r=Si(t),n=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(n);i=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",_=t.exports.get("export=").valueDeclaration,f=Gn(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ro(t),d);_&&e.addRelatedInfo(f,e.createDiagnosticForNode(_,e.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,d))}else e.isImportClause(r)?function(t,r){var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Gn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ro(t),ro(r.symbol));else{var o=Gn(r.name,e.Diagnostics.Module_0_has_no_default_export,ro(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=oa(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(t,r):zi(t,t,r,e.isImportOrExportSpecifier(r)&&r.propertyName||r.name);return Qi(r,a,void 0,!1),a}function Ji(t){switch(t.kind){case 270:return t.parent.moduleSpecifier;case 268:return e.isExternalModuleReference(t.moduleReference)?t.moduleReference.expression:void 0;case 271:case 278:return t.parent.parent.moduleSpecifier;case 273:return t.parent.parent.parent.moduleSpecifier;default:return e.Debug.assertNever(t)}}function Ki(t,r,n){var i;void 0===n&&(n=!1);var a=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,o=oa(t,a),s=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(s)){var c=da(o,a,!1,"default"===s.escapedText&&!(!U.allowSyntheticDefaultImports&&!e.getESModuleInterop(U)));if(c&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var l=void 0;l=o&&o.exports&&o.exports.get("export=")?_l(_s(c),s.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return $i(_l(H_(r),t))}}(c,s.escapedText),l=$i(l,n);var u=function(e,t,r,n){if(1536&e.flags){var i=ya(e).get(t.escapedText),a=$i(i,n);return Qi(r,i,a,!1),a}}(c,s,r,n);if(void 0===u&&"default"===s.escapedText){var d=null===(i=o.declarations)||void 0===i?void 0:i.find(e.isSourceFile);(Ri(a)||ji(d,o,n,a))&&(u=ua(o,n)||$i(o,n))}var _=u&&l&&u!==l?function(t,r){if(t===we&&r===we)return we;if(790504&t.flags)return t;var n=ri(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(l,u):u||l;return _||zi(o,c,t,s),_}}}function zi(t,r,n,i){var a,s=na(t,n),c=e.declarationNameToString(i),l=Dh(i,r);if(void 0!==l){var u=ro(l),d=Gn(i,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,s,c,u);l.valueDeclaration&&e.addRelatedInfo(d,e.createDiagnosticForNode(l.valueDeclaration,e.Diagnostics._0_is_declared_here,u))}else(null===(a=t.exports)||void 0===a?void 0:a.has("default"))?Gn(i,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,s,c):function(t,r,n,i,a){var s,c,l=null===(c=null===(s=i.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(r.escapedText),u=i.exports;if(l){var d=null==u?void 0:u.get("export=");if(d)ka(d,l)?function(t,r,n,i){q>=e.ModuleKind.ES2015?Gn(r,e.getESModuleInterop(U)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):e.isInJSFile(t)?Gn(r,e.getESModuleInterop(U)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Gn(r,e.getESModuleInterop(U)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}(t,r,n,a):Gn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n);else{var _=u?e.find(El(u),(function(e){return!!ka(e,l)})):void 0,f=_?Gn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,a,n,ro(_)):Gn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,a,n);l.declarations&&e.addRelatedInfo.apply(void 0,o([f],e.map(l.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n)})),!1))}}else Gn(r,e.Diagnostics.Module_0_has_no_exported_member_1,a,n)}(n,i,c,t,s)}function Ui(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function Vi(t,r,n){if("default"===e.idText(t.propertyName||t.name)){var i=Ji(t),a=i&&oa(t,i);if(a)return Bi(a,t,!!n)}var o=t.parent.parent.moduleSpecifier?Ki(t.parent.parent,t,n):ia(t.propertyName||t.name,r,!1,n);return Qi(t,void 0,o,!1),o}function qi(t,r){return e.isClassExpression(t)?Ib(t).symbol:e.isEntityName(t)||e.isEntityNameExpression(t)?ia(t,901119,!0,r)||(Ib(t),_i(t).resolvedSymbol):void 0}function Wi(t,r){switch(void 0===r&&(r=!1),t.kind){case 268:case 257:return function(t,r){var n=Ui(t);if(n){var i=e.getLeftmostAccessExpression(n.expression).arguments[0];return e.isIdentifier(n.name)?$i(_l(jl(i),n.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||280===t.moduleReference.kind){var a=oa(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=ua(a);return Qi(t,a,o,!1),o}var s=ra(t.moduleReference,r);return function(t,r){if(Qi(t,void 0,r,!1)&&!t.isTypeOnly){var n=Zi(Da(t)),i=278===n.kind,a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(n.name.escapedText);e.addRelatedInfo(Gn(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}}(t,s),s}(t,r);case 270:return function(e,t){var r=oa(e,e.parent.moduleSpecifier);if(r)return Bi(r,e,t)}(t,r);case 271:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=oa(e,r),i=da(n,r,t,!1);return Qi(e,n,i,!1),i}(t,r);case 277:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&oa(e,r),i=r&&da(n,r,t,!1);return Qi(e,n,i,!1),i}(t,r);case 273:case 205:return function(t,r){if(e.isImportSpecifier(t)&&"default"===e.idText(t.propertyName||t.name)){var n=Ji(t),i=n&&oa(t,n);if(i)return Bi(i,t,r)}var a=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,o=Ui(a),s=Ki(a,o||t,r),c=t.propertyName||t.name;return o&&s&&e.isIdentifier(c)?$i(_l(_s(s),c.escapedText),r):(Qi(t,void 0,s,!1),s)}(t,r);case 278:return Vi(t,901119,r);case 274:case 223:return function(t,r){var n=qi(e.isExportAssignment(t)?t.expression:t.right,r);return Qi(t,void 0,n,!1),n}(t,r);case 267:return function(e,t){var r=ua(e.parent.symbol,t);return Qi(e,void 0,r,!1),r}(t,r);case 300:return ia(t.name,901119,!0,r);case 299:return qi(t.initializer,r);case 209:case 208:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return qi(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function Hi(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function $i(e,t){return!t&&Hi(e)?Gi(e):e}function Gi(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=di(t);if(r.aliasTarget)r.aliasTarget===Ie&&(r.aliasTarget=we);else{r.aliasTarget=Ie;var n=Pi(t);if(!n)return e.Debug.fail();var i=Wi(n);r.aliasTarget===Ie?r.aliasTarget=i||we:Gn(n,e.Diagnostics.Circular_definition_of_import_alias_0,ro(t))}return r.aliasTarget}function Xi(t){for(var r,n=t.flags;2097152&t.flags;){var i=Gi(t);if(i===we)return 67108863;if(i===t||(null==r?void 0:r.has(i)))break;2097152&i.flags&&(r?r.add(i):r=new e.Set([t,i])),n|=i.flags,t=i}return n}function Qi(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=Da(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return di(a).typeOnlyDeclaration=t,!0;var o=di(a);return Yi(o,r,i)||Yi(o,n,i)}function Yi(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:di(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function Zi(e,t){if(2097152&e.flags){var r=di(e);return void 0===t?r.typeOnlyDeclaration||void 0:r.typeOnlyDeclaration&&Xi(Gi(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}}function ea(e){var t=Da(e),r=Gi(t);r&&(r===we||111551&Xi(r)&&!YT(r)&&!Zi(t,111551))&&ta(t)}function ta(t){var r=di(t);if(!r.referenced){r.referenced=!0;var n=Pi(t);if(!n)return e.Debug.fail();e.isInternalModuleImportEqualsDeclaration(n)&&111551&Xi($i(t))&&Ib(n.moduleReference)}}function ra(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||163===t.parent.kind?ia(t,1920,!1,r):(e.Debug.assert(268===t.parent.kind),ia(t,901119,!1,r))}function na(e,t){return e.parent?na(e.parent,t)+"."+ro(e):ro(e,t,void 0,36)}function ia(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:dg(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(ku(t.parent)){var n=function(t){var r=e.findAncestor(t,(function(t){return e.isJSDocNode(t)||8388608&t.flags?e.isJSDocTypeAlias(t):"quit"}));if(!r){var n=e.getJSDocHost(t);if(n&&e.isExpressionStatement(n)&&e.isPrototypePropertyAssignment(n.expression)&&(i=Da(n.expression.left)))return aa(i);if(n&&e.isFunctionExpression(n)&&e.isPrototypePropertyAssignment(n.parent)&&e.isExpressionStatement(n.parent.parent)&&(i=Da(n.parent.left)))return aa(i);if(n&&(e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)&&(i=Da(n.parent.parent.left)))return aa(i);var i,a=e.getEffectiveJSDocHost(t);if(a&&e.isFunctionLike(a))return(i=Da(a))&&i.valueDeclaration}}(t.parent);if(n)return vi(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=ba(vi(a||t,t.escapedText,r,n||l?void 0:c,t,!0,!1))))return ba(l)}else{if(163!==t.kind&&208!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=163===t.kind?t.left:t.expression,d=163===t.kind?t.right:t.name,_=ia(u,s,n,!1,a);if(!_||e.nodeIsMissing(d))return;if(_===we)return _;if(_.valueDeclaration&&e.isInJSFile(_.valueDeclaration)&&e.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&Ax(_.valueDeclaration.initializer)){var f=_.valueDeclaration.initializer.arguments[0],p=oa(f,f);if(p){var m=ua(p);m&&(_=m)}}if(!(o=ba(pi(ya(_),d.escapedText,r)))){if(!n){var g=na(_),y=e.declarationNameToString(d),v=Dh(d,_);if(v)return void Gn(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,y,ro(v));var h=e.isQualifiedName(t)&&function(t){for(;e.isQualifiedName(t.parent);)t=t.parent;return t}(t),x=qt&&788968&r&&h&&!e.isTypeOfExpression(h.parent)&&function(t){var r=e.getFirstIdentifier(t),n=vi(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=_l(_s(n),r.parent.right.escapedText)))return;r=r.parent}return n}}(h);if(x)return void Gn(h,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(h));if(1920&r&&e.isQualifiedName(t.parent)){var b=ba(pi(ya(_),d.escapedText,788968));if(b)return void Gn(t.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ro(b),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}Gn(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,g,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||274===t.parent.kind)&&Qi(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Gi(o)}}function aa(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function oa(t,r,n){var i=e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return sa(t,r,n?void 0:i)}function sa(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?ca(t,r.text,n,r,i):void 0}function ca(r,n,i,a,o){var s,c,l,u,d,_,f,p;void 0===o&&(o=!1),e.startsWith(n,"@types/")&&Gn(a,L=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var m=Nl(n,!0);if(m)return m;var g=e.getSourceFileOfNode(r),y=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(r,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===d?void 0:d.name)||(null===(_=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===_?void 0:_.argument.literal),v=y&&e.isStringLiteralLike(y)?e.getModeForUsageLocation(g,y):g.impliedNodeFormat,h=e.getResolvedModule(g,n,v),x=h&&e.getResolutionDiagnostic(U,h),b=h&&(!x||x===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(h.resolvedFileName);if(b){if(x&&Gn(a,x,n,h.resolvedFileName),b.symbol){if(h.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(h.extension)&&la(!1,a,h,n),e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.NodeNext){var D=g.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),S=e.findAncestor(r,(function(t){return e.isImportTypeNode(t)||e.isExportDeclaration(t)||e.isImportDeclaration(t)})),T=S&&e.isImportTypeNode(S)?null===(f=S.assertions)||void 0===f?void 0:f.assertClause:null==S?void 0:S.assertClause;if(D&&b.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(T))if(e.findAncestor(r,e.isImportEqualsDeclaration))Gn(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{var C=void 0,E=e.tryGetExtensionFromPath(g.fileName);if(".ts"===E||".js"===E||".tsx"===E||".jsx"===E){var k=g.packageJsonScope,N=".ts"===E?".mts":".js"===E?".mjs":void 0;C=k&&!k.contents.packageJsonContent.type?N?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,N,e.combinePaths(k.packageDirectory,"package.json")):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,e.combinePaths(k.packageDirectory,"package.json")):N?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,N):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Fn.add(e.createDiagnosticForNodeFromMessageChain(a,e.chainDiagnosticMessages(C,e.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return ba(b.symbol)}i&&Gn(a,e.Diagnostics.File_0_is_not_a_module,b.fileName)}else{if(Ut){var A=e.findBestPatternMatch(Ut,(function(e){return e.pattern}),n);if(A){var P=Vt&&Vt.get(n);return ba(P||A.symbol)}}if(h&&!e.resolutionExtensionIsTSOrJson(h.extension)&&void 0===x||x===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Gn(a,L=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,h.resolvedFileName):la(Y&&!!i,a,h,n);else if(i){if(h){var F=t.getProjectReferenceRedirect(h.resolvedFileName);if(F)return void Gn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,F,h.resolvedFileName)}if(x)Gn(a,x,n,h.resolvedFileName);else{var w=e.tryExtractTSExtension(n),I=e.pathIsRelative(n)&&!e.hasExtension(n),M=e.getEmitModuleResolutionKind(U),O=M===e.ModuleResolutionKind.Node16||M===e.ModuleResolutionKind.NodeNext;if(w){var L=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,R=e.removeExtension(n,w);q>=e.ModuleKind.ES2015&&(R+=".mts"===w?".mjs":".cts"===w?".cjs":".js"),Gn(a,L,w,R)}else if(!U.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(U)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(U))Gn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(v===e.ModuleKind.ESNext&&O&&I){var j=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(g.path)),B=null===(p=Kn.find((function(e){var r=e[0];return e[1],t.fileExists(j+r)})))||void 0===p?void 0:p[1];B?Gn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+B):Gn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Gn(a,i,n)}}}}function la(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,p().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,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_1,o.name,e.mangleScopedPackageName(o.name)):function(e){return!!p().get(e)}(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Qn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function ua(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===we||t===r||1===r.exports.size||2097152&t.flags)return t;var n=di(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:ai(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?oi(i.exports.get(t),e):e)})),di(i).cjsExportMerged=i,n.cjsExportMerged=i}(ba($i(t.exports.get("export="),r)),ba(t));return ba(n)||t}}function da(t,r,n,i){var a,o=ua(t,n);if(!n&&o){if(!(i||1539&o.flags||e.getDeclarationOfKind(o,308))){var s=q>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Gn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s),o}var c=r.parent;if(e.isImportDeclaration(c)&&e.getNamespaceDeclarationNode(c)||e.isImportCall(c)){var l=e.isImportCall(c)?c.arguments[0]:c.moduleSpecifier,u=_s(o),d=kx(u,o,t,l);if(d)return _a(o,d,c);var _=null===(a=null==t?void 0:t.declarations)||void 0===a?void 0:a.find(e.isSourceFile),f=_&&Li(Oi(l),_.impliedNodeFormat);if(e.getESModuleInterop(U)||f){var p=fl(u,0);if(p&&p.length||(p=fl(u,1)),p&&p.length||_l(u,"default",!0)||f)return _a(o,Nx(u,o,t,l),c)}}}return o}function _a(t,r,n){var i=ri(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=Rc(r);return i.type=Ja(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function fa(e){return void 0!==e.exports.get("export=")}function pa(e){return El(va(e))}function ma(e,t){var r=va(t);if(r)return r.get(e)}function ga(t){return!(131068&t.flags||1&e.getObjectFlags(t)||Ip(t)||Zp(t))}function ya(e){return 6256&e.flags?nc(e,"resolvedExports"):1536&e.flags?va(e):e.exports||K}function va(e){var t=di(e);return t.resolvedExports||(t.resolvedExports=xa(e))}function ha(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&$i(o)!==$i(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 xa(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c=d?u.substr(0,d-"...".length)+"...":u}function ao(e,t){var r=so(e.symbol)?io(e,e.symbol.valueDeclaration):io(e),n=so(t.symbol)?io(t,t.symbol.valueDeclaration):io(t);return r===n&&(r=oo(e),n=oo(t)),[r,n]}function oo(e){return io(e,void 0,64)}function so(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!Cf(t.valueDeclaration)}function co(e){return void 0===e&&(e=0),848330091&e}function lo(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Fs(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function uo(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(129):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&oe.typeToTypeNode(t.type,r,70222336|co(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function _o(e){return 8===e?"private":16===e?"protected":"public"}function fo(t){return t&&t.parent&&265===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function po(t){return 308===t.kind||e.isAmbientModule(t)}function mo(t,r){var n=di(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(U))||e.isNumericLiteralName(i)?e.isNumericLiteralName(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(go(n.symbol,r),"]")}}function go(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],po)!==e.findAncestor(r.enclosingDeclaration,po)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=di(t).nameType;if(a&&384&a.flags){var o=mo(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&257===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 228:case 215:case 216:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),228===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=mo(t,r);return void 0!==s?s:e.symbolName(t)}function yo(t){if(t){var r=_i(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 341:case 348:case 342:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 205:return yo(t.parent.parent);case 257:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(e.isExternalModuleAugmentation(t))return!0;var r=So(t);return 1&e.getCombinedModifierFlags(t)||268!==t.kind&&308!==r.kind&&16777216&r.flags?yo(r):fi(r);case 169:case 168:case 174:case 175:case 171:case 170:if(e.hasEffectiveModifier(t,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return yo(t.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;default:return!1}}()),r.isVisible}return!1}function vo(t,r){var n,i,a;return t.parent&&274===t.parent.kind?n=vi(t,t.escapedText,2998271,void 0,t,!1):278===t.parent.kind&&(n=Vi(t.parent,2998271)),n&&((a=new e.Set).add(M(n)),function t(n){e.forEach(n,(function(n){var o=Ai(n)||n;if(r?_i(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=vi(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,M(c))&&t(c.declarations)}}))}(n.declarations)),i}function ho(e,t){var r=xo(e,t);if(r>=0){for(var n=un.length,i=r;i=0;r--){if(bo(un[r],_n[r]))return-1;if(un[r]===e&&_n[r]===t)return r}return-1}function bo(t,r){switch(r){case 0:return!!di(t).type;case 5:return!!_i(t).resolvedEnumType;case 2:return!!di(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved;case 8:return!!di(t).writeType}return e.Debug.assertNever(r)}function Do(){return un.pop(),_n.pop(),dn.pop()}function So(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}})).parent}function To(e,t){var r=_l(e,t);return r?_s(r):void 0}function Co(e){return e&&0!=(1&e.flags)}function Eo(e){return e===Be||!!(1&e.flags&&e.aliasSymbol)}function ko(e,t){if(0!==t)return Bo(e,!1,t);var r=Da(e);return r&&di(r).type||Bo(e,!1,t)}function No(t,r,n){if(131072&(t=Yg(t,(function(e){return!(98304&e.flags)}))).flags)return Ct;if(1048576&t.flags)return ty(t,(function(e){return No(e,r,n)}));for(var i=xd(e.map(r,Od)),a=[],s=[],c=0,l=Kc(t);c=2?(i=Le,Qu($u(!0),[i])):rr;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Le:Xo(t,r,n)})),l=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||mv(t))}),a.length-1)+1,u=ad(c,e.map(a,(function(e,t){return e===s?4:t>=l?2:1})));return r&&((u=_u(u)).pattern=t,u.objectFlags|=131072),u}(t,r,n)}function Yo(e,t){return Zo(Bo(e,!0,0),e,t)}function Zo(t,r,n){return t?(4096&t.flags&&(i=r.parent,a=Da(i),(o=sr||(sr=Ou("SymbolConstructor",!1)))&&a&&a===o)&&(t=U_(r)),n&&Am(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==Da(r)&&(t=ot),Cm(t)):(t=e.isParameter(r)&&r.dotDotDotToken?rr:Le,n&&(es(r)||Nm(r,t)),t);var i,a,o}function es(t){var r=e.getRootDeclaration(t);return pD(166===r.kind?r.parent:r)}function ts(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return H_(r)}function rs(t){if(t)switch(t.kind){case 174:return e.getEffectiveReturnTypeNode(t);case 175:return e.getEffectiveSetAccessorTypeAnnotationNode(t);case 169:return e.Debug.assert(e.hasAccessorModifier(t)),e.getEffectiveTypeAnnotationNode(t)}}function ns(e){var t=rs(e);return t&&H_(t)}function is(t){var r=di(t);if(!r.type){if(!ho(t,0))return Be;var n=e.getDeclarationOfKind(t,174),i=e.getDeclarationOfKind(t,175),a=e.tryCast(e.getDeclarationOfKind(t,169),e.isAutoAccessorPropertyDeclaration),o=n&&e.isInJSFile(n)&&Lo(n)||ns(n)||ns(i)||ns(a)||n&&n.body&&rb(n)||a&&a.initializer&&Yo(a,!0);o||(i&&!pD(i)?Qn(Y,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ro(t)):n&&!pD(n)?Qn(Y,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ro(t)):a&&!pD(a)&&Qn(Y,a,e.Diagnostics.Member_0_implicitly_has_an_1_type,ro(t),"any"),o=Le),Do()||(rs(n)?Gn(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)):rs(i)||rs(a)?Gn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)):n&&Y&&Gn(n,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,ro(t)),o=Le),r.type=o}return r.type}function as(t){var r,n=di(t);if(!n.writeType){if(!ho(t,8))return Be;var i=null!==(r=e.getDeclarationOfKind(t,175))&&void 0!==r?r:e.tryCast(e.getDeclarationOfKind(t,169),e.isAutoAccessorPropertyDeclaration),a=ns(i);Do()||(rs(i)&&Gn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)),a=Le),n.writeType=a||is(t)}return n.writeType}function os(t){var r=Es(Fs(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function ss(t){var r=di(t),n=r;if(!r.type){var i=t.valueDeclaration&&Dx(t.valueDeclaration,!1);if(i){var a=bx(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Le;if(r&&(223===r.kind||e.isAccessExpression(r)&&223===r.parent.kind))return qo(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=ua(t);if(n!==t){if(!ho(t,0))return Be;var i=ba(t.exports.get("export=")),a=qo(i,i===n?void 0:n);return Do()?a:ls(t)}}var o=Ma(16,t);if(32&t.flags){var s=os(t);return s?Nd([o,s]):o}return $&&16777216&t.flags?cm(o):o}(t)}return r.type}function cs(e){var t=di(e);return t.type||(t.type=js(e))}function ls(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Gn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)),Be):(Y&&(166!==r.kind||r.initializer)&&Gn(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,ro(t)),Le)}function us(t){var r=di(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?xd(r.deferralConstituents):Nd(r.deferralConstituents)),r.type}function ds(t){var r=e.getCheckFlags(t);return 4&t.flags?2&r?65536&r?function(t){var r=di(t);return!r.writeType&&r.deferralWriteConstituents&&(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.writeType=1048576&r.deferralParent.flags?xd(r.deferralWriteConstituents):Nd(r.deferralWriteConstituents)),r.writeType}(t)||us(t):t.writeType||t.type:_s(t):98304&t.flags?1&r?function(e){var t=di(e);return t.writeType||(t.writeType=xf(ds(t.target),t.mapper))}(t):as(t):_s(t)}function _s(t){var r=e.getCheckFlags(t);return 65536&r?us(t):1&r?function(e){var t=di(e);return t.type||(t.type=xf(_s(t.target),t.mapper))}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!ho(t,0))return r.containsError=!0,Be;var n=xf(Ac(r.target||r),lf(r.mapper,Ec(r),t.keyType)),i=$&&16777216&t.flags&&!vb(n,49152)?cm(n,!0):524288&t.checkFlags?gm(n):n;Do()||(Gn(u,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ro(t),io(r)),i=Be),t.type=i}return t.type}(t):8192&r?function(e){var t=di(e);return t.type||(t.type=Vm(e.propertyType,e.mappedType,e.constraintType)),t.type}(t):7&t.flags?function(t){var r=di(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=Js(Sa(t))).typeParameters?du(r,e.map(r.typeParameters,(function(e){return Le}))):r;var r;if(t===_e)return Le;if(134217728&t.flags&&t.valueDeclaration){var n=Da(e.getSourceFileOfNode(t.valueDeclaration)),i=ri(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),Ja(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return ee?Ue:Le;var l=OT(c);return Co(l)||l===Ue?l:Be}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Cm(Gp(Yb(s.statements[0].expression))):Ct;if(e.isAccessor(s))return is(t);if(!ho(t,0))return 512&t.flags&&!(67108864&t.flags)?ss(t):ls(t);if(274===s.kind)o=Zo(ts(s)||Ib(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=qo(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return ss(t);o=e.isBinaryExpression(s.parent)?qo(t):ts(s)||Le}else if(e.isPropertyAssignment(s))o=ts(s)||Jb(s);else if(e.isJsxAttribute(s))o=ts(s)||Ev(s);else if(e.isShorthandPropertyAssignment(s))o=ts(s)||Bb(s.name,0);else if(e.isObjectLiteralMethod(s))o=ts(s)||Kb(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=Yo(s,!0);else if(e.isEnumDeclaration(s))o=ss(t);else{if(!e.isEnumMember(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=cs(t)}return Do()?o:512&t.flags&&!(67108864&t.flags)?ss(t):ls(t)}(t);r.type||(r.type=n)}return r.type}(t):9136&t.flags?ss(t):8&t.flags?cs(t):98304&t.flags?is(t):2097152&t.flags?function(t){var r=di(t);if(!r.type){var n=Gi(t),i=t.declarations&&Wi(Pi(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(function(t){return e.isExportAssignment(t)?ts(t):void 0}));r.type=(null==i?void 0:i.declarations)&&yT(i.declarations)&&t.declarations.length?function(t){var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,Dy(a,Re,qe)}(i):yT(t.declarations)?Re:a||(111551&Xi(n)?_s(n):Be)}return r.type}(t):Be}function fs(e){return pm(_s(e),!!(16777216&e.flags))}function ps(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function ms(t){return 4&e.getObjectFlags(t)?t.target:t}function gs(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=ms(n);return i===r||e.some(Ns(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function ys(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=$c(e);return!!t&&bs(t)}return!1}function Ss(t){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);return r&&e.getEffectiveBaseTypeNode(r)}function Ts(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(pl(t,1),(function(t){return(a||i>=wl(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function Cs(t,r,n){var i=Ts(t,r,n),a=e.map(r,H_);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?Wl(t,a,e.isInJSFile(n)):t}))}function Es(t){if(!t.resolvedBaseConstructorType){var r=e.getClassLikeDeclarationOfSymbol(t.symbol),n=r&&e.getEffectiveBaseTypeNode(r),i=Ss(t);if(!i)return t.resolvedBaseConstructorType=qe;if(!ho(t,1))return Be;var a=Yb(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),Yb(n.expression)),2621440&a.flags&&Rc(a),!Do())return Gn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ro(t.symbol)),t.resolvedBaseConstructorType=Be;if(!(1&a.flags||a===Xe||Ds(a))){var o=Gn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,io(a));if(262144&a.flags){var s=ou(a),c=Ue;if(s){var l=pl(s,1);l[0]&&(c=zl(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ro(a.symbol),io(c)))}return t.resolvedBaseConstructorType=Be}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function ks(t,r){Gn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,io(r,void 0,2))}function Ns(t){if(!t.baseTypesResolved){if(ho(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[As(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=rl(Es(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Ss(t),a=r.symbol?Js(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=pu(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=gu(i,r.symbol);else if(1&r.flags)n=r;else{var o=Cs(r,i.typeArguments,i);if(!o.length)return Gn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=zl(o[0])}if(Eo(n))return t.resolvedBaseTypes=e.emptyArray;var s=sl(n);if(!Ps(s)){var c=dl(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,io(s));return Fn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||gs(s,t))return Gn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,io(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));d&&(u=vm(d,Nd(e.mapDefined(c,(function(e){return e.thisParameter&&_s(e.thisParameter)}))))),(l=uc(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var _=t[void 0!==n?n:0],f=_.slice(),p=function(t){if(t!==_){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),f=r.typeParameters&&e.some(f,(function(e){return!!e.typeParameters&&!gc(r.typeParameters,e.typeParameters)}))?void 0:e.map(f,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=Z_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=Vx(e),i=Vx(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Wx(e)||Wx(t),l=c&&!Wx(a),u=new Array(s+(l?1:0)),d=0;d=qx(a)&&d>=qx(o),y=d>=n?void 0:Rx(e,d),v=d>=i?void 0:Rx(t,d),h=ri(1|(g&&!m?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg".concat(d));h.type=m?Zu(p):p,u[d]=h}if(l){var x=ri(1,"args");x.type=Zu(Kx(o,s)),o===t&&(x.type=xf(x.type,r)),u[s]=x}return u}(t,r,n),s=function(e,t,r){return e&&t?vm(e,Nd([_s(e),xf(_s(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=cc(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=1048576,c.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?sf(t.mapper,n):n),c}(t,r)})),!f)return"break"}},m=0,g=t;m0})),n=e.map(t,bs);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function xc(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!Pp(e,r,!1,!1,!1,Pf)}))||(t=e.append(t,r))},i=0,a=r;i=f&&c<=p){var m=p?$l(_,Il(s,_.typeParameters,f,o)):lc(_);m.typeParameters=t.localTypeParameters,m.resolvedReturnType=t,m.flags=i?4|m.flags:-5&m.flags,l.push(m)}}return l}(_)),t.constructSignatures=a}}}(t):32&t.objectFlags?function(t){var r,n=e.createSymbolTable();Ba(t,K,e.emptyArray,e.emptyArray,e.emptyArray);var i=Ec(t),a=kc(t),o=Nc(t.target||t),s=Ac(t.target||t),c=rl(wc(t)),l=Ic(t),u=te?128:8576;function d(e){Gg(o?xf(o,lf(t.mapper,i,e)):e,(function(a){return function(e,a){if(Xs(a)){var u=tc(a),d=n.get(u);if(d)d.nameType=xd([d.nameType,a]),d.keyType=xd([d.keyType,e]);else{var _=Xs(e)?_l(c,tc(e)):void 0,f=!!(4&l||!(8&l)&&_&&16777216&_.flags),p=!!(1&l||!(2&l)&&_&&fb(_)),m=$&&!f&&_&&16777216&_.flags,g=ri(4|(f?16777216:0),u,262144|(_?Tc(_):0)|(p?8:0)|(m?524288:0));g.mappedType=t,g.nameType=a,g.keyType=e,_&&(g.syntheticOrigin=_,g.declarations=o?void 0:_.declarations),n.set(u,g)}}else if(nu(a)||33&a.flags){var y=eu(5&a.flags?Qe:40&a.flags?Ye:a,xf(s,lf(t.mapper,i,e)),!!(1&l));r=bc(r,y,!0)}}(e,a)}))}Fc(t)?Cc(c,u,te,d):Gg(Sc(a),d),Ba(t,n,e.emptyArray,e.emptyArray,r||e.emptyArray)}(t):e.Debug.fail("Unhandled object type "+e.Debug.formatObjectFlags(t.objectFlags)):1048576&t.flags?function(t){var r=mc(e.map(t.types,(function(e){return e===Wt?[Kr]:pl(e,0)}))),n=mc(e.map(t.types,(function(e){return pl(e,1)}))),i=yc(t.types);Ba(t,K,r,n,i)}(t):2097152&t.flags?function(t){for(var r,n,i,a=t.types,o=hc(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var l=t.types[c];if(!o[c]){var u=pl(l,1);u.length&&s>0&&(u=e.map(u,(function(e){var t=lc(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a2?(w.checkFlags|=65536,w.deferralParent=t,w.deferralConstituents=C,w.deferralWriteConstituents=S):(w.type=u?xd(C):Nd(C),S&&(w.writeType=u?xd(S):Nd(S))),w}}function al(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;return o||(o=il(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o),o}function ol(t,r,n){var i=al(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function sl(t){return 1048576&t.flags&&16777216&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,sl);if(r===t.types)return t;var n=xd(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(t)):2097152&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(Jc(t),cl)?33554432:0)),33554432&t.objectFlags?ct:t):t}function cl(e){return ll(e)||ul(e)}function ll(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&_s(t).flags))}function ul(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function dl(t,r){if(2097152&r.flags&&33554432&e.getObjectFlags(r)){var n=e.find(Jc(r),ll);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,io(r,void 0,536870912),ro(n));var i=e.find(Jc(r),ul);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,io(r,void 0,536870912),ro(i))}return t}function _l(e,t,r,n){if(524288&(e=nl(e)).flags){var i=Rc(e),a=i.members.get(t);if(a&&Aa(a,n))return a;if(r)return;var o=i===wt?Wt:i.callSignatures.length?Ht:i.constructSignatures.length?$t:void 0;if(o){var s=Bc(o,t);if(s)return s}return Bc(qt,t)}if(3145728&e.flags)return ol(e,t,r)}function fl(t,r){if(3670016&t.flags){var n=Rc(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function pl(e,t){return fl(nl(e),t)}function ml(t,r){return e.find(t,(function(e){return e.keyType===r}))}function gl(t,r){for(var n,i,a,o=0,s=t;o=0),n>=qx(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Pl(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&319===n.type.kind}function Fl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function wl(e){var t=0;if(e)for(var r=0;r=n&&o<=a){for(var s=t?t.slice():[],c=o;cl.arguments.length&&!p||kl(_)||(o=i.length)}if((174===t.kind||175===t.kind)&&ec(t)&&(!c||!s)){var m=174===t.kind?175:174,g=e.getDeclarationOfKind(Da(t),m);g&&(s=(r=jC(g))&&r.symbol)}var y=173===t.kind?Fs(ba(t.parent.symbol)):void 0,v=y?y.localTypeParameters:Cl(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!Ll(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=ri(3,"args",32768);return a?o.type=Zu(H_(a.type)):(o.checkFlags|=65536,o.deferralParent=ct,o.deferralConstituents=[rr],o.deferralWriteConstituents=[rr]),a&&r.pop(),r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,256)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,256))&&(a|=4),n.resolvedSignature=cc(t,v,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function Ol(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&Jh(H_(r.typeExpression))}}function Ll(t){var r=_i(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 79:return r.escapedText===de.escapedName&&mC(r)===de;case 169:case 171:case 174:case 175:return 164===r.name.kind&&t(r.name);case 208:case 209:return t(r.expression);case 299:return t(r.initializer);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Rl(t){if(!t||!t.declarations)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(!e.isFunctionExpressionOrArrowFunction(i)&&!e.isObjectLiteralMethod(i)&&Ol(i)||Ml(i))}}return r}function jl(e){var t=oa(e,e);if(t){var r=ua(t);if(r)return _s(r)}return Le}function Bl(e){if(e.thisParameter)return _s(e.thisParameter)}function Jl(t){if(!t.resolvedTypePredicate){if(t.target){var r=Jl(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Fl(o.kind,o.parameterName,o.parameterIndex,xf(o.type,s))):Br}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i=0}function ql(e){if(B(e)){var t=_s(e.parameters[e.parameters.length-1]),r=Zp(t)?rm(t):t;return r&&bl(r,Ye)}}function Wl(e,t,r,n){var i=Hl(e,Il(t,e.typeParameters,wl(e.typeParameters),r));if(n){var a=Kh(zl(i));if(a){var o=lc(a);o.typeParameters=n;var s=lc(i);return s.resolvedReturnType=Ql(o),s}}return i}function Hl(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=cu(r),a=n.get(i);return a||n.set(i,a=$l(t,r)),a}function $l(e,t){return df(e,function(e,t){return Z_(e.typeParameters,t)}(e,t),!0)}function Gl(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return df(e,of(e.typeParameters),!0)}(e)):e}function Xl(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=of(r),i=Z_(r,e.map(r,(function(e){return Uc(e)||Ue}))),a=e.map(r,(function(e){return xf(e,i)||Ue})),o=0;o1&&(t+=":"+a),n+=a}return t}function lu(e,t){return e?"@".concat(M(e))+(t?":".concat(cu(t)):""):""}function uu(t,r){for(var n=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Gn(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,io(n,void 0,2),o,i.length),!s)return Be}return 180===t.kind&&rd(t,e.length(t.typeArguments)!==i.length)?fu(n,t,void 0):du(n,e.concatenate(n.outerTypeParameters,Il(Fu(t),i,o,s)))}return Nu(t,r)?n:Be}function yu(t,r,n,i){var a=Js(t);if(a===ze&&P.has(t.escapedName)&&r&&1===r.length)return qd(t,r[0]);var o=di(t),s=o.typeParameters,c=cu(r)+lu(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=bf(a,Z_(s,Il(r,s,wl(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function vu(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function hu(e){return e.parent?"".concat(hu(e.parent),".").concat(e.escapedName):e.escapedName}function xu(e){var t=(163===e.kind?e.right:208===e.kind?e.name:e).escapedText;if(t){var r=163===e.kind?xu(e.left):208===e.kind?xu(e.expression):void 0,n=r?"".concat(hu(r),".").concat(t):t,i=Me.get(n);return i||(Me.set(n,i=ri(524288,t,1048576)),i.parent=r,i.declaredType=Je),i}return we}function bu(t,r,n){var i=function(t){switch(t.kind){case 180:return t.typeName;case 230:var r=t.expression;if(e.isEntityNameExpression(r))return r}}(t);if(!i)return we;var a=ia(i,r,n);return a&&a!==we?a:n?we:xu(i)}function Du(t,r){if(r===we)return Be;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=Da(n);if(i)return bx(i,t)}}}(r)||r).flags)return gu(t,r);if(524288&r.flags)return function(t,r){if(1048576&e.getCheckFlags(r)){var n=Fu(t),i=lu(r,n),a=Oe.get(i);return a||((a=Ia(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Oe.set(i,a)),a}var o=Js(r),s=di(r).typeParameters;if(s){var c=e.length(t.typeArguments),l=wl(s);if(cs.length)return Gn(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ro(r),l,s.length),Be;var u=k_(t),d=!u||!vu(r)&&vu(u)?void 0:u;return yu(r,Fu(t),d,N_(d))}return Nu(t,r)?o:Be}(t,r);var n=Ks(r);if(n)return Nu(t,r)?R_(n):Be;if(111551&r.flags&&ku(t)){var i=function(e,t){var r=_i(e);if(!r.resolvedJSDocType){var n=_s(t),i=n;if(t.valueDeclaration){var a=202===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=Du(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(bu(t,788968),_s(r))}return Be}function Su(e,t){if(3&t.flags||t===e||!t_(e)&&!t_(t))return e;var r="".concat(fd(e),">").concat(fd(t)),n=Ee.get(r);if(n)return n;var i=Fa(33554432);return i.baseType=e,i.constraint=t,Ee.set(r,i),i}function Tu(e){return Nd([e.constraint,e.baseType])}function Cu(e){return 186===e.kind&&1===e.elements.length}function Eu(e,t,r){return Cu(t)&&Cu(r)?Eu(e,t.elements[0],r.elements[0]):p_(H_(t))===p_(e)?H_(r):void 0}function ku(e){return!!(8388608&e.flags)&&(180===e.kind||202===e.kind)}function Nu(t,r){return!t.typeArguments||(Gn(t,e.Diagnostics.Type_0_is_not_generic,r?ro(r):t.typeName?e.declarationNameToString(t.typeName):c),!1)}function Au(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Nu(t),Qe;case"Number":return Nu(t),Ye;case"Boolean":return Nu(t),at;case"Void":return Nu(t),st;case"Undefined":return Nu(t),qe;case"Null":return Nu(t),Ge;case"Function":case"function":return Nu(t),Wt;case"array":return r&&r.length||Y?void 0:rr;case"promise":return r&&r.length||Y?void 0:Zx(Le);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=H_(r[0]),i=H_(r[1]),a=n===Qe||n===Ye?[eu(n,i,!1)]:e.emptyArray;return Ja(void 0,K,e.emptyArray,e.emptyArray,a)}return Le}return Nu(t),Y?void 0:Le}}}function Pu(t){var r=_i(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=we,r.resolvedType=Ib(t.parent.expression);var n=void 0,i=void 0,a=788968;ku(t)&&((i=Au(t))||((n=bu(t,a,!0))===we?n=bu(t,900095):bu(t,a),i=Du(t,n))),i||(i=Du(t,n=bu(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Fu(t){return e.map(t.typeArguments,H_)}function wu(e){var t=_i(e);if(!t.resolvedType){var r=wx(e);t.resolvedType=R_(Cm(r))}return t.resolvedType}function Iu(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r=0)return Pd(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Ue})))?ty(r[o],(function(n){return cd(t,e.replaceElement(r,o,n))})):Be}for(var s=[],c=[],l=[],d=-1,_=-1,f=-1,p=function(o){var c=r[o],l=t.elementFlags[o];if(8&l)if(58982400&c.flags||Lc(c))v(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(Zp(c)){var d=pu(c);if(d.length+s.length>=1e4)return Gn(u,e.isPartOfTypeNode(u)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Be};e.forEach(d,(function(e,t){var r;return v(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else v(jp(c)&&bl(c,Ye)||Be,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else v(c,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},m=0;m=0&&_i.fixedLength?function(e){var t=rm(e);return t&&Zu(t)}(t)||ad(e.emptyArray):ad(pu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function ud(t){return xd(e.append(e.arrayOf(t.target.fixedLength,(function(e){return B_(""+e)})),Kd(t.target.readonly?Xt:Gt)))}function dd(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function _d(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function fd(e){return e.id}function pd(t,r){return e.binarySearch(t,r,fd,e.compareValues)>=0}function md(t,r){var n=e.binarySearch(t,r,fd,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function gd(t,r,n){var i=n.flags;if(1048576&i)return yd(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===je&&(r|=8388608),!$&&98304&i)65536&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,fd,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function yd(e,t,r){for(var n=0,i=r;n=0&&pd(o,qe)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||j_(a)&&pd(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,e_);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return eg(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&(o=function(t,r){if(t.length<2)return t;var n=cu(t),i=ke.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!Lc(e)&&Xf(Rc(e))})),o=t.length,s=o,c=0;s>0;){var l=t[--s];if(a||469499904&l.flags)for(var d=61603840&l.flags?e.find(Kc(l),(function(e){return qp(_s(e))})):void 0,_=d&&R_(_s(d)),f=0,p=t;f1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),void Gn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,d&&61603840&m.flags){var g=To(m,d.escapedName);if(g&&qp(g)&&R_(g)!==_)continue}if(np(l,m,On)&&(!(1&e.getObjectFlags(ms(l)))||!(1&e.getObjectFlags(ms(m)))||Of(l,m))){e.orderedRemoveItemAt(t,s);break}}}}return ke.set(n,t),t}(o,!!(524288&s)),!o))return Be;if(0===o.length)return 65536&s?4194304&s?Ge:Xe:32768&s?4194304&s?qe:We:ct}if(!a&&1048576&s){var l=[];vd(l,t);for(var d=[],_=function(t){e.some(l,(function(e){return pd(e.types,t)}))||d.push(t)},f=0,p=o;f0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a0;){var i=t[--n];(4&i.flags&&402653312&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r||16384&i.flags&&32768&r||Yf(i)&&470302716&r)&&e.orderedRemoveItemAt(t,n)}}(s,o)),262144&o&&(s[s.indexOf(qe)]=$e),0===s.length)return Ue;if(1===s.length)return s[0];var c=cu(s)+lu(r,n),l=ve.get(c);if(!l){if(1048576&o)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(32768&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=Nd(i);131072&l.flags||r.push(l)}return r}(s);l=xd(d,1,r,n,e.some(d,(function(e){return!!(2097152&e.flags)}))&&wd(d)>wd(s)?hd(2097152,s):void 0)}else l=function(e,t,r){var n=Fa(2097152);return n.objectFlags=uu(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(s,r,n);ve.set(c,l)}return l}function Ad(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function Pd(t){var r=Ad(t);return!(r>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),Gn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Fd(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Fd(e.origin):wd(e.types):1}function wd(t){return e.reduceLeft(t,(function(e,t){return e+Fd(t)}),0)}function Id(e,t){var r=Fa(4194304);return r.type=e,r.stringsOnly=t,r}function Md(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Id(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Id(e,!1))}function Od(t){return e.isPrivateIdentifier(t)?ct:e.isIdentifier(t)?B_(e.unescapeLeadingUnderscores(t.escapedText)):R_(e.isComputedPropertyName(t)?hv(t):Yb(t))}function Ld(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=di(ac(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?B_("default"):a&&Od(a)||(e.isKnownSymbol(t)?void 0:B_(e.symbolName(t)))}if(i&&i.flags&r)return i}return ct}function Rd(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(function(e){return Rd(e,r)})))}function jd(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=wa(4194304);return t.type=e,t}(t):void 0,a=e.map(Kc(t),(function(e){return Ld(e,r)})),o=e.map(hl(t),(function(e){return e!==Vr&&Rd(e.keyType,r)?e.keyType===Qe&&8&r?ft:e.keyType:ct}));return xd(e.concatenate(a,o),1,void 0,void 0,i)}function Bd(e){var t=function(e){return 262143&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=xf(e,Dt))}(e);return sl(t)!==t}function Jd(t){return!!(58982400&t.flags||em(t)||Lc(t)&&(r=t,n=Ec(r),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===n:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.baseType)&&t(r.constraint):!!(268435456&r.flags)&&t(r.type))}(Nc(r)||n))||1048576&t.flags&&e.some(t.types,Bd)||2097152&t.flags&&vb(t,465829888)&&e.some(t.types,Yf));var r,n}function Kd(t,r,n){return void 0===r&&(r=te),Jd(t=sl(t))?Md(t,r):1048576&t.flags?Nd(e.map(t.types,(function(e){return Kd(e,r,n)}))):2097152&t.flags?xd(e.map(t.types,(function(e){return Kd(e,r,n)}))):32&e.getObjectFlags(t)?function(e,t,r){var n=Ec(e),i=kc(e),a=Nc(e.target||e);if(!a&&!r)return i;var o=[];if(Fc(e)){if(n_(i))return Md(e,t);Cc(rl(wc(e)),8576,t,c)}else Gg(Sc(i),c);n_(i)&&Gg(i,c);var s=r?Yg(xd(o),(function(e){return!(5&e.flags)})):xd(o);return 1048576&s.flags&&1048576&i.flags&&cu(s.types)===cu(i.types)?i:s;function c(t){var r=a?xf(a,lf(e.mapper,n,t)):t;o.push(r===Qe?ft:r)}}(t,r,n):t===je?je:2&t.flags?ct:131073&t.flags?mt:jd(t,(n?128:402653316)|(r?0:12584),r===te&&!n)}function zd(e){if(te)return e;var t=(Nr||(Nr=Lu("Extract",2,!0)||we),Nr===we?void 0:Nr);return t?yu(t,[e,Qe]):Qe}function Ud(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return Pd(r)?ty(r[n],(function(i){return Ud(t,e.replaceElement(r,n,i))})):Be;if(e.contains(r,je))return je;var i=[],a=[],o=t[0];if(!function t(r,n){for(var s=e.isArray(r),c=0;c=0)return b(xl(r,Ye)),ty(r,(function(e){var t=rm(e)||qe;return 1&o?xd([t,qe]):t}))}}if(!(98304&n.flags)&&hb(n,402665900)){if(131073&r.flags)return r;var p=Sl(r,n)||xl(r,Qe);if(p)return 2&o&&p.keyType!==Ye?void(c&&Gn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,io(n),io(t))):a&&p.keyType===Qe&&!hb(n,12)?(Gn(f=Yd(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,io(n)),1&o?xd([p.type,qe]):p.type):(b(p),1&o&&!(r.symbol&&384&r.symbol.flags&&n.symbol&&1024&n.flags&&Sa(n.symbol)===r.symbol)?xd([p.type,qe]):p.type);if(131072&n.flags)return ct;if($d(r))return Le;if(c&&!bb(r)){if(og(r)){if(Y&&384&n.flags)return Fn.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,io(r))),qe;if(12&n.flags){var m=e.map(r.properties,(function(e){return _s(e)}));return xd(e.append(m,qe))}}if(r.symbol===le&&void 0!==l&&le.exports.has(l)&&418&le.exports.get(l).flags)Gn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),io(r));else if(Y&&!U.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&gh(l,r)){var g=io(r);Gn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,g,g+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(bl(r,Ye))Gn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var y=void 0;if(void 0!==l&&(y=xh(l,r)))void 0!==y&&Gn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,io(r),y);else{var v=function(t,r,n){var i=e.isAssignmentTarget(r)?"set":"get";if(function(e){var r=Bc(t,e);if(r){var i=Jh(_s(r));return!!i&&qx(i)>=1&&Mf(n,Kx(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}}(r,c,n);if(void 0!==v)Gn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,io(r),v);else{var h=void 0;if(1024&n.flags)h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+io(n)+"]",io(r));else if(8192&n.flags){var x=na(n.symbol,c);h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+x+"]",io(r))}else 128&n.flags||256&n.flags?h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,io(r)):12&n.flags&&(h=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,io(n),io(r)));h=e.chainDiagnosticMessages(h,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,io(i),io(r)),Fn.add(e.createDiagnosticForNodeFromMessageChain(c,h))}}}return}}return $d(r)?Le:(a&&(f=Yd(a),384&n.flags?Gn(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,io(r)):12&n.flags?Gn(f,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,io(r),io(n)):Gn(f,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,io(n))),Co(n)?n:void 0);function b(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Gn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,io(r))}}function Yd(e){return 209===e.kind?e.argumentExpression:196===e.kind?e.indexType:164===e.kind?e.expression:e}function Zd(e){return!!(77&e.flags)||e_(e)}function e_(t){return!!(134217728&t.flags)&&e.every(t.types,Zd)||!!(268435456&t.flags)&&Zd(t.type)}function t_(e){return!!i_(e)}function r_(e){return!!(4194304&i_(e))}function n_(e){return!!(8388608&i_(e))}function i_(t){return 3145728&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|e.reduceLeft(t.types,(function(e,t){return e|i_(t)}),0)),12582912&t.objectFlags):33554432&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|i_(t.baseType)|i_(t.constraint)),12582912&t.objectFlags):(58982400&t.flags||Lc(t)||em(t)?4194304:0)|(465829888&t.flags&&!e_(t)?8388608:0)}function a_(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===Mt?t:t[n];t[n]=Mt;var i=a_(t.objectType,r),a=a_(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return a_(l_(t,e),n)}));return n?Nd(i):xd(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=o_(i,a,r);if(s)return t[n]=s}if(em(i)&&296&a.flags){var c=nm(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(Lc(i)){var l=Nc(i);if(!l||Mf(l,Ec(i)))return t[n]=ty(c_(i,t.indexType),(function(e){return a_(e,r)}))}return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=x_(e),a=b_(e);if(131072&a.flags&&p_(i)===p_(r)){if(1&r.flags||Mf(Sf(r),Sf(n)))return a_(i,t);if(s_(r,n))return ct}else if(131072&i.flags&&p_(a)===p_(r)){if(!(1&r.flags)&&Mf(Sf(r),Sf(n)))return ct;if(1&r.flags||s_(r,n))return a_(a,t)}return e}(t,r):t}function o_(t,r,n){if(1048576&t.flags||2097152&t.flags&&!Jd(t)){var i=e.map(t.types,(function(e){return a_(l_(e,r),n)}));return 2097152&t.flags||n?Nd(i):xd(i)}}function s_(e,t){return!!(131072&xd([vc(e,t),ct]).flags)}function c_(e,t){var r=Z_([Ec(e)],[t]),n=sf(e.mapper,r);return xf(Ac(e.target||e),n)}function l_(e,t,r,n,i,a){return void 0===r&&(r=0),d_(e,t,r,n,i,a)||(n?Be:Ue)}function u_(t,r){return Qg(t,(function(t){if(384&t.flags){var n=tc(t);if(e.isNumericLiteralName(n)){var i=+n;return i>=0&&i=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:E,instantiationCount:C}),Gn(u,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Be;T++,C++,E++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return ef(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=X_(s,r);return c!==s?sd(t.target,c):t}return 1024&o?function(t,r){var n=xf(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=xf(t.constraintType,r);if(!(4194304&i.flags))return t;var a=zm(xf(t.source,r),n,i);return a||t}(t,r):function(t,r,n,i){var a=4&t.objectFlags||8388608&t.objectFlags?t.node:t.symbol.declarations[0],o=_i(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=vs(a,!0);if(xx(a)){var u=Cl(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=8388612&t.objectFlags?[a]:t.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(t){return e.some(d,(function(e){return ff(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var _=sf(t.mapper,r),f=e.map(c,(function(e){return ef(e,_)})),p=n||t.aliasSymbol,m=n?i:X_(t.aliasTypeArguments,r),g=cu(f)+lu(p,m);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(cu(c)+lu(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(g);if(!y){var v=Z_(c,f);y=4&s.objectFlags?fu(t.target,t.node,v,p,m):32&s.objectFlags?mf(s,v,p,m):vf(s,v,p,m),s.instantiations.set(g,y)}return y}return t}(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,d=X_(u,r);if(d===u&&n===t.aliasSymbol)return t;var _=n||t.aliasSymbol,f=n?i:X_(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?Nd(d,_,f):xd(d,1,_,f)}if(4194304&a)return Kd(xf(t.type,r));if(134217728&a)return Ud(t.texts,X_(t.types,r));if(268435456&a)return qd(t.symbol,xf(t.type,r));if(8388608&a)return _=n||t.aliasSymbol,f=n?i:X_(t.aliasTypeArguments,r),l_(xf(t.objectType,r),xf(t.indexType,r),t.accessFlags,void 0,_,f);if(16777216&a)return hf(t,sf(t.mapper,r),n,i);if(33554432&a){var p=xf(t.baseType,r),m=xf(t.constraint,r);return 8650752&p.flags&&t_(m)?Su(p,m):3&m.flags||Mf(Sf(p),Sf(m))?p:8650752&p.flags?Su(p,m):Nd([m,p])}return t}(t,r,n,i);return E--,a}function Df(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=xf(e,xt))}function Sf(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=xf(e,ht),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Tf(e,t){return eu(e.keyType,xf(e.type,t),e.isReadonly,e.declaration)}function Cf(t){switch(e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 215:case 216:case 171:case 259:return Ef(t);case 207:return e.some(t.properties,Cf);case 206:return e.some(t.elements,Cf);case 224:return Cf(t.whenTrue)||Cf(t.whenFalse);case 223:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(Cf(t.left)||Cf(t.right));case 299:return Cf(t.initializer);case 214:return Cf(t.expression);case 289:return e.some(t.properties,Cf)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,Cf);case 288:var r=t.initializer;return!!r&&Cf(r);case 291:var n=t.expression;return!!n&&Cf(n)}return!1}function Ef(t){return e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&238!==t.body.kind&&Cf(t.body)}(t)}function kf(t){return(e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&Ef(t)}function Nf(t){if(524288&t.flags){var r=Rc(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Ma(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return Nd(e.map(t.types,Nf));return t}function Af(e,t){return np(e,t,jn)}function Pf(e,t){return np(e,t,jn)?-1:0}function Ff(e,t){return np(e,t,Ln)?-1:0}function wf(e,t){return np(e,t,Mn)?-1:0}function If(e,t){return np(e,t,Mn)}function Mf(e,t){return np(e,t,Ln)}function Of(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return Of(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return Of(t,e)})):58982400&t.flags?Of($c(t)||Ue,r):r===qt?!!(67633152&t.flags):r===Wt?!!(524288&t.flags)&&Ng(t):gs(t,ms(r))||Ip(r)&&!Mp(r)&&Of(t,Xt)}function Lf(e,t){return np(e,t,Rn)}function Rf(e,t){return Lf(e,t)||Lf(t,e)}function jf(e,t,r,n,i,a){return sp(e,t,Ln,r,n,i,a)}function Bf(e,t,r,n,i,a){return Jf(e,t,Ln,r,n,i,a,void 0)}function Jf(e,t,r,n,i,a,o,s){return!!np(e,t,r)||(!n||!zf(i,e,t,r,a,o,s))&&sp(e,t,r,n,a,o,s)}function Kf(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Kf))}function zf(t,r,n,i,a,o,c){if(!t||Kf(n))return!1;if(!sp(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=pl(r,0),l=pl(r,1),u=0,d=[l,c];u1,v=Yg(m,Up),h=Yg(m,(function(e){return!Up(e)}));if(y){if(v!==ct){var x=ad(kv(d,0)),b=function(t,r){var n,i,a,o,s;return l(this,(function(c){switch(c.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,c.label=1;case 1:return id:qx(t)>d))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Uh(t,r=(u=r).typeParameters?u.canonicalSignatureCache||(u.canonicalSignatureCache=function(t){return Wl(t,e.map(t.typeParameters,(function(e){return e.target&&!Uc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(u)):u,void 0,s));var _=Vx(t),f=$x(t),p=$x(r);(f||p)&&xf(f||p,c);var m=r.declaration?r.declaration.kind:0,g=!(3&n)&&G&&171!==m&&170!==m&&173!==m,y=-1,v=Bl(t);if(v&&v!==st){var h=Bl(r);if(h){if(!(C=!g&&s(v,h,!1)||s(h,v,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;y&=C}}for(var x=f||p?Math.min(_,d):Math.max(_,d),b=f||p?x-1:-1,D=0;D=qx(t)&&D=3&&32768&r[0].flags&&65536&r[1].flags&&e.some(r,Yf)?67108864:0)}return!!(67108864&t.objectFlags)}return!1}(r))return!0}return!1}function np(e,t,r){if(j_(e)&&(e=e.regularType),j_(t)&&(t=t.regularType),e===t)return!0;if(r!==jn){if(r===Rn&&!(131072&t.flags)&&rp(t,e,r)||rp(e,t,r))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(Dp(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&sp(e,t,r,void 0)}function ip(t,r){return 2048&e.getObjectFlags(t)&&Tv(r.escapedName)}function ap(t,r){for(;;){var n=j_(t)?t.regularType:4&e.getObjectFlags(t)?t.node?du(t.target,pu(t)):Bp(t)||t:3145728&t.flags?op(t,r):33554432&t.flags?r?t.baseType:Tu(t):25165824&t.flags?a_(t,r):t;if(n===t)return n;t=n}}function op(t,r){var n=sl(t);if(n!==t)return n;if(2097152&t.flags&&e.some(t.types,Yf)){var i=e.sameMap(t.types,(function(e){return ap(e,r)}));if(i!==t.types)return Nd(i)}return t}function sp(t,r,n,i,a,s,l){var d,_,f,p,m,g,y,v=0,h=0,x=0,b=0,D=!1,S=0,T=!1;e.Debug.assert(n!==jn||!i,"no error reporting in identity checking");var C=K(t,r,3,!!i,a);if(y&&O(),D){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:h,targetDepth:x});var E=Gn(i||u,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,io(t),io(r));l&&(l.errors||(l.errors=[])).push(E)}else if(d){if(s){var k=s();k&&(e.concatenateDiagnosticMessageChains(k,d),d=k)}var N=void 0;if(a&&i&&!C&&t.symbol){var P=di(t.symbol);if(P.originatingImport&&!e.isImportCall(P.originatingImport)&&sp(_s(P.target),r,n,void 0)){var F=e.createDiagnosticForNode(P.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);N=e.append(N,F)}}E=e.createDiagnosticForNodeFromMessageChain(i,d,N),_&&e.addRelatedInfo.apply(void 0,o([E],_,!1)),l&&(l.errors||(l.errors=[])).push(E),l&&l.skipLogging||Fn.add(E)}return i&&l&&l.skipLogging&&0===C&&e.Debug.assert(!!l.errors,"missed opportunity to interact with error."),0!==C;function w(e){d=e.errorInfo,g=e.lastSkippedInfo,y=e.incompatibleStack,S=e.overrideNextErrorInfo,_=e.relatedInfo}function I(){return{errorInfo:d,lastSkippedInfo:g,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:S,relatedInfo:null==_?void 0:_.slice()}}function M(e,t,r,n,i){S++,g=void 0,(y||(y=[])).push([e,t,r,n,i])}function O(){var t=y||[];y=void 0;var r=g;if(g=void 0,1===t.length)return L.apply(void 0,t[0]),void(r&&j.apply(void 0,o([void 0],r,!1)));for(var n="",i=[];t.length;){var a=t.pop(),s=a[0],c=a.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="(".concat(n,")"));var l=""+c[0];n=0===n.length?"".concat(l):e.isIdentifierText(l,e.getEmitScriptTarget(U))?"".concat(n,".").concat(l):"["===l[0]&&"]"===l[l.length-1]?"".concat(n).concat(l):"".concat(n,"[").concat(l,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var u=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?u=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(u=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),i.unshift([u,c[0],c[1]])}else{var d=s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",_=s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";n="".concat(d).concat(n,"(").concat(_,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:i.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c[0],c[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:i.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,c[0],c[1],c[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(s.code))}}n?L(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):i.shift();for(var f=0,p=i;f0||KT(l)),p=!!(2048&e.getObjectFlags(l));if(f&&!function(e,t,r){for(var n=0,i=Kc(e);n0&&K(zl(y[0]),u,1,!1)||v.length>0&&K(zl(v[0]),u,1,!1)?L(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,m,g):L(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,m,g)}return 0}V(l,u);var h=1048576&l.flags&&l.types.length<4&&!(1048576&u.flags)||1048576&u.flags&&u.types.length<4&&!(469499904&l.flags)?q(l,u,o,c):X(l,u,o,c,a);if(h)return h}return o&&z(t,r,l,u,s),0}function z(t,r,n,a,o){var s,c,l=!!Bp(t),u=!!Bp(r);n=t.aliasSymbol||l?t:n,a=r.aliasSymbol||u?r:a;var _=S>0;if(_&&S--,524288&n.flags&&524288&a.flags){var f=d;B(n,a,!0),d!==f&&(_=!!d)}if(524288&n.flags&&131068&a.flags)!function(t,r){var n=so(t.symbol)?io(t,t.symbol.valueDeclaration):io(t),i=so(r.symbol)?io(r,r.symbol.valueDeclaration):io(r);(Qt===t&&Qe===r||Yt===t&&Ye===r||Zt===t&&at===r||Uu()===t&&ot===r)&&L(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,a);else if(n.symbol&&524288&n.flags&&qt===n)L(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&e.getObjectFlags(n)&&2097152&a.flags){var p=a.types,m=Av(A.IntrinsicAttributes,i),y=Av(A.IntrinsicClassAttributes,i);if(!Eo(m)&&!Eo(y)&&(e.contains(p,m)||e.contains(p,y)))return}else d=dl(d,r);if(o||!_){if(j(o,n,a),262144&n.flags&&(null===(c=null===(s=n.symbol)||void 0===s?void 0:s.declarations)||void 0===c?void 0:c[0])&&!zc(n)){var v=uf(n);if(v.constraint=xf(a,tf(n,v)),Xc(v)){var h=io(a,n.symbol.declarations[0]);R(e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint,h))}}}else g=[n,a]}function V(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,a=r;if(n.objectFlags&a.objectFlags&32768)return;var o=n.types.length,s=a.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function q(t,r,i,a){if(1048576&t.flags)return n===Rn?G(t,r,i&&!(131068&t.flags),a):function(e,t,r,n){for(var i=-1,a=e.types,o=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?ny(t,-32769):t}(e,t),s=0;s=o.types.length&&a.length%o.types.length==0){var l=K(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}var u=K(c,t,1,r,void 0,n);if(!u)return 0;i&=u}return i}(t,r,i&&!(131068&t.flags),a);if(1048576&r.flags)return H(hm(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return function(e,t,r,n){for(var i=-1,a=0,o=t.types;a25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0;for(var c=new Array(i.length),l=new e.Set,u=0;u=f-b)?t.target.elementFlags[C]:4,k=r.target.elementFlags[T];if(8&k&&!(8&E))return i&&L(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,T),0;if(8&E&&!(12&k))return i&&L(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,C,T),0;if(1&k&&!(1&E))return i&&L(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,T),0;if(!(D&&((12&E||12&k)&&(D=!1),D&&(null==s?void 0:s.has(""+T))))){var N=Zp(t)?T=f-b?pm(v[C],!!(E&k&2)):nm(t,x,b)||ct:v[0],A=h[T];if(!(W=K(N,8&E&&4&k?Zu(A):pm(A,!!(2&k)),3,i,void 0,l)))return i&&(f>1||_>1)&&(T=f-b||_-x-b==1?M(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,C,T):M(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,x,_-b-1,T)),0;u&=W}}return u}if(12&r.target.combinedFlags)return 0}var P=!(n!==Mn&&n!==On||og(t)||Kp(t)||Zp(t)),F=Wm(t,r,P,!1);if(F)return i&&function(e,t){var r=fl(e,0),n=fl(e,1),i=jc(e);return!((r.length||n.length)&&!i.length)||!!(pl(t,0).length&&r.length||pl(t,1).length&&n.length)}(t,r)&&function(t,r,n,i){var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var l=n.valueDeclaration.name.escapedText,u=e.getSymbolNameForPrivateIdentifier(t.symbol,l);if(u&&_l(t,u)){var _=e.factory.getDeclarationName(t.symbol.valueDeclaration),f=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void L(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Si(l),Si(""===_.escapedText?c:_),Si(""===f.escapedText?c:f))}}var p=e.arrayFrom(qm(t,r,i,!1));if((!a||a.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&a.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===p.length){var m=ro(n,void 0,0,20);L.apply(void 0,o([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,m],ao(t,r),!1)),e.length(n.declarations)&&R(e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,m)),s&&d&&S++}else B(t,r,!1)&&(p.length>5?L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,io(t),io(r),e.map(p.slice(0,4),(function(e){return ro(e)})).join(", "),p.length-4):L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,io(t),io(r),e.map(p,(function(e){return ro(e)})).join(", ")),s&&d&&S++)}(t,r,F,P),0;if(og(r))for(var w=0,I=Q(Kc(t),s);w0||pl(t,n=1).length>0)return e.find(r.types,(function(e){return pl(e,n).length>0}))}(t,r)||function(t,r){var n;if(!(406978556&t.flags))for(var i=0,a=0,o=r.types;a=i&&(n=s,i=l)}}}return n}(t,r)}function _p(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,fp)}function pp(e){return e===Gt||e===Xt||8&e.objectFlags?z:gp(e.symbol,e.typeParameters)}function mp(e){return gp(e,di(e).typeParameters)}function gp(t,r){void 0===r&&(r=e.emptyArray);var n=di(t);if(!n.variances){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:fd(Js(t))}),n.variances=e.emptyArray;for(var i=[],a=function(e){var r=hp(e),n=65536&r?32768&r?0:1:32768&r?2:void 0;if(void 0===n){var a=!1,o=!1,s=it;it=function(e){return e?o=!0:a=!0};var c=yp(t,e,Lt),l=yp(t,e,Rt);3==(n=(Mf(l,c)?1:0)|(Mf(c,l)?2:0))&&Mf(yp(t,e,jt),c)&&(n=4),it=s,(a||o)&&(a&&(n|=8),o&&(n|=16))}i.push(n)},o=0,s=r;ot.id){var a=e;e=t,t=a}var o=r?":"+r:"";return bp(e)&&bp(t)?function(e,t,r,n){var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(r);function c(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,o=0,s=pu(e);o";continue}r+="-"+l.id}return r}}(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function Sp(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=n)for(var i=Np(e),a=0,o=0,s=0;s=o&&++a>=n)return!0;o=c.id}}return!1}function Np(t){if(524288&t.flags&&!sg(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(Zp(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function Ap(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(QS(t)!==QS(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return fb(t)!==fb(r)?0:n(_s(t),_s(r))}function Pp(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=Vx(e),i=Vx(t),a=qx(e),o=qx(t),s=Wx(e),c=Wx(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=Z_(t.typeParameters,r.typeParameters),c=0;ce.length(r.typeParameters)&&(a=oc(a,e.last(pu(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function Jp(e){return $?e===ut:e===We}function Kp(e){var t=Rp(e);return!!t&&Jp(t)}function zp(e){return Zp(e)||!!_l(e,"0")}function Up(e){return jp(e)||zp(e)}function Vp(e){return!(240512&e.flags)}function qp(e){return!!(109440&e.flags)}function Wp(t){var r=Gc(t);return 2097152&r.flags?e.some(r.types,qp):qp(r)}function Hp(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,qp):qp(t))}function $p(e){return 1024&e.flags?Ls(e):402653312&e.flags?Qe:256&e.flags?Ye:2048&e.flags?Ze:512&e.flags?at:1048576&e.flags?function(e){var t,r="B".concat(fd(e));return null!==(t=zn(r))&&void 0!==t?t:Un(r,ty(e,$p))}(e):e}function Gp(e){return 1024&e.flags&&j_(e)?Ls(e):128&e.flags&&j_(e)?Qe:256&e.flags&&j_(e)?Ye:2048&e.flags&&j_(e)?Ze:512&e.flags&&j_(e)?at:1048576&e.flags?ty(e,Gp):e}function Xp(e){return 8192&e.flags?ot:1048576&e.flags?ty(e,Xp):e}function Qp(e,t){return Rb(e,t)||(e=Xp(Gp(e))),R_(e)}function Yp(e,t,r,n){return e&&qp(e)&&(e=Qp(e,t?LS(r,t,n):void 0)),e}function Zp(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function em(e){return Zp(e)&&!!(8&e.target.combinedFlags)}function tm(e){return em(e)&&1===e.target.elementFlags.length}function rm(e){return nm(e,e.target.fixedLength)}function nm(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=mu(e)-r;if(t-1&&(vi(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Qn(Y,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Y?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Y?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 205:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 320:return void Gn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(Y&&!t.name)return void Gn(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Y?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 197:return void(Y&&Gn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Y?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Qn(Y,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function Am(t,r,n){g((function(){!(Y&&65536&e.getObjectFlags(r))||n&&fv(t)||km(r)||Nm(t,r,n)}))}function Pm(e,t,r){var n=Vx(e),i=Vx(t),a=Hx(e),o=Hx(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Bl(e);if(l){var u=Bl(t);u&&r(l,u)}for(var d=0;d0){for(var y=f,v=p;!((v=h(y).indexOf(g,v))>=0);){if(++y===e.length)return;v=0}x(y,v),p+=g.length}else if(p0)for(var D=0,S=r;De.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength1){var r=e.filter(t,sg);if(r.length){var n=xd(r,2);return e.concatenate(e.filter(t,(function(e){return!sg(e)})),[n])}}return t}(t.candidates),a=!!(n=Uc(t.typeParameter))&&vb(16777216&n.flags?qc(n):n,406978556),o=!a&&t.topLevel&&(t.isFixed||!Km(zl(r),t.typeParameter)),s=a?e.sameMap(i,R_):o?e.sameMap(i,Gp):i;return Cm(416&t.priority?xd(s,2):wp(s))}(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(function(e){return If(c,e)}))?function(t){return 416&t.priority?Nd(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,(function(e,t){return If(t,e)?t:e})));var r}(a):c;else if(c)o=c;else if(1&t.flags)o=lt;else{var l=Zc(a.typeParameter);l&&(o=xf(l,(n=function(t,r){var n=t.inferences.slice(r);return Z_(e.map(n,(function(e){return e.typeParameter})),e.map(n,(function(){return Ue})))}(t,r),i=t.nonFixingMapper,n?af(5,n,i):i)))}}else o=Hm(a);a.inferredType=o||lg(!!(2&t.flags));var u=Uc(a.typeParameter);if(u){var d=xf(u,t.nonFixingMapper);o&&t.compareTypes(o,oc(d,o))||(a.inferredType=o=d)}}return a.inferredType}function lg(e){return e?Le:Ue}function ug(e){for(var t=[],r=0;r=10&&2*i>=t.length?n:void 0}(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function Sg(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(fd(R_(t)));return n!==Ue?n:void 0}function Tg(e,t){var r=Dg(e),n=r&&To(t,r);return n&&Sg(e,n)}function Cg(e,t){return mg(e,t)||vg(e,t)}function Eg(e,t){if(e.arguments)for(var r=0,n=e.arguments;r=0&&r.parameterIndex=n&&o0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return H_(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return H_(i.typeExpression)}(n);if(!a){var o=function(t){return 215===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:171===t.kind&&207===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:215===t.kind&&299===t.parent.kind&&207===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:215===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(n);if(i&&o){var s=Yb(o).symbol;s&&s.members&&16&s.flags&&(a=Js(s).thisType)}else xx(n)&&(a=Js(ba(n.symbol)).thisType);a||(a=Uy(n))}if(a)return Dy(t,a)}if(e.isClassLike(n.parent)){var c=Da(n.parent);return Dy(t,e.isStatic(n)?_s(c):Js(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=Da(n);return l&&_s(l)}if(n.externalModuleIndicator)return qe;if(r)return _s(le)}}function By(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":166===t.kind&&t.parent===r}))}function Jy(t){var r=210===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1,o=!1;if(!r){for(;i&&216===i.kind;)e.hasSyntacticModifier(i,512)&&(o=!0),i=e.getSuperContainer(i,!0),a=V<2;i&&e.hasSyntacticModifier(i,512)&&(o=!0)}var s=function(t){return!!t&&(r?173===t.kind:!(!e.isClassLike(t.parent)&&207!==t.parent.kind)&&(e.isStatic(t)?171===t.kind||170===t.kind||174===t.kind||175===t.kind||169===t.kind||172===t.kind:171===t.kind||170===t.kind||174===t.kind||175===t.kind||169===t.kind||168===t.kind||173===t.kind))}(i),c=0;if(!s){var l=e.findAncestor(t,(function(e){return e===i?"quit":164===e.kind}));return l&&164===l.kind?Gn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Gn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||207===i.parent.kind)?Gn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Gn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Be}if(r||173!==n.kind||Ly(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(c=512,!r&&V>=2&&V<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(_i(t).flags|=134217728)}))):c=256,_i(t).flags|=c,171===i.kind&&o&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?_i(i).flags|=4096:_i(i).flags|=2048),a&&Iy(t.parent,i),207===i.parent.kind)return V<2?(Gn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Be):Le;var u=i.parent;if(!e.getClassExtendsHeritageElement(u))return Gn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Be;var d=Js(Da(u)),_=d&&Ns(d)[0];return _?173===i.kind&&By(t,i)?(Gn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Be):512===c?Es(d):oc(_,d.thisType):Be}function Ky(t){return 4&e.getObjectFlags(t)&&t.target===tr?pu(t)[0]:void 0}function zy(t){return ty(t,(function(t){return 2097152&t.flags?e.forEach(t.types,Ky):Ky(t)}))}function Uy(t){if(216!==t.kind){if(kf(t)){var r=pv(t);if(r){var n=r.thisParameter;if(n)return _s(n)}}var i=e.isInJSFile(t);if(Z||i){var a=function(e){return 171!==e.kind&&174!==e.kind&&175!==e.kind||207!==e.parent.kind?215===e.kind&&299===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=av(a,void 0),s=a,c=o;c;){var l=zy(c);if(l)return xf(l,jm(lv(a)));if(299!==s.parent.kind)break;c=av(s=s.parent.parent,void 0)}return Cm(o?lm(o):Ib(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(223===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var _=d.expression;if(i&&e.isIdentifier(_)){var f=e.getSourceFileOfNode(u);if(f.commonJsModuleIndicator&&_g(_)===f.symbol)return}return Cm(Ib(_))}}}}}function Vy(t){var r=t.parent;if(kf(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Zh(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Hh(i,a,i.length,Le,void 0,0);var o=_i(n),s=o.resolvedSignature;o.resolvedSignature=Jr;var c=a=i?l_(_s(n.parameters[i]),J_(r-i),256):Kx(n,r)}function Qy(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=vi(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function Yy(t){if(!t.symbol)return Gb(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=H_(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=Ry(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&Zy(a,o)||void 0}}function Zy(t,r,n){return ty(t,(function(t){var i,a;if(Lc(t)&&!t.declaration.nameType){var o=kc(t),s=$c(o)||o,c=n||B_(e.unescapeLeadingUnderscores(r));if(Mf(c,s))return c_(t,c)}else if(3670016&t.flags){var l=_l(t,r);if(l)return a=l,262144&e.getCheckFlags(a)&&!a.type&&xo(a,0)>=0?void 0:_s(l);if(Zp(t)){var u=rm(t);if(u&&e.isNumericLiteralName(r)&&+r>=0)return u}return null===(i=gl(vl(t),n||B_(e.unescapeLeadingUnderscores(r))))||void 0===i?void 0:i.type}}),!0)}function ev(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(33554432&t.flags))return tv(t,r)}function tv(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&qy(t,r);if(i)return i;var a=av(n,r);if(a){if(ec(t)){var o=Da(t);return Zy(a,o.escapedName,di(o).nameType)}if(t.name){var s=Od(t.name);return ty(a,(function(e){var t;return null===(t=gl(vl(e),s))||void 0===t?void 0:t.type}),!0)}}}function rv(e,t){return e&&(Zy(e,""+t)||ty(e,(function(e){return mS(1,e,qe,void 0,!1)}),!0))}function nv(t,r){if(e.isJsxAttribute(t)){var n=av(t.parent,r);if(!n||Co(n))return;return Zy(n,t.name.escapedText)}return cv(t.parent,r)}function iv(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return iv(e.expression);case 291:return!e.expression||iv(e.expression)}return!1}function av(t,r){var n=ov(e.isObjectLiteralMethod(t)?ev(t,r):cv(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=ty(n,rl,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?function(t,r){return function(t,r){var n=Dg(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&299===e.kind&&e.symbol.escapedName===n&&iv(e.initializer)})),a=i&&Qb(i.initializer);return a&&Sg(t,a)}(r,t)||_p(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&299===e.kind&&iv(e.initializer)&&xg(r,e.symbol.escapedName)})),(function(e){return[function(){return Qb(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(Kc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&xg(r,e.escapedName)})),(function(e){return[function(){return qe},e.escapedName]}))),Mf,r)}(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return _p(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&288===e.kind&&xg(r,e.symbol.escapedName)&&(!e.initializer||iv(e.initializer))})),(function(e){return[e.initializer?function(){return Qb(e.initializer)}:function(){return rt},e.symbol.escapedName]})),e.map(e.filter(Kc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&xg(r,e.escapedName)})),(function(e){return[function(){return qe},e.escapedName]}))),Mf,r)}(t,i):i}}function ov(t,r,n){if(t&&vb(t,465829888)){var i=lv(r);if(i&&1&n&&e.some(i.inferences,qb))return sv(t,i.nonFixingMapper);if(null==i?void 0:i.returnMapper){var a=sv(t,i.returnMapper);return 1048576&a.flags&&pd(a.types,tt)&&pd(a.types,nt)?Yg(a,(function(e){return e!==tt&&e!==nt})):a}}return t}function sv(t,r){return 465829888&t.flags?xf(t,r):1048576&t.flags?xd(e.map(t.types,(function(e){return sv(e,r)})),0):2097152&t.flags?Nd(e.map(t.types,(function(e){return sv(e,r)}))):t}function cv(t,r){if(33554432&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 257:case 166:case 169:case 168:case 205:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=qy(n,r);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name)&&n.name.elements.length>0)return Qo(n.name,!0,!1)}}(t,r);case 216:case 250:return function(t,r){var n=e.getContainingFunction(t);if(n){var i=$y(n,r);if(i){var a=e.getFunctionFlags(n);if(1&a){var o=0!=(2&a);1048576&i.flags&&(i=Yg(i,(function(e){return!!LS(1,e,o)})));var s=LS(1,i,0!=(2&a));if(!s)return;i=s}if(2&a){var c=ty(i,ED);return c&&xd([c,eb(c)])}return i}}}(t,r);case 226:return function(t,r){var n=e.getContainingFunction(t);if(n){var i=e.getFunctionFlags(n),a=$y(n,r);if(a){var o=0!=(2&i);return!t.asteriskToken&&1048576&a.flags&&(a=Yg(a,(function(e){return!!LS(1,e,o)}))),t.asteriskToken?a:LS(0,a,o)}}}(n,r);case 220:return function(e,t){var r=cv(e,t);if(r){var n=ED(r);return n&&xd([n,eb(n)])}}(n,r);case 210:case 211:return Gy(n,t);case 213:case 231:return e.isConstTypeReference(n.type)?o(n):H_(n.type);case 223:return function(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return _g(t);if(e.isPropertyAccessExpression(t)){var r=Gb(t.expression);return e.isPrivateIdentifier(t.name)?function(e,t){var r=oh(t.escapedText,t);return r&&ch(e,r)}(r,t.name):_l(r,t.name.escapedText)}if(e.isElementAccessExpression(t)){var n=Ib(t.argumentExpression);if(!Xs(n))return;return _l(r=Gb(t.expression),tc(n))}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&xf(H_(c),di(a).mapper)||(e.isPropertyDeclaration(o)?o.initializer&&Gb(t.left):void 0):0===i?Gb(t.left):Yy(t);case 5:if(Qy(t,i))return Yy(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return H_(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=vi(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var _=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(_){var f=e.getElementOrPropertyAccessName(l);if(void 0!==f)return Zy(H_(_),f)}return}}return e.isInJSFile(s)?void 0:Gb(t.left)}return Gb(t.left);case 1:case 6:case 3:case 2:var p=void 0;2!==i&&(p=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration),p||(p=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var m=p&&e.getEffectiveTypeAnnotationNode(p);return m?H_(m):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(n):void 0;case 56:case 60:var s=cv(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?Gb(i):s;case 55:case 27:return t===o?cv(n,r):void 0;default:return}}(t,r);case 299:case 300:return tv(n,r);case 301:return cv(n.parent,r);case 206:var i=n;return rv(av(i,r),e.indexOfNode(i.elements,t));case 224:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?cv(r,t):void 0}(t,r);case 236:return e.Debug.assert(225===n.parent.kind),function(e,t){if(212===e.parent.kind)return Gy(e.parent,t)}(n.parent,t);case 214:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):H_(a.typeExpression.type):cv(n,r);case 232:return cv(n,r);case 235:return H_(n.type);case 274:return ts(n);case 291:return function(t,r){var n=t.parent;return e.isJsxAttributeLike(n)?cv(t,r):e.isJsxElement(n)?function(t,r,n){var i=av(t.openingElement.tagName,n),a=Mv(wv(t));if(i&&!Co(i)&&a&&""!==a){var o=e.getSemanticJsxChildren(t.children),s=o.indexOf(r),c=Zy(i,a);return c&&(1===o.length?c:ty(c,(function(e){return jp(e)?l_(e,J_(s)):e}),!0))}}(n,t,r):void 0}(n,r);case 288:case 290:return nv(n,r);case 283:case 282:return function(t,r){return e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:Xy(t,0)}(n,r)}}function o(e){return cv(e,r)}}function lv(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function uv(t,r){return 0!==Gh(r)?function(e,t){var r=Xx(e,Ue);r=dv(t,wv(t),r);var n=Av(A.IntrinsicAttributes,t);return Eo(n)||(r=vc(n,r)),r}(t,r):function(t,r){var n,i=wv(r),a=(n=i,Iv(A.ElementAttributesPropertyNameContainer,n)),o=void 0===a?Xx(t,Ue):""===a?zl(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n=2)return yu(a,Il([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return du(o,Il([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function _v(t,r){var n=pl(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Wx(e)||Wx(t),l=c&&!Wx(a),u=new Array(s+(l?1:0)),d=0;d=qx(a)&&d>=qx(o),y=d>=n?void 0:Rx(e,d),v=d>=i?void 0:Rx(t,d),h=ri(1|(g&&!m?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg".concat(d));h.type=m?Zu(p):p,u[d]=h}if(l){var x=ri(1,"args");x.type=Zu(Kx(o,s)),o===t&&(x.type=xf(x.type,r)),u[s]=x}return u}(t,r,n),s=function(e,t,r){return e&&t?vm(e,xd([_s(e),xf(_s(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=cc(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=2097152,c.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?sf(t.mapper,n):n),c}(t,r):void 0:t})):void 0}(i)}function fv(t){return e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)?pv(t):void 0}function pv(t){e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t));var r=Ol(t);if(r)return r;var n=av(t,1);if(n){if(!(1048576&n.flags))return _v(n,t);for(var i,a=0,o=n.types;a1&&n.declarations&&Gn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Mv(e){return Iv(A.ElementChildrenAttributeNameContainer,e)}function Ov(t,r){if(4&t.flags)return[Jr];if(128&t.flags){var n=Lv(t,r);return n?[gx(r,n)]:(Gn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+A.IntrinsicElements),e.emptyArray)}var i=rl(t),a=pl(i,1);return 0===a.length&&(a=pl(i,0)),0===a.length&&1048576&i.flags&&(a=mc(e.map(i.types,(function(e){return Ov(e,r)})))),a}function Lv(t,r){var n=Av(A.IntrinsicElements,r);if(!Eo(n)){var i=t.value,a=_l(n,e.escapeLeadingUnderscores(i));return a?_s(a):bl(n,Qe)||void 0}return Le}function Rv(t){e.Debug.assert(Cv(t.tagName));var r=_i(t);if(!r.resolvedJsxElementAttributesType){var n=Pv(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=_s(n)||Be:2&r.jsxFlags?r.resolvedJsxElementAttributesType=bl(Av(A.IntrinsicElements,t),Qe)||Be:r.resolvedJsxElementAttributesType=Be}return r.resolvedJsxElementAttributesType}function jv(e){var t=Av(A.ElementClass,e);if(!Eo(t))return t}function Bv(e){return Av(A.Element,e)}function Jv(e){var t=Bv(e);if(t)return xd([t,Ge])}function Kv(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return XC(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),PC(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=0)return d>=qx(n)&&(Wx(n)||ds)return!1;if(o||a>=c)return!0;for(var _=a;_=i&&r.length<=n}function Jh(e){return zh(e,0,!1)}function Kh(e){return zh(e,0,!1)||zh(e,1,!1)}function zh(e,t,r){if(524288&e.flags){var n=Rc(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function Uh(t,r,n,i){var a=wm(t.typeParameters,t,0,i),o=Hx(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Pm(s?df(r,s):r,t,(function(e,t){ng(a.inferences,e,t)})),n||Fm(r,t,(function(e,t){ng(a.inferences,e,t,128)})),Wl(t,ug(a),e.isInJSFile(r.declaration))}function Vh(t){if(!t)return st;var r=Yb(t);return e.isOptionalChainRoot(t.parent)?lm(r):e.isOptionalChain(t.parent)?dm(r):r}function qh(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=uv(t,e),a=wb(e.attributes,i,n,r);return ng(n.inferences,a,i),ug(n)}(t,r,i,a);if(167!==t.kind){var o=e.every(r.typeParameters,(function(e){return!!Zc(e)})),s=cv(t,o?8:0);if(s){var c=zl(r);if(Bm(c)){var l=lv(t);if(o||cv(t,8)===s){var u=jm(function(t,r){return void 0===r&&(r=0),t&&Im(e.map(t.inferences,Rm),t.signature,t.flags|r,t.compareTypes)}(l,1)),d=xf(s,u),_=Jh(d),f=_&&_.typeParameters?Ql(Hl(_,_.typeParameters)):d;ng(a.inferences,f,c,128)}var p=wm(r.typeParameters,r,a.flags),m=xf(s,l&&l.returnMapper);ng(p.inferences,m,c),a.returnMapper=e.some(p.inferences,Vb)?jm(function(t){var r=e.filter(t.inferences,Vb);return r.length?Im(e.map(r,Rm),t.signature,t.flags,t.compareTypes):void 0}(p)):void 0}}}var g=$x(r),y=g?Math.min(Vx(r)-1,n.length):n.length;if(g&&262144&g.flags){var v=e.find(a.inferences,(function(e){return e.typeParameter===g}));v&&(v.impliedArity=e.findIndex(n,Mh,y)<0?n.length-y:void 0)}var h=Bl(r);if(h&&Bm(h)){var x=Qh(t);ng(a.inferences,Vh(x),h)}for(var b=0;b=n-1&&Mh(d=t[n-1]))return Wh(234===d.kind?d.type:wb(d.expression,i,a,o));for(var s=[],c=[],l=[],u=r;ud&&(d=v)}}if(!u)return!0;for(var h=1/0,x=0,b=i;x0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Oh(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=227===r.kind&&(rn?Yb(r.expression):Ib(r.expression));n&&Zp(n)?e.forEach(pu(n),(function(e,t){var i,a=n.target.elementFlags[t],s=Yh(r,4&a?Zu(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,_=r;d<_.length;d++){var f=_[d],p=qx(f),m=Vx(f);pl&&(l=p),n.length1&&(y=q(f,Mn,h,b)),y||(y=q(f,Ln,h,b)),y)return y;if(y=function(t,r,n,i,a){return e.Debug.assert(r.length>0),bT(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n,i){var a=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===ue?n.length:ue),o=r[a],s=o.typeParameters;if(!s)return o;var c=Fh(t)?t.typeArguments:void 0,l=c?$l(o,function(e,t,r){for(var n=e.map(OT);n.length>t.length;)n.pop();for(;n.length3){var D,S=p[p.length-1];p.length>3&&(D=e.chainDiagnosticMessages(D,e.Diagnostics.The_last_overload_gave_the_following_error),D=e.chainDiagnosticMessages(D,e.Diagnostics.No_overload_matches_this_call));var T=Xh(t,v,S,Ln,0,!0,(function(){return D}));if(T)for(var C=0,E=T;C3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),V(S,k),Fn.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var N=[],A=0,P=Number.MAX_VALUE,F=0,w=0,I=function(r){var n=Xh(t,v,r,Ln,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,w+1,f.length,no(r))}));n?(n.length<=P&&(P=n.length,F=w),A=Math.max(A,n.length),N.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),w++},M=0,O=p;M1?N[F]:e.flatten(N);e.Debug.assert(L.length>0,"No errors reported for 3 or fewer overload signatures");var R=e.chainDiagnosticMessages(e.map(L,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),j=o([],e.flatMap(L,(function(e){return e.relatedInformation})),!0),K=void 0;if(e.every(L,(function(e){return e.start===L[0].start&&e.length===L[0].length&&e.file===L[0].file}))){var z=L[0];K={file:z.file,start:z.start,length:z.length,code:R.code,category:R.category,messageText:R,relatedInformation:j}}else K=e.createDiagnosticForNodeFromMessageChain(t,R,j);V(p[0],K),Fn.add(K)}else if(m)Fn.add(nx(t,[m],v));else if(g)$h(g,t.typeArguments,!0,s);else{var U=e.filter(r,(function(e){return Bh(e,c)}));0===U.length?Fn.add(function(t,r,n){var i=n.length;if(1===r.length){var a=wl((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,_):o1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(l){var u=Ml(l),d=!u.typeParameters;q([u],Ln,d)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}p=a,m=o,g=s}function q(r,n,a,o){if(void 0===o&&(o=!1),p=void 0,m=void 0,g=void 0,a){var s=r[0];if(e.some(c)||!jh(t,v,s,o))return;return Xh(t,v,s,n,0,!1,void 0)?void(p=[s]):s}for(var l=0;l=0&&Gn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Gv(t.expression);if(a===lt)return Ur;if(Eo(a=rl(a)))return Ih(t);if(Co(a))return t.typeArguments&&Gn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),wh(t);var o=pl(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||173!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Js(n.parent.symbol);if(!PT(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=OT(s);if(_x(n.parent.symbol,c))return!0}return 8&i&&Gn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,io(o)),16&i&&Gn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,io(o)),!1}return!0}(t,o[0]))return Ih(t);if(dx(o,(function(e){return!!(4&e.flags)})))return Gn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Ih(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,256)?(Gn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Ih(t)):ix(t,o,r,n,0)}var c=pl(a,0);if(c.length){var l=ix(t,c,r,n,0);return Y||(l.declaration&&!xx(l.declaration)&&zl(l)!==st&&Gn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Bl(l)===st&&Gn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return px(t.expression,a,1),Ih(t)}function dx(t,r){return e.isArray(t)?e.some(t,(function(e){return dx(e,r)})):1048576===t.compositeKind?e.some(t.compositeSignatures,r):r(t)}function _x(t,r){var n=Ns(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=hc(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l=n-1)return r===n-1?a:Zu(l_(a,Ye));for(var o=[],s=[],c=[],l=r;l0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&Yg(Kx(t,l),Lh).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Wx(e){if(B(e)){var t=_s(e.parameters[e.parameters.length-1]);return!Zp(t)||t.target.hasRestElement}return!1}function Hx(e){if(B(e)){var t=_s(e.parameters[e.parameters.length-1]);if(!Zp(t))return t;if(t.target.hasRestElement)return ld(t,t.target.fixedLength)}}function $x(e){var t=Hx(e);return!t||Ip(t)||Co(t)||0!=(131072&sl(t).flags)?void 0:t}function Gx(e){return Xx(e,ct)}function Xx(e,t){return e.parameters.length>0?Kx(e,0):t}function Qx(t,r){var n=di(t);if(n.type)r&&e.Debug.assertEqual(n.type,r,"Parameter symbol already has a cached type which differs from newly assigned type");else{var i=t.valueDeclaration;n.type=r||(i?Yo(i,!0):_s(t)),i&&79!==i.name.kind&&(n.type===Ue&&(n.type=Qo(i.name)),Yx(i.name,n.type))}}function Yx(t,r){for(var n=0,i=t.elements;n0&&(n=xd(u,2)):l=ct;var d=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?Yb(t.expression,r):We;if(e.pushIfUnique(n,ib(t,s,Le,a)),t.asteriskToken){var c=bS(s,a?19:17,t.expression);o=c&&c.nextType}else o=cv(t,void 0);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),_=d.yieldTypes,f=d.nextTypes;i=e.some(_)?xd(_,2):void 0,a=e.some(f)?Nd(f):void 0}else{var p=cb(t,r);if(!p)return 2&o?tb(t,ct):ct;if(0===p.length)return 2&o?tb(t,st):st;n=xd(p,2)}if(n||i||a){if(i&&Am(t,i,3),n&&Am(t,n,1),a&&Am(t,a,2),n&&qp(n)||i&&qp(i)||a&&qp(a)){var m=fv(t),g=m?m===Ml(t)?c?void 0:n:ov(zl(m),t,void 0):void 0;c?(i=Yp(i,g,0,s),n=Yp(n,g,1,s),a=Yp(a,g,2,s)):n=function(e,t,r){return e&&qp(e)&&(e=Qp(e,t?r?hD(t):t:void 0)),e}(n,g,s)}i&&(i=Cm(i)),n&&(n=Cm(n)),a&&(a=Cm(a))}return c?nb(i||ct,n||l,a||Hy(2,t)||Ue,s):s?Zx(n||l):n||l}function nb(e,t,r,n){var i=n?Xr:Qr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ue,t=i.resolveIterationType(t,void 0)||Ue,r=i.resolveIterationType(r,void 0)||Ue,a===Ft){var o=i.getGlobalIterableIteratorType(!1),s=o!==Ft?CS(o,i):void 0,c=s?s.returnType:Le,l=s?s.nextType:qe;return Mf(t,c)&&Mf(l,r)?o!==Ft?Qu(o,[e]):(i.getGlobalIterableIteratorType(!0),Ct):(i.getGlobalGeneratorType(!0),Ct)}return Qu(a,[e,t,r])}function ib(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?pS(i?19:17,r,n,a):r;return i?CD(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function ab(e,t,r){for(var n=0,i=0;i=t?r[i]:void 0;n|=void 0!==a?S.get(a)||32768:0}return n}function ob(t){var r=_i(t);if(void 0===r.isExhaustive){r.isExhaustive=0;var n=function(t){if(218===t.expression.kind){var r=Hg(t);if(!r)return!1;var n=Gc(Ib(t.expression.expression)),i=ab(0,0,r);return 3&n.flags?556800==(556800&i):!Xg(n,(function(e){return(Ag(e)&i)===i}))}var a=Ib(t.expression);if(!Hp(a))return!1;var o,s,c=Wg(t);return!(!c.length||e.some(c,Vp))&&(o=ty(a,R_),s=c,1048576&o.flags?!e.forEach(o.types,(function(t){return!e.contains(s,t)})):e.contains(s,o))}(t);0===r.isExhaustive&&(r.isExhaustive=n)}else 0===r.isExhaustive&&(r.isExhaustive=!1);return r.isExhaustive}function sb(e){return e.endFlowNode&&yy(e.endFlowNode)}function cb(t,r){var n=e.getFunctionFlags(t),i=[],a=sb(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var l=Ib(c,r&&-9&r);2&n&&(l=SD(xD(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 215:case 216:return!0;case 171:return 207===e.parent.kind;default:return!1}}(t))return!($&&i.length&&a)||xx(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,qe),i}function lb(t,r){g((function(){var n=e.getFunctionFlags(t),i=r&&jS(r,n);if((!i||!vb(i,16385))&&170!==t.kind&&!e.nodeIsMissing(t.body)&&238===t.body.kind&&sb(t)){var a=512&t.flags,o=e.getEffectiveReturnTypeNode(t)||t;if(i&&131072&i.flags)Gn(o,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!a)Gn(o,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&$&&!Mf(qe,i))Gn(o,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(U.noImplicitReturns){if(!i){if(!a)return;var s=zl(Ml(t));if(BS(t,s))return}Gn(o,e.Diagnostics.Not_all_code_paths_return_a_value)}}}))}function ub(t,r){if(e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t)),bT(t),e.isFunctionExpression(t)&&rS(t,t.name),r&&4&r&&Cf(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=pv(t);if(n&&Bm(zl(n))){var i=_i(t);if(i.contextFreeType)return i.contextFreeType;var a=rb(t,r),o=cc(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Ja(t.symbol,K,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=262144,i.contextFreeType=s}}return wt}return AC(t)||215!==t.kind||MC(t),function(t,r){var n=_i(t);if(!(1024&n.flags)){var i=pv(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(pl(_s(Da(t)),0));if(!a)return;if(Cf(t))if(i){var o=lv(t),s=void 0;if(r&&2&r){!function(t,r,n){for(var i=t.parameters.length-(B(t)?1:0),a=0;a1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!Wb(e,a))return a}}function $b(e){var t=Jh(e);if(t&&!t.typeParameters)return zl(t)}function Gb(t){var r=Xb(t);if(r)return r;if(134217728&t.flags&&Lr){var n=Lr[I(t)];if(n)return n}var i=on,a=Yb(t);return on!==i&&((Lr||(Lr=[]))[I(t)]=a,e.setNodeFlags(t,134217728|t.flags)),a}function Xb(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return H_(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||Cx(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return H_(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return Yb(t)}else if(n=e.isCallChain(r)?function(e){var t=Yb(e.expression),r=fm(t,e.expression),n=$b(t);return n&&_m(n,e,r!==t)}(r):$b(Gv(r.expression)))return n}function Qb(e){var t=_i(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Le;try{return t.contextFreeType=Yb(e,4)}finally{e.contextualType=r}}function Yb(t,n,i){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var a=u;u=t,C=0;var o=function(t,n,i){var a=t.kind;if(r)switch(a){case 228:case 215:case 216:r.throwIfCancellationRequested()}switch(a){case 79:return function(t,r){if(e.isThisInTypeQuery(t))return Ry(t);var n=_g(t);if(n===we)return Be;if(n===de){if(fh(t))return Gn(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Be;var i=e.getContainingFunction(t);return V<2&&(216===i.kind?Gn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,512)&&Gn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),_i(i).flags|=8192,_s(n)}(function(t){var r,n=t.parent;if(n){if(e.isPropertyAccessExpression(n)&&n.expression===t)return!1;if(e.isExportSpecifier(n)&&n.isTypeOnly)return!1;var i=null===(r=n.parent)||void 0===r?void 0:r.parent;if(i&&e.isExportDeclaration(i)&&i.isTypeOnly)return!1}return!0})(t)&&Fy(n,t);var a=Na(n),o=lT(a,t);ei(o)&&Xd(t,o)&&o.declarations&&ti(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(260===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){_i(s).flags|=16777216,_i(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(228===s.kind)for(i=e.getThisContainer(t,!1);308!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(_i(s).flags|=16777216,_i(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!function(t,r){if(!(V>=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||295===r.valueDeclaration.parent.kind)){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&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t}))}(t,n),a=wy(n);if(a){if(i){var o=!0;if(e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,258))&&u.parent===n){var s=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(s){var c=_i(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(_i(a).flags|=65536)}var u;e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,258))&&u.parent===n&&function(t,r){for(var n=t;214===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(221===n.parent.kind||222===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(_i(r.valueDeclaration).flags|=4194304),_i(r.valueDeclaration).flags|=524288}i&&(_i(r.valueDeclaration).flags|=262144)}}(t,n);var c=function(t,r){var n=t.valueDeclaration;if(n){if(e.isBindingElement(n)&&!n.initializer&&!n.dotDotDotToken&&n.parent.elements.length>=2){var i=n.parent.parent;if(257===i.kind&&2&e.getCombinedNodeFlags(n)||166===i.kind){var a=_i(i);if(!(268435456&a.flags)){a.flags|=268435456;var o=ko(i,0),s=o&&ty(o,Gc);if(a.flags&=-268435457,s&&1048576&s.flags&&(166!==i.kind||!Ty(t)))return 131072&(u=Dy(n.parent,s,s,void 0,r.flowNode)).flags?ct:Oo(n,u)}}}if(e.isParameter(n)&&!n.type&&!n.initializer&&!n.dotDotDotToken){var c=n.parent;if(c.parameters.length>=2&&kf(c)){var l=pv(c);if(l&&1===l.parameters.length&&B(l)){var u,d=nl(_s(l.parameters[0]));if(1048576&d.flags&&Qg(d,Zp)&&!Ty(t))return l_(u=Dy(c,d,d,void 0,r.flowNode),J_(c.parameters.indexOf(n)-(e.getThisParameter(c)?1:0)))}}}}return _s(t)}(a,t),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Gn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ro(n)),Be;if(fb(a))return 3&a.flags?Gn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ro(n)):Gn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ro(n)),Be}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=Pi(n)}if(!s)return c;c=Ay(c,t,r);for(var d=166===e.getRootDeclaration(s).kind,_=Sy(s),f=Sy(t),p=f!==_,m=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&jg(t.parent.parent),g=134217728&n.flags;f!==_&&(215===f.kind||216===f.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(f))&&(Ey(a)&&c!==nr||d&&!Ty(a));)f=Sy(f);var y=d||u||p||m||g||function(t,r){if(e.isBindingElement(r)){var n=e.findAncestor(t,e.isBindingElement);return n&&e.getRootDeclaration(n)===e.getRootDeclaration(r)}}(t,s)||c!==Re&&c!==nr&&(!$||0!=(16387&c.flags)||fg(t)||278===t.parent.kind)||232===t.parent.kind||257===s.kind&&s.exclamationToken||16777216&s.flags,v=y?d?function(e,t){if(ho(t.symbol,2)){var r=$&&166===t.kind&&t.initializer&&16777216&Ag(e)&&!(16777216&Ag(Yb(t.initializer)));return Do(),r?Pg(e,524288):e}return ls(t.symbol),e}(c,s):c:c===Re||c===nr?qe:cm(c),h=Dy(t,c,v,f);if(_y(t)||c!==Re&&c!==nr){if(!y&&!Zf(c)&&Zf(h))return Gn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ro(n)),c}else if(h===Re||h===nr)return Y&&(Gn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ro(n),io(h)),Gn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ro(n),io(h))),nS(h);return l?$p(h):h}(t,n);case 80:return function(t){!function(t){if(!e.getContainingClass(t))return XC(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(t.parent)){if(!e.isExpressionNode(t))return XC(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var r=e.isBinaryExpression(t.parent)&&101===t.parent.operatorToken.kind;sh(t)||r||XC(t,e.Diagnostics.Cannot_find_name_0,e.idText(t))}}(t);var r=sh(t);return r&&Th(r,void 0,!1),Le}(t);case 108:return Ry(t);case 106:return Jy(t);case 104:return Xe;case 14:case 10:return L_(B_(t.text));case 8:return ZC(t),L_(J_(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&V<7&&XC(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(t),L_(K_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return rt;case 95:return et;case 225:return Pb(t);case 13:return er;case 206:return gv(t,n,i);case 207:return function(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=new e.Map,i=0,a=t.properties;i0&&(s=w_(s,B(),t.symbol,m,u),o=[],a=e.createSymbolTable(),y=!1,v=!1,h=!1),Sv(A=sl(Yb(E.expression)))){var O=F_(A,u);if(i&&Nv(O,i,E),S=o.length,Eo(s))continue;s=w_(s,O,t.symbol,m,u)}else Gn(E,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Be;continue}e.Debug.assert(174===E.kind||175===E.kind),bT(E)}!N||8576&N.flags?a.set(k.escapedName,k):Mf(N,pt)&&(Mf(N,Ye)?v=!0:Mf(N,ot)?h=!0:y=!0,n&&(g=!0)),o.push(k)}if(l){var L=e.findAncestor(c.pattern.parent,(function(e){return 257===e.kind||223===e.kind||166===e.kind}));if(301!==e.findAncestor(t,(function(e){return e===L||301===e.kind})).kind)for(var R=0,j=Kc(c);R0&&(s=w_(s,B(),t.symbol,m,u),o=[],a=e.createSymbolTable(),y=!1,v=!1),ty(s,(function(e){return e===Ct?B():e}))):B();function B(){var r=[];y&&r.push(bv(t,S,o,Qe)),v&&r.push(bv(t,S,o,Ye)),h&&r.push(bv(t,S,o,ot));var i=Ja(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=131200|m,p&&(i.objectFlags|=4096),g&&(i.objectFlags|=512),n&&(i.pattern=t),i}}(t,n);case 208:return nh(t,n);case 163:return ih(t,n);case 209:return function(e,t){return 32&e.flags?function(e,t){var r=Yb(e.expression),n=fm(r,e.expression);return _m(Ph(e,th(n,e.expression),t),e,n!==r)}(e,t):Ph(e,Gv(e.expression),t)}(t,n);case 210:if(100===t.expression.kind)return function(t){if(function(t){if(q===e.ModuleKind.ES2015)return XC(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(t.typeArguments)return XC(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var r=t.arguments;if(q!==e.ModuleKind.ESNext&&q!==e.ModuleKind.NodeNext&&q!==e.ModuleKind.Node16&&(kC(r),r.length>1))return XC(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===r.length||r.length>2)return XC(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);n&&XC(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return tb(t,Le);for(var r=t.arguments[0],n=Ib(r),i=t.arguments.length>1?Ib(t.arguments[1]):void 0,a=2;a=4)break;default:null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),Fn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else if(!HC(n=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&173!==r.kind&&0==(2&e.getFunctionFlags(r))){var o=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,o)}Fn.add(a)}}Wy(t)&&Gn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}(t)}));var r=Yb(t.expression),n=xD(r,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==r||Eo(n)||3&r.flags||Xn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),n}(t);case 221:return function(t){var r=Yb(t.operand);if(r===lt)return lt;switch(t.operand.kind){case 8:switch(t.operator){case 40:return L_(J_(-t.operand.text));case 39:return L_(J_(+t.operand.text))}break;case 9:if(40===t.operator)return L_(K_({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return th(r,t.operand),yb(r,12288)&&Gn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(yb(r,2112)&&Gn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),io($p(r))),Ye):gb(r);case 53:dS(t.operand);var n=12582912&Ag(r);return 4194304===n?et:8388608===n?rt:at;case 45:case 46:return db(t.operand,th(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&mb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),gb(r)}return Be}(t);case 222:return function(t){var r=Yb(t.operand);return r===lt?lt:(db(t.operand,th(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&mb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),gb(r))}(t);case 223:return ie(t,n);case 224:return function(e,t){var r=dS(e.condition);return lS(e.condition,r,e.whenTrue),xd([Yb(e.whenTrue,t),Yb(e.whenFalse,t)],2)}(t,n);case 227:return function(e,t){return V<2&&DC(e,U.downlevelIteration?1536:1024),pS(33,Yb(e.expression,t),qe,e.expression)}(t,n);case 229:return We;case 226:return function(t){g((function(){8192&t.flags||$C(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Wy(t)&&Gn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));var r=e.getContainingFunction(t);if(!r)return Le;var n=e.getFunctionFlags(r);if(!(1&n))return Le;var i=0!=(2&n);t.asteriskToken&&(i&&V<99&&DC(t,26624),!i&&V<2&&U.downlevelIteration&&DC(t,256));var a=Ul(r),o=a&&RS(a,i),s=o&&o.yieldType||Le,c=o&&o.nextType||Le,l=i?CD(c)||Le:c,u=t.expression?Yb(t.expression):We,d=ib(t,u,l,i);if(a&&d&&Bf(d,s,t.expression||t,t.expression),t.asteriskToken)return gS(i?19:17,1,u,t.expression)||Le;if(a)return LS(2,a,i)||Le;var _=Hy(2,r);return _||(_=Le,g((function(){if(Y&&!e.expressionResultIsUnused(t)){var r=cv(t,void 0);r&&!Co(r)||Gn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),_}(t);case 234:return function(e){return e.isSpread?l_(e.type,Ye):e.type}(t);case 291:return function(t,r){if(function(t){t.expression&&e.isCommaSequence(t.expression)&&XC(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var n=Yb(t.expression,r);return t.dotDotDotToken&&n!==Le&&!Ip(n)&&Gn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Be}(t,n);case 281:case 282:return function(e,t){return bT(e),Bv(e)||Le}(t);case 285:return function(t){Kv(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(U)||!U.jsxFactory&&!r.pragmas.has("jsx")||U.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Gn(t,U.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),kv(t),Bv(t)||Le}(t);case 289:return function(t,r){return function(t,r){for(var n,i=t.attributes,a=cv(i,0),o=$?e.createSymbolTable():void 0,s=e.createSymbolTable(),c=Et,l=!1,u=!1,d=2048,_=Mv(wv(t)),f=0,p=i.properties;f0&&(c=w_(c,E(),i.symbol,d,!1),s=e.createSymbolTable()),Co(y=sl(Ib(m.expression,r)))&&(l=!0),Sv(y)?(c=w_(c,y,i.symbol,d,!1),o&&Nv(y,o,m)):(Gn(m.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),n=n?Nd([n,y]):y)}l||s.size>0&&(c=w_(c,E(),i.symbol,d,!1));var x=281===t.parent.kind?t.parent:void 0;if(x&&x.openingElement===t&&x.children.length>0){var b=kv(x,r);if(!l&&_&&""!==_){u&&Gn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var D=av(t.attributes,void 0),S=D&&Zy(D,_),T=ri(4,_);T.type=1===b.length?b[0]:S&&Xg(S,zp)?ad(b):Zu(xd(b)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0),e.setParent(T.valueDeclaration,i),T.valueDeclaration.symbol=T;var C=e.createSymbolTable();C.set(_,T),c=w_(c,Ja(i.symbol,C,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,d,!1)}}return l?Le:n&&c!==Et?Nd([n,c]):n||(c===Et?E():c);function E(){d|=re;var t=Ja(i.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=131200|d,t}}(t.parent,r)}(t,n);case 283:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Be}(t,n,i),s=zb(t,o,n);return bb(s)&&function(t,r){208===t.parent.kind&&t.parent.expression===t||209===t.parent.kind&&t.parent.expression===t||(79===t.kind||163===t.kind)&&FT(t)||183===t.parent.kind&&t.parent.exprName===t||278===t.parent.kind||Gn(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),U.isolatedModules&&(e.Debug.assert(!!(128&r.symbol.flags)),16777216&r.symbol.valueDeclaration.flags&&Gn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}(t,s),u=a,null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function Zb(t){CC(t),t.expression&&$C(t.expression,e.Diagnostics.Type_expected),vT(t.constraint),vT(t.default);var r=Bs(Da(t));$c(r),function(e){return Yc(e)!==Mt}(r)||Gn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,io(r));var n=Uc(r),i=Zc(r);n&&i&&jf(i,oc(xf(n,tf(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),bT(t),g((function(){return US(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}))}function eD(t){TC(t),iS(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(173===r.kind&&e.nodeIsPresent(r.body)||Gn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),173===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Gn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),(t.questionToken||kl(t))&&e.isBindingPattern(t.name)&&r.body&&Gn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Gn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),173!==r.kind&&177!==r.kind&&182!==r.kind||Gn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),216===r.kind&&Gn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),174!==r.kind&&175!==r.kind||Gn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Mf(sl(_s(t.symbol)),ir)||Gn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function tD(t,r,n){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||16777216&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===de.escapedName&&Hn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var r=e.getEffectiveReturnTypeNode(t);if(Y&&!r)switch(t.kind){case 177:Gn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Gn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var n=e.getFunctionFlags(t);if(1==(5&n)){var i=H_(r);if(i===st)Gn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var a=LS(0,i,0!=(2&n))||Le;jf(nb(a,LS(1,i,0!=(2&n))||a,LS(2,i,0!=(2&n))||Ue,!!(2&n)),i,r)}}else 2==(3&n)&&function(t,r){var n=H_(r);if(V>=2){if(Eo(n))return;var i=Vu(!0);if(i!==Ft&&!ps(n,i))return void Gn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,io(ED(n)||st))}else{if(function(t){ND(t&&e.getEntityNameFromTypeNode(t),!1)}(r),Eo(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Gn(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,io(n));var o=ia(a,111551,!0),s=o?_s(o):Be;if(Eo(s))return void(79===a.kind&&"Promise"===a.escapedText&&ms(n)===Vu(!1)?Gn(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):Gn(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)));var c=(!0,fr||(fr=ju("PromiseConstructorLike",0,true))||Ct);if(c===Ct)return void Gn(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));if(!jf(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;var l=a&&e.getFirstIdentifier(a),u=pi(t.locals,l.escapedText,111551);if(u)return void Gn(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}xD(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,r)}178!==t.kind&&320!==t.kind&&LD(t)}))}function nD(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=Yl(Da(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&Gg(H_(e.parameters[0].type),(function(t){var r=i.get(fd(t));r?r.declarations.push(e):i.set(fd(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o1)for(var r=0,n=t.declarations;r0}function DD(e){var t;if(16777216&e.flags){var r=Xu(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function SD(e){return 1048576&e.flags?ty(e,SD):DD(e)?e.aliasTypeArguments[0]:e}function TD(e){if(Co(e)||DD(e))return!1;if(r_(e)){var t=$c(e);if(t?3&t.flags||Qf(t)||Xg(t,bD):vb(e,8650752))return!0}return!1}function CD(t,r,n,i){var a=ED(t,r,n,i);return a&&function(t){if(TD(t)){var r=function(e){var t=Xu(!0);if(t)return yu(t,[SD(e)])}(t);if(r)return r}return e.Debug.assert(void 0===hD(t),"type provided should not be a non-generic 'promise'-like."),t}(a)}function ED(t,r,n,i){if(Co(t))return t;if(DD(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){if(Pn.lastIndexOf(t.id)>=0)return void(r&&Gn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));var o=r?function(e){return ED(e,r,n,i)}:ED;Pn.push(t.id);var s=ty(t,o);return Pn.pop(),a.awaitedTypeOfType=s}if(TD(t))return a.awaitedTypeOfType=t;var c={value:void 0},l=hD(t,void 0,c);if(l){if(t.id===l.id||Pn.lastIndexOf(l.id)>=0)return void(r&&Gn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Pn.push(t.id);var u=ED(l,r,n,i);if(Pn.pop(),!u)return;return a.awaitedTypeOfType=u}if(!bD(t))return a.awaitedTypeOfType=t;if(r){e.Debug.assertIsDefined(n);var d=void 0;c.value&&(d=e.chainDiagnosticMessages(d,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,io(t),io(c.value))),d=e.chainDiagnosticMessages(d,n,i),Fn.add(e.createDiagnosticForNodeFromMessageChain(r,d))}}function kD(t){var r=hx(t);Sx(r,t);var n=zl(r);if(!(1&n.flags)){var i,a;switch(t.parent.kind){case 260:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=xd([_s(Da(t.parent)),st]);break;case 169:case 166:i=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,a=st;break;case 171:case 174:case 175:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=xd([Yu(OT(t.parent)),st]);break;default:return e.Debug.fail()}jf(n,a,t,i)}}function ND(t,r){if(t){var n=e.getFirstIdentifier(t),i=2097152|(79===t.kind?788968:1920),a=vi(n,n.escapedText,i,void 0,void 0,!0);if(a&&2097152&a.flags)if(!Aa(a)||YT(Gi(a))||Zi(a)){if(r&&U.isolatedModules&&e.getEmitModuleKind(U)>=e.ModuleKind.ES2015&&!Aa(a)&&!e.some(a.declarations,e.isTypeOnlyImportOrExportDeclaration)){var o=Gn(t,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),s=e.find(a.declarations||e.emptyArray,Fi);s&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_was_imported_here,e.idText(n)))}}else ta(a)}}function AD(t){var r=PD(t);r&&e.isEntityName(r)&&ND(r,!0)}function PD(e){if(e)switch(e.kind){case 190:case 189:return FD(e.types);case 191:return FD([e.trueType,e.falseType]);case 193:case 199:return PD(e.type);case 180:return e.typeName}}function FD(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)||q>=e.ModuleKind.Node16&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(QD(t,r,"require")||QD(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=So(t);308===n.kind&&e.isExternalOrCommonJsModule(n)&&Hn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(t,r){if(r&&!(V>=4)&&QD(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=So(t);308===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&Hn("noEmit",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))}}(t,r),function(e,t){V<=8&&(QD(e,t,"WeakMap")||QD(e,t,"WeakSet"))&&kn.push(e)}(t,r),function(e,t){t&&V>=2&&V<=8&&QD(e,t,"Reflect")&&Nn.push(e)}(t,r),e.isClassLike(t)?(US(r,e.Diagnostics.Class_name_cannot_be_0),16777216&t.flags||function(t){V>=1&&"Object"===t.escapedText&&(q1&&e.some(_.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!oS(r,t)}))&&Gn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var m=nS(Yo(t));Eo(f)||Eo(m)||Af(f,m)||67108864&_.flags||aS(_.valueDeclaration,f,t,m),e.hasOnlyExpressionInitializer(t)&&t.initializer&&Bf(Ib(t.initializer),m,t,t.initializer,void 0),_.valueDeclaration&&!oS(t,_.valueDeclaration)&&Gn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}169!==t.kind&&168!==t.kind&&(yD(t),257!==t.kind&&205!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(257!==t.kind||t.initializer)){var r=Da(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=vi(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&Vv(n)){var i=e.getAncestor(n.valueDeclaration,258),a=240===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(238===a.kind&&e.isFunctionLike(a.parent)||265===a.kind||264===a.kind||308===a.kind)){var o=ro(n);Gn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),rS(t,t.name))}}}}function aS(t,r,n,i){var a=e.getNameOfDeclaration(n),o=169===n.kind||168===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Gn(a,o,s,io(r),io(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function oS(t,r){return 166===t.kind&&257===r.kind||257===t.kind&&166===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,888)===e.getSelectedEffectiveModifierFlags(r,888)}function sS(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){if(246!==t.parent.parent.kind&&247!==t.parent.parent.kind)if(16777216&t.flags)zC(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return XC(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return XC(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(240!==t.parent.parent.kind||!t.type||t.initializer||16777216&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return XC(t.exclamationToken,r)}!(q=1&&sS(t.declarations[0])}function fS(e){return pS(e.awaitModifier?15:13,Gv(e.expression),qe,e.expression)}function pS(e,t,r,n){return Co(t)?t:mS(e,t,r,n,!0)||Le}function mS(t,r,n,i,a){var o=0!=(2&t);if(r!==ct){var s=V>=2,c=!s&&U.downlevelIteration,l=U.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=bS(r,t,s?i:void 0);if(a&&u){var d=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&jf(n,u.nextType,i,d)}if(u||s)return l?Lg(u&&u.yieldType):u&&u.yieldType}var _=r,f=!1,p=!1;if(4&t){if(1048576&_.flags){var m=r.types,g=e.filter(m,(function(e){return!(402653316&e.flags)}));g!==m&&(_=xd(g,2))}else 402653316&_.flags&&(_=ct);if((p=_!==r)&&(V<1&&i&&(Gn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),f=!0),131072&_.flags))return l?Lg(Qe):Qe}if(!jp(_)){if(i&&!f){var y=function(n,i){var a;return i?n?[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,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:gS(t,0,r,void 0)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!p,c),v=y[0];Yn(i,y[1]&&!!vD(_),v,io(_))}return p?l?Lg(Qe):Qe:void 0}var h=bl(_,Ye);return p&&h?402653316&h.flags&&!U.noUncheckedIndexedAccess?Qe:xd(l?[h,Qe,qe]:[h,Qe],2):128&t?Lg(h):h}NS(i,r,o)}function gS(e,t,r,n){if(!Co(r)){var i=bS(r,e,n);return i&&i[j(t)]}}function yS(e,t,r){if(void 0===e&&(e=ct),void 0===t&&(t=ct),void 0===r&&(r=Ue),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=cu([e,t,r]),i=qr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},qr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function vS(t){for(var r,n,i,a=0,o=t;a1)for(var f=0,p=i;fi)return!1;for(var u=0;u1)return $C(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return $C(o,e.Diagnostics.implements_clause_already_seen);n=!0}FC(o)}})(t)||NC(t.typeParameters,r)}(t),ID(t),rS(t,t.name),VS(e.getEffectiveTypeParameterDeclarations(t)),yD(t);var r=Da(t),n=Js(r),i=oc(n),a=_s(r);qS(r),gD(r),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a>o;case 49:return a>>>o;case 47:return a<1&&!yT(n))for(var o=0,s=n;o1&&t.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))}))}function vT(t){if(t){var n=u;u=t,C=0,function(t){e.forEach(t.jsDoc,(function(r){var n=r.comment,i=r.tags;hT(n),e.forEach(i,(function(r){hT(r.comment),e.isInJSFile(t)&&vT(r)}))}));var n=t.kind;if(r)switch(n){case 264:case 260:case 261:case 259:r.throwIfCancellationRequested()}switch(n>=240&&n<=256&&t.flowNode&&!yy(t.flowNode)&&Qn(!1===U.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),n){case 165:return Zb(t);case 166:return eD(t);case 169:return aD(t);case 168:return function(t){return e.isPrivateIdentifier(t.name)&&Gn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),aD(t)}(t);case 182:case 181:case 176:case 177:case 178:return rD(t);case 171:case 170:return function(t){JC(t)||IC(t.name),e.isMethodDeclaration(t)&&t.asteriskToken&&e.isIdentifier(t.name)&&"constructor"===e.idText(t.name)&&Gn(t.name,e.Diagnostics.Class_constructor_may_not_be_a_generator),OD(t),e.hasSyntacticModifier(t,256)&&171===t.kind&&t.body&&Gn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Gn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),oD(t)}(t);case 172:return function(t){TC(t),e.forEachChild(t,vT)}(t);case 173:return function(t){rD(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return GC(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=t.type||e.getEffectiveReturnTypeNode(t);r&&XC(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),vT(t.body);var r=Da(t),n=e.getDeclarationOfKind(r,t.kind);function i(t){return!!e.isPrivateIdentifierClassElementDeclaration(t)||169===t.kind&&!e.isStatic(t)&&!!t.initializer}t===n&&gD(r),e.nodeIsMissing(t.body)||g((function(){var r=t.parent;if(e.getClassExtendsHeritageElement(r)){Iy(t.parent,r);var n=Oy(r),a=My(t.body);if(a){if(n&&Gn(a,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==e.getEmitScriptTarget(U)||!W)&&(e.some(t.parent.members,i)||e.some(t.parameters,(function(t){return e.hasSyntacticModifier(t,16476)}))))if(function(t,r){var n=e.walkUpParenthesizedExpressions(t.parent);return e.isExpressionStatement(n)&&n.parent===r}(a,t.body)){for(var o=void 0,s=0,c=t.body.statements;s=0)B(n)&&i.parameterIndex===n.parameters.length-1?Gn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&jf(i.type,_s(n.parameters[i.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(a){for(var o=!1,s=0,c=r.parameters;s1){var n=di(r);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var i=Bs(r),a=e.getDeclarationsOfKind(r,165);if(!WS(a,[i],(function(e){return[e]})))for(var o=ro(r),s=0,c=a;s0),n.length>1&&Gn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=MD(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=MD(a.expression);o&&i.escapedText!==o.escapedText&&Gn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Gn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 332:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Gn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 348:case 341:case 342:return function(t){t.typeExpression||Gn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&US(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),vT(t.typeExpression),VS(e.getEffectiveTypeParameterDeclarations(t))}(t);case 347:return function(e){vT(e.constraint);for(var t=0,r=e.typeParameters;t1){var n=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Gn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(t){if(263!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Gn(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)}))}(t);case 264:return function(t){t.body&&(vT(t.body),e.isGlobalScopeAugmentation(t)||LD(t)),g((function(){var r=e.isGlobalScopeAugmentation(t),n=16777216&t.flags;r&&!n&&Gn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t),a=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(!_T(t,a)){TC(t)||n||10!==t.name.kind||XC(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&rS(t,t.name),yD(t);var o,s,c,l,u=Da(t);if(512&u.flags&&!n&&u.declarations&&u.declarations.length>1&&O(t,e.shouldPreserveConstEnums(U))){var d=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||16777216&t.flags||XC(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 275:return function(t){if(!_T(t,e.isInJSFile(t)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!TC(t)&&e.hasSyntacticModifiers(t)&&$C(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===V&&DC(t,4194304),function(t){var r;t.isTypeOnly&&(276===(null===(r=t.exportClause)||void 0===r?void 0:r.kind)?eE(t.exportClause):XC(t,e.Diagnostics.Only_named_exports_may_use_export_type))}(t),!t.moduleSpecifier||oT(t))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,mT);var r=265===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&265===t.parent.kind&&!t.moduleSpecifier&&16777216&t.flags;308===t.parent.kind||r||n||Gn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=oa(t,t.moduleSpecifier);i&&fa(i)?Gn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ro(i)):t.exportClause&&sT(t.exportClause),q!==e.ModuleKind.System&&(q=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?XC(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):q===e.ModuleKind.System&&XC(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Gn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Gn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 239:case 256:return void YC(t);case 279:!function(e){ID(e)}(t)}}(t),u=n}}function hT(t){e.isArray(t)&&e.forEach(t,(function(t){e.isJSDocLinkLike(t)&&vT(t)}))}function xT(t){e.isInJSFile(t)||XC(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function bT(t){var r=_i(e.getSourceFileOfNode(t));1&r.flags||(r.deferredNodes||(r.deferredNodes=new e.Set),r.deferredNodes.add(t))}function DT(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var r=u;switch(u=t,C=0,t.kind){case 210:case 211:case 212:case 167:case 283:wh(t);break;case 215:case 216:case 171:case 170:!function(t){e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Ul(t);if(lb(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||zl(Ml(t)),238===t.body.kind)vT(t.body);else{var i=Yb(t.body),a=n&&jS(n,r);a&&Bf(2==(3&r)?xD(i,!1,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,a,t.body,t.body)}}(t);break;case 174:case 175:cD(t);break;case 228:!function(t){e.forEach(t.members,vT),LD(t)}(t);break;case 165:!function(t){if(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)){var r=Bs(Da(t)),n=hp(r);if(n){var i=Da(t.parent);if(!e.isTypeAliasDeclaration(t.parent)||48&e.getObjectFlags(Js(i))){if(32768===n||65536===n){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:fd(Js(i)),id:fd(r)});var a=yp(i,r,65536===n?Jt:Bt),o=yp(i,r,65536===n?Bt:Jt),s=r;d=r,jf(a,o,t,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),d=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}}else Gn(t,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(t);break;case 282:!function(e){Kv(e)}(t);break;case 281:!function(e){Kv(e.openingElement),Cv(e.closingElement.tagName)?Pv(e.closingElement):Yb(e.closingElement.tagName),kv(e)}(t)}u=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function ST(t,r){if(r)return!1;switch(t){case 0:return!!U.noUnusedLocals;case 1:return!!U.noUnusedParameters;default:return e.Debug.assertNever(t)}}function TT(t){return en.get(t.path)||e.emptyArray}function CT(n,i){try{return r=i,function(r){if(r){ET();var n=Fn.getGlobalDiagnostics(),i=n.length;kT(r);var a=Fn.getDiagnostics(r.fileName),o=Fn.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),kT),Fn.getDiagnostics()}(n)}finally{r=void 0}}function ET(){for(var e=0,t=m;e1||1===r.length&&r[0].declaration!==t}return!1}function tC(t){return!(!$||Al(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function rC(t){return $&&Al(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function nC(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=Da(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(ya(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function iC(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=Da(r);return n&&Kc(_s(n))||e.emptyArray}function aC(e){var t,r=e.id||0;return r<0||r>=gn.length?0:(null===(t=gn[r])||void 0===t?void 0:t.flags)||0}function oC(e){return tT(e.parent),_i(e).enumMemberValue}function sC(e){switch(e.kind){case 302:case 208:case 209:return!0}return!1}function cC(t){if(302===t.kind)return oC(t);var r=_i(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return oC(n)}}function lC(e){return!!(524288&e.flags)&&pl(e,0).length>0}function uC(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=ia(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=ia(a,111551,!0,!0,r),l=c&&2097152&c.flags?Gi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=ia(a,788968,!0,!1,r);if(l&&l===u){var d=Wu(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var _=_s(l);if(_&&Ds(_))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var f=Js(u);return Eo(f)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&f.flags?e.TypeReferenceSerializationKind.ObjectType:hb(f,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:hb(f,528)?e.TypeReferenceSerializationKind.BooleanType:hb(f,296)?e.TypeReferenceSerializationKind.NumberLikeType:hb(f,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:hb(f,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Zp(f)?e.TypeReferenceSerializationKind.ArrayLikeType:hb(f,12288)?e.TypeReferenceSerializationKind.ESSymbolType:lC(f)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Ip(f)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function dC(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(131);var s=Da(o),c=!s||133120&s.flags?Be:Gp(_s(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=cm(c)),oe.typeToTypeNode(c,r,1024|n,i)}function _C(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(131);var o=Ml(a);return oe.typeToTypeNode(zl(o),r,1024|n,i)}function fC(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(131);var o=Cm(RT(a));return oe.typeToTypeNode(o,r,1024|n,i)}function pC(t){return se.has(e.escapeLeadingUnderscores(t))}function mC(t,r){var n=_i(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=So(a))}return vi(i,t.escapedText,3257279,void 0,void 0,!0)}function gC(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=mC(r);if(n)return Na(n).valueDeclaration}}}function yC(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&j_(_s(Da(t)))}function vC(t,r){return function(t,r,n){var i=1024&t.flags?oe.symbolToExpression(t.symbol,111551,r,void 0,n):t===rt?e.factory.createTrue():t===et&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(_s(Da(t)),t,r)}function hC(t){return t?(Vn(t),e.getSourceFileOfNode(t).localJsxFactory||jr):jr}function xC(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,V),r.localJsxFragmentFactory}}if(U.jsxFragmentFactory)return e.parseIsolatedEntityName(U.jsxFragmentFactory,V)}function bC(t){var r=264===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=sa(r,r,void 0);if(n)return e.getDeclarationOfKind(n,308)}function DC(t,r){if((n&r)!==r&&U.importHelpers){var a=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(a,U)&&!(16777216&t.flags)){var o=(d=a,_=t,i||(i=ca(d,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,_)||we),i);if(o!==we)for(var s=r&~n,c=1;c<=4194304;c<<=1)if(s&c){var l=SC(c),u=pi(o.exports,e.escapeLeadingUnderscores(l),111551);u?524288&c?e.some(Rl(u),(function(e){return Vx(e)>3}))||Gn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,4):1048576&c?e.some(Rl(u),(function(e){return Vx(e)>4}))||Gn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,5):1024&c&&(e.some(Rl(u),(function(e){return Vx(e)>2}))||Gn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,3)):Gn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l)}n|=r}}var d,_}function SC(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"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function TC(t){return function(t){if(e.canHaveIllegalDecorators(t)&&e.some(t.illegalDecorators))return $C(t,e.Diagnostics.Decorators_are_not_valid_here);if(!e.canHaveDecorators(t)||!e.hasDecorators(t))return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 171!==t.kind||e.nodeIsPresent(t.body)?$C(t,e.Diagnostics.Decorators_are_not_valid_here):$C(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(174===t.kind||175===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(e.hasDecorators(r.firstAccessor)&&t===r.secondAccessor)return $C(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||CC(t)}function CC(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return!1;case 172:case 299:case 300:case 267:case 181:case 279:return!0;default:if(265===t.parent.kind||308===t.parent.kind)return!1;switch(t.kind){case 259:return EC(t,132);case 260:case 182:return EC(t,126);case 228:case 261:case 240:case 262:return!0;case 263:return EC(t,85);default:e.Debug.assertNever(t)}}}(t)?$C(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,l=t.modifiers;c".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function AC(t){var r=e.getSourceFileOfNode(t);return TC(t)||NC(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&XC(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line&&XC(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&function(t){if(V>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(n)){e.forEach(n,(function(t){e.addRelatedInfo(Gn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var i=n.map((function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,o([Gn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i,!1)),!0}}}var a;return!1}(t)}function PC(t,r){return kC(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return GC(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function FC(t){var r=t.types;if(kC(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return GC(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,wC)}function wC(t){return e.isExpressionWithTypeArguments(t)&&e.isImportKeyword(t.expression)&&t.typeArguments?XC(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):PC(t,t.typeArguments)}function IC(t){if(164!==t.kind)return!1;var r=t;return 223===r.expression.kind&&27===r.expression.operatorToken.kind&&XC(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function MC(t){if(t.asteriskToken){if(e.Debug.assert(259===t.kind||215===t.kind||171===t.kind),16777216&t.flags)return XC(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return XC(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function OC(e,t){return!!e&&XC(e,t)}function LC(e,t){return!!e&&XC(e,t)}function RC(t){if(YC(t))return!0;if(247===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t)){if(!HC(r))switch(e.isEffectiveExternalModule(r,U)||Fn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),q){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(r.impliedNodeFormat===e.ModuleKind.CommonJS){Fn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(V>=4)break;default:Fn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!HC(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&173!==i.kind){e.Debug.assert(0==(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return Fn.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return XC(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(258===t.initializer.kind){var o=t.initializer;if(!qC(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return n=246===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,$C(o.declarations[1],n);var c=s[0];if(c.initializer){n=246===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 XC(c.name,n)}if(c.type)return XC(c,n=246===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 jC(t){if(t.parameters.length===(174===t.kind?1:2))return e.getThisParameter(t)}function BC(t,r){if(function(t){return e.isDynamicName(t)&&!Qs(t)}(t))return XC(t,r)}function JC(t){if(AC(t))return!0;if(171===t.kind){if(207===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||132!==e.first(t.modifiers).kind))return $C(t,e.Diagnostics.Modifiers_cannot_appear_here);if(OC(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(LC(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return GC(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(MC(t))return!0}if(e.isClassLike(t.parent)){if(V<2&&e.isPrivateIdentifier(t.name))return XC(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&t.flags)return BC(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(171===t.kind&&!t.body)return BC(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(261===t.parent.kind)return BC(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(184===t.parent.kind)return BC(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 KC(t){return e.isStringOrNumericLiteralLike(t)||221===t.kind&&40===t.operator&&8===t.operand.kind}function zC(t){var r,n=t.initializer;if(n){var i=!(KC(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&KC(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Ib(t).flags)}(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||221===r.kind&&40===r.operator&&9===r.operand.kind));if(!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))||t.type)return XC(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return XC(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}}function UC(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!HC(e.getSourceFileOfNode(a))&&(Hn("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r0}function $C(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!HC(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Fn.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function GC(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!HC(c)&&(Fn.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function XC(t,r,n,i,a){return!HC(e.getSourceFileOfNode(t))&&(Fn.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function QC(t){return 261!==t.kind&&262!==t.kind&&269!==t.kind&&268!==t.kind&&275!==t.kind&&274!==t.kind&&267!==t.kind&&!e.hasSyntacticModifier(t,1027)&&$C(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function YC(t){if(16777216&t.flags){if(!_i(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return _i(t).hasReportedStatementInAmbientContext=$C(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(238===t.parent.kind||265===t.parent.kind||308===t.parent.kind){var r=_i(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=$C(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ZC(t){if(32&t.numericLiteralFlags){var r=void 0;if(V>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,198)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,302)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return XC(n?t.parent:t,r,i)}}return function(t){var r=-1!==e.getTextOfNode(t).indexOf("."),n=16&t.numericLiteralFlags;r||n||+t.text<=Math.pow(2,53)-1||Xn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(t),!1}function eE(t){return!!e.forEach(t.elements,(function(t){if(t.isTypeOnly)return $C(t,273===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function tE(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Tg(r,t);if(a)return a;var o=Kc(t);if(o){var s=bg(o,r);if(s)return _p(r,e.map(s,(function(e){return[function(){return _s(e)},e.escapedName]})),n,void 0,i)}}}},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"}(A||(A={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=J}(_||(_={})),function(e){var t;function r(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||d)(o):o,e.Debug.assertNode(a,n),a):void 0}function n(t,r,n,a,o){if(void 0===t||void 0===r)return t;var s,c=t.length;(void 0===a||a<0)&&(a=0),(void 0===o||o>c-a)&&(o=c-a);var l=-1,u=-1;a>0||o0||a=2&&(o=function(t,r){for(var n,i=0;io-n)&&(a=o-n),i(e,t,r,n,a)},e.visitLexicalEnvironment=a,e.visitParameterList=o,e.visitFunctionBody=c,e.visitIterationBody=l,e.visitEachChild=function(e,t,i,a,o,s){if(void 0===a&&(a=n),void 0===s&&(s=r),void 0!==e){var c=u[e.kind];return void 0===c?e:c(e,t,i,a,s,o)}};var u=((t={})[79]=function(t,r,n,i,a,o){return n.factory.updateIdentifier(t,i(t.typeArguments,r,e.isTypeNodeOrTypeParameterDeclaration))},t[163]=function(t,r,n,i,a,o){return n.factory.updateQualifiedName(t,a(t.left,r,e.isEntityName),a(t.right,r,e.isIdentifier))},t[164]=function(t,r,n,i,a,o){return n.factory.updateComputedPropertyName(t,a(t.expression,r,e.isExpression))},t[165]=function(t,r,n,i,a,o){return n.factory.updateTypeParameterDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),a(t.constraint,r,e.isTypeNode),a(t.default,r,e.isTypeNode))},t[166]=function(t,r,n,i,a,o){return n.factory.updateParameterDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,r,e.isBindingName),a(t.questionToken,o,e.isQuestionToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[167]=function(t,r,n,i,a,o){return n.factory.updateDecorator(t,a(t.expression,r,e.isExpression))},t[168]=function(t,r,n,i,a,o){return n.factory.updatePropertySignature(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),a(t.questionToken,o,e.isToken),a(t.type,r,e.isTypeNode))},t[169]=function(t,r,n,i,a,o){var s;return n.factory.updatePropertyDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),a(null!==(s=t.questionToken)&&void 0!==s?s:t.exclamationToken,o,e.isQuestionOrExclamationToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[170]=function(t,r,n,i,a,o){return n.factory.updateMethodSignature(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isPropertyName),a(t.questionToken,o,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[171]=function(t,r,n,i,a,s){return n.factory.updateMethodDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isPropertyName),a(t.questionToken,s,e.isQuestionToken),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[173]=function(t,r,n,i,a,s){return n.factory.updateConstructorDeclaration(t,i(t.modifiers,r,e.isModifier),o(t.parameters,r,n,i),c(t.body,r,n,a))},t[174]=function(t,r,n,i,a,s){return n.factory.updateGetAccessorDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[175]=function(t,r,n,i,a,s){return n.factory.updateSetAccessorDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isPropertyName),o(t.parameters,r,n,i),c(t.body,r,n,a))},t[172]=function(e,t,r,n,i,a){return r.startLexicalEnvironment(),r.suspendLexicalEnvironment(),r.factory.updateClassStaticBlockDeclaration(e,c(e.body,t,r,i))},t[176]=function(t,r,n,i,a,o){return n.factory.updateCallSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[177]=function(t,r,n,i,a,o){return n.factory.updateConstructSignature(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[178]=function(t,r,n,i,a,o){return n.factory.updateIndexSignature(t,i(t.modifiers,r,e.isModifier),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[179]=function(t,r,n,i,a,o){return n.factory.updateTypePredicateNode(t,a(t.assertsModifier,r,e.isAssertsKeyword),a(t.parameterName,r,e.isIdentifierOrThisTypeNode),a(t.type,r,e.isTypeNode))},t[180]=function(t,r,n,i,a,o){return n.factory.updateTypeReferenceNode(t,a(t.typeName,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode))},t[181]=function(t,r,n,i,a,o){return n.factory.updateFunctionTypeNode(t,i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[182]=function(t,r,n,i,a,o){return n.factory.updateConstructorTypeNode(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.parameters,r,e.isParameterDeclaration),a(t.type,r,e.isTypeNode))},t[183]=function(t,r,n,i,a,o){return n.factory.updateTypeQueryNode(t,a(t.exprName,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode))},t[184]=function(t,r,n,i,a,o){return n.factory.updateTypeLiteralNode(t,i(t.members,r,e.isTypeElement))},t[185]=function(t,r,n,i,a,o){return n.factory.updateArrayTypeNode(t,a(t.elementType,r,e.isTypeNode))},t[186]=function(t,r,n,i,a,o){return n.factory.updateTupleTypeNode(t,i(t.elements,r,e.isTypeNode))},t[187]=function(t,r,n,i,a,o){return n.factory.updateOptionalTypeNode(t,a(t.type,r,e.isTypeNode))},t[188]=function(t,r,n,i,a,o){return n.factory.updateRestTypeNode(t,a(t.type,r,e.isTypeNode))},t[189]=function(t,r,n,i,a,o){return n.factory.updateUnionTypeNode(t,i(t.types,r,e.isTypeNode))},t[190]=function(t,r,n,i,a,o){return n.factory.updateIntersectionTypeNode(t,i(t.types,r,e.isTypeNode))},t[191]=function(t,r,n,i,a,o){return n.factory.updateConditionalTypeNode(t,a(t.checkType,r,e.isTypeNode),a(t.extendsType,r,e.isTypeNode),a(t.trueType,r,e.isTypeNode),a(t.falseType,r,e.isTypeNode))},t[192]=function(t,r,n,i,a,o){return n.factory.updateInferTypeNode(t,a(t.typeParameter,r,e.isTypeParameterDeclaration))},t[202]=function(t,r,n,i,a,o){return n.factory.updateImportTypeNode(t,a(t.argument,r,e.isTypeNode),a(t.assertions,r,e.isImportTypeAssertionContainer),a(t.qualifier,r,e.isEntityName),i(t.typeArguments,r,e.isTypeNode),t.isTypeOf)},t[298]=function(t,r,n,i,a,o){return n.factory.updateImportTypeAssertionContainer(t,a(t.assertClause,r,e.isAssertClause),t.multiLine)},t[199]=function(t,r,n,i,a,o){return n.factory.updateNamedTupleMember(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,r,e.isIdentifier),a(t.questionToken,o,e.isQuestionToken),a(t.type,r,e.isTypeNode))},t[193]=function(t,r,n,i,a,o){return n.factory.updateParenthesizedType(t,a(t.type,r,e.isTypeNode))},t[195]=function(t,r,n,i,a,o){return n.factory.updateTypeOperatorNode(t,a(t.type,r,e.isTypeNode))},t[196]=function(t,r,n,i,a,o){return n.factory.updateIndexedAccessTypeNode(t,a(t.objectType,r,e.isTypeNode),a(t.indexType,r,e.isTypeNode))},t[197]=function(t,r,n,i,a,o){return n.factory.updateMappedTypeNode(t,a(t.readonlyToken,o,e.isReadonlyKeywordOrPlusOrMinusToken),a(t.typeParameter,r,e.isTypeParameterDeclaration),a(t.nameType,r,e.isTypeNode),a(t.questionToken,o,e.isQuestionOrPlusOrMinusToken),a(t.type,r,e.isTypeNode),i(t.members,r,e.isTypeElement))},t[198]=function(t,r,n,i,a,o){return n.factory.updateLiteralTypeNode(t,a(t.literal,r,e.isExpression))},t[200]=function(t,r,n,i,a,o){return n.factory.updateTemplateLiteralType(t,a(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateLiteralTypeSpan))},t[201]=function(t,r,n,i,a,o){return n.factory.updateTemplateLiteralTypeSpan(t,a(t.type,r,e.isTypeNode),a(t.literal,r,e.isTemplateMiddleOrTemplateTail))},t[203]=function(t,r,n,i,a,o){return n.factory.updateObjectBindingPattern(t,i(t.elements,r,e.isBindingElement))},t[204]=function(t,r,n,i,a,o){return n.factory.updateArrayBindingPattern(t,i(t.elements,r,e.isArrayBindingElement))},t[205]=function(t,r,n,i,a,o){return n.factory.updateBindingElement(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.propertyName,r,e.isPropertyName),a(t.name,r,e.isBindingName),a(t.initializer,r,e.isExpression))},t[206]=function(t,r,n,i,a,o){return n.factory.updateArrayLiteralExpression(t,i(t.elements,r,e.isExpression))},t[207]=function(t,r,n,i,a,o){return n.factory.updateObjectLiteralExpression(t,i(t.properties,r,e.isObjectLiteralElementLike))},t[208]=function(t,r,n,i,a,o){return e.isPropertyAccessChain(t)?n.factory.updatePropertyAccessChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.name,r,e.isMemberName)):n.factory.updatePropertyAccessExpression(t,a(t.expression,r,e.isExpression),a(t.name,r,e.isMemberName))},t[209]=function(t,r,n,i,a,o){return e.isElementAccessChain(t)?n.factory.updateElementAccessChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.argumentExpression,r,e.isExpression)):n.factory.updateElementAccessExpression(t,a(t.expression,r,e.isExpression),a(t.argumentExpression,r,e.isExpression))},t[210]=function(t,r,n,i,a,o){return e.isCallChain(t)?n.factory.updateCallChain(t,a(t.expression,r,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression)):n.factory.updateCallExpression(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression))},t[211]=function(t,r,n,i,a,o){return n.factory.updateNewExpression(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),i(t.arguments,r,e.isExpression))},t[212]=function(t,r,n,i,a,o){return n.factory.updateTaggedTemplateExpression(t,a(t.tag,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode),a(t.template,r,e.isTemplateLiteral))},t[213]=function(t,r,n,i,a,o){return n.factory.updateTypeAssertion(t,a(t.type,r,e.isTypeNode),a(t.expression,r,e.isExpression))},t[214]=function(t,r,n,i,a,o){return n.factory.updateParenthesizedExpression(t,a(t.expression,r,e.isExpression))},t[215]=function(t,r,n,i,a,s){return n.factory.updateFunctionExpression(t,i(t.modifiers,r,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[216]=function(t,r,n,i,a,s){return n.factory.updateArrowFunction(t,i(t.modifiers,r,e.isModifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),a(t.equalsGreaterThanToken,s,e.isEqualsGreaterThanToken),c(t.body,r,n,a))},t[217]=function(t,r,n,i,a,o){return n.factory.updateDeleteExpression(t,a(t.expression,r,e.isExpression))},t[218]=function(t,r,n,i,a,o){return n.factory.updateTypeOfExpression(t,a(t.expression,r,e.isExpression))},t[219]=function(t,r,n,i,a,o){return n.factory.updateVoidExpression(t,a(t.expression,r,e.isExpression))},t[220]=function(t,r,n,i,a,o){return n.factory.updateAwaitExpression(t,a(t.expression,r,e.isExpression))},t[221]=function(t,r,n,i,a,o){return n.factory.updatePrefixUnaryExpression(t,a(t.operand,r,e.isExpression))},t[222]=function(t,r,n,i,a,o){return n.factory.updatePostfixUnaryExpression(t,a(t.operand,r,e.isExpression))},t[223]=function(t,r,n,i,a,o){return n.factory.updateBinaryExpression(t,a(t.left,r,e.isExpression),a(t.operatorToken,o,e.isBinaryOperatorToken),a(t.right,r,e.isExpression))},t[224]=function(t,r,n,i,a,o){return n.factory.updateConditionalExpression(t,a(t.condition,r,e.isExpression),a(t.questionToken,o,e.isQuestionToken),a(t.whenTrue,r,e.isExpression),a(t.colonToken,o,e.isColonToken),a(t.whenFalse,r,e.isExpression))},t[225]=function(t,r,n,i,a,o){return n.factory.updateTemplateExpression(t,a(t.head,r,e.isTemplateHead),i(t.templateSpans,r,e.isTemplateSpan))},t[226]=function(t,r,n,i,a,o){return n.factory.updateYieldExpression(t,a(t.asteriskToken,o,e.isAsteriskToken),a(t.expression,r,e.isExpression))},t[227]=function(t,r,n,i,a,o){return n.factory.updateSpreadElement(t,a(t.expression,r,e.isExpression))},t[228]=function(t,r,n,i,a,o){return n.factory.updateClassExpression(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[230]=function(t,r,n,i,a,o){return n.factory.updateExpressionWithTypeArguments(t,a(t.expression,r,e.isExpression),i(t.typeArguments,r,e.isTypeNode))},t[231]=function(t,r,n,i,a,o){return n.factory.updateAsExpression(t,a(t.expression,r,e.isExpression),a(t.type,r,e.isTypeNode))},t[235]=function(t,r,n,i,a,o){return n.factory.updateSatisfiesExpression(t,a(t.expression,r,e.isExpression),a(t.type,r,e.isTypeNode))},t[232]=function(t,r,n,i,a,o){return e.isOptionalChain(t)?n.factory.updateNonNullChain(t,a(t.expression,r,e.isExpression)):n.factory.updateNonNullExpression(t,a(t.expression,r,e.isExpression))},t[233]=function(t,r,n,i,a,o){return n.factory.updateMetaProperty(t,a(t.name,r,e.isIdentifier))},t[236]=function(t,r,n,i,a,o){return n.factory.updateTemplateSpan(t,a(t.expression,r,e.isExpression),a(t.literal,r,e.isTemplateMiddleOrTemplateTail))},t[238]=function(t,r,n,i,a,o){return n.factory.updateBlock(t,i(t.statements,r,e.isStatement))},t[240]=function(t,r,n,i,a,o){return n.factory.updateVariableStatement(t,i(t.modifiers,r,e.isModifier),a(t.declarationList,r,e.isVariableDeclarationList))},t[241]=function(t,r,n,i,a,o){return n.factory.updateExpressionStatement(t,a(t.expression,r,e.isExpression))},t[242]=function(t,r,n,i,a,o){return n.factory.updateIfStatement(t,a(t.expression,r,e.isExpression),a(t.thenStatement,r,e.isStatement,n.factory.liftToBlock),a(t.elseStatement,r,e.isStatement,n.factory.liftToBlock))},t[243]=function(t,r,n,i,a,o){return n.factory.updateDoStatement(t,l(t.statement,r,n,a),a(t.expression,r,e.isExpression))},t[244]=function(t,r,n,i,a,o){return n.factory.updateWhileStatement(t,a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[245]=function(t,r,n,i,a,o){return n.factory.updateForStatement(t,a(t.initializer,r,e.isForInitializer),a(t.condition,r,e.isExpression),a(t.incrementor,r,e.isExpression),l(t.statement,r,n,a))},t[246]=function(t,r,n,i,a,o){return n.factory.updateForInStatement(t,a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[247]=function(t,r,n,i,a,o){return n.factory.updateForOfStatement(t,a(t.awaitModifier,o,e.isAwaitKeyword),a(t.initializer,r,e.isForInitializer),a(t.expression,r,e.isExpression),l(t.statement,r,n,a))},t[248]=function(t,r,n,i,a,o){return n.factory.updateContinueStatement(t,a(t.label,r,e.isIdentifier))},t[249]=function(t,r,n,i,a,o){return n.factory.updateBreakStatement(t,a(t.label,r,e.isIdentifier))},t[250]=function(t,r,n,i,a,o){return n.factory.updateReturnStatement(t,a(t.expression,r,e.isExpression))},t[251]=function(t,r,n,i,a,o){return n.factory.updateWithStatement(t,a(t.expression,r,e.isExpression),a(t.statement,r,e.isStatement,n.factory.liftToBlock))},t[252]=function(t,r,n,i,a,o){return n.factory.updateSwitchStatement(t,a(t.expression,r,e.isExpression),a(t.caseBlock,r,e.isCaseBlock))},t[253]=function(t,r,n,i,a,o){return n.factory.updateLabeledStatement(t,a(t.label,r,e.isIdentifier),a(t.statement,r,e.isStatement,n.factory.liftToBlock))},t[254]=function(t,r,n,i,a,o){return n.factory.updateThrowStatement(t,a(t.expression,r,e.isExpression))},t[255]=function(t,r,n,i,a,o){return n.factory.updateTryStatement(t,a(t.tryBlock,r,e.isBlock),a(t.catchClause,r,e.isCatchClause),a(t.finallyBlock,r,e.isBlock))},t[257]=function(t,r,n,i,a,o){return n.factory.updateVariableDeclaration(t,a(t.name,r,e.isBindingName),a(t.exclamationToken,o,e.isExclamationToken),a(t.type,r,e.isTypeNode),a(t.initializer,r,e.isExpression))},t[258]=function(t,r,n,i,a,o){return n.factory.updateVariableDeclarationList(t,i(t.declarations,r,e.isVariableDeclaration))},t[259]=function(t,r,n,i,a,s){return n.factory.updateFunctionDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),o(t.parameters,r,n,i),a(t.type,r,e.isTypeNode),c(t.body,r,n,a))},t[260]=function(t,r,n,i,a,o){return n.factory.updateClassDeclaration(t,i(t.modifiers,r,e.isModifierLike),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isClassElement))},t[261]=function(t,r,n,i,a,o){return n.factory.updateInterfaceDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),i(t.heritageClauses,r,e.isHeritageClause),i(t.members,r,e.isTypeElement))},t[262]=function(t,r,n,i,a,o){return n.factory.updateTypeAliasDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.typeParameters,r,e.isTypeParameterDeclaration),a(t.type,r,e.isTypeNode))},t[263]=function(t,r,n,i,a,o){return n.factory.updateEnumDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isIdentifier),i(t.members,r,e.isEnumMember))},t[264]=function(t,r,n,i,a,o){return n.factory.updateModuleDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.name,r,e.isModuleName),a(t.body,r,e.isModuleBody))},t[265]=function(t,r,n,i,a,o){return n.factory.updateModuleBlock(t,i(t.statements,r,e.isStatement))},t[266]=function(t,r,n,i,a,o){return n.factory.updateCaseBlock(t,i(t.clauses,r,e.isCaseOrDefaultClause))},t[267]=function(t,r,n,i,a,o){return n.factory.updateNamespaceExportDeclaration(t,a(t.name,r,e.isIdentifier))},t[268]=function(t,r,n,i,a,o){return n.factory.updateImportEqualsDeclaration(t,i(t.modifiers,r,e.isModifier),t.isTypeOnly,a(t.name,r,e.isIdentifier),a(t.moduleReference,r,e.isModuleReference))},t[269]=function(t,r,n,i,a,o){return n.factory.updateImportDeclaration(t,i(t.modifiers,r,e.isModifier),a(t.importClause,r,e.isImportClause),a(t.moduleSpecifier,r,e.isExpression),a(t.assertClause,r,e.isAssertClause))},t[296]=function(t,r,n,i,a,o){return n.factory.updateAssertClause(t,i(t.elements,r,e.isAssertEntry),t.multiLine)},t[297]=function(t,r,n,i,a,o){return n.factory.updateAssertEntry(t,a(t.name,r,e.isAssertionKey),a(t.value,r,e.isExpression))},t[270]=function(t,r,n,i,a,o){return n.factory.updateImportClause(t,t.isTypeOnly,a(t.name,r,e.isIdentifier),a(t.namedBindings,r,e.isNamedImportBindings))},t[271]=function(t,r,n,i,a,o){return n.factory.updateNamespaceImport(t,a(t.name,r,e.isIdentifier))},t[277]=function(t,r,n,i,a,o){return n.factory.updateNamespaceExport(t,a(t.name,r,e.isIdentifier))},t[272]=function(t,r,n,i,a,o){return n.factory.updateNamedImports(t,i(t.elements,r,e.isImportSpecifier))},t[273]=function(t,r,n,i,a,o){return n.factory.updateImportSpecifier(t,t.isTypeOnly,a(t.propertyName,r,e.isIdentifier),a(t.name,r,e.isIdentifier))},t[274]=function(t,r,n,i,a,o){return n.factory.updateExportAssignment(t,i(t.modifiers,r,e.isModifier),a(t.expression,r,e.isExpression))},t[275]=function(t,r,n,i,a,o){return n.factory.updateExportDeclaration(t,i(t.modifiers,r,e.isModifier),t.isTypeOnly,a(t.exportClause,r,e.isNamedExportBindings),a(t.moduleSpecifier,r,e.isExpression),a(t.assertClause,r,e.isAssertClause))},t[276]=function(t,r,n,i,a,o){return n.factory.updateNamedExports(t,i(t.elements,r,e.isExportSpecifier))},t[278]=function(t,r,n,i,a,o){return n.factory.updateExportSpecifier(t,t.isTypeOnly,a(t.propertyName,r,e.isIdentifier),a(t.name,r,e.isIdentifier))},t[280]=function(t,r,n,i,a,o){return n.factory.updateExternalModuleReference(t,a(t.expression,r,e.isExpression))},t[281]=function(t,r,n,i,a,o){return n.factory.updateJsxElement(t,a(t.openingElement,r,e.isJsxOpeningElement),i(t.children,r,e.isJsxChild),a(t.closingElement,r,e.isJsxClosingElement))},t[282]=function(t,r,n,i,a,o){return n.factory.updateJsxSelfClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),a(t.attributes,r,e.isJsxAttributes))},t[283]=function(t,r,n,i,a,o){return n.factory.updateJsxOpeningElement(t,a(t.tagName,r,e.isJsxTagNameExpression),i(t.typeArguments,r,e.isTypeNode),a(t.attributes,r,e.isJsxAttributes))},t[284]=function(t,r,n,i,a,o){return n.factory.updateJsxClosingElement(t,a(t.tagName,r,e.isJsxTagNameExpression))},t[285]=function(t,r,n,i,a,o){return n.factory.updateJsxFragment(t,a(t.openingFragment,r,e.isJsxOpeningFragment),i(t.children,r,e.isJsxChild),a(t.closingFragment,r,e.isJsxClosingFragment))},t[288]=function(t,r,n,i,a,o){return n.factory.updateJsxAttribute(t,a(t.name,r,e.isIdentifier),a(t.initializer,r,e.isStringLiteralOrJsxExpression))},t[289]=function(t,r,n,i,a,o){return n.factory.updateJsxAttributes(t,i(t.properties,r,e.isJsxAttributeLike))},t[290]=function(t,r,n,i,a,o){return n.factory.updateJsxSpreadAttribute(t,a(t.expression,r,e.isExpression))},t[291]=function(t,r,n,i,a,o){return n.factory.updateJsxExpression(t,a(t.expression,r,e.isExpression))},t[292]=function(t,r,n,i,a,o){return n.factory.updateCaseClause(t,a(t.expression,r,e.isExpression),i(t.statements,r,e.isStatement))},t[293]=function(t,r,n,i,a,o){return n.factory.updateDefaultClause(t,i(t.statements,r,e.isStatement))},t[294]=function(t,r,n,i,a,o){return n.factory.updateHeritageClause(t,i(t.types,r,e.isExpressionWithTypeArguments))},t[295]=function(t,r,n,i,a,o){return n.factory.updateCatchClause(t,a(t.variableDeclaration,r,e.isVariableDeclaration),a(t.block,r,e.isBlock))},t[299]=function(t,r,n,i,a,o){return n.factory.updatePropertyAssignment(t,a(t.name,r,e.isPropertyName),a(t.initializer,r,e.isExpression))},t[300]=function(t,r,n,i,a,o){return n.factory.updateShorthandPropertyAssignment(t,a(t.name,r,e.isIdentifier),a(t.objectAssignmentInitializer,r,e.isExpression))},t[301]=function(t,r,n,i,a,o){return n.factory.updateSpreadAssignment(t,a(t.expression,r,e.isExpression))},t[302]=function(t,r,n,i,a,o){return n.factory.updateEnumMember(t,a(t.name,r,e.isPropertyName),a(t.initializer,r,e.isExpression))},t[308]=function(e,t,r,n,i,o){return r.factory.updateSourceFile(e,a(e.statements,t,r))},t[353]=function(t,r,n,i,a,o){return n.factory.updatePartiallyEmittedExpression(t,a(t.expression,r,e.isExpression))},t[354]=function(t,r,n,i,a,o){return n.factory.updateCommaListExpression(t,i(t.elements,r,e.isExpression))},t);function d(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}}(_||(_={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,_=[],f=[],p=new e.Map,m=[],g=[],y="",v=0,h=0,x=0,b=0,D=0,S=0,T=!1,C=0,E=0,k=0,N=0,A=0,P=0,F=!1,w=!1,I=!1;return{getSources:function(){return _},addSource:M,setSourceContent:O,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],_=a(n.mappings),f=_.next();!f.done;f=_.next()){var p=f.value;if(s&&(p.generatedLine>s.line||p.generatedLine===s.line&&p.generatedCharacter>s.character))break;if(!o||!(p.generatedLine=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(function(e,t){return!F||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),C=t,E=r,w=!1,I=!1,F=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,N=i,A=a,w=!0,void 0!==o&&(P=o,I=!0)),d()}function j(e){g.push(e),g.length>=1024&&J()}function B(){if(F&&(!T||v!==C||h!==E||x!==k||b!==N||D!==A||S!==P)){if(u(),v0&&(y+=String.fromCharCode.apply(void 0,g),g.length=0)}function K(){return B(),J(),{version:3,file:r,sourceRoot:n,sources:f,names:m,mappings:y,sourcesContent:s}}function z(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),j((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!0,!0)},next:function(){for(;!r&&n=e.length)return _("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return _("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function _(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,f,p,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,y=e.getNormalizedAbsolutePath(r.file,m),v=t.getSourceFileLike(y),h=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,g)})),x=new e.Map(h.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,_,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&s(i)?{fileName:h[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=x.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:y,pos:o.generatedPosition}}};function b(n){var i,a,s=void 0!==v?e.getPositionOfLineAndCharacter(v,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(h[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,b);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(n.error)),i=e.emptyArray):i=o}return i}function S(t){if(void 0===p){for(var r=[],n=0,i=D();n0&&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;i0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.getSuperCallFromStatement=c,e.findSuperStatementIndex=function(e,t){for(var r=t;r=1)||98304&p.transformFlags||98304&e.getTargetOfBindingOrAssignmentElement(p).transformFlags||e.isComputedPropertyName(m)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var g=a(t,s,m);e.isComputedPropertyName(m)&&(u=e.append(u,g.argumentExpression)),n(t,p,g,p)}else l=e.append(l,e.visitNode(p,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)}(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(t,r,a,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(a),_=d.length;t.level<1&&t.downlevelIteration?s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[_-1])?void 0:_),c),!1,c):(1!==_&&(t.level<1||0===_)||e.every(d,e.isOmittedExpression))&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==_,c));for(var f=0;f<_;f++){var p=d[f];if(t.level>=1)if(65536&p.transformFlags||t.hasTransformedPriorElement&&!i(p)){t.hasTransformedPriorElement=!0;var m=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,p]),l=e.append(l,t.createArrayBindingOrAssignmentElement(m))}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p))f===_-1&&(g=t.context.factory.createArraySliceCall(s,f),n(t,p,g,p));else{var g=t.context.factory.createElementAccessExpression(s,f);n(t,p,g,p)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a),u)for(var y=0,v=u;y=0&&e.addRange(a,e.visitNodes(r.statements,E,e.isStatement,s,c+1-s));var l=e.mapDefined(i,U);c>=0?e.addRange(a,l):a=o(o(o([],a.slice(0,s),!0),l,!0),a.slice(s),!0);var u=c>=0?c+1:s;e.addRange(a,e.visitNodes(r.statements,E,e.isStatement,u)),a=d.mergeLexicalEnvironment(a,m());var _=d.createBlock(e.setTextRange(d.createNodeArray(a),r.statements),!0);return e.setTextRange(_,r),e.setOriginalNode(_,r),_}(r.body,r))}(r);case 169:return function(t,r){var n=16777216&t.flags||e.hasSyntacticModifier(t,256);if(!n||e.hasDecorators(t)){var i=B(t,r,e.getAllDecoratorsOfClassElement(t,r));return n?d.updatePropertyDeclaration(t,e.concatenate(i,d.createModifiersFromModifierFlags(2)),e.visitNode(t.name,E,e.isPropertyName),void 0,void 0,void 0):d.updatePropertyDeclaration(t,e.concatenate(i,e.visitNodes(t.modifiers,I,e.isModifierLike)),K(t),void 0,void 0,e.visitNode(t.initializer,E))}}(r,n);case 174:return W(r,n);case 175:return H(r,n);case 171:return V(r,n);case 172:return e.visitEachChild(r,E,t);case 237:return r;case 178:return;default:return e.Debug.failBadSyntaxKind(r)}}(n,r)}))}}function I(t){if(!e.isDecorator(t)&&!(117086&e.modifierToFlag(t.kind)||n&&93===t.kind))return t}function M(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return d.createNotEmittedStatement(o);switch(o.kind){case 93:case 88:return n?void 0:o;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:case 267:return;case 262:case 261:return d.createNotEmittedStatement(o);case 260:return function(i){if(!(R(i)||n&&e.hasSyntacticModifier(i,1)))return d.updateClassDeclaration(i,e.visitNodes(i.modifiers,I,e.isModifier),i.name,void 0,e.visitNodes(i.heritageClauses,E,e.isHeritageClause),e.visitNodes(i.members,w(i),e.isClassElement));var a=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(n|=64),e.classOrConstructorParameterIsDecorated(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),se(t)?n|=8:function(t){return ce(t)&&e.hasSyntacticModifier(t,1024)}(t)?n|=32:le(t)&&(n|=16),h<=1&&7&n&&(n|=128),n}(i,e.getProperties(i,!0,!0));128&a&&t.startLexicalEnvironment();var o=i.name||(5&a?d.getGeneratedNameForNode(i):void 0),s=B(i,i,e.getAllDecoratorsOfClass(i)),c=128&a?e.elideNodes(d,i.modifiers):e.visitNodes(i.modifiers,I,e.isModifier),l=d.updateClassDeclaration(i,e.concatenate(s,c),o,void 0,e.visitNodes(i.heritageClauses,E,e.isHeritageClause),j(i)),u=e.getEmitFlags(i);1&a&&(u|=32),e.setEmitFlags(l,u);var _=[l];if(128&a){var f=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),p=d.getInternalName(i),m=d.createPartiallyEmittedExpression(p);e.setTextRangeEnd(m,f.end),e.setEmitFlags(m,1536);var g=d.createReturnStatement(m);e.setTextRangePos(g,f.pos),e.setEmitFlags(g,1920),_.push(g),e.insertStatementsAfterStandardPrologue(_,t.endLexicalEnvironment());var y=d.createImmediatelyInvokedArrowFunction(_);e.setEmitFlags(y,33554432);var v=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(i,!1,!1),void 0,void 0,y)]));e.setOriginalNode(v,i),e.setCommentRange(v,i),e.setSourceMapRange(v,e.moveRangePastDecorators(i)),e.startOnNewLine(v),_=[v]}return 8&a?ue(_,i):(128&a||2&a)&&(32&a?_.push(d.createExportDefault(d.getLocalName(i,!1,!0))):16&a&&_.push(d.createExternalModuleExport(d.getLocalName(i,!1,!0)))),_.length>1&&(_.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(l,4194304|e.getEmitFlags(l))),e.singleOrMany(_)}(o);case 228:return function(t){var r=B(t,t,e.getAllDecoratorsOfClass(t));return d.updateClassExpression(t,r,t.name,void 0,e.visitNodes(t.heritageClauses,E,e.isHeritageClause),R(t)?j(t):e.visitNodes(t.members,w(t),e.isClassElement))}(o);case 294:return function(r){if(117!==r.token)return e.visitEachChild(r,E,t)}(o);case 230:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,E,e.isLeftHandSideExpression),void 0)}(o);case 207:return function(t){return d.updateObjectLiteralExpression(t,e.visitNodes(t.properties,(r=t,function(t){return C(t,(function(t){return function(t,r){switch(t.kind){case 299:case 300:case 301:return E(t);case 174:return W(t,r);case 175:return H(t,r);case 171:return V(t,r);default:return e.Debug.failBadSyntaxKind(t)}}(t,r)}))}),e.isObjectLiteralElement));var r}(o);case 173:case 169:case 171:case 174:case 175:case 172:return e.Debug.fail("Class and object literal elements must be visited with their respective visitors");case 259:return function(r){if(!z(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,I,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||d.createBlock([]));if(se(r)){var i=[n];return ue(i,r),i}return n}(o);case 215:return function(r){return z(r)?d.updateFunctionExpression(r,e.visitNodes(r.modifiers,I,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,e.visitFunctionBody(r.body,E,t)||d.createBlock([])):d.createOmittedExpression()}(o);case 216:return function(r){return d.updateArrowFunction(r,e.visitNodes(r.modifiers,I,e.isModifier),void 0,e.visitParameterList(r.parameters,E,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,E,t))}(o);case 166:return function(t){if(!e.parameterIsThisKeyword(t)){var r=d.updateParameterDeclaration(t,e.elideNodes(d,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),r}}(o);case 214:return function(r){var n=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(n)){var i=e.visitNode(r.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,E,t)}(o);case 213:case 231:return function(t){var r=e.visitNode(t.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 235:return function(t){var r=e.visitNode(t.expression,E,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 210:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(o);case 211:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,E,e.isExpression))}(o);case 212:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,E,e.isExpression),void 0,e.visitNode(t.template,E,e.isExpression))}(o);case 232:return function(t){var r=e.visitNode(t.expression,E,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 263:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(v)}(t))return d.createNotEmittedStatement(t);var n=[],o=2,s=Z(n,t);s&&(x===e.ModuleKind.System&&a===r||(o|=512));var c=fe(t),l=pe(t),u=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(u,d.createAssignment(u,d.createObjectLiteralExpression()));if(X(t)){var p=d.getLocalName(t,!1,!0);_=d.createAssignment(p,_)}var g=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,c)],void 0,function(t,r){var n=i;i=r;var a=[];f();var o=e.map(t.members,G);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)}(t,l)),void 0,[_]));return e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0)),e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(d.createEndOfDeclarationMarker(t)),n}(o);case 240:return function(r){if(se(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,$))),r)}return e.visitEachChild(r,E,t)}(o);case 257:return function(t){var r=d.updateVariableDeclaration(t,e.visitNode(t.name,E,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,E,e.isExpression));return t.type&&e.setTypeNode(r.name,t.type),r}(o);case 264:return ee(o);case 268:return oe(o);case 282:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,E,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,E,e.isJsxAttributes))}(o);case 283:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,E,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,E,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,E,t)}}function O(r){var n=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(r)&&x>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,N,t,0,n))}function L(e){return!!(8192&e.transformFlags)}function R(t){return e.hasDecorators(t)||e.some(t.typeParameters)||e.some(t.heritageClauses,L)||e.some(t.members,L)}function j(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a=2,S=v||h||x,T=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=T(t,n),1===t?function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&C&&33554432&_.getNodeCheckFlags(t)){var n=_.getReferencedValueDeclaration(t);if(n){var i=E[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}}(t)||t}(t);case 108:return function(t){if(2&C&&P){var n=P.facts,i=P.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t}(t)}return t}(n):n};var C,E,k,N,A=t.onEmitNode;t.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=O.get(i.id);if(a){var o=P,s=w;return P=a,w=a,A(t,r,n),P=o,void(w=s)}}switch(r.kind){case 215:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 259:case 173:return o=P,s=w,P=void 0,w=void 0,A(t,r,n),P=o,void(w=s);case 174:case 175:case 171:case 169:return o=P,s=w,w=P,P=void 0,A(t,r,n),P=o,void(w=s);case 164:return o=P,s=w,P=w,w=void 0,A(t,r,n),P=o,void(w=s)}A(t,r,n)};var P,F,w,I,M=[],O=new e.Map;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||!S)return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function L(i){if(!(16777216&i.transformFlags||134234112&i.transformFlags))return i;switch(i.kind){case 127:return x?void 0:i;case 260:return function(e){return te(e,re)}(i);case 228:return function(e){return te(e,ne)}(i);case 172:return function(r){if(!h)return e.visitEachChild(r,L,t)}(i);case 169:return W(i);case 240:return function(r){var n=N;N=[];var i=e.visitEachChild(r,L,t),a=e.some(N)?o([i],N,!0):i;return N=n,a}(i);case 80:return function(t){return h?e.isStatement(t.parent)?t:e.setOriginalNode(r.createIdentifier(""),t):t}(i);case 208:return function(n){if(h&&e.isPrivateIdentifier(n.name)){var i=he(n.name);if(i)return e.setTextRange(e.setOriginalNode(H(i,n.expression),n),n)}if(D&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&I&&P){var a=P.classConstructor,o=P.superClassReference;if(1&P.facts)return ue(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,L,t)}(i);case 209:return function(n){if(D&&e.isSuperProperty(n)&&I&&P){var i=P.classConstructor,a=P.superClassReference;if(1&P.facts)return ue(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,L,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,L,t)}(i);case 221:case 222:return G(i,!1);case 223:return Y(i,!1);case 210:return function(i){if(h&&e.isPrivateIdentifierPropertyAccessExpression(i.expression)){var a=r.createCallBinding(i.expression,n,p),s=a.thisArg,c=a.target;return e.isCallChain(i)?r.updateCallChain(i,r.createPropertyAccessChain(e.visitNode(c,L),i.questionDotToken,"call"),void 0,void 0,o([e.visitNode(s,L,e.isExpression)],e.visitNodes(i.arguments,L,e.isExpression),!0)):r.updateCallExpression(i,r.createPropertyAccessExpression(e.visitNode(c,L),"call"),void 0,o([e.visitNode(s,L,e.isExpression)],e.visitNodes(i.arguments,L,e.isExpression),!0))}if(D&&e.isSuperProperty(i.expression)&&I&&(null==P?void 0:P.classConstructor)){var l=r.createFunctionCallCall(e.visitNode(i.expression,L,e.isExpression),P.classConstructor,e.visitNodes(i.arguments,L,e.isExpression));return e.setOriginalNode(l,i),e.setTextRange(l,i),l}return e.visitEachChild(i,L,t)}(i);case 241:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,j,e.isExpression))}(i);case 212:return function(i){if(h&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=r.createCallBinding(i.tag,n,p),o=a.thisArg,s=a.target;return r.updateTaggedTemplateExpression(i,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(s,L),"bind"),void 0,[e.visitNode(o,L,e.isExpression)]),void 0,e.visitNode(i.template,L,e.isTemplateLiteral))}if(D&&e.isSuperProperty(i.tag)&&I&&(null==P?void 0:P.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(i.tag,L,e.isExpression),P.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),r.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,L,e.isTemplateLiteral))}return e.visitEachChild(i,L,t)}(i);case 245:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,j,e.isForInitializer),e.visitNode(n.condition,L,e.isExpression),e.visitNode(n.incrementor,j,e.isExpression),e.visitIterationBody(n.statement,L,t))}(i);case 259:case 215:case 173:case 171:case 174:case 175:return V(void 0,R,i);default:return R(i)}}function R(r){return e.visitEachChild(r,L,t)}function j(e){switch(e.kind){case 221:case 222:return G(e,!0);case 223:return Y(e,!0);default:return L(e)}}function B(i){switch(i.kind){case 294:return e.visitEachChild(i,B,t);case 230:return function(i){if(4&((null==P?void 0:P.facts)||0)){var a=r.createTempVariable(n,!0);return de().superClassReference=a,r.updateExpressionWithTypeArguments(i,r.createAssignment(a,e.visitNode(i.expression,L,e.isExpression)),void 0)}return e.visitEachChild(i,L,t)}(i);default:return L(i)}}function J(t){switch(t.kind){case 207:case 206:return function(t){return e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,De,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,Se,e.isObjectLiteralElementLike))}(t);default:return L(t)}}function K(t){switch(t.kind){case 173:return function(e){return F?oe(e,F):R(e)}(t);case 174:case 175:case 171:return V(void 0,U,t);case 169:return V(void 0,W,t);case 164:return function(t){var n=e.visitNode(t.expression,L,e.isExpression);return e.some(k)&&(n=e.isParenthesizedExpression(n)?r.updateParenthesizedExpression(n,r.inlineExpressions(o(o([],k,!0),[n.expression],!1))):r.inlineExpressions(o(o([],k,!0),[n],!1)),k=void 0),r.updateComputedPropertyName(t,n)}(t);case 237:return t;default:return L(t)}}function z(t){switch(t.kind){case 169:return q(t);case 174:case 175:return K(t);default:e.Debug.assertMissingNode(t,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function U(n){if(e.Debug.assert(!e.hasDecorators(n)),!h||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,K,t);var i=he(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=function(t){e.Debug.assert(e.isPrivateIdentifier(t.name));var r=he(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}}(n);a&&fe().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(function(t){return e.isModifier(t)&&!e.isStaticModifier(t)&&!e.isAccessorModifier(t)})),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,L,t),void 0,e.visitFunctionBody(n.body,L,t))))}function V(e,t,r){var n=I;I=e;var i=t(r);return I=n,i}function q(i){return e.Debug.assert(!e.hasDecorators(i),"Decorators should already have been transformed and elided."),e.isPrivateIdentifierClassElementDeclaration(i)?function(n){if(h){var i=he(n.name);return e.Debug.assert(i,"Undeclared private name for property declaration."),i.isValid?void 0:n}return g&&!e.isStatic(n)?r.updatePropertyDeclaration(n,e.visitNodes(n.modifiers,L,e.isModifierLike),n.name,void 0,void 0,void 0):e.visitEachChild(n,L,t)}(i):function(i){if(!v)return e.visitEachChild(i,K,t);var a=function(t,i){if(e.isComputedPropertyName(t)){var a=e.visitNode(t.expression,L,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),s=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!s&&i){var c=r.getGeneratedNameForNode(t);return 524288&_.getNodeCheckFlags(t)?d(c):n(c),r.createAssignment(c,a)}return s||e.isIdentifier(o)?void 0:a}}(i.name,!!i.initializer||m);if(a&&fe().push(a),e.isStatic(i)&&!h){var o=ce(i,r.createThis());if(o){var s=r.createClassStaticBlockDeclaration(r.createBlock([o]));return e.setOriginalNode(s,i),e.setCommentRange(s,i),e.setCommentRange(o,{pos:-1,end:-1}),e.setSyntheticLeadingComments(o,void 0),e.setSyntheticTrailingComments(o,void 0),s}}}(i)}function W(t){return x&&e.isAutoAccessorPropertyDeclaration(t)?function(t){e.Debug.assertEachNode(t.modifiers,e.isModifier);var i=e.getCommentRange(t),a=e.getSourceMapRange(t),o=t.name,s=o,c=o;if(e.isComputedPropertyName(o)&&!e.isSimpleInlineableExpression(o.expression)){var l=r.createTempVariable(n);e.setSourceMapRange(l,o.expression);var u=e.visitNode(o.expression,L,e.isExpression),d=r.createAssignment(l,u);e.setSourceMapRange(d,o.expression),s=r.updateComputedPropertyName(o,r.inlineExpressions([d,l])),c=r.updateComputedPropertyName(o,l)}var _=e.createAccessorPropertyBackingField(r,t,t.modifiers,t.initializer);e.setOriginalNode(_,t),e.setEmitFlags(_,1536),e.setSourceMapRange(_,a);var f=e.createAccessorPropertyGetRedirector(r,t,t.modifiers,s);e.setOriginalNode(f,t),e.setCommentRange(f,i),e.setSourceMapRange(f,a);var p=e.createAccessorPropertySetRedirector(r,t,t.modifiers,c);return e.setOriginalNode(p,t),e.setEmitFlags(p,1536),e.setSourceMapRange(p,a),e.visitArray([_,f,p],z,e.isClassElement)}(t):q(t)}function H(t,r){return $(t,e.visitNode(r,L,e.isExpression))}function $(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function G(i,a){if(45===i.operator||46===i.operator){var o,s=e.skipParentheses(i.operand);if(h&&e.isPrivateIdentifierPropertyAccessExpression(s)){if(o=he(s.name)){var c=X(e.visitNode(s.expression,L,e.isExpression)),l=c.readExpression,u=c.initializeExpression,d=H(o,l),_=e.isPrefixUnaryExpression(i)||a?void 0:r.createTempVariable(n);return d=Z(o,u||l,d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,d,n,_),63),e.setOriginalNode(d,i),e.setTextRange(d,i),_&&(d=r.createComma(d,_),e.setTextRange(d,i)),d}}else if(D&&e.isSuperProperty(s)&&I&&P){var f=P.classConstructor,p=P.superClassReference;if(1&P.facts)return d=ue(s),e.isPrefixUnaryExpression(i)?r.updatePrefixUnaryExpression(i,d):r.updatePostfixUnaryExpression(i,d);if(f&&p){var m=void 0,g=void 0;if(e.isPropertyAccessExpression(s)?e.isIdentifier(s.name)&&(g=m=r.createStringLiteralFromNode(s.name)):e.isSimpleInlineableExpression(s.argumentExpression)?g=m=s.argumentExpression:(g=r.createTempVariable(n),m=r.createAssignment(g,e.visitNode(s.argumentExpression,L,e.isExpression))),m&&g)return d=r.createReflectGetCall(p,g,f),e.setTextRange(d,s),_=a?void 0:r.createTempVariable(n),d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,d,n,_),d=r.createReflectSetCall(p,m,d,f),e.setOriginalNode(d,i),e.setTextRange(d,i),_&&(d=r.createComma(d,_),e.setTextRange(d,i)),d}}}return e.visitEachChild(i,L,t)}function X(t){var i=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:i,initializeExpression:void 0};var a=r.createTempVariable(n);return{readExpression:a,initializeExpression:r.createAssignment(a,i)}}function Q(t){if(h){P&&O.set(e.getOriginalNodeId(t),P),l();var n=V(t,(function(t){return e.visitNodes(t,L,e.isStatement)}),t.body.statements);n=r.mergeLexicalEnvironment(n,c());var i=r.createImmediatelyInvokedArrowFunction(n);return e.setOriginalNode(i,t),e.setTextRange(i,t),e.addEmitFlags(i,2),i}}function Y(i,a){if(e.isDestructuringAssignment(i)){var s=k;k=void 0,i=r.updateBinaryExpression(i,e.visitNode(i.left,J),i.operatorToken,e.visitNode(i.right,L));var c=e.some(k)?r.inlineExpressions(e.compact(o(o([],k,!0),[i],!1))):i;return k=s,c}if(e.isAssignmentExpression(i))if(h&&e.isPrivateIdentifierPropertyAccessExpression(i.left)){var l=he(i.left.name);if(l)return e.setTextRange(e.setOriginalNode(Z(l,i.left.expression,i.right,i.operatorToken.kind),i),i)}else if(D&&e.isSuperProperty(i.left)&&I&&P){var u=P.classConstructor,d=P.superClassReference;if(1&P.facts)return r.updateBinaryExpression(i,ue(i.left),i.operatorToken,e.visitNode(i.right,L,e.isExpression));if(u&&d){var _=e.isElementAccessExpression(i.left)?e.visitNode(i.left.argumentExpression,L,e.isExpression):e.isIdentifier(i.left.name)?r.createStringLiteralFromNode(i.left.name):void 0;if(_){var f=e.visitNode(i.right,L,e.isExpression);if(e.isCompoundAssignment(i.operatorToken.kind)){var p=_;e.isSimpleInlineableExpression(_)||(p=r.createTempVariable(n),_=r.createAssignment(p,_));var m=r.createReflectGetCall(d,p,u);e.setOriginalNode(m,i.left),e.setTextRange(m,i.left),f=r.createBinaryExpression(m,e.getNonAssignmentOperatorForCompoundAssignment(i.operatorToken.kind),f),e.setTextRange(f,i)}var g=a?void 0:r.createTempVariable(n);return g&&(f=r.createAssignment(g,f),e.setTextRange(g,i)),f=r.createReflectSetCall(d,_,f,u),e.setOriginalNode(f,i),e.setTextRange(f,i),g&&(f=r.createComma(f,g),e.setTextRange(f,i)),f}}}return h&&function(t){return e.isPrivateIdentifier(t.left)&&101===t.operatorToken.kind}(i)?function(r){var n=he(r.left);if(n){var i=e.visitNode(r.right,L,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(n.brandCheckIdentifier,i),r)}return e.visitEachChild(r,L,t)}(i):e.visitEachChild(i,L,t)}function Z(n,i,a,o){if(i=e.visitNode(i,L,e.isExpression),a=e.visitNode(a,L,e.isExpression),e.isCompoundAssignment(o)){var s=X(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression($(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function ee(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function te(r,n){var i=F,a=k;if(F=r,k=void 0,M.push(P),P=void 0,h){var o=e.getNameOfDeclaration(r);o&&e.isIdentifier(o)&&(_e().className=o);var s=ee(r);e.some(s)&&(_e().weakSetName=ye("instances",s[0].name))}var c=function(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i=0?(g=v+1,x=o(o(o([],x.slice(0,y),!0),e.visitNodes(i.body.statements,L,e.isStatement,y,g-y),!0),x.slice(y),!0)):y>=0&&(g=y)),p&&x.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))])));var b=0;if(null==i?void 0:i.body)if(m)x=x.filter((function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),i)}));else{for(var D=0,S=i.body.statements;D0){var C=e.visitNodes(i.body.statements,L,e.isStatement,g,b);if(v>=0)e.addRange(x,C);else{var E=y;p&&E++,x=o(o(o([],x.slice(0,E),!0),C,!0),x.slice(E),!0)}g+=b}}var k=r.createThis();if(function(t,n,i){if(h&&e.some(n)){var a=_e().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))}}(x,_,k),se(x,d,k),i&&e.addRange(x,e.visitNodes(i.body.statements,(function(t){if(!m||!e.isParameterPropertyDeclaration(e.getOriginalNode(t),i))return L(t)}),e.isStatement,g)),0!==(x=r.mergeLexicalEnvironment(x,c())).length||i){var N=(null==i?void 0:i.body)&&i.body.statements.length>=x.length&&null!==(l=i.body.multiLine)&&void 0!==l?l:x.length>0;return e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(x),i?i.body.statements:n.members),N),i?i.body:void 0)}}(i,n,s);return d?n?(e.Debug.assert(l),r.updateConstructorDeclaration(n,void 0,l,d)):e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,null!=l?l:[],d),n||i),n)):n}function se(t,r,n){for(var i=0,a=r;i=0;--r){var n,i=M[r];if(i&&i.privateIdentifierEnvironment&&(n=e(i.privateIdentifierEnvironment,t)))return n}}function be(i){var a=r.getGeneratedNameForNode(i),o=he(i.name);if(!o)return e.visitEachChild(i,L,t);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=r.createTempVariable(n,!0),fe().push(r.createBinaryExpression(s,63,e.visitNode(i.expression,L,e.isExpression)))),r.createAssignmentTargetWrapper(a,Z(o,s,a,63))}function De(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=be(n);else if(D&&e.isSuperProperty(n)&&I&&P){var a=P.classConstructor,o=P.superClassReference;if(1&P.facts)i=ue(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,L,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,L,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,J)}function Se(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=be(n);else if(D&&e.isSuperProperty(n)&&I&&P){var a=P.classConstructor,o=P.superClassReference;if(1&P.facts)i=ue(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,L,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,L,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,L)):i:e.visitNode(t.initializer,J,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,J,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,L)}}}(_||(_={})),function(e){e.createRuntimeTypeSerializer=function(t){var r,n,i=t.hoistVariableDeclaration,a=t.getEmitResolver(),o=t.getCompilerOptions(),s=e.getEmitScriptTarget(o),c=e.getStrictOptionValue(o,"strictNullChecks");return{serializeTypeNode:function(e,t){return l(e,f,t)},serializeTypeOfNode:function(e,t){return l(e,u,t)},serializeParameterTypesOfNode:function(e,t,r){return l(e,d,t,r)},serializeReturnTypeOfNode:function(e,t){return l(e,_,t)}};function l(e,t,i,a){var o=r,s=n;r=e.currentLexicalScope,n=e.currentNameScope;var c=void 0===a?t(i):t(i,a);return r=o,n=s,c}function u(t){switch(t.kind){case 169:case 166:return f(t.type);case 175:case 174:return f(function(t){var r=a.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 260:case 228:case 171:return e.factory.createIdentifier("Function");default:return e.factory.createVoidZero()}}function d(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&174===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),o=a.length,s=0;s1&&(c.push(n.createEndOfDeclarationMarker(o)),e.setEmitFlags(c[0],4194304|e.getEmitFlags(c[0]))),e.singleOrMany(c)}(o);case 228:return function(t){return n.updateClassExpression(t,e.visitNodes(t.modifiers,d,e.isModifier),t.name,void 0,e.visitNodes(t.heritageClauses,_,e.isHeritageClause),e.visitNodes(t.members,_,e.isClassElement))}(o);case 173:return function(t){return n.updateConstructorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNodes(t.parameters,_,e.isParameterDeclaration),e.visitNode(t.body,_,e.isBlock))}(o);case 171:return function(t){return g(n.updateMethodDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),t.asteriskToken,e.visitNode(t.name,_,e.isPropertyName),void 0,void 0,e.visitNodes(t.parameters,_,e.isParameterDeclaration),void 0,e.visitNode(t.body,_,e.isBlock)),t)}(o);case 175:return function(t){return g(n.updateSetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,_,e.isPropertyName),e.visitNodes(t.parameters,_,e.isParameterDeclaration),e.visitNode(t.body,_,e.isBlock)),t)}(o);case 174:return function(t){return g(n.updateGetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,_,e.isPropertyName),e.visitNodes(t.parameters,_,e.isParameterDeclaration),void 0,e.visitNode(t.body,_,e.isBlock)),t)}(o);case 169:return function(t){if(!(16777216&t.flags||e.hasSyntacticModifier(t,2)))return g(n.updatePropertyDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,_,e.isPropertyName),void 0,void 0,e.visitNode(t.initializer,_,e.isExpression)),t)}(o);case 166:return function(t){var r=n.updateParameterDeclaration(t,e.elideNodes(n,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,_,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,_,e.isExpression));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),r}(o);default:return e.visitEachChild(o,_,t)}}function f(e){return!!(536870912&e.transformFlags)}function p(t){return e.some(t,f)}function m(t,r){var i=[];return v(i,t,!1),v(i,t,!0),function(t){for(var r=0,n=t.members;r0?e.isPropertyDeclaration(r)&&!e.hasAccessorModifier(r)?n.createVoidZero():n.createNull():void 0,u=i().createDecorateHelper(a,o,s,c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastModifiers(r)),u}}function x(t){return e.visitNode(t.expression,_,e.isExpression)}function b(t,r){var n;if(t){n=[];for(var a=0,o=t;a=2&&6144&f.getNodeCheckFlags(r)&&3!=(3&e.getFunctionFlags(u))){if(V(),a.size){var d=n(c,f,r,a);y[e.getNodeId(d)]=!0;var _=l.statements.slice();e.insertStatementsAfterStandardPrologue(_,[d]),l=c.updateBlock(l,_)}s&&(4096&f.getNodeCheckFlags(r)?e.addEmitHelper(l,e.advancedAsyncSuperHelper):2048&f.getNodeCheckFlags(r)&&e.addEmitHelper(l,e.asyncSuperHelper))}return a=i,s=o,l}function z(t){u();var r=e.getOriginalNode(t,e.isFunctionLike).type,o=m<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=f.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}(r):void 0,_=216===t.kind,p=0!=(8192&f.getNodeCheckFlags(t)),g=i;i=new e.Set;for(var v=0,h=t.parameters;v=2&&6144&f.getNodeCheckFlags(t);if(A&&(V(),a.size)){var P=n(c,f,t,a);y[e.getNodeId(P)]=!0,e.insertStatementsAfterStandardPrologue(k,[P])}var F=c.createBlock(k,!0);e.setTextRange(F,t.body),A&&s&&(4096&f.getNodeCheckFlags(t)?e.addEmitHelper(F,e.advancedAsyncSuperHelper):2048&f.getNodeCheckFlags(t)&&e.addEmitHelper(F,e.asyncSuperHelper)),x=F}return i=g,_||(a=b,s=D),x}function U(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function V(){0==(1&r)&&(r|=1,t.enableSubstitution(210),t.enableSubstitution(208),t.enableSubstitution(209),t.enableEmitNotification(260),t.enableEmitNotification(171),t.enableEmitNotification(174),t.enableEmitNotification(175),t.enableEmitNotification(173),t.enableEmitNotification(240))}function q(t){return 106===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function W(t){return 106===t.expression.kind?function(t,r){return 4096&g?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),"value"),r):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),r)}(t.argumentExpression,t):t}},e.createSuperAccessVariableStatement=n}(_||(_={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,i=t.resumeLexicalEnvironment,a=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&f&&function(e){var t=e.kind;return 260===t||173===t||171===t||174===t||175===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==b){var a=b;return b=i,d(t,r,n),void(b=a)}}else if(f&&S[e.getNodeId(r)])return a=b,b=0,d(t,r,n),void(b=a);d(t,r,n)};var _=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=_(t,n),1===t&&b?function(t){switch(t.kind){case 208:return X(t);case 209:return Q(t);case 210:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?X(n):Q(n);return r.createCallExpression(r.createPropertyAccessExpression(i,"call"),void 0,o([r.createThis()],t.arguments,!0))}return t}(t)}return t}(n):n};var f,p,m,g,y,v,h,x=!1,b=0,D=0,S=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;g=n;var i=function(n){var i=T(2,e.isEffectiveStrictModeSourceFile(n,l)?0:1);x=!1;var a=e.visitEachChild(n,k,t),o=e.concatenate(a.statements,y&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(y))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return C(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,y=void 0,i}));function T(e,t){var r=D;return D=3&(D&~e|t),r}function C(e){D=e}function E(t){y=e.append(y,r.createVariableDeclaration(t))}function k(e){return w(e,!1)}function N(e){return w(e,!0)}function A(e){if(132!==e.kind)return e}function P(e,t,r,n){if(function(e,t){return D!==(D&~e|t)}(r,n)){var i=T(r,n),a=e(t);return C(i),a}return e(t)}function F(r){return e.visitEachChild(r,k,t)}function w(i,a){if(0==(128&i.transformFlags))return i;switch(i.kind){case 220:return function(i){return 2&p&&1&p?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,k,e.isExpression))),i),i):e.visitEachChild(i,k,t)}(i);case 226:return function(i){if(2&p&&1&p){if(i.asteriskToken){var a=e.visitNode(e.Debug.checkDefined(i.expression),k,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,L(i.expression?e.visitNode(i.expression,k,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,k,t)}(i);case 250:return function(n){return 2&p&&1&p?r.updateReturnStatement(n,L(n.expression?e.visitNode(n.expression,k,e.isExpression):r.createVoidZero())):e.visitEachChild(n,k,t)}(i);case 253:return function(n){if(2&p){var i=e.unwrapInnermostStatementOfLabel(n);return 247===i.kind&&i.awaitModifier?O(i,n):r.restoreEnclosingLabel(e.visitNode(i,k,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,k,t)}(i);case 207:return function(i){if(65536&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(o);if(m){0==(1&f)&&(f|=1,t.enableSubstitution(210),t.enableSubstitution(208),t.enableSubstitution(209),t.enableEmitNotification(260),t.enableEmitNotification(171),t.enableEmitNotification(174),t.enableEmitNotification(175),t.enableEmitNotification(173),t.enableEmitNotification(240));var g=e.createSuperAccessVariableStatement(r,c,o,v);S[e.getNodeId(g)]=!0,e.insertStatementsAfterStandardPrologue(s,[g])}s.push(p),e.insertStatementsAfterStandardPrologue(s,a());var y=r.updateBlock(o.body,s);return m&&h&&(4096&c.getNodeCheckFlags(o)?e.addEmitHelper(y,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(o)&&e.addEmitHelper(y,e.asyncSuperHelper)),v=d,h=_,y}function $(t){var n;i();var o=0,s=[],c=null!==(n=e.visitNode(t.body,k,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(o=r.copyPrologue(c.statements,s,!1,k)),e.addRange(s,G(void 0,t));var l=a();if(o>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(o)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function G(n,i){for(var a=!1,o=0,s=i.parameters;o0){var l=e.flattenDestructuringBinding(c,k,t,0,r.getGeneratedNameForNode(c));if(e.some(l)){var u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){var _=r.getGeneratedNameForNode(c),f=e.visitNode(c.initializer,k,e.isExpression),p=r.createAssignment(_,f);d=r.createExpressionStatement(p),e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){_=r.cloneNode(c.name),e.setTextRange(_,c.name),e.setEmitFlags(_,48),f=e.visitNode(c.initializer,k,e.isExpression),e.addEmitFlags(f,1584),p=r.createAssignment(_,f),e.setTextRange(p,c),e.setEmitFlags(p,1536);var m=r.createBlock([r.createExpressionStatement(p)]);e.setTextRange(m,c),e.setEmitFlags(m,1953);var g=r.createTypeCheck(r.cloneNode(c.name),"undefined");d=r.createIfStatement(g,m),e.startOnNewLine(d),e.setTextRange(d,c),e.setEmitFlags(d,1050528),n=e.append(n,d)}}else 65536&c.transformFlags&&(a=!0,l=e.flattenDestructuringBinding(c,k,t,1,r.getGeneratedNameForNode(c),!1,!0),e.some(l)&&(u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u),e.setEmitFlags(d,1048576),n=e.append(n,d)))}return n}function X(t){return 106===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function Q(t){return 106===t.expression.kind?function(t,n){return 4096&b?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[t]),"value"),n):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[t]),n)}(t.argumentExpression,t):t}}}(_||(_={})),function(e){e.transformES2019=function(t){var r=t.factory;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,n,t)}));function n(i){return 0==(64&i.transformFlags)?i:295===i.kind?function(i){return i.variableDeclaration?e.visitEachChild(i,n,t):r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock))}(i):e.visitEachChild(i,n,t)}}}(_||(_={})),function(e){e.transformES2020=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){if(0==(32&a.transformFlags))return a;switch(a.kind){case 210:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 208:case 209:return e.isOptionalChain(a)?(u=c(a,!1,!1),e.Debug.assertNotNode(u,e.isSyntheticReference),u):e.visitEachChild(a,i,t);case 223:return 60===a.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a)),e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)}(a):e.visitEachChild(a,i,t);case 217:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 214:return a(t,s,l);case 208:case 209:return function(t,a,o){if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=208===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l}(t,s,l);case 210:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),u=c.expression,d=c.chain,_=s(e.skipPartiallyEmittedExpressions(u),e.isCallChain(d[0]),!1),f=e.isSyntheticReference(_)?_.thisArg:void 0,p=e.isSyntheticReference(_)?_.expression:_,m=r.restoreOuterExpressions(u,p,8);e.isSimpleCopiableExpression(p)||(p=r.createTempVariable(n),m=r.createAssignment(p,m));for(var g,y=p,v=0;v1||!!(null===(_=f[0])||void 0===_?void 0:_.dotDotDotToken),m=[t,r];if(i&&m.push(C(i.initializer)),5===s.jsx){var g=e.getOriginalNode(n);if(g&&e.isSourceFile(g)){void 0===i&&m.push(a.createVoidZero()),m.push(p?a.createTrue():a.createFalse());var y=e.getLineAndCharacterOfPosition(g,d.pos);m.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(y.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(y.character+1))])),m.push(a.createThis())}}var v=e.setTextRange(a.createCallExpression(function(e){var t=function(e){return 5===s.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return l(t)}(p),void 0,m),d);return u&&e.startOnNewLine(v),v}function h(t,o,c,u){var _=N(t),f=t.attributes.properties,p=e.length(f)?D(f):a.createNull(),m=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),g=e.createExpressionForJsxElement(a,m,_,p,e.mapDefined(o,d),u);return c&&e.startOnNewLine(g),g}function x(e,t,r,n){var i;if(t&&t.length){var o=function(e){var t=g(e);return t&&a.createObjectLiteralExpression([t])}(t);o&&(i=o)}return v(l("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function b(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,d),t,c);return o&&e.startOnNewLine(l),l}function D(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return e.map(t,(function(t){return r?(n=t,a.createSpreadAssignment(e.visitNode(n.expression,u,e.isExpression))):T(t);var n}))})));return r&&n.push(r),n}(t,r)):function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,T))})));return e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression()),r&&n.push(a.createObjectLiteralExpression([r])),e.singleOrUndefined(n)||o().createAssignHelper(n)}(t,r)}function S(t){return e.visitNode(t.expression,u,e.isExpression)}function T(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=C(t.initializer);return a.createPropertyAssignment(r,n)}function C(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral(((s=k(o=t.text))===o?void 0:s)||t.text,r);return e.setTextRange(i,t)}var o,s;return 291===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,u,e.isExpression):e.isJsxElement(t)?f(t,!1):e.isJsxSelfClosingElement(t)?p(t,!1):e.isJsxFragment(t)?m(t,!1):e.Debug.failBadSyntaxKind(t)}function E(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function N(t){if(281===t.kind)return N(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function A(t){var r=e.visitNode(t.expression,u,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(_||(_={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){return 0==(512&a.transformFlags)?a:223===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=r.createTempVariable(n),a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a):e.visitEachChild(a,i,t)}}}(_||(_={})),function(e){var t,r,n,i,a,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(i||(i={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(a||(a={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(t){var r,n,i,a,s,l,u=t.factory,d=t.getEmitHelperFactory,_=t.startLexicalEnvironment,f=t.resumeLexicalEnvironment,p=t.endLexicalEnvironment,m=t.hoistVariableDeclaration,g=t.getCompilerOptions(),y=t.getEmitResolver(),v=t.onSubstituteNode,h=t.onEmitNode;function x(t){a=e.append(a,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&l&&e.isFunctionLike(r)){var i=b(32670,8&e.getEmitFlags(r)?81:65);return h(t,r,n),void D(i,0,0)}h(t,r,n)},t.onSubstituteNode=function(t,r){return r=v(t,r),1===t?function(t){switch(t.kind){case 79:return function(t){if(2&l&&!e.isInternalName(t)){var r=y.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=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(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 108:return function(t){return 1&l&&16&i?e.setTextRange(u.createUniqueName("_this",48),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&l&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 205:case 260:case 263:case 257:return e.parent.name===e&&y.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(u.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(t,(function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=b(8064,64),n=[],i=[];_();var o=u.copyPrologue(t.statements,n,!1,C);return e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,o)),a&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(a))),u.mergeLexicalEnvironment(n,p()),K(n,t),D(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s}));function b(e,t){var r=i;return i=32767&(i&~e|t),r}function D(e,t,r){i=-32768&(i&~t|r)|e}function S(e){return 0!=(8192&i)&&250===e.kind&&!e.expression}function T(t){return 0!=(1024&t.transformFlags)||void 0!==s||8192&i&&function(t){return 4194304&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&pe(t)||0!=(33554432&e.getEmitFlags(t))}function C(e){return T(e)?A(e,!1):e}function E(e){return T(e)?A(e,!0):e}function k(t){if(T(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=b(32670,16449),i=A(t,!1);return D(n,98304,0),i}return A(t,!1)}return t}function N(e){return 106===e.kind?Ie(!0):C(e)}function A(n,a){switch(n.kind){case 124:return;case 260:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,w(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,1024)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 228:return function(e){return w(e)}(n);case 166:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 259:return function(r){var n=s;s=void 0;var a=b(32670,65),o=e.visitParameterList(r.parameters,C,t),c=G(r),l=32768&i?u.getLocalName(r):r.name;return D(a,98304,0),s=n,u.updateFunctionDeclaration(r,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(n);case 216:return function(r){16384&r.transformFlags&&!(16384&i)&&(i|=65536);var n=s;s=void 0;var a=b(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,G(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),D(a,0,0),s=n,o}(n);case 215:return function(r){var n=262144&e.getEmitFlags(r)?b(32662,69):b(32670,65),a=s;s=void 0;var o=e.visitParameterList(r.parameters,C,t),c=G(r),l=32768&i?u.getLocalName(r):r.name;return D(n,98304,0),s=a,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(n);case 257:return Y(n);case 79:return F(n);case 258:return function(r){if(3&r.flags||524288&r.transformFlags){3&r.flags&&Me();var n=e.flatMap(r.declarations,1&r.flags?Q:Y),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),524288&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0&&o.push(u.createStringLiteral(a.literal.text)),r=u.createCallExpression(u.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)}(n);case 227:return function(t){return e.visitNode(t.expression,C,e.isExpression)}(n);case 106:return Ie(!1);case 108:return function(e){return 2&i&&!(16384&i)&&(i|=65536),s?2&i?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this")):e}(n);case 233:return function(e){return 103===e.keywordToken&&"target"===e.name.escapedText?(i|=32768,u.createUniqueName("_newTarget",48)):e}(n);case 171:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=$(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(u.createPropertyAssignment(t.name,r),t)}(n);case 174:case 175:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=b(32670,65),o=e.visitParameterList(r.parameters,C,t),c=G(r);return i=174===r.kind?u.updateGetAccessorDeclaration(r,r.modifiers,r.name,o,r.type,c):u.updateSetAccessorDeclaration(r,r.modifiers,r.name,o,c),D(a,98304,0),s=n,i}(n);case 240:return function(r){var n,i=b(0,e.hasSyntacticModifier(r,1)?32:0);if(s&&0==(3&r.declarationList.flags)&&!function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(r)){for(var a=void 0,o=0,c=r.declarationList.declarations;o0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,C,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function B(t,r,n,i){i=e.visitNode(i,C,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function J(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,d=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var _=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(d,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(d,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(d),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?d:u.createSubtract(d,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(_,1048576),e.startOnNewLine(_),a.push(_),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function K(e,t){return!!(65536&i&&216!==t.kind)&&(z(e,t,u.createThis()),!0)}function z(t,r,n){Oe();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function U(t,r,n){if(32768&i){var a=void 0;switch(r.kind){case 216:return t;case 171:case 174:case 175:a=u.createVoidZero();break;case 173:a=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 259:case 215:a=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),102,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,a)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function V(t){return e.setTextRange(u.createEmptyStatement(),t)}function q(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=$(n,n,void 0,i),l=e.visitNode(n.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,d,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var _=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(_,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var f=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(f,n),e.setCommentRange(f,o),e.setEmitFlags(f,48),f}function W(t,r,n){var i=u.createExpressionStatement(H(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function H(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(u,l);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var _=[];if(o){var f=$(o,void 0,void 0,n);e.setSourceMapRange(f,e.getSourceMapRange(o)),e.setEmitFlags(f,512);var p=u.createPropertyAssignment("get",f);e.setCommentRange(p,e.getCommentRange(o)),_.push(p)}if(s){var m=$(s,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(s)),e.setEmitFlags(m,512);var g=u.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(s)),_.push(g)}_.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var y=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,d,u.createObjectLiteralExpression(_,!0)]);return i&&e.startOnNewLine(y),y}function $(r,n,a,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(r)?b(32670,73):b(32670,65),d=e.visitParameterList(r.parameters,C,t),_=G(r);return 32768&i&&!a&&(259===r.kind||215===r.kind)&&(a=u.getGeneratedNameForNode(r)),D(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,a,void 0,d,void 0,_),n),r)}function G(t){var n,i,a,o=!1,s=!1,c=[],l=[],d=t.body;if(f(),e.isBlock(d)&&(a=u.copyStandardPrologue(d.statements,c,0,!1),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedVariableStatement)),o=R(l,t)||o,o=J(l,t,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,C),n=d.statements,e.addRange(l,e.visitNodes(d.statements,C,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(216===t.kind),n=e.moveRangeEnd(d,-1);var _=t.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(_,d,r)?s=!0:o=!0);var m=e.visitNode(d,C,e.isExpression),g=u.createReturnStatement(m);e.setTextRange(g,d),e.moveSyntheticComments(g,d),e.setEmitFlags(g,1440),l.push(g),i=d}if(u.mergeLexicalEnvironment(c,p()),U(c,t,!1),K(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(d)&&e.arrayIsEqualTo(l,d.statements))return d;var y=u.createBlock(e.setTextRange(u.createNodeArray(l),n),o);return e.setTextRange(y,t.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,t.body),y}function X(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,C,t,0,!n):27===r.operatorToken.kind?u.updateBinaryExpression(r,e.visitNode(r.left,E,e.isExpression),r.operatorToken,e.visitNode(r.right,n?E:C,e.isExpression)):e.visitEachChild(r,C,t)}function Q(r){var n=r.name;return e.isBindingPattern(n)?Y(r):!r.initializer&&function(e){var t=y.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(4096&i)&&(!y.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&i))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,C,t)}function Y(r){var n,i=b(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,C,t,0,void 0,0!=(32&i)):e.visitEachChild(r,C,t),D(i,0,0),n}function Z(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(r,n,a,o,c){var l=b(r,n),d=function(r,n,a,o){if(!pe(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,a):u.restoreEnclosingLabel(e.isForStatement(r)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,C,e.isStatement,u.liftToBlock))}(r):e.visitEachChild(r,C,t),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var r;switch(t.kind){case 245:case 246:case 247:var n=t.initializer;n&&258===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=de(t)||_e(t)||fe(t),c=0,l=r.declarations;c=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(_||(_={})),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,l,u,d,_,f=t.factory,p=t.getEmitHelperFactory,m=t.resumeLexicalEnvironment,g=t.endLexicalEnvironment,y=t.hoistFunctionDeclaration,v=t.hoistVariableDeclaration,h=t.getCompilerOptions(),x=e.getEmitScriptTarget(h),b=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=D(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=b.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(f.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var S,T,C,E,k,N,A,P,F,w,I,M,O=1,L=0,R=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||0==(2048&r.transformFlags))return r;var n=e.visitEachChild(r,j,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function j(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 243:case 244:return function(r){return a?(oe(),r=e.visitEachChild(r,j,t),ce(),r):e.visitEachChild(r,j,t)}(r);case 252:return function(r){return a&&re({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,j,t),a&&le(),r}(r);case 253:return function(r){return a&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,j,t),a&&ue(),r}(r);default:return B(r)}}(r):i?B(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 259:return J(t);case 215:return K(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):2048&n?e.visitEachChild(r,j,t):r}function B(r){switch(r.kind){case 259:return J(r);case 215:return K(r);case 174:case 175:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,j,t),i=n,a=o,r}(r);case 240:return function(t){if(1048576&t.transformFlags)$(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?f.inlineExpressions(e.map(c,G)):void 0,e.visitNode(r.condition,j,e.isExpression),e.visitNode(r.incrementor,j,e.isExpression),e.visitIterationBody(r.statement,j,t))}else r=e.visitEachChild(r,j,t);return a&&ce(),r}(r);case 246:return function(r){a&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i0)return he(n,r)}return e.visitEachChild(r,j,t)}(r);case 248:return function(r){if(a){var n=ge(r.label&&e.idText(r.label));if(n>0)return he(n,r)}return e.visitEachChild(r,j,t)}(r);case 250:return function(t){return function(t,r){return e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression(t?[ve(2),t]:[ve(2)])),r)}(e.visitNode(t.expression,j,e.isExpression),t)}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 223:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){return X(r.right)?e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Z();return De(n,e.visitNode(t.left,j,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Te(r,n,t.left),De(n,e.visitNode(t.right,j,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?U(r):f.updateBinaryExpression(r,Y(e.visitNode(r.left,j,e.isExpression)),r.operatorToken,e.visitNode(r.right,j,e.isExpression)):e.visitEachChild(r,j,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 208:a=f.updatePropertyAccessExpression(n,Y(e.visitNode(n.expression,j,e.isLeftHandSideExpression)),n.name);break;case 209:a=f.updateElementAccessExpression(n,Y(e.visitNode(n.expression,j,e.isLeftHandSideExpression)),Y(e.visitNode(n.argumentExpression,j,e.isExpression)));break;default:a=e.visitNode(n,j,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(f.createAssignment(a,e.setTextRange(f.createBinaryExpression(Y(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,j,e.isExpression)),r)),r):f.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,j,e.isExpression))}return e.visitEachChild(r,j,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 354:return function(t){for(var r=[],n=0,i=t.elements;n0&&(Ee(1,[f.createExpressionStatement(f.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,j,e.isExpression)))}return f.inlineExpressions(r)}(r);case 224:return function(r){if(X(r.whenTrue)||X(r.whenFalse)){var n=ee(),i=ee(),a=Z();return Ce(n,e.visitNode(r.condition,j,e.isExpression),r.condition),De(a,e.visitNode(r.whenTrue,j,e.isExpression),r.whenTrue),Se(i),te(n),De(a,e.visitNode(r.whenFalse,j,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,j,t)}(r);case 226:return function(t){var r=ee(),n=e.visitNode(t.expression,j,e.isExpression);return t.asteriskToken?function(e,t){Ee(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(p().createValuesHelper(n),t):n,t):function(e,t){Ee(6,[e],t)}(n,t),te(r),function(t){return e.setTextRange(f.createCallExpression(f.createPropertyAccessExpression(E,"sent"),void 0,[]),t)}(t)}(r);case 206:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 207:return function(t){var r=t.properties,n=t.multiLine,i=Q(r),a=Z();De(a,f.createObjectLiteralExpression(e.visitNodes(r,j,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,(function(r,i){X(i)&&r.length>0&&(be(f.createExpressionStatement(f.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(f,t,i,a),s=e.visitNode(o,j,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}),[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(f.cloneNode(a),a),a.parent)):a),f.inlineExpressions(o)}(r);case 209:return function(r){return X(r.argumentExpression)?f.updateElementAccessExpression(r,Y(e.visitNode(r.expression,j,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,j,e.isExpression)):e.visitEachChild(r,j,t)}(r);case 210:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=f.createCallBinding(r.expression,v,x,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(f.createFunctionApplyCall(Y(e.visitNode(i,j,e.isLeftHandSideExpression)),a,V(r.arguments)),r),r)}return e.visitEachChild(r,j,t)}(r);case 211:return function(r){if(e.forEach(r.arguments,X)){var n=f.createCallBinding(f.createPropertyAccessExpression(r.expression,"bind"),v),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(f.createNewExpression(f.createFunctionApplyCall(Y(e.visitNode(i,j,e.isExpression)),a,V(r.arguments,f.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,j,t)}(r);default:return e.visitEachChild(r,j,t)}}(r):4196352&r.transformFlags?e.visitEachChild(r,j,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(f.createFunctionDeclaration(r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,j,t),void 0,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,j,t),i=n,a=o}return i?void y(r):r}function K(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(f.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,j,t),void 0,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,j,t),i=n,a=o}return r}function z(t){var r=[],n=i,o=a,p=s,y=c,v=l,h=u,x=d,b=_,D=O,k=S,N=T,A=C,P=E;i=!0,a=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,_=void 0,O=1,S=void 0,T=void 0,C=void 0,E=f.createTempVariable(void 0),m();var F=f.copyPrologue(t.statements,r,!1,j);q(t.statements,F);var w=ke();return e.insertStatementsAfterStandardPrologue(r,g()),r.push(f.createReturnStatement(w)),i=n,a=o,s=p,c=y,l=v,u=h,d=x,_=b,O=D,S=k,T=N,C=A,E=P,e.setTextRange(f.createBlock(r,t.multiLine),t)}function U(t){var r=[];return n(t.left),n(t.right),f.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(X(t)&&r.length>0&&(Ee(1,[f.createExpressionStatement(f.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,j,e.isExpression)))}}function V(t,r,n,i){var a,s=Q(t);if(s>0){a=Z();var c=e.visitNodes(t,j,e.isExpression,0,s);De(a,f.createArrayLiteralExpression(r?o([r],c,!0):c)),r=void 0}var l=e.reduceLeft(t,(function(t,n){if(X(n)&&t.length>0){var s=void 0!==a;a||(a=Z()),De(a,s?f.createArrayConcatCall(a,[f.createArrayLiteralExpression(t,i)]):f.createArrayLiteralExpression(r?o([r],t,!0):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,j,e.isExpression)),t}),[],s);return a?f.createArrayConcatCall(a,[f.createArrayLiteralExpression(l,i)]):e.setTextRange(f.createArrayLiteralExpression(r?o([r],l,!0):l,i),n)}function q(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):be(t)}(i);case 249:return function(t){var r=me(t.label?e.idText(t.label):void 0);r>0?Se(r,t):be(t)}(i);case 250:return function(t){!function(e,t){Ee(8,[e],t)}(e.visitNode(t.expression,j,e.isExpression),t)}(i);case 251:return function(t){var r,n,i;X(t)?(r=Y(e.visitNode(t.expression,j,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),W(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):be(e.visitNode(t,j,e.isStatement))}(i);case 252:return function(t){if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:p=ee()}),p),a=Y(e.visitNode(t.expression,j,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(f.createCaseClause(e.visitNode(l.expression,j,e.isExpression),[he(o[c],l.expression)]))}else _++;d.length&&(be(f.createSwitchStatement(a,f.createCaseBlock(d))),u+=d.length,d=[]),_>0&&(u+=_,_=0)}for(Se(s>=0?o[s]:i),c=0;c0);u++)l.push(G(i));l.length&&(be(f.createExpressionStatement(f.inlineExpressions(l))),c+=l.length,l=[])}}function G(t){return e.setSourceMapRange(f.createAssignment(e.setSourceMapRange(f.cloneNode(t.name),t.name),e.visitNode(t.initializer,j,e.isExpression)),t)}function X(e){return!!e&&0!=(1048576&e.transformFlags)}function Q(e){for(var t=e.length,r=0;r=0;r--){var n=u[r];if(!_e(n))break;if(n.labelText===e)return!0}return!1}function me(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(_e(r=u[t])&&r.labelText===e)return r.breakLabel;if(de(r)&&pe(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(de(r=u[t]))return r.breakLabel}return 0}function ge(e){if(u)if(e){for(var t=u.length-1;t>=0;t--)if(fe(r=u[t])&&pe(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(fe(r=u[t]))return r.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===_&&(_=[]);var t=f.createNumericLiteral(-1);return void 0===_[e]?_[e]=[t]:_[e].push(t),t}return f.createOmittedExpression()}function ve(t){var r=f.createNumericLiteral(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 he(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([ve(3),ye(t)])),r)}function xe(){Ee(0)}function be(e){e?Ee(1,[e]):xe()}function De(e,t,r){Ee(2,[e,t],r)}function Se(e,t){Ee(3,[e],t)}function Te(e,t,r){Ee(4,[e,t],r)}function Ce(e,t,r){Ee(5,[e,t],r)}function Ee(e,t,r){void 0===S&&(S=[],T=[],C=[]),void 0===d&&te(ee());var n=S.length;S[n]=e,T[n]=t,C[n]=r}function ke(){L=0,R=0,k=void 0,N=!1,A=!1,P=void 0,F=void 0,w=void 0,I=void 0,M=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function Ne(e){(function(e){if(!A)return!0;if(!d||!_)return!1;for(var t=0;t=0;t--){var r=M[t];F=[f.createWithStatement(r.expression,f.createBlock(F))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;F.unshift(f.createExpressionStatement(f.createCallExpression(f.createPropertyAccessExpression(f.createPropertyAccessExpression(E,"trys"),"push"),void 0,[f.createArrayLiteralExpression([ye(n),ye(i),ye(a),ye(o)])]))),I=void 0}e&&F.push(f.createExpressionStatement(f.createAssignment(f.createPropertyAccessExpression(E,"label"),f.createNumericLiteral(R+1))))}P.push(f.createCaseClause(f.createNumericLiteral(R),F||[])),F=void 0}function Pe(e){if(d)for(var t=0;t=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],_>=2?2:0))));if(K(t)){var o=e.getOriginalNodeId(t);x[o]=z(x[o],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 268:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),f!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(t.name,j(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,j(t))],_>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(X(n.getExportName(t),n.getLocalName(t))),t),t))),K(t)){var i=e.getOriginalNodeId(t);x[i]=U(x[i],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 275:return function(t){if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var a=[];f!==e.ModuleKind.AMD&&a.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,j(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function O(t,r){var a,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),c=[n.createParameterDeclaration(void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);_>=2?a=n.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(a=n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(a,8));var d=n.createNewExpression(n.createIdentifier("Promise"),void 0,[a]);return e.getESModuleInterop(l)?n.createCallExpression(n.createPropertyAccessExpression(d,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):d}function L(t,r){var a,o=!t||e.isSimpleInlineableExpression(t)||r?void 0:n.createTempVariable(c),s=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),u=n.createCallExpression(n.createIdentifier("require"),void 0,o?[o]:t?[t]:[]);e.getESModuleInterop(l)&&(u=i().createImportStarHelper(u)),a=_>=2?n.createArrowFunction(void 0,void 0,[],void 0,void 0,u):n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(u)]));var d=n.createCallExpression(n.createPropertyAccessExpression(s,"then"),void 0,[a]);return void 0===o?d:n.createCommaListExpression([n.createAssignment(o,t),d])}function R(t,r){return!e.getESModuleInterop(l)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?i().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?i().createImportDefaultHelper(r):r}function j(t){var r=e.getExternalModuleNameLiteral(n,t,g,d,u,l),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function B(t,r,i){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s=e.ModuleKind.Node16?function(t){var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=function(t,r){return e.hasSyntacticModifier(r,1)&&(t=e.append(t,a.createExportDeclaration(void 0,r.isTypeOnly,a.createNamedExports([a.createExportSpecifier(!1,void 0,e.idText(r.name))])))),t}(r=e.append(r,e.setOriginalNode(e.setTextRange(a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.cloneNode(t.name),void 0,void 0,m(t))],d>=2?2:0)),t),t)),t),e.singleOrMany(r)}(t):void 0;case 274:return function(e){return e.isExportEquals?void 0:e}(t);case 275:return function(t){if(void 0!==u.module&&u.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=a.getGeneratedNameForNode(r),i=a.createImportDeclaration(void 0,a.createImportClause(!1,void 0,a.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var o=e.isExportNamespaceAsDefaultDeclaration(t)?a.createExportDefault(n):a.createExportDeclaration(void 0,!1,a.createNamedExports([a.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(o,t),[i,o]}(t)}return t}function m(t){var r=e.getExternalModuleNameLiteral(a,t,e.Debug.checkDefined(n),c,l,u),o=[];if(r&&o.push(r),!i){var s=a.createUniqueName("_createRequire",48),_=a.createImportDeclaration(void 0,a.createImportClause(!1,void 0,a.createNamedImports([a.createImportSpecifier(!1,a.createIdentifier("createRequire"),s)])),a.createStringLiteral("module")),f=a.createUniqueName("__require",48),p=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(f,void 0,void 0,a.createCallExpression(a.cloneNode(s),void 0,[a.createPropertyAccessExpression(a.createMetaProperty(100,a.createIdentifier("meta")),a.createIdentifier("url"))]))],d>=2?2:0));i=[_,p]}var m=i[1].declarationList.declarations[0].name;return e.Debug.assertNode(m,e.isIdentifier),a.createCallExpression(a.cloneNode(m),void 0,o)}}}(_||(_={})),function(e){e.transformNodeModule=function(t){var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=function(t,n){return e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):l(t,n):r(t,n)},t.onEmitNode=function(t,r,i){return e.isSourceFile(r)&&(s=r),s?s.impliedNodeFormat===e.ModuleKind.ESNext?o(t,r,i):u(t,r,i):n(t,r,i)},t.enableSubstitution(308),t.enableEmitNotification(308),function(r){return 308===r.kind?d(r):function(r){return t.factory.createBundle(e.map(r.sourceFiles,d),r.prepends)}(r)};function d(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}}(_||(_={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){return{diagnosticMessage:175===t.kind?e.isStatic(t)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 177:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 178:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 171:case 170:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:260===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 259:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 173:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 177:case 182:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 178:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 171:case 170:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 259:case 181:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 175:case 174:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.Debug.formatSyntaxKind(t.parent.kind)))}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 260:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 262:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){return{diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.Debug.formatSyntaxKind(t.kind)));function r(r){var n=function(r){return 257===t.kind||205===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:169===t.kind||208===t.kind||168===t.kind||166===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===t.parent.kind||166===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:260===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:260===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(_||(_={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&166===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var a=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,a,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[i],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function i(t){var i,l,u,d,_,f,p,m,g,y,v,h,x=function(){return e.Debug.fail("Diagnostic emitted without context")},b=x,D=!0,S=!1,T=!1,C=!1,E=!1,k=t.factory,N=t.getEmitHost(),A={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=O(P.isSymbolAccessible(e,t,r,!0));return M(P.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(p||m)&&t.addDiagnostic(e.createDiagnosticForNode(p||m,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"this"))},reportInaccessibleUniqueSymbolError:function(){(p||m)&&t.addDiagnostic(e.createDiagnosticForNode(p||m,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"unique symbol"))},reportCyclicStructureError:function(){(p||m)&&t.addDiagnostic(e.createDiagnosticForNode(p||m,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,L()))},reportPrivateInBaseOfClassExpression:function(r){(p||m)&&t.addDiagnostic(e.createDiagnosticForNode(p||m,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){(p||m)&&t.addDiagnostic(e.createDiagnosticForNode(p||m,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,L(),r))},reportTruncationError:function(){(p||m)&&t.addDiagnostic(e.createDiagnosticForNode(p||m,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:N,trackReferencedAmbientModule:function(t,r){var n=P.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return M(n);var i=e.getSourceFileOfNode(t);y.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){S||(f||(f=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(t){return e.getSourceFileOfNode(t)===r})),s=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r}));if(o&&s)for(var c=0,l=s;c0?e.parameters[0].type:void 0}e.transformDeclarations=i}(_||(_={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformLegacyDecorators),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),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.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}function i(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function a(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return a(t,e.chainBundle)}function c(e){return a(e,(function(e,t){return t}))}function l(e,t){return t}function u(e,t,r){r(e,t)}!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.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:i(t)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(t,r,n,i,a,s,c){for(var d,_,f,p,m,g=new Array(358),y=0,v=[],h=[],x=[],b=[],D=0,S=!1,T=[],C=0,E=l,k=u,N=0,A=[],P={factory:n,getCompilerOptions:function(){return i},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(P)})),startLexicalEnvironment:function(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),v[D]=d,h[D]=_,x[D]=f,b[D]=y,D++,d=void 0,_=void 0,f=void 0,y=0},suspendLexicalEnvironment:function(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),d||_||f){if(_&&(t=o([],_,!0)),d){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}f&&(t=o(t?o([],t,!0):[],f,!0))}return D--,d=v[D],_=h[D],f=x[D],y=b[D],0===D&&(v=[],h=[],x=[],b=[]),t},setLexicalEnvironmentFlags:function(e,t){y=t?y|e:y&~e},getLexicalEnvironmentFlags:function(){return y},hoistVariableDeclaration:function(t){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);d?d.push(r):d=[r],1&y&&(y|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},addInitializationStatement:function(t){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),f?f.push(t):f=[t]},startBlockScope:function(){e.Debug.assert(N>0,"Cannot start a block scope during initialization."),e.Debug.assert(N<2,"Cannot start a block scope after transformation has completed."),T[C]=p,C++,p=void 0},endBlockScope:function(){e.Debug.assert(N>0,"Cannot end a block scope during initialization."),e.Debug.assert(N<2,"Cannot end a block scope after transformation has completed.");var t=e.some(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((function(e){return n.createVariableDeclaration(e)})),1))]:void 0;return C--,p=T[C],0===C&&(T=[]),t},addBlockScopedVariable:function(t){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(N>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n0,"Cannot modify the transformation context during initialization."),e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed.");var t=m;return m=void 0,t},enableSubstitution:function(t){e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification:function(t){e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:J,isEmitNotificationEnabled:K,get onSubstituteNode(){return E},set onSubstituteNode(t){e.Debug.assert(N<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),E=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(N<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic:function(e){A.push(e)}},F=0,w=a;F"],e[8192]=["[","]"],e}();function i(t,r,n,i,o,s){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var d=t.getPrependNodes();if(l.length||d.length){var _=e.factory.createBundle(l,d);if(m=r(c(_,t,i),_))return m}}else{if(!o)for(var f=0,p=l;f0){var r=t.preserveSourceNewlinesStack[t.stackIndex],n=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Le(r),s&&_n(e),o&&Ur(e,n,i,a),null==R||R(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?ue.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):ue.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Je(0,1,t);if(a===qe&&(e.Debug.assertIsDefined(N),a=Ke(1,1,t=i(e.cast(N,e.isExpression))),N=void 0),(a===Kr||a===un||a===Ue)&&e.isBinaryExpression(t))return t;A=i,a(1,t)}}();return Ae(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 308:return pe(r);case 309:return fe(r);case 310:return i=r,a=Te(),o=y,Ne(a,void 0),Ee(4,i,void 0),Ae(),y=o,Ce()}var i,a,o;return me(t,r,n,Te()),Ce()},printList:function(e,t,r){return ge(e,t,r,Te()),Ce()},printFile:pe,printBundle:fe,writeNode:me,writeList:ge,writeFile:Se,writeBundle:De,bundleFileInfo:$};function fe(e){return De(e,Te(),void 0),Ce()}function pe(e){return Se(e,Te(),void 0),Ce()}function me(e,t,r,n){var i=y;Ne(n,void 0),Ee(e,t,r),Ae(),y=i}function ge(e,t,r,n){var i=y;Ne(n,void 0),r&&ke(r),Ut(void 0,t,e),Ae(),y=i}function ye(){return y.getTextPosWithWriteLine?y.getTextPosWithWriteLine():y.getTextPos()}function ve(t,r,n){var i=e.lastOrUndefined($.sections);i&&i.kind===n?i.end=r:$.sections.push({pos:t,end:r,kind:n})}function he(t){if(X&&$&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==Y){var r=Y;return be(y.getTextPos()),Q=ye(),Y="internal",r}}function xe(e){e&&(be(y.getTextPos()),Q=ye(),Y=e)}function be(e){return Q"),tr(),Fe(e.type),kr(e)}(r);case 182:return function(e){Er(e),wt(e,e.modifiers),Qt("new"),tr(),Bt(e,e.typeParameters),Jt(e,e.parameters),tr(),Gt("=>"),tr(),Fe(e.type),kr(e)}(r);case 183:return function(e){Qt("typeof"),tr(),Fe(e.exprName),jt(e,e.typeArguments)}(r);case 184:return function(t){Gt("{");var r=1&e.getEmitFlags(t)?768:32897;Ut(t,t.members,524288|r),Gt("}")}(r);case 185:return function(e){Fe(e.elementType,ue.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Gt("]")}(r);case 186:return function(t){it(22,t.pos,Gt,t);var r=1&e.getEmitFlags(t)?528:657;Ut(t,t.elements,524288|r,ue.parenthesizeElementTypeOfTupleType),it(23,t.elements.end,Gt,t)}(r);case 187:return function(e){Fe(e.type,ue.parenthesizeTypeOfOptionalType),Gt("?")}(r);case 189:return function(e){Ut(e,e.types,516,ue.parenthesizeConstituentTypeOfUnionType)}(r);case 190:return function(e){Ut(e,e.types,520,ue.parenthesizeConstituentTypeOfIntersectionType)}(r);case 191:return function(e){Fe(e.checkType,ue.parenthesizeCheckTypeOfConditionalType),tr(),Qt("extends"),tr(),Fe(e.extendsType,ue.parenthesizeExtendsTypeOfConditionalType),tr(),Gt("?"),tr(),Fe(e.trueType),tr(),Gt(":"),tr(),Fe(e.falseType)}(r);case 192:return function(e){Qt("infer"),tr(),Fe(e.typeParameter)}(r);case 193:return function(e){Gt("("),Fe(e.type),Gt(")")}(r);case 230:return Ze(r);case 194:return void Qt("this");case 195:return function(e){lr(e.operator,Qt),tr();var t=146===e.operator?ue.parenthesizeOperandOfReadonlyTypeOperator:ue.parenthesizeOperandOfTypeOperator;Fe(e.type,t)}(r);case 196:return function(e){Fe(e.objectType,ue.parenthesizeNonArrayTypeOfPostfixType),Gt("["),Fe(e.indexType),Gt("]")}(r);case 197:return function(t){var r=e.getEmitFlags(t);Gt("{"),1&r?tr():(ir(),ar()),t.readonlyToken&&(Fe(t.readonlyToken),146!==t.readonlyToken.kind&&Qt("readonly"),tr()),Gt("["),Re(3,t.typeParameter),t.nameType&&(tr(),Qt("as"),tr(),Fe(t.nameType)),Gt("]"),t.questionToken&&(Fe(t.questionToken),57!==t.questionToken.kind&&Gt("?")),Gt(":"),tr(),Fe(t.type),Xt(),1&r?tr():(ir(),or()),Ut(t,t.members,2),Gt("}")}(r);case 198:return function(e){Ie(e.literal)}(r);case 199:return function(e){Fe(e.dotDotDotToken),Fe(e.name),Fe(e.questionToken),it(58,e.name.end,Gt,e),tr(),Fe(e.type)}(r);case 200:return function(e){Fe(e.head),Ut(e,e.templateSpans,262144)}(r);case 201:return function(e){Fe(e.type),Fe(e.literal)}(r);case 202:return function(e){if(e.isTypeOf&&(Qt("typeof"),tr()),Qt("import"),Gt("("),Fe(e.argument),e.assertions){Gt(","),tr(),Gt("{"),tr(),Qt("assert"),Gt(":"),tr();var t=e.assertions.assertClause.elements;Ut(e.assertions.assertClause,t,526226),tr(),Gt("}")}Gt(")"),e.qualifier&&(Gt("."),Fe(e.qualifier)),jt(e,e.typeArguments)}(r);case 203:return function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(r);case 204:return function(e){Gt("["),Ut(e,e.elements,524880),Gt("]")}(r);case 205:return function(e){Fe(e.dotDotDotToken),e.propertyName&&(Fe(e.propertyName),Gt(":"),tr()),Fe(e.name),Mt(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 236:return function(e){Ie(e.expression),Fe(e.literal)}(r);case 237:return void Xt();case 238:return function(e){et(e,!e.multiLine&&Dr(e))}(r);case 240:return function(e){wt(e,e.modifiers),Fe(e.declarationList),Xt()}(r);case 239:return tt(!1);case 241:return function(t){Ie(t.expression,ue.parenthesizeExpressionOfExpressionStatement),i&&e.isJsonSourceFile(i)&&!e.nodeIsSynthesized(t.expression)||Xt()}(r);case 242:return function(e){var t=it(99,e.pos,Qt,e);tr(),it(20,t,Gt,e),Ie(e.expression),it(21,e.expression.end,Gt,e),Rt(e,e.thenStatement),e.elseStatement&&(ur(e,e.thenStatement,e.elseStatement),it(91,e.thenStatement.end,Qt,e),242===e.elseStatement.kind?(tr(),Fe(e.elseStatement)):Rt(e,e.elseStatement))}(r);case 243:return function(t){it(90,t.pos,Qt,t),Rt(t,t.statement),e.isBlock(t.statement)&&!W?tr():ur(t,t.statement,t.expression),rt(t,t.statement.end),Xt()}(r);case 244:return function(e){rt(e,e.pos),Rt(e,e.statement)}(r);case 245:return function(e){var t=it(97,e.pos,Qt,e);tr();var r=it(20,t,Gt,e);nt(e.initializer),r=it(26,e.initializer?e.initializer.end:r,Gt,e),Lt(e.condition),r=it(26,e.condition?e.condition.end:r,Gt,e),Lt(e.incrementor),it(21,e.incrementor?e.incrementor.end:r,Gt,e),Rt(e,e.statement)}(r);case 246:return function(e){var t=it(97,e.pos,Qt,e);tr(),it(20,t,Gt,e),nt(e.initializer),tr(),it(101,e.initializer.end,Qt,e),tr(),Ie(e.expression),it(21,e.expression.end,Gt,e),Rt(e,e.statement)}(r);case 247:return function(e){var t=it(97,e.pos,Qt,e);tr(),function(e){e&&(Fe(e),tr())}(e.awaitModifier),it(20,t,Gt,e),nt(e.initializer),tr(),it(162,e.initializer.end,Qt,e),tr(),Ie(e.expression),it(21,e.expression.end,Gt,e),Rt(e,e.statement)}(r);case 248:return function(e){it(86,e.pos,Qt,e),Ot(e.label),Xt()}(r);case 249:return function(e){it(81,e.pos,Qt,e),Ot(e.label),Xt()}(r);case 250:return function(e){it(105,e.pos,Qt,e),Lt(e.expression&&st(e.expression),st),Xt()}(r);case 251:return function(e){var t=it(116,e.pos,Qt,e);tr(),it(20,t,Gt,e),Ie(e.expression),it(21,e.expression.end,Gt,e),Rt(e,e.statement)}(r);case 252:return function(e){var t=it(107,e.pos,Qt,e);tr(),it(20,t,Gt,e),Ie(e.expression),it(21,e.expression.end,Gt,e),tr(),Fe(e.caseBlock)}(r);case 253:return function(e){Fe(e.label),it(58,e.label.end,Gt,e),tr(),Fe(e.statement)}(r);case 254:return function(e){it(109,e.pos,Qt,e),Lt(st(e.expression),st),Xt()}(r);case 255:return function(e){it(111,e.pos,Qt,e),tr(),Fe(e.tryBlock),e.catchClause&&(ur(e,e.tryBlock,e.catchClause),Fe(e.catchClause)),e.finallyBlock&&(ur(e,e.catchClause||e.tryBlock,e.finallyBlock),it(96,(e.catchClause||e.tryBlock).end,Qt,e),tr(),Fe(e.finallyBlock))}(r);case 256:return function(e){sr(87,e.pos,Qt),Xt()}(r);case 257:return function(e){var t,r,n,i,a;Fe(e.name),Fe(e.exclamationToken),It(e.type),Mt(e.initializer,null!==(a=null!==(r=null===(t=e.type)||void 0===t?void 0:t.end)&&void 0!==r?r:null===(i=null===(n=e.name.emitNode)||void 0===n?void 0:n.typeNode)||void 0===i?void 0:i.end)&&void 0!==a?a:e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 258:return function(t){Qt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),tr(),Ut(t,t.declarations,528)}(r);case 259:return function(e){lt(e)}(r);case 260:return function(e){mt(e)}(r);case 261:return function(e){wt(e,e.modifiers),Qt("interface"),tr(),Fe(e.name),Bt(e,e.typeParameters),Ut(e,e.heritageClauses,512),tr(),Gt("{"),Ut(e,e.members,129),Gt("}")}(r);case 262:return function(e){wt(e,e.modifiers),Qt("type"),tr(),Fe(e.name),Bt(e,e.typeParameters),tr(),Gt("="),tr(),Fe(e.type),Xt()}(r);case 263:return function(e){wt(e,e.modifiers),Qt("enum"),tr(),Fe(e.name),tr(),Gt("{"),Ut(e,e.members,145),Gt("}")}(r);case 264:return function(t){wt(t,t.modifiers),1024&~t.flags&&(Qt(16&t.flags?"namespace":"module"),tr()),Fe(t.name);var r=t.body;if(!r)return Xt();for(;r&&e.isModuleDeclaration(r);)Gt("."),Fe(r.name),r=r.body;tr(),Fe(r)}(r);case 265:return function(t){Er(t),e.forEach(t.statements,Ar),et(t,Dr(t)),kr(t)}(r);case 266:return function(e){it(18,e.pos,Gt,e),Ut(e,e.clauses,129),it(19,e.clauses.end,Gt,e,!0)}(r);case 267:return function(e){var t=it(93,e.pos,Qt,e);tr(),t=it(128,t,Qt,e),tr(),t=it(143,t,Qt,e),tr(),Fe(e.name),Xt()}(r);case 268:return function(e){wt(e,e.modifiers),it(100,e.modifiers?e.modifiers.end:e.pos,Qt,e),tr(),e.isTypeOnly&&(it(154,e.pos,Qt,e),tr()),Fe(e.name),tr(),it(63,e.name.end,Gt,e),tr(),function(e){79===e.kind?Ie(e):Fe(e)}(e.moduleReference),Xt()}(r);case 269:return function(e){wt(e,e.modifiers),it(100,e.modifiers?e.modifiers.end:e.pos,Qt,e),tr(),e.importClause&&(Fe(e.importClause),tr(),it(158,e.importClause.end,Qt,e),tr()),Ie(e.moduleSpecifier),e.assertClause&&Ot(e.assertClause),Xt()}(r);case 270:return function(e){e.isTypeOnly&&(it(154,e.pos,Qt,e),tr()),Fe(e.name),e.name&&e.namedBindings&&(it(27,e.name.end,Gt,e),tr()),Fe(e.namedBindings)}(r);case 271:return function(e){var t=it(41,e.pos,Gt,e);tr(),it(128,t,Qt,e),tr(),Fe(e.name)}(r);case 277:return function(e){var t=it(41,e.pos,Gt,e);tr(),it(128,t,Qt,e),tr(),Fe(e.name)}(r);case 272:case 276:return function(e){!function(e){Gt("{"),Ut(e,e.elements,525136),Gt("}")}(e)}(r);case 273:case 278:return function(e){!function(e){e.isTypeOnly&&(Qt("type"),tr()),e.propertyName&&(Fe(e.propertyName),tr(),it(128,e.propertyName.end,Qt,e),tr()),Fe(e.name)}(e)}(r);case 274:return function(e){var t=it(93,e.pos,Qt,e);tr(),e.isExportEquals?it(63,t,Yt,e):it(88,t,Qt,e),tr(),Ie(e.expression,e.isExportEquals?ue.getParenthesizeRightSideOfBinaryForOperator(63):ue.parenthesizeExpressionOfExportDefault),Xt()}(r);case 275:return function(e){wt(e,e.modifiers);var t=it(93,e.pos,Qt,e);tr(),e.isTypeOnly&&(t=it(154,t,Qt,e),tr()),e.exportClause?Fe(e.exportClause):t=it(41,t,Gt,e),e.moduleSpecifier&&(tr(),it(158,e.exportClause?e.exportClause.end:t,Qt,e),tr(),Ie(e.moduleSpecifier)),e.assertClause&&Ot(e.assertClause),Xt()}(r);case 296:return function(e){it(130,e.pos,Qt,e),tr(),Ut(e,e.elements,526226)}(r);case 297:return function(t){Fe(t.name),Gt(":"),tr();var r=t.value;0==(512&e.getEmitFlags(r))&&rn(e.getCommentRange(r).pos),Fe(r)}(r);case 279:case 322:case 333:case 334:case 336:case 337:case 338:case 339:case 352:case 356:case 355:return;case 280:return function(e){Qt("require"),Gt("("),Ie(e.expression),Gt(")")}(r);case 11:return function(e){y.writeLiteral(e.text)}(r);case 283:case 286:return function(t){if(Gt("<"),e.isJsxOpeningElement(t)){var r=vr(t.tagName,t);gt(t.tagName),jt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&tr(),Fe(t.attributes),hr(t.attributes,t),fr(r)}Gt(">")}(r);case 284:case 287:return function(t){Gt("")}(r);case 288:return function(e){Fe(e.name),function(e,t,r,n){r&&(t("="),n(r))}(0,Gt,e.initializer,Me)}(r);case 289:return function(e){Ut(e,e.properties,262656)}(r);case 290:return function(e){Gt("{..."),Ie(e.expression),Gt("}")}(r);case 291:return function(t){var r,n;if(t.expression||!oe&&!e.nodeIsSynthesized(t)&&(function(t){var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n=t.pos)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n))){var a=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;a&&y.increaseIndent();var o=it(18,t.pos,Gt,t);Fe(t.dotDotDotToken),Ie(t.expression),it(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||o,Gt,t),a&&y.decreaseIndent()}}(r);case 292:return function(e){it(82,e.pos,Qt,e),tr(),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma),yt(e,e.statements,e.expression.end)}(r);case 293:return function(e){var t=it(88,e.pos,Qt,e);yt(e,e.statements,t)}(r);case 294:return function(e){tr(),lr(e.token,Qt),tr(),Ut(e,e.types,528)}(r);case 295:return function(e){var t=it(83,e.pos,Qt,e);tr(),e.variableDeclaration&&(it(20,t,Gt,e),Fe(e.variableDeclaration),it(21,e.variableDeclaration.end,Gt,e),tr()),Fe(e.block)}(r);case 299:return function(t){Fe(t.name),Gt(":"),tr();var r=t.initializer;0==(512&e.getEmitFlags(r))&&rn(e.getCommentRange(r).pos),Ie(r,ue.parenthesizeExpressionForDisallowedComma)}(r);case 300:return function(e){Fe(e.name),e.objectAssignmentInitializer&&(tr(),Gt("="),tr(),Ie(e.objectAssignmentInitializer,ue.parenthesizeExpressionForDisallowedComma))}(r);case 301:return function(e){e.expression&&(it(25,e.pos,Gt,e),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma))}(r);case 302:return function(e){Fe(e.name),Mt(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(r);case 303:return Ge(r);case 310:case 304:return function(e){for(var t=0,r=e.texts;t=1&&!e.isJsonSourceFile(i)?64:0;Ut(t,t.properties,526226|a|n),r&&or()}(r);case 208:return function(t){Ie(t.expression,ue.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=br(t,t.expression,r),i=br(t,r,t.name);_r(n,!1),28===r.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=Cr(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(t.expression)||y.hasTrailingComment()||y.hasTrailingWhitespace()||Gt("."),t.questionDotToken?Fe(r):it(r.kind,t.expression.end,Gt,t),_r(i,!1),Fe(t.name),fr(n,i)}(r);case 209:return function(e){Ie(e.expression,ue.parenthesizeLeftSideOfAccess),Fe(e.questionDotToken),it(22,e.expression.end,Gt,e),Ie(e.argumentExpression),it(23,e.argumentExpression.end,Gt,e)}(r);case 210:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Gt("("),Ht("0"),Gt(","),tr()),Ie(t.expression,ue.parenthesizeLeftSideOfAccess),r&&Gt(")"),Fe(t.questionDotToken),jt(t,t.typeArguments),Vt(t,t.arguments,2576,ue.parenthesizeExpressionForDisallowedComma)}(r);case 211:return function(e){it(103,e.pos,Qt,e),tr(),Ie(e.expression,ue.parenthesizeExpressionOfNew),jt(e,e.typeArguments),Vt(e,e.arguments,18960,ue.parenthesizeExpressionForDisallowedComma)}(r);case 212:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Gt("("),Ht("0"),Gt(","),tr()),Ie(t.tag,ue.parenthesizeLeftSideOfAccess),r&&Gt(")"),jt(t,t.typeArguments),tr(),Ie(t.template)}(r);case 213:return function(e){Gt("<"),Fe(e.type),Gt(">"),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 214:return function(e){var t=it(20,e.pos,Gt,e),r=vr(e.expression,e);Ie(e.expression,void 0),hr(e.expression,e),fr(r),it(21,e.expression?e.expression.end:t,Gt,e)}(r);case 215:return function(e){Fr(e.name),lt(e)}(r);case 216:return function(e){wt(e,e.modifiers),ut(e,Ye)}(r);case 217:return function(e){it(89,e.pos,Qt,e),tr(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 218:return function(e){it(112,e.pos,Qt,e),tr(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 219:return function(e){it(114,e.pos,Qt,e),tr(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 220:return function(e){it(133,e.pos,Qt,e),tr(),Ie(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(r);case 221:return function(e){lr(e.operator,Yt),function(e){var t=e.operand;return 221===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&tr(),Ie(e.operand,ue.parenthesizeOperandOfPrefixUnary)}(r);case 222:return function(e){Ie(e.operand,ue.parenthesizeOperandOfPostfixUnary),lr(e.operator,Yt)}(r);case 223:return _e(r);case 224:return function(e){var t=br(e,e.condition,e.questionToken),r=br(e,e.questionToken,e.whenTrue),n=br(e,e.whenTrue,e.colonToken),i=br(e,e.colonToken,e.whenFalse);Ie(e.condition,ue.parenthesizeConditionOfConditionalExpression),_r(t,!0),Fe(e.questionToken),_r(r,!0),Ie(e.whenTrue,ue.parenthesizeBranchOfConditionalExpression),fr(t,r),_r(n,!0),Fe(e.colonToken),_r(i,!0),Ie(e.whenFalse,ue.parenthesizeBranchOfConditionalExpression),fr(n,i)}(r);case 225:return function(e){Fe(e.head),Ut(e,e.templateSpans,262144)}(r);case 226:return function(e){it(125,e.pos,Qt,e),Fe(e.asteriskToken),Lt(e.expression&&st(e.expression),ct)}(r);case 227:return function(e){it(25,e.pos,Gt,e),Ie(e.expression,ue.parenthesizeExpressionForDisallowedComma)}(r);case 228:return function(e){Fr(e.name),mt(e)}(r);case 229:case 352:case 355:case 356:return;case 231:return function(e){Ie(e.expression,void 0),e.type&&(tr(),Qt("as"),tr(),Fe(e.type))}(r);case 232:return function(e){Ie(e.expression,ue.parenthesizeLeftSideOfAccess),Yt("!")}(r);case 230:return Ze(r);case 235:return function(e){Ie(e.expression,void 0),e.type&&(tr(),Qt("satisfies"),tr(),Fe(e.type))}(r);case 233:return function(e){sr(e.keywordToken,e.pos,Gt),Gt("."),Fe(e.name)}(r);case 234:return e.Debug.fail("SyntheticExpression should never be printed.");case 281:return function(e){Fe(e.openingElement),Ut(e,e.children,262144),Fe(e.closingElement)}(r);case 282:return function(e){Gt("<"),gt(e.tagName),jt(e,e.typeArguments),tr(),Fe(e.attributes),Gt("/>")}(r);case 285:return function(e){Fe(e.openingFragment),Ut(e,e.children,262144),Fe(e.closingFragment)}(r);case 351:return e.Debug.fail("SyntaxList should not be printed");case 353:return function(t){var r=e.getEmitFlags(t);512&r||t.pos===t.expression.pos||rn(t.expression.pos),Ie(t.expression),1024&r||t.end===t.expression.end||en(t.expression.end)}(r);case 354:return function(e){Vt(e,e.elements,528,void 0)}(r);case 357:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?cr(r,Qt):e.isTokenKind(r.kind)?cr(r,Gt):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),"."))}function qe(t,r){var n=Ke(1,t,r);e.Debug.assertIsDefined(N),r=N,N=void 0,n(t,r)}function We(r){var n=!1,a=309===r.kind?r:void 0;if(!a||V!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;r=o}return!0}(t)?ft:pt;$r(t,t.statements,r),or(),sr(19,t.statements.end,Gt,t),null==R||R(t)}function ft(e){pt(e,!0)}function pt(e,t){var r=Et(e.statements),n=y.getTextPos();We(e),0===r&&n===y.getTextPos()&&t?(or(),Ut(e,e.statements,768),ar()):Ut(e,e.statements,1,void 0,r)}function mt(t){e.forEach(t.members,Pr),Ft(t,t.modifiers),Qt("class"),t.name&&(tr(),we(t.name));var r=65536&e.getEmitFlags(t);r&&ar(),Bt(t,t.typeParameters),Ut(t,t.heritageClauses,0),tr(),Gt("{"),Ut(t,t.members,129),Gt("}"),r&&or()}function gt(e){79===e.kind?Ie(e):Fe(e)}function yt(t,r,n){var a=163969;1===r.length&&(!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(sr(58,n,Gt,t),tr(),a&=-130):it(58,n,Gt,t),Ut(t,r,a)}function vt(t){Ut(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function ht(t){t.typeParameters&&Ut(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Ut(t,e.factory.createNodeArray(t.parameters),33),t.type&&(ir(),tr(),Gt("*"),tr(),Fe(t.type))}function xt(e){Gt("@"),Fe(e)}function bt(t){var r=e.getTextOfJSDocComment(t);r&&(tr(),H(r))}function Dt(e){e&&(tr(),Gt("{"),Fe(e.type),Gt("}"))}function St(t){ir();var r=t.statements;0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])?$r(t,r,Ct):Ct(t)}function Tt(t,r,n,a){if(t){var o=y.getTextPos();er('/// '),$&&$.sections.push({pos:o,end:y.getTextPos(),kind:"no-default-lib"}),ir()}if(i&&i.moduleName&&(er('/// ')),ir()),i&&i.amdDependencies)for(var s=0,c=i.amdDependencies;s')):er('/// ')),ir()}for(var u=0,d=r;u')),$&&$.sections.push({pos:o,end:y.getTextPos(),kind:"reference",data:_.fileName}),ir()}for(var f=0,p=n;f")),$&&$.sections.push({pos:o,end:y.getTextPos(),kind:_.resolutionMode?_.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:_.fileName}),ir()}for(var g=0,v=a;g')),$&&$.sections.push({pos:o,end:y.getTextPos(),kind:"lib",data:_.fileName}),ir()}function Ct(t){var r=t.statements;Er(t),e.forEach(t.statements,Ar),We(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&Tt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),Ut(t,r,1,void 0,-1===n?r.length:n),kr(t)}function Et(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===l;if(u&&32768&o)return null==j||j(a),void(null==B||B(a));15360&o&&(Gt(function(e){return n[15360&e][0]}(o)),u&&a&&rn(a.pos,!0)),null==j||j(a),u?!(1&o)||W&&(!r||i&&e.rangeIsOnSingleLine(r,i))?256&o&&!(524288&o)&&tr():ir():Wt(t,r,a,o,s,c,l,a.hasTrailingComma,a),null==B||B(a),15360&o&&(u&&a&&en(a.end),Gt(function(e){return n[15360&e][1]}(o)))}}function Wt(t,r,n,i,a,o,s,c,l){var u=0==(262144&i),d=u,_=pr(r,n[o],i);_?(ir(_),d=!1):256&i&&tr(),128&i&&ar();for(var f,p,m=function(e,t){return 1===e.length?S:"object"==typeof t?T:C}(t,a),y=!1,v=0;v0?(0==(131&i)&&(ar(),y=!0),ir(x),d=!1):f&&512&i&&tr()}p=he(h),d?rn(e.getCommentRange(h).pos):d=u,g=h.pos,m(h,t,a,v),y&&(or(),y=!1),f=h}var b=f?e.getEmitFlags(f):0,D=oe||!!(1024&b),E=c&&64&i&&16&i;E&&(f&&!D?it(27,f.end,Gt,f):Gt(",")),f&&(r?r.end:-1)!==f.end&&60&i&&!D&&en(E&&(null==l?void 0:l.end)?l.end:f.end),128&i&&or(),xe(p);var k=gr(r,n[o+s-1],i,l);k?ir(k):2097408&i&&tr()}function Ht(e){y.writeLiteral(e)}function $t(e,t){y.writeSymbol(e,t)}function Gt(e){y.writePunctuation(e)}function Xt(){y.writeTrailingSemicolon(";")}function Qt(e){y.writeKeyword(e)}function Yt(e){y.writeOperator(e)}function Zt(e){y.writeParameter(e)}function er(e){y.writeComment(e)}function tr(){y.writeSpace(" ")}function rr(e){y.writeProperty(e)}function nr(e){y.nonEscapingWrite?y.nonEscapingWrite(e):y.write(e)}function ir(e){void 0===e&&(e=1);for(var t=0;t0)}function ar(){y.increaseIndent()}function or(){y.decreaseIndent()}function sr(t,r,n,i){return Z?lr(t,n,r):function(t,r,n,i,a){if(Z||t&&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],l=c&&c.source||b;return i=fn(l,c?c.pos:i),0==(128&s)&&i>=0&&mn(l,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&mn(l,i),i}(i,t,n,r,lr)}function cr(t,r){J&&J(t),r(e.tokenToString(t.kind)),K&&K(t)}function lr(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function ur(t,r,n){if(1&e.getEmitFlags(t))tr();else if(W){var i=br(t,r,n);i?ir(i):tr()}else ir()}function dr(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i-1&&i.indexOf(r)===a+1}(t,r)?yr((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n)})):!W&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(xr(t,n)||xr(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function gr(t,r,n,a){if(2&n||W){if(65536&n)return 1;if(void 0===r)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(r)&&(!r.parent||r.parent===t)){if(W){var o=a&&!e.positionIsSynthesized(a.end)?a.end:r.end;return yr((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)}))}return e.rangeEndPositionsAreOnSameLine(t,r,i)?0:1}if(xr(r,n))return 1}return 1&n&&!(131072&n)?1:0}function yr(t){e.Debug.assert(!!W);var r=t(!0);return 0===r?t(!1):r}function vr(e,t){var r=W&&pr(t,e,0);return r&&_r(r,!1),!!r}function hr(e,t){var r=W&&gr(t,e,0,void 0);r&&ir(r)}function xr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function br(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=Sr(t),r=Sr(r),n=Sr(n),e.getStartsOnNewLine(n)?1:!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:W?yr((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function Dr(t){return 0===t.statements.length&&(!i||e.rangeEndIsOnSameLineAsRangeStart(t,t,i))}function Sr(t){for(;214===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Tr(t,r){if(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t))return wr(t);if(e.isStringLiteral(t)&&t.textSourceNode)return Tr(t.textSourceNode,r);var n=i,a=!!n&&!!t.parent&&!e.nodeIsSynthesized(t);if(e.isMemberName(t)){if(!a||e.getSourceFileOfNode(t)!==e.getOriginalNode(n))return e.idText(t)}else if(e.Debug.assertNode(t,e.isLiteralExpression),!a)return t.text;return e.getSourceTextOfNodeFromSourceFile(n,t,r)}function Cr(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:Tr(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):n||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return Cr(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function Er(t){t&&524288&e.getEmitFlags(t)||(_.push(f),f=0,u.push(d),d=0,c.push(l),l=void 0,p.push(m))}function kr(t){t&&524288&e.getEmitFlags(t)||(f=_.pop(),d=u.pop(),l=c.pop(),m=p.pop())}function Nr(t){m&&m!==e.lastOrUndefined(p)||(m=new e.Set),m.add(t)}function Ar(t){if(t)switch(t.kind){case 238:case 292:case 293:e.forEach(t.statements,Ar);break;case 253:case 251:case 243:case 244:Ar(t.statement);break;case 242:Ar(t.thenStatement),Ar(t.elseStatement);break;case 245:case 247:case 246:Ar(t.initializer),Ar(t.statement);break;case 252:Ar(t.caseBlock);break;case 266:e.forEach(t.clauses,Ar);break;case 255:Ar(t.tryBlock),Ar(t.catchClause),Ar(t.finallyBlock);break;case 295:Ar(t.variableDeclaration),Ar(t.block);break;case 240:Ar(t.declarationList);break;case 258:e.forEach(t.declarations,Ar);break;case 257:case 166:case 205:case 260:case 271:case 277:Fr(t.name);break;case 259:Fr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Ar),Ar(t.body));break;case 203:case 204:case 272:e.forEach(t.elements,Ar);break;case 269:Ar(t.importClause);break;case 270:Fr(t.name),Ar(t.namedBindings);break;case 273:Fr(t.propertyName||t.name)}}function Pr(e){if(e)switch(e.kind){case 299:case 300:case 169:case 171:case 174:case 175:Fr(e.name)}}function Fr(t){t&&(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t)?wr(t):e.isBindingPattern(t)&&Ar(t))}function wr(t){if(4==(7&t.autoGenerateFlags))return Ir(e.getNodeForGeneratedName(t),e.isPrivateIdentifier(t),t.autoGenerateFlags,t.autoGeneratePrefix,t.autoGenerateSuffix);var r=t.autoGenerateId;return o[r]||(o[r]=function(t){var r=e.formatGeneratedNamePart(t.autoGeneratePrefix,wr),n=e.formatGeneratedNamePart(t.autoGenerateSuffix);switch(7&t.autoGenerateFlags){case 1:return jr(0,!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),r,n);case 2:return e.Debug.assertNode(t,e.isIdentifier),jr(268435456,!!(8&t.autoGenerateFlags),!1,r,n);case 3:return Br(e.idText(t),32&t.autoGenerateFlags?Or:Mr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),r,n)}return e.Debug.fail("Unsupported GeneratedIdentifierKind: ".concat(e.Debug.formatEnum(7&t.autoGenerateFlags,e.GeneratedIdentifierFlags,!0),"."))}(t))}function Ir(t,r,n,i,o){var s=e.getNodeId(t);return a[s]||(a[s]=function(t,r,n,i,a){switch(t.kind){case 79:case 80:return Br(Tr(t),Mr,!!(16&n),!!(8&n),r,i,a);case 264:case 263:return e.Debug.assert(!i&&!a&&!r),function(t){var r=Tr(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:Br(r,Mr,!1,!1,!1,"","")}(t);case 269:case 275:return e.Debug.assert(!i&&!a&&!r),function(t){var r=e.getExternalModuleName(t);return Br(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module",Mr,!1,!1,!1,"","")}(t);case 259:case 260:case 274:return e.Debug.assert(!i&&!a&&!r),Br("default",Mr,!1,!1,!1,"","");case 228:return e.Debug.assert(!i&&!a&&!r),Br("class",Mr,!1,!1,!1,"","");case 171:case 174:case 175:return function(t,r,n,i){return e.isIdentifier(t.name)?Ir(t.name,r):jr(0,!1,r,n,i)}(t,r,i,a);case 164:return jr(0,!0,r,i,a);default:return jr(0,!1,r,i,a)}}(t,r,null!=n?n:0,e.formatGeneratedNamePart(i,wr),e.formatGeneratedNamePart(o)))}function Mr(e){return Or(e)&&!s.has(e)&&!(m&&m.has(e))}function Or(t){return!i||e.isFileLevelUniqueName(i,t,P)}function Lr(e){var t;switch(e){case"":return f;case"#":return d;default:return null!==(t=null==l?void 0:l.get(e))&&void 0!==t?t:0}}function Rr(t,r){switch(t){case"":f=r;break;case"#":d=r;break;default:null!=l||(l=new e.Map),l.set(t,r)}}function jr(t,r,n,i,a){i.length>0&&35===i.charCodeAt(0)&&(i=i.slice(1));var o=e.formatGeneratedName(n,i,"",a),s=Lr(o);if(t&&!(s&t)){var c=268435456===t?"_i":"_n";if(Mr(l=e.formatGeneratedName(n,i,c,a)))return s|=t,r&&Nr(l),Rr(o,s),l}for(;;){var l,u=268435455&s;if(s++,8!==u&&13!==u)if(c=u<26?"_"+String.fromCharCode(97+u):"_"+(u-26),Mr(l=e.formatGeneratedName(n,i,c,a)))return r&&Nr(l),Rr(o,s),l}}function Br(t,r,n,i,a,o,c){if(void 0===r&&(r=Mr),t.length>0&&35===t.charCodeAt(0)&&(t=t.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n&&r(u=e.formatGeneratedName(a,o,t,c)))return i?Nr(u):s.add(u),u;95!==t.charCodeAt(t.length-1)&&(t+="_");for(var l=1;;){var u;if(r(u=e.formatGeneratedName(a,o,t+l,c)))return i?Nr(u):s.add(u),u;l++}}function Jr(e){return Br(e,Or,!0,!1,!1,"","")}function Kr(e,t){var r=Ke(2,e,t),n=re,i=ne,a=ie;zr(t),r(e,t),Ur(t,n,i,a)}function zr(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){ce(),ae=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||Gr(n,352!==t.kind),(!a||n>=0&&0!=(512&r))&&(re=n),(!o||i>=0&&0!=(1024&r))&&(ne=i,258===t.kind&&(ie=i))),e.forEach(e.getSyntheticLeadingComments(t),qr),le()}(t,r,n.pos,n.end),2048&r&&(oe=!0)}function Ur(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(oe=!1),Vr(t,a,o.pos,o.end,r,n,i);var s=e.getTypeNode(t);s&&Vr(t,a,s.pos,s.end,r,n,i)}function Vr(t,r,n,i,a,o,s){ce();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Wr),(n>0||i>0)&&n!==i&&(re=a,ne=o,ie=s,c||352===t.kind||function(e){sn(e,tn)}(i)),le()}function qr(e){(e.hasLeadingNewline||2===e.kind)&&y.writeLine(),Hr(e),e.hasTrailingNewLine||2===e.kind?y.writeLine():y.writeSpace(" ")}function Wr(e){y.isAtStartOfLine()||y.writeSpace(" "),Hr(e),e.hasTrailingNewLine&&y.writeLine()}function Hr(t){var r=function(e){return 3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text)}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,y,0,r.length,U)}function $r(t,r,n){ce();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=oe||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=r,(o=i&&e.emitDetachedComments(i.text,Pe(),y,cn,a,U,oe))&&(k?k.push(o):k=[o])),le(),2048&l&&!oe?(oe=!0,n(t),oe=!1):n(t),ce(),u||(Gr(r.end,!0),ae&&!y.isAtStartOfLine()&&y.writeLine()),le()}function Gr(e,t){ae=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?on(e,Qr):on(e,Zr):0===e&&on(e,Xr)}function Xr(e,t,r,n,i){ln(e,t)&&Zr(e,t,r,n,i)}function Qr(e,t,r,n,i){ln(e,t)||Zr(e,t,r,n,i)}function Yr(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function Zr(t,r,n,a,o){i&&Yr(i.text,t)&&(ae||(e.emitNewLineBeforeLeadingCommentOfPosition(Pe(),y,o,t),ae=!0),pn(t),e.writeCommentRange(i.text,Pe(),y,t,r,U),pn(r),a?y.writeLine():3===n&&y.writeSpace(" "))}function en(e){oe||-1===e||Gr(e,!0)}function tn(t,r,n,a){i&&Yr(i.text,t)&&(y.isAtStartOfLine()||y.writeSpace(" "),pn(t),e.writeCommentRange(i.text,Pe(),y,t,r,U),pn(r),a&&y.writeLine())}function rn(e,t,r){oe||(ce(),sn(e,t?tn:r?nn:an),le())}function nn(t,r,n){i&&(pn(t),e.writeCommentRange(i.text,Pe(),y,t,r,U),pn(r),2===n&&y.writeLine())}function an(t,r,n,a){i&&(pn(t),e.writeCommentRange(i.text,Pe(),y,t,r,U),pn(r),a?y.writeLine():y.writeSpace(" "))}function on(t,r){!i||-1!==re&&t===re||(function(t){return void 0!==k&&e.last(k).nodePos===t}(t)?function(t){if(i){var r=e.last(k).detachedCommentEndPos;k.length-1?k.pop():k=void 0,e.forEachLeadingCommentRange(i.text,r,t,r)}}(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function sn(t,r){i&&(-1===ne||t!==ne&&t!==ie)&&e.forEachTrailingCommentRange(i.text,t,r)}function cn(t,r,n,a,o,s){i&&Yr(i.text,a)&&(pn(a),e.writeCommentRange(t,r,n,a,o,s),pn(o))}function ln(t,r){return!!i&&e.isRecognizedTripleSlashComment(i.text,t,r)}function un(e,t){var r=Ke(3,e,t);dn(t),r(e,t),_n(t)}function dn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&x&&x.appendSourceMap(y.getLine(),y.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||b;352!==t.kind&&0==(16&r)&&n.pos>=0&&mn(n.source||b,fn(a,n.pos)),64&r&&(Z=!0)}}function _n(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(Z=!1),352!==t.kind&&0==(32&r)&&n.end>=0&&mn(n.source||b,n.end))}function fn(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function pn(t){if(!(Z||e.positionIsSynthesized(t)||yn(b))){var r=e.getLineAndCharacterOfPosition(b,t),n=r.line,i=r.character;x.addMapping(y.getLine(),y.getColumn(),ee,n,i,void 0)}}function mn(e,t){if(e!==b){var r=b,n=ee;gn(e),pn(t),function(e,t){b=e,ee=t}(r,n)}else pn(t)}function gn(e){Z||(b=e,e!==D?yn(e)||(ee=x.addSource(e.fileName),t.inlineSources&&x.setSourceContent(ee,e.text),D=e,te=ee):ee=te)}function yn(t){return e.fileExtensionIs(t.fileName,".json")}}function S(e,t,r,n){t(e)}function T(e,t,r,n){t(e,r.select(n))}function C(e,t,r,n){t(e,r)}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=i,e.getTsBuildInfoEmitOutputFilePath=a,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=_,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=function(t,r){var n=p(),i=n.addOutput,o=n.getOutputs;if(e.outFile(t.options))m(t,i);else{for(var s=e.memoize((function(){return v(t,r)})),c=0,l=t.fileNames;c=0}function _(e){return t.realpath?t.realpath(e):e}function f(t,r,n){var i=t.sortedAndCanonicalizedFiles,o=a(r);if(n)e.insertSorted(i,o,e.compareStringsCaseSensitive)&&t.files.push(r);else{var s=e.binarySearch(i,o,e.identity,e.compareStringsCaseSensitive);if(s>=0){i.splice(s,1);var c=t.files.findIndex((function(e){return a(e)===o}));t.files.splice(c,1)}}}function p(){i.clear()}},(r=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[r.None=0]="None",r[r.Partial=1]="Partial",r[r.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=function(t,r,n,i,a){var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach((function(e,r){s.has(r)||(e.projects.delete(t),e.close())})),s.forEach((function(r,a){var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close:function(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=function(e,t){t.forEach((function(t){t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach((function(i,a){var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((function(e){return n(e)===r})))&&e(t,a,n)}))},e.updatePackageJsonWatch=function(t,r,n){var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,r,i){function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:a,onDeleteValue:n,onExistingValue:function(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,a(n,r)))}})},e.isIgnoredFileFromWildCardWatching=function(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,d=t.writeLog,_=t.toPath,f=e.removeIgnoredPath(i);if(!f)return d("Project: ".concat(a," Detected ignored path: ").concat(n)),!0;if((i=f)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return d("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(n)),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: ".concat(a," Detected excluded file: ").concat(n)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.isDeclarationFileName(i)){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var p=e.removeFileExtension(i),m=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,g=m||e.isArray(s)?void 0:s;return!(!y(p+".ts")&&!y(p+".tsx")||(d("Project: ".concat(a," Detected output file: ").concat(n)),0));function y(t){return m?!!m.getSourceFileByPath(t):g?g.getState().fileInfos.has(t):!!e.find(s,(function(e){return _(e)===t}))}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(r,n,i,a){e.setSysLog(n===t.Verbose?i:e.noop);var s={watchFile:function(e,t,n,i){return r.watchFile(e,t,n,i)},watchDirectory:function(e,t,n,i){return r.watchDirectory(e,t,0!=(1&n),i)}},c=n!==t.None?{watchFile:_("watchFile"),watchDirectory:_("watchDirectory")}:void 0,l=n===t.Verbose?{watchFile:function(e,t,r,n,o,s){i("FileWatcher:: Added:: ".concat(f(e,r,n,o,s,a)));var l=c.watchFile(e,t,r,n,o,s);return{close:function(){i("FileWatcher:: Close:: ".concat(f(e,r,n,o,s,a))),l.close()}}},watchDirectory:function(t,r,n,o,s,l){var u="DirectoryWatcher:: Added:: ".concat(f(t,n,o,s,l,a));i(u);var d=e.timestamp(),_=c.watchDirectory(t,r,n,o,s,l),p=e.timestamp()-d;return i("Elapsed:: ".concat(p,"ms ").concat(u)),{close:function(){var r="DirectoryWatcher:: Close:: ".concat(f(t,n,o,s,l,a));i(r);var c=e.timestamp();_.close();var u=e.timestamp()-c;i("Elapsed:: ".concat(u,"ms ").concat(r))}}}}:c||s,u=n===t.Verbose?function(e,t,r,n,o){return i("ExcludeWatcher:: Added:: ".concat(f(e,t,r,n,o,a))),{close:function(){return i("ExcludeWatcher:: Close:: ".concat(f(e,t,r,n,o,a)))}}}:e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(t){return function(n,i,a,o,s,c){var d;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(d=r.getCurrentDirectory)||void 0===d?void 0:d.call(r))||"")?u(n,a,o,s,c):l[t].call(void 0,n,i,a,o,s,c)}}function _(t){return function(r,n,c,l,u,d){return s[t].call(void 0,r,(function(){for(var s=[],_=0;_=4,v=(p+1+"").length;y&&(v=Math.max("...".length,v));for(var h="",x=u;x<=p;x++){h+=o.getNewLine(),y&&u+11}))&&ar(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(J.useDefineForClassFields&&0===_&&ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),J.checkJs&&!e.getAllowJSCompilerOption(J)&&le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),J.emitDeclarationOnly&&(e.getEmitDeclarations(J)||ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),J.noEmit&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),J.emitDecoratorMetadata&&!J.experimentalDecorators&&ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),J.jsxFactory?(J.reactNamespace&&ar(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==J.jsx&&5!==J.jsx||ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+J.jsx)),e.parseIsolatedEntityName(J.jsxFactory,_)||or("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,J.jsxFactory)):J.reactNamespace&&!e.isIdentifierText(J.reactNamespace,_)&&or("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,J.reactNamespace),J.jsxFragmentFactory&&(J.jsxFactory||ar(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==J.jsx&&5!==J.jsx||ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+J.jsx)),e.parseIsolatedEntityName(J.jsxFragmentFactory,_)||or("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,J.jsxFragmentFactory)),J.reactNamespace&&(4!==J.jsx&&5!==J.jsx||ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+J.jsx))),J.jsxImportSource&&2===J.jsx&&ar(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+J.jsx)),J.preserveValueImports&&e.getEmitModuleKind(J)=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&v(o,r)),i=n&&U.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=V.get(t);return!!a&&(e.isTraceEnabled(J,ie)&&e.trace(ie,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function tt(t){return{getPrependNodes:it,getCanonicalFileName:$t,getCommonSourceDirectory:qe.getCommonSourceDirectory,getCompilerOptions:qe.getCompilerOptions,getCurrentDirectory:function(){return ue},getNewLine:function(){return ie.getNewLine()},getSourceFile:qe.getSourceFile,getSourceFileByPath:qe.getSourceFileByPath,getSourceFiles:qe.getSourceFiles,getLibFileFromReference:qe.getLibFileFromReference,isSourceFileFromExternalLibrary:at,getResolvedProjectReferenceToRedirect:jt,getProjectReferenceRedirect:Ot,isSourceOfProjectReferenceRedirect:Kt,getSymlinkCache:fr,writeFile:t||rt,isEmitBlocked:st,readFile:function(e){return ie.readFile(e)},fileExists:function(t){var r=Ye(t);return!!lt(r)||!e.contains(ye,r)&&ie.fileExists(t)},useCaseSensitiveFileNames:function(){return ie.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return qe.getProgramBuildInfo&&qe.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return qe.getSourceFileFromReference(e,t)},redirectTargetsMap:Te,getFileIncludeReasons:qe.getFileIncludeReasons,createHash:e.maybeBind(ie,ie.createHash)}}function rt(e,t,r,n,i,a){ie.writeFile(e,t,r,n,i,a)}function nt(){return ve}function it(){return F(z,(function(e,t){var r;return null===(r=ve[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=Ye(e),r=lt(t);return r?r.text:Ee.has(t)?void 0:ie.readFile(t)}))}function at(e){return!!Y.get(e.path)}function ot(){return O||(O=e.createTypeChecker(qe))}function st(e){return fe.has(Ye(e))}function ct(e){return lt(Ye(e))}function lt(e){return Ee.get(e)||void 0}function ut(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(qe.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function dt(t){var r;if(e.skipTypeChecking(t,J,qe))return e.emptyArray;var n=le.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?yt(t,t.commentDirectives,n).diagnostics:n}function _t(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return ft((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,(function(t,n){switch(e.canHaveModifiers(n)&&n.modifiers===t&&e.some(t,e.isDecorator)&&!J.experimentalDecorators&&r.push(a(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(t===n.typeParameters)return r.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(t===n.modifiers)return function(t,n){for(var i=0,o=t;i=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}));return{diagnostics:a,directives:i}}function vt(e,t){return xt(e,t,H,ht)}function ht(t,r){return ft((function(){var n=ot().getEmitResolver(t,r);return e.getDeclarationDiagnostics(tt(e.noop),n,t)||e.emptyArray}))}function xt(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function bt(e,t){return e.isDeclarationFile?[]:vt(e,t)}function Dt(t,r,n,i){Nt(e.normalizePath(t),r,n,void 0,i)}function St(e,t){return e.fileName===t.fileName}function Tt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Ct(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Et(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((J.isolatedModules||o)&&!t.isDeclarationFile){J.importHelpers&&(r=[Ct(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(J,t),J);s&&(r||(r=[])).push(Ct(s,t))}for(var c=0,l=t.statements;c=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),Ce||0!==X||t.isDeclarationFile||(Ce=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var _=0,f=d.statements;_0),Object.defineProperties(c,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),c}(S,b,t,c,Ye(t),f,x);return Te.add(S.path,t),Mt(C,c,_),It(C,i),Se.set(c,e.packageIdToPackageName(a)),m.push(C),C}b&&(De.set(D,b),Se.set(c,e.packageIdToPackageName(a)))}if(Mt(b,c,_),b){if(Y.set(c,X>0),b.fileName=t,b.path=c,b.resolvedPath=Ye(t),b.originalFileName=f,b.packageJsonLocations=(null===(s=x.packageJsonLocations)||void 0===s?void 0:s.length)?x.packageJsonLocations:void 0,b.packageJsonScope=x.packageJsonScope,It(b,i),ie.useCaseSensitiveFileNames()){var E=e.toFileNameLowerCase(c),k=ke.get(E);k?Pt(t,k,i):ke.set(E,b)}oe=oe||b.hasNoDefaultLib&&!n,J.noResolve||(Ut(b,r),Vt(b)),J.noLib||Ht(b),Gt(b),r?p.push(b):m.push(b)}return b}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function wt(t,r,n,i){var a=k(e.getNormalizedAbsolutePath(t,ue),null==r?void 0:r.getPackageJsonInfoCache(),n,i),o=e.getEmitScriptTarget(i),c=e.getSetExternalModuleIndicator(i);return"object"==typeof a?s(s({},a),{languageVersion:o,setExternalModuleIndicator:c}):{languageVersion:o,impliedNodeFormat:a,setExternalModuleIndicator:c}}function It(e,t){e&&q.add(e.path,t)}function Mt(e,t,r){r?(Ee.set(r,e),Ee.set(t,e||!1)):Ee.set(t,e)}function Ot(e){var t=Lt(e);return t&&Rt(t,e)}function Lt(t){if(ve&&ve.length&&!e.isDeclarationFileName(t)&&!e.fileExtensionIs(t,".json"))return jt(t)}function Rt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!ie.useCaseSensitiveFileNames())}function jt(t){void 0===xe&&(xe=new e.Map,Bt((function(e){Ye(J.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return xe.set(Ye(t),e.sourceFile.path)}))})));var r=xe.get(Ye(t));return r&&zt(r)}function Bt(t){return e.forEachResolvedProjectReference(ve,t)}function Jt(t){if(e.isDeclarationFileName(t))return void 0===be&&(be=new e.Map,Bt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");be.set(Ye(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!ie.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.isDeclarationFileName(r)&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!ie.useCaseSensitiveFileNames(),i);be.set(Ye(n),r)}}))}}))),be.get(t)}function Kt(e){return Ne&&!!jt(e)}function zt(e){if(he)return he.get(e)||void 0}function Ut(r,n){e.forEach(r.referencedFiles,(function(i,a){Nt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function Vt(t){var r=t.typeReferenceDirectives;if(r)for(var n=$e(r,t),i=0;iG,f=d&&!I(a,s)&&!a.noResolve&&op?e.createDiagnosticForNodeInSourceFile(f,m.elements[p],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!J.types)return;i=ir("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=ir("lib",J.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var g=e.forEachEntry(e.targetOptionDeclaration.type,(function(t,r){return t===e.getEmitScriptTarget(J)?r:void 0}));i=g?(o=g,(s=rr("target"))&&e.firstDefined(s,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(J.configFile,i,a)}}(t))),t===r&&(r=void 0)}}function Yt(e,t,r,n){(R||(R=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Zt(e,t,r){le.add(Qt(e,void 0,t,r))}function er(t,r,n,i,a,o){for(var s=!0,c=0,l=nr();cr&&(le.add(e.createDiagnosticForNodeInSourceFile(J.configFile,f.elements[r],n,i,a,o)),s=!1)}}s&&le.add(e.createCompilerDiagnostic(n,i,a,o))}function tr(t,r,n,i){for(var a=!0,o=0,s=nr();or?le.add(e.createDiagnosticForNodeInSourceFile(t||J.configFile,o.elements[r],n,i,a)):le.add(e.createCompilerDiagnostic(n,i,a))}function cr(t,r,n,i,a,o,s){var c=lr();(!c||!ur(c,t,r,n,i,a,o,s))&&le.add(e.createCompilerDiagnostic(i,a,o,s))}function lr(){if(void 0===Z){Z=!1;var t=e.getTsConfigObjectLiteralExpression(J.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var s=t.getTypeChecker(),c=0,l=r.imports;c0)for(var _=0,f=r.referencedFiles;_1&&D(b)}return i;function D(t){if(t.declarations)for(var n=0,i=t.declarations;n0;){var d=l.pop();if(!c.has(d)){var _=r.getSourceFileByPath(d);c.set(d,_),_&&u(t,r,_,i,a,o)&&l.push.apply(l,f(t,_.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(c.values(),(function(e){return e})))}t.createManyToManyPathMap=r,t.canReuseOldState=c,t.create=function(t,n,i,a){var o,l,u,d=new e.Map,_=t.getCompilerOptions().module!==e.ModuleKind.None?r():void 0,f=_?r():void 0,m=c(_,i);t.getTypeChecker();for(var g=0,y=t.getSourceFiles();g0;){var d=l.pop();if(!c.has(d)){if(c.set(d,!0),f(t,d,n,i,a,o))return;if(u(t,d,n,i,a,o),_(t,d)){var m=e.Debug.checkDefined(t.program).getSourceFileByPath(d);l.push.apply(l,e.BuilderState.getReferencedByPaths(t,m.resolvedPath))}}}}var g=new e.Set;null===(s=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===s||s.forEach((function(r){if(f(t,r,n,i,a,o))return!0;var s=t.referencedMap.getKeys(r);return s&&e.forEachKey(s,(function(e){return p(t,e,g,n,i,a,o)}))}))}}(t,r,n,i,a,o)}function u(t,r,n,i,a,o){if(d(t,r),!t.changedFilesSet.has(r)){var s=e.Debug.checkDefined(t.program),c=s.getSourceFileByPath(r);c&&(e.BuilderState.updateShapeSignature(t,s,c,n,i,a,!o.disableUseFileVersionAsSignature),e.getEmitDeclarations(t.compilerOptions)&&E(t,r,0))}}function d(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function _(t,r){var n=e.Debug.checkDefined(t.oldSignatures).get(r)||void 0;return e.Debug.checkDefined(t.fileInfos.get(r)).signature!==n}function f(t,r,n,i,a,o){var s;return!!(null===(s=t.fileInfos.get(r))||void 0===s?void 0:s.affectsGlobalScope)&&(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach((function(e){return u(t,e.resolvedPath,n,i,a,o)})),c(t),!0)}function p(t,r,n,i,a,o,s){var c,l;if(e.tryAddToSet(n,r)){if(f(t,r,i,a,o,s))return!0;u(t,r,i,a,o,s),null===(c=t.exportedModulesMap.getKeys(r))||void 0===c||c.forEach((function(e){return p(t,e,n,i,a,o,s)})),null===(l=t.referencedMap.getKeys(r))||void 0===l||l.forEach((function(e){return!n.has(e)&&u(t,e,i,a,o,s)}))}}function m(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),t.buildInfoEmitPending=!0,void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?t.affectedFilesPendingEmitIndex++:t.affectedFilesIndex++)}function g(e,t,r){return m(e,r),{result:t,affected:r}}function y(e,t,r,n,i,a){return m(e,r,n,i,a),{result:t,affected:r}}function v(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function h(t){return!!e.outFile(t.options||{})}function x(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function b(t,r){return e.Debug.assert(!!t.length),t.map((function(e){var t=D(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return D(e,r)})):[]:void 0,t}))}function D(e,t){var r=e.file;return s(s({},e),{file:r?t(r.resolvedPath):void 0})}function S(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function T(t,r,n,i,a){var o,s;return r=S(r,a),(null===(o=null==a?void 0:a.diagnostics)||void 0===o?void 0:o.length)&&(r+=a.diagnostics.map((function(r){return"".concat(function(r){return r.file.resolvedPath===t.resolvedPath?"(".concat(r.start,",").concat(r.length,")"):(void 0===s&&(s=e.getDirectoryPath(t.resolvedPath)),"".concat(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,r.file.resolvedPath,i)),"(").concat(r.start,",").concat(r.length,")"))}(r)).concat(e.DiagnosticCategory[r.category]).concat(r.code,": ").concat(c(r.messageText))})).join("\n")),(null!=n?n:e.generateDjb2Hash)(r);function c(t){return e.isString(t)?t:void 0===t?"":t.next?t.messageText+t.next.map(c).join("\n"):t.messageText}}function C(t,r,n){return(null!=r?r:e.generateDjb2Hash)(S(t,n))}function E(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function k(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function N(t,r){return{getState:e.notImplemented,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t().program},releaseProgram:function(){return t().program=void 0},getCompilerOptions:function(){return t().compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t().program)}}(r=e.BuilderFileEmit||(e.BuilderFileEmit={}))[r.DtsOnly=0]="DtsOnly",r[r.Full=1]="Full",e.isProgramBundleEmitBuildInfo=h,function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.computeSignatureWithDiagnostics=T,e.computeSignature=C,e.createBuilderProgram=function(r,s){var c=s.newProgram,l=s.host,u=s.oldProgram,d=s.configFileParsingDiagnostics,_=u&&u.getState();if(_&&c===_.program&&d===c.getConfigFileParsingDiagnostics())return c=void 0,_=void 0,u;var f=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),p=e.maybeBind(l,l.createHash),h=function(t,r,i,a){var o,s,c=e.BuilderState.create(t,r,i,a);c.program=t;var l=t.getCompilerOptions();c.compilerOptions=l;var u=e.outFile(l);u?l.composite&&(null==i?void 0:i.outSignature)&&u===e.outFile(null==i?void 0:i.compilerOptions)&&(c.outSignature=null==i?void 0:i.outSignature):c.semanticDiagnosticsPerFile=new e.Map,c.changedFilesSet=new e.Set,c.latestChangedDtsFile=l.composite?null==i?void 0:i.latestChangedDtsFile:void 0;var d=e.BuilderState.canReuseOldState(c.referencedMap,i),_=d?i.compilerOptions:void 0,f=d&&i.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(l,_),p=l.composite&&(null==i?void 0:i.emitSignatures)&&!u&&!e.compilerOptionsAffectDeclarationPath(l,i.compilerOptions);d&&(null===(o=i.changedFilesSet)||void 0===o||o.forEach((function(e){return c.changedFilesSet.add(e)})),!u&&i.affectedFilesPendingEmit&&(c.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),c.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),c.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,c.seenAffectedFiles=new e.Set));var m=c.referencedMap,g=d?i.referencedMap:void 0,y=f&&!l.skipLibCheck==!_.skipLibCheck,v=y&&!l.skipDefaultLibCheck==!_.skipDefaultLibCheck;return c.fileInfos.forEach((function(a,o){var s,l,u,_;if(!d||!(s=i.fileInfos.get(o))||s.version!==a.version||s.impliedFormat!==a.impliedFormat||(u=l=m&&m.getValues(o))!==(_=g&&g.getValues(o))&&(void 0===u||void 0===_||u.size!==_.size||e.forEachKey(u,(function(e){return!_.has(e)})))||l&&e.forEachKey(l,(function(e){return!c.fileInfos.has(e)&&i.fileInfos.has(e)})))c.changedFilesSet.add(o);else if(f){var h=t.getSourceFileByPath(o);if(h.isDeclarationFile&&!y)return;if(h.hasNoDefaultLib&&!v)return;var x=i.semanticDiagnosticsPerFile.get(o);x&&(c.semanticDiagnosticsPerFile.set(o,i.hasReusableDiagnostic?function(t,r,i){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((function(e){var t=n(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var i=e.relatedInformation;return t.relatedInformation=i?i.length?i.map((function(e){return n(e,r,o)})):[]:void 0,t}));function o(t){return e.toPath(t,a,i)}}(x,t,r):x),c.semanticDiagnosticsFromOldState||(c.semanticDiagnosticsFromOldState=new e.Set),c.semanticDiagnosticsFromOldState.add(o))}if(p){var b=i.emitSignatures.get(o);b&&(c.emitSignatures||(c.emitSignatures=new e.Map)).set(o,b)}})),d&&e.forEachEntry(i.fileInfos,(function(e,t){return e.affectsGlobalScope&&!c.fileInfos.has(t)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(c,t,void 0).forEach((function(e){return c.changedFilesSet.add(e.resolvedPath)})):_&&!u&&e.compilerOptionsAffectEmit(l,_)&&(t.getSourceFiles().forEach((function(e){return E(c,e.resolvedPath,1)})),e.Debug.assert(!c.seenAffectedFiles||!c.seenAffectedFiles.size),c.seenAffectedFiles=c.seenAffectedFiles||new e.Set),c.buildInfoEmitPending=!d||c.changedFilesSet.size!==((null===(s=i.changedFilesSet)||void 0===s?void 0:s.size)||0),c}(c,f,_,l.disableUseFileVersionAsSignature);c.getProgramBuildInfo=function(){return function(t,r){var n=e.outFile(t.compilerOptions);if(!n||t.compilerOptions.composite){var i=e.Debug.checkDefined(t.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),i)),o=t.latestChangedDtsFile?w(t.latestChangedDtsFile):void 0;if(n){var s=[],c=[];return t.program.getRootFileNames().forEach((function(e){var r=t.program.getSourceFile(e);r&&(s.push(I(r.resolvedPath)),c.push(r.version))})),{fileNames:s,fileInfos:c,options:L(t.compilerOptions,"affectsBundleEmitBuildInfo"),outSignature:t.outSignature,latestChangedDtsFile:o}}var l,u,d,_,f,p,m,g,y=[],v=new e.Map,h=e.arrayFrom(t.fileInfos.entries(),(function(r){var n,i,a=r[0],o=r[1],s=M(a);e.Debug.assert(y[s-1]===I(a));var c=null===(n=t.oldSignatures)||void 0===n?void 0:n.get(a),l=void 0!==c?c||void 0:o.signature;if(t.compilerOptions.composite){var u=t.program.getSourceFileByPath(a);if(!e.isJsonSourceFile(u)&&e.sourceFileMayBeEmitted(u,t.program)){var _=null===(i=t.emitSignatures)||void 0===i?void 0:i.get(a);_!==l&&(d||(d=[])).push(void 0===_?s:[s,_])}}return o.version===l?o.affectsGlobalScope||o.impliedFormat?{version:o.version,signature:void 0,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:o.version:void 0!==l?void 0===c?o:{version:o.version,signature:l,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:{version:o.version,signature:!1,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}}));if(t.referencedMap&&(_=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[M(e),O(t.referencedMap.getValues(e))]}))),t.exportedModulesMap&&(f=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var r,n=null===(r=t.oldExportedModulesMap)||void 0===r?void 0:r.get(e);return void 0===n?[M(e),O(t.exportedModulesMap.getValues(e))]:n?[M(e),O(n)]:void 0}))),t.semanticDiagnosticsPerFile)for(var D=0,S=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);D1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-Z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectoryOrFile=r,e.createResolutionCache=function(i,a,o){var s,c,l,u,d,_,f,p,m=e.createMultiMap(),g=[],y=[],v=e.createMultiMap(),h=new e.Map,x=!1,b=e.memoize((function(){return i.getCurrentDirectory()})),D=i.getCachedDirectoryStructureHost(),S=new e.Map,T=e.createCacheWithRedirects(),C=e.createCacheWithRedirects(),E=e.createModuleResolutionCache(b(),i.getCanonicalFileName,void 0,T,C),k=new e.Map,N=e.createCacheWithRedirects(),A=e.createTypeReferenceDirectiveResolutionCache(b(),i.getCanonicalFileName,void 0,E.getPackageJsonInfoCache(),N),P=[".ts",".tsx",".js",".jsx",".json"],F=new e.Map,w=new e.Map,I=new e.Map,M=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,b())),O=M&&i.toPath(M),L=void 0!==O?O.split(e.directorySeparator).length:0,R=new e.Map;return{getModuleResolutionCache:function(){return E},startRecordingFilesWithChangedResolutions:function(){s=[]},finishRecordingFilesWithChangedResolutions:function(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:function(){E.clearAllExceptPackageJsonInfoCache(),A.clearAllExceptPackageJsonInfoCache(),m.forEach(Z),m.clear()},finishCachingPerDirectoryResolution:function(t,r){l=void 0,m.forEach(Z),m.clear(),t!==r&&(null==t||t.getSourceFiles().forEach((function(t){for(var r,n,i,a=e.isExternalOrCommonJsModule(t)&&null!==(n=null===(r=t.packageJsonLocations)||void 0===r?void 0:r.length)&&void 0!==n?n:0,o=null!==(i=h.get(t.path))&&void 0!==i?i:e.emptyArray,s=o.length;sa)for(s=a;sL+1?{dir:i.slice(0,L+1).join(e.directorySeparator),dirPath:n.slice(0,L+1).join(e.directorySeparator)}:{dir:M,dirPath:O,nonRecursive:!1}}return H(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,b())),e.getDirectoryPath(r))}function H(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==O)for(;!J(n,O);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function $(t){return e.fileExtensionIsOneOf(t,P)}function G(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertIsDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?X(r):m.add(t,r);var o=a(r);o&&o.resolvedFileName&&v.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function X(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations,n=t.affectingLocations;if(r.length||n.length){r.length&&g.push(t);for(var a=!1,o=0,s=r;o1),F.set(_,m-1))),p===O?c=!0:re(p)}}c&&re(O)}else s.length&&e.unorderedRemoveItem(y,t);for(var h=0,x=s;h1&&r.sort(m),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},u=e.getDirectoryPath(t);0!==a.size;){var d=l(u);if(u=s,"break"===d)break}if(a.size){var _=e.arrayFrom(a.values());_.length>1&&_.sort(m),c.push.apply(c,_)}return c}function x(t,r,n){if(e.getEmitModuleResolutionKind(r)>=e.ModuleResolutionKind.Node16&&n===e.ModuleKind.ESNext)return[2];switch(t){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:e.Debug.assertNever(t)}}function b(t,r,n,i,a){for(var o in r)for(var s=function(r){var i=e.normalizePath(r),s=i.indexOf("*"),c=n.map((function(e){return{ending:e,value:C(t,e,a)}}));if(e.tryGetExtensionFromPath(i)&&c.push({ending:void 0,value:t}),-1!==s)for(var l=i.substring(0,s),u=i.substring(s+1),_=0,f=c;_=l.length+u.length&&e.startsWith(g,l)&&e.endsWith(g,u)&&d({ending:m,value:g})){var y=g.substring(l.length,g.length-u.length);return{value:o.replace("*",y)}}}else if(e.some(c,(function(e){return 0!==e.ending&&i===e.value}))||e.some(c,(function(e){return 0===e.ending&&i===e.value&&d(e)})))return{value:o}},c=0,l=r[o];c=0||e.isApplicableVersionedTypesKey(o,y)){var v=a[y],h=D(t,r,n,i,v,o);if(h)return h}}}}}function S(t,r,n,i,o,c,l,u){var d=t.path,_=t.isRedirect,f=r.getCanonicalFileName,p=r.sourceDirectory;if(i.fileExists&&i.readFile){var m=e.getNodeModulePathParts(d);if(m){var g=a(i,c,o,n),y=d,v=!1;if(!l)for(var h=m.packageRootIndex,S=void 0;;){var T=O(h),E=T.moduleFileToTry,N=T.packageRootPath,A=T.blockedByExports,P=T.verbatimFromExports;if(e.getEmitModuleResolutionKind(o)!==e.ModuleResolutionKind.Classic){if(A)return;if(P)return E}if(N){y=N,v=!0;break}if(S||(S=E),-1===(h=d.indexOf(e.directorySeparator,h+1))){y=C(S,g.ending,o,i);break}}if(!_||v){var F=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),w=f(y.substring(0,m.topLevelNodeModulesIndex));if(e.startsWith(p,w)||F&&e.startsWith(f(F),w)){var I=y.substring(m.topLevelPackageNameIndex+1),M=e.getPackageNameFromTypesPackageName(I);return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Classic&&M===I?void 0:M}}}}function O(t){var r,a,c=d.substring(0,t),l=e.combinePaths(c,"package.json"),_=d,p=!1,y=null===(a=null===(r=i.getPackageJsonInfoCache)||void 0===r?void 0:r.call(i))||void 0===a?void 0:a.getPackageJsonInfo(l);if("object"==typeof y||void 0===y&&i.fileExists(l)){var v=(null==y?void 0:y.contents.packageJsonContent)||JSON.parse(i.readFile(l)),h=u||n.impliedNodeFormat;if(e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeNext){var S=["node",h===e.ModuleKind.ESNext?"import":"require","types"],T=v.exports&&"string"==typeof v.name?D(o,d,c,e.getPackageNameFromTypesPackageName(v.name),v.exports,S):void 0;if(T){var C=e.hasTSFileExtension(T.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(T.moduleFileToTry)+k(T.moduleFileToTry,o)}:T;return s(s({},C),{verbatimFromExports:!0})}if(v.exports)return{moduleFileToTry:d,blockedByExports:!0}}var E=v.typesVersions?e.getPackageJsonTypesVersionsPaths(v.typesVersions):void 0;if(E){var N=b(d.slice(c.length+1),E.paths,x(g.ending,o,h),i,o);void 0===N?p=!0:_=e.combinePaths(c,N)}var A=v.typings||v.types||v.main||"index.js";if(e.isString(A)&&(!p||!e.matchPatternOrExact(e.tryParsePatterns(E.paths),A))){var P=e.toPath(A,c,f);if(e.removeFileExtension(P)===e.removeFileExtension(f(_)))return{packageRootPath:c,moduleFileToTry:_}}}else{var F=f(_.substring(m.packageRootIndex+1));if("index.d.ts"===F||"index.js"===F||"index.ts"===F||"index.tsx"===F)return{moduleFileToTry:_,packageRootPath:c}}return{moduleFileToTry:_}}}function T(t,r,n){return e.mapDefined(r,(function(e){var r=N(t,e,n);return void 0!==r&&A(r)?void 0:r}))}function C(t,r,n,i){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var a=e.removeFileExtension(t);if(t===a)return t;if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return a+E(t,n);switch(r){case 0:var o=e.removeSuffix(a,"/index");return i&&o!==a&&function(t,r){if(t.fileExists)for(var n=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));n1?function(t,r){var n=t.filter((function(e,t,r){return t===r.findIndex((function(t){return(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)}))}));if(0===n.length)return"";var i=function(e){return Math.log(e)*Math.LOG10E+1},a=n.map((function(r){return[r,e.countWhere(t,(function(e){return e.fileName===r.fileName}))]})),o=a.reduce((function(e,t){return Math.max(e,t[1]||0)}),0),s=e.Diagnostics.Errors_Files.message,c=s.split(" ")[0].length,l=Math.max(c,i(o)),d=Math.max(i(o)-c,0),_="";return _+=" ".repeat(d)+s+"\n",a.forEach((function(e){var t=e[0],n=e[1],i=Math.log(n)*Math.LOG10E+1|0,a=i0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function D(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||a(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function S(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),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:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:e.maybeBind(t,t.now)}}function T(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=S(t,r);return e.copyProperties(o,D(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));x(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(l(t),t),s,i,t)}))},o}function C(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=i,e.createWatchStatusReporter=a,e.parseConfigFileWithSystem=function(t,r,n,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return C(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getFilesInErrorForSummary=c,e.getWatchErrorSummaryDiagnosticMessage=l,e.getErrorSummaryText=d,e.isBuilderProgram=_,e.listFiles=f,e.explainFiles=p,e.explainIfFileIsRedirectAndImpliedFormat=m,e.getMatchedFileSpec=g,e.getMatchedIncludeSpec=y,e.fileIncludeReasonToDiagnostics=v,e.emitFilesAndReportErrors=x,e.emitFilesAndReportErrorsAndGetExitStatus=b,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=D,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()})),o={getSourceFile:function(n,i,a){var s;try{e.performance.mark("beforeIORead");var c=r().charset;s=c?t.readFile(n,c):o.readFile(n),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),s=""}return void 0!==s?e.createSourceFile(n,s,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit};return o},e.setGetSourceFileAsHashVersioned=function(t){var r=t.getSourceFile,n=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],i=0;ic)}}}function A(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==n.fileNames.length&&!e.getConfigFileParsingDiagnostics(n).length&&e.isIncrementalCompilation(n.options))}function P(t,n,i){if(t.projectPendingBuild.size&&!l(n))for(var a=t.options,o=t.projectPendingBuild,s=0;sA&&(N=I,A=M)}if(!T)for(var J=e.getAllProjectOutputs(r,!S.useCaseSensitiveFileNames()),W=B(t,n),$=0,G=J;$=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=s(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=s(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(214," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.prefixedNodeCoreModuleList=i.map((function(e){return"node:".concat(e)})),t.nodeCoreModuleList=o(o([],i,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=a,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=function(t,n,i,o,s,c,l,u,d,_){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var f=new e.Map;i=e.mapDefined(i,(function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var p=[];l.include&&T(l.include,"Explicitly included types");var m=l.exclude||[];if(!_.types){var g=new e.Set(i.map(e.getDirectoryPath));g.add(o),g.forEach((function(e){C(e,"bower.json","bower_components",p),C(e,"package.json","node_modules",p)}))}l.disableFilenameBasedTypeAcquisition||function(t){var r=e.mapDefined(t,(function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&T(r,"Inferred typings from file names"),e.some(t,(function(t){return e.fileExtensionIs(t,".jsx")}))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),S("react"))}(i),u&&T(e.deduplicate(u.map(a),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,t){var n=d.get(t);f.has(t)&&void 0===f.get(t)&&void 0!==n&&r(e,n)&&f.set(t,e.typingLocation)}));for(var y=0,v=m;y=r.end}function x(e,t,r,n){return Math.max(e,r)r?1:u(a[e],c,s)?a[e-1]&&u(a[e-1])?1:0:i&&c===r&&a[e-1]&&a[e-1].getEnd()===r&&u(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};;){var l=c();if("object"==typeof l)return l.value}function u(e,s,c){if(null!=c||(c=e.getEnd()),cr)return!1;if(rt.end||e.pos===t.end)&&H(e,n)?r(e):void 0}))}(r)}function R(t,r,n,i){var a=function a(o){if(j(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(t=t||!H(l,r)||K(l)){var u=J(s,c,r,o.kind);return u&&B(u,r)}return a(l)}}e.Debug.assert(void 0!==n||308===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=J(s,s.length,r,o.kind);return d&&B(d,r)}(n||r);return e.Debug.assert(!(a&&K(a))),a}function j(t){return e.isToken(t)&&!K(t)}function B(e,t){if(j(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=J(r,r.length,t,e.kind);return n&&B(n,t)}function J(t,r,n,i){for(var a=r-1;a>=0;a--)if(K(t[a]))0!==a||11!==i&&282!==i||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(H(t[a],n))return t[a]}function K(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function z(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)=r}))}function q(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=R(n.getFullStart(),r))&&28===n.kind&&(n=R(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=z(n,18,r)))return;break;case 21:if(!(n=z(n,20,r)))return;break;case 23:if(!(n=z(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=R(n.getFullStart(),r)}}function W(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function H(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function $(e,t,r){var n=W(e,t,void 0);return!!n&&r===g.test(e.text.substring(n.pos,n.end))}function G(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function X(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Q(e,t){return{span:e,newText:t}}function Y(e){return 154===e.kind}function Z(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function ee(e,t){return s(s({},Z(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?re(n,i):n,void 0)}function re(t,r){return e.factory.createStringLiteral(t,0===r)}function ne(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ie(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?ne(n,t):1}function ae(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function oe(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(t,r,n){var i=r.tryGetSourcePosition(t);return i&&(!n||n(e.normalizePath(i.fileName))?i:void 0)}function le(e,t,r){var n=e.contextSpan&&ce({fileName:e.fileName,pos:e.contextSpan.start},t,r),i=e.contextSpan&&ce({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return n&&i?{start:n.pos,length:i.pos-n.pos}:void 0}function ue(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(function(t){return!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"}))}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=y,e.rangeContainsRangeExclusive=function(e,t){return v(e,t.pos)&&v(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=v,e.startEndContainsRange=h,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return x(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return x(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=x,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rn.getStart(t)},e.isInJSXText=function(t,r){var n=M(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=282&&r.kind<=291||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(281!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(M(e,t))},e.findPrecedingMatchingToken=z,e.removeOptionality=U,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=q(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==V(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=V,e.getPossibleTypeArgumentsInfo=q,e.isInComment=W,e.hasDocComment=function(t,r){var n=M(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),256&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),16777216&t.flags&&n.push("declare"),274===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 180===t.kind||210===t.kind?t.typeArguments:e.isFunctionLike(t)||260===t.kind||261===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!t.noEmit},e.createModuleSpecifierResolutionHost=Z,e.getModuleSpecifierResolverHost=ee,e.moduleResolutionRespectsExports=function(t){return t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.moduleResolutionUsesNodeModules=function(t){return t===e.ModuleResolutionKind.NodeJs||t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?te(e,t,r,n):void 0},e.makeImport=te,e.makeStringLiteral=re,(m=e.QuotePreference||(e.QuotePreference={}))[m.Single=0]="Single",m[m.Double=1]="Double",e.quotePreferenceFromString=ne,e.getQuotePreference=ie,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ae(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ae,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!oe(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return e.canHaveModifiers(t)?e.find(t.modifiers,(function(e){return e.kind===r})):void 0},e.insertImports=function(t,r,n,i){var a=240===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(fe(" ",e.SymbolDisplayPartKind.space)),t.push(fe("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){i>a||(s(),i+=e.length,t.push(_e(e,r)))},writeLine:function(){i>a||(i+=1,t.push(he()),r=!0)},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(fe(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(fe(e,r)))}function l(){t=[],r=!0,n=0,i=0}}();function _e(t,r){return fe(t,function(t){var r=t.flags;return 3&r?ue(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function fe(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function pe(t){return fe(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function me(t){return fe(t,e.SymbolDisplayPartKind.text)}function ge(t){return fe(t,e.SymbolDisplayPartKind.linkText)}function ye(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:G(r)}}}function ve(t){return fe(t,e.SymbolDisplayPartKind.link)}function he(){return fe("\n",e.SymbolDisplayPartKind.lineBreak)}function xe(e){try{return e(de),de.displayParts()}finally{de.clear()}}function be(e){return 0!=(33554432&e.flags)}function De(e){return 0!=(2097152&e.flags)}function Se(e,t){void 0===t&&(t=!0);var r=e&&Ce(e);return r&&!t&&Ne(r),r}function Te(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Ce(t,n),i&&!r&&Ne(i),i}function Ce(t,r){var n=r?function(e){return Te(e,!0,r)}:Se,i=r?function(e){return e&&ke(e,!0,r)}:function(e){return e&&Ee(e)},a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function Ee(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return Se(e,r)})),t.hasTrailingComma)}function ke(t,r,n){return e.factory.createNodeArray(t.map((function(e){return Te(e,r,n)})),t.hasTrailingComma)}function Ne(e){Ae(e),Pe(e)}function Ae(e){Fe(e,512,we)}function Pe(t){Fe(t,1024,e.getLastChild)}function Fe(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Fe(i,r,n)}function we(e){return e.forEachChild((function(e){return e}))}function Ie(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Le(r,n,i,a,e.addSyntheticLeadingComment))}function Me(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Le(r,n,i,a,e.addSyntheticTrailingComment))}function Oe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Le(r,n,i,a,e.addSyntheticLeadingComment))}function Le(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Re(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}function je(e,t){var r=e.parent;switch(r.kind){case 211:return t.getContextualType(r);case 223:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Be(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 292:return r.expression===e?Je(r,t):void 0;default:return t.getContextualType(e)}}function Be(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Je(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Ke(e){return 176===e||177===e||178===e||168===e||170===e}function ze(e){return 259===e||173===e||171===e||174===e||175===e}function Ue(e){return 264===e}function Ve(e){return 240===e||241===e||243===e||248===e||249===e||250===e||254===e||256===e||169===e||262===e||269===e||268===e||275===e||267===e||274===e}function qe(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(Ve(a.kind))26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:n++;else if(Ke(a.kind)){var o;26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:o&&27!==o.kind&&e.getLineAndCharacterOfPosition(t,o.getStart(t)).line!==e.getLineAndCharacterOfPosition(t,e.getSpanOfTokenAtPosition(t,o.end).start).line&&n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2}function We(e,t){return $e(e,e.fileExists,t)}function He(e){try{return e()}catch(e){return}}function $e(e,t){for(var r=[],n=2;n"===e[r]&&t--,r++,!t)return r;return 0}(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=function(e){var t=0;if(124===e.charCodeAt(t++)){for(;t-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=Se,e.getSynthesizedDeepCloneWithReplacements=Te,e.getSynthesizedDeepClones=Ee,e.getSynthesizedDeepClonesWithReplacements=ke,e.suppressLeadingAndTrailingTrivia=Ne,e.suppressLeadingTrivia=Ae,e.suppressTrailingTrivia=Pe,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i=0),o},e.copyLeadingComments=Ie,e.copyTrailingComments=Me,e.copyTrailingAsLeadingComments=Oe,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=je,e.quote=function(t,r,n){var i=ie(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Be,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Je,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){return a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(r,n)});return a?s:void 0},e.syntaxRequiresTrailingSemicolonOrASI=Ve,e.syntaxMayBeASICandidate=e.or(Ke,ze,Ue,Ve),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Ke(t.kind)){if(n&&27===n.kind)return!1}else if(Ue(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(ze(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Ve(t.kind))return!1;if(243===t.kind)return!0;var a=L(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=qe,e.tryGetDirectories=function(e,t){return $e(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return $e(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=We,e.tryDirectoryExists=function(t,r){return He((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=He,e.tryIOAndConsumeErrors=$e,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");We(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){return"node_modules"===t||!!(n=e.findConfigFile(t,(function(e){return We(r,e)}),"package.json"))||void 0})),n},e.getPackageJsonsVisibleToFile=Ge,e.createPackageJsonInfo=Xe,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||Ge(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());return!!s(i)||(o(n)||o(i))},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);return!r||o(r)},allowsImportingSpecifier:function(t){return!(a.length&&!s(t))||(!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t))}};function o(t){for(var r=l(t),n=0,i=a;n=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Ye)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Ye);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=function(t,r){var n=M(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":e.isExpression(n)&&se(r,G(n,t))}))},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNamesForExportedSymbol=function(t,r){if(Ze(t)){var n=et(t);if(n)return n;var i=e.codefix.moduleSymbolToValidIdentifier(tt(t),r,!1),a=e.codefix.moduleSymbolToValidIdentifier(tt(t),r,!0);return i===a?i:[i,a]}return t.name},e.getNameForExportedSymbol=function(t,r,n){return Ze(t)?et(t)||e.codefix.moduleSymbolToValidIdentifier(tt(t),r,!!n):t.name},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;ix.indexOf(e.nodeModulesPathPart)&&o.set(m,b):o.set(m,b)}}}var D=1===_&&e.getLocalSymbolForExportDefault(c)||c,S=0===_||e.isExternalModuleSymbol(D)?e.unescapeLeadingUnderscores(l):e.getNamesForExportedSymbol(D,void 0),T="string"==typeof S?S:S[0],C="string"==typeof S?void 0:S[1],E=e.stripQuotes(u.name),k=n++,N=e.skipAlias(c,p),A=33554432&c.flags?void 0:c,P=33554432&u.flags?void 0:u;A&&P||a.set(k,[c,u]),i.add(function(t,r,n,i){var a=n||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(r,i)),"|").concat(a)}(T,c,e.isExternalModuleNameRelative(E)?void 0:E,p),{id:k,symbolTableKey:l,symbolName:T,capitalizedSymbolName:C,moduleName:E,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,packageName:m,exportKind:_,targetFlags:N.flags,isFromPackageJson:f,symbol:A,moduleSymbol:P})},get:function(e,t){if(e===r){var n=i.get(t);return null==n?void 0:n.map(c)}},search:function(n,a,s,l){if(n===r)return e.forEachEntry(i,(function(r,n){var i=function(e){var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===r?void 0:r}}(n),u=i.symbolName,d=i.ambientModuleName,_=a&&r[0].capitalizedSymbolName||u;if(s(_,r[0].targetFlags)){var f=r.map(c).filter((function(n,i){return function(r,n){if(!n||!r.moduleFileName)return!0;var i=t.getGlobalTypingsCacheLocation();if(i&&e.startsWith(r.moduleFileName,i))return!0;var a=o.get(n);return!a||e.startsWith(r.moduleFileName,a)}(n,r[i].packageName)}));if(f.length){var p=l(f,_,!!d,n);if(void 0!==p)return p}}}))},releaseSymbols:function(){a.clear()},onFileChanged:function(t,n,i){return!(l(t)&&l(n)||(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!function(t,r){if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=function(a){var o=function(t){return e.isNonGlobalAmbientModule(t)&&t.name.text===a};if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o=i.length){var x=r(o,l,e.lastOrUndefined(d));void 0!==x&&(g=x)}}while(1!==l);function b(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&v++;break;case 31:v>0&&v--;break;case 131:case 152:case 148:case 134:case 153:v>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}(u,l))&&(l=79)}}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 d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(u)}),o=c+l}var _=r.length-o;return _>0&&n.push({length:_,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10: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 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===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 25:return e.TokenClass.BigIntLiteral;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 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(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 d=t.getSymbolAtLocation(u),_=d&&c(d,e.getMeaningFromLocation(u),t);_&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)}(u.getStart(n),u.getEnd(),_)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;_(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var d=i.exec(c);if(!d)break;var f=s+d.index+d[1].length;f>l&&(_(l,f-l),l=f),u(l,d[2].length,22),l+=d[2].length,d[3].length&&(_(l,d[3].length),l+=d[3].length),u(l,d[4].length,5),l+=d[4].length,d[5].length&&(_(l,d[5].length),l+=d[5].length),u(l,d[6].length,24),l+=d[6].length}(s+=o[4].length)>l&&_(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var p=t+n;return s=0),a>0){var o=n||y(t.kind,t);o&&u(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(257===n.kind||169===n.kind||166===n.kind||288===n.kind))return 5;if(223===n.kind||221===n.kind||222===n.kind||224===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&288===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r){switch(r.parent.kind){case 260:return r.parent.name===r?11:void 0;case 165:return r.parent.name===r?15:void 0;case 261:return r.parent.name===r?13:void 0;case 263:return r.parent.name===r?12:void 0;case 264:return r.parent.name===r?14:void 0;case 166:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}if(e.isConstTypeReference(r.parent))return 3}return 2}}function v(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(c,_,m);var y=p.valueDeclaration;if(y){var v=e.getCombinedModifierFlags(y),h=e.getCombinedNodeFlags(y);32&v&&(g|=2),512&v&&(g|=4),0!==m&&2!==m&&(64&v||2&h||8&p.getFlags())&&(g|=8),7!==m&&10!==m||!function(t,r){return e.isBindingElement(t)&&(t=i(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&!e.isSourceFile(t.parent)&&t.getSourceFile()===r}(y,r)||(g|=32),t.isSourceFileDefaultLibrary(y.getSourceFile())&&(g|=16)}else p.declarations&&p.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(g|=16);o(_,m,g)}}}e.forEachChild(_,d),u=f}}(r)}(t,r,n,(function(e,t,n){s.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),o),s}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var o,s,c;(c=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=t.TokenType||(t.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=t.TokenModifier||(t.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;lr.parameters.length)){var s=r.getTypeParameterAtPosition(n.argumentIndex);if(e.isJsxOpeningLikeElement(t)){var l=i.getTypeOfPropertyOfType(s,c.name.text);l&&(s=l)}return a=a||!!(4&s.flags),g(s,o)}}));return e.length(l)?{kind:2,types:l,isNewIdentifier:a}:void 0}(C.invocation,n,C,a)||E()}case 269:case 275:case 280:return{kind:0,paths:x(r,n,o,s,a,c)};default:return E()}function E(){return{kind:2,types:g(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function p(t){switch(t.kind){case 193:return e.walkUpParenthesizedTypes(t);case 214:return e.walkUpParenthesizedExpressions(t);default:return t}}function m(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function g(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return g(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function y(e,t,r){return{name:e,kind:t,extension:r}}function v(e){return y(e,"directory",void 0)}function h(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function x(t,r,n,i,a,s){return h(r.text,r.getStart(t)+1,function(t,r,n,i,a,s){var c=e.normalizeSlashes(r.text),u=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,d=t.path,_=e.getDirectoryPath(d);return function(e){if(e&&e.length>=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}(c)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(t,r,n,i,a,s){var c=b(n,s);return n.rootDirs?function(t,r,n,i,a,s,c){var l=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(o(o([],t.map((function(t){return e.combinePaths(t,a)})),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,a.project||s.getCurrentDirectory(),n,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(l,(function(t){return e.arrayFrom(T(r,t,i,s,c).values())}))}(n.rootDirs,t,r,c,n,i,a):e.arrayFrom(T(t,r,c,i,a).values())}(c,_,n,i,d,f()):function(t,r,n,i,a,o,s){var c=i.baseUrl,u=i.paths,d=l(),_=b(i,o);if(c){var f=i.project||a.getCurrentDirectory(),p=e.normalizePath(e.combinePaths(f,c));T(t,p,_,a,void 0,d),u&&E(d,t,p,_,a,u)}for(var m=A(t),g=0,v=function(t,r,n){var i=n.getAmbientModules().map((function(t){return e.stripQuotes(t.name)})).filter((function(r){return e.startsWith(r,t)}));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((function(t){return e.removePrefix(t,a)}))}return i}(t,m,s);g-1||e.isApplicableVersionedTypesKey(r,n))return N(t[n],r)}function A(t){return L(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function P(t,r,n,i,a,o){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:d(t,"script");var c=t.slice(0,t.length-1),l=e.tryRemovePrefix(n,c);return void 0===l?"/"===t[t.length-2]?d(c,"directory"):e.flatMap(r,(function(e){var t;return null===(t=F("",i,e,a,o))||void 0===t?void 0:t.map((function(e){var t=e.name,r=u(e,["name"]);return s({name:c+t},r)}))})):e.flatMap(r,(function(e){return F(l,i,e,a,o)}));function d(t,r){return e.startsWith(t,n)?[{name:e.removeTrailingDirectorySeparator(t),kind:r,extension:void 0}]:e.emptyArray}}function F(t,r,n,i,a){if(a.readDirectory){var s=e.tryParsePattern(n);if(void 0!==s&&!e.isString(s)){var c=e.resolvePath(s.prefix),l=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),u=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),d=L(t),_=d?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,f=d?e.combinePaths(l,u+_):l,p=e.normalizePath(s.suffix),m=e.normalizePath(e.combinePaths(r,f)),g=d?m:e.ensureTrailingDirectorySeparator(m)+u,h=p?"**/*"+p:"./*",x=e.mapDefined(e.tryReadDirectory(a,m,i.extensions,void 0,[h]),(function(t){var r,n,o,s,c,l=(r=t,o=e.normalizePath(r),s=g,c=p,void 0===(n=e.startsWith(o,s)&&e.endsWith(o,c)?o.slice(s.length,o.length-c.length):void 0)?void 0:w(n));if(l){if(L(l))return v(e.getPathComponents(w(l))[1]);var u=C(l,a.getCompilationSettings(),i.includeExtensionsOption);return y(u.name,"script",u.extension)}})),b=p?e.emptyArray:e.mapDefined(e.tryGetDirectories(a,m),(function(e){return"node_modules"===e?void 0:v(e)}));return o(o([],x,!0),b,!0)}}}function w(t){return t[0]===e.directorySeparator?t.slice(1):t}function I(t,r,n,i,a,o){void 0===o&&(o=l());for(var s=new e.Map,c=0,u=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(r,t)}))||e.emptyArray;c=e.pos&&r<=e.end}));if(s){var c=t.text.slice(s.pos,r),l=M.exec(c);if(l){var u=l[1],d=l[2],_=l[3],f=e.getDirectoryPath(t.path),p="path"===d?T(_,f,b(n,1),i,t.path):"types"===d?I(i,n,f,A(_),b(n)):e.Debug.fail();return h(_,s.pos+u.length,e.arrayFrom(p.values()))}}}(r,n,a,o);return u&&d(u)}if(e.isInString(r,n,i)){if(!i||!e.isStringLiteralLike(i))return;return function(r,n,i,a,o,s,c,l){if(void 0!==r){var u=e.createTextSpanFromStringLiteralLikeContent(n);switch(r.kind){case 0:return d(r.paths);case 1:var _=e.createSortedArray();return t.getCompletionEntriesFromSymbols(r.symbols,_,n,n,i,i,a,o,99,s,4,l,c,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:_};case 2:return _=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:_};default:return e.Debug.assertNever(r)}}}(u=f(r,i,n,s.getTypeChecker(),a,o,l),i,r,o,s,c,a,l)}},r.getStringLiteralCompletionDetails=function(r,n,i,a,o,s,c,l,u){if(a&&e.isStringLiteralLike(a)){var d=f(n,a,i,o,s,c,u);return d&&function(r,n,i,a,o,s){switch(i.kind){case 0:return(c=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,_(c.extension),c.kind,[e.textPart(r)]);case 1:var c;return(c=e.find(i.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(c,o,a,n,s);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,a,d,n,o,l)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(i||(i={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(a||(a={}));var M=/^(\/\/\/\s*0},resolvedBeyondLimit:function(){return v>t.moduleSpecifierResolutionLimit}}),D=x?" (".concat((h/x*100).toFixed(1),"% hit rate)"):"";return null===(d=n.log)||void 0===d||d.call(n,"".concat(r,": resolved ").concat(v," module specifiers, plus ").concat(y," ambient and ").concat(h," from cache").concat(D)),null===(_=n.log)||void 0===_||_.call(n,"".concat(r,": response is ").concat(g?"incomplete":"complete")),null===(f=n.log)||void 0===f||f.call(n,"".concat(r,": ").concat(e.timestamp()-p)),b}function m(t,r){var n,i,a=e.compareStringsCaseSensitiveUI(t.sortText,r.sortText);return 0===a&&(a=e.compareStringsCaseSensitiveUI(t.name,r.name)),0===a&&(null===(n=t.data)||void 0===n?void 0:n.moduleSpecifier)&&(null===(i=r.data)||void 0===i?void 0:i.moduleSpecifier)&&(a=e.compareNumberOfDirectorySeparators(t.data.moduleSpecifier,r.data.moduleSpecifier)),0===a?-1:a}function g(e){return!!(null==e?void 0:e.moduleSpecifier)}function y(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function v(e,t,r){return{kind:4,keywordCompletions:V(e,t),isNewIdentifierLocation:r}}function h(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function x(t,r){return!e.isSourceFileJS(t)||!!e.isCheckJsEnabledForFile(t,r)}function b(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function D(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function S(e,r,n){return{name:D(e,r,n),kind:"string",kindModifiers:"",sortText:t.SortText.LocationPriority}}function T(n,i,a,o,s,c,_,p,m,g,y,v,h,x,b,D,S,T,E,N,w,I){var M,O,L,R,j,B,J,K,z=e.getReplacementSpanForContextToken(a),U=F(y),V=p.getTypeChecker(),q=y&&function(e){return!!(16&e.kind)}(y),W=y&&function(e){return!!(2&e.kind)}(y)||g;if(y&&function(e){return!!(1&e.kind)}(y))L=g?"this".concat(q?"?.":"","[").concat(A(c,T,m),"]"):"this".concat(q?"?.":".").concat(m);else if((W||q)&&h){L=W?"[".concat(g?A(c,T,m):m,"]"):m,(q||h.questionDotToken)&&(L="?.".concat(L));var H=e.findChildOfKind(h,24,c)||e.findChildOfKind(h,28,c);if(!H)return;var $=e.startsWith(m,h.name.text)?h.name.end:H.end;z=e.createTextSpanFromBounds(H.getStart(c),$)}if(x&&(void 0===L&&(L=m),L="{".concat(L,"}"),"boolean"!=typeof x&&(z=e.createTextSpanFromNode(x,c))),y&&function(e){return!!(8&e.kind)}(y)&&h){void 0===L&&(L=m);var G=e.findPrecedingToken(h.pos,c),X="";G&&e.positionIsASICandidate(G.end,G.parent,c)&&(X=";"),X+="(await ".concat(h.expression.getText(),")"),L=g?"".concat(X).concat(L):"".concat(X).concat(q?"?.":".").concat(L),z=e.createTextSpanFromBounds(h.getStart(c),h.end)}if(u(y)&&(B=[e.textPart(y.moduleSpecifier)],b&&(M=function(t,r,n,i,a,o,s){var c=r.replacementSpan,l=e.quote(a,s,n.moduleSpecifier),u=n.isDefaultExport?1:"export="===n.exportName?2:0,d=s.includeCompletionsWithSnippetText?"$1":"",_=e.codefix.getImportKind(a,u,o,!0),f=r.couldBeTypeOnlyImportSpecifier,p=r.isTopLevelTypeOnly?" ".concat(e.tokenToString(154)," "):" ",m=f?"".concat(e.tokenToString(154)," "):"",g=i?";":"";switch(_){case 3:return{replacementSpan:c,insertText:"import".concat(p).concat(e.escapeSnippetText(t)).concat(d," = require(").concat(l,")").concat(g)};case 1:return{replacementSpan:c,insertText:"import".concat(p).concat(e.escapeSnippetText(t)).concat(d," from ").concat(l).concat(g)};case 2:return{replacementSpan:c,insertText:"import".concat(p,"* as ").concat(e.escapeSnippetText(t)," from ").concat(l).concat(g)};case 0:return{replacementSpan:c,insertText:"import".concat(p,"{ ").concat(m).concat(e.escapeSnippetText(t)).concat(d," } from ").concat(l).concat(g)}}}(m,b,y,D,c,S,T),L=M.insertText,z=M.replacementSpan,j=!!T.includeCompletionsWithSnippetText||void 0)),64===(null==y?void 0:y.kind)&&(J=!0),T.includeCompletionsWithClassMemberSnippets&&T.includeCompletionsWithInsertText&&3===E&&function(t,r,n){if(e.isInJSFile(r))return!1;return!!(106500&t.flags)&&(e.isClassLike(r)||r.parent&&r.parent.parent&&e.isClassElement(r.parent)&&r===r.parent.name&&r.parent.getLastToken(n)===r.parent.name&&e.isClassLike(r.parent.parent)||r.parent&&e.isSyntaxList(r)&&e.isClassLike(r.parent))}(n,s,c)){var Q=void 0;L=(O=C(_,p,S,T,m,n,s,o,N)).insertText,j=O.isSnippet,Q=O.importAdder,z=O.replacementSpan,i=t.SortText.ClassMemberSnippets,(null==Q?void 0:Q.hasFixes())&&(J=!0,U=r.ClassMemberSnippet)}if(y&&f(y)&&(L=y.insertText,j=y.isSnippet,K=y.labelDetails,T.useLabelDetailsInCompletionEntries||(m+=K.detail,K=void 0),U=r.ObjectLiteralMethodSnippet,i=t.SortText.SortBelow(i)),w&&!I&&T.includeCompletionsWithSnippetText&&T.jsxAttributeCompletionStyle&&"none"!==T.jsxAttributeCompletionStyle){var Y="braces"===T.jsxAttributeCompletionStyle,Z=V.getTypeOfSymbolAtLocation(n,s);"auto"!==T.jsxAttributeCompletionStyle||528&Z.flags||1048576&Z.flags&&e.find(Z.types,(function(e){return!!(528&e.flags)}))||(402653316&Z.flags||1048576&Z.flags&&e.every(Z.types,(function(e){return!!(402686084&e.flags)}))?(L="".concat(e.escapeSnippetText(m),"=").concat(e.quote(c,T,"$1")),j=!0):Y=!0),Y&&(L="".concat(e.escapeSnippetText(m),"={$1}"),j=!0)}if(void 0===L||T.includeCompletionsWithInsertText)return(l(y)||u(y))&&(R=k(y),J=!b),{name:m,kind:e.SymbolDisplay.getSymbolKind(V,n,s),kindModifiers:e.SymbolDisplay.getSymbolModifiers(V,n),sortText:i,source:U,hasAction:!!J||void 0,isRecommended:P(n,v,V)||void 0,insertText:L,replacementSpan:z,sourceDisplay:B,labelDetails:K,isSnippet:j,isPackageJsonImport:d(y)||void 0,isImportStatementCompletion:!!b||void 0,data:R}}function C(t,r,n,i,a,o,s,c,l){var u,d,_=e.findAncestor(s,e.isClassLike);if(!_)return{insertText:a};var f,p=a,m=r.getTypeChecker(),g=s.getSourceFile(),y=E({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(n,e.maybeBind(t,t.getNewLine)))}),v=e.codefix.createImportAdder(g,r,i,t);if(i.includeCompletionsWithSnippetText){u=!0;var h=e.factory.createEmptyStatement();f=e.factory.createBlock([h],!0),e.setSnippetElement(h,{kind:0,order:0})}else f=e.factory.createBlock([],!0);var x=0,b=function(t){if(!t)return{modifiers:0};var r,n,i,a=0;return i=t,(n=e.isModifier(i)?i.kind:e.isIdentifier(i)&&i.originalKeywordKind&&e.isModifierKind(i.originalKeywordKind)?i.originalKeywordKind:void 0)&&(a|=e.modifierToFlag(n),r=e.createTextSpanFromNode(t)),e.isPropertyDeclaration(t.parent)&&(a|=126975&e.modifiersToFlags(t.parent.modifiers),r=e.createTextSpanFromNode(t.parent)),{modifiers:a,span:r}}(c),D=b.modifiers,S=b.span,T=!!(256&D),C=[];if(e.codefix.addNewNodeForMemberSymbol(o,_,g,{program:r,host:t},i,v,(function(t){var r=0;T&&(r|=256),e.isClassElement(t)&&1===m.getMemberOverrideModifierStatus(_,t)&&(r|=16384),C.length||(x=t.modifierFlagsCache|r|D),t=e.factory.updateModifiers(t,x),C.push(t)}),f,2,T),C.length){var k=131073;d=S,p=l?y.printAndFormatSnippetList(k,e.factory.createNodeArray(C),g,l):y.printSnippetList(k,e.factory.createNodeArray(C),g)}return{insertText:p,isSnippet:u,importAdder:v,replacementSpan:d}}function E(t){var r,n=e.textChanges.createWriter(e.getNewLineCharacter(t)),i=e.createPrinter(t,n),a=s(s({},n),{write:function(e){return o(e,(function(){return n.write(e)}))},nonEscapingWrite:n.write,writeLiteral:function(e){return o(e,(function(){return n.writeLiteral(e)}))},writeStringLiteral:function(e){return o(e,(function(){return n.writeStringLiteral(e)}))},writeSymbol:function(e,t){return o(e,(function(){return n.writeSymbol(e,t)}))},writeParameter:function(e){return o(e,(function(){return n.writeParameter(e)}))},writeComment:function(e){return o(e,(function(){return n.writeComment(e)}))},writeProperty:function(e){return o(e,(function(){return n.writeProperty(e)}))}});return{printSnippetList:function(t,n,i){var a=c(t,n,i);return r?e.textChanges.applyChanges(a,r):a},printAndFormatSnippetList:function(t,n,i,a){var o={text:c(t,n,i),getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},l=e.getFormatCodeSettingsForWriting(a,i),u=e.flatMap(n,(function(t){var r=e.textChanges.assignPositionsToNode(t);return e.formatting.formatNodeGivenIndentation(r,o,i.languageVariant,0,0,s(s({},a),{options:l}))})),d=r?e.stableSort(e.concatenate(u,r),(function(t,r){return e.compareTextSpans(t.span,r.span)})):u;return e.textChanges.applyChanges(o.text,d)}};function o(t,i){var a=e.escapeSnippetText(t);if(a!==t){var o=n.getTextPos();i();var s=n.getTextPos();r=e.append(r||(r=[]),{newText:a,span:{start:o,length:s-o}})}else i()}function c(e,t,n){return r=void 0,a.clear(),i.writeList(e,t,n,a),a.getText()}}function k(t){var r=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),n=!!t.isFromPackageJson||void 0;return u(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:n}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function N(e,t,r){var n="default"===e.exportName,i=!!e.isPackageJsonImport;return g(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}}function A(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function P(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function F(t){return l(t)?e.stripQuotes(t.moduleSymbol.name):u(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?r.ThisProperty:64===(null==t?void 0:t.kind)?r.TypeOnlyAlias:void 0}function w(r,n,i,a,o,s,c,l,u,d,p,g,y,v,h,x,b,D,S,C,E,k,N,A){for(var P,F,w=e.timestamp(),I=(F=o,e.findAncestor(F,(function(t){return e.isFunctionBlock(t)||function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t}(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)}))),M=e.probablyUsesSemicolons(s),O=l.getTypeChecker(),L=new e.Map,R=0;R=t.pos;case 24:case 22:return 204===n;case 58:return 205===n;case 20:return 295===n||we(n);case 18:return 263===n;case 29:return 260===n||228===n||261===n||262===n||e.isFunctionLikeKind(n);case 124:return 169===n&&!e.isClassLike(r.parent);case 25:return 166===n||!!r.parent&&204===r.parent.kind;case 123:case 121:case 122:return 166===n&&!e.isConstructorDeclaration(r.parent);case 128:return 273===n||278===n||271===n;case 137:case 151:return!ee(t);case 79:if(273===n&&t===r.name&&"type"===t.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return 273!==n;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(H(G(t))&&ee(t))return!1;if(Pe(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(G(t))||Le(t)))return!1;switch(G(t)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===A&&Fe(t,o))return!1;var a=e.getAncestor(t.parent,169);if(a&&t!==A&&e.isClassLike(A.parent.parent)&&o<=A.end){if(Fe(t,A.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(a)||e.hasType(a)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==A||o>A.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(V===e.parent&&(283===V.kind||282===V.kind))return!1;if(283===e.parent.kind)return 283!==V.parent.kind;if(284===e.parent.kind||282===e.parent.kind)return!!e.parent.parent&&281===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(P))return n("Returning an empty list because completion was requested in an invalid position."),q?v(q,k,Ae()):void 0;var ie=P.parent;if(24===P.kind||28===P.kind)switch(O=24===P.kind,L=28===P.kind,ie.kind){case 208:M=(F=ie).expression;var ae=e.getLeftmostAccessExpression(F);if(e.nodeIsMissing(ae)||(e.isCallExpression(M)||e.isFunctionLike(M))&&M.end===P.pos&&M.getChildCount(i)&&21!==e.last(M.getChildren(i)).kind)return;break;case 163:M=ie.left;break;case 264:M=ie.name;break;case 202:M=ie;break;case 233:M=ie.getFirstToken(i),e.Debug.assert(100===M.kind||103===M.kind);break;default:return}else if(!w){if(ie&&208===ie.kind&&(P=ie,ie=ie.parent),y.parent===V)switch(y.kind){case 31:281!==y.parent.kind&&283!==y.parent.kind||(V=y);break;case 43:282===y.parent.kind&&(V=y)}switch(ie.kind){case 284:43===P.kind&&(J=!0,V=P);break;case 223:if(!te(ie))break;case 282:case 281:case 283:U=!0,29===P.kind&&(j=!0,V=P);break;case 291:case 290:19===A.kind&&31===y.kind&&(U=!0);break;case 288:if(ie.initializer===A&&A.end0){var D=function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a0}));if(1!==p.length)return;f=p[0]}if(1!==c.getSignaturesOfType(f,0).length)return;var m=c.typeToTypeNode(f,r,_,e.codefix.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!m||!e.isFunctionTypeNode(m))return;var g=void 0;if(o.includeCompletionsWithSnippetText){var y=e.factory.createEmptyStatement();g=e.factory.createBlock([y],!0),e.setSnippetElement(y,{kind:0,order:0})}else g=e.factory.createBlock([],!0);var v=m.parameters.map((function(t){return e.factory.createParameterDeclaration(void 0,t.dotDotDotToken,t.name,void 0,void 0,t.initializer)}));return e.factory.createMethodDeclaration(void 0,void 0,u,void 0,void 0,v,void 0,g);default:return}}}(t,n,d,i,a,s);if(_){var f=E({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(o,e.maybeBind(a,a.getNewLine)))});u=c?f.printAndFormatSnippetList(80,e.factory.createNodeArray([_],!0),d,c):f.printSnippetList(80,e.factory.createNodeArray([_],!0),d);var p=e.createPrinter({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),m=e.factory.createMethodSignature(void 0,"",_.questionToken,_.typeParameters,_.parameters,_.type);return{isSnippet:l,insertText:u,labelDetails:{detail:p.printNode(4,m,d)}}}}(t,n.name,l,r,u,a,c,d);if(i){var o=s({kind:128},i);Q|=32,pe[fe.length]=o,fe.push(t)}}}})))}return 1}()||(w?($=!0,Ne(),1):0)||function(){if(!P)return 0;var t=18===P.kind||27===P.kind?e.tryCast(P.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(P)?e.tryCast(P.parent.parent,e.isNamedImportsOrExports):void 0;if(!t)return 0;e.isTypeKeywordTokenOrIdentifier(P)||(q=8);var r=(272===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return $=!0,272===t.kind?2:0;var n=f.getSymbolAtLocation(r);if(!n)return $=!0,2;le=3,$=!1;var i=f.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((function(e){return!Le(e)})).map((function(e){return(e.propertyName||e.name).escapedText}))),o=i.filter((function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)}));return fe=e.concatenate(fe,o),o.length||(q=0),1}()||function(){var r,n=!P||18!==P.kind&&27!==P.kind?void 0:e.tryCast(P.parent,e.isNamedExports);if(!n)return 0;var i=e.findAncestor(n,e.or(e.isSourceFile,e.isModuleDeclaration));return le=5,$=!1,null===(r=i.locals)||void 0===r||r.forEach((function(r,n){var a,o;fe.push(r),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(n))&&(me[e.getSymbolId(r)]=t.SortText.OptionalMember)})),1}()||(function(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(Pe(t))return r.parent}}}(P)?(le=5,$=!0,q=4,1):0)||function(){var t=function(t,r,n,i){switch(n.kind){case 351:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 79:var o=n.originalKeywordKind;if(o&&e.isKeyword(o))return;if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(ee(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(r){if(135===n.kind||e.isIdentifier(r)&&e.isPropertyDeclaration(r.parent)&&e.isClassLike(n))return e.findAncestor(r,e.isClassLike);switch(r.kind){case 63:return;case 26:case 19:return ee(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!ee(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var s=e.isClassLike(r.parent.parent)?H:W;return s(r.kind)||41===r.kind||e.isIdentifier(r)&&s(e.stringToToken(r.text))?r.parent.parent:void 0}}}(i,P,V,o);if(!t)return 0;if(le=3,$=!0,q=41===P.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===P.kind?P.parent.parent:P.parent,n=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(79===P.kind&&!Le(P))switch(P.getText()){case"private":n|=8;break;case"static":n|=32;break;case"override":n|=16384}if(e.isClassStaticBlockDeclaration(r)&&(n|=32),!(8&n)){var a=e.isClassLike(t)&&16384&n?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t),s=e.flatMap(a,(function(e){var r=f.getTypeAtLocation(e);return 32&n?(null==r?void 0:r.symbol)&&f.getPropertiesOfType(f.getTypeOfSymbolAtLocation(r.symbol,t)):r&&f.getPropertiesOfType(r)}));fe=e.concatenate(fe,function(t,r,n){for(var i=new e.Set,a=0,o=r;a90))&&(!!l||ue(t,s))}),(function(n,i,a,o){var s,c,u,d;if(!l||e.some(n,(function(t){return l.source===e.stripQuotes(t.moduleSymbol.name)}))){var _=e.find(n,y);if(_){var f=r.tryResolve(n,i,a)||{};if("failed"!==f){var p,m=_;"skipped"!==f&&(m=void 0===(s=f.exportInfo)?_:s,p=f.moduleSpecifier);var g=1===m.exportKind;c=g&&e.getLocalSymbolForExportDefault(m.symbol)||m.symbol,u={kind:p?32:4,moduleSpecifier:p,symbolName:i,exportMapKey:o,exportName:2===m.exportKind?"export=":m.symbol.name,fileName:m.moduleFileName,isDefaultExport:g,moduleSymbol:m.moduleSymbol,isFromPackageJson:m.isFromPackageJson},d=e.getSymbolId(c),me[d]!==t.SortText.GlobalsOrKeywords&&(pe[fe.length]=u,me[d]=w?t.SortText.LocationPriority:t.SortText.AutoImportSuggestions,fe.push(c))}}}})),_e=r.skippedAny(),Q|=r.resolvedAny()?8:0,Q|=r.resolvedBeyondLimit()?16:0}))}function y(t){var n=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!n){var a=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(a)||e.startsWith(a,"node:")===e.shouldUseUriStyleNodeCoreModules(i,r))&&(!g||g.allowsImportingAmbientModule(t.moduleSymbol,ve(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?m:r,i,n,c,g,ve(t.isFromPackageJson),d)}}function Ae(){if(P){var e=P.parent.kind,t=G(P);switch(t){case 27:return 210===e||173===e||211===e||206===e||223===e||181===e||207===e;case 20:return 210===e||173===e||211===e||214===e||193===e;case 22:return 206===e||178===e||164===e;case 142:case 143:case 100:return!0;case 24:return 264===e;case 18:return 260===e||207===e;case 63:return 257===e||223===e;case 15:return 225===e;case 16:return 236===e;case 132:return 171===e||300===e;case 41:return 171===e}if(H(t))return!0}return!1}function Pe(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Fe(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,i))}function we(t){return e.isFunctionLikeKind(t)&&173!==t}function Ie(e,t){var r=e.expression,n=f.getSymbolAtLocation(r),i=n&&f.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((function(e){t.add(e.name)}))}function Me(){fe.forEach((function(r){var n;if(16777216&r.flags){var i=e.getSymbolId(r);me[i]=null!==(n=me[i])&&void 0!==n?n:t.SortText.OptionalMember}}))}function Oe(r,n){if(0!==r.size)for(var i=0,a=n;i");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.SortText.LocationPriority}]}}}(y,r);if(L)return L}var R=e.createSortedArray(),j=x(r,a);if(!j||g||d&&0!==d.length||0!==D){var B=w(d,R,void 0,_,y,r,n,i,e.getEmitScriptTarget(a),o,f,c,a,l,N,v,A,k,F,E,C,M,A,P);if(0!==D)for(var J=0,K=V(D,!I&&e.isSourceFileJS(r));J=0&&!l(r,n[a],115);a--);return e.forEach(i(t.statement),(function(e){s(t,e)&&l(r,e.getFirstToken(),81,86)})),r}function d(e){var t=c(e);if(t)switch(t.kind){case 245:case 246:case 247:case 243:case 244:return u(t);case 252:return _(t)}}function _(t){var r=[];return l(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(function(n){l(r,n.getFirstToken(),82,88),e.forEach(i(n),(function(e){s(t,e)&&l(r,e.getFirstToken(),81)}))})),r}function f(t,r){var n=[];return l(n,t.getFirstToken(),111),t.catchClause&&l(n,t.catchClause.getFirstToken(),83),t.finallyBlock&&l(n,e.findChildOfKind(t,96,r),96),n}function p(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||308===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,109,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,105,r))})),a}}function m(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,105,r))})),e.forEach(n(i.body),(function(t){a.push(e.findChildOfKind(t,109,r))})),a}}function g(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){l(n,e,132)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&l(n,t.getFirstToken(),133)}))})),n}}function y(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 y(e,r)}))}t.getDocumentHighlights=function(t,n,i,a,s){var c=e.getTouchingPropertyName(i,a);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var v=c.parent.parent,h=[v.openingElement,v.closingElement].map((function(e){return r(e.tagName,i)}));return[{fileName:i.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=new e.Set(a.map((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})),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(t){var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}}(a,c,t,n,s)||function(t,n){var i=function(t,n){switch(t.kind){case 99:case 91: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);l(n,i[0],99);for(var a=i.length-1;a>=0&&!l(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 105:return c(t.parent,e.isReturnStatement,m);case 109:return c(t.parent,e.isThrowStatement,p);case 111:case 83:case 96:return c(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,f);case 107:return c(t.parent,e.isSwitchStatement,_);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,_):void 0;case 81:case 86:return c(t.parent,e.isBreakOrContinueStatement,d);case 97:case 115:case 90:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),u);case 135:return s(e.isConstructorDeclaration,[135]);case 137:case 151:return s(e.isAccessor,[137,151]);case 133:return c(t.parent,e.isAwaitExpression,g);case 132:return v(g(t));case 125:return v(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&l(n,t.getFirstToken(),125)}))})),n}}(t));case 101:return;default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?v((i=t.kind,a=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 265:case 308:case 238:case 292:case 293:return 256&r&&e.isClassDeclaration(t)?o(o([],t.members,!0),[t],!1):n.statements;case 173:case 171:case 259:return o(o([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 260:case 228:case 261:case 184:var i=n.members;if(92&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return o(o([],i,!0),a.parameters,!0)}else if(256&r)return o(o([],i,!0),[n],!1);return i;case 207:return;default:e.Debug.assertNever(n,"Invalid container kind.")}}(a,e.modifierToFlag(i)),(function(t){return e.findModifier(t,i)})))):void 0}var i,a;function s(r,i){return c(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 c(e,t,r){return t(e)?v(r(e,n)):void 0}function v(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(c,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(_||(_={})),function(e){function t(e){return!!e.sourceFile}function r(r,n,o){void 0===n&&(n="");var s=new e.Map,c=e.createGetCanonicalFileName(!!r);function l(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function u(e,t,r,n,i,a,o,s){return f(e,t,r,n,i,a,!0,o,s)}function d(e,t,r,n,i,a,o,s){return f(e,t,l(r),n,i,a,!1,o,s)}function _(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function f(r,n,i,c,u,d,f,p,m){var g,y,v,h;p=e.ensureScriptKind(r,p);var x=l(i),b=i===x?void 0:i,D=6===p?100:e.getEmitScriptTarget(x),S="object"==typeof m?m:{languageVersion:D,impliedNodeFormat:b&&e.getImpliedNodeFormatForFile(n,null===(h=null===(v=null===(y=null===(g=b.getCompilerHost)||void 0===g?void 0:g.call(b))||void 0===y?void 0:y.getModuleResolutionCache)||void 0===v?void 0:v.call(y))||void 0===h?void 0:h.getPackageJsonInfoCache(),b,x),setExternalModuleIndicator:e.getSetExternalModuleIndicator(x)};S.languageVersion=D;var T=s.size,C=a(c,S.impliedNodeFormat),E=e.getOrUpdate(s,C,(function(){return new e.Map}));if(e.tracing){s.size>T&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:x.configFilePath,key:C});var k=!e.isDeclarationFileName(n)&&e.forEachEntry(s,(function(e,t){return t!==C&&e.has(n)&&t}));k&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:n,key1:k,key2:C})}var N=E.get(n),A=N&&_(N,p);if(!A&&o&&(P=o.getDocument(C,n))&&(e.Debug.assert(f),A={sourceFile:P,languageServiceRefCount:0},F()),A)A.sourceFile.version!==d&&(A.sourceFile=e.updateLanguageServiceSourceFile(A.sourceFile,u,d,u.getChangeRange(A.sourceFile.scriptSnapshot)),o&&o.setDocument(C,n,A.sourceFile)),f&&A.languageServiceRefCount++;else{var P=e.createLanguageServiceSourceFile(r,u,S,d,!1,p);o&&o.setDocument(C,n,P),A={sourceFile:P,languageServiceRefCount:1},F()}return e.Debug.assert(0!==A.languageServiceRefCount),A.sourceFile;function F(){if(N)if(t(N)){var r=new e.Map;r.set(N.sourceFile.scriptKind,N),r.set(p,A),E.set(n,r)}else N.set(p,A);else E.set(n,A)}}function p(r,n,i,o){var c=e.Debug.checkDefined(s.get(a(n,o))),l=c.get(r),u=_(l,i);u.languageServiceRefCount--,e.Debug.assert(u.languageServiceRefCount>=0),0===u.languageServiceRefCount&&(t(l)?c.delete(r):(l.delete(i),1===l.size&&c.set(r,e.firstDefinedIterator(l.values(),e.identity))))}return{acquireDocument:function(t,r,a,o,s,d){return u(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,d)},acquireDocumentWithKey:u,updateDocument:function(t,r,a,o,s,u){return d(t,e.toPath(t,n,c),r,i(l(r)),a,o,s,u)},updateDocumentWithKey:d,releaseDocument:function(t,r,a,o){return p(e.toPath(t,n,c),i(r),a,o)},releaseDocumentWithKey:p,getLanguageServiceRefCounts:function(t,r){return e.arrayFrom(s.entries(),(function(e){var n=e[0],i=e[1].get(t),a=i&&_(i,r);return[n,a&&a.languageServiceRefCount]}))},reportStats:function(){var r=e.arrayFrom(s.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var r=s.get(e),n=[];return r.forEach((function(e,r){t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})}))})),n.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:i}}function n(t){var r;if(null===t||"object"!=typeof t)return""+t;if(e.isArray(t))return"[".concat(null===(r=e.map(t,(function(e){return n(e)})))||void 0===r?void 0:r.join(","),"]");var i="{";for(var a in t)e.hasProperty(t,a)&&(i+="".concat(a,": ").concat(n(t[a])));return i+"}"}function i(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return n(e.getCompilerOptionValue(t,r))})).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}function a(e,t){return t?"".concat(e,"|").concat(t):e}e.createDocumentRegistry=function(e,t){return r(e,t)},e.createDocumentRegistryInternal=r}(_||(_={})),function(e){!function(t){function r(t,r){return e.forEach(308===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)}))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i2&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function b(e){return 0===e.kind?e.textSpan:x(e.node,e.node.getSourceFile())}function D(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(16777216&t.flags)return!0;switch(t.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 348:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!t.body;case 257:case 169:return!!t.initializer||e.isCatchClause(t.parent);case 170:case 168:case 350:case 343:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||88===t.kind||e.isWriteAccess(t)}function S(t,r){var n;if(!r)return!1;var i=e.getDeclarationFromName(t)||(88===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||135===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(n=r.declarations)||void 0===n?void 0:n.some((function(e){return e===i||e===a}))))}(a=t.DefinitionKind||(t.DefinitionKind={}))[a.Symbol=0]="Symbol",a[a.Label=1]="Label",a[a.Keyword=2]="Keyword",a[a.This=3]="This",a[a.String=4]="String",a[a.TripleSlashReference=5]="TripleSlashReference",(i=t.EntryKind||(t.EntryKind={}))[i.Span=0]="Span",i[i.Node=1]="Node",i[i.StringLiteral=2]="StringLiteral",i[i.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",i[i.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t.nodeEntry=c,t.isContextWithStartAndEndNode=l,t.getContextNode=d,t.toContextSpan=_,(n=t.FindReferencesUse||(t.FindReferencesUse={}))[n.Other=0]="Other",n[n.References=1]="References",n[n.Rename=2]="Rename",t.findReferencedSymbols=function(t,n,i,a,o){var c=e.getTouchingPropertyName(a,o),l={use:1},u=r.getReferencedSymbolsForNode(o,c,t,i,n,l),f=t.getTypeChecker(),p=r.getAdjustedNode(c,l),m=function(t){return 88===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||135===t.kind&&e.isConstructorDeclaration(t.parent)}(p)?f.getSymbolAtLocation(p):void 0;return u&&u.length?e.mapDefined(u,(function(t){var r=t.definition,i=t.references;return r&&{definition:f.runWithCancellationToken(n,(function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=y(f=t.symbol,r,n),a=i.displayParts,o=i.kind,c=a.map((function(e){return e.text})).join(""),l=f.declarations&&e.firstOrUndefined(f.declarations),u=l?e.getNameOfDeclaration(l)||l:n;return s(s({},g(u)),{name:c,kind:o,displayParts:a,context:d(l)});case 1:return u=t.node,s(s({},g(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=t.node;var _=e.tokenToString(u.kind);return s(s({},g(u)),{name:_,kind:"keyword",displayParts:[{text:_,kind:"keyword"}]});case 3:u=t.node;var f,p=(f=r.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,f,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return s(s({},g(u)),{name:"this",kind:"var",displayParts:p});case 4:return u=t.node,s(s({},g(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),a=i.sourceFile,o=i.textSpan,c=i.name,l=i.kind,u=i.displayParts,f=i.context;return s({containerKind:"",containerName:"",fileName:a.fileName,kind:l,name:c,textSpan:o,displayParts:u},_(o,a,f))}(r,t,c)})),references:i.map((function(e){return function(e,t){var r=v(e);return t?s(s({},r),{isDefinition:0!==e.kind&&S(e.node,t)}):r}(e,m)}))}})):void 0},t.getImplementationsAtPosition=function(t,r,n,i,a){var c,l=e.getTouchingPropertyName(i,a),u=f(t,r,n,l,a);if(208===l.parent.kind||205===l.parent.kind||209===l.parent.kind||106===l.kind)c=u&&o([],u,!0);else if(u)for(var d=e.createQueue(u),_=new e.Map;!d.isEmpty();){var p=d.dequeue();if(e.addToSeen(_,e.getNodeId(p.node))){c=e.append(c,p);var m=f(t,r,n,p.node,p.node.pos);m&&d.enqueue.apply(d,m)}}var g=t.getTypeChecker();return e.map(c,(function(t){return function(t,r){var n=h(t);if(0!==t.kind){var i=t.node;return s(s({},n),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?y(n,r,t):207===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:228===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(i,r))}return s(s({},n),{kind:"",displayParts:[]})}(t,g)}))},t.findReferenceOrRenameEntries=function(t,n,i,a,o,s,c){return e.map(m(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=p,t.toRenameLocation=function(t,r,n,i){return s(s({},h(t)),i&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var _=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(_.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=v,t.toHighlightSpan=function(e){var t=h(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=D(e.node),n=s({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=b,t.isDeclarationOfSymbol=S,function(r){function n(t,r){return 1===r.use?t=e.getAdjustedReferenceLocation(t):2===r.use&&(t=e.getAdjustedRenameLocation(t)),t}function i(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function T(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(D(n,i,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?c(t):void 0}));return[{definition:{type:1,node:r},references:a}]}function C(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),E(e,e,t,r,n)}function E(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=S(t,r.text,e);a0;o--)D(t,i=n[o]);return[n.length-1,n[0]]}function D(e,t){var r=v(e,t);m(a,r),l.push(a),u.push(o),o=void 0,a=r}function S(){a.children&&(N(a.children,a),M(a.children)),a=l.pop(),o=u.pop()}function T(e,t,r){D(e,r),k(t),S()}function C(t){t.initializer&&function(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}(t.initializer)?(D(t),e.forEachChild(t.initializer,k),S()):T(t,t.initializer)}function E(t){return!e.hasDynamicName(t)||223!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function k(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 173:var i=t;T(i,i.body);for(var a=0,s=i.parameters;a0&&(D(J,L),e.forEachChild(J.right,k),S()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?T(t,J.right,L):(D(J,L),T(t,J.right,I.name),S()),void x(O);case 7:case 9:var R=t,j=(L=7===w?R.arguments[0]:R.arguments[0].expression,R.arguments[1]),B=b(t,L);return O=B[0],D(t,B[1]),D(t,e.setTextRange(e.factory.createIdentifier(j.text),j)),k(t.arguments[2]),S(),S(),void x(O);case 5:var J,K=(I=(J=t).left).expression;if(e.isIdentifier(K)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&o&&o.has(K.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?T(t,J.right,K):e.isBindableStaticAccessExpression(I)&&(D(J,K),T(J.left,J.right,e.getNameOrArgument(I)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(w)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&y(t)}))})),e.forEachChild(t,k)}}function N(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&f(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c0)return G(n)}switch(t.kind){case 308:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"";case 274:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return 1024&e.getSyntacticModifierFlags(t)?"default":H(t);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return""}}function j(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),nameSpan:t.name&&q(t.name),childItems:e.map(t.children,j)}}function B(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),childItems:e.map(t.children,(function(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:J(t),childItems:d,indent:0,bolded:!1,grayed:!1}}))||d,indent:t.indent,bolded:!1,grayed:!1}}function J(e){var t=[q(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return G(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return G(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return f(r.left).replace(c,"");if(e.isPropertyAssignment(r))return f(r.name);if(1024&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var n=$(r.expression);if(void 0!==n){if((n=G(n)).length>150)return"".concat(n," callback");var a=G(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "));return"".concat(n,"(").concat(a,") callback")}}return""}function $(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=$(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function G(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(_||(_={})),function(e){!function(t){function r(t,r){for(var i=e.createScanner(t.languageVersion,!1,t.languageVariant),a=[],o=0,s=0,c=r;s=2)return!0;return!1}function i(t,r,n){for(var i=n.getTypeChecker(),o=n.getCompilerOptions(),s=i.getJsxNamespace(r),c=i.getJsxFragmentFactory(r),u=!!(2&r.transformFlags),d=[],_=0,f=t;_0?m[0]:v[0],N=0===E.length?D?void 0:e.factory.createNamedImports(e.emptyArray):0===v.length?e.factory.createNamedImports(E):e.factory.updateNamedImports(v[0].importClause.namedBindings,E);p&&D&&N?(s.push(l(k,D,void 0)),s.push(l(null!==(r=v[0])&&void 0!==r?r:k,void 0,N))):s.push(l(k,D,N))}}else{var A=m[0];s.push(l(A,A.importClause.name,g[0].importClause.namedBindings))}}return s}function c(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}(t);case 285:return function(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return l(n,"code",n,!1,"<>...")}(t);case 282:case 283:return function(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}(t.attributes);case 225:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}(t);case 204:return u(t,!1,!e.isBindingElement(t.parent),22);case 216:return function(t){if(!(e.isBlock(t.body)||e.isParenthesizedExpression(t.body)||e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r)))return l(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}(t);case 210:return function(t){if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return c(n,i,t,r,!1,!0)}}(t);case 214:return function(t){if(!e.positionsAreOnSameLine(t.getStart(),t.getEnd(),r))return l(e.createTextSpanFromBounds(t.getStart(),t.getEnd()),"code",e.createTextSpanFromNode(t))}(t)}var a;function o(t,r){return void 0===r&&(r=18),u(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function u(n,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,s,r);return l&&u&&c(l,u,n,r,i,a)}}(o,t);_&&n.push(_),u--,e.isCallExpression(o)?(u++,g(o.expression),u--,o.arguments.forEach(g),null===(d=o.typeArguments)||void 0===d||d.forEach(g)):e.isIfStatement(o)&&o.elseStatement&&e.isIfStatement(o.elseStatement)?(g(o.expression),g(o.thenStatement),u++,g(o.elseStatement),u--):o.forEachChild(g),u++}}}(t,r,u),function(t,r){for(var i=[],a=0,o=t.getLineStarts();a1&&a.push(s(c,l,"comment"))}}function a(t,r,n,a){e.isJsxText(t)||i(t.pos,r,n,a)}function s(t,r,n){return l(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function l(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={}))}(_||(_={})),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=y(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 _(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof 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 d=0,f=n(i,o);d0)return r(t.substring,!0);if(a.characterSpans.length>0){var m=n(i,o),g=!!l(i,m,a,!1)||!l(i,m,a,!0)&&void 0;if(void 0!==g)return r(t.camelCase,g)}}}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,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function _(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 p(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(m(e.substr(r,n))),n=0);var a;return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:g(e)}}function g(e){return v(e,!1)}function y(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;at.length)){for(var c=n.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],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=g,e.breakIntoWordSpans=y}(_||(_={})),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=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function _(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function f(){c.push(_()),p()}function p(){0===l&&(u=!0)}function m(){var t=e.scanner.getToken();return 136===t&&(142===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:_(),depth:l})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=d())){if(10===(t=d())||14===t)return f(),!0}else{if(10===t)return f(),!0;if(154===t){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 158!==t&&(41===t||18===t||79===t||e.isKeyword(t))}));r&&(t=d())}if(79===t||e.isKeyword(t))if(158===(t=d())){if(10===(t=d()))return f(),!0}else if(63===t){if(v(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&158===(t=d())&&10===(t=d())&&f()}else 41===t&&128===(t=d())&&(79===(t=d())||e.isKeyword(t))&&158===(t=d())&&10===(t=d())&&f()}return!0}return!1}function y(){var t=e.scanner.getToken();if(93===t){if(p(),154===(t=d())){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}));r&&(t=d())}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&158===(t=d())&&10===(t=d())&&f()}else if(41===t)158===(t=d())&&10===(t=d())&&f();else if(100===t&&(154===(t=d())&&(r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)})),r&&(t=d())),(79===t||e.isKeyword(t))&&63===(t=d())&&v(!0)))return!0;return!0}return!1}function v(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 147===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&f(),!0)}function h(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||f(),t=d();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();){if(15===e.scanner.getToken()){var r=[e.scanner.getToken()];e:for(;e.length(r);){var i=e.scanner.scan();switch(i){case 1:break e;case 100:g();break;case 15:r.push(i);break;case 18:e.length(r)&&r.push(i);break;case 19:e.length(r)&&(15===e.lastOrUndefined(r)?17===e.scanner.reScanTemplateToken(!1)&&r.pop():r.pop())}}d()}m()||g()||y()||n&&(v(!1,!0)||h())||d()}e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var x=0,b=i;xt)break e;var h=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,y.end));if(h&&2===h.kind&&C(h.pos,h.end),r(n,t,y)){if(e.isFunctionBody(y)&&e.isFunctionLikeDeclaration(f)&&!e.positionsAreOnSameLine(y.getStart(n),y.getEnd(),n)&&T(y.getStart(n),y.getEnd()),e.isBlock(y)||e.isTemplateSpan(y)||e.isTemplateHead(y)||e.isTemplateTail(y)||g&&e.isTemplateHead(g)||e.isVariableDeclarationList(y)&&e.isVariableStatement(f)||e.isSyntaxList(y)&&e.isVariableDeclarationList(f)||e.isVariableDeclaration(y)&&e.isSyntaxList(f)&&1===p.length||e.isJSDocTypeExpression(y)||e.isJSDocSignature(y)||e.isJSDocTypeLiteral(y)){f=y;break}e.isTemplateSpan(f)&&v&&e.isTemplateMiddleOrTemplateTail(v)&&T(y.getFullStart()-"${".length,v.getStart()+"}".length);var x=e.isSyntaxList(y)&&(void 0,18===(d=(c=g)&&c.kind)||22===d||20===d||283===d)&&l(v)&&!e.positionsAreOnSameLine(g.getStart(),v.getStart(),n),b=x?g.getEnd():y.getStart(),D=x?v.getStart():u(n,y);if(e.hasJSDocNodes(y)&&(null===(a=y.jsDoc)||void 0===a?void 0:a.length)&&T(e.first(y.jsDoc).getStart(),D),e.isSyntaxList(y)){var S=y.getChildren()[0];S&&e.hasJSDocNodes(S)&&(null===(o=S.jsDoc)||void 0===o?void 0:o.length)&&S.getStart()!==y.pos&&(b=Math.min(b,e.first(S.jsDoc).getStart()))}T(b,D),(e.isStringLiteral(y)||e.isTemplateLiteral(y))&&T(b+1,D-1),f=y;break}if(m===p.length-1)break e}}return _;function T(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!_||!e.textSpansEqual(i,_.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(_=s({textSpan:i},_&&{parent:_}))}}function C(e,t){T(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;T(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){var r;if(e.isSourceFile(t))return a(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var i=t.getChildren(),s=i[0],l=i.slice(1),u=e.Debug.checkDefined(l.pop());e.Debug.assertEqual(s.kind,18),e.Debug.assertEqual(u.kind,19);var d=a(l,(function(e){return e===t.readonlyToken||146===e.kind||e===t.questionToken||57===e.kind})),_=a(d,(function(e){var t=e.kind;return 22===t||165===t||23===t}));return[s,c(o(_,(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t)){var f=323===(null===(r=(l=a(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})))[0])||void 0===r?void 0:r.kind)?l[0]:void 0,p=o(f?l.slice(1):l,(function(e){return 58===e.kind}));return f?[f,c(p)]:p}if(e.isParameter(t)){var m=a(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return o(a(m,(function(e){return e===m[0]||e===t.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(t)?o(t.getChildren(),(function(e){return 63===e.kind})):t.getChildren()}function a(e,t){for(var r,n=[],i=0,a=e;i0&&27===e.last(n).kind&&i++,i}(a,e.isInString(n,r,t));0!==o&&e.Debug.assertLessThan(o,s);var c=function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(a,n);return{list:a,argumentIndex:o,argumentCount:s,argumentsSpan:c}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,r,n);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,_=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:_,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?d(i,0,n):void 0;if(e.isTemplateHead(t)&&212===i.parent.kind){var f=i,p=f.parent;return e.Debug.assert(225===f.kind),d(p,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;if(p=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return l=function(t,r,n,i){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r)?e.isInsideTemplateLiteral(r,n,i)?0:t+2:t+1}(m.parent.templateSpans.indexOf(m),t,r,n),d(p,l,n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(t,n);if(v){var h=v.called,x=v.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:h},argumentsSpan:_=e.createTextSpanFromBounds(h.getStart(n),t.end),argumentIndex:x,argumentCount:x+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function l(t){return e.isBinaryExpression(t.left)?l(t.left)+1:2}function u(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function p(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,o,u){var d=t.getTypeChecker(),_=e.findTokenOnLeftOfPosition(r,n);if(_){var f=!!o&&"characterTyped"===o.kind;if(!f||!e.isInString(r,n,_)&&!e.isInComment(r,n)){var g=!!o&&"invoked"===o.kind,h=function(t,r,n,i,o){for(var u=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))}));var o=function(t,r,n,i){return function(t,r,n,i){var o=function(t,r,n,i){if(20===t.kind||27===t.kind){var o=t.parent;switch(o.kind){case 214:case 171:case 215:case 216:var s=a(t,n,r);if(!s)return;var u=s.argumentIndex,d=s.argumentCount,_=s.argumentsSpan,f=e.isMethodDeclaration(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return f&&{contextualType:f,argumentIndex:u,argumentCount:d,argumentsSpan:_};case 223:var p=c(o),m=i.getContextualType(p),g=20===t.kind?0:l(o)-1,y=l(p);return m&&{contextualType:m,argumentIndex:g,argumentCount:y,argumentsSpan:e.createTextSpanFromNode(o)};default:return}}}(t,n,r,i);if(o){var s=o.contextualType,u=o.argumentIndex,d=o.argumentCount,_=o.argumentsSpan,f=s.getNonNullableType(),p=f.symbol;if(void 0!==p){var m,g=e.lastOrUndefined(f.getCallSignatures());return void 0===g?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:g,node:t,symbol:(m=p,"__type"===m.name&&e.firstDefined(m.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||m)},argumentsSpan:_,argumentIndex:u,argumentCount:d}}}}(t,r,n,i)||s(t,r,n)}(t,r,n,i);if(o)return{value:o}},d=t;!e.isSourceFile(d)&&(o||!e.isBlock(d));d=d.parent){var _=u(d);if("object"==typeof _)return _.value}}(_,n,r,d,g);if(h){u.throwIfCancellationRequested();var x=function(t,r,n,a,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 29:return i(t,n,r.expression);default:return!1}}(a,s.node,n))return;var l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!i(a,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var _=r.getSymbolAtLocation(d);return _&&{kind:1,symbol:_};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(h,d,r,_,f);return u.throwIfCancellationRequested(),x?d.runWithCancellationToken(u,(function(e){return 0===x.kind?y(x.candidates,x.resolvedSignature,h,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[v(e,c,n,m(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(x.symbol,h,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=p(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return y(a,a[0],t,r,e,!0)}))}))}))}}(h,t,u):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var g=70246400;function y(t,r,n,i,a,s){var c,l=n.isTypeParameterList,u=n.argumentCount,d=n.argumentsSpan,_=n.invocation,f=n.argumentIndex,g=m(_),y=2===_.kind?_.symbol:a.getSymbolAtLocation(p(_))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),v=y?e.symbolToDisplayParts(a,y,s?i:void 0,void 0):e.emptyArray,D=e.map(t,(function(t){return function(t,r,n,i,a,s){var c=(n?x:b)(t,i,a,s);return e.map(c,(function(n){var s=n.isVariadic,c=n.parameters,l=n.prefix,u=n.suffix,d=o(o([],r,!0),l,!0),_=o(o([],u,!0),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,a,i),!0),f=t.getDocumentationComment(i),p=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:_,separatorDisplayParts:h,parameters:c,documentation:f,tags:p}}))}(t,v,l,a,g,i)}));0!==f&&e.Debug.assertLessThan(f,u);for(var S=0,T=0,C=0;C1))for(var k=0,N=0,A=E;N=u){S=T+k;break}k++}T+=E.length}e.Debug.assert(-1!==S);var F={items:e.flatMapToMutable(D,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:f,argumentCount:u},w=F.items[S];if(w.isVariadic){var I=e.findIndex(w.parameters,(function(e){return!!e.isRest}));-1t?e.substr(0,t-"...".length)+"...":e}function x(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}function b(t){if((e.isParameterDeclaration(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&t.initializer){var r=e.skipParentheses(t.initializer);return!(y(r)||e.isNewExpression(r)||e.isObjectLiteralExpression(r)||e.isAssertionExpression(r))}return!0}}}(e.InlayHints||(e.InlayHints={}))}(_||(_={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)&&c(r.fileName)){var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==d){var _=s(d,i.fileName).getGeneratedPosition(i);return _===i?void 0:_}}}}},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var d=l(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(d.text,e.getLineStarts(d)),(function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function l(r){return t.getSourceFileLike?t.getSourceFileLike(r):c(r)||function(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),_=0,f=u;_n)&&(t.arguments.length0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,d){var _;void 0===u&&(u=e.getMeaningFromLocation(l));var f,p,m,g,y=[],v=[],h=[],x=e.getCombinedLocalAndExportSymbolFlags(o),b=1&u?i(a,o,l):"",D=!1,S=108===l.kind&&e.isInExpressionContext(l)||e.isThisInTypeQuery(l),T=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==b||32&x||2097152&x){if("getter"===b||"setter"===b)if(W=e.find(o.declarations,(function(e){return e.name===l})))switch(W.kind){case 174:b="getter";break;case 175:b="setter";break;case 169:b="accessor";break;default:e.Debug.assertNever(W)}else b="property";var C=void 0;if(f=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&208===l.parent.kind){var E=l.parent.name;(E===l||E&&0===E.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){C=a.getResolvedSignature(k);var N=211===k.kind||e.isCallExpression(k)&&106===k.expression.kind,A=N?f.getConstructSignatures():f.getCallSignatures();if(!C||e.contains(A,C.target)||e.contains(A,C)||(C=A.length?A[0]:void 0),C){switch(N&&32&x?(b="constructor",te(f.symbol,b)):2097152&x?(re(b="alias"),y.push(e.spacePart()),N&&(4&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ee(o)):te(o,b),b){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(58)),y.push(e.spacePart()),16&e.getObjectFlags(f)||!f.symbol||(e.addRange(y,e.symbolToDisplayParts(a,f.symbol,c,void 0,5)),y.push(e.lineBreakPart())),N&&(4&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ne(C,A,262144);break;default:ne(C,A)}D=!0,T=A.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&x)||135===l.kind&&173===l.parent.kind){var P=l.parent,F=o.declarations&&e.find(o.declarations,(function(e){return e===(135===l.kind?P.parent:P)}));F&&(A=173===P.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures(),C=a.isImplementationOfOverload(P)?A[0]:a.getSignatureFromDeclaration(P),173===P.kind?(b="constructor",te(f.symbol,b)):te(176!==P.kind||2048&f.symbol.flags||4096&f.symbol.flags?o:f.symbol,b),C&&ne(C,A),D=!0,T=A.length>1)}}if(32&x&&!D&&!S&&(Y(),e.getDeclarationOfKind(o,228)?re("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),ee(o),ie(o,s)),64&x&&2&u&&(Q(),y.push(e.keywordPart(118)),y.push(e.spacePart()),ee(o),ie(o,s)),524288&x&&2&u&&(Q(),y.push(e.keywordPart(154)),y.push(e.spacePart()),ee(o),ie(o,s),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(a,e.isConstTypeReference(l.parent)?a.getTypeAtLocation(l.parent):a.getDeclaredTypeOfSymbol(o),c,8388608))),384&x&&(Q(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),ee(o)),1536&x&&!S){Q();var w=(W=e.getDeclarationOfKind(o,264))&&W.name&&79===W.name.kind;y.push(e.keywordPart(w?143:142)),y.push(e.spacePart()),ee(o)}if(262144&x&&2&u)if(Q(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),ee(o),o.parent)Z(),ee(o.parent,c),ie(o.parent,c);else{var I=e.getDeclarationOfKind(o,165);if(void 0===I)return e.Debug.fail();(W=I.parent)&&(e.isFunctionLikeKind(W.kind)?(Z(),C=a.getSignatureFromDeclaration(W),177===W.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):176!==W.kind&&W.name&&ee(W.symbol),e.addRange(y,e.signatureToDisplayParts(a,C,s,32))):262===W.kind&&(Z(),y.push(e.keywordPart(154)),y.push(e.spacePart()),ee(W.symbol),ie(W.symbol,s)))}if(8&x&&(b="enum member",te(o,"enum member"),302===(null==(W=null===(_=o.declarations)||void 0===_?void 0:_[0])?void 0:W.kind))){var M=a.getConstantValue(W);void 0!==M&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(M),"number"==typeof M?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(Q(),!D){var O=a.getAliasedSymbol(o);if(O!==o&&O.declarations&&O.declarations.length>0){var L=O.declarations[0],R=e.getNameOfDeclaration(L);if(R){var j=e.isModuleWithStringLiteralName(L)&&e.hasSyntacticModifier(L,2),B="default"!==o.name&&!j,J=t(a,O,e.getSourceFileOfNode(L),L,R,u,B?o:O);y.push.apply(y,J.displayParts),y.push(e.lineBreakPart()),m=J.documentation,g=J.tags}else m=O.getContextualDocumentationComment(L,a),g=O.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 267:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(143));break;case 274:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 278:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),ee(o),e.forEach(o.declarations,(function(t){if(268===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.keywordPart(147)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),ee(n,c))}return!0}}))}if(!D)if(""!==b){if(f)if(S?(Q(),y.push(e.keywordPart(108))):te(o,b),"property"===b||"accessor"===b||"getter"===b||"setter"===b||"JSX attribute"===b||3&x||"local var"===b||"index"===b||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),f.symbol&&262144&f.symbol.flags&&"index"!==b){var K=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(f,c,r);X().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(y,K)}else e.addRange(y,e.typeToDisplayParts(a,f,c));if(o.target&&o.target.tupleLabelDeclaration){var z=o.target.tupleLabelDeclaration;e.Debug.assertNode(z.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(z.name))),y.push(e.punctuationPart(21))}}else(16&x||8192&x||16384&x||131072&x||98304&x||"method"===b)&&(A=f.getNonNullableType().getCallSignatures()).length&&(ne(A[0],A),T=A.length>1)}else b=n(a,o,l);if(0!==v.length||T||(v=o.getContextualDocumentationComment(c,a)),0===v.length&&4&x&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 308===e.kind})))for(var U=0,V=o.declarations;U0))break}if(0===v.length&&e.isIdentifier(l)&&o.valueDeclaration&&e.isBindingElement(o.valueDeclaration)){var W,H=(W=o.valueDeclaration).parent;if(e.isIdentifier(W.name)&&e.isObjectBindingPattern(H)){var $=e.getTextOfIdentifierOrLiteral(W.name),G=a.getTypeAtLocation(H);v=e.firstDefined(G.isUnion()?G.types:[G],(function(e){var t=e.getProperty($);return t?t.getDocumentationComment(a):void 0}))||e.emptyArray}}return 0!==h.length||T||(h=o.getContextualJsDocTags(c,a)),0===v.length&&m&&(v=m),0===h.length&&g&&(h=g),{displayParts:y,documentation:v,symbolKind:b,tags:0===h.length?void 0:h};function X(){return p||(p=e.createPrinter({removeComments:!0})),p}function Q(){y.length&&y.push(e.lineBreakPart()),Y()}function Y(){d&&(re("alias"),y.push(e.spacePart()))}function Z(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function ee(t,r){var n;d&&t===o&&(t=d),"index"===b&&(n=a.getIndexInfosOfIndexSymbol(t));var i=[];131072&t.flags&&n?(t.parent&&(i=e.symbolToDisplayParts(a,t.parent)),i.push(e.punctuationPart(22)),n.forEach((function(t,r){i.push.apply(i,e.typeToDisplayParts(a,t.keyType)),r!==n.length-1&&(i.push(e.spacePart()),i.push(e.punctuationPart(51)),i.push(e.spacePart()))})),i.push(e.punctuationPart(23))):i=e.symbolToDisplayParts(a,t,r||s,void 0,7),e.addRange(y,i),16777216&o.flags&&y.push(e.punctuationPart(57))}function te(t,r){Q(),r&&(re(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(y.push(e.spacePart()),ee(t)))}function re(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(20)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(21))}}function ne(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(39)),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(21))),v=t.getDocumentationComment(a),h=t.getJsDocTags(),r.length>1&&0===v.length&&0===h.length&&(v=r[0].getDocumentationComment(a),h=r[0].getJsDocTags().filter((function(e){return"deprecated"!==e.name})))}function ie(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);X().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(y,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(_||(_={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c>=5;return r}(_,d),0,n),o[s]=(u=1+((c=_)>>(l=d)&31),e.Debug.assert((31&u)===u,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return _(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 _(r,n,i,a,o,s,c,l,u){var d,_,p,m,g,y,v=s.options,h=s.getRules,x=s.host,b=new t.FormattingContext(u,c,v),D=-1,S=[];if(o.advance(),o.isOnToken()){var T=u.getLineAndCharacterOfPosition(n.getStart(u)).line,C=T;e.hasDecorators(n)&&(C=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,d,f){if(e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd())){var m=P(i,s,d,f),g=a;for(e.forEachChild(i,(function(e){x(e,-1,i,m,s,c,!1)}),(function(n){!function(n,a,s,c){e.Debug.assert(e.isNodeArray(n)),e.Debug.assert(!e.nodeIsSynthesized(n));var l=function(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}(a,n),d=c,_=s;if(e.rangeOverlapsWithStartEnd(r,n.pos,n.end)){if(0!==l)for(;o.isOnToken()&&o.getStartPos()n.pos);)if(y.token.kind===l){_=u.getLineAndCharacterOfPosition(y.token.pos).line,b(y,a,c,a);var f=void 0;if(-1!==D)f=D;else{var p=e.getLineStartPositionForPosition(y.token.pos,u);f=t.SmartIndenter.findFirstNonWhitespaceColumn(p,y.token.pos,u,v)}d=P(a,s,f,v.indentSize)}else b(y,a,c,a);for(var m=-1,g=0;gMath.min(i.end,r.end))break;b(h,i,m,i)}}function x(a,s,c,l,d,_,f,p){if(e.Debug.assert(!e.nodeIsSynthesized(a)),e.nodeIsMissing(a))return s;var m=a.getStart(u),h=u.getLineAndCharacterOfPosition(m).line,x=h;e.hasDecorators(a)&&(x=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var S=-1;if(f&&e.rangeContainsRange(r,c)&&(S=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=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,v);if(s!==i||r===l){var d=t.SmartIndenter.getBaseIndentation(v);return d>l?d:l}}return-1}(m,a.end,d,r,s),-1!==S&&(s=S)),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endr.end)return s;if(T.token.end>m){T.token.pos>m&&o.skipToStartOf(a);break}b(T,i,l,i)}if(!o.isOnToken()||o.getStartPos()>=r.end)return s;if(e.isToken(a)){var T=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(T.token.end===a.end,"Token end is child end"),b(T,i,l,a),s}var C=167===a.kind?h:_,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(v,e)?v.indentSize:0;return o===r?{indentation:r===y?D:a.getIndentation(),delta:Math.min(v.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===y?{indentation:D,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,h,S,i,l,C);return n(a,g,h,x,E.indentation,E.delta),g=i,p&&206===c.kind&&-1===s&&(s=E.indentation),s}function b(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&w(t.leadingTrivia,n,g,i);var f=0,m=e.rangeContainsRange(r,t.token),v=u.getLineAndCharacterOfPosition(t.token.pos);if(m){var h=l(t.token),x=p;if(f=I(t.token,v,n,g,i),!h)if(0===f){var b=x&&u.getLineAndCharacterOfPosition(x.end).line;d=c&&v.line!==b}else d=1===f}if(t.trailingTrivia&&(_=e.last(t.trailingTrivia).end,w(t.trailingTrivia,n,g,i)),d){var S=m&&!l(t.token)?i.getIndentationForToken(v.line,t.token.kind,a,!!s):-1,T=!0;if(t.leadingTrivia){var C=i.getIndentationForComment(t.token.kind,S,a);T=F(t.leadingTrivia,C,T,(function(e){return O(e.pos,C,!1)}))}-1!==S&&T&&(O(t.token.pos,S,1===f),y=v.line,D=S)}o.advance(),g=n}}(n,n,T,C,i,a)}if(!o.isOnToken()){var E=t.SmartIndenter.nodeWillIndentChild(v,n,void 0,u,!1)?i+v.indentSize:i,k=o.getCurrentLeadingTrivia();k&&(F(k,E,!1,(function(e){return I(e,u.getLineAndCharacterOfPosition(e.pos),n,n,void 0)})),!1!==v.trimTrailingWhitespace&&function(t){for(var n=p?p.end:r.pos,i=0,a=t;i=r.end){var N=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(n).token:void 0;if(N&&N.pos===_){var A=(null===(d=e.findPrecedingToken(N.end,u,n))||void 0===d?void 0:d.parent)||m;M(N,u.getLineAndCharacterOfPosition(N.pos).line,A,p,g,m,A,void 0)}}return S;function P(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(197!==a.kind)return!1}return n!==t&&!(e.hasDecorators(r)&&i===function(t){if(e.canHaveModifiers(t)){var r=e.find(t.modifiers,e.isModifier,e.findIndex(t.modifiers,e.isDecorator));if(r)return r.kind}switch(t.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(t.asteriskToken)return 41;case 169:case 166:var n=e.getNameOfDeclaration(t);if(n)return n.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(v,n,r,u)&&(i+=e?v.indentSize:-v.indentSize,a=t.SmartIndenter.shouldIndentChildNode(v,r)?v.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(v,r,e,u,!0)?a:0}}function F(t,n,i,a){for(var o=0,s=t;o0){var S=f(D,v);K(x,b.character,S)}else J(x,b.character)}}}else i||O(r.pos,n,!1)}function R(t,r,n){for(var i=t;io)){var s=j(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),J(s,o+1-s))}}}function j(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function B(e,t,r){R(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,r)}function J(t,r){r&&S.push(e.createTextChangeFromStartLength(t,r,""))}function K(t,r,n){(r||n)&&S.push(e.createTextChangeFromStartLength(t,r,n))}}function f(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 l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},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--,d({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return u(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return u(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return d({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:e.pos,end:e.end};return t.getFormattingScanner(r.text,n,s.pos,s.end,(function(t){return _(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}var h=s(m,e,i),x=h.line===t.line||_(m,e,t.line,i);if(y){var b=null===(p=f(e,i))||void 0===p?void 0:p[0],S=g(e,i,l,!!b&&u(b,i).line>h.line);if(-1!==S)return S+n;if(-1!==(S=c(e,m,t,x,i,l)))return S+n}D(l,m,e,i,o)&&!x&&(n+=l.indentSize);var T=d(m,e,t.line,i);m=(e=m).parent,t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):h}return n+a(l)}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)||308!==r.kind&&i?-1:v(n,a,o)}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(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 _(t,r,n,i){if(242===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),u(a,i).line===n}return!1}function f(e,t){return e.parent&&p(e.getStart(t),e.getEnd(),e.parent,t)}function p(t,r,n,i){switch(n.kind){case 180:return a(n.typeArguments);case 207:return a(n.properties);case 206:case 272:case 276:case 203:case 204:return a(n.elements);case 184:return a(n.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return a(n.typeParameters)||a(n.parameters);case 174:return a(n.parameters);case 260:case 228:case 261:case 262:case 347:return a(n.typeParameters);case 211:case 210:return a(n.typeArguments)||a(n.arguments);case 258:return a(n.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return v(a,n,i);a=u(t[o],n)}return-1}function v(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return x(n,n+e.character,t,r)}function h(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),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.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 x(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=h(s,r,t,n),l=c.column,u=c.character;return 0===l?l:42===t.text.charCodeAt(s+u)?l-1:l}(n,r,i,d);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 x(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&223!==c.parent.kind){var b=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!==b)return b}var S=function(e,t,r){return t&&p(e,e,t,r)}(r,c.parent,n);if(S&&!e.rangeContainsRange(S,c)){var T=-1!==[215,216].indexOf(f.parent.kind)?0:i.indentSize;return m(S,n,i)+T}return function(t,r,n,i,s,c){for(var d,_=n;_;){if(e.positionBelongsToNode(_,r,t)&&D(c,_,d,t,!0)){var f=u(_,t),p=l(n,_,i,t);return o(_,f,void 0,0!==p?s&&2===p?c.indentSize:0:i!==f.line?c.indentSize:0,t,!0,c)}var m=g(_,t,c,!0);if(-1!==m)return m;d=_,_=_.parent}return a(c)}(n,r,c,_,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,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=d,r.childStartsOnTheSameLineWithElseInIfStatement=_,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=f,r.findFirstNonWhitespaceCharacterAndColumn=h,r.findFirstNonWhitespaceColumn=x,r.nodeWillIndentChild=b,r.shouldIndentChildNode=D})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(_||(_={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function i(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var c,l;function u(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,_={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function f(e,t,r,n){return{pos:p(e,t,n),end:g(e,r,n)}}function p(t,r,n,i){var a,o;void 0===i&&(i=!1);var s=n.leadingTriviaOption;if(s===c.Exclude)return r.getStart(t);if(s===c.StartLine){var l=r.getStart(t),d=e.getLineStartPositionForPosition(l,t);return e.rangeContainsPosition(r,d)?d:l}if(s===c.JSDoc){var _=e.getJSDocCommentRanges(r,t.text);if(null==_?void 0:_.length)return e.getLineStartPositionForPosition(_[0].pos,t)}var f=r.getFullStart(),p=r.getStart(t);if(f===p)return p;var m=e.getLineStartPositionForPosition(f,t);if(e.getLineStartPositionForPosition(p,t)===m)return s===c.IncludeAll?f:p;if(i){var g=(null===(a=e.getLeadingCommentRanges(t.text,f))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,f))||void 0===o?void 0:o[0]);if(g)return e.skipTrivia(t.text,g.end,!0,!0)}var y=f>0?1:0,v=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,m)+y,t);return v=u(t.text,v),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,v),t)}function m(t,r,n){var i=r.end;if(n.trailingTriviaOption===l.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),s=0,c=a;so)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function g(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end)||a}var c=m(t,r,n);if(c)return c;var u=e.skipTrivia(t.text,a,!0);return u===a||o!==l.Include&&!e.isLineBreak(t.text.charCodeAt(u-1))?a:u}function y(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&207===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var v,h=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.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,o([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var i=e.find(r.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,o(o([],r.body.statements,!0),[n],!1))},t.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,o(o([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=p(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertMemberAtStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,D(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=D(r);a=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}t.ChangeTracker=h,t.getNewFileText=function(e,t,r,n){return v.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,i,a,o){var s=i.map((function(e){return 4===e?"":n(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return S(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=N(n),a=e.getNewLineKind(n);return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:E(t)}}t.getTextChangesFromChanges=function(t,r,i,a){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(function(t){for(var o=t[0].sourceFile,c=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),l=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",(function(){return"".concat(JSON.stringify(c[t].range)," and ").concat(JSON.stringify(c[t+1].range))}))},u=0;u0?{fileName:o.fileName,textChanges:_}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=n}(v||(v={})),t.applyChanges=S;var T,C=s(s({},e.nullTransformationContext),{factory:e.createNodeFactory(1|e.nullTransformationContext.factory.flags,e.nullTransformationContext.factory.baseFactory)});function E(t){var n=e.visitEachChild(t,E,C,k,E),a=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(a,r(t),i(t)),a}function k(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),i(t)),l}function N(t){var r=0,i=e.createTextWriter(t);function o(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode:function(e){e&&n(e,r)},onAfterEmitNode:function(e){e&&a(e,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&a(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&a(e,r)},write:function(e){i.write(e),o(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),o(e,!1)},writeOperator:function(e){i.writeOperator(e),o(e,!1)},writePunctuation:function(e){i.writePunctuation(e),o(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),o(e,!1)},writeParameter:function(e){i.writeParameter(e),o(e,!1)},writeProperty:function(e){i.writeProperty(e),o(e,!1)},writeSpace:function(e){i.writeSpace(e),o(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),o(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),o(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),o(e,!1)},writeLiteral:function(e){i.writeLiteral(e),o(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}function A(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function P(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=p(t,r,n),a=g(t,r,n);e.deleteRange(t,{pos:i,end:a})}function F(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:x(n,i),end:o===a.length-1?g(n,i,{}):b(n,i,a[o-1],a[o+1])})):P(t,n,i)}t.assignPositionsToNode=E,t.createWriter=N,t.isValidLocationToAddComment=A,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else P(t,r,e.getAncestor(n,269))}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 166:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):F(t,n,i,a);break;case 269:case 268:P(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 205:var s=a.parent;204===s.kind&&a!==e.last(s.elements)?P(t,i,a):F(t,n,i,a);break;case 257:!function(t,r,n,i){var a=i.parent;if(295!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 247:case 246:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 245:P(t,n,a);break;case 240:P(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else F(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))}(t,n,i,a);break;case 165:F(t,n,i,a);break;case 273:var u=a.parent;1===u.elements.length?r(t,i,u):F(t,n,i,a);break;case 271:r(t,i,a);break;case 26:P(t,i,a,{trailingTriviaOption:l.Exclude});break;case 98:P(t,i,a,{leadingTriviaOption:c.Exclude});break;case 260:case 259:P(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else P(t,r,n.name)}else P(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?F(t,n,i,a):P(t,i,a):P(t,i,a)}}}(T||(T={})),t.deleteNode=P}(e.textChanges||(e.textChanges={}))}(_||(_={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function i(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function a(e,t){return{changes:e,commands:t}}function c(t,r,n){for(var i=0,a=l(t);i1)break}var l=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=u(e,["fixId","fixAllDescription"]);return l?n:s(s({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=a,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return a(e.textChanges.ChangeTracker.with(t,(function(e){return c(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=c}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(_||(_={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.isAsExpression(n)?e.factory.createAsExpression(n.expression,e.factory.createKeywordTypeNode(157)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(157),n.expression);t.replaceNode(r,n.expression,i)}function a(t,r){if(!e.isInJSFile(t))return e.findAncestor(e.getTokenAtPosition(t,r),(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)}))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(void 0!==o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(_||(_={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(!i||!i.has(e.getNodeId(n))){null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(512|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u)return[i(t,u,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=a(o,c);if(l)return i(r,l,(function(e){return e(t),[]}),s)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,i=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],a=o([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,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.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],i,!0);function s(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&function(t,r,n,i,a){var o=a.getTypeChecker().getDiagnostics(t,i);return e.some(o,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&u(o)?o:void 0}function c(r,n,i,o,s,c){var l=r.sourceFile,_=r.program,f=r.cancellationToken,p=function(t,r,n,i,o){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;169!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,136,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,c)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="addOptionalPropertyUndefined",n=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function i(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var a=r.getSymbolAtLocation(t.parent.expression);if(!(null==a?void 0:a.valueDeclaration)||!e.isFunctionLikeKind(a.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=a.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=i(t.parent.parent,r);if(!c)return;var l=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),u=null===(n=null==l?void 0:l.declarations)||void 0===n?void 0:n[0];if(!u)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:u}}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getTypeChecker(),s=function(t,r,n){var a,o,s=i(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=function(t,r,n){return e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType()}(c,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);return(null===(o=null===(a=u.symbol)||void 0===a?void 0:a.declarations)||void 0===o?void 0:o.some((function(t){return e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/)})))?e.emptyArray:n.getExactOptionalProperties(u)}(n.sourceFile,n.span,a);if(s.length){var c=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r){for(var n=0,i=r;n1?(t.delete(r,u),t.insertNodeAfter(r,_,d)):t.replaceNode(r,_,d)}}function f(n){var i=[];return n.exports&&n.exports.forEach((function(t){if("prototype"===t.name&&t.declarations){var r=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&l(r.parent.right.symbol,void 0,i)}else l(t,[e.factory.createToken(124)],i)})),n.members&&n.members.forEach((function(a,s){var c,u,d,_;if("constructor"===s&&a.valueDeclaration){var f=null===(_=null===(d=null===(u=null===(c=n.exports)||void 0===c?void 0:c.get("prototype"))||void 0===u?void 0:u.declarations)||void 0===d?void 0:d[0])||void 0===_?void 0:_.parent;f&&e.isBinaryExpression(f)&&e.isObjectLiteralExpression(f.right)&&e.some(f.right.properties,o)||t.delete(r,a.valueDeclaration.parent)}else l(a,void 0,i)})),i;function l(n,i,l){if(8192&n.flags||4096&n.flags){var u,d,_=n.valueDeclaration,f=_.parent,p=f.right;if(u=_,d=p,(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))})))&&!e.some(l,(function(t){var r=e.getNameOfDeclaration(t);return!(!r||!e.isIdentifier(r)||e.idText(r)!==e.symbolName(n))}))){var m=f.parent&&241===f.parent.kind?f.parent:f;if(t.delete(r,m),p){if(e.isAccessExpression(_)&&(e.isFunctionExpression(p)||e.isArrowFunction(p))){var g=e.getQuotePreference(r,s),y=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i:void 0}(_,c,g);y&&h(l,p,y)}else if(e.isObjectLiteralExpression(p))e.forEach(p.properties,(function(t){(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))&&l.push(t),e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&h(l,t.initializer,t.name),o(t)}));else if(!e.isSourceFileJS(r)&&e.isPropertyAccessExpression(_)){var v=e.factory.createPropertyDeclaration(i,_.name,void 0,void 0,p);return e.copyLeadingComments(f.parent,v,r),void l.push(v)}}else l.push(e.factory.createPropertyDeclaration(i,n.name,void 0,void 0,void 0))}}function h(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,132)),c=e.factory.createMethodDeclaration(s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(f,c,r),void t.push(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=238===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,132)),u=e.factory.createMethodDeclaration(l,void 0,o,void 0,void 0,n.parameters,void 0,s);e.copyLeadingComments(f,u,r),t.push(u)}(t,n,o)}}}}function a(t,r){return e.canHaveModifiers(t)?e.filter(t.modifiers,(function(e){return e.kind===r})):void 0}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r,n="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],a=!0;function s(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var s=new e.Map,l=e.isInJSFile(a),u=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")||c(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):d(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),p=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=T(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,d=a.get(u);if(d&&d.some((function(e){return e!==s}))){var f=_(o,a);i.set(l,f.identifier),n.set(l,f),a.add(u,s)}else{var p=e.getSynthesizedDeepClone(o);n.set(l,N(p)),a.add(u,s)}}}else{var m=e.firstOrUndefined(c.parameters),g=(null==m?void 0:m.valueDeclaration)&&e.isParameter(m.valueDeclaration)&&e.tryCast(m.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),y=_(g,a);n.set(l,y),a.add(g.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(p,i)){var g=p.body&&e.isBlock(p.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(p.body,i):e.emptyArray,y={checker:i,synthNamesMap:s,setOfExpressionsToReturn:u,isInJSFile:l};if(g.length){var v=e.skipTrivia(r.text,e.moveRangePastModifiers(a).pos);t.insertModifierAt(r,v,132,{suffix:" "});for(var h=function(n){if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=m(a,a,y,!1);if(f())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),f()))return!0})),f())return{value:void 0}},x=0,b=g;x0)return F;if(y){if(N=S(o.checker,y,g),M(a,o))return b(N,u(a,t,o.checker));var w=x(n,N,void 0);return n&&n.types.push(o.checker.getAwaitedType(y)||y),w}return p();default:return p()}return e.emptyArray}function S(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function T(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function C(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=m(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function E(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):function(t,r,n){return void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}}(r,e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]})))}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||N(t,i)}}function k(t){return!t||(I(t)?!t.identifier.text:e.every(t.elements,k))}function N(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function A(e){return e.hasBeenReferenced=!0,e.identifier}function P(e){return I(e)?w(e):F(e)}function F(e){for(var t=0,r=e.elements;t1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(d.arguments[0],r):void 0;return f?(i.replaceNodeWithNodes(t,n.parent,f[0]),f[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),d.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=[m(void 0,o,r.right),g([e.factory.createExportSpecifier(!1,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,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,y,i,d,f)}default:return!1}}function a(r,n,i,a,o,s,c){var u,d=n.declarationList,_=!1,g=e.map(d.declarations,(function(n){var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return _=!0,y([]);if(e.isRequireCall(u,!0))return _=!0,function(r,n,i,a,o,s){switch(r.kind){case 203:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:p(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return y([e.makeImport(void 0,c,n,s)]);case 204:var u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),m(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!1,d=0,_=i.original.get(t.text);d<_.length;d++){var f=_[d];if(n.getSymbolAtLocation(f)===s&&f!==t){var p=f.parent;if(e.isPropertyAccessExpression(p)){var m=p.name.text;if("default"===m){u=!0;var g=f.getText();(null!=o?o:o=new e.Map).set(p,e.factory.createIdentifier(g))}else{e.Debug.assert(p.expression===f,"Didn't expect expression === use");var v=c.get(m);void 0===v&&(v=l(m,i),c.set(m,v)),(null!=o?o:o=new e.Map).set(p,e.factory.createIdentifier(v))}}else u=!0}}var h=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(t){var r=t[0],n=t[1];return e.factory.createImportSpecifier(!1,r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));return h||(u=!0),y([e.makeImport(u?e.getSynthesizedDeepClone(t):void 0,h,r,a)],o)}(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES module got invalid name kind ".concat(r.kind))}}(i,u.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(u)&&e.isRequireCall(u.expression,!0))return _=!0,function(t,r,n,i,a){switch(t.kind){case 203:case 204:var o=l(r,i);return y([f(o,r,n,a),m(void 0,t,e.factory.createIdentifier(o))]);case 79:return y([f(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES module got invalid syntax form ".concat(t.kind))}}(i,u.name.text,u.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],d.flags))])}));if(_)return i.replaceNodeWithNodes(r,n,e.flatMap(g,(function(e){return e.newImports}))),e.forEach(g,(function(t){t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=u?u:u=new e.Map)})),u}function o(e){return g(void 0,e)}function s(t){return g([e.factory.createExportSpecifier(!1,void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(function(r){return e.rangeContainsRange(t,r)}))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(208===e.kind){var t=r.get(e);return r.delete(e),t}}}function l(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_".concat(e);return t.additional.add(e),e}function u(t){var r=e.createMultiMap();return d(t,(function(e){return r.add(e.text,e)})),r}function d(t,r){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 208:return t.name!==e;case 205:case 273:return t.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild((function(e){return d(e,r)}))}function _(t,r,n,i){return e.factory.createFunctionDeclaration(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.factory.converters.convertToFunctionBlock(c(n.body,i)))}function f(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[p(r,t)],n,i)}function p(t,r){return e.factory.createImportSpecifier(!1,void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function m(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function g(t,r){return e.factory.createExportDeclaration(void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function y(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(o){var s=o.sourceFile,c=o.program,d=o.preferences,_=e.textChanges.ChangeTracker.with(o,(function(t){var o=function(t,r,o,s,c){var d={original:u(t),additional:new e.Set},_=function(t,r,i){var a=new e.Map;return n(t,(function(t){var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,l("_".concat(o),i))})),a}(t,r,d);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))}(t,_,o);for(var f,p=!1,m=0,g=e.filter(t.statements,e.isVariableStatement);m0||u.length>0||_.size>0||f.size>0}};function p(t){var r,n,i=t.fix,a=t.symbolName;switch(i.kind){case 0:c.push(i);break;case 1:u.push(i);break;case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,l=i.addAsTypeOnly,d=String(e.getNodeId(o));if((y=_.get(d))||_.set(d,y={importClauseOrBindingPattern:o,defaultImport:void 0,namedImports:new e.Map}),0===s){var p=null==y?void 0:y.namedImports.get(a);y.namedImports.set(a,v(p,l))}else e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(r=y.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,l)};break;case 3:var m=i.moduleSpecifier,g=(s=i.importKind,i.useRequire),y=function(e,t,r,n){var i=h(e,!0),a=h(e,!1),o=f.get(i),s=f.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};return 1===t&&2===n?o||(f.set(i,c),c):1===n&&(o||s)?o||s:s||(f.set(a,c),c)}(m,s,g,l=i.addAsTypeOnly);switch(e.Debug.assert(y.useRequire===g,"(Add new) Tried to add an `import` and a `require` for the same module"),s){case 1:e.Debug.assert(void 0===y.defaultImport||y.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),y.defaultImport={name:a,addAsTypeOnly:v(null===(n=y.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,l)};break;case 0:p=(y.namedImports||(y.namedImports=new e.Map)).get(a),y.namedImports.set(a,v(p,l));break;case 3:case 2:e.Debug.assert(void 0===y.namespaceLikeImport||y.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),y.namespaceLikeImport={importKind:s,name:a,addAsTypeOnly:l}}break;case 4:break;default:e.Debug.assertNever(i,"fix wasn't never - got kind ".concat(i.kind))}function v(e,t){return Math.max(null!=e?e:0,t)}function h(e,t){return"".concat(t?1:0,"|").concat(e)}}}function l(t,r,n,i,a,o,s,c,l){e.Debug.assert(r.some((function(e){return e.moduleSymbol===n||e.symbol.parent===n})),"Some exportInfo should match the specified moduleSymbol");var u=e.createPackageJsonImportFilter(t,l,c);return h(f(r,a,o,s,i,t,c,l).fixes,t,i,u,c)}function u(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,r,n,i,a,o,s,c){var l=y(a,o);return e.getExportInfoMap(t,o,a,s,c).search(t.path,i,(function(e){return e===n}),(function(t){if(e.skipAlias(t[0].symbol,l(t[0].isFromPackageJson))===r)return t}))}function _(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=u(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function f(t,r,n,i,a,s,c,l,u,d){void 0===u&&(u=m(a.getTypeChecker(),s,a.getCompilerOptions()));var _=a.getTypeChecker(),f=e.flatMap(t,u.getImportsForExportInfo),g=r&&function(t,r,n,i){return e.firstDefined(t,(function(t){var a,o=t.declaration,s=function(t){var r,n,i;switch(t.kind){case 257:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 268:return t.name.text;case 269:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(o),c=null===(a=e.tryGetModuleSpecifierFromDeclaration(o))||void 0===a?void 0:a.text;if(s&&c){var l=function(t,r){var n;switch(t.kind){case 257:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 268:return r.getAliasedSymbol(t.symbol);case 269:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(o,i);if(l&&l.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:s,position:n,moduleSpecifier:c}}}))}(f,r.symbolName,r.position,_),v=function(t,r,n,i){return e.firstDefined(t,(function(t){var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&268!==a.kind){if(257===a.kind)return 0!==o&&1!==o||203!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var u=l.name,d=l.namedBindings;if(!l.isTypeOnly||0===o&&d){var _=p(r,!1,s,c,n,i);if(!(1===o&&(u||2===_&&d)||0===o&&271===(null==d?void 0:d.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:_}}}}}))}(f,n,_,a.getCompilerOptions());if(v)return{computedWithoutCacheCount:0,fixes:o(o([],g?[g]:e.emptyArray,!0),[v],!1)};var h=function(t,r,n,i,a,o,s,c,l,u){var d=e.firstDefined(r,(function(t){return function(t,r,n,i,a){var o,s=t.declaration,c=t.importKind,l=t.symbol,u=t.targetFlags,d=null===(o=e.tryGetModuleSpecifierFromDeclaration(s))||void 0===o?void 0:o.text;if(d)return{kind:3,moduleSpecifier:d,importKind:c,addAsTypeOnly:n?4:p(r,!0,l,u,i,a),useRequire:n}}(t,o,s,n.getTypeChecker(),n.getCompilerOptions())}));return d?{fixes:[d]}:function(t,r,n,i,a,o,s,c,l){var u=e.isSourceFileJS(r),d=t.getCompilerOptions(),_=e.createModuleSpecifierResolutionHost(t,s),f=y(t,s),m=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(d)),g=l?function(t){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,_,c),computedWithoutCache:!1}}:function(t,n){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,n,d,r,_,c)},v=0,h=e.flatMap(o,(function(t,o){var s=f(t.isFromPackageJson),c=g(t.moduleSymbol,s),l=c.computedWithoutCache,_=c.moduleSpecifiers,y=!!(111551&t.targetFlags),h=p(i,!0,t.symbol,t.targetFlags,s,d);return v+=l?1:0,e.mapDefined(_,(function(i){return m&&e.pathContainsNodeModules(i)?void 0:!y&&u&&void 0!==n?{kind:1,moduleSpecifier:i,position:n,exportInfo:t,isReExport:o>0}:{kind:3,moduleSpecifier:i,importKind:D(r,t.exportKind,d),useRequire:a,addAsTypeOnly:h,exportInfo:t,isReExport:o>0}}))}));return{computedWithoutCacheCount:v,fixes:h}}(n,i,a,o,s,t,c,l,u)}(t,f,a,s,null==r?void 0:r.position,n,i,c,l,d),x=h.fixes,b=h.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===b?0:b,fixes:o(o([],g?[g]:e.emptyArray,!0),x,!0)}}function p(e,t,r,n,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r)?1:2:4}function m(t,r,n){for(var i,a=0,o=r.imports;a=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o1&&e.OrganizeImports.importSpecifiersAreSorted(r.parent.elements)){t.delete(i,r);var o=e.factory.updateImportSpecifier(r,!1,r.propertyName,r.name),s=e.OrganizeImports.getImportSpecifierInsertionIndex(r.parent.elements,o);t.insertImportSpecifierAtIndex(i,o,r.parent,s)}else t.deleteRange(i,r.getFirstToken());return r}return e.Debug.assert(r.parent.parent.isTypeOnly),c(r.parent.parent),r.parent.parent;case 270:return c(r),r;case 271:return c(r.parent),r.parent;case 268:return t.deleteRange(i,r.getChildAt(1)),r;default:e.Debug.failBadSyntaxKind(r)}function c(n){if(t.delete(i,e.getTypeKeywordOfTypeOnlyImport(n,i)),a){var o=e.tryCast(n.namedBindings,e.isNamedImports);if(o&&o.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(o.elements)&&273===r.kind&&0!==o.elements.indexOf(r)&&(t.delete(i,r),t.insertImportSpecifierAtIndex(i,r,o,0));for(var s=0,c=o.elements;s"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="fixImportNonExportedMember",n=[e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code];function i(t,r,n){var i,a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)){var o=e.findAncestor(a,e.isImportDeclaration);if(void 0===o)return;var s=e.isStringLiteral(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(void 0===s)return;var c=e.getResolvedModule(t,s,void 0);if(void 0===c)return;var l=n.getSourceFile(c.resolvedFileName);if(void 0===l||e.isSourceFileFromLibrary(n,l))return;var u=null===(i=l.symbol.valueDeclaration)||void 0===i?void 0:i.locals;if(void 0===u)return;var d=u.get(a.escapedText);if(void 0===d)return;var _=function(t){if(void 0===t.valueDeclaration)return e.firstOrUndefined(t.declarations);var r=t.valueDeclaration,n=e.isVariableDeclaration(r)?e.tryCast(r.parent.parent,e.isVariableStatement):void 0;return n&&1===e.length(n.declarationList.declarations)?n:r}(d);if(void 0===_)return;return{exportName:{node:a,isTypeOnly:e.isTypeDeclaration(_)},node:_,moduleSourceFile:l,moduleSpecifier:s}}}function a(t,r,n,i,a){e.length(i)&&(a?c(t,r,n,a,i):l(t,r,n,i))}function s(t,r){return e.findLast(t.statements,(function(t){return e.isExportDeclaration(t)&&(r&&t.isTypeOnly||!t.isTypeOnly)}))}function c(t,r,n,i,a){var s=i.exportClause&&e.isNamedExports(i.exportClause)?i.exportClause.elements:e.factory.createNodeArray([]),c=!(i.isTypeOnly||!r.getCompilerOptions().isolatedModules&&!e.find(s,(function(e){return e.isTypeOnly})));t.replaceNode(n,i,e.factory.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,e.factory.createNamedExports(e.factory.createNodeArray(o(o([],s,!0),u(a,c),!0),s.hasTrailingComma)),i.moduleSpecifier,i.assertClause))}function l(t,r,n,i){t.insertNodeAtEndOfScope(n,n,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(u(i,!!r.getCompilerOptions().isolatedModules)),void 0,void 0))}function u(t,r){return e.factory.createNodeArray(e.map(t,(function(t){return e.factory.createExportSpecifier(r&&t.isTypeOnly,void 0,t.node)})))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=n.sourceFile,o=n.span,u=n.program,d=i(a,o.start,u);if(void 0!==d){var _=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){var i=n.exportName,a=n.node,o=n.moduleSourceFile,u=s(o,i.isTypeOnly);u?c(t,r,o,u,[i]):e.canHaveExportModifier(a)?t.insertExportModifier(o,a):l(t,r,o,[i])}(t,u,d)}));return[t.createCodeFixAction(r,_,[e.Diagnostics.Export_0_from_module_1,d.exportName.node.text,d.moduleSpecifier],r,e.Diagnostics.Export_all_referenced_locals)]}},getAllCodeActions:function(r){var c=r.program;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(l){var u=new e.Map;t.eachDiagnostic(r,n,(function(t){var r=i(t.file,t.start,c);if(void 0!==r){var n=r.exportName,a=r.node,o=r.moduleSourceFile;if(void 0===s(o,n.isTypeOnly)&&e.canHaveExportModifier(a))l.insertExportModifier(o,a);else{var d=u.get(o)||{typeOnlyExports:[],exports:[]};n.isTypeOnly?d.typeOnlyExports.push(n):d.exports.push(n),u.set(o,d)}}})),u.forEach((function(e,t){var r=s(t,!0);r&&r.isTypeOnly?(a(l,c,t,e.typeOnlyExports,r),a(l,c,t,e.exports,s(t,!1))):a(l,c,t,o(o([],e.exports,!0),e.typeOnlyExports,!0),r)}))})))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 199===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(n){for(var i=n.type,a=!1,o=!1;187===i.kind||188===i.kind||193===i.kind;)187===i.kind?a=!0:188===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(_||(_={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var _=function(t,r,n){if(n&&e.isStringLiteralLike(n.moduleSpecifier)){var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}}(t,n,e.findAncestor(a,e.isImportDeclaration));_&&_.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,_.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var f=e.findAncestor(a,e.isJsxOpeningLikeElement),p=c.getContextualTypeForArgumentAtIndex(f,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,p)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var m=e.findAncestor(a,e.isClassLike),g=m?e.getEffectiveBaseTypeNode(m):void 0,y=g?c.getTypeAtLocation(g):void 0;y&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),y))}else{var v=e.getMeaningFromLocation(a),h=e.getTextOfNode(a);e.Debug.assert(void 0!==h,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,h,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(v))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(n.host.getCompilationSettings()),_=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l,u,d)}));return[t.createCodeFixAction("spelling",_,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&u(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(t,n,c(t,l.label,l.statement.expression),i,a)))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,512)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=function(t){switch(t.kind){case 257:case 166:case 205:case 169:case 299:return t.initializer;case 288:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 300:case 168:case 302:case 350:case 343:return}}(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function _(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function f(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function p(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function m(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function g(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([m(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[g(i,u.declaration,u.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:_(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;p(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r,n="fixMissingMember",i="fixMissingProperties",a="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function l(t,n,i,a,o){var s=e.getTokenAtPosition(t,n),c=s.parent;if(i===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==s.kind||!e.isObjectLiteralExpression(c)||!e.isCallExpression(c.parent))return;var l=e.findIndex(c.parent.arguments,(function(e){return e===c}));if(l<0)return;if(!((p=a.getResolvedSignature(c.parent))&&p.declaration&&p.parameters[l]))return;var u=p.parameters[l].valueDeclaration;if(!(u&&e.isParameter(u)&&e.isIdentifier(u.name)))return;var d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c),a.getParameterType(p,l),!1,!1));if(!e.length(d))return;return{kind:r.ObjectLiteral,token:u.name,properties:d,parentDeclaration:c}}if(e.isMemberName(s)){if(e.isIdentifier(s)&&e.hasInitializer(c)&&c.initializer&&e.isObjectLiteralExpression(c.initializer)){if(d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c.initializer),a.getTypeAtLocation(s),!1,!1)),!e.length(d))return;return{kind:r.ObjectLiteral,token:s,properties:d,parentDeclaration:c.initializer}}if(e.isIdentifier(s)&&e.isJsxOpeningLikeElement(s.parent)){var _=function(t,r,n){var i=t.getContextualType(n.attributes);if(void 0===i)return e.emptyArray;var a=i.getProperties();if(!e.length(a))return e.emptyArray;for(var o=new e.Set,s=0,c=n.attributes.properties;s=e.ModuleKind.ES2015&&o99)&&(s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}})),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(_||(_={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="deleteUnmatchedParameter",n="renameUnmatchedParameter",i=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function a(t,r){var n=e.getTokenAtPosition(t,r);if(n.parent&&e.isJSDocParameterTag(n.parent)&&e.isIdentifier(n.parent.name)){var i=n.parent,a=e.getHostSignatureFromJSDoc(i);if(a)return{signature:a,name:n.parent.name,jsDocParameterTag:i}}}t.registerCodeFix({fixIds:[r,n],errorCodes:i,getCodeActions:function(i){var o=[],s=a(i.sourceFile,i.span.start);if(s)return e.append(o,function(n,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag,c=e.textChanges.ChangeTracker.with(n,(function(e){return e.filterJSDocTags(n.sourceFile,o,(function(e){return e!==s}))}));return t.createCodeFixAction(r,c,[e.Diagnostics.Delete_unused_param_tag_0,a.getText(n.sourceFile)],r,e.Diagnostics.Delete_all_unused_param_tags)}(i,s)),e.append(o,function(r,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag;if(e.length(o.parameters)){for(var c=r.sourceFile,l=e.getJSDocTags(o),u=new e.Set,d=0,_=l;d<_.length;d++){var f=_[d];e.isJSDocParameterTag(f)&&e.isIdentifier(f.name)&&u.add(f.name.escapedText)}var p=e.firstDefined(o.parameters,(function(t){return e.isIdentifier(t.name)&&!u.has(t.name.escapedText)?t.name.getText(c):void 0}));if(void 0!==p){var m=e.factory.updateJSDocParameterTag(s,s.tagName,e.factory.createIdentifier(p),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),g=e.textChanges.ChangeTracker.with(r,(function(t){return t.replaceJSDocComment(c,o,e.map(l,(function(e){return e===s?m:e})))}));return t.createCodeFixActionWithoutFixAll(n,g,[e.Diagnostics.Rename_param_tag_name_0_to_1,a.getText(c),p])}}}(i,s)),o},getAllCodeActions:function(n){var o=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(n,(function(s){t.eachDiagnostic(n,i,(function(t){var r=a(t.file,t.start);r&&o.set(r.signature,e.append(o.get(r.signature),r.jsDocParameterTag))})),o.forEach((function(t,i){if(n.fixId===r){var a=new e.Set(t);s.filterJSDocTags(i.getSourceFile(),i,(function(e){return!a.has(e)}))}}))})))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixUnreferenceableDecoratorMetadata",n=[e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=function(t,r,n){var i=e.tryCast(e.getTokenAtPosition(t,n),e.isIdentifier);if(i&&180===i.parent.kind){var a=r.getTypeChecker().getSymbolAtLocation(i);return e.find((null==a?void 0:a.declarations)||e.emptyArray,e.or(e.isImportClause,e.isImportSpecifier,e.isImportEqualsDeclaration))}}(n.sourceFile,n.program,n.span.start);if(i){var a,o=e.textChanges.ChangeTracker.with(n,(function(t){return 273===i.kind&&function(t,r,n,i){e.refactor.doChangeNamedToNamespaceOrDefault(r,i,t,n.parent)}(t,n.sourceFile,i,n.program)})),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n,i){if(268!==n.kind){var a=270===n.kind?n:n.parent.parent;if(!a.name||!a.namedBindings){var o=i.getTypeChecker();e.forEachImportClauseDeclaration(a,(function(t){if(111551&e.skipAlias(t.symbol,o).flags)return!0}))||t.insertModifierBefore(r,154,a)}}else t.insertModifierBefore(r,154,n.name)}(t,n.sourceFile,i,n.program)}));return o.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Convert_named_imports_to_namespace_import))),s.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,s,e.Diagnostics.Convert_to_type_only_import))),a}},fixIds:[r]})}(_||(_={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(157))}function l(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(273===e.parent.kind||270===e.parent.kind)}function _(t){return 100===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function f(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function p(e,t,r){e.delete(t,240===r.parent.kind?r.parent:r)}function m(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(138===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 166:case 165:return!0;case 257:switch(e.parent.parent.parent.kind){case 247:case 246:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_".concat(i.text))),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_".concat(r.name.text)))}))))}function g(t,r,n,i,a,o,s,c){!function(t,r,n,i,a,o,s,c){var l=t.parent;if(e.isParameter(l))!function(t,r,n,i,a,o,s,c){if(void 0===c&&(c=!1),function(t,r,n,i,a,o,s){var c=n.parent;switch(c.kind){case 171:case 173:var l=c.parameters.indexOf(n),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(d)for(var _=0,f=d;_l,h=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,x=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==n.parent&&g.node.parent.parameters.length>l;if(y||h||x)return!1}}return!0;case 259:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||v(c,n,s);case 215:case 216:return v(c,n,s);case 175:return!1;case 174:return!0;default:return e.Debug.failBadSyntaxKind(c)}}(i,r,n,a,o,s,c))if(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r)))for(var l=0,u=n.modifiers;li}))}function v(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,v=i.program,h=i.cancellationToken,x=v.getTypeChecker(),b=v.getSourceFiles(),D=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[l(T=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,y,D)})),e.Diagnostics.Remove_type_parameters)];var S=_(D);if(S){var T=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)}));return[t.createCodeFixAction(r,T,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(D)&&(A=e.textChanges.ChangeTracker.with(i,(function(e){return g(y,D,e,x,b,v,h,!1)}))).length)return[t.createCodeFixAction(r,A,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,D.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(D.parent)||e.isArrayBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var C=D.parent.elements,E=[C.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(C,(function(e){return e.getText(y)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,y,D.parent)})),E)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(f(y,D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return p(e,y,D.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(138===D.kind){T=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,D)}));var N=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,N],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var A;(A=e.textChanges.ChangeTracker.with(i,(function(e){return g(y,D,e,x,b,v,h,!1)}))).length&&(N=e.isComputedPropertyName(D.parent)?D.parent:D,k.push(l(A,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,N.getText(y)])))}var P=e.textChanges.ChangeTracker.with(i,(function(e){return m(e,s,y,D)}));return P.length&&k.push(t.createCodeFixAction(r,P,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(y)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var l=r.sourceFile,v=r.program,h=r.cancellationToken,x=v.getTypeChecker(),b=v.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var D=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:m(t,s.code,l,D);break;case a:var S=_(D);S?t.delete(l,S):d(D)&&g(l,D,t,x,b,v,h,!0);break;case i:if(138===D.kind||d(D))break;if(e.isJSDocTemplateTag(D))t.delete(l,D);else if(29===D.kind)u(t,l,D);else if(e.isObjectBindingPattern(D.parent)){if(D.parent.parent.initializer)break;e.isParameter(D.parent.parent)&&!y(D.parent.parent,x,b)||t.delete(l,D.parent.parent)}else{if(e.isArrayBindingPattern(D.parent.parent)&&D.parent.parent.parent.initializer)break;f(l,D)?p(t,l,D.parent):g(l,D,t,x,b,v,h,!0)}break;case o:138===D.kind&&c(t,l,D);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 242:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 244:case 245:return void t.delete(r,l)}if(e.isBlock(s.parent)){var u=n+i,d=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nz.length?q(P,x.getSignatureFromDeclaration(y[y.length-1]),E,W(S),H(_,P)):(e.Debug.assert(y.length===z.length,"Declarations and signatures should match count"),l(function(t,n,i,a,o,s,c,l,_){for(var f=a[0],p=a[0].minArgumentCount,m=!1,g=0,y=a;g=f.parameters.length&&(!e.signatureHasRestParameter(v)||e.signatureHasRestParameter(f))&&(f=v)}var h=f.parameters.length-(e.signatureHasRestParameter(f)?1:0),x=f.parameters.map((function(e){return e.name})),b=u(h,x,void 0,p,!1);if(m){var D=e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),x[h]||"rest",h>=p?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(157)),void 0);b.push(D)}return function(t,r,n,i,a,o,s,c){return e.factory.createMethodDeclaration(t,void 0,r,n?e.factory.createToken(57):void 0,void 0,a,o,c||d(s))}(c,o,s,0,b,function(t,n,i,a){if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}}(a,t,n,i),l,_)}(x,o,n,z,W(S),N&&!!(1&f),E,P,_))))}function q(e,t,r,a,s){var u=i(171,o,e,t,s,a,r,N&&!!(1&f),n,c);u&&l(u)}function W(t){return e.getSynthesizedDeepClone(t,!1)}function H(t,r,n){return n?void 0:e.getSynthesizedDeepClone(t,!1)||d(r)}function $(t){return e.getSynthesizedDeepClone(t,!1)}}function i(t,n,i,a,o,s,c,l,u,d){var _=n.program,f=_.getTypeChecker(),p=e.getEmitScriptTarget(_.getCompilerOptions()),m=524545|(0===i?268435456:0),y=f.signatureToSignatureDeclaration(a,t,u,m,r(n));if(y){var h=y.typeParameters,x=y.parameters,b=y.type;if(d){if(h){var D=e.sameMap(h,(function(t){var r,n=t.constraint,i=t.default;return n&&(r=g(n,p))&&(n=r.typeNode,v(d,r.symbols)),i&&(r=g(i,p))&&(i=r.typeNode,v(d,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,n,i)}));h!==D&&(h=e.setTextRange(e.factory.createNodeArray(D,h.hasTrailingComma),h))}var S=e.sameMap(x,(function(t){var r=g(t.type,p),n=t.type;return r&&(n=r.typeNode,v(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(x!==S&&(x=e.setTextRange(e.factory.createNodeArray(S,x.hasTrailingComma),x)),b){var T=g(b,p);T&&(b=T.typeNode,v(d,T.symbols))}}var C=l?e.factory.createToken(57):void 0,E=y.asteriskToken;return e.isFunctionExpression(y)?e.factory.updateFunctionExpression(y,c,y.asteriskToken,e.tryCast(s,e.isIdentifier),h,x,b,null!=o?o:y.body):e.isArrowFunction(y)?e.factory.updateArrowFunction(y,c,h,x,b,y.equalsGreaterThanToken,null!=o?o:y.body):e.isMethodDeclaration(y)?e.factory.updateMethodDeclaration(y,c,E,null!=s?s:e.factory.createIdentifier(""),C,h,x,b,o):e.isFunctionDeclaration(y)?e.factory.updateFunctionDeclaration(y,c,y.asteriskToken,e.tryCast(s,e.isIdentifier),h,x,b,null!=o?o:y.body):void 0}}function a(e){return 84+e<=90?String.fromCharCode(84+e):"T".concat(e)}function o(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=g(c,a);l&&(v(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function s(e){return e.isUnionOrIntersection()?e.types.some(s):262144&e.flags}function c(t,r,n,i,c,u,d){for(var _,f=[],p=new e.Map,m=0;m=i?e.factory.createToken(57):void 0,a?void 0:(null==n?void 0:n[c])||e.factory.createKeywordTypeNode(157),void 0);o.push(d)}return o}function d(t){return _(e.Diagnostics.Method_not_implemented.message,t)}function _(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function f(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=m(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(202===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.assertions,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){for(var r=[],n=t;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.tryCast(n.parent.parent,e.isIndexSignatureDeclaration);if(i){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.tryCast(i.parent.parent,e.isTypeAliasDeclaration);if(a)return{indexSignature:i,container:a}}}function a(t,r,n){var i,a,s=n.indexSignature,c=n.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),u=e.first(s.parameters),d=e.factory.createTypeParameterDeclaration(void 0,e.cast(u.name,e.isIdentifier),u.type),_=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(146):void 0,d,void 0,s.questionToken,s.type,void 0),f=e.factory.createIntersectionTypeNode(o(o(o([],e.getAllSuperTypeNodes(c),!0),[_],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));t.replaceNode(r,c,(i=c,a=f,e.factory.createTypeAliasDeclaration(i.modifiers,i.name,i.typeParameters,a)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)})),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(_||(_={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 133===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&103!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];function i(t,r,n){var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r));if(void 0!==a){var o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return{symbol:a,token:s}}}}function a(t,r,n){t.replaceNode(r,n,e.factory.createToken(119))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=n.program,l=i(o,s.start,c);if(void 0!==l){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l.token)}));return[t.createCodeFixActionMaybeFixAll(r,u,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_all_const_to_let)]}},getAllCodeActions:function(r){var o=r.program,s=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(c){t.eachDiagnostic(r,n,(function(t){var r=i(t.file,t.start,o);if(r&&e.addToSeen(s,e.getSymbolId(r.symbol)))return a(c,t.file,r.token)}))})))},fixIds:[r]})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(l.parent.parent);if(e.some(u)){var d=u[0],_=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);_&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,_?") | void":" | void")}else{var f=s.getResolvedSignature(o.parent),p=null==f?void 0:f.parameters[0],m=p&&s.getTypeOfSymbolAtLocation(p,l.parent.parent);e.isInJSFile(l)?(!m||3&m.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise} */(")):(!m||2&m.flags)&&t.insertText(r,l.parent.parent.expression.end,"")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(_||(_={})),function(e){!function(t){var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function a(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=i.getTypeChecker(),l=function(t,r){var n=t.parent;if(e.isSourceFile(n))return n.symbol;var i=n.parent.symbol;return i.valueDeclaration&&e.isExternalModuleAugmentation(i.valueDeclaration)?r.getMergedSymbol(i):i}(s,c),u=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?1025:0),d=!!(1024&u);if(!(1&u)||!d&&l.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var _=function(t){return e.isIdentifier(t)&&c.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 259:case 260:case 261:case 263:case 262:case 264:if(!(m=s).name)return;return _(m.name)||{exportNode:m,exportName:m.name,wasDefault:d,exportingModuleSymbol:l};case 240:var f=s;if(!(2&f.declarationList.flags)||1!==f.declarationList.declarations.length)return;var p=e.first(f.declarationList.declarations);if(!p.initializer)return;return e.Debug.assert(!d,"Can't have a default flag here"),_(p.name)||{exportNode:f,exportName:p.name,wasDefault:d,exportingModuleSymbol:l};case 274:var m;if((m=s).isExportEquals)return;return _(m.expression)||{exportNode:m,exportName:m.expression,wasDefault:d,exportingModuleSymbol:l};default:return}}function o(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function c(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(o){var c=a(o,"invoked"===o.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=c.wasDefault?n:i;return[{name:r,description:l.description,actions:[l]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[s(s({},n),{notApplicableReason:c.error}),s(s({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,s){e.Debug.assert(s===n.name||s===i.name,"Unexpected action name");var l=a(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=c(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([u])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 259:case 260:case 261:n.insertNodeAfter(t,d,e.factory.createToken(88));break;case 240:var _=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!_.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(_.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:n.deleteModifier(t,d),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,s=r.exportName,l=r.exportingModuleSymbol,u=t.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,d,l,s.text,a,(function(t){if(s!==t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 208:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 273:case 278:var s=a;n.replaceNode(t,s,o(i,s.name.text));break;case 270:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),s=o(i,r.text);var l=c.namedBindings;if(l)if(271===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[o(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,s);else n.replaceNode(t,r,e.factory.createNamedImports([s]));break;case 202:var _=a;n.replaceNode(t,a,e.factory.createImportTypeNode(_.argument,_.assertions,e.factory.createIdentifier(i),_.typeArguments,_.isTypeOf));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,s.text):function(t,r,n){var i=r.parent;switch(i.kind){case 208:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 273:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 278:n.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}}(r,t,n)}}))}(r,n,i,a)}(r.file,r.program,l,t,r.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(_||(_={})),function(e){!function(t){var r,n="Convert import",i=((r={})[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},r[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},r[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},r);function a(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),s=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!s||!e.isImportDeclaration(s))return{error:"Selection is not an import declaration."};var c=i.start+i.length,l=e.findNextToken(s,s.parent,n);if(!(l&&c>l.getStart())){var u=s.importClause;return u?u.namedBindings?271===u.namedBindings.kind?{convertTo:0,import:u.namedBindings}:o(t.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function o(t,r){return e.getAllowSyntheticDefaultImports(t.getCompilerOptions())&&(n=r.parent.moduleSpecifier,i=t.getTypeChecker(),!!(a=i.resolveExternalModuleName(n))&&a!==i.resolveExternalModuleSymbol(a));var n,i,a}function c(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function l(t,r,n,i,a){void 0===a&&(a=o(r,i.parent));var s=r.getTypeChecker(),c=i.parent.parent,l=c.moduleSpecifier,d=new e.Set;i.elements.forEach((function(e){var t=s.getSymbolAtLocation(e.name);t&&d.add(t)}));for(var _=l&&e.isStringLiteral(l)?e.codefix.moduleSpecifierToValidIdentifier(l.text,99):"module",f=i.elements.some((function(r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,s,t,(function(t){var r=s.resolveName(_,t,67108863,!0);return!!r&&(!d.has(r)||e.isExportSpecifier(t.parent))}))}))?e.getUniqueName(_,t):_,p=new e.Set,m=function(r){var i=(r.propertyName||r.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,s,t,(function(a){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(f),i);e.isShorthandPropertyAssignment(a.parent)?n.replaceNode(t,a.parent,e.factory.createPropertyAssignment(a.text,o)):e.isExportSpecifier(a.parent)?p.add(r):n.replaceNode(t,a,o)}))},g=0,y=i.elements;g=l.pos?_.getEnd():l.getEnd()),m=s?function(e){for(;e.parent;){if(c(e)&&!c(e.parent))return e;e=e.parent}}(l):function(e,t){for(;e.parent;){if(c(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(l,p),g=m&&c(m)?function(t){if(o(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&o(n)?n:void 0}return t.expression&&o(t.expression)?t.expression:void 0}(m):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(g)?function(t,r){var n=t.condition,i=f(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&d(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=u(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(g,y):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=f(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=u(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(g)}}function u(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=d(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=d(t,r);return a&&n.push(a),n.length>0?n:void 0}function d(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&_(t)!==_(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(_(t)!==_(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function _(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?_(t.name):e.isElementAccessExpression(t)?_(t.argumentExpression):void 0}function f(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?f(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function p(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=p(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(r,n){var i=l(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],u=p(r,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,l,o,u):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)})),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(r){var o=l(r,"invoked"===r.triggerReason);return o?t.isRefactorErrorInfo(o)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[s(s({},a),{notApplicableReason:o.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(_||(_={})),function(e){var t;(function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a&&!(e.isFunctionLikeDeclaration(a)&&a.body&&e.rangeContainsPosition(a.body,r))){var s=n.getTypeChecker(),c=a.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(r){return e.getSourceFileOfNode(r)===t}))&&o(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.modifiers||!e.isIdentifier(t.name)}))}))){var _=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(_)===e.length(l)){var f=s.getReturnTypeOfSignature(_[0]);if(e.every(_,(function(e){return s.getReturnTypeOfSignature(e)===f})))return d}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 170:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(a),c.type);break;case 171:l=e.factory.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(a),c.type,c.body);break;case 176:l=e.factory.updateCallSignature(c,c.typeParameters,u(a),c.type);break;case 173:l=e.factory.updateConstructorDeclaration(c,c.modifiers,u(a),c.body);break;case 177:l=e.factory.updateConstructSignature(c,c.typeParameters,u(a),c.type);break;case 259:l=e.factory.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],l)}))}}function u(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,d)))])}function d(t){var r=e.map(t.parameters,_);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function _(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(131)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((function(e){return" * ".concat(e)})).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){return s(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(_||(_={})),function(e){var t;(function(r){var n,i,a,o,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(r){var n=r.kind,i=f(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),a=i.targetRange;if(void 0===a){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var o=[];return t.refactorKindBeginsWith(u.kind,n)&&o.push({name:c,description:u.description,actions:[s(s({},u),{notApplicableReason:N(i.errors)})]}),t.refactorKindBeginsWith(l.kind,n)&&o.push({name:c,description:l.description,actions:[s(s({},l),{notApplicableReason:N(i.errors)})]}),o}var d=function(t,r){var n=g(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map((function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),l=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 173:return"constructor";case 215:case 259:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 216:return"arrow function";case 171:return"method '".concat(t.name.getText(),"'");case 174:return"'get ".concat(t.name.getText(),"'");case 175:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}}(t):e.isClassLike(t)?function(e){return 260===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}(t):function(e){return 265===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1}(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}));return c}(a,r);if(void 0===d)return e.emptyArray;for(var _,p,m=[],y=new e.Map,v=[],h=new e.Map,x=0,b=0,D=d;b0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var u=e.visitNodes(l,(function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=h(r,n);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var d=i.get(e.getNodeId(a).toString()),_=d?e.getSynthesizedDeepClone(d):e.visitEachChild(a,t,e.nullTransformationContext);return c=u,_})).slice();if(s&&!a&&e.isStatement(t)){var d=h(r,n);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}}(t,a,l,_,!!(o.facts&i.HasReturn)),I=w.body,M=w.returnValueProperty;e.suppressLeadingAndTrailingTrivia(I);var O=!!(o.facts&i.UsesThisInFunction);if(e.isClassLike(r)){var L=D?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&L.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&L.push(e.factory.createModifier(132)),F=e.factory.createMethodDeclaration(L.length?L:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,void 0,N,C,c,I)}else O&&C.unshift(e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(f.getTypeAtLocation(o.thisNode),r,1),void 0)),F=e.factory.createFunctionDeclaration(o.facts&i.IsAsyncFunction?[e.factory.createToken(132)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,N,C,c,I);var R=e.textChanges.ChangeTracker.fromContext(s),j=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.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((x(o.range)?e.last(o.range):o.range).end,r);j?R.insertNodeBefore(s.file,j,F,!0):R.insertNodeAtEndOfScope(s.file,r,F),m.writeFixes(R);var B=[],J=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,b);O&&E.unshift(e.factory.createIdentifier("this"));var K=e.factory.createCallExpression(O?e.factory.createPropertyAccessExpression(J,"call"):J,A,E);if(o.facts&i.IsGenerator&&(K=e.factory.createYieldExpression(e.factory.createToken(41),K)),o.facts&i.IsAsyncFunction&&(K=e.factory.createAwaitExpression(K)),S(t)&&(K=e.factory.createJsxExpression(void 0,K)),a.length&&!l)if(e.Debug.assert(!M,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var z=a[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(z.name),void 0,e.getSynthesizedDeepClone(z.type),K)],z.parent.flags)))}else{for(var U=[],V=[],q=a[0].parent.flags,W=!1,H=0,$=a;H<$.length;H++){z=$[H],U.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(z.name)));var G=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(z)),r,1);V.push(e.factory.createPropertySignature(void 0,z.symbol.name,void 0,G)),W=W||void 0!==z.type,q&=z.parent.flags}var X=W?e.factory.createTypeLiteralNode(V):void 0;X&&e.setEmitFlags(X,1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(U),void 0,X,K)],q)))}else if(a.length||l){if(a.length)for(var Q=0,Y=a;Q0,"Found no members");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}(t.pos,r);g.insertNodeBefore(o.file,x,v,!0),g.replaceNode(o.file,t,h)}else{var b=e.factory.createVariableDeclaration(d,void 0,f,p),T=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(T)g.insertNodeBefore(o.file,T,b),h=e.factory.createIdentifier(d),g.replaceNode(o.file,t,h);else if(241===t.parent.kind&&r===e.findAncestor(t,m)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([b],2));g.replaceNode(o.file,t.parent,C)}else C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([b],2)),x=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)m(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(D(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),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r),0===x.pos?g.insertNodeAtTopOfFile(o.file,C,!1):g.insertNodeBefore(o.file,x,C,!1),241===t.parent.kind?g.delete(o.file,t.parent):(h=e.factory.createIdentifier(d),S(t)&&(h=e.factory.createJsxExpression(void 0,h)),g.replaceNode(o.file,t,h))}var E=g.getChanges(),k=t.getSourceFile().fileName;return{renameFilename:k,renameLocation:e.getRenameLocation(E,k,d,!0),edits:E}}(e.isExpression(c)?c:c.statements[0].expression,o[n],l[n],t.facts,r)}(n,t,o);e.Debug.fail("Unrecognized action name")}function f(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s,c=0===o&&a,l=e.findFirstNonJsxWhitespaceToken(t,r.start),u=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),d=l&&u&&a?function(e,t,r){var n=e.getStart(r),i=t.getEnd();return 59===r.text.charCodeAt(i)&&i++,{start:n,length:i-n}}(l,u,t):r,_=c?function(t){return e.findAncestor(t,(function(t){return t.parent&&b(t)&&!e.isBinaryExpression(t.parent)}))}(l):e.getParentNodeInSpan(l,t,d),f=c?_:e.getParentNodeInSpan(u,t,d),m=i.None;if(!_||!f)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(8388608&_.flags)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(_.parent!==f.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(_!==f){if(!D(_.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var g=[],y=0,v=_.parent.statements;y=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else m|=i.UsesThis,s=a;break;case 216:e.forEachChild(a,(function t(r){if(e.isThis(r))m|=i.UsesThis,s=a;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 260:case 259:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}var _=u;switch(a.kind){case 242:u&=-5;break;case 255:u=0;break;case 238:a.parent&&255===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 293:case 292:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 194:case 108:m|=i.UsesThis,s=a;break;case 253:var f=a.label;(l||(l=[])).push(f.escapedText),e.forEachChild(a,t),l.pop();break;case 249:case 248:(f=a.label)?e.contains(l,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(249===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 220:m|=i.IsAsyncFunction;break;case 226:m|=i.IsGenerator;break;case 250:4&u?m|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=_}(t),m&i.UsesThis){var d=e.getThisContainer(t,!1);(259===d.kind||171===d.kind&&207===d.parent.kind||215===d.kind)&&(m|=i.UsesThisInFunction)}return o}}function p(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:T(t)?t:void 0}function m(t){return e.isArrowFunction(t)?e.isFunctionBody(t.body):e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function g(t,r){var a=r.file,o=function(t){var r=x(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis&&!(t.facts&i.UsesThisInFunction)){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(166===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),m(r)&&(o.push(r),308===r.kind))return o}(t),s=function(t,r){return x(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),c=function(t,r,a,o,s,c){var l,u,d=new e.Map,_=[],f=[],p=[],m=[],g=[],y=new e.Map,v=[],h=x(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===h){var b=t.range,D=e.first(b).getStart(),S=e.last(b).end;u=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(h).flags&&(u=e.createDiagnosticForNode(h,n.uselessConstantType));for(var T=0,C=r;T=l)return g;if(A.set(g,l),y){for(var v=0,h=_;v0){for(var I=new e.Map,M=0,O=F;void 0!==O&&M=0)){var i=e.isIdentifier(n)?V(n):s.getSymbolAtLocation(n);if(i){var a=e.find(g,(function(e){return e.symbol===i}));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();y.has(o)||(v.push(a),y.set(o,!0))}else l=l||a}e.forEachChild(n,r)}}))}for(var K=function(a){var o=_[a];if(a>0&&(o.usages.size>0||o.typeParameterUsages.size>0)){var s=x(t.range)?t.range[0]:t.range;m[a].push(e.createDiagnosticForNode(s,n.cannotAccessVariablesFromNestedScopes))}t.facts&i.UsesThisInFunction&&e.isClassLike(r[a])&&p[a].push(e.createDiagnosticForNode(t.thisNode,n.cannotExtractFunctionsContainingThisToMethod));var c,u=!1;if(_[a].usages.forEach((function(t){2===t.usage&&(u=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(c=t.symbol.valueDeclaration))})),e.Debug.assert(x(t.range)||0===v.length,"No variable declarations expected if something was extracted"),u&&!x(t.range)){var d=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);p[a].push(d),m[a].push(d)}else c&&a>0?(d=e.createDiagnosticForNode(c,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),p[a].push(d),m[a].push(d)):l&&(d=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity),p[a].push(d),m[a].push(d))},z=0;zn.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)=1&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 259:return m(t)&&p(t,r);case 171:if(e.isObjectLiteralExpression(t.parent)){var i=s(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&p(t,r)}return p(t,r);case 173:return e.isClassDeclaration(t.parent)?m(t.parent)&&p(t,r):g(t.parent.parent)&&p(t,r);case 215:case 216:return g(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function p(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function m(t){return!!t.name||!!e.findModifier(t,88)}function g(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function y(t){return t.length>0&&e.isThis(t[0].name)}function v(t){return y(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function h(t,r){var n=v(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,(function(t,r){var i,a,o=(i=b(n[r]),a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(b(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function x(t,r,n){var i,a,o,s=r.getTypeChecker(),c=v(t.parameters),l=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,b(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,(function(t){var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,b(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var _=e.factory.createParameterDeclaration(void 0,void 0,u,void 0,d,o);if(y(t.parameters)){var f=t.parameters[0],p=e.factory.createParameterDeclaration(void 0,void 0,f.name,void 0,f.type);return e.suppressLeadingAndTrailingTrivia(p.name),e.copyComments(f.name,p.name),f.type&&(e.suppressLeadingAndTrailingTrivia(p.type),e.copyComments(f.type,p.type)),e.factory.createNodeArray([p,_])}return e.factory.createNodeArray([_]);function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function b(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t,r){e.Debug.assert(r===n,"Unexpected action name");var i=t.file,a=t.startPosition,p=t.program,m=t.cancellationToken,g=t.host,y=f(i,a,p.getTypeChecker());if(y&&m){var v=function(t,r,n){var i=function(t){switch(t.kind){case 259:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 171:return[t.name];case 173:var r=e.Debug.checkDefined(e.findChildOfKind(t,135,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 228===t.parent.kind?[t.parent.parent.name,r]:[r];case 216:return[t.parent.name];case 215:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}}(t),a=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 260:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 228:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],f=e.deduplicate(o(o([],i,!0),a,!0),e.equateValues),p=r.getTypeChecker(),m=function(r){for(var n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},f=e.map(i,g),m=e.map(a,g),y=e.isConstructorDeclaration(t),v=e.map(i,(function(e){return s(e,p)})),h=0,x=r;h0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,i),o=_(0,n),s=o[0],c=o[1],l=o[2],u=o[3];if(s===n.length){var p=e.factory.createNoSubstitutionTemplateLiteral(c,l);return a(u,p),p}var m=[],g=e.factory.createTemplateHead(c,l);a(u,g);for(var y,v=function(t){var r=function(t){return e.isParenthesizedExpression(t)&&(f(t),t=t.expression),t}(n[t]);i(t,r);var o=_(t+1,n),s=o[0],c=o[1],l=o[2],u=o[3],p=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var g=e.map(r.templateSpans,(function(t,n){f(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=d(t.literal)+(i?l:"");return e.factory.createTemplateSpan(t.expression,p&&i?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));m.push.apply(m,g)}else{var v=p?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);a(u,v),m.push(e.factory.createTemplateSpan(r,v))}y=t},h=s;h1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(o,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(r){var n=o(r);if(n&&!t.isRefactorErrorInfo(n))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(t){return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),void((u=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}},getAvailableActions:function(r){var c=o(r);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[s(s({},a),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))}(_||(_={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):79===t?new l(79,n,i):80===t?new u(80,n,i):new c(t,n,i);return o.parent=a,o.flags=50720768&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=function(e){n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(function(e){n(a,o,e.pos,r),a.push(function(e,r){var i=t(351,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o350}));return n.kind<163?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<163?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(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 259:case 215:case 171:case 170:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);return r||t.set(e,r=[]),r}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:r(a),e.forEachChild(a,i);break;case 166:if(!e.hasSyntacticModifier(a,16476))break;case 257:case 205:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 302:case 169:case 168:r(a);break;case 275:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 269:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(271===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 223:0!==e.getAssignmentDeclarationKind(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),h=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 x(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!b(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[b(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function b(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=x,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var D=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r,n,i,a,o,s,c,l,u=this.host.getScriptSnapshot(t);if(!u)throw new Error("Could not find file: '"+t+"'.");var d,_=e.getScriptKind(t,this.host),f=this.host.getScriptVersion(t);if(this.currentFileName!==t)d=T(t,u,{languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(t,this.host.getCurrentDirectory(),(null===(i=null===(n=(r=this.host).getCompilerHost)||void 0===n?void 0:n.call(r))||void 0===i?void 0:i.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),null===(l=null===(c=null===(s=null===(o=(a=this.host).getCompilerHost)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getModuleResolutionCache)||void 0===c?void 0:c.call(s))||void 0===l?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())},f,!0,_);else if(this.currentFileVersion!==f){var p=u.getChangeRange(this.currentFileScriptSnapshot);d=C(this.currentSourceFile,u,f,p)}return d&&(this.currentFileVersion=f,this.currentFileName=t,this.currentFileScriptSnapshot=u,this.currentSourceFile=d),this.currentSourceFile},t}();function S(e,t,r){e.version=r,e.scriptSnapshot=t}function T(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return S(s,r,i),s}function C(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(t,o,i,a);return S(u,r,n),u.nameTable=void 0,t!==u&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),u}var d={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return T(t.fileName,r,d,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=T,e.updateLanguageServiceSourceFile=C;var E={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},k=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),N=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=N;var A=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],P=o(o([],A,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function F(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(164===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||207!==t.parent.parent.kind&&289!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function w(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));return i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a))?[o]:0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,r,n){var i,a,c;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),c=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var l,u,d=new D(t),_=0,f=t.getCancellationToken?new k(t.getCancellationToken()):E,p=t.getCurrentDirectory();function m(e){t.log&&t.log(e)}e.maybeSetLocalizedDiagnosticMessages(null===(a=t.getLocalizedDiagnosticMessages)||void 0===a?void 0:a.bind(t));var g=e.hostUsesCaseSensitiveFileNames(t),y=e.createGetCanonicalFileName(g),v=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return p},getProgram:S,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:m});function h(e){var t=l.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=l.getSourceFiles().map((function(e){return e.fileName})),r}return t}function b(){var n,i,a;if(e.Debug.assert(c!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var s=t.getProjectVersion();if(s){if(u===s&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;u=s}}var d=t.getTypeRootsVersion?t.getTypeRootsVersion():0;_!==d&&(m("TypeRoots version has changed; provide new program"),l=void 0,_=d);var h,x=t.getScriptFileNames().slice(),b=t.getCompilationSettings()||{target:1,jsx:1},D=t.hasInvalidatedResolutions||e.returnFalse,S=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),T=null===(i=t.getProjectReferences)||void 0===i?void 0:i.call(t),C={getSourceFile:I,getSourceFileByPath:M,getCancellationToken:function(){return f},getCanonicalFileName:y,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(b,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile&&t.readFile(e)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:w,onReleaseParsedCommandLine:function(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&w(r.sourceFile,n)},hasInvalidatedResolutions:D,hasChangedAutomaticTypeDirectiveNames:S,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),getModuleResolutionCache:e.maybeBind(t,t.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F},E=C.getSourceFile,k=e.changeCompilerHostLikeToUseCache(C,(function(t){return e.toPath(t,p,y)}),(function(){for(var e=[],t=0;t0?E-g.length:0;h=c.substr(k,g.length)===g?g.length:0,s.push({newText:"",span:{length:m.length,start:E-h}})}return s}function R(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&R(i)}function j(t){var r=t.closingFragment,n=t.parent;return!!(131072&r.flags)||e.isJsxFragment(n)&&j(n)}function B(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:S(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:f,preferences:i,triggerReason:o,kind:s}}N.forEach((function(e,t){return N.set(e.toString(),Number(t))}));var J={dispose:function(){if(l){var n=r.getKeyForCompilationSettings(l.getCompilerOptions());e.forEach(l.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind,e.impliedNodeFormat)})),l=void 0}t=void 0},cleanupSemanticCache:function(){l=void 0},getSyntacticDiagnostics:function(e){return b(),l.getSyntacticDiagnostics(h(e),f).slice()},getSemanticDiagnostics:function(t){b();var r=h(t),n=l.getSemanticDiagnostics(r,f);if(!e.getEmitDeclarations(l.getCompilerOptions()))return n.slice();var i=l.getDeclarationDiagnostics(r,f);return o(o([],n,!0),i,!0)},getSuggestionDiagnostics:function(t){return b(),e.computeSuggestionDiagnostics(h(t),l,f)},getCompilerOptionsDiagnostics:function(){return b(),o(o([],l.getOptionsDiagnostics(f),!0),l.getGlobalDiagnostics(f),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(f,d.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return b(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(l,f,h(t),r):e.getSemanticClassifications(l.getTypeChecker(),f,h(t),l.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(f,d.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return b(),"original"===(n||"original")?e.getEncodedSemanticClassifications(l.getTypeChecker(),f,h(t),l.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(l,f,h(t),r)},getCompletionsAtPosition:function(r,n,i,a){void 0===i&&(i=e.emptyOptions);var o=s(s({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return b(),e.Completions.getCompletionsAtPosition(t,l,m,h(r),n,o,i.triggerCharacter,i.triggerKind,f,a&&e.formatting.getFormatContext(a,t))},getCompletionEntryDetails:function(r,n,i,a,o,s,c){return void 0===s&&(s=e.emptyOptions),b(),e.Completions.getCompletionEntryDetails(l,m,h(r),n,{name:i,source:o,data:c},t,a&&e.formatting.getFormatContext(a,t),s,f)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),b(),e.Completions.getCompletionEntrySymbol(l,m,h(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;b();var a=h(t);return e.SignatureHelp.getSignatureHelpItems(l,a,r,i,f)},getQuickInfoAtPosition:function(t,r){b();var n=h(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=l.getTypeChecker(),o=function(t){return e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos||e.isImportMeta(t.parent)&&t.parent.name===t?t.parent:t}(i),s=function(t,r){var n=F(t);if(n){var i=r.getContextualType(n.parent),a=i&&w(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var c=function(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 208:case 163:return!e.isInComment(t,n);case 108:case 194:case 106:case 199:return!0;case 233:return e.isImportMeta(r);default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(f,(function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(o))})),documentation:c.symbol?c.symbol.getDocumentationComment(a):void 0,tags:c.symbol?c.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(f,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),d=u.symbolKind,_=u.displayParts,p=u.documentation,m=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,n),displayParts:_,documentation:p,tags:m}}},getDefinitionAtPosition:function(t,r,n,i){return b(),e.GoToDefinition.getDefinitionAtPosition(l,h(t),r,n,i)},getDefinitionAndBoundSpan:function(t,r){return b(),e.GoToDefinition.getDefinitionAndBoundSpan(l,h(t),r)},getImplementationAtPosition:function(t,r){return b(),e.FindAllReferences.getImplementationsAtPosition(l,f,l.getSourceFiles(),h(t),r)},getTypeDefinitionAtPosition:function(t,r){return b(),e.GoToDefinition.getTypeDefinitionAtPosition(l.getTypeChecker(),h(t),r)},getReferencesAtPosition:function(t,r){return b(),C(e.getTouchingPropertyName(h(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return b(),e.FindAllReferences.findReferencedSymbols(l,f,l.getSourceFiles(),h(t),r)},getFileReferences:function(t){return b(),e.FindAllReferences.Core.getReferencesForFileName(t,l,l.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,r){return e.flatMap(T(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return s(s({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:T,getNameOrDottedNameSpan:function(t,r,n){var i=d.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(264!==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=d.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),b();var a=n?[h(n)]:l.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,l.getTypeChecker(),f,t,r,i)},getRenameInfo:function(t,r,n){return b(),e.Rename.getRenameInfo(l,h(t),r,n||{})},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,d.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,a){b();var o=h(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,r));if(e.Rename.nodeIsEligibleForRename(c)){if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,o);return s({fileName:o.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,o,t.parent))}))}return C(c,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:a,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,a||!1)}))}},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(d.getCurrentSourceFile(t),f)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(d.getCurrentSourceFile(t),f)},getOutliningSpans:function(t){var r=d.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,f)},getTodoComments:function(t,r){b();var n=h(t);f.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")}(),l=void 0;l=c.exec(o);){f.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var u=l[1],d=l.index+u.length;if(e.isInComment(n,d)){for(var _=void 0,p=0;p=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=l[2];s.push({descriptor:_,message:m,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=d.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?N.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=x(n),o=d.getCurrentSourceFile(t);m("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return m("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=d.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(x(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(d.getCurrentSourceFile(r),e.formatting.getFormatContext(x(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=d.getCurrentSourceFile(r),s=e.formatting.getFormatContext(x(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),d.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=d.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=d.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&R(a))return{newText:"")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&j(o)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=d.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,o,s){void 0===s&&(s=e.emptyOptions),b();var c=h(r),u=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return f.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:c,span:u,program:l,host:t,cancellationToken:f,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var o=h(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:l,host:t,cancellationToken:f,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return I(e)}))):I(n)},organizeImports:function(r,n,i){var a;void 0===i&&(i=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var o=h(r.fileName),s=e.formatting.getFormatContext(n,t),c=null!==(a=r.mode)&&void 0!==a?a:r.skipDestructiveCodeActions?"SortAndCombine":"All";return e.OrganizeImports.organizeImports(o,s,t,l,i,c)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(S(),r,n,t,e.formatting.getFormatContext(i,t),a,v)},getEmitOutput:function(r,n,i){b();var a=h(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(l,a,!!n,f,o,i)},getNonBoundSourceFile:function(e){return d.getCurrentSourceFile(e)},getProgram:S,getCurrentProgram:function(){return l},getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},updateIsDefinitionOfReferencedSymbols:function(r,n){var i=l.getTypeChecker(),a=function(){for(var a=0,o=r;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(16777216&n.flags))return d(n)}function o(r,n){var i=e.canHaveDecorators(r)?e.findLast(r.modifiers,e.isDecorator):void 0,a=i?e.skipTrivia(t.text,i.end):r.getStart(t);return e.createTextSpanFromBounds(a,(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?d(e):d(r)}function l(r){return d(e.findPrecedingToken(r.pos,t))}function u(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 240:return x(r.declarationList.declarations[0]);case 257:case 169:case 168:return x(r);case 166:return function t(r){if(e.isBindingPattern(r.name))return T(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(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]):d(n.body)}(r);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return function(e){if(e.body)return b(e)?o(e):d(e.body)}(r);case 238:if(e.isFunctionBlock(r))return v=(y=r).statements.length?y.statements[0]:y.getLastToken(),b(y.parent)?c(y.parent,v):d(v);case 265:return D(r);case 295:return D(r.block);case 241:return o(r.expression);case 250:return o(r.getChildAt(0),r.expression);case 244:return s(r,r.expression);case 243:return d(r.statement);case 256:return o(r.getChildAt(0));case 242:return s(r,r.expression);case 253:return d(r.statement);case 249:case 248:return o(r.getChildAt(0),r.label);case 245:return(g=r).initializer?S(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 246:return s(r,r.expression);case 247:return S(r);case 252:return s(r,r.expression);case 292:case 293:return d(r.statements[0]);case 255:return D(r.tryBlock);case 254:case 274:return o(r,r.expression);case 268:return o(r,r.moduleReference);case 269:case 275:return o(r,r.moduleSpecifier);case 264:if(1!==e.getModuleInstanceState(r))return;case 260:case 263:case 302:case 205:return o(r);case 251:return d(r.statement);case 167:return function(r,n,i){if(r){var a=r.indexOf(n);if(a>=0){for(var s=a,c=a+1;s>0&&i(r[s-1]);)s--;for(;c0?d(t.declarations[0]):void 0}function T(t){var r=e.forEach(t.elements,(function(e){return 229!==e.kind?e:void 0}));return r?d(r):205===t.parent.kind?o(t.parent):h(t.parent)}function C(t){e.Debug.assert(204!==t.kind&&203!==t.kind);var r=206===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 229!==e.kind?e:void 0}));return n?d(n):o(223===t.parent.kind?t.parent:t)}}}}(_||(_={})),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,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(_||(_={}));var _,f=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.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(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,e.isString(t)?t:t.fileName.toLowerCase())}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.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},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.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}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=n;var i=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function a(e,t,r,n){return c(e,t,!0,r,n)}function c(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=i;var l=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=_;var p=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return d(r,t),r.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,f&&f.CollectGarbage&&(f.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return _(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return m(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return m(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(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('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(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('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(function(){return t.languageService.getFileReferences(e)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r,n){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getCompletionsAtPosition(e,t,r,n)}))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(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('".concat(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('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(function(){return n.languageService.provideInlayHints(e,t,r)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=u(r,["diagnostics"]);return s(s({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return c(this.logger,"getEmitOutput('".concat(e,"')"),!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.uncommentSelection(e,t)}))},r}(l);function m(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var g=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return d(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),a(this.logger,"getEncodedLexicalClassifications",(function(){return m(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=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(308===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})}(_||(_={})),function(e){e.isTypeAssertion=e.Debug.deprecate((function(e){return 213===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(_||(_={})),function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(t){return e.isMemberName(t)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(_||(_={})),function(e){function t(t){var r=t.createConstructorTypeNode,n=t.updateConstructorTypeNode;t.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(e,t,n,i){return r(e,t,n,i)},1:function(e,t,n){return r(void 0,e,t,n)}}).bind({0:function(e){return 4===e.length},1:function(e){return 3===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(e,t,r,i,a){return n(e,t,r,i,a)},1:function(e,t,r,i){return n(e,e.modifiers,t,r,i)}}).bind({0:function(e){return 5===e.length},1:function(e){return 4===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(_||(_={})),function(e){function t(t){var r=t.createImportTypeNode,n=t.updateImportTypeNode;t.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(e,t,n,i,a){return r(e,t,n,i,a)},1:function(e,t,n,i){return r(e,void 0,t,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),t.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(e,t,r,i,a,o){return n(e,t,r,i,a,o)},1:function(e,t,r,i,a){return n(e,t,e.assertions,r,i,a)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isImportTypeAssertionContainer(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||e.isEntityName(r))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(_||(_={})),function(e){function t(t){var r=t.createTypeParameterDeclaration,n=t.updateTypeParameterDeclaration;t.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(e,t,n,i){return r(e,t,n,i)},1:function(e,t,n){return r(void 0,e,t,n)}}).bind({0:function(t){var r=t[0];return void 0===r||e.isArray(r)},1:function(t){var r=t[0];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(e,t,r,i,a){return n(e,t,r,i,a)},1:function(e,t,r,i){return n(e,e.modifiers,t,r,i)}}).bind({0:function(t){var r=t[1];return void 0===r||e.isArray(r)},1:function(t){var r=t[1];return void 0!==r&&!e.isArray(r)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var r=e.createNodeFactory;e.createNodeFactory=function(e,n){var i=r(e,n);return t(i),i},t(e.factory)}(_||(_={})),function(e){var t={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},r={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},n={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function i(i){var a=i.createParameterDeclaration,o=i.updateParameterDeclaration,s=i.createPropertyDeclaration,c=i.updatePropertyDeclaration,l=i.createMethodDeclaration,u=i.updateMethodDeclaration,d=i.createConstructorDeclaration,_=i.updateConstructorDeclaration,f=i.createGetAccessorDeclaration,p=i.updateGetAccessorDeclaration,m=i.createSetAccessorDeclaration,g=i.updateSetAccessorDeclaration,y=i.createIndexSignature,v=i.updateIndexSignature,h=i.createClassStaticBlockDeclaration,x=i.updateClassStaticBlockDeclaration,b=i.createClassExpression,D=i.updateClassExpression,S=i.createFunctionDeclaration,T=i.updateFunctionDeclaration,C=i.createClassDeclaration,E=i.updateClassDeclaration,k=i.createInterfaceDeclaration,N=i.updateInterfaceDeclaration,A=i.createTypeAliasDeclaration,P=i.updateTypeAliasDeclaration,F=i.createEnumDeclaration,w=i.updateEnumDeclaration,I=i.createModuleDeclaration,M=i.updateModuleDeclaration,O=i.createImportEqualsDeclaration,L=i.updateImportEqualsDeclaration,R=i.createImportDeclaration,j=i.updateImportDeclaration,B=i.createExportAssignment,J=i.updateExportAssignment,K=i.createExportDeclaration,z=i.updateExportDeclaration;i.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(e,t,r,n,i,o){return a(e,t,r,n,i,o)},1:function(t,r,n,i,o,s,c){return a(e.concatenate(t,r),n,i,o,s,c)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(e,t,r,n,i,a,s){return o(e,t,r,n,i,a,s)},1:function(t,r,n,i,a,s,c,l){return o(t,e.concatenate(r,n),i,a,s,c,l)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isBindingName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isDotDotDotToken(n))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(e,t,r,n,i){return s(e,t,r,n,i)},1:function(t,r,n,i,a,o){return s(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(e,t,r,n,i,a){return c(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return c(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isQuestionOrExclamationToken(n))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(e,t,r,n,i,a,o,s){return l(e,t,r,n,i,a,o,s)},1:function(t,r,n,i,a,o,s,c,u){return l(e.concatenate(t,r),n,i,a,o,s,c,u)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(e,t,r,n,i,a,o,s,c){return u(e,t,r,n,i,a,o,s,c)},1:function(t,r,n,i,a,o,s,c,l,d){return u(t,e.concatenate(r,n),i,a,o,s,c,l,d)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return void 0===t[9]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isPropertyName(n))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8],l=t[9];return(void 0===r||e.isArray(r))&&(void 0===n||"object"==typeof n&&e.isAsteriskToken(n))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(e,t,r){return d(e,t,r)},1:function(e,t,r,n){return d(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return!(void 0!==t[3]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(e,t,r,n){return _(e,t,r,n)},1:function(e,t,r,n,i){return _(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return!(void 0!==t[4]||void 0!==r&&e.some(r,e.isDecorator)||void 0!==n&&e.some(n,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||!e.some(r,e.isModifier))&&(void 0===n||!e.some(n,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:r}).finish(),i.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(e,t,r,n,i){return f(e,t,r,n,i)},1:function(t,r,n,i,a,o){return f(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(e,t,r,n,i,a){return p(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return p(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(e,t,r,n){return m(e,t,r,n)},1:function(t,r,n,i,a){return m(e.concatenate(t,r),n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(e,t,r,n,i){return g(e,t,r,n,i)},1:function(t,r,n,i,a,o){return g(t,e.concatenate(r,n),i,a,o)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(e,t,r){return y(e,t,r)},1:function(e,t,r,n){return y(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(e,t,r,n){return v(e,t,r,n)},1:function(e,t,r,n,i){return v(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||e.every(n,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.every(n,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:r}).finish(),i.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(e){return h(e)},1:function(e,t,r){return h(r)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1:function(t){var r=t[0],n=t[1],i=t[2];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(e,t){return x(e,t)},1:function(e,t,r,n){return x(e,n)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===n&&void 0===i&&(void 0===r||!e.isArray(r))},1:function(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.isArray(r))&&(void 0===n||e.isArray(r))&&(void 0===i||e.isBlock(i))}}).deprecate({1:n}).finish(),i.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(e,t,r,n,i){return b(e,t,r,n,i)},1:function(t,r,n,i,a,o){return b(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(e,t,r,n,i,a){return D(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return D(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:r}).finish(),i.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(e,t,r,n,i,a,o){return S(e,t,r,n,i,a,o)},1:function(e,t,r,n,i,a,o,s){return S(t,r,n,i,a,o,s)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return void 0===t[7]&&(void 0===r||!e.isArray(r))&&(void 0===n||"string"==typeof n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(e,t,r,n,i,a,o,s){return T(e,t,r,n,i,a,o,s)},1:function(e,t,r,n,i,a,o,s,c){return T(e,r,n,i,a,o,s,c)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return void 0===t[8]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isIdentifier(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return(void 0===r||e.isArray(r))&&(void 0===n||"string"!=typeof n&&e.isAsteriskToken(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:r}).finish(),i.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(e,t,r,n,i){return C(e,t,r,n,i)},1:function(t,r,n,i,a,o){return C(e.concatenate(t,r),n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(){return!0}}).deprecate({1:t}).finish(),i.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(e,t,r,n,i,a){return E(e,t,r,n,i,a)},1:function(t,r,n,i,a,o,s){return E(t,e.concatenate(r,n),i,a,o,s)}}).bind({0:function(t){var r=t[2],n=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===r||!e.isArray(r))&&(void 0===n||e.isArray(n))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var r=t[2],n=t[3],i=t[4],a=t[5],o=t[6];return(void 0===r||e.isArray(r))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:t}).finish(),i.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(e,t,r,n,i){return k(e,t,r,n,i)},1:function(e,t,r,n,i,a){return k(t,r,n,i,a)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(e,t,r,n,i,a){return N(e,t,r,n,i,a)},1:function(e,t,r,n,i,a,o){return N(e,r,n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:r}).finish(),i.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(e,t,r,n){return A(e,t,r,n)},1:function(e,t,r,n,i){return A(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(e,t,r,n,i){return P(e,t,r,n,i)},1:function(e,t,r,n,i,a){return P(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:r}).finish(),i.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(e,t,r){return F(e,t,r)},1:function(e,t,r,n){return F(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(e,t,r,n){return w(e,t,r,n)},1:function(e,t,r,n,i){return w(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isArray(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:r}).finish(),i.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(e,t,r,n){return I(e,t,r,n)},1:function(e,t,r,n,i){return I(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)&&(void 0===i||e.isModuleBody(i))&&(void 0===a||"number"==typeof a)},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||"object"==typeof a)&&(void 0===o||"number"==typeof o)}}).deprecate({1:r}).finish(),i.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(e,t,r,n){return M(e,t,r,n)},1:function(e,t,r,n,i){return M(e,r,n,i)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isModuleBody(i))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||e.isModuleBody(a))}}).deprecate({1:r}).finish(),i.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(e,t,r,n){return O(e,t,r,n)},1:function(e,t,r,n,i){return O(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(e,t,r,n,i){return L(e,t,r,n,i)},1:function(e,t,r,n,i,a){return L(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:r}).finish(),i.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(e,t,r,n){return R(e,t,r,n)},1:function(e,t,r,n,i){return R(t,r,n,i)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&void 0!==i&&e.isExpression(i)&&(void 0===a||e.isAssertClause(a))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(e,t,r,n,i){return j(e,t,r,n,i)},1:function(e,t,r,n,i,a){return j(e,r,n,i,a)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||!e.isArray(n))&&(void 0===i||e.isExpression(i))&&(void 0===a||e.isAssertClause(a))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:r}).finish(),i.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(e,t,r){return B(e,t,r)},1:function(e,t,r,n){return B(t,r,n)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&(void 0===n||"boolean"==typeof n)&&"object"==typeof i},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&(void 0===i||"boolean"==typeof i)&&void 0!==a&&e.isExpression(a)}}).deprecate({1:r}).finish(),i.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(e,t,r){return J(e,t,r)},1:function(e,t,r,n){return J(e,r,n)}}).bind({0:function(t){var r=t[1],n=t[2];return void 0===t[3]&&(void 0===r||e.every(r,e.isModifier))&&void 0!==n&&!e.isArray(n)},1:function(t){var r=t[1],n=t[2],i=t[3];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&void 0!==i&&e.isExpression(i)}}).deprecate({1:r}).finish(),i.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(e,t,r,n,i){return K(e,t,r,n,i)},1:function(e,t,r,n,i,a){return K(t,r,n,i,a)}}).bind({0:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish(),i.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(e,t,r,n,i,a){return z(e,t,r,n,i,a)},1:function(e,t,r,n,i,a,o){return z(e,r,n,i,a,o)}}).bind({0:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===r||e.every(r,e.isModifier))&&"boolean"==typeof n&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===r||e.every(r,e.isDecorator))&&(void 0===n||e.isArray(n))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:r}).finish()}var a=e.createNodeFactory;e.createNodeFactory=function(e,t){var r=a(e,t);return i(r),r},i(e.factory)}(_||(_={})),function(e){"undefined"!=typeof console&&(e.Debug.loggingHost={log:function(t,r){switch(t){case e.LogLevel.Error:return console.error(r);case e.LogLevel.Warning:return console.warn(r);case e.LogLevel.Info:case e.LogLevel.Verbose:return console.log(r)}}})}(_||(_={}))},3411:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=3411,e.exports=t},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function y(e){throw new RangeError(p[e])}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+function(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}((e=e.replace(f,".")).split("."),t).join(".")}function h(e){for(var t=[],r=0,n=e.length;r=55296&&i<=56319&&r>1,e+=m(e/t);e>455;n+=u)e=m(e/35);return m(n+36*e/(e+38))},D=function(e){var t,r=[],n=e.length,i=0,a=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var c=0;c=128&&y("not-basic"),r.push(e.charCodeAt(c));for(var d=s>0?s+1:0;d=n&&y("invalid-input");var g=(t=e.charCodeAt(d++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(g>=u||g>m((l-i)/f))&&y("overflow"),i+=g*f;var v=p<=o?1:p>=o+26?26:p-o;if(gm(l/h)&&y("overflow"),f*=h}var x=r.length+1;o=b(i-_,x,0==_),m(i/x)>l-a&&y("overflow"),a+=m(i/x),i%=x,r.splice(i++,0,a)}return String.fromCodePoint.apply(String,r)},S=function(e){var t=[],r=(e=h(e)).length,n=128,i=0,a=72,o=!0,s=!1,c=void 0;try{for(var d,_=e[Symbol.iterator]();!(o=(d=_.next()).done);o=!0){var f=d.value;f<128&&t.push(g(f))}}catch(e){s=!0,c=e}finally{try{!o&&_.return&&_.return()}finally{if(s)throw c}}var p=t.length,v=p;for(p&&t.push("-");v=n&&Nm((l-i)/A)&&y("overflow"),i+=(D-n)*A,n=D;var P=!0,F=!1,w=void 0;try{for(var I,M=e[Symbol.iterator]();!(P=(I=M.next()).done);P=!0){var O=I.value;if(Ol&&y("overflow"),O==n){for(var L=i,R=u;;R+=u){var j=R<=a?1:R>=a+26?26:R-a;if(L>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function N(e){for(var t="",r=0,n=e.length;r=194&&i<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&i)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(i>=224){if(n-r>=9){var o=parseInt(e.substr(r+4,2),16),s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function A(e,t){function r(e){var r=N(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,k).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,k).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,k).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,k).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,k).replace(t.PCT_ENCODED,i)),e}function P(e){return e.replace(/^0*(.*)/,"$1")||"0"}function F(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=c(r,2)[1];return n?n.split(".").map(P).join("."):e}function w(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=c(r,3),i=n[1],a=n[2];if(i){for(var o=i.toLowerCase().split("::").reverse(),s=c(o,2),l=s[0],u=s[1],d=u?u.split(":").map(P):[],_=l.split(":").map(P),f=t.IPV4ADDRESS.test(_[_.length-1]),p=f?7:8,m=_.length-p,g=Array(p),y=0;y1){var x=g.slice(0,v.index),b=g.slice(v.index+v.length);h=x.join(":")+"::"+b.join(":")}else h=g.join(":");return a&&(h+="%"+a),h}return e}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,M=void 0==="".match(/(){0}/)[1];function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?s:o;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(I);if(i){M?(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5])):(r.scheme=i[1]||void 0,r.userinfo=-1!==e.indexOf("@")?i[3]:void 0,r.host=-1!==e.indexOf("//")?i[4]:void 0,r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=-1!==e.indexOf("?")?i[7]:void 0,r.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),r.host&&(r.host=w(F(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=E[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)A(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=T(r.host.replace(n.PCT_ENCODED,N).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}A(r,o)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function L(e,t){var r=!1!==t.iri?s:o,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(w(F(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var R=/^\.\.?\//,j=/^\/\.(\/|$)/,B=/^\/\.\.(\/|$)/,J=/^\/?(?:.|\n)*?(?=\/|$)/;function K(e){for(var t=[];e.length;)if(e.match(R))e=e.replace(R,"");else if(e.match(j))e=e.replace(j,"/");else if(e.match(B))e=e.replace(B,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(J);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?s:o,n=[],i=E[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?C(e.host):T(e.host.replace(r.PCT_ENCODED,N).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}A(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=L(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||i&&i.absolutePath||(c=K(c)),void 0===a&&(c=c.replace(/^\/\//,"/%2F")),n.push(c)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=O(z(e,r),r),t=O(z(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=K(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=K(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=K(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=K(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function V(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:o.PCT_ENCODED,N)}var q={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},W={scheme:"https",domainHost:q.domainHost,parse:q.parse,serialize:q.serialize};function H(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var $={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=H(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(H(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=c(r,2),i=n[0],a=n[1];e.path=i&&"/"!==i?i:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},G={scheme:"wss",domainHost:$.domainHost,parse:$.parse,serialize:$.serialize},X={},Q="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Y="[0-9A-Fa-f]",Z=r(r("%[EFef][0-9A-Fa-f]%"+Y+Y+"%"+Y+Y)+"|"+r("%[89A-Fa-f][0-9A-Fa-f]%"+Y+Y)+"|"+r("%"+Y+Y)),ee=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),te=new RegExp(Q,"g"),re=new RegExp(Z,"g"),ne=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ee),"g"),ie=new RegExp(t("[^]",Q,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ae=ie;function oe(e){var t=N(e);return t.match(te)?t:e}var se={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var i=!1,a={},o=r.query.split("&"),s=0,c=o.length;s0})).map((function(e){return"-- ".concat(e)})).join("\n")}postMessage({source:r})}else"writeFile"===e.data.type?t.vfs.writeFile(e.data.filePath,e.data.content):"setMapping"===e.data.type&&t.setMapping(e.data.typingsPath,e.data.mainPath)})),console.log("roblox-ts@".concat(e.COMPILER_VERSION))}()}(); \ No newline at end of file + deps: ${n}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);s(e,t),c(e,n)}};function s(e,t=e.schema){const{gen:n,data:i,it:a}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const c in t){const l=t[c];if(0===l.length)continue;const u=(0,o.propertyInData)(n,i,c,a.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(", ")}),a.allErrors?n.if(u,(()=>{for(const t of l)(0,o.checkReportMissingProp)(e,t)})):(n.if(r._`${u} && (${(0,o.checkMissingProp)(e,l,s)})`),(0,o.reportMissingProp)(e,s),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:a,it:s}=e,c=n.name("valid");for(const l in t)(0,i.alwaysValidSchema)(s,t[l])||(n.if((0,o.propertyInData)(n,r,l,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:l},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=s,t.validateSchemaDeps=c,t.default=a},9434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const s=a(o,"then"),c=a(o,"else");if(!s&&!c)return;const l=t.let("valid",!0),u=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),s&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(u,_("then",n),_("else",n))}else s?t.if(u,_("then")):t.if((0,r.not)(u),_("else"));function _(n,i){return()=>{const o=e.subschema({keyword:n},u);t.assign(l,u),e.mergeValidEvaluated(o,l),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(l,(()=>e.error(!0)))}};function a(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},8200:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4783),i=n(2924),o=n(4665),a=n(1119),s=n(9864),c=n(7772),l=n(3708),u=n(9351),_=n(6239),d=n(2296),f=n(5697),p=n(19),m=n(4200),g=n(1125),h=n(9434),y=n(6552);t.default=function(e=!1){const t=[f.default,p.default,m.default,g.default,h.default,y.default,l.default,u.default,c.default,_.default,d.default];return e?t.push(i.default,a.default):t.push(r.default,o.default),t.push(s.default),t}},4665:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(3487),i=n(6776),o=n(412),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function s(e,t,n=e.schema){const{gen:o,parentSchema:a,data:s,keyword:c,it:l}=e;!function(e){const{opts:r,errSchemaPath:o}=l,a=n.length,s=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${c}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(l,e,r.strictTuples)}}(a),l.opts.unevaluated&&n.length&&!0!==l.items&&(l.items=i.mergeEvaluated.items(o,n.length,l.items));const u=o.name("valid"),_=o.const("len",r._`${s}.length`);n.forEach(((t,n)=>{(0,i.alwaysValidSchema)(l,t)||(o.if(r._`${_} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},u))),e.ok(u))}))}t.validateTuple=s,t.default=a},1119:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o=n(412),a=n(4783),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(s?(0,a.validateAdditionalItems)(e,s):e.ok((0,o.validateArray)(e)))}};t.default=s},5697:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6776),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=i},4200:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const s=n,c=t.let("valid",!1),l=t.let("passing",null),u=t.name("_valid");e.setParams({passing:l}),t.block((function(){s.forEach(((n,o)=>{let s;(0,i.alwaysValidSchema)(a,n)?t.var(u,!0):s=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},u),o>0&&t.if(r._`${u} && ${c}`).assign(c,!1).assign(l,r._`[${l}, ${o}]`).else(),t.if(u,(()=>{t.assign(c,!0),t.assign(l,o),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=o},2296:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(412),i=n(3487),o=n(6776),a=n(6776),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:c,it:l}=e,{opts:u}=l,_=(0,r.allSchemaProperties)(n),d=_.filter((e=>(0,o.alwaysValidSchema)(l,n[e])));if(0===_.length||d.length===_.length&&(!l.opts.unevaluated||!0===l.props))return;const f=u.strictSchema&&!u.allowMatchingProperties&&c.properties,p=t.name("valid");!0===l.props||l.props instanceof i.Name||(l.props=(0,a.evaluatedPropsToName)(t,l.props));const{props:m}=l;function g(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function h(n){t.forIn("key",s,(o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,(()=>{const r=d.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:a.Type.Str},p),l.opts.unevaluated&&!0!==m?t.assign(i._`${m}[${o}]`,!0):r||l.allErrors||t.if((0,i.not)(p),(()=>t.break()))}))}))}!function(){for(const e of _)f&&g(e),l.allErrors?h(e):(t.var(p,!0),h(e),t.if(p))}()}};t.default=s},2924:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4665),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},6239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(4815),i=n(412),o=n(6776),a=n(9351),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:c,it:l}=e;"all"===l.opts.removeAdditional&&void 0===s.additionalProperties&&a.default.code(new r.KeywordCxt(l,a.default,"additionalProperties"));const u=(0,i.allSchemaProperties)(n);for(const e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&!0!==l.props&&(l.props=o.mergeEvaluated.props(t,(0,o.toHash)(u),l.props));const _=u.filter((e=>!(0,o.alwaysValidSchema)(l,n[e])));if(0===_.length)return;const d=t.name("valid");for(const n of _)f(n)?p(n):(t.if((0,i.propertyInData)(t,c,n,l.opts.ownProperties)),p(n),l.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(d);function f(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==n[e].default}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=s},3708:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:a}=e;if((0,i.alwaysValidSchema)(a,n))return;const s=t.name("valid");t.forIn("key",o,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if((0,r.not)(s),(()=>{e.error(!0),a.allErrors||t.break()}))})),e.ok(s)}};t.default=o},6552:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(6776),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},412:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(3487),i=n(6776),o=n(2141),a=n(6776);function s(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${s(e)}.call(${t}, ${n})`}function l(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(c(e,t,n))):o}function u(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(l(n,i,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map((i=>(0,r.and)(l(e,t,i,n.ownProperties),r._`${o} = ${i}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=s,t.isOwnProperty=c,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${c(e,t,n)}`:o},t.noPropertyInData=l,t.allSchemaProperties=u,t.schemaProperties=function(e,t){return u(t).filter((n=>!(0,i.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:a,errorPath:s},it:c},l,u,_){const d=_?r._`${e}, ${t}, ${i}${a}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,s)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const p=r._`${d}, ${n.object(...f)}`;return u!==r.nil?r._`${l}.call(${u}, ${p})`:r._`${l}(${p})`};const _=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,s=o(n,i);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:r._`${"new RegExp"===o.code?_:(0,a.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:a}=e,s=t.name("valid");if(a.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(s,!0),c((()=>t.break())),s;function c(a){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},s),t.if((0,r.not)(s),a)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:a}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,i.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const s=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,i)=>{const a=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(s,r._`${s} || ${c}`),e.mergeValidEvaluated(a,c)||t.if((0,r.not)(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},8386:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},5684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8386),i=n(8280),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},8280:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(6646),i=n(412),o=n(3487),a=n(2141),s=n(5173),c=n(6776),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:a,schemaEnv:c,validateName:l,opts:d,self:f}=i,{root:p}=c;if(("#"===n||"#/"===n)&&a===p.baseId)return function(){if(c===p)return _(e,l,c,c.$async);const n=t.scopeValue("root",{ref:p});return _(e,o._`${n}.validate`,p,p.$async)}();const m=s.resolveRef.call(f,p,a,n);if(void 0===m)throw new r.default(i.opts.uriResolver,a,n);return m instanceof s.SchemaEnv?function(t){const n=u(e,t);_(e,n,t,t.$async)}(m):function(r){const i=t.scopeValue("schema",!0===d.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),a=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},a);e.mergeEvaluated(s),e.ok(a)}(m)}};function u(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function _(e,t,n,r){const{gen:s,it:l}=e,{allErrors:u,schemaEnv:_,opts:d}=l,f=d.passContext?a.default.this:o.nil;function p(e){const t=o._`${e}.errors`;s.assign(a.default.vErrors,o._`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`),s.assign(a.default.errors,o._`${a.default.vErrors}.length`)}function m(e){var t;if(!l.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(r&&!r.dynamicProps)void 0!==r.props&&(l.props=c.mergeEvaluated.props(s,r.props,l.props));else{const t=s.var("props",o._`${e}.evaluated.props`);l.props=c.mergeEvaluated.props(s,t,l.props,o.Name)}if(!0!==l.items)if(r&&!r.dynamicItems)void 0!==r.items&&(l.items=c.mergeEvaluated.items(s,r.items,l.items));else{const t=s.var("items",o._`${e}.evaluated.items`);l.items=c.mergeEvaluated.items(s,t,l.items,o.Name)}}r?function(){if(!_.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),m(t),u||s.assign(n,!0)}),(e=>{s.if(o._`!(${e} instanceof ${l.ValidationError})`,(()=>s.throw(e))),p(e),u||s.assign(n,!1)})),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),(()=>m(t)),(()=>p(t)))}t.getValidate=u,t.callRef=_,t.default=l},1240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(9306),o=n(5173),a=n(6776),s={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:s,parentSchema:c,it:l}=e,{oneOf:u}=c;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const _=s.propertyName;if("string"!=typeof _)throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),f=t.const("tag",r._`${n}${(0,r.getProperty)(_)}`);function p(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${f} == "string"`,(()=>function(){const n=function(){var e;const t={},n=i(c);let r=!0;for(let t=0;te.error(!1,{discrError:i.DiscrError.Tag,tag:f,tagName:_}))),e.ok(d)}};t.default=s},9306:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},3924:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5684),i=n(2649),o=n(8200),a=n(9502),s=n(6167),c=[r.default,i.default,(0,o.default)(),a.default,s.metadataVocabulary,s.contentVocabulary];t.default=c},9651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:_,self:d}=c;l.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:l.code.formats}),a=n.const("fDef",r._`${o}[${s}]`),c=n.let("fType"),u=n.let("format");n.if(r._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(c,r._`${a}.type || "string"`).assign(u,r._`${a}.validate`)),(()=>n.assign(c,r._`"string"`).assign(u,a))),e.fail$data((0,r.or)(!1===l.strictSchema?r.nil:r._`${s} && !${u}`,function(){const e=_.$async?r._`(${a}.async ? await ${u}(${i}) : ${u}(${i}))`:r._`${u}(${i})`,n=r._`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return r._`${u} && ${u} !== true && ${c} === ${t} && !${n}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1!==l.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}d.logger.warn(e())}();if(!0===o)return;const[s,c,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):l.code.formats?r._`${l.code.formats}${(0,r.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!_.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof c?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},9502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(9651).default];t.default=r},6167:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},4693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o=n(3510),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:a,schemaCode:s,schema:c}=e;a||c&&"object"==typeof c?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${s})`):e.fail(r._`${c} !== ${n}`)}};t.default=a},966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o=n(3510),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:s,schemaCode:c,it:l}=e;if(!a&&0===s.length)throw new Error("enum must have non-empty array");const u=s.length>=l.opts.loopEnum;let _;const d=()=>null!=_?_:_=(0,i.useFunc)(t,o.default);let f;if(u||a)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",c,(e=>t.if(r._`${d()}(${n}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,r.or)(...s.map(((t,i)=>function(e,t){const i=s[t];return"object"==typeof i&&null!==i?r._`${d()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i))))}e.pass(f)}};t.default=a},2649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3983),i=n(430),o=n(3229),a=n(4336),s=n(498),c=n(3301),l=n(1687),u=n(2958),_=n(4693),d=n(966),f=[r.default,i.default,o.default,a.default,s.default,c.default,l.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},_.default,d.default];t.default=f},1687:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},3229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=n(6776),o=n(4499),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:a,it:s}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,l=!1===s.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${l} ${c} ${a}`)}};t.default=a},3983:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},a={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:a,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=s},498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3487),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),c=a?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${i} === 0 || (${s} = ${n}/${i}, ${c}))`)}};t.default=i},4336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(412),i=n(3487),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match pattern "${e}"`,params:({schemaCode:e})=>i._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:o,schemaCode:a,it:s}=e,c=s.opts.unicodeRegExp?"u":"",l=n?i._`(new RegExp(${a}, ${c}))`:(0,r.usePattern)(e,o);e.fail$data(i._`!${l}.test(${t})`)}};t.default=o},3301:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(412),i=n(3487),o=n(6776),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:a,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&0===n.length)return;const _=n.length>=u.loopRequired;if(l.allErrors?function(){if(_||c)e.block$data(i.nil,d);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(_||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,a,(()=>{t.assign(o,(0,r.propertyInData)(t,s,n,u.ownProperties)),t.if((0,i.not)(o),(()=>{e.error(),t.break()}))}),i.nil)}(o,n))),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),u.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(l,t,l.opts.strictRequired)}}function d(){t.forOf("prop",a,(n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,s,n,u.ownProperties),(()=>e.error()))}))}}};t.default=a},2958:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(453),i=n(3487),o=n(6776),a=n(3510),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:c,parentSchema:l,schemaCode:u,it:_}=e;if(!s&&!c)return;const d=t.let("valid"),f=l.items?(0,r.getSchemaTypes)(l.items):[];function p(o,a){const s=t.name("item"),c=(0,r.checkDataTypes)(f,s,_.opts.strictNumbers,r.DataType.Wrong),l=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,(()=>{t.let(s,i._`${n}[${o}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${s} == "string"`,i._`${s} += "_"`),t.if(i._`typeof ${l}[${s}] == "number"`,(()=>{t.assign(a,i._`${l}[${s}]`),e.error(),t.assign(d,!1).break()})).code(i._`${l}[${s}] = ${o}`)}))}function m(r,s){const c=(0,o.useFunc)(t,a.default),l=t.name("outer");t.label(l).for(i._`;${r}--;`,(()=>t.for(i._`${s} = ${r}; ${s}--;`,(()=>t.if(i._`${c}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(d,!1).break(l)}))))))}e.block$data(d,(function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(d,!0),t.if(i._`${r} > 1`,(()=>(f.length>0&&!f.some((e=>"object"===e||"array"===e))?p:m)(r,o)))}),i._`${u} === false`),e.ok(d)}};t.default=s},4063:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},9461:function(e){"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,i,o,a,s,c,l,u,_){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in r(o,a,s,c,l,u,_),o){var f=o[d];if(Array.isArray(f)){if(d in t.arrayKeywords)for(var p=0;p2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=s,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=s,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var a={resolve:function(){for(var e,t="",n=!1,a=arguments.length-1;a>=-1&&!n;a--){var s;a>=0?s=arguments[a]:(void 0===e&&(e=r.cwd()),s=e),i(s),0!==s.length&&(t=s+"/"+t,n=47===s.charCodeAt(0))}return t=o(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=o(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=a.resolve(e))===(t=a.resolve(t)))return"";for(var n=1;nl){if(47===t.charCodeAt(s+_))return t.slice(s+_+1);if(0===_)return t.slice(s+_)}else o>l&&(47===e.charCodeAt(n+_)?u=_:0===_&&(u=0));break}var d=e.charCodeAt(n+_);if(d!==t.charCodeAt(s+_))break;47===d&&(u=_)}var f="";for(_=n+u+1;_<=r;++_)_!==r&&47!==e.charCodeAt(_)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(s+u):(s+=u,47===t.charCodeAt(s)&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,o=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,c=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!a){r=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=c))}return r===o?o=c:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){r=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===r&&(o=!1,r=s+1),46===c?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),o=47===r;o?(t.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,l=!0,u=e.length-1,_=0;u>=n;--u)if(47!==(r=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===r?-1===a?a=u:1!==_&&(_=1):-1!==a&&(_=-1);else if(!l){s=u+1;break}return-1===a||-1===c||0===_||1===_&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(t.name=e.slice(1,a),t.base=e.slice(1,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c)),t.ext=e.slice(a,c)),s>0?t.dir=e.slice(0,s-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},4155:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,c=[],l=!1,u=-1;function _(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=a(_);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u1)for(var n=1;n{var e,t,o,a,s,c,l,u,_,d,f,p,m,g,h,y,v,b=Object.defineProperty,x=Object.getOwnPropertyNames,S=(e,t)=>function(){return e&&(t=(0,e[x(e)[0]])(e=0)),t},k=(e,t)=>{for(var n in t)b(e,n,{get:t[n],enumerable:!0})},T=S({"src/compiler/corePublic.ts"(){e="5.2",t="5.2.2",o=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(o||{})}});function C(e){return e?e.length:0}function w(e,t){if(e)for(let n=0;n=0;n--){const r=t(e[n],n);if(r)return r}}function D(e,t){if(void 0!==e)for(let n=0;n=0;r--){const n=e[r];if(t(n,r))return n}}function L(e,t,n){if(void 0===e)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function j(e,t){for(let n=0;nn(e,t[r])))}function z(e,t,n){for(let r=n||0;r{const i=t(r,e);if(void 0!==i){const[e,t]=i;void 0!==e&&void 0!==t&&n.set(e,t)}})),n}function ie(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function oe(e,t){return!e.has(t)&&(e.add(t),!0)}function*ae(e){yield e}function se(e,t,n){let r;if(e){r=[];const i=e.length;let o,a,s=0,c=0;for(;s{const[i,o]=t(r,e);n.set(i,o)})),n}function le(e,t){if(e){if(!t)return e.length>0;for(const n of e)if(t(n))return!0}return!1}function ue(e,t,n){let r;for(let i=0;ie[t]))}(e,t,n):function(e,t){const n=[];for(const r of e)Ee(n,r,t);return n}(e,t)}function me(){return[]}function ge(e,t,n,r){if(0===e.length)return e.push(t),!0;const i=Ke(e,t,wt,n);return i<0?(e.splice(~i,0,t),!0):!!r&&(e.splice(i,0,t),!0)}function he(e,t,n){return function(e,t){if(0===e.length)return a;let n=e[0];const r=[n];for(let i=1;i0&&(i&=-2),2&i&&r(o,s)>0&&(i&=-3),o=s}return i}function be(e,t,n=Mt){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r0&&Fn.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;ia&&Fn.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function ke(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function Te(e,t){return void 0===e?t:void 0===t?e:gt(e)?gt(t)?_e(e,t):ke(e,t):gt(t)?ke(t,e):[e,t]}function Ce(e,t){return t<0?e.length+t:t}function we(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:Ce(t,n),r=void 0===r?t.length:Ce(t,r);for(let i=n;in(e[t],e[r])||Bt(t,r)))}function Ae(e,t){return 0===e.length?e:e.slice().sort(t)}function*Pe(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Fe(e,t){const n=fe(e);return Ne(e,n,t),n.map((t=>e[t]))}function Ie(e,t,n,r){for(;n>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function qe(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}function We(e,t){return _.call(e,t)}function He(e,t){return _.call(e,t)?e[t]:void 0}function Ge(e){const t=[];for(const n in e)_.call(e,n)&&t.push(n);return t}function Xe(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)Ee(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ye(e){const t=[];for(const n in e)_.call(e,n)&&t.push(e[n]);return t}function Qe(e,t){const n=new Array(e);for(let r=0;r100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function mt(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())gt(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);if(!gt(o))return t(o,r);for(const e of o)if(t(e,r))return!0;return!1},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(gt(e))B(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(gt(a)){for(let e=0;ei(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function gt(e){return Array.isArray(e)}function ht(e){return gt(e)?e:[e]}function yt(e){return"string"==typeof e}function vt(e){return"number"==typeof e}function bt(e,t){return void 0!==e&&t(e)?e:void 0}function xt(e,t){return void 0!==e&&t(e)?e:Fn.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Fn.getFunctionName(t)}'.`)}function St(e){}function kt(){return!1}function Tt(){return!0}function Ct(){}function wt(e){return e}function Et(e){return e.toLowerCase()}function Dt(e){return d.test(e)?e.replace(d,Et):e}function Nt(){throw new Error("Not implemented")}function At(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Pt(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}function Ft(e){const t=new WeakMap;return n=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(n),t.set(n,r)),r}}function It(e,t){return(...n)=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(...n),t.set(n,r)),r}}function Ot(e,t,n,r,i){if(i){const e=[];for(let t=0;tqe(e,((e,t)=>t(e)),t)}return r?i=>r(n(t(e(i)))):n?r=>n(t(e(r))):t?n=>t(e(n)):e?t=>e(t):e=>e}function Mt(e,t){return e===t}function Lt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function Rt(e,t){return Mt(e,t)}function jt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e-1===t(e,n)?e:n))}function $t(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Vt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Kt(e,t){return jt(e,t)}function Ut(e){return e?$t:Kt}function qt(){return g}function Wt(e){g!==e&&(g=e,m=void 0)}function Ht(e,t){return(m||(m=p(g)))(e,t)}function Gt(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Xt(e,t){return Bt(e?1:0,t?1:0)}function Yt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=Qt(e,t,o-.1);if(void 0===n)continue;Fn.assert(nn?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let u=a;for(let e=1;en)return;const _=r;r=i,i=_}const a=r[t.length];return a>n?void 0:a}function Zt(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function en(e,t){return Zt(e,t)?e.slice(0,e.length-t.length):e}function tn(e,t){return Zt(e,t)?e.slice(0,e.length-t.length):void 0}function nn(e,t){return-1!==e.indexOf(t)}function rn(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function on(e,t){for(let n=0;ni&&(i=e.prefix.length,r=o)}return r}function fn(e,t){return 0===e.lastIndexOf(t,0)}function pn(e,t){return fn(e,t)?e.substr(t.length):e}function mn(e,t,n=wt){return fn(n(e),n(t))?e.substring(t.length):void 0}function gn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&fn(n,e)&&Zt(n,t)}function hn(e,t){return n=>e(n)&&t(n)}function yn(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function vn(e){return(...t)=>!e(...t)}function bn(e){}function xn(e){return void 0===e?void 0:[e]}function Sn(e,t,n,r,i,o){o=o||St;let a=0,s=0;const c=e.length,l=t.length;let u=!1;for(;a=0&&hs(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function An(){return void 0!==i&&!!i.nextTick&&!i.browser&&!0}var Pn,Fn,In,On,Mn,Ln,Rn,jn,Bn,Jn,zn,$n,Vn,Kn,Un,qn,Wn=S({"src/compiler/core.ts"(){gH(),a=[],s=new Map,c=new Set,l=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(l||{}),u=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(e&&(t=Ce(e,t))(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(f||{}),p=(()=>{let e,t;const n="object"==typeof Intl&&"function"==typeof Intl.Collator?i:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?o:a;return function(r){return void 0===r?e||(e=n(r)):"en-US"===r?t||(t=n(r)):n(r)};function r(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}function i(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,n)=>r(e,n,t)}function o(e){return void 0!==e?a():(e,n)=>r(e,n,t);function t(e,t){return e.localeCompare(t)}}function a(){return(t,n)=>r(t,n,e);function e(e,n){return t(e.toUpperCase(),n.toUpperCase())||t(e,n)}function t(e,t){return et?1:0}}})(),h=String.prototype.trim?e=>e.trim():e=>y(v(e)),y=String.prototype.trimEnd?e=>e.trimEnd():Nn,v=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),Hn=S({"src/compiler/debug.ts"(){gH(),gH(),Pn=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(Pn||{}),(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=St,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function u(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||u))}function _(e,t,n){null==e&&l(t,n||_)}function d(e,t,n){for(const r of e)_(r,t,n||d)}function f(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&We(e,"kind")&&We(e,"pos")?"SyntaxKind: "+h(e.kind):JSON.stringify(e)}`,n||f)}function p(e){if("function"!=typeof e)return"";if(We(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function m(e=0,t,n){const r=function(e){const t=g.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=Fe(n,((e,t)=>Bt(e[0],t[0])));return g.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Ge(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${h(t.kind)} was unexpected.`,r||e)},e.assert=u,e.assertEqual=function e(t,n,r,i,o){t!==n&&l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t= ${n}`,r||e)},e.assertIsDefined=_,e.checkDefined=function e(t,n,r){return _(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=f,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&u(void 0===n||I(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${p(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&u(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${p(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&u(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${h(t.kind)} should not have passed test '${p(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&u(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} did not pass test '${p(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&u(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${h(null==t?void 0:t.kind)} was not a '${h(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&u(void 0===t,n||"Unexpected node.",(()=>`Node ${h(t.kind)} was unexpected'.`),r||e)},e.type=function(e){},e.getFunctionName=p,e.formatSymbol=function(e){return`{ name: ${Fc(e.escapedName)}; flags: ${S(e.flags)}; declarations: ${q(e.declarations,(e=>h(e.kind)))} }`},e.formatEnum=m;const g=new Map;function h(e){return m(e,Vr,!1)}function y(e){return m(e,Kr,!0)}function v(e){return m(e,Ur,!0)}function b(e){return m(e,Xi,!0)}function x(e){return m(e,Qi,!0)}function S(e){return m(e,pi,!0)}function k(e){return m(e,vi,!0)}function T(e){return m(e,Ei,!0)}function C(e){return m(e,bi,!0)}function w(e){return m(e,Xr,!0)}e.formatSyntaxKind=h,e.formatSnippetKind=function(e){return m(e,Yi,!1)},e.formatScriptKind=function(e){return m(e,Ki,!1)},e.formatNodeFlags=y,e.formatModifierFlags=v,e.formatTransformFlags=b,e.formatEmitFlags=x,e.formatSymbolFlags=S,e.formatTypeFlags=k,e.formatSignatureFlags=T,e.formatObjectFlags=C,e.formatFlowFlags=w,e.formatRelationComparisonResult=function(e){return m(e,Wr,!0)},e.formatCheckMode=function(e){return m(e,_B,!0)},e.formatSignatureCheckMode=function(e){return m(e,dB,!0)},e.formatTypeFacts=function(e){return m(e,lB,!0)};let E,D,N=!1;function A(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${w(t)})`:""}`}},__debugFlowFlags:{get(){return m(this.flags,Xr,!0)}},__debugToString:{value(){return M(this)}}})}function F(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){N&&("function"==typeof Object.setPrototypeOf?(E||(E=Object.create(Object.prototype),A(E)),Object.setPrototypeOf(e,E)):A(e))},e.attachNodeArrayDebugInfo=function(e){N&&("function"==typeof Object.setPrototypeOf?(D||(D=Object.create(Array.prototype),F(D)),Object.setPrototypeOf(e,D)):F(e))},e.enableDebugInfo=function(){if(N)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Id.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${Mc(this)}'${t?` (${S(t)})`:""}`}},__debugFlags:{get(){return S(this.flags)}}}),Object.defineProperties(Id.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?`IntrinsicType ${this.intrinsicName}`:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${Mc(this.symbol)}'`:""}${t?` (${C(t)})`:""}`}},__debugFlags:{get(){return k(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?C(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Id.getSignatureConstructor().prototype,{__debugFlags:{get(){return T(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Id.getNodeConstructor(),Id.getIdentifierConstructor(),Id.getTokenConstructor(),Id.getSourceFileConstructor()];for(const e of n)We(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${_u(this)?"GeneratedIdentifier":qE(this)?`Identifier '${Ic(this)}'`:WE(this)?`PrivateIdentifier '${Ic(this)}'`:NE(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:EE(this)?`NumericLiteral ${this.text}`:DE(this)?`BigIntLiteral ${this.text}n`:lD(this)?"TypeParameterDeclaration":uD(this)?"ParameterDeclaration":hD(this)?"ConstructorDeclaration":yD(this)?"GetAccessorDeclaration":vD(this)?"SetAccessorDeclaration":bD(this)?"CallSignatureDeclaration":xD(this)?"ConstructSignatureDeclaration":SD(this)?"IndexSignatureDeclaration":kD(this)?"TypePredicateNode":TD(this)?"TypeReferenceNode":CD(this)?"FunctionTypeNode":wD(this)?"ConstructorTypeNode":ED(this)?"TypeQueryNode":DD(this)?"TypeLiteralNode":ND(this)?"ArrayTypeNode":AD(this)?"TupleTypeNode":FD(this)?"OptionalTypeNode":ID(this)?"RestTypeNode":OD(this)?"UnionTypeNode":MD(this)?"IntersectionTypeNode":LD(this)?"ConditionalTypeNode":RD(this)?"InferTypeNode":jD(this)?"ParenthesizedTypeNode":BD(this)?"ThisTypeNode":JD(this)?"TypeOperatorNode":zD(this)?"IndexedAccessTypeNode":$D(this)?"MappedTypeNode":VD(this)?"LiteralTypeNode":PD(this)?"NamedTupleMember":KD(this)?"ImportTypeNode":h(this.kind)}${this.flags?` (${y(this.flags)})`:""}`}},__debugKind:{get(){return h(this.kind)}},__debugNodeFlags:{get(){return y(this.flags)}},__debugModifierFlags:{get(){return v(Mb(this))}},__debugTransformFlags:{get(){return b(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Nc(this)}},__debugEmitFlags:{get(){return x(cp(this))}},__debugGetText:{value(e){if(tv(this))return"";let n=t.get(this);if(void 0===n){const r=Ac(this),i=r&&Ff(r);n=i?np(i,r,e):"",t.set(this,n)}return n}}});N=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class O{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return P(this.sources,this.targets||q(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return P(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return f(this)}}}function M(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=Object.create(null),c=[],l=[],u=p(e,new Set);for(const e of c)e.text=y(e.flowNode,e.circular),g(e);const _=function(e){const t=b(Array(e),0);for(const e of c)t[e.level]=Math.max(t[e.level],e.text.length);return t}(function e(t){let n=0;for(const r of d(t))n=Math.max(n,e(r));return n+1}(u));return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=d(t);for(let i=0;i0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(u,0),function(){const e=_.length,t=c.reduce(((e,t)=>Math.max(e,t.lane)),0)+1,n=b(Array(t),""),r=_.map((()=>Array(t))),i=_.map((()=>b(Array(t),0)));for(const e of c){r[e.level][e.lane]=e;const t=d(e);for(let n=0;n0&&(o|=1),n0&&(o|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t0?e.repeat(t):"";let n="";for(;n.length=",r.version)),er(i.major)||n.push(er(i.minor)?tr("<",i.version.increment("major")):er(i.patch)?tr("<",i.version.increment("minor")):tr("<=",i.version)),!0)}function Zn(e,t,n){const r=Yn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(er(o))"<"!==e&&">"!==e||n.push(tr("<",Jn.zero));else switch(e){case"~":n.push(tr(">=",i)),n.push(tr("<",i.increment(er(a)?"major":"minor")));break;case"^":n.push(tr(">=",i)),n.push(tr("<",i.increment(i.major>0||er(a)?"major":i.minor>0||er(s)?"minor":"patch")));break;case"<":case">=":n.push(er(a)||er(s)?tr(e,i.with({prerelease:"0"})):tr(e,i));break;case"<=":case">":n.push(er(a)?tr("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):er(s)?tr("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):tr(e,i));break;case"=":case void 0:er(a)||er(s)?(n.push(tr(">=",i.with({prerelease:"0"}))),n.push(tr("<",i.increment(er(a)?"major":"minor").with({prerelease:"0"})))):n.push(tr("=",i));break;default:return!1}return!0}function er(e){return"*"===e||"x"===e||"X"===e}function tr(e,t){return{operator:e,operand:t}}function nr(e,t){for(const n of t)if(!rr(e,n.operator,n.operand))return!1;return!0}function rr(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return Fn.assertNever(t)}}function ir(e){return q(e,or).join(" ")}function or(e){return`${e.operator}${e.operand}`}var ar,sr,cr,lr=S({"src/compiler/semver.ts"(){gH(),In=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,On=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Mn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Ln=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Rn=/^[a-z0-9-]+$/i,jn=/^(0|[1-9]\d*)$/,(Bn=class e{constructor(e,t=0,n=0,r="",i=""){if("string"==typeof e){const o=Fn.checkDefined(Gn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:r,build:i}=o)}Fn.assert(e>=0,"Invalid argument: major"),Fn.assert(t>=0,"Invalid argument: minor"),Fn.assert(n>=0,"Invalid argument: patch");const o=r?gt(r)?r:r.split("."):a,s=i?gt(i)?i:i.split("."):a;Fn.assert(I(o,(e=>Mn.test(e))),"Invalid argument: prerelease"),Fn.assert(I(s,(e=>Rn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=o,this.build=s}static tryParse(t){const n=Gn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:Bt(this.major,e.major)||Bt(this.minor,e.minor)||Bt(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function ur(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}function _r(){return ar}var dr,fr,pr,mr,gr,hr,yr,vr,br,xr,Sr=S({"src/compiler/performanceCore.ts"(){gH(),ar=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&ur(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(An())try{const{performance:e,PerformanceObserver:t}=n(651);if(ur(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}(),sr=null==ar?void 0:ar.performance,cr=sr?()=>sr.now():Date.now?Date.now:()=>+new Date}}),kr=S({"src/compiler/perfLogger.ts"(){try{const e=i.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";dr=n(8911)(e)}catch(e){dr=void 0}fr=(null==dr?void 0:dr.logEvent)?dr:void 0}});function Tr(e,t,n,r){return e?Cr(t,n,r):gr}function Cr(e,t,n){let r=0;return{enter:function(){1==++r&&wr(t)},exit:function(){0==--r?(wr(n),Er(e,t,n)):r<0&&Fn.fail("enter/exit count does not match.")}}}function wr(e){if(hr){const t=br.get(e)??0;br.set(e,t+1),vr.set(e,cr()),null==mr||mr.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function Er(e,t,n){if(hr){const r=(void 0!==n?vr.get(n):void 0)??cr(),i=(void 0!==t?vr.get(t):void 0)??yr,o=xr.get(e)||0;xr.set(e,o+(r-i)),null==mr||mr.measure(e,t,n)}}function Dr(e){return br.get(e)||0}function Nr(e){return xr.get(e)||0}function Ar(e){xr.forEach(((t,n)=>e(n,t)))}function Pr(e){vr.forEach(((t,n)=>e(n)))}function Fr(e){void 0!==e?xr.delete(e):xr.clear(),null==mr||mr.clearMeasures(e)}function Ir(e){void 0!==e?(br.delete(e),vr.delete(e)):(br.clear(),vr.clear()),null==mr||mr.clearMarks(e)}function Or(){return hr}function Mr(e=xo){var t;return hr||(hr=!0,pr||(pr=_r()),pr&&(yr=pr.performance.timeOrigin,(pr.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(mr=pr.performance))),!0}function Lr(){hr&&(vr.clear(),br.clear(),xr.clear(),mr=void 0,hr=!1)}var Rr=S({"src/compiler/performance.ts"(){gH(),gr={enter:St,exit:St},hr=!1,yr=cr(),vr=new Map,br=new Map,xr=new Map}}),jr={};k(jr,{clearMarks:()=>Ir,clearMeasures:()=>Fr,createTimer:()=>Cr,createTimerIf:()=>Tr,disable:()=>Lr,enable:()=>Mr,forEachMark:()=>Pr,forEachMeasure:()=>Ar,getCount:()=>Dr,getDuration:()=>Nr,isEnabled:()=>Or,mark:()=>wr,measure:()=>Er,nullTimer:()=>gr});var Br,Jr,zr,$r,Vr,Kr,Ur,qr,Wr,Hr,Gr,Xr,Yr,Qr,Zr,ei,ti,ni,ri,ii,oi,ai,si,ci,li,ui,_i,di,fi,pi,mi,gi,hi,yi,vi,bi,xi,Si,ki,Ti,Ci,wi,Ei,Di,Ni,Ai,Pi,Fi,Ii,Oi,Mi,Li,Ri,ji,Bi,Ji,zi,$i,Vi,Ki,Ui,qi,Wi,Hi,Gi,Xi,Yi,Qi,Zi,eo,to,no,ro,io,oo,ao,so,co=S({"src/compiler/_namespaces/ts.performance.ts"(){Rr()}}),lo=S({"src/compiler/tracing.ts"(){gH(),co(),(e=>{let t,r,o=0,a=0;const s=[];let c;const l=[];let u;var _;e.startTracing=function(u,_,d){if(Fn.assert(!Br,"Tracing already started"),void 0===t)try{t=n(651)}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}r=u,s.length=0,void 0===c&&(c=fa(_,"legend.json")),t.existsSync(_)||t.mkdirSync(_,{recursive:!0});const f="build"===r?`.${i.pid}-${++o}`:"server"===r?`.${i.pid}`:"",p=fa(_,`trace${f}.json`),m=fa(_,`types${f}.json`);l.push({configFilePath:d,tracePath:p,typesPath:m}),a=t.openSync(p,"w"),Br=e;const g={cat:"__metadata",ph:"M",ts:1e3*cr(),pid:1,tid:1};t.writeSync(a,"[\n"+[{name:"process_name",args:{name:"tsc"},...g},{name:"thread_name",args:{name:"Main"},...g},{name:"TracingStartedInBrowser",...g,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){Fn.assert(Br,"Tracing is not in progress"),Fn.assert(!!s.length==("server"!==r)),t.writeSync(a,"\n]\n"),t.closeSync(a),Br=void 0,s.length?function(e){var n,r,i,o,a,s,c,u,_,d,f,p,g,h,y,v,b,x,S;wr("beginDumpTypes");const k=l[l.length-1].typesPath,T=t.openSync(k,"w"),C=new Map;t.writeSync(T,"[");const w=e.length;for(let l=0;le.id)),referenceLocation:m(e.node)}}let F={};if(16777216&k.flags){const e=k;F={conditionalCheckType:null==(s=e.checkType)?void 0:s.id,conditionalExtendsType:null==(c=e.extendsType)?void 0:c.id,conditionalTrueType:(null==(u=e.resolvedTrueType)?void 0:u.id)??-1,conditionalFalseType:(null==(_=e.resolvedFalseType)?void 0:_.id)??-1}}let I={};if(33554432&k.flags){const e=k;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(f=e.constraint)?void 0:f.id}}let O={};if(1024&E){const e=k;O={reverseMappedSourceType:null==(p=e.source)?void 0:p.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let M,L={};if(256&E){const e=k;L={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const R=k.checker.getRecursionIdentity(k);R&&(M=C.get(R),M||(M=C.size,C.set(R,M)));const j={id:k.id,intrinsicName:k.intrinsicName,symbolName:(null==D?void 0:D.escapedName)&&Fc(D.escapedName),recursionId:M,isTuple:!!(8&E)||void 0,unionTypes:1048576&k.flags?null==(v=k.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&k.flags?k.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=k.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&k.flags?null==(x=k.type)?void 0:x.id:void 0,...A,...P,...F,...I,...O,...L,destructuringPattern:m(k.pattern),firstDeclaration:m(null==(S=null==D?void 0:D.declarations)?void 0:S[0]),flags:Fn.formatTypeFlags(k.flags).split("|"),display:N};t.writeSync(T,JSON.stringify(j)),l0),f(d.length-1,1e3*cr(),e),d.length--},e.popAll=function(){const e=1e3*cr();for(let t=d.length-1;t>=0;t--)f(t,e);d.length=0},e.dumpLegend=function(){c&&t.writeFileSync(c,JSON.stringify(l))}})(Jr||(Jr={})),zr=Jr.startTracing,$r=Jr.dumpLegend}});function uo(e,t=!0){const n=Oi[e.category];return t?n.toLowerCase():n}var _o,fo,po,mo,go,ho,yo,vo,bo,xo,So=S({"src/compiler/types.ts"(){Vr=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Vr||{}),Kr=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Kr||{}),Ur=(e=>(e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Accessor=128]="Accessor",e[e.Abstract=256]="Abstract",e[e.Async=512]="Async",e[e.Default=1024]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.Override=16384]="Override",e[e.In=32768]="In",e[e.Out=65536]="Out",e[e.Decorator=131072]="Decorator",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=16476]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=117086]="TypeScriptModifier",e[e.ExportDefault=1025]="ExportDefault",e[e.All=258047]="All",e[e.Modifier=126975]="Modifier",e))(Ur||{}),qr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(qr||{}),Wr=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Wr||{}),Hr=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(Hr||{}),Gr=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Gr||{}),Xr=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Xr||{}),Yr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Yr||{}),Qr=class{},Zr=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(Zr||{}),ei=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(ei||{}),ti=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(ti||{}),ni=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(ni||{}),ri=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(ri||{}),ii=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(ii||{}),oi=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(oi||{}),ai=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(ai||{}),si=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(si||{}),ci=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(ci||{}),li=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(li||{}),ui=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(ui||{}),_i=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(_i||{}),di=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(di||{}),fi=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(fi||{}),pi=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(pi||{}),mi=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(mi||{}),gi=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(gi||{}),hi=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(hi||{}),yi=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(yi||{}),vi=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=138117121]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(vi||{}),bi=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(bi||{}),xi=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(xi||{}),Si=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Si||{}),ki=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(ki||{}),Ti=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Ti||{}),Ci=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Ci||{}),wi=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(wi||{}),Ei=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(Ei||{}),Di=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Di||{}),Ni=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(Ni||{}),Ai=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Ai||{}),Pi=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Pi||{}),Fi=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Fi||{}),Ii=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(Ii||{}),Oi=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Oi||{}),Mi=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Mi||{}),Li=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Li||{}),Ri=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Ri||{}),ji=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(ji||{}),Bi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Bi||{}),Ji=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(Ji||{}),zi=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(zi||{}),$i=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))($i||{}),Vi=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Vi||{}),Ki=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(Ki||{}),Ui=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Ui||{}),qi=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(qi||{}),Wi=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Wi||{}),Hi=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(Hi||{}),Gi=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Gi||{}),Xi=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(Xi||{}),Yi=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(Yi||{}),Qi=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(Qi||{}),Zi=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(Zi||{}),eo=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(eo||{}),to=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(to||{}),no=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(no||{}),ro=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(ro||{}),io=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(io||{}),oo=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(oo||{}),ao=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(ao||{}),so={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}});function ko(e){let t=5381;for(let n=0;n{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&on(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),LV(t))}}}function No(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,Ao(n,r),t),!0)}function Ao(e,t){return 0===e?0:0===t?2:1}function Po(e){return vo(e)}function Fo(e){vo=e}function Io({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:o,setTimeout:s,clearTimeout:c}){const l=new Map,u=_t(),_=new Map;let d;const f=Ut(!t),p=ln(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,r){const o=p(t);let f=l.get(o);f?f.refCount++:(f={watcher:e(t,(e=>{b(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?(g(o,e),v(t,o,n)):function(e,t,n,r){const o=l.get(t);o&&i(e,1)?function(e,t,n,r){const i=_.get(t);i?i.fileNames.push(n):_.set(t,{dirName:e,options:r,fileNames:[n]}),d&&(c(d),d=void 0),d=s(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r):(g(t,n),y(o))}(t,o,e,n))}),!1,n),refCount:1,childWatches:a},l.set(o,f),v(t,o,n));const m=r&&{dirName:t,callback:r};return m&&u.add(o,m),{dirName:t,close:()=>{const e=Fn.checkDefined(l.get(o));m&&u.remove(o,m),e.refCount--,e.refCount||(l.delete(o),LV(e),e.childWatches.forEach(zx))}}}function g(e,t,n){let r,i;yt(t)?r=t:i=t,u.forEach(((t,o)=>{if((!i||!0!==i.get(o))&&(o===e||fn(e,o)&&e[o.length]===Bo))if(i)if(n){const e=i.get(o);e?e.push(...n):i.set(o,n.slice())}else i.set(o,!0);else t.forEach((({callback:e})=>e(r)))}))}function h(){d=void 0,Po(`sysLog:: onTimerToUpdateChildWatches:: ${_.size}`);const e=cr(),t=new Map;for(;!d&&_.size;){const e=_.entries().next();Fn.assert(!e.done);const{value:[n,{dirName:r,options:i,fileNames:o}]}=e;_.delete(n);const a=v(r,n,i);g(n,t,a?void 0:o)}Po(`sysLog:: invokingWatchers:: Elapsed:: ${cr()-e}ms:: ${_.size}`),u.forEach(((e,n)=>{const r=t.get(n);r&&e.forEach((({callback:e,dirName:t})=>{gt(r)?r.forEach(e):e(t)}))})),Po(`sysLog:: Elapsed:: ${cr()-e}ms:: onTimerToUpdateChildWatches:: ${_.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=a;for(const e of t)e.close(),y(l.get(p(e.dirName)))}function v(e,t,n){const s=l.get(t);if(!s)return!1;let c;const u=Sn(i(e,1)?te(r(e),(t=>{const r=ga(t,e);return b(r,n)||0!==f(r,ha(o(r)))?void 0:r})):a,s.childWatches,((e,t)=>f(e,t.dirName)),(function(e){_(m(e,n))}),zx,_);return s.childWatches=c||a,u;function _(e){(c||(c=[])).push(e)}}function b(e,r){return le(yo,(n=>function(e,n){return!!nn(e,n)||!t&&nn(p(e),n)}(e,n)))||Oo(e,r,t,n)}}function Oo(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(dL(e,null==t?void 0:t.excludeFiles,n,r())||dL(e,null==t?void 0:t.excludeDirectories,n,r()))}function Mo(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?ha(fa(e,a)):e;a&&Oo(o,n,r,i)||t(o)}}}function Lo({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:u,tscWatchFile:_,useNonPollingWatchers:d,tscWatchDirectory:f,inodeWatching:p,sysLog:m}){const g=new Map,h=new Map,y=new Map;let v,b,x,S,k=!1;return{watchFile:T,watchDirectory:function(e,t,i,_){return c?A(e,1,Mo(e,t,_,a,s),i,500,MV(_)):(S||(S=Io({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:D,realpath:u,setTimeout:n,clearTimeout:r})),S(e,t,i,_))}};function T(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(_){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return E(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return E(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?E(5,1,e):{watchFile:4}}}(i,d);const o=Fn.checkDefined(i.watchFile);switch(o){case 0:return N(e,n,250,void 0);case 1:return N(e,n,r,void 0);case 2:return C()(e,n,r,void 0);case 3:return w()(e,n,void 0,void 0);case 4:return A(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||po),t(e,o!==po?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,MV(i));case 5:return x||(x=function(e,t){const n=_t(),r=new Map,i=ln(t);return function(t,o,a,s){const c=i(t);n.add(c,o);const l=oa(c)||".",u=r.get(l)||function(t,o,a){const s=e(t,1,((e,r,o)=>{if(!yt(r))return;const a=ga(r,t),s=a&&n.get(i(a));if(s)for(const e of s)e(a,1,o)}),!1,500,a);return s.referenceCount=0,r.set(o,s),s}(oa(t)||".",l,s);return u.referenceCount++,{close:()=>{1===u.referenceCount?(u.close(),r.delete(l)):u.referenceCount--,n.remove(c,o)}}}}(A,a)),x(e,n,r,MV(i));default:Fn.assertNever(o)}}function C(){return v||(v=function(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:Co(e,n)};return t.push(o),_(o,i),{close:()=>{o.isClosed=!0,cn(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,go[t.pollingInterval]),t.length?f(t.pollingInterval):(Fn.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&f(250)}function l(t,r,i,o){return Eo(e,t,i,o,(function(e,i,o){var a;o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==ho[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,_(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,_(e,250===r?500:2e3))}))}function u(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function _(e,t){u(t).push(e),d(t)}function d(e){u(e).pollScheduled||f(e)}function f(t){u(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",u(t))}}({getModifiedTime:t,setTimeout:n}))}function w(){return b||(b=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:Co(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,cn(t,i)}}};function i(){n=void 0,r=Eo(e,t,r,go[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function E(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function D(e,t,n,r){Fn.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(f){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=Fn.checkDefined(i.watchDirectory);switch(o){case 1:return N(e,(()=>t(e)),500,void 0);case 2:return C()(e,(()=>t(e)),500,void 0);case 3:return w()(e,(()=>t(e)),void 0,void 0);case 0:return A(e,1,Mo(e,t,r,a,s),n,500,MV(i));default:Fn.assertNever(o)}}function N(t,n,r,i){return Do(g,a,t,n,(n=>e(t,n,r,i)))}function A(e,n,r,s,c,l){return Do(s?y:h,a,e,r,(r=>function(e,n,r,a,s,c){let l,u;p&&(l=e.substring(e.lastIndexOf(Bo)),u=l.slice(Bo.length));let _=o(e,n)?f():y();return{close:()=>{_&&(_.close(),_=void 0)}};function d(t){_&&(m(`sysLog:: ${e}:: Changing watcher to ${t===f?"Present":"Missing"}FileSystemEntryWatcher`),_.close(),_=t())}function f(){if(k)return m(`sysLog:: ${e}:: Defaulting to watchFile`),h();try{const t=i(e,a,p?g:r);return t.on("error",(()=>{r("rename",""),d(y)})),t}catch(t){return k||(k="ENOSPC"===t.code),m(`sysLog:: ${e}:: Changing to watchFile`),h()}}function g(n,i){let o;if(i&&Zt(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==u&&!Zt(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||po;o&&r(n,o,a),r(n,i,a),p?d(a===po?y:f):a===po&&d(y)}}function h(){return T(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function y(){return T(e,((n,i,o)=>{0===i&&(o||(o=t(e)||po),o!==po&&(r("rename","",o),d(f)))}),s,c)}}(e,n,r,s,c,l)))}}function Ro(e){const t=e.writeFile;e.writeFile=(n,r,i)=>Kv(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}function jo(e){xo=e}var Bo,Jo,zo,$o,Vo,Ko=S({"src/compiler/sys.ts"(){gH(),_o=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(_o||{}),fo=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(fo||{}),po=new Date(0),go=wo(mo={Low:32,Medium:64,High:256}),ho=wo(mo),yo=["/node_modules/.","/.git","/.#"],vo=St,bo=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(bo||{}),(xo=(()=>{let e;return An()&&(e=function(){const e=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=n(651),o=n(1586),a=n(1551);let s,c;try{s=n(1199)}catch{s=void 0}let l="./profile.cpuprofile";const u=n(2427).Buffer,_="linux"===i.platform||"darwin"===i.platform,d=a.platform(),f="win32"!==d&&"win64"!==d&&!E((x=r,x.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),p=t.realpathSync.native?"win32"===i.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,m=r.endsWith("sys.js")?o.join(o.dirname("/"),"__fake__.js"):r,g="win32"===i.platform||"darwin"===i.platform,h=At((()=>i.cwd())),{watchFile:y,watchDirectory:v}=Lo({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:N,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,g?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:f,getCurrentDirectory:h,fileSystemEntryExists:w,fsSupportsRecursiveFsWatch:g,getAccessibleSortedChildDirectories:e=>C(e).directories,realpath:D,tscWatchFile:i.env.TSC_WATCHFILE,useNonPollingWatchers:!!i.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:i.env.TSC_WATCHDIRECTORY,inodeWatching:_,sysLog:Po}),b={args:i.argv.slice(2),newLine:a.EOL,useCaseSensitiveFileNames:f,write(e){i.stdout.write(e)},getWidthOfTerminal:()=>i.stdout.columns,writeOutputIsTTY:()=>i.stdout.isTTY,readFile:function(e,n){var r,i;null==(r=fr)||r.logStartReadFile(e);const o=function(e,n){let r;try{r=t.readFileSync(e)}catch(e){return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(e);return null==(i=fr)||i.logStopReadFile(),o},writeFile:function(e,n,r){var i;let o;null==(i=fr)||i.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{o=t.openSync(e,"w"),t.writeSync(o,n,void 0,"utf8")}finally{void 0!==o&&t.closeSync(o)}},watchFile:y,watchDirectory:v,resolvePath:e=>o.resolve(e),fileExists:E,directoryExists:function(e){return w(e,1)},createDirectory(e){if(!b.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>m,getCurrentDirectory:h,getDirectories:function(e){return C(e).directories.slice()},getEnvironmentVariable:e=>i.env[e]||"",readDirectory:function(e,t,n,r,o){return Jk(e,t,n,r,f,i.cwd(),o,C,D)},getModifiedTime:N,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(e){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(e){return}},createHash:s?A:ko,createSHA256Hash:s?A:void 0,getMemoryUsage:()=>(n.g.gc&&n.g.gc(),i.memoryUsage().heapUsed),getFileSize(e){try{const t=S(e);if(null==t?void 0:t.isFile())return t.size}catch{}return 0},exit(e){k((()=>i.exit(e)))},enableCPUProfiler:function(e,t){if(c)return t(),!1;const r=n(651);if(!r||!r.Session)return t(),!1;const i=new r.Session;return i.connect(),i.post("Profiler.enable",(()=>{i.post("Profiler.start",(()=>{c=i,l=e,t()}))})),!0},disableCPUProfiler:k,cpuProfilingEnabled:()=>!!c||B(i.execArgv,"--cpu-prof")||B(i.execArgv,"--prof"),realpath:D,debugMode:!!i.env.NODE_INSPECTOR_IPC||!!i.env.VSCODE_INSPECTOR_OPTIONS||le(i.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)))||!!i.recordreplay,tryEnableSourceMapsForHost(){try{n(1744).install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{i.stdout.write("c")},setBlocking:()=>{var e;const t=null==(e=i.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},bufferFrom:T,base64decode:e=>T(e,"base64").toString("utf8"),base64encode:e=>T(e).toString("base64"),require:(e,t)=>{try{const r=pR(t,e,b);return{module:n(8911)(r),modulePath:r,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var x;return b;function S(e){return t.statSync(e,{throwIfNoEntry:!1})}function k(n){if(c&&"stopping"!==c){const r=c;return c.post("Profiler.stop",((a,{profile:s})=>{var u;if(!a){try{(null==(u=S(l))?void 0:u.isDirectory())&&(l=o.join(l,`${(new Date).toISOString().replace(/:/g,"-")}+P${i.pid}.cpuprofile`))}catch{}try{t.mkdirSync(o.dirname(l),{recursive:!0})}catch{}t.writeFileSync(l,JSON.stringify(function(t){let n=0;const r=new Map,i=_a(o.dirname(m)),a=`file://${1===ia(i)?"":"/"}${i}`;for(const i of t.nodes)if(i.callFrame.url){const t=_a(i.callFrame.url);Da(a,t,f)?i.callFrame.url=Oa(a,t,a,ln(f),!0):e.test(t)||(i.callFrame.url=(r.has(t)?r:r.set(t,`external${n}.js`)).get(t),n++)}return t}(s)))}c=void 0,r.disconnect(),n()})),c="stopping",!0}return n(),!1}function T(e,t){return u.from&&u.from!==Int8Array.from?u.from(e,t):new u(e,t)}function C(e){var n;null==(n=fr)||n.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){const t=fa(e,n);try{if(o=S(t),!o)continue}catch(e){continue}}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch(e){return rf}}function w(e,t){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const r=S(e);if(!r)return!1;switch(t){case 0:return r.isFile();case 1:return r.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=n}}function E(e){return w(e,0)}function D(e){try{return p(e)}catch{return e}}function N(e){var t;const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=S(e))?void 0:t.mtime}catch(e){return}finally{Error.stackTraceLimit=n}}function A(e){const t=s.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&Ro(e),e})())&&xo.getEnvironmentVariable&&(function(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,fo);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&wo(i?{...r,...i}:r)}go=r("TSC_WATCH_POLLINGCHUNKSIZE",mo)||go,ho=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",mo)||ho}(xo),Fn.setAssertionLevel(/^development$/i.test(xo.getEnvironmentVariable("NODE_ENV"))?1:0)),xo&&xo.debugMode&&(Fn.isDebugging=!0)}});function Uo(e){return 47===e||92===e}function qo(e){return ra(e)<0}function Wo(e){return ra(e)>0}function Ho(e){const t=ra(e);return t>0&&t===e.length}function Go(e){return 0!==ra(e)}function Xo(e){return/^\.\.?($|[\\/])/.test(e)}function Yo(e){return!Go(e)&&!Xo(e)}function Qo(e){return nn(aa(e),".")}function Zo(e,t){return e.length>t.length&&Zt(e,t)}function ea(e,t){for(const n of t)if(Zo(e,n))return!0;return!1}function ta(e){return e.length>0&&Uo(e.charCodeAt(e.length-1))}function na(e){return e>=97&&e<=122||e>=65&&e<=90}function ra(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?Bo:Jo,2);return n<0?e.length:n+1}if(na(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(zo);if(-1!==n){const t=n+zo.length,r=e.indexOf(Bo,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&na(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function ia(e){const t=ra(e);return t<0?~t:t}function oa(e){const t=ia(e=_a(e));return t===e.length?e:(e=ba(e)).slice(0,Math.max(t,e.lastIndexOf(Bo)))}function aa(e,t,n){if(ia(e=_a(e))===e.length)return"";const r=(e=ba(e)).slice(Math.max(ia(e),e.lastIndexOf(Bo)+1)),i=void 0!==t&&void 0!==n?ca(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function sa(e,t,n){if(fn(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function ca(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return sa(e,t,n)||"";for(const r of t){const t=sa(e,r,n);if(t)return t}return""}(ba(e),t,n?Lt:Rt);const r=aa(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function la(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(Bo);return r.length&&!je(r)&&r.pop(),[n,...r]}(e=fa(t,e),ia(e))}function ua(e,t){return 0===e.length?"":(e[0]&&xa(e[0]))+e.slice(1,t).join(Bo)}function _a(e){return-1!==e.indexOf("\\")?e.replace($o,Bo):e}function da(e){if(!le(e))return[];const t=[e[0]];for(let n=1;n1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function fa(e,...t){e&&(e=_a(e));for(let n of t)n&&(n=_a(n),e=e&&0===ia(n)?xa(e)+n:n);return e}function pa(e,...t){return ha(le(t)?fa(e,...t):_a(e))}function ma(e,t){return da(la(e,t))}function ga(e,t){return ua(ma(e,t))}function ha(e){if(e=_a(e),!Vo.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Vo.test(e)))return e;const n=ua(da(la(e)));return n&&ta(e)?xa(n):n}function ya(e,t){return 0===(n=ma(e,t)).length?"":n.slice(1).join(Bo);var n}function va(e,t,n){return n(Wo(e)?ha(e):ga(e,t))}function ba(e){return ta(e)?e.substr(0,e.length-1):e}function xa(e){return ta(e)?e:e+Bo}function Sa(e){return Go(e)||Xo(e)?e:"./"+e}function ka(e,t,n,r){const i=void 0!==n&&void 0!==r?ca(e,n,r):ca(e);return i?e.slice(0,e.length-i.length)+(fn(t,".")?t:"."+t):e}function Ta(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,ia(e)),i=t.substring(0,ia(t)),o=$t(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Vo.test(a)&&!Vo.test(s))return n(a,s);const c=da(la(e)),l=da(la(t)),u=Math.min(c.length,l.length);for(let e=1;e0==ia(t)>0,"Paths must either both be absolute or both be relative"),ua(Aa(e,t,"boolean"==typeof n&&n?Lt:Rt,"function"==typeof n?n:wt))}function Fa(e,t,n){return Wo(e)?Oa(t,e,t,n,!1):e}function Ia(e,t,n){return Sa(Pa(oa(e),t,n))}function Oa(e,t,n,r,i){const o=Aa(pa(n,e),pa(n,t),Rt,r),a=o[0];if(i&&Wo(a)){const e=a.charAt(0)===Bo?"file://":"file:///";o[0]=e+a}return ua(o)}function Ma(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=oa(e);if(r===e)return;e=r}}function La(e){return Zt(e,"/node_modules")}var Ra,ja=S({"src/compiler/path.ts"(){gH(),Bo="/",Jo="\\",zo="://",$o=/\\/g,Vo=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function Ba(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var Ja,za,$a,Va,Ka,Ua,qa,Wa,Ha,Ga,Xa,Ya,Qa,Za,es,ts,ns=S({"src/compiler/diagnosticInformationMap.generated.ts"(){So(),Ra={Unterminated_string_literal:Ba(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:Ba(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:Ba(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:Ba(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:Ba(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:Ba(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:Ba(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:Ba(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:Ba(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:Ba(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:Ba(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:Ba(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:Ba(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:Ba(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:Ba(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:Ba(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:Ba(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:Ba(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:Ba(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:Ba(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:Ba(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:Ba(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:Ba(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:Ba(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:Ba(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:Ba(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:Ba(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:Ba(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:Ba(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:Ba(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:Ba(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:Ba(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:Ba(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:Ba(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:Ba(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:Ba(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:Ba(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:Ba(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:Ba(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:Ba(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:Ba(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:Ba(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:Ba(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ba(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:Ba(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:Ba(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:Ba(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:Ba(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:Ba(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:Ba(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:Ba(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:Ba(1066,1,"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:Ba(1068,1,"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:Ba(1069,1,"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:Ba(1070,1,"_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:Ba(1071,1,"_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:Ba(1079,1,"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:Ba(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:Ba(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:Ba(1090,1,"_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:Ba(1091,1,"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:Ba(1092,1,"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:Ba(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:Ba(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:Ba(1095,1,"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:Ba(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:Ba(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:Ba(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:Ba(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:Ba(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:Ba(1101,1,"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:Ba(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ba(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:Ba(1104,1,"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:Ba(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:Ba(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:Ba(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:Ba(1108,1,"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:Ba(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:Ba(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:Ba(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:Ba(1113,1,"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:Ba(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:Ba(1115,1,"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:Ba(1116,1,"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:Ba(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:Ba(1118,1,"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:Ba(1119,1,"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:Ba(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:Ba(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:Ba(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:Ba(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:Ba(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:Ba(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:Ba(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:Ba(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:Ba(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:Ba(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:Ba(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:Ba(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:Ba(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:Ba(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:Ba(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:Ba(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:Ba(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:Ba(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:Ba(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:Ba(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:Ba(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:Ba(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:Ba(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:Ba(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:Ba(1147,1,"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:Ba(1148,1,"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:Ba(1149,1,"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."),_0_declarations_must_be_initialized:Ba(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:Ba(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:Ba(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:Ba(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:Ba(1162,1,"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:Ba(1163,1,"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:Ba(1164,1,"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:Ba(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:Ba(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:Ba(1168,1,"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:Ba(1169,1,"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:Ba(1170,1,"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:Ba(1171,1,"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:Ba(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:Ba(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:Ba(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:Ba(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:Ba(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:Ba(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:Ba(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:Ba(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:Ba(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:Ba(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:Ba(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:Ba(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:Ba(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:Ba(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:Ba(1186,1,"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:Ba(1187,1,"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:Ba(1188,1,"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:Ba(1189,1,"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:Ba(1190,1,"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:Ba(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:Ba(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:Ba(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:Ba(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:Ba(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:Ba(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:Ba(1197,1,"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:Ba(1198,1,"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:Ba(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:Ba(1200,1,"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:Ba(1202,1,"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:Ba(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:Ba(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:Ba(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:Ba(1207,1,"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."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:Ba(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:Ba(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:Ba(1211,1,"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:Ba(1212,1,"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:Ba(1213,1,"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:Ba(1214,1,"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:Ba(1215,1,"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:Ba(1216,1,"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:Ba(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:Ba(1221,1,"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:Ba(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:Ba(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:Ba(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:Ba(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:Ba(1226,1,"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:Ba(1227,1,"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:Ba(1228,1,"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:Ba(1229,1,"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:Ba(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Ba(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Ba(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:Ba(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Ba(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:Ba(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:Ba(1236,1,"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:Ba(1237,1,"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:Ba(1238,1,"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:Ba(1239,1,"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:Ba(1240,1,"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:Ba(1241,1,"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:Ba(1242,1,"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:Ba(1243,1,"_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:Ba(1244,1,"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:Ba(1245,1,"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:Ba(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:Ba(1247,1,"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:Ba(1248,1,"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:Ba(1249,1,"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:Ba(1250,1,"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:Ba(1251,1,"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:Ba(1252,1,"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."),Abstract_properties_can_only_appear_within_an_abstract_class:Ba(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:Ba(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:Ba(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:Ba(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:Ba(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:Ba(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:Ba(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:Ba(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:Ba(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:Ba(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:Ba(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:Ba(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:Ba(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:Ba(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:Ba(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:Ba(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:Ba(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:Ba(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:Ba(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:Ba(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:Ba(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:Ba(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:Ba(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:Ba(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:Ba(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Ba(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:Ba(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:Ba(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Ba(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Ba(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Ba(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Ba(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Ba(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Ba(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Ba(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:Ba(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ba(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:Ba(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:Ba(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:Ba(1313,1,"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:Ba(1314,1,"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:Ba(1315,1,"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:Ba(1316,1,"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:Ba(1317,1,"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:Ba(1318,1,"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:Ba(1319,1,"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:Ba(1320,1,"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:Ba(1321,1,"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:Ba(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:Ba(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:Ba(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:Ba(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:Ba(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:Ba(1327,1,"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:Ba(1328,1,"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:Ba(1329,1,"_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:Ba(1330,1,"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:Ba(1331,1,"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:Ba(1332,1,"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:Ba(1333,1,"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:Ba(1334,1,"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:Ba(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:Ba(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:Ba(1338,1,"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:Ba(1339,1,"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:Ba(1340,1,"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}')'?"),Class_constructor_may_not_be_an_accessor:Ba(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:Ba(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:Ba(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:Ba(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:Ba(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:Ba(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:Ba(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:Ba(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:Ba(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:Ba(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:Ba(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:Ba(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:Ba(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:Ba(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:Ba(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:Ba(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:Ba(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Ba(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:Ba(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:Ba(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Ba(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:Ba(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:Ba(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:Ba(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:Ba(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:Ba(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:Ba(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:Ba(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:Ba(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Ba(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:Ba(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:Ba(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ba(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Ba(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:Ba(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:Ba(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:Ba(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ba(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ba(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ba(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ba(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:Ba(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:Ba(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:Ba(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:Ba(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:Ba(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:Ba(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Ba(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:Ba(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Ba(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:Ba(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:Ba(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:Ba(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:Ba(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:Ba(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:Ba(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:Ba(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:Ba(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:Ba(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:Ba(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:Ba(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:Ba(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:Ba(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:Ba(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:Ba(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:Ba(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:Ba(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:Ba(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:Ba(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:Ba(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:Ba(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:Ba(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:Ba(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:Ba(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:Ba(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:Ba(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:Ba(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:Ba(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:Ba(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:Ba(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:Ba(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:Ba(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Ba(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ba(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:Ba(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:Ba(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:Ba(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:Ba(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:Ba(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:Ba(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:Ba(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:Ba(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:Ba(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:Ba(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:Ba(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Ba(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Ba(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:Ba(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:Ba(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:Ba(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:Ba(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:Ba(1452,1,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:Ba(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:Ba(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:Ba(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Ba(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Ba(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:Ba(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Ba(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:Ba(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:Ba(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:Ba(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:Ba(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:Ba(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Ba(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Ba(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:Ba(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:Ba(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:Ba(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:Ba(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:Ba(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:Ba(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:Ba(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:Ba(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:Ba(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Ba(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Ba(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:Ba(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:Ba(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:Ba(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:Ba(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:Ba(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:Ba(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:Ba(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Ba(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:Ba(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:Ba(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),The_types_of_0_are_incompatible_between_these_types:Ba(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:Ba(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:Ba(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:Ba(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Ba(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:Ba(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Ba(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:Ba(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:Ba(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Ba(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Ba(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:Ba(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:Ba(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:Ba(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Ba(2301,1,"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:Ba(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:Ba(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:Ba(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:Ba(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:Ba(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:Ba(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:Ba(2308,1,"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:Ba(2309,1,"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:Ba(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:Ba(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:Ba(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:Ba(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:Ba(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:Ba(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:Ba(2316,1,"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:Ba(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:Ba(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:Ba(2319,1,"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:Ba(2320,1,"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:Ba(2321,1,"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:Ba(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:Ba(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:Ba(2324,1,"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:Ba(2325,1,"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:Ba(2326,1,"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:Ba(2327,1,"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:Ba(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:Ba(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:Ba(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:Ba(2331,1,"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:Ba(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:Ba(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:Ba(2334,1,"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:Ba(2335,1,"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:Ba(2336,1,"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:Ba(2337,1,"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:Ba(2338,1,"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:Ba(2339,1,"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:Ba(2340,1,"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:Ba(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:Ba(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:Ba(2344,1,"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:Ba(2345,1,"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}'."),Untyped_function_calls_may_not_accept_type_arguments:Ba(2347,1,"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:Ba(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:Ba(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:Ba(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:Ba(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:Ba(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:Ba(2353,1,"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:Ba(2354,1,"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_undefined_void_nor_any_must_return_a_value:Ba(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:Ba(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:Ba(2357,1,"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:Ba(2358,1,"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:Ba(2359,1,"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_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Ba(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:Ba(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:Ba(2364,1,"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:Ba(2365,1,"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:Ba(2366,1,"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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:Ba(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:Ba(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:Ba(2369,1,"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:Ba(2370,1,"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:Ba(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:Ba(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:Ba(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:Ba(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Ba(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:Ba(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:Ba(2377,1,"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:Ba(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:Ba(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:Ba(2383,1,"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:Ba(2384,1,"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:Ba(2385,1,"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:Ba(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:Ba(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:Ba(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:Ba(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:Ba(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:Ba(2391,1,"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:Ba(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:Ba(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:Ba(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:Ba(2395,1,"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:Ba(2396,1,"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:Ba(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:Ba(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:Ba(2399,1,"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:Ba(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:Ba(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:Ba(2402,1,"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:Ba(2403,1,"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:Ba(2404,1,"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:Ba(2405,1,"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:Ba(2406,1,"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:Ba(2407,1,"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:Ba(2408,1,"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:Ba(2409,1,"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:Ba(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:Ba(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:Ba(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:Ba(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:Ba(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:Ba(2415,1,"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:Ba(2416,1,"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:Ba(2417,1,"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:Ba(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:Ba(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:Ba(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:Ba(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Ba(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:Ba(2425,1,"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:Ba(2426,1,"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:Ba(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:Ba(2428,1,"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:Ba(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:Ba(2431,1,"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:Ba(2432,1,"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:Ba(2433,1,"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:Ba(2434,1,"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:Ba(2435,1,"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:Ba(2436,1,"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:Ba(2437,1,"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:Ba(2438,1,"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:Ba(2439,1,"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:Ba(2440,1,"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:Ba(2441,1,"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:Ba(2442,1,"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:Ba(2443,1,"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:Ba(2444,1,"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:Ba(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:Ba(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:Ba(2447,1,"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:Ba(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:Ba(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:Ba(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:Ba(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:Ba(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:Ba(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:Ba(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:Ba(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:Ba(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:Ba(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:Ba(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:Ba(2461,1,"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:Ba(2462,1,"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:Ba(2463,1,"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:Ba(2464,1,"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:Ba(2465,1,"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:Ba(2466,1,"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:Ba(2467,1,"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:Ba(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:Ba(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:Ba(2472,1,"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:Ba(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:Ba(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),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:Ba(2475,1,"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:Ba(2476,1,"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:Ba(2477,1,"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:Ba(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:Ba(2480,1,"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:Ba(2481,1,"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:Ba(2483,1,"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:Ba(2484,1,"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:Ba(2487,1,"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:Ba(2488,1,"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:Ba(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:Ba(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:Ba(2491,1,"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:Ba(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:Ba(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:Ba(2494,1,"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:Ba(2495,1,"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:Ba(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:Ba(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:Ba(2498,1,"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:Ba(2499,1,"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:Ba(2500,1,"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:Ba(2501,1,"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:Ba(2502,1,"_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:Ba(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Ba(2504,1,"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:Ba(2505,1,"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:Ba(2506,1,"_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:Ba(2507,1,"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:Ba(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:Ba(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:Ba(2510,1,"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:Ba(2511,1,"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:Ba(2512,1,"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:Ba(2513,1,"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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:Ba(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:Ba(2515,1,"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:Ba(2516,1,"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:Ba(2517,1,"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:Ba(2518,1,"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:Ba(2519,1,"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:Ba(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:Ba(2522,1,"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:Ba(2523,1,"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:Ba(2524,1,"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:Ba(2525,1,"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:Ba(2526,1,"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:Ba(2527,1,"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:Ba(2528,1,"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:Ba(2529,1,"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:Ba(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:Ba(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:Ba(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:Ba(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:Ba(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:Ba(2536,1,"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:Ba(2537,1,"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:Ba(2538,1,"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:Ba(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:Ba(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:Ba(2542,1,"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:Ba(2543,1,"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:Ba(2544,1,"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:Ba(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Ba(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Ba(2548,1,"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:Ba(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:Ba(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:Ba(2551,1,"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:Ba(2552,1,"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:Ba(2553,1,"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:Ba(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:Ba(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:Ba(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:Ba(2558,1,"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:Ba(2559,1,"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:Ba(2560,1,"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:Ba(2561,1,"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:Ba(2562,1,"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:Ba(2563,1,"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:Ba(2564,1,"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:Ba(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:Ba(2566,1,"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:Ba(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:Ba(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:Ba(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:Ba(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:Ba(2574,1,"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:Ba(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:Ba(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:Ba(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:Ba(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:Ba(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:Ba(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:Ba(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:Ba(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:Ba(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:Ba(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:Ba(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:Ba(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:Ba(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:Ba(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:Ba(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:Ba(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:Ba(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:Ba(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Ba(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Ba(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Ba(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:Ba(2602,1,"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:Ba(2603,1,"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:Ba(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:Ba(2606,1,"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:Ba(2607,1,"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:Ba(2608,1,"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:Ba(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Ba(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:Ba(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:Ba(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:Ba(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:Ba(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:Ba(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Ba(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:Ba(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:Ba(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:Ba(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:Ba(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:Ba(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:Ba(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:Ba(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:Ba(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:Ba(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:Ba(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:Ba(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:Ba(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:Ba(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:Ba(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:Ba(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:Ba(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:Ba(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:Ba(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:Ba(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:Ba(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:Ba(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:Ba(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:Ba(2649,1,"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:Ba(2651,1,"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:Ba(2652,1,"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:Ba(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:Ba(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:Ba(2658,1,"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:Ba(2659,1,"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:Ba(2660,1,"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:Ba(2661,1,"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:Ba(2662,1,"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:Ba(2663,1,"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:Ba(2664,1,"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:Ba(2665,1,"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:Ba(2666,1,"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:Ba(2667,1,"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:Ba(2668,1,"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:Ba(2669,1,"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:Ba(2670,1,"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:Ba(2671,1,"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:Ba(2672,1,"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:Ba(2673,1,"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:Ba(2674,1,"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:Ba(2675,1,"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:Ba(2676,1,"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:Ba(2677,1,"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:Ba(2678,1,"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:Ba(2679,1,"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:Ba(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:Ba(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:Ba(2683,1,"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:Ba(2684,1,"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:Ba(2685,1,"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:Ba(2686,1,"_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:Ba(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:Ba(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:Ba(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:Ba(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:Ba(2692,1,"_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:Ba(2693,1,"_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:Ba(2694,1,"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:Ba(2695,1,"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:Ba(2696,1,"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:Ba(2697,1,"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:Ba(2698,1,"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:Ba(2699,1,"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:Ba(2700,1,"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:Ba(2701,1,"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:Ba(2702,1,"_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:Ba(2703,1,"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:Ba(2704,1,"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:Ba(2705,1,"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:Ba(2706,1,"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:Ba(2707,1,"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:Ba(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:Ba(2709,1,"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:Ba(2710,1,"_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:Ba(2711,1,"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:Ba(2712,1,"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:Ba(2713,1,"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:Ba(2714,1,"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:Ba(2715,1,"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:Ba(2716,1,"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:Ba(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:Ba(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Ba(2719,1,"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:Ba(2720,1,"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:Ba(2721,1,"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:Ba(2722,1,"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:Ba(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:Ba(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:Ba(2725,1,"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:Ba(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:Ba(2727,1,"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:Ba(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:Ba(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:Ba(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:Ba(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:Ba(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:Ba(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:Ba(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:Ba(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:Ba(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:Ba(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:Ba(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:Ba(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:Ba(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:Ba(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:Ba(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:Ba(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:Ba(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:Ba(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:Ba(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:Ba(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:Ba(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:Ba(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:Ba(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:Ba(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:Ba(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:Ba(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:Ba(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:Ba(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:Ba(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:Ba(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Ba(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:Ba(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:Ba(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:Ba(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Ba(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:Ba(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:Ba(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:Ba(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:Ba(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:Ba(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:Ba(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:Ba(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:Ba(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:Ba(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:Ba(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:Ba(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:Ba(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:Ba(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:Ba(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:Ba(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Ba(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:Ba(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:Ba(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:Ba(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:Ba(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:Ba(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:Ba(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:Ba(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:Ba(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:Ba(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:Ba(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:Ba(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:Ba(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:Ba(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Ba(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:Ba(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Ba(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:Ba(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:Ba(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:Ba(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:Ba(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:Ba(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:Ba(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:Ba(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:Ba(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:Ba(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:Ba(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:Ba(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:Ba(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:Ba(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:Ba(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:Ba(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:Ba(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Ba(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:Ba(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:Ba(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:Ba(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:Ba(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:Ba(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:Ba(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:Ba(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:Ba(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:Ba(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:Ba(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:Ba(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:Ba(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:Ba(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:Ba(2836,1,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:Ba(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:Ba(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:Ba(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:Ba(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:Ba(2841,1,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:Ba(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:Ba(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Ba(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:Ba(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:Ba(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:Ba(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:Ba(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:Ba(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:Ba(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ba(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Ba(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ba(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Import_declaration_0_is_using_private_name_1:Ba(4e3,1,"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:Ba(4002,1,"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:Ba(4004,1,"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:Ba(4006,1,"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:Ba(4008,1,"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:Ba(4010,1,"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:Ba(4012,1,"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:Ba(4014,1,"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:Ba(4016,1,"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:Ba(4019,1,"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:Ba(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:Ba(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:Ba(4022,1,"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:Ba(4023,1,"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:Ba(4024,1,"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:Ba(4025,1,"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:Ba(4026,1,"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:Ba(4027,1,"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:Ba(4028,1,"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:Ba(4029,1,"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:Ba(4030,1,"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:Ba(4031,1,"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:Ba(4032,1,"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:Ba(4033,1,"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:Ba(4034,1,"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:Ba(4035,1,"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:Ba(4036,1,"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:Ba(4037,1,"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:Ba(4038,1,"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:Ba(4039,1,"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:Ba(4040,1,"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:Ba(4041,1,"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:Ba(4042,1,"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:Ba(4043,1,"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:Ba(4044,1,"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:Ba(4045,1,"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:Ba(4046,1,"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:Ba(4047,1,"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:Ba(4048,1,"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:Ba(4049,1,"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:Ba(4050,1,"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:Ba(4051,1,"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:Ba(4052,1,"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:Ba(4053,1,"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:Ba(4054,1,"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:Ba(4055,1,"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:Ba(4056,1,"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:Ba(4057,1,"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:Ba(4058,1,"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:Ba(4059,1,"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:Ba(4060,1,"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:Ba(4061,1,"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:Ba(4062,1,"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:Ba(4063,1,"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:Ba(4064,1,"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:Ba(4065,1,"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:Ba(4066,1,"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:Ba(4067,1,"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:Ba(4068,1,"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:Ba(4069,1,"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:Ba(4070,1,"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:Ba(4071,1,"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:Ba(4072,1,"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:Ba(4073,1,"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:Ba(4074,1,"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:Ba(4075,1,"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:Ba(4076,1,"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:Ba(4077,1,"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:Ba(4078,1,"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:Ba(4081,1,"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:Ba(4082,1,"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:Ba(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Ba(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:Ba(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' 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:Ba(4090,1,"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:Ba(4091,1,"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:Ba(4092,1,"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:Ba(4094,1,"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:Ba(4095,1,"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:Ba(4096,1,"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:Ba(4097,1,"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:Ba(4098,1,"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:Ba(4099,1,"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:Ba(4100,1,"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:Ba(4101,1,"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:Ba(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:Ba(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:Ba(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:Ba(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:Ba(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Ba(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ba(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:Ba(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:Ba(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:Ba(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:Ba(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:Ba(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:Ba(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Ba(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:Ba(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Ba(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:Ba(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ba(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ba(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Ba(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Ba(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Ba(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:Ba(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:Ba(4125,1,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:Ba(5001,1,"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:Ba(5009,1,"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:Ba(5010,1,"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:Ba(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:Ba(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:Ba(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:Ba(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:Ba(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:Ba(5033,1,"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:Ba(5042,1,"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:Ba(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:Ba(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:Ba(5051,1,"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:Ba(5052,1,"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:Ba(5053,1,"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:Ba(5054,1,"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:Ba(5055,1,"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:Ba(5056,1,"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:Ba(5057,1,"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:Ba(5058,1,"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:Ba(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:Ba(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:Ba(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:Ba(5063,1,"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:Ba(5064,1,"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:Ba(5065,1,"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:Ba(5066,1,"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:Ba(5067,1,"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:Ba(5068,1,"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:Ba(5069,1,"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_when_moduleResolution_is_set_to_classic:Ba(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:Ba(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:Ba(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:Ba(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:Ba(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:Ba(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:Ba(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:Ba(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:Ba(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:Ba(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:Ba(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:Ba(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:Ba(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:Ba(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:Ba(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:Ba(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:Ba(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:Ba(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:Ba(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:Ba(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:Ba(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:Ba(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:Ba(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:Ba(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:Ba(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:Ba(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:Ba(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:Ba(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:Ba(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101","Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error."),Option_0_has_been_removed_Please_remove_it_from_your_configuration:Ba(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:Ba(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:Ba(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:Ba(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:Ba(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:Ba(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107","Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '\"ignoreDeprecations\": \"{3}\"' to silence this error."),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:Ba(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:Ba(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:Ba(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:Ba(6e3,3,"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:Ba(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:Ba(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:Ba(6004,3,"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:Ba(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:Ba(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:Ba(6007,3,"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:Ba(6008,3,"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:Ba(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:Ba(6010,3,"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:Ba(6011,3,"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:Ba(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:Ba(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:Ba(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:Ba(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:Ba(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:Ba(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:Ba(6019,3,"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:Ba(6020,3,"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:Ba(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:Ba(6024,3,"options_6024","options"),file:Ba(6025,3,"file_6025","file"),Examples_Colon_0:Ba(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:Ba(6027,3,"Options_Colon_6027","Options:"),Version_0:Ba(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:Ba(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:Ba(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:Ba(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:Ba(6034,3,"KIND_6034","KIND"),FILE:Ba(6035,3,"FILE_6035","FILE"),VERSION:Ba(6036,3,"VERSION_6036","VERSION"),LOCATION:Ba(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:Ba(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:Ba(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:Ba(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:Ba(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:Ba(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:Ba(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:Ba(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:Ba(6046,1,"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:Ba(6048,1,"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}'."),Unable_to_open_file_0:Ba(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:Ba(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:Ba(6052,3,"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:Ba(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:Ba(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:Ba(6055,3,"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:Ba(6056,3,"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:Ba(6058,3,"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:Ba(6059,1,"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:Ba(6060,3,"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:Ba(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:Ba(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:Ba(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:Ba(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:Ba(6070,3,"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:Ba(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:Ba(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:Ba(6073,3,"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:Ba(6074,3,"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:Ba(6075,3,"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:Ba(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:Ba(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:Ba(6078,3,"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:Ba(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:Ba(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:Ba(6081,3,"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:Ba(6082,1,"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:Ba(6083,3,"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:Ba(6084,3,"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:Ba(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:Ba(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:Ba(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:Ba(6088,3,"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:Ba(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:Ba(6090,3,"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:Ba(6091,3,"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:Ba(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:Ba(6093,3,"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:Ba(6094,3,"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_types_Colon_1:Ba(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:Ba(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:Ba(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:Ba(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:Ba(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:Ba(6100,3,"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:Ba(6101,3,"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:Ba(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:Ba(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:Ba(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:Ba(6106,3,"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:Ba(6107,3,"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:Ba(6108,3,"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:Ba(6109,3,"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:Ba(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:Ba(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:Ba(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:Ba(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:Ba(6114,1,"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:Ba(6115,3,"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:Ba(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:Ba(6119,3,"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:Ba(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:Ba(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:Ba(6122,3,"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:Ba(6123,3,"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:Ba(6124,3,"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:Ba(6125,3,"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:Ba(6126,3,"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:Ba(6127,3,"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:Ba(6128,3,"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:Ba(6130,3,"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:Ba(6131,1,"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:Ba(6132,3,"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:Ba(6133,1,"_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:Ba(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:Ba(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:Ba(6136,3,"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:Ba(6137,1,"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:Ba(6138,1,"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:Ba(6139,3,"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:Ba(6140,1,"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:Ba(6141,3,"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:Ba(6142,1,"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:Ba(6144,3,"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:Ba(6145,3,"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:Ba(6146,3,"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:Ba(6147,3,"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:Ba(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:Ba(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:Ba(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:Ba(6151,3,"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:Ba(6152,3,"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:Ba(6153,3,"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:Ba(6154,3,"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:Ba(6155,3,"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:Ba(6156,3,"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:Ba(6157,3,"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:Ba(6158,3,"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:Ba(6159,3,"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:Ba(6160,3,"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:Ba(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:Ba(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:Ba(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:Ba(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:Ba(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:Ba(6166,3,"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:Ba(6167,3,"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:Ba(6168,3,"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:Ba(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:Ba(6170,3,"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:Ba(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:Ba(6179,3,"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:Ba(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:Ba(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ba(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ba(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:Ba(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:Ba(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:Ba(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:Ba(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:Ba(6191,3,"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:Ba(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:Ba(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:Ba(6194,3,"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:Ba(6195,3,"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:Ba(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:Ba(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:Ba(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:Ba(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:Ba(6200,1,"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:Ba(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:Ba(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:Ba(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:Ba(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:Ba(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:Ba(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:Ba(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:Ba(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:Ba(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:Ba(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:Ba(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:Ba(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:Ba(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:Ba(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:Ba(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:Ba(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:Ba(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:Ba(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:Ba(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:Ba(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:Ba(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:Ba(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:Ba(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:Ba(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:Ba(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:Ba(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:Ba(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:Ba(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:Ba(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:Ba(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:Ba(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:Ba(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:Ba(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:Ba(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:Ba(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:Ba(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:Ba(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:Ba(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:Ba(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:Ba(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:Ba(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:Ba(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:Ba(6244,3,"Modules_6244","Modules"),File_Management:Ba(6245,3,"File_Management_6245","File Management"),Emit:Ba(6246,3,"Emit_6246","Emit"),JavaScript_Support:Ba(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:Ba(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:Ba(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:Ba(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:Ba(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:Ba(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:Ba(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:Ba(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:Ba(6255,3,"Projects_6255","Projects"),Output_Formatting:Ba(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:Ba(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:Ba(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:Ba(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:Ba(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:Ba(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:Ba(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:Ba(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:Ba(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:Ba(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:Ba(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:Ba(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Ba(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:Ba(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:Ba(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:Ba(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:Ba(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:Ba(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:Ba(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:Ba(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Enable_project_compilation:Ba(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:Ba(6304,1,"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:Ba(6305,1,"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:Ba(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:Ba(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:Ba(6308,1,"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:Ba(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:Ba(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:Ba(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:Ba(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:Ba(6352,3,"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:Ba(6353,3,"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:Ba(6354,3,"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:Ba(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:Ba(6356,3,"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:Ba(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:Ba(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:Ba(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:Ba(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:Ba(6362,3,"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:Ba(6363,3,"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:Ba(6364,3,"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:Ba(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:Ba(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:Ba(6369,1,"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:Ba(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:Ba(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:Ba(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:Ba(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:Ba(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:Ba(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:Ba(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:Ba(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:Ba(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:Ba(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:Ba(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Ba(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Ba(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Ba(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:Ba(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:Ba(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:Ba(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:Ba(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ba(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ba(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ba(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:Ba(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Ba(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Ba(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Ba(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:Ba(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:Ba(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Ba(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:Ba(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:Ba(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:Ba(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:Ba(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:Ba(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:Ba(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:Ba(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:Ba(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:Ba(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:Ba(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:Ba(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:Ba(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:Ba(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:Ba(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:Ba(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:Ba(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:Ba(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:Ba(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:Ba(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:Ba(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:Ba(6500,3,"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:Ba(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:Ba(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:Ba(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:Ba(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:Ba(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:Ba(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:Ba(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:Ba(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:Ba(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:Ba(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:Ba(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:Ba(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:Ba(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:Ba(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:Ba(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:Ba(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:Ba(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:Ba(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:Ba(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:Ba(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:Ba(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:Ba(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:Ba(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:Ba(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:Ba(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:Ba(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:Ba(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:Ba(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:Ba(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:Ba(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:Ba(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:Ba(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:Ba(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:Ba(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:Ba(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:Ba(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:Ba(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:Ba(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:Ba(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:Ba(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:Ba(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:Ba(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:Ba(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:Ba(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:Ba(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:Ba(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:Ba(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:Ba(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:Ba(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:Ba(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:Ba(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:Ba(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:Ba(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:Ba(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:Ba(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:Ba(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:Ba(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:Ba(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:Ba(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:Ba(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:Ba(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:Ba(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:Ba(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:Ba(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:Ba(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:Ba(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:Ba(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:Ba(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:Ba(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:Ba(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:Ba(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:Ba(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:Ba(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:Ba(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:Ba(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:Ba(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:Ba(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:Ba(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:Ba(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:Ba(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:Ba(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:Ba(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:Ba(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:Ba(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:Ba(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:Ba(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:Ba(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:Ba(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:Ba(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:Ba(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:Ba(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:Ba(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:Ba(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:Ba(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:Ba(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:Ba(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:Ba(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:Ba(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:Ba(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:Ba(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:Ba(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:Ba(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:Ba(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:Ba(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:Ba(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:Ba(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:Ba(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:Ba(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:Ba(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:Ba(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:Ba(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:Ba(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:Ba(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:Ba(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:Ba(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:Ba(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:Ba(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:Ba(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:Ba(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:Ba(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:Ba(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:Ba(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:Ba(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:Ba(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:Ba(6902,3,"type_Colon_6902","type:"),default_Colon:Ba(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:Ba(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:Ba(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:Ba(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:Ba(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:Ba(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:Ba(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:Ba(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:Ba(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:Ba(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:Ba(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:Ba(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:Ba(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:Ba(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:Ba(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:Ba(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:Ba(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:Ba(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:Ba(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:Ba(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:Ba(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:Ba(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:Ba(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:Ba(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:Ba(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:Ba(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:Ba(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:Ba(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:Ba(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:Ba(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:Ba(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:Ba(7008,1,"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:Ba(7009,1,"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:Ba(7010,1,"_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:Ba(7011,1,"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."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:Ba(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:Ba(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:Ba(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:Ba(7015,1,"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:Ba(7016,1,"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:Ba(7017,1,"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:Ba(7018,1,"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:Ba(7019,1,"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:Ba(7020,1,"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:Ba(7022,1,"_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:Ba(7023,1,"_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:Ba(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Ba(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:Ba(7026,1,"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:Ba(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:Ba(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:Ba(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:Ba(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:Ba(7031,1,"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:Ba(7032,1,"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:Ba(7033,1,"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:Ba(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:Ba(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:Ba(7036,1,"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:Ba(7037,3,"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:Ba(7038,3,"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:Ba(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:Ba(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:Ba(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:Ba(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Ba(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Ba(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:Ba(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:Ba(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ba(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:Ba(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:Ba(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:Ba(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:Ba(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:Ba(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:Ba(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:Ba(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Ba(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:Ba(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:Ba(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:Ba(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:Ba(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:Ba(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:Ba(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:Ba(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:Ba(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:Ba(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:Ba(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:Ba(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:Ba(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:Ba(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:Ba(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:Ba(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:Ba(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:Ba(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:Ba(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:Ba(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:Ba(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:Ba(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:Ba(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:Ba(8020,1,"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:Ba(8021,1,"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:Ba(8022,1,"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:Ba(8023,1,"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:Ba(8024,1,"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:Ba(8025,1,"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:Ba(8026,1,"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:Ba(8027,1,"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:Ba(8028,1,"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:Ba(8029,1,"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:Ba(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:Ba(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:Ba(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:Ba(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:Ba(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:Ba(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:Ba(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:Ba(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:Ba(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:Ba(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:Ba(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Ba(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:Ba(17e3,1,"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:Ba(17001,1,"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:Ba(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:Ba(17004,1,"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:Ba(17005,1,"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:Ba(17006,1,"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:Ba(17007,1,"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:Ba(17008,1,"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:Ba(17009,1,"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:Ba(17010,1,"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:Ba(17011,1,"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:Ba(17012,1,"_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:Ba(17013,1,"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:Ba(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:Ba(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Ba(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:Ba(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:Ba(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Ba(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Ba(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:Ba(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:Ba(18002,1,"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:Ba(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:Ba(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:Ba(80002,2,"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:Ba(80003,2,"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:Ba(80004,2,"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:Ba(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:Ba(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:Ba(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:Ba(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:Ba(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:Ba(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:Ba(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:Ba(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:Ba(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:Ba(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:Ba(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:Ba(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:Ba(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:Ba(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:Ba(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:Ba(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:Ba(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:Ba(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:Ba(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:Ba(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:Ba(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:Ba(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:Ba(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:Ba(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:Ba(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:Ba(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:Ba(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:Ba(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:Ba(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:Ba(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:Ba(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:Ba(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:Ba(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:Ba(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:Ba(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:Ba(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:Ba(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:Ba(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:Ba(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:Ba(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:Ba(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:Ba(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:Ba(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:Ba(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:Ba(90055,3,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:Ba(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:Ba(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:Ba(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:Ba(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:Ba(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:Ba(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:Ba(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:Ba(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:Ba(95005,3,"Extract_function_95005","Extract function"),Extract_constant:Ba(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:Ba(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:Ba(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:Ba(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:Ba(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:Ba(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:Ba(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:Ba(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:Ba(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:Ba(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:Ba(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:Ba(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:Ba(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:Ba(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:Ba(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:Ba(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:Ba(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:Ba(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:Ba(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:Ba(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:Ba(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:Ba(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:Ba(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:Ba(95030,3,"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:Ba(95031,3,"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:Ba(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:Ba(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:Ba(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:Ba(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:Ba(95036,3,"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:Ba(95037,3,"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:Ba(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:Ba(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:Ba(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:Ba(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:Ba(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:Ba(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:Ba(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:Ba(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:Ba(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:Ba(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:Ba(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:Ba(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:Ba(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:Ba(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:Ba(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:Ba(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:Ba(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:Ba(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:Ba(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:Ba(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:Ba(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:Ba(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:Ba(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:Ba(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:Ba(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:Ba(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:Ba(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:Ba(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:Ba(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:Ba(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:Ba(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:Ba(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:Ba(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:Ba(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:Ba(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:Ba(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:Ba(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:Ba(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:Ba(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:Ba(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:Ba(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:Ba(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:Ba(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:Ba(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:Ba(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:Ba(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:Ba(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:Ba(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:Ba(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:Ba(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:Ba(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:Ba(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:Ba(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:Ba(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:Ba(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:Ba(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:Ba(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:Ba(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:Ba(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:Ba(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:Ba(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:Ba(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:Ba(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:Ba(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:Ba(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:Ba(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:Ba(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:Ba(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:Ba(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:Ba(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:Ba(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:Ba(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:Ba(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:Ba(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:Ba(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:Ba(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:Ba(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:Ba(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:Ba(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:Ba(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:Ba(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:Ba(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:Ba(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:Ba(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:Ba(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:Ba(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:Ba(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:Ba(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:Ba(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:Ba(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:Ba(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:Ba(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:Ba(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:Ba(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:Ba(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:Ba(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:Ba(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:Ba(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:Ba(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:Ba(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:Ba(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:Ba(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:Ba(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:Ba(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:Ba(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:Ba(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:Ba(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:Ba(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:Ba(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:Ba(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:Ba(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:Ba(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:Ba(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:Ba(95154,3,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:Ba(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:Ba(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:Ba(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:Ba(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:Ba(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:Ba(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:Ba(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:Ba(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:Ba(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:Ba(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:Ba(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:Ba(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:Ba(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:Ba(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:Ba(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:Ba(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:Ba(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:Ba(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:Ba(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:Ba(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:Ba(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:Ba(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:Ba(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:Ba(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:Ba(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:Ba(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:Ba(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:Ba(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:Ba(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:Ba(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:Ba(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:Ba(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:Ba(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Ba(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:Ba(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:Ba(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:Ba(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:Ba(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:Ba(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:Ba(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:Ba(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:Ba(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:Ba(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:Ba(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:Ba(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:Ba(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:Ba(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:Ba(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:Ba(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:Ba(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:Ba(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:Ba(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:Ba(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:Ba(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:Ba(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:Ba(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:Ba(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:Ba(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:Ba(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:Ba(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:Ba(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:Ba(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:Ba(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:Ba(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:Ba(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:Ba(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:Ba(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:Ba(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:Ba(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:Ba(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:Ba(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:Ba(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:Ba(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:Ba(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:Ba(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:Ba(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function rs(e){return e>=80}function is(e){return 32===e||rs(e)}function os(e,t){if(e=2?Wa:1===t?Ua:Va)}function ss(e){return Ya[e]}function cs(e){return $a.get(e)}function ls(e){const t=[];let n=0,r=0;for(;n127&&vs(i)&&(t.push(r),r=n)}}return t.push(r),t}function us(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):_s(ds(e),t,n,e.text,r)}function _s(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:Fn.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?J(e,ls(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function vs(e){return 10===e||13===e||8232===e||8233===e}function bs(e){return e>=48&&e<=57}function xs(e){return bs(e)||e>=65&&e<=70||e>=97&&e<=102}function Ss(e){return e>=48&&e<=55}function ks(e,t){const n=e.charCodeAt(t);switch(n){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 n>127}}function Ts(e,t,n,r,i){if(aT(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t127&&hs(a)){t++;continue}}return t}}function Cs(e,t){if(Fn.assert(t>=0),0===t||vs(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Qa=0&&n127&&hs(a)){_&&vs(a)&&(u=!0),n++;continue}break e}}return _&&(f=i(s,c,l,u,o,f)),f}function As(e,t,n,r){return Ns(!1,e,t,!1,n,r)}function Ps(e,t,n,r){return Ns(!1,e,t,!0,n,r)}function Fs(e,t,n,r,i){return Ns(!0,e,t,!1,n,r,i)}function Is(e,t,n,r,i){return Ns(!0,e,t,!0,n,r,i)}function Os(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function Ms(e,t){return Fs(e,t,Os,void 0,void 0)}function Ls(e,t){return Is(e,t,Os,void 0,void 0)}function Rs(e){const t=Za.exec(e);if(t)return t[0]}function js(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&as(e,t)}function Bs(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return os(e,t>=2?Ha:1===t?qa:Ka)}(e,t)}function Js(e,t,n){let r=es(e,0);if(!js(r,t))return!1;for(let i=$s(r);il,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>_,getTokenStart:()=>u,getTokenPos:()=>u,getTokenText:()=>m.substring(u,s),getTokenValue:()=>d,hasUnicodeEscape:()=>0!=(1024&f),hasExtendedUnicodeEscape:()=>0!=(8&f),hasPrecedingLineBreak:()=>0!=(1&f),hasPrecedingJSDocComment:()=>0!=(2&f),isIdentifier:()=>80===_||_>118,isReservedWord:()=>_>=83&&_<=118,isUnterminated:()=>0!=(4&f),getCommentDirectives:()=>p,getNumericLiteralFlags:()=>25584&f,getTokenFlags:()=>f,reScanGreaterToken:function(){if(32===_){if(62===m.charCodeAt(s))return 62===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,_=73):(s+=2,_=50):61===m.charCodeAt(s+1)?(s+=2,_=72):(s++,_=49);if(61===m.charCodeAt(s))return s++,_=34}return _},reScanAsteriskEqualsToken:function(){return Fn.assert(67===_,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=u+1,_=64},reScanSlashToken:function(){if(44===_||69===_){let t=u+1,n=!1,r=!1;for(;;){if(t>=c){f|=4,y(Ra.Unterminated_regular_expression_literal);break}const e=m.charCodeAt(t);if(vs(e)){f|=4,y(Ra.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===e&&!r){t++;break}91===e?r=!0:92===e?n=!0:93===e&&(r=!1)}t++}for(;t=c)return _=1;for(let t=m.charCodeAt(s);s=0&&ys(m.charCodeAt(s-1))&&!(s+1{const e=h.getText();return e.slice(0,h.getTokenFullStart())+"║"+e.slice(h.getTokenFullStart())}}),h;function y(e,t=s,n,r){if(i){const o=s;s=t,i(e,n||0,r),s=o}}function b(){let e=s,t=!1,n=!1,r="";for(;;){const i=m.charCodeAt(s);if(95!==i){if(!bs(i))break;t=!0,n=!1,s++}else f|=512,t?(t=!1,n=!0,r+=m.substring(e,s)):(f|=16384,y(n?Ra.Multiple_consecutive_numeric_separators_are_not_permitted:Ra.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===m.charCodeAt(s-1)&&(f|=16384,y(Ra.Numeric_separators_are_not_allowed_here,s-1,1)),r+m.substring(e,s)}function x(){let e,t,n,r=s;if(48===m.charCodeAt(s))if(s++,95===m.charCodeAt(s))f|=16896,y(Ra.Numeric_separators_are_not_allowed_here,s,1),s--,e=b();else if(function(){const e=s;let t=!0;for(;bs(m.charCodeAt(s));)Ss(m.charCodeAt(s))||(t=!1),s++;return d=m.substring(e,s),t}()){if(d){d=""+parseInt(d,8),f|=32;const e=41===_,t=(e?"-":"")+"0o"+(+d).toString(8);return e&&r--,y(Ra.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,t),9}e="0"}else f|=8192,e=""+ +d;else e=b();46===m.charCodeAt(s)&&(s++,t=b());let i,o=s;if(69===m.charCodeAt(s)||101===m.charCodeAt(s)){s++,f|=16,43!==m.charCodeAt(s)&&45!==m.charCodeAt(s)||s++;const e=s,t=b();t?(n=m.substring(o,e)+t,o=s):y(Ra.Digit_expected)}if(512&f?(i=e,t&&(i+="."+t),n&&(i+=n)):i=m.substring(r,o),8192&f)return y(Ra.Decimals_with_leading_zeros_are_not_allowed,r,o-r),d=""+ +i,9;if(void 0!==t||16&f)return S(r,void 0===t&&!!(16&f)),d=""+ +i,9;{d=i;const e=O();return S(r),e}}function S(t,n){if(!js(es(m,s),e))return;const r=s,{length:i}=P();1===i&&"n"===m[r]?y(n?Ra.A_bigint_literal_cannot_use_exponential_notation:Ra.A_bigint_literal_must_be_an_integer,t,r-t+1):(y(Ra.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,i),s=r)}function k(e,t){return T(e,!0,t)}function T(e,t,n){let r=[],i=!1,o=!1;for(;r.length=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length=c){n+=m.substring(r,s),f|=4,y(Ra.Unterminated_string_literal);break}const i=m.charCodeAt(s);if(i===t){n+=m.substring(r,s),s++;break}if(92!==i||e){if(vs(i)&&!e){n+=m.substring(r,s),f|=4,y(Ra.Unterminated_string_literal);break}s++}else n+=m.substring(r,s),n+=E(!0),r=s}return n}function w(e){const t=96===m.charCodeAt(s);let n,r=++s,i="";for(;;){if(s>=c){i+=m.substring(r,s),f|=4,y(Ra.Unterminated_template_literal),n=t?15:18;break}const o=m.charCodeAt(s);if(96===o){i+=m.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1=c)return y(Ra.Unexpected_end_of_text),"";const n=m.charCodeAt(s);switch(s++,n){case 48:if(s>=c||!bs(m.charCodeAt(s)))return"\0";case 49:case 50:case 51:s=c?(f|=2048,e&&y(Ra.Unexpected_end_of_text),m.substring(t,s)):125!==m.charCodeAt(s)?(f|=2048,e&&y(Ra.Unterminated_Unicode_escape_sequence),m.substring(t,s)):(s++,f|=8,Ks(r)):(f|=2048,e&&y(Ra.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),m.substring(t,s))}for(;s1114111&&(y(Ra.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),s>=c?(y(Ra.Unexpected_end_of_text),n=!0):125===m.charCodeAt(s)?s++:(y(Ra.Unterminated_Unicode_escape_sequence),n=!0),n?"":Ks(t)}function N(){if(s+5=0&&Bs(r,e)){s+=3,f|=8,t+=D(),n=s;continue}if(r=N(),!(r>=0&&Bs(r,e)))break;f|=1024,t+=m.substring(n,s),t+=Ks(r),n=s+=6}}return t+=m.substring(n,s),t}function F(){const e=d.length;if(e>=2&&e<=12){const e=d.charCodeAt(0);if(e>=97&&e<=122){const e=za.get(d);if(void 0!==e)return _=e}}return _=80}function I(e){let t="",n=!1,r=!1;for(;;){const i=m.charCodeAt(s);if(95!==i){if(n=!0,!bs(i)||i-48>=e)break;t+=m[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):y(r?Ra.Multiple_consecutive_numeric_separators_are_not_permitted:Ra.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===m.charCodeAt(s-1)&&y(Ra.Numeric_separators_are_not_allowed_here,s-1,1),t}function O(){if(110===m.charCodeAt(s))return d+="n",384&f&&(d=xT(d)+"n"),s++,10;{const e=128&f?parseInt(d.slice(2),2):256&f?parseInt(d.slice(2),8):+d;return d=""+e,9}}function M(){l=s,f=0;let r=!1;for(;;){if(u=s,s>=c)return _=1;const i=es(m,s);if(0===s){if(65533===i)return y(Ra.File_appears_to_be_binary),s=c,_=8;if(35===i&&Es(m,s)){if(s=Ds(m,s),t)continue;return _=6}}switch(i){case 10:case 13:if(f|=1,t){s++;continue}return 13===i&&s+1=0&&js(o,e))return s+=3,f|=8,d=D()+P(),_=F();const a=N();return a>=0&&js(a,e)?(s+=6,f|=1024,d=String.fromCharCode(a)+P(),_=F()):(y(Ra.Invalid_character),s++,_=0);case 35:if(0!==s&&"!"===m[s+1])return y(Ra.can_only_be_used_at_the_start_of_a_file),s++,_=0;const l=es(m,s+1);if(92===l){s++;const t=A();if(t>=0&&js(t,e))return s+=3,f|=8,d="#"+D()+P(),_=81;const n=N();if(n>=0&&js(n,e))return s+=6,f|=1024,d="#"+String.fromCharCode(n)+P(),_=81;s--}return js(l,e)?(s++,L(l,e)):(d="#",y(Ra.Invalid_character,s++,$s(i))),_=81;default:const h=L(i,e);if(h)return _=h;if(ys(i)){s+=$s(i);continue}if(vs(i)){f|=1,s+=$s(i);continue}const v=$s(i);return y(Ra.Invalid_character,s,v),s+=v,_=0}}}function L(e,t){let n=e;if(js(n,t)){for(s+=$s(n);s=c)return _=1;let t=m.charCodeAt(s);if(60===t)return 47===m.charCodeAt(s+1)?(s+=2,_=31):(s++,_=30);if(123===t)return s++,_=19;let n=0;for(;s0)break;hs(t)||(n=s)}s++}return d=m.substring(l,s),-1===n?13:12}function B(){switch(l=s,m.charCodeAt(s)){case 34:case 39:return d=C(!0),_=11;default:return M()}}function J(){if(l=u=s,f=0,s>=c)return _=1;const t=es(m,s);switch(s+=$s(t),t){case 9:case 11:case 12:case 32:for(;s=0&&js(t,e))return s+=3,f|=8,d=D()+P(),_=F();const n=N();return n>=0&&js(n,e)?(s+=6,f|=1024,d=String.fromCharCode(n)+P(),_=F()):(s++,_=0)}if(js(t,e)){let n=t;for(;s=0),s=e,l=e,u=e,_=0,d=void 0,f=0}}function $s(e){return e>=65536?2:1}function Vs(e){if(Fn.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Ks(e){return ts(e)}var Us,qs,Ws,Hs=S({"src/compiler/scanner.ts"(){gH(),Ja={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},za=new Map(Object.entries(Ja)),$a=new Map(Object.entries({...Ja,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),Va=[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],Ka=[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],Ua=[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],qa=[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],Wa=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Ha=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Ga=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Xa=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Ya=function(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}($a),Qa="<<<<<<<".length,Za=/^#!.*/,es=String.prototype.codePointAt?(e,t)=>e.codePointAt(t):function(e,t){const n=e.length;if(t<0||t>=n)return;const r=e.charCodeAt(t);if(r>=55296&&r<=56319&&n>t+1){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343)return 1024*(r-55296)+n-56320+65536}return r},ts=String.fromCodePoint?e=>String.fromCodePoint(e):Vs}});function Gs(e){return Xo(e)||Wo(e)}function Xs(e){return he(e,JS)}function Ys(e){switch(HS(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Qs(e){return e.start+e.length}function Zs(e){return 0===e.length}function ec(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function nc(e,t){return t.start>=e.start&&Qs(t)<=Qs(e)}function rc(e,t){return void 0!==ic(e,t)}function ic(e,t){const n=lc(e,t);return n&&0===n.length?void 0:n}function oc(e,t){return sc(e.start,e.length,t.start,t.length)}function ac(e,t,n){return sc(e.start,e.length,t,n)}function sc(e,t,n,r){return n<=e+t&&n+r>=e}function cc(e,t){return t<=Qs(e)&&t>=e.start}function lc(e,t){const n=Math.max(e.start,t.start),r=Math.min(Qs(e),Qs(t));return n<=r?_c(n,r):void 0}function uc(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function _c(e,t){return uc(e,t-e)}function dc(e){return uc(e.span.start,e.newLength)}function fc(e){return Zs(e.span)&&0===e.newLength}function pc(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function mc(e){if(0===e.length)return Us;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=Qs(t.span),i=n+t.newLength;for(let t=1;t=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Fc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function Ic(e){return Fc(e.escapedText)}function Oc(e){const t=cs(e.escapedText);return t?bt(t,Sy):void 0}function Mc(e){return e.valueDeclaration&&pu(e.valueDeclaration)?Ic(e.valueDeclaration.name):Fc(e.escapedName)}function Lc(e){const t=e.parent.parent;if(t){if(A_(t))return Rc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Rc(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(qE(t))return t}break;case 217:return Rc(t.expression);case 256:if(A_(t.statement)||l_(t.statement))return Rc(t.statement)}}}function Rc(e){const t=$c(e);return t&&qE(t)?t:void 0}function jc(e,t){return!(!Jc(e)||!qE(e.name)||Ic(e.name)!==Ic(t))||!(!PN(e)||!le(e.declarationList.declarations,(e=>jc(e,t))))}function Bc(e){return e.name||Lc(e)}function Jc(e){return!!e.name}function zc(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(nh(t)){case 1:case 4:case 5:case 3:return uh(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 353:return Bc(e);case 347:return Lc(e);case 277:{const{expression:t}=e;return qE(t)?t:void 0}case 212:const t=e;if(sh(t))return t.argumentExpression}return e.name}function $c(e){if(void 0!==e)return zc(e)||(oN(e)||aN(e)||yN(e)?Vc(e):void 0)}function Vc(e){if(e.parent){if(JA(e.parent)||GD(e.parent))return e.parent.name;if(fN(e.parent)&&e===e.parent.right){if(qE(e.parent.left))return e.parent.left;if(lS(e.parent.left))return uh(e.parent.left)}else if(GN(e.parent)&&qE(e.parent.name))return e.parent.name}}function Kc(e){if(Eb(e))return V(e.modifiers,_D)}function Uc(e){if(vb(e,126975))return V(e.modifiers,vu)}function qc(e,t){if(e.name){if(qE(e.name)){const n=e.name.escapedText;return xl(e.parent,t).filter((e=>TP(e)&&qE(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);Fn.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=xl(e.parent,t).filter(TP);if(nDP(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Xc(e){return Gc(e,!1)}function Yc(e){return Gc(e,!0)}function Qc(e){return!!Tl(e,TP)}function Zc(e){return Tl(e,_P)}function el(e){return Cl(e,FP)}function tl(e){return Tl(e,fP)}function nl(e){return Tl(e,mP)}function rl(e){return Tl(e,mP,!0)}function il(e){return Tl(e,gP)}function ol(e){return Tl(e,gP,!0)}function al(e){return Tl(e,hP)}function sl(e){return Tl(e,hP,!0)}function cl(e){return Tl(e,yP)}function ll(e){return Tl(e,yP,!0)}function ul(e){return Tl(e,vP,!0)}function _l(e){return Tl(e,xP)}function dl(e){return Tl(e,xP,!0)}function fl(e){return Tl(e,kP)}function pl(e){return Tl(e,wP)}function ml(e){return Tl(e,CP)}function gl(e){return Tl(e,DP)}function hl(e){return Tl(e,IP)}function yl(e){const t=Tl(e,EP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function vl(e){let t=Tl(e,EP);return!t&&uD(e)&&(t=O(Wc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function bl(e){const t=ml(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=yl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(DD(e)){const t=O(e.members,bD);return t&&t.type}if(CD(e)||oP(e))return e.type}}function xl(e,t){var n;if(!Oh(e))return a;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=Mh(e,t);Fn.assert(n.length<2||n[0]!==n[1]),r=X(n,(e=>cP(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function Sl(e){return xl(e,!1)}function kl(e){return xl(e,!0)}function Tl(e,t,n){return O(xl(e,n),t)}function Cl(e,t){return Sl(e).filter(t)}function wl(e,t){return Sl(e).filter((e=>e.kind===t))}function El(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>{return 328===e.kind?e.text:`{@${331===(t=e).kind?"link":332===t.kind?"linkcode":"linkplain"} ${t.name?Up(t.name):""}${t.name&&t.text.startsWith("://")?"":" "}${t.text}}`;var t})).join("")}function Dl(e){if(uP(e)){if(bP(e.parent)){const t=Kh(e.parent);if(t&&C(t.tags))return X(t.tags,(e=>DP(e)?e.typeParameters:void 0))}return a}if(Eh(e))return Fn.assert(327===e.parent.kind),X(e.parent.tags,(e=>DP(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(NF(e)&&e.typeParameters)return e.typeParameters;if(Pg(e)){const t=ab(e);if(t.length)return t;const n=vl(e);if(n&&CD(n)&&n.typeParameters)return n.typeParameters}return a}function Nl(e){return e.constraint?e.constraint:DP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Al(e){return 80===e.kind||81===e.kind}function Pl(e){return 178===e.kind||177===e.kind}function Fl(e){return QD(e)&&!!(64&e.flags)}function Il(e){return ZD(e)&&!!(64&e.flags)}function Ol(e){return eN(e)&&!!(64&e.flags)}function Ml(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function Ll(e){return Ml(e)&&!kN(e)&&!!e.questionDotToken}function Rl(e){return Ll(e.parent)&&e.parent.expression===e}function jl(e){return!Ml(e.parent)||Ll(e.parent)||e!==e.parent.expression}function Bl(e){return 226===e.kind&&61===e.operatorToken.kind}function Jl(e){return TD(e)&&qE(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function zl(e){return lF(e,8)}function $l(e){return kN(e)&&!!(64&e.flags)}function Vl(e){return 252===e.kind||251===e.kind}function Kl(e){return 280===e.kind||279===e.kind}function Ul(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function ql(e){return Ul(e)||307===e.kind||311===e.kind}function Wl(e){return 355===e.kind||348===e.kind}function Hl(e){return Gl(e.kind)}function Gl(e){return e>=166}function Xl(e){return e>=0&&e<=165}function Yl(e){return Xl(e.kind)}function Ql(e){return We(e,"pos")&&We(e,"end")}function Zl(e){return 9<=e&&e<=15}function eu(e){return Zl(e.kind)}function tu(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function nu(e){return 15<=e&&e<=18}function ru(e){return nu(e.kind)}function iu(e){const t=e.kind;return 17===t||18===t}function ou(e){return mA(e)||vA(e)}function au(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function su(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function cu(e){return au(e)||su(e)}function lu(e){return NE(e)||qE(e)}function uu(e){return 11===e.kind||nu(e.kind)}function _u(e){var t;return qE(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function du(e){var t;return WE(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function fu(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function pu(e){return(fD(e)||Ou(e))&&WE(e.name)}function mu(e){return QD(e)&&WE(e.name)}function gu(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function hu(e){return!!(16476&jb(e))}function yu(e){return hu(e)||126===e||164===e||129===e}function vu(e){return gu(e.kind)}function bu(e){const t=e.kind;return 166===t||80===t}function xu(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function Su(e){const t=e.kind;return 80===t||206===t||207===t}function ku(e){return!!e&&Du(e.kind)}function Tu(e){return!!e&&(Du(e.kind)||gD(e))}function Cu(e){return e&&Eu(e.kind)}function wu(e){return 112===e.kind||97===e.kind}function Eu(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Du(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return Eu(e)}}function Nu(e){return UA(e)||rA(e)||AN(e)&&ku(e.parent)}function Au(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function Pu(e){return e&&(263===e.kind||231===e.kind)}function Fu(e){return e&&(177===e.kind||178===e.kind)}function Iu(e){return fD(e)&&Cb(e)}function Ou(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Mu(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Lu(e){return vu(e)||_D(e)}function Ru(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t}function ju(e){return Ru(e)||Au(e)}function Bu(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function Ju(e){return cS(e.kind)}function zu(e){switch(e.kind){case 184:case 185:return!0}return!1}function $u(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function Vu(e){const t=e.kind;return 209===t||210===t}function Ku(e){const t=e.kind;return 208===t||232===t}function Uu(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function qu(e){return GN(e)||uD(e)||Gu(e)||Yu(e)}function Wu(e){return Hu(e)||Xu(e)}function Hu(e){switch(e.kind){case 206:case 210:return!0}return!1}function Gu(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Xu(e){switch(e.kind){case 207:case 209:return!0}return!1}function Yu(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Hb(e,!0)}function Qu(e){const t=e.kind;return 211===t||166===t||205===t}function Zu(e){const t=e.kind;return 211===t||166===t}function e_(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function t_(e){return 213===e.kind||214===e.kind}function n_(e){const t=e.kind;return 228===t||15===t}function r_(e){return i_(zl(e).kind)}function i_(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function o_(e){return a_(zl(e).kind)}function a_(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return i_(e)}}function s_(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function c_(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return eu(e)}}function l_(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return a_(e)}}(zl(e).kind)}function u_(e){const t=e.kind;return 216===t||234===t}function __(e){return xA(e)||wN(e)}function d_(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&d_(e.statement,t)}return!1}function f_(e){return gA(e)||hA(e)}function p_(e){return le(e,f_)}function m_(e){return!(Lp(e)||gA(e)||vb(e,1)||gp(e))}function g_(e){return Lp(e)||gA(e)||vb(e,1)}function h_(e){return 249===e.kind||250===e.kind}function y_(e){return AN(e)||l_(e)}function v_(e){return AN(e)}function b_(e){return XN(e)||l_(e)}function x_(e){const t=e.kind;return 268===t||267===t||80===t}function S_(e){const t=e.kind;return 268===t||267===t}function k_(e){const t=e.kind;return 80===t||267===t}function T_(e){const t=e.kind;return 275===t||274===t}function C_(e){return 267===e.kind||266===e.kind}function w_(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function E_(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function D_(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function N_(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||359===e}function A_(e){return 168===e.kind?e.parent&&352!==e.parent.kind||Pg(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||353===t||345===t||355===t;var t}function P_(e){return D_(e.kind)}function F_(e){return N_(e.kind)}function I_(e){const t=e.kind;return N_(t)||D_(t)||function(e){return 241===e.kind&&((void 0===e.parent||258!==e.parent.kind&&299!==e.parent.kind)&&!jm(e))}(e)}function O_(e){const t=e.kind;return N_(t)||D_(t)||241===t}function M_(e){const t=e.kind;return 283===t||166===t||80===t}function L_(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function R_(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function j_(e){const t=e.kind;return 291===t||293===t}function B_(e){const t=e.kind;return 11===t||294===t}function J_(e){const t=e.kind;return 286===t||285===t}function z_(e){const t=e.kind;return 296===t||297===t}function $_(e){return e.kind>=316&&e.kind<=357}function V_(e){return 327===e.kind||326===e.kind||328===e.kind||td(e)||K_(e)||lP(e)||uP(e)}function K_(e){return e.kind>=334&&e.kind<=357}function U_(e){return 178===e.kind}function q_(e){return 177===e.kind}function W_(e){if(!Oh(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function H_(e){return!!e.type}function G_(e){return!!e.initializer}function X_(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Y_(e){return 291===e.kind||293===e.kind||Bu(e)}function Q_(e){return 183===e.kind||233===e.kind}function Z_(e){let t=Ws;for(const n of e){if(!n.length)continue;let e=0;for(;ee.kind===t))}function cf(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function lf(e){return 0!=(33554432&e.flags)}function uf(e,t){return e.configFilePath!==t.configFilePath||_f(e,t)}function _f(e,t){return ff(e,t,bO)}function df(e,t){return ff(e,t,SO)}function ff(e,t,n){return e!==t&&n.some((n=>!bT(Sk(e,n),Sk(t,n))))}function pf(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(UA(e))return;e=e.parent}}function mf(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function gf(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function hf(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function yf(e){const t=cd.getText();try{return e(cd),cd.getText()}finally{cd.clear(),cd.writeKeyword(t)}}function vf(e){return e.end-e.pos}function bf(e,t,n){var r,i;return null==(i=null==(r=null==e?void 0:e.resolvedModules)?void 0:r.get(t,n))?void 0:i.resolvedModule}function xf(e,t,n,r){e.resolvedModules||(e.resolvedModules=nR()),e.resolvedModules.set(t,r,n)}function Sf(e,t,n,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=nR()),e.resolvedTypeReferenceDirectiveNames.set(t,r,n)}function kf(e,t,n){var r,i;return null==(i=null==(r=null==e?void 0:e.resolvedTypeReferenceDirectiveNames)?void 0:r.get(t,n))?void 0:i.resolvedTypeReferenceDirective}function Tf(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Cf(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&((n=e.resolvedModule.packageId)===(r=t.resolvedModule.packageId)||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version)&&e.node10Result===t.node10Result;var n,r}function wf(e,t,n,r,i){var o,a;const s=null==(a=null==(o=e.resolvedModules)?void 0:o.get(n,r))?void 0:a.node10Result,c=s?RS(void 0,Ra.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,s,s.indexOf(wL+"@types/")>-1?`@types/${ej(i)}`:i):t.typesPackageExists(i)?RS(void 0,Ra.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,i,ej(i)):t.packageBundlesTypes(i)?RS(void 0,Ra.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):RS(void 0,Ra.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,ej(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function Ef({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Df(e){return`${Ef(e)}@${e.version}`}function Nf(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function Af(e,t,n,r,i,o){Fn.assert(e.length===n.length);for(let a=0;a=0),ds(t)[e]}function Rf(e){const t=Ff(e),n=gs(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function jf(e,t){Fn.assert(e>=0);const n=ds(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(Fn.assert(vs(i.charCodeAt(t)));e<=t&&vs(i.charCodeAt(t));)t--;return t}}function Bf(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Jf(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function zf(e){return!Jf(e)}function $f(e,t){return lD(e)?t===e.expression:gD(e)?t===e.modifiers:dD(e)?t===e.initializer:fD(e)?t===e.questionToken&&Iu(e):JA(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Vf(e.modifiers,t,Lu):zA(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Vf(e.modifiers,t,Lu):mD(e)?t===e.exclamationToken:hD(e)?t===e.typeParameters||t===e.type||Vf(e.typeParameters,t,lD):yD(e)?t===e.typeParameters||Vf(e.typeParameters,t,lD):vD(e)?t===e.typeParameters||t===e.type||Vf(e.typeParameters,t,lD):!!oA(e)&&(t===e.modifiers||Vf(e.modifiers,t,Lu))}function Vf(e,t,n){return!(!e||gt(t)||!n(t))&&B(e,t)}function Kf(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r[`${gs(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return Ze(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){return!!n.has(`${e}`)&&(r.set(`${e}`,!0),!0)}}}function ep(e,t,n){return Jf(e)?e.pos:$_(e)||12===e.kind?Ts((t||Ff(e)).text,e.pos,!1,!0):n&&W_(e)?ep(e.jsDoc[0],t):358===e.kind&&e._children.length>0?ep(e._children[0],t,n):Ts((t||Ff(e)).text,e.pos,!1,!1,Og(e))}function tp(e,t){const n=!Jf(e)&&nI(e)?M(e.modifiers,_D):void 0;return n?Ts((t||Ff(e)).text,n.end):ep(e,t)}function np(e,t,n=!1){return ip(e.text,t,n)}function rp(e){return!!(hA(e)&&e.exportClause&&fA(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function ip(e,t,n=!1){if(Jf(t))return"";let r=e.substring(n?t.pos:Ts(e,t.pos),t.end);return function(e){return!!Dc(e,HA)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>v(e.replace(/^\s*\*/,"")))).join("\n")),r}function op(e,t=!1){return np(Ff(e),e,t)}function ap(e){return e.pos}function sp(e,t){return Ke(e,t,ap,Bt)}function cp(e){const t=e.emitNode;return t&&t.flags||0}function lp(e){const t=e.emitNode;return t&&t.internalFlags||0}function up(){return new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:a})),AsyncIterator:new Map(Object.entries({es2015:a})),Atomics:new Map(Object.entries({es2017:a})),SharedArrayBuffer:new Map(Object.entries({es2017:a})),AsyncIterable:new Map(Object.entries({es2018:a})),AsyncIterableIterator:new Map(Object.entries({es2018:a})),AsyncGenerator:new Map(Object.entries({es2018:a})),AsyncGeneratorFunction:new Map(Object.entries({es2018:a})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:a,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:a})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:a,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:a,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))}function _p(e,t,n){if(t&&function(e,t){if(tv(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(EE(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!DE(e)}(e,n))return np(t,e);switch(e.kind){case 11:{const t=2&n?hv:1&n||16777216&cp(e)?pv:mv;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&cp(e)?pv:mv,r=e.rawText??t(e.text,96).replace(bd,"\\${");switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return"}"+r+"${";case 18:return"}"+r+"`"}break}case 9:case 10:return e.text;case 14:return 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return Fn.fail(`Literal kind '${e.kind}' not accounted for.`)}function dp(e){return yt(e)?'"'+mv(e)+'"':""+e}function fp(e){return aa(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function pp(e){return 0!=(7&Tc(e))||mp(e)}function mp(e){const t=Zy(e);return 260===t.kind&&299===t.parent.kind}function gp(e){return nA(e)&&(11===e.name.kind||Sp(e))}function hp(e){return nA(e)&&11===e.name.kind}function yp(e){return nA(e)&&NE(e.name)}function vp(e){return nA(e)||qE(e)}function bp(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function xp(e){return 312===e.kind||267===e.kind||Tu(e)}function Sp(e){return!!(2048&e.flags)}function kp(e){return gp(e)&&Tp(e)}function Tp(e){switch(e.parent.kind){case 312:return HI(e.parent);case 268:return gp(e.parent.parent)&&UA(e.parent.parent.parent)&&!HI(e.parent.parent.parent)}return!1}function Cp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(kp(e)||nA(e)&&Sp(e))))}function wp(e,t){return HI(e)||(1===(n=GS(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function Ep(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(e.isDeclarationFile||!mk(t,"alwaysStrict")&&!rF(e.statements)&&(!HI(e)&&!ek(t)||!(GS(t)>=5)&&t.noImplicitUseStrict))}function Dp(e){return!!(33554432&e.flags)||vb(e,2)}function Np(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!Tu(t)}return!1}function Ap(e){switch(Fn.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Pp(e)}}function Pp(e){switch(Fn.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Fp(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Ip(e){return Fp(e)||jg(e)}function Op(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Mp(e){return Lp(e)||nA(e)||KD(e)||pm(e)}function Lp(e){return Fp(e)||hA(e)}function Rp(e){return Dc(e.parent,(e=>!!(1&kj(e))))}function jp(e){return Dc(e.parent,(e=>Np(e,e.parent)))}function Bp(e,t){let n=jp(e);for(;n;)t(n),n=jp(n)}function Jp(e){return e&&0!==vf(e)?op(e):"(Missing)"}function zp(e){return e.declaration?Jp(e.declaration.parameters[0].name):void 0}function $p(e){return 167===e.kind&&!Oy(e.expression)}function Vp(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 15:return Pc(e.text);case 167:return Oy(e.expression)?Pc(e.expression.text):void 0;case 295:return fC(e);default:return Fn.assertNever(e)}}function Kp(e){return Fn.checkDefined(Vp(e))}function Up(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===vf(e)?Ic(e):op(e);case 166:return Up(e.left)+"."+Up(e.right);case 211:return qE(e.name)||WE(e.name)?Up(e.expression)+"."+Up(e.name):Fn.assertNever(e.name);case 318:return Up(e.left)+Up(e.right);case 295:return Up(e.namespace)+":"+Up(e.name);default:return Fn.assertNever(e)}}function qp(e,t,...n){return Hp(Ff(e),e,t,...n)}function Wp(e,t,n,...r){const i=Ts(e.text,t.pos);return IS(e,i,t.end-i,n,...r)}function Hp(e,t,n,...r){const i=im(e,t);return IS(e,i.start,i.length,n,...r)}function Gp(e,t,n,r){const i=im(e,t);return Qp(e,i.start,i.length,n,r)}function Xp(e,t,n,r){const i=Ts(e.text,t.pos);return Qp(e,i,t.end-i,n,r)}function Yp(e,t,n){Fn.assertGreaterThanOrEqual(t,0),Fn.assertGreaterThanOrEqual(n,0),e&&(Fn.assertLessThanOrEqual(t,e.text.length),Fn.assertLessThanOrEqual(t+n,e.text.length))}function Qp(e,t,n,r,i){return Yp(e,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i}}function Zp(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function em(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function tm(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function nm(e,t){const n=zs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),_c(n.getTokenStart(),n.getTokenEnd())}function rm(e,t){const n=zs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function im(e,t){let n=t;switch(t.kind){case 312:{const t=Ts(e.text,0,!1);return t===e.text.length?uc(0,0):nm(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=Ts(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=gs(e,t.body.pos),{line:i}=gs(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 253:case 229:return nm(e,Ts(e.text,t.pos));case 238:return nm(e,Ts(e.text,t.expression.end));case 357:return nm(e,Ts(e.text,t.tagName.pos))}if(void 0===n)return nm(e,t.pos);Fn.assert(!cP(n));const r=Jf(n),i=r||AE(t)?n.pos:Ts(e.text,n.pos);return r?(Fn.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Fn.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(Fn.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Fn.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),_c(i,n.end)}function om(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function am(e){return 6===e.scriptKind}function sm(e){return!!(2048&Sc(e))}function cm(e){return!(!(64&Sc(e))||hc(e,e.parent))}function lm(e){return 6==(7&Tc(e))}function um(e){return 4==(7&Tc(e))}function _m(e){return 2==(7&Tc(e))}function dm(e){return 1==(7&Tc(e))}function fm(e){return 213===e.kind&&108===e.expression.kind}function pm(e){return 213===e.kind&&102===e.expression.kind}function mm(e){return TN(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function gm(e){return KD(e)&&VD(e.argument)&&NE(e.argument.literal)}function hm(e){return 244===e.kind&&11===e.expression.kind}function ym(e){return!!(2097152&cp(e))}function vm(e){return ym(e)&&YN(e)}function bm(e){return qE(e.name)&&!e.initializer}function xm(e){return ym(e)&&PN(e)&&I(e.declarationList.declarations,bm)}function Sm(e,t){return 12!==e.kind?Ms(t.text,e.pos):void 0}function km(e,t){return V(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?_e(Ls(t,e.pos),Ms(t,e.pos)):Ms(t,e.pos),(e=>42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)))}function Tm(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return jA(e.parent)&&!Yb(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),Fn.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return jA(t.parent)&&!Yb(t);case 168:case 352:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return B(t.typeArguments,e)}}}return!1}function Cm(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function wm(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return zI(n,e)}}(e)}function Em(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(ku(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else Tm(n)||zI(n,e)}}(e)}function Dm(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?Je(e.typeArguments):void 0}function Nm(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Am(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Pm(e){return Am(e)||Fu(e)}function Fm(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function Im(e){return!!Pg(e)&&(YD(e.parent)&&fN(e.parent.parent)&&2===nh(e.parent.parent)||Om(e.parent))}function Om(e){return!!Pg(e)&&fN(e)&&1===nh(e)}function Mm(e){return(GN(e)?_m(e)&&qE(e.name)&&Fm(e):fD(e)?wb(e)&&xb(e):dD(e)&&wb(e))||Om(e)}function Lm(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Rm(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function jm(e){return e&&241===e.kind&&ku(e.parent)}function Bm(e){return e&&174===e.kind&&210===e.parent.kind}function Jm(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function zm(e){return e&&1===e.kind}function $m(e){return e&&0===e.kind}function Vm(e,t,n,r){return w(null==e?void 0:e.properties,(e=>{if(!JA(e))return;const i=Vp(e.name);return t===i||r&&r===i?n(e):void 0}))}function Km(e,t,n){return Vm(e,t,(e=>XD(e.initializer)?O(e.initializer.elements,(e=>NE(e)&&e.text===n)):void 0))}function Um(e){if(e&&e.statements.length)return bt(e.statements[0].expression,YD)}function qm(e,t,n){return Wm(e,t,(e=>XD(e.initializer)?O(e.initializer.elements,(e=>NE(e)&&e.text===n)):void 0))}function Wm(e,t,n){return Vm(Um(e),t,n)}function Hm(e){return Dc(e.parent,ku)}function Gm(e){return Dc(e.parent,Cu)}function Xm(e){return Dc(e.parent,Pu)}function Ym(e){return Dc(e.parent,(e=>Pu(e)||ku(e)?"quit":gD(e)))}function Qm(e){return Dc(e.parent,Tu)}function Zm(e){const t=Dc(e.parent,(e=>Pu(e)?"quit":_D(e)));return t&&Pu(t.parent)?Xm(t.parent):Xm(t??e)}function eg(e,t,n){for(Fn.assert(312!==e.kind);;){if(!(e=e.parent))return Fn.fail();switch(e.kind){case 167:if(n&&Pu(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&Au(e.parent.parent)?e=e.parent.parent:Au(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function tg(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function ng(e){return qE(e)&&(QN(e.parent)||YN(e.parent))&&e.parent.name===e&&(e=e.parent),UA(eg(e,!0,!1))}function rg(e){const t=eg(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function ig(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&Au(e.parent.parent)?e=e.parent.parent:Au(e.parent)&&(e=e.parent)}}}function og(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function ag(e){return 108===e.kind||sg(e)}function sg(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function cg(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function lg(e){var t;return!!e&&GN(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function ug(e){return!!e&&(zA(e)||JA(e))&&fN(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function _g(e){switch(e.kind){case 183:return e.typeName;case 233:return Qb(e.expression)?e.expression:void 0;case 80:case 166:return e}}function dg(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;default:return e.expression}}function fg(e,t,n,r){if(e&&Jc(t)&&WE(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?QN(n):Pu(n)&&!kb(t)&&!Tb(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?QN(n):Pu(n));case 169:return!!e&&void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&Xv(n)!==t&&void 0!==r&&263===r.kind}return!1}function pg(e,t,n,r){return Eb(t)&&fg(e,t,n,r)}function mg(e,t,n,r){return pg(e,t,n,r)||gg(e,t,n)}function gg(e,t,n){switch(t.kind){case 263:return le(t.members,(r=>mg(e,r,t,n)));case 231:return!e&&le(t.members,(r=>mg(e,r,t,n)));case 174:case 178:case 176:return le(t.parameters,(r=>pg(e,r,t,n)));default:return!1}}function hg(e,t){if(pg(e,t))return!0;const n=Wv(t);return!!n&&gg(e,n,t)}function yg(e,t,n){let r;if(Fu(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=nb(n.members,t),a=Eb(e)?e:i&&Eb(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else mD(t)&&(r=t.parameters);if(pg(e,t,n))return!0;if(r)for(const i of r)if(!Yv(i)&&pg(e,i,t,n))return!0;return!1}function vg(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return vg(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function bg(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function xg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!jA(e.parent)&&!_P(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||td(e.parent)||GA(e.parent)||XA(e.parent)||bg(e);case 318:for(;XA(e.parent);)e=e.parent;return 186===e.parent.kind||td(e.parent)||GA(e.parent)||XA(e.parent)||bg(e);case 81:return fN(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||td(e.parent)||GA(e.parent)||XA(e.parent)||bg(e))return!0;case 9:case 10:case 11:case 15:case 110:return Sg(e);default:return!1}}function Sg(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Tm(t);case 304:return t.objectAssignmentInitializer===e;default:return xg(t)}}function kg(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function Tg(e){return fA(e)&&!!e.parent.moduleSpecifier}function Cg(e){return 271===e.kind&&283===e.moduleReference.kind}function wg(e){return Fn.assert(Cg(e)),e.moduleReference.expression}function Eg(e){return jg(e)&&fS(e.initializer).arguments[0]}function Dg(e){return 271===e.kind&&283!==e.moduleReference.kind}function Ng(e){return Pg(e)}function Ag(e){return!Pg(e)}function Pg(e){return!!e&&!!(524288&e.flags)}function Fg(e){return!!e&&!!(134217728&e.flags)}function Ig(e){return!am(e)}function Og(e){return!!e&&!!(16777216&e.flags)}function Mg(e){return TD(e)&&qE(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Lg(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||ed(i)}function Rg(e){return Jg(e,!1)}function jg(e){return Jg(e,!0)}function Bg(e){return GD(e)&&jg(e.parent.parent)}function Jg(e,t){return GN(e)&&!!e.initializer&&Lg(t?fS(e.initializer):e.initializer,!0)}function zg(e){return PN(e)&&e.declarationList.declarations.length>0&&I(e.declarationList.declarations,(e=>Rg(e)))}function $g(e){return 39===e||34===e}function Vg(e,t){return 34===np(t,e).charCodeAt(0)}function Kg(e){return fN(e)||lS(e)||qE(e)||eN(e)}function Ug(e){return Pg(e)&&e.initializer&&fN(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&Qb(e.name)&&Yg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function qg(e){const t=Ug(e);return t&&Hg(t,rx(e.name))}function Wg(e){if(e&&e.parent&&fN(e.parent)&&64===e.parent.operatorToken.kind){const t=rx(e.parent.left);return Hg(e.parent.right,t)||function(e,t,n){const r=fN(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&Hg(t.right,n);if(r&&Yg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&eN(e)&&rh(e)){const t=function(e,t){return w(e.properties,(e=>JA(e)&&qE(e.name)&&"value"===e.name.escapedText&&e.initializer&&Hg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function Hg(e,t){if(eN(e)){const t=ny(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||YD(e)&&(0===e.properties.length||t)?e:void 0}function Gg(e){const t=GN(e.parent)?e.parent.name:fN(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&Hg(e.right,rx(t))&&Qb(t)&&Yg(t,e.left)}function Xg(e){if(fN(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!fN(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&qE(t.left))return t.left}else if(GN(e.parent))return e.parent.name}function Yg(e,t){return By(e)&&By(t)?Jy(e)===Jy(t):Al(e)&&ih(t)&&(110===t.expression.kind||qE(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Yg(e,lh(t)):!(!ih(e)||!ih(t))&&_h(e)===_h(t)&&Yg(e.expression,t.expression)}function Qg(e){for(;Hb(e,!0);)e=e.right;return e}function Zg(e){return qE(e)&&"exports"===e.escapedText}function eh(e){return qE(e)&&"module"===e.escapedText}function th(e){return(QD(e)||oh(e))&&eh(e.expression)&&"exports"===_h(e)}function nh(e){const t=function(e){if(eN(e)){if(!rh(e))return 0;const t=e.arguments[0];return Zg(t)||th(t)?8:ah(t)&&"prototype"===_h(t)?9:7}return 64!==e.operatorToken.kind||!lS(e.left)||lN(t=Qg(e))&&EE(t.expression)&&"0"===t.expression.text?0:ch(e.left.expression,!0)&&"prototype"===_h(e.left)&&YD(fh(e))?6:dh(e.left);var t}(e);return 5===t||Pg(e)?t:0}function rh(e){return 3===C(e.arguments)&&QD(e.expression)&&qE(e.expression.expression)&&"Object"===Ic(e.expression.expression)&&"defineProperty"===Ic(e.expression.name)&&Oy(e.arguments[1])&&ch(e.arguments[0],!0)}function ih(e){return QD(e)||oh(e)}function oh(e){return ZD(e)&&Oy(e.argumentExpression)}function ah(e,t){return QD(e)&&(!t&&110===e.expression.kind||qE(e.name)&&ch(e.expression,!0))||sh(e,t)}function sh(e,t){return oh(e)&&(!t&&110===e.expression.kind||Qb(e.expression)||ah(e.expression,!0))}function ch(e,t){return Qb(e)||ah(e,t)}function lh(e){return QD(e)?e.name:e.argumentExpression}function uh(e){if(QD(e))return e.name;const t=ny(e.argumentExpression);return EE(t)||ed(t)?t:e}function _h(e){const t=uh(e);if(t){if(qE(t))return t.escapedText;if(ed(t)||EE(t))return Pc(t.text)}}function dh(e){if(110===e.expression.kind)return 4;if(th(e))return 2;if(ch(e.expression,!0)){if(rx(e.expression))return 3;let t=e;for(;!qE(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===_h(t))&&ah(e))return 1;if(ch(e,!0)||ZD(e)&&Ry(e))return 5}return 0}function fh(e){for(;fN(e.right);)e=e.right;return e.right}function ph(e){return fN(e)&&3===nh(e)}function mh(e){return Pg(e)&&e.parent&&244===e.parent.kind&&(!ZD(e)||oh(e))&&!!yl(e.parent)}function gh(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Pg(t)||33554432&n.flags)&&Kg(n)&&!Kg(t)||n.kind!==t.kind&&vp(n))&&(e.valueDeclaration=t)}function hh(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||GN(t)&&t.initializer&&ku(t.initializer)}function yh(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=Dc(e.initializer,(e=>Lg(e,!0))))?void 0:t.arguments[0];case 272:return bt(e.moduleSpecifier,ed);case 271:return bt(null==(n=bt(e.moduleReference,kA))?void 0:n.expression,ed);case 273:case 280:return bt(e.parent.moduleSpecifier,ed);case 274:case 281:return bt(e.parent.parent.moduleSpecifier,ed);case 276:return bt(e.parent.parent.parent.moduleSpecifier,ed);default:Fn.assertNever(e)}}function vh(e){return bh(e)||Fn.failBadSyntaxKind(e.parent)}function bh(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return pm(e.parent)||Lg(e.parent,!1)?e.parent:void 0;case 201:return Fn.assert(NE(e)),bt(e.parent.parent,KD);default:return}}function xh(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return gm(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return Fn.assertNever(e)}}function Sh(e){switch(e.kind){case 272:return e.importClause&&bt(e.importClause.namedBindings,dA);case 271:return e;case 278:return e.exportClause&&bt(e.exportClause,fA);default:return Fn.assertNever(e)}}function kh(e){return 272===e.kind&&!!e.importClause&&!!e.importClause.name}function Th(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=dA(e.namedBindings)?t(e.namedBindings):w(e.namedBindings.elements,t);if(n)return n}}function Ch(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function wh(e){const t=oP(e)?Oe(e.parameters):void 0,n=bt(t&&t.name,qE);return!!n&&"new"===n.escapedText}function Eh(e){return 353===e.kind||345===e.kind||347===e.kind}function Dh(e){return Eh(e)||eA(e)}function Nh(e){return IN(e)&&fN(e.expression)&&0!==nh(e.expression)&&fN(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Ah(e){switch(e.kind){case 243:const t=Ph(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Ph(e){return PN(e)?Oe(e.declarationList.declarations):void 0}function Fh(e){return nA(e)&&e.body&&267===e.body.kind?e.body:void 0}function Ih(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Oh(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Mh(e,t){let n;Am(e)&&G_(e)&&W_(e.initializer)&&(n=we(n,Lh(e,Be(e.initializer.jsDoc))));let r=e;for(;r&&r.parent;){if(W_(r)&&(n=we(n,Lh(e,Be(r.jsDoc)))),169===r.kind){n=we(n,(t?Hc:Wc)(r));break}if(168===r.kind){n=we(n,(t?Yc:Xc)(r));break}r=jh(r)}return n||a}function Lh(e,t){if(cP(t)){const n=V(t.tags,(t=>Rh(e,t)));return t.tags===n?[t]:n}return Rh(e,t)?[t]:void 0}function Rh(e,t){return!((EP(t)||IP(t))&&t.parent&&cP(t.parent)&&iN(t.parent.parent)&&t.parent.parent!==e)}function jh(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Fh(t)||fN(e)&&64===e.operatorToken.kind?t:t.parent&&(Ph(t.parent)===e||fN(t)&&64===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Ph(t.parent.parent)||Ah(t.parent.parent)===e||Nh(t.parent.parent))?t.parent.parent:void 0}function Bh(e){if(e.symbol)return e.symbol;if(!qE(e.name))return;const t=e.name.escapedText,n=zh(e);if(!n)return;const r=O(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Jh(e){if(cP(e.parent)&&e.parent.tags){const t=O(e.parent.tags,Eh);if(t)return t}return zh(e)}function zh(e){const t=$h(e);if(t)return dD(t)&&t.type&&ku(t.type)?t.type:ku(t)?t:void 0}function $h(e){const t=Vh(e);if(t)return Nh(t)||function(e){return IN(e)&&fN(e.expression)&&64===e.expression.operatorToken.kind?Qg(e.expression):void 0}(t)||Ah(t)||Ph(t)||Fh(t)||t}function Vh(e){const t=Kh(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===je(n.jsDoc)?n:void 0}function Kh(e){return Dc(e.parent,cP)}function Uh(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&O(n,(e=>e.name.escapedText===t))}function qh(e){return!!e.typeArguments}function Wh(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t.operatorToken.kind;return Ub(n)&&t.left===e?64===n||zb(n)?1:2:0;case 224:case 225:const r=t.operator;return 46===r||47===r?2:0;case 249:case 250:return t.initializer===e?1:0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return 0;e=t.parent;break;case 303:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Hh(e){return 0!==Wh(e)}function Gh(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Xh(e){return oN(e)||aN(e)||Ou(e)||YN(e)||hD(e)}function Yh(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Qh(e){return Yh(e,196)}function Zh(e){return Yh(e,217)}function ey(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function ty(e){for(;jD(e);)e=e.type;return e}function ny(e,t){return lF(e,t?17:1)}function ry(e){return(211===e.kind||212===e.kind)&&(e=Zh(e.parent))&&220===e.kind}function iy(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function oy(e){return!UA(e)&&!$u(e)&&A_(e.parent)&&e.parent.name===e}function ay(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(cD(t))return t.parent;case 80:if(A_(t))return t.name===e?t:void 0;if(sD(t)){const e=t.parent;return TP(e)&&e.name===t?e:void 0}{const n=t.parent;return fN(n)&&0!==nh(n)&&(n.left.symbol||n.symbol)&&$c(n)===e?n:void 0}case 81:return A_(t)&&t.name===e?t:void 0;default:return}}function sy(e){return Oy(e)&&167===e.parent.kind&&A_(e.parent.parent)}function cy(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function ly(e){return!!(271===e.kind||270===e.kind||273===e.kind&&e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&dy(e))||Pg(e)&&(fN(e)&&2===nh(e)&&dy(e)||QD(e)&&fN(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&_y(e.parent.right))}function uy(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return uy(e)}}function _y(e){return Qb(e)||yN(e)}function dy(e){return _y(fy(e))}function fy(e){return gA(e)?e.expression:e.right}function py(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function my(e){const t=gy(e);if(t&&Pg(e)){const t=Zc(e);if(t)return t.class}return t}function gy(e){const t=by(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function hy(e){if(Pg(e))return el(e).map((e=>e.class));{const t=by(e.heritageClauses,119);return null==t?void 0:t.types}}function yy(e){return ZN(e)?vy(e)||a:Pu(e)&&_e(xn(my(e)),hy(e))||a}function vy(e){const t=by(e.heritageClauses,96);return t?t.types:void 0}function by(e,t){if(e)for(const n of e)if(n.token===t)return n}function xy(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Sy(e){return 83<=e&&e<=165}function ky(e){return 19<=e&&e<=79}function Ty(e){return Sy(e)||ky(e)}function Cy(e){return 128<=e&&e<=165}function wy(e){return Sy(e)&&!Cy(e)}function Ey(e){return 119<=e&&e<=127}function Dy(e){const t=cs(e);return void 0!==t&&wy(t)}function Ny(e){const t=cs(e);return void 0!==t&&Sy(t)}function Ay(e){const t=Oc(e);return!!t&&!Cy(t)}function Py(e){return 2<=e&&e<=7}function Fy(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:vb(e,512)&&(t|=2)}return e.body||(t|=4),t}function Iy(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&vb(e,512)}return!1}function Oy(e){return ed(e)||EE(e)}function My(e){return _N(e)&&(40===e.operator||41===e.operator)&&EE(e.operand)}function Ly(e){const t=$c(e);return!!t&&Ry(t)}function Ry(e){if(167!==e.kind&&212!==e.kind)return!1;const t=ZD(e)?ny(e.argumentExpression):e.expression;return!Oy(t)&&!My(t)}function jy(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 9:return Pc(e.text);case 167:const t=e.expression;return Oy(t)?Pc(t.text):My(t)?41===t.operator?ss(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return fC(e);default:return Fn.assertNever(e)}}function By(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Jy(e){return Al(e)?Ic(e):MA(e)?pC(e):e.text}function zy(e){return Al(e)?e.escapedText:MA(e)?fC(e):Pc(e.text)}function $y(e){return`__@${xB(e)}@${e.escapedName}`}function Vy(e,t){return`__#${xB(e)}@${t}`}function Ky(e){return fn(e.escapedName,"__@")}function Uy(e){return fn(e.escapedName,"__#")}function qy(e){return 80===e.kind&&"Symbol"===e.escapedText}function Wy(e){return qE(e)?"__proto__"===Ic(e):NE(e)&&"__proto__"===e.text}function Hy(e,t){switch((e=lF(e)).kind){case 231:if(dz(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function Gy(e){switch(e.kind){case 303:return!Wy(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return qE(e.name)&&!!e.initializer;case 169:case 208:return qE(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return qE(e.left)}break;case 277:return!0}return!1}function Xy(e,t){if(!Gy(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return Hy(e.initializer,t);case 304:return Hy(e.objectAssignmentInitializer,t);case 226:return Hy(e.right,t);case 277:return Hy(e.expression,t)}}function Yy(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Qy(e){return 169===Zy(e).kind}function Zy(e){for(;208===e.kind;)e=e.parent.parent;return e}function ev(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||312===t}function tv(e){return aT(e.pos)||aT(e.end)}function nv(e){return Ac(e,UA)||e}function rv(e){const t=av(e),n=214===e.kind&&void 0!==e.arguments;return iv(e.kind,t,n)}function iv(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function ov(e){const t=av(e),n=214===e.kind&&void 0!==e.arguments;return sv(e.kind,t,n)}function av(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}function sv(e,t,n){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return cv(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function cv(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function lv(e){return V(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function uv(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),ge(t,i.file.fileName,Kt))):(r&&(r=!1,e=e.slice()),o=e),ge(o,i,zS)},lookup:function(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;const i=Ke(r,t,wt,zS);return i>=0?r[i]:void 0},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=Y(t,(e=>n.get(e)));return e.length?(i.unshift(...e),i):i}}}function _v(e){return e&&!!(FE(e)?e.templateFlags:e.head.templateFlags||le(e.templateSpans,(e=>!!e.literal.templateFlags)))}function dv(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function fv(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Td.get(e)||dv(e.charCodeAt(0))}function pv(e,t){const n=96===t?kd:39===t?Sd:xd;return e.replace(n,fv)}function mv(e,t){return e=pv(e,t),Cd.test(e)?e.replace(Cd,(e=>dv(e.charCodeAt(0)))):e}function gv(e){return 0===e.charCodeAt(0)?"�":Dd.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function hv(e,t){const n=39===t?Ed:wd;return e.replace(n,gv)}function yv(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function vv(e){const t=e.charCodeAt(0);return t>=97&&t<=122||nn(e,"-")}function bv(e){const t=Nd[1];for(let n=Nd.length;n<=e;n++)Nd.push(Nd[n-1]+t);return Nd[e]}function xv(){return Nd[1].length}function Sv(){return nn(t,"-dev")||nn(t,"-insiders")}function kv(e){var t,n,r,i,o,a=!1;function s(e){const n=ls(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+Be(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=bv(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function u(){t="",n=0,r=!0,i=0,o=0,a=!1}return u(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*xv():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&hs(t.charCodeAt(t.length-1)),clear:u,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)},getTextPosWithWriteLine:function(){return r?t.length:t.length+e.length}}}function Tv(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function Cv(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function wv(e){return ln(Cv(e))}function Ev(e,t,n){return t.moduleName||Av(e,t.fileName,n&&n.fileName)}function Dv(e,t){return e.getCanonicalFileName(ga(t,e.getCurrentDirectory()))}function Nv(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=xh(n);return i&&ed(i)&&!Xo(i.text)&&-1===Dv(e,r.path).indexOf(Dv(e,xa(e.getCommonSourceDirectory())))?void 0:Ev(e,r)}function Av(e,t,n){const r=t=>e.getCanonicalFileName(t),i=va(n?oa(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=eT(Oa(i,ga(t,e.getCurrentDirectory()),i,r,!1));return n?Sa(o):o}function Pv(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?eT(Jv(e,t,r.outDir)):eT(e),i+n}function Fv(e,t){return Iv(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Iv(e,t,n,r,i){const o=t.declarationDir||t.outDir,a=o?zv(e,o,n,r,i):e,s=Ov(a);return eT(a)+s}function Ov(e){return ea(e,[".mjs",".mts"])?".d.mts":ea(e,[".cjs",".cts"])?".d.cts":ea(e,[".json"])?".d.json.ts":".d.ts"}function Mv(e){return ea(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:ea(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:ea(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Lv(e){return e.outFile||e.out}function Rv(e,t){var n;if(e.paths)return e.baseUrl??Fn.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function jv(e,t,n){const r=e.getCompilerOptions();if(Lv(r)){const t=GS(r),i=r.emitDeclarationOnly||2===t||4===t;return V(e.getSourceFiles(),(t=>(i||!HI(t))&&Bv(t,e,n)))}return V(void 0===t?e.getSourceFiles():[t],(t=>Bv(t,e,n)))}function Bv(e,t,n){return!(t.getCompilerOptions().noEmitForJsFiles&&Ng(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(n||!(am(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Jv(e,t,n){return zv(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function zv(e,t,n,r,i){let o=ga(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,fa(t,o)}function $v(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(MS(Ra.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function Vv(e,t,n){e.length>ia(e)&&!n(e)&&(Vv(oa(e),t,n),t(e))}function Kv(e,t,n,r,i,o){try{r(e,t,n)}catch{Vv(oa(ha(e)),i,o),r(e,t,n)}}function Uv(e,t){return ps(ds(e),t)}function qv(e,t){return ps(e,t)}function Wv(e){return O(e.members,(e=>hD(e)&&zf(e.body)))}function Hv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&Yv(e.parameters[0]);return e.parameters[t?1:0]}}function Gv(e){const t=Hv(e);return t&&t.type}function Xv(e){if(e.parameters.length&&!uP(e)){const t=e.parameters[0];if(Yv(t))return t}}function Yv(e){return Qv(e.name)}function Qv(e){return!!e&&80===e.kind&&tb(e)}function Zv(e){return!!Dc(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function eb(e){if(!Qv(e))return!1;for(;sD(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function tb(e){return"this"===e.escapedText}function nb(e,t){let n,r,i,o;return Ly(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:Fn.fail("Accessor has wrong kind")):w(e,(e=>{Fu(e)&&bb(e)===bb(t)&&jy(e.name)===jy(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function rb(e){if(!Pg(e)&&YN(e))return;const t=e.type;return t||!Pg(e)?t:Wl(e)?e.typeExpression&&e.typeExpression.type:vl(e)}function ib(e){return e.type}function ob(e){return uP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Pg(e)?bl(e):void 0)}function ab(e){return X(Sl(e),(e=>function(e){return DP(e)&&!(327===e.parent.kind&&(e.parent.tags.some(Eh)||e.parent.tags.some(bP)))}(e)?e.typeParameters:void 0))}function sb(e){const t=Hv(e);return t&&rb(t)}function cb(e,t,n,r){lb(e,t,n.pos,r)}function lb(e,t,n,r){r&&r.length&&n!==r[0].pos&&qv(e,n)!==qv(e,r[0].pos)&&t.writeLine()}function ub(e,t,n,r){n!==r&&qv(e,n)!==qv(e,r)&&t.writeLine()}function _b(e,t,n,r,i,o,a,s){if(r&&r.length>0){i&&n.writeSpace(" ");let c=!1;for(const i of r)c&&(n.writeSpace(" "),c=!1),s(e,t,n,i.pos,i.end,a),i.hasTrailingNewLine?n.writeLine():c=!0;c&&o&&n.writeSpace(" ")}}function db(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=V(Ms(e,i.pos),(function(t){return Qf(e,t.pos)}))):s=Ms(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=qv(t,l.end);if(qv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=qv(t,Be(a).end);qv(t,Ts(e,i.pos))>=l+2&&(cb(t,n,i,s),_b(e,t,n,a,!1,!0,o,r),c={nodePos:i.pos,detachedCommentEndPos:Be(a).end})}}return c}function fb(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=fs(t,r),s=t.length;let c;for(let l=r,u=a.line;l0){let e=i%xv();const t=bv((i-e)/xv());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}pb(e,i,n,o,l,_),l=_}}else n.writeComment(e.substring(r,i))}function pb(e,t,n,r,i,o){const a=Math.min(t,o-1),s=h(e.substring(i,a));s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function mb(e,t,n){let r=0;for(;t=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Lb(e)),!t||4096&e.modifierFlagsCache||!n&&!Pg(e)||!e.parent||(e.modifierFlagsCache|=4096|Ob(e)),-536875009&e.modifierFlagsCache)}function Pb(e){return Ab(e,!0)}function Fb(e){return Ab(e,!0,!0)}function Ib(e){return Ab(e,!1)}function Ob(e){let t=0;return e.parent&&!uD(e)&&(Pg(e)&&(rl(e)&&(t|=4),ol(e)&&(t|=8),sl(e)&&(t|=16),ll(e)&&(t|=64),ul(e)&&(t|=16384)),dl(e)&&(t|=8192)),t}function Mb(e){return Lb(e)|Ob(e)}function Lb(e){let t=nI(e)?Rb(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=1),t}function Rb(e){let t=0;if(e)for(const n of e)t|=jb(n.kind);return t}function jb(e){switch(e){case 126:return 32;case 125:return 4;case 124:return 16;case 123:return 8;case 128:return 256;case 129:return 128;case 95:return 1;case 138:return 2;case 87:return 2048;case 90:return 1024;case 134:return 512;case 148:return 64;case 164:return 16384;case 103:return 32768;case 147:return 65536;case 170:return 131072}return 0}function Bb(e){return 57===e||56===e}function Jb(e){return Bb(e)||54===e}function zb(e){return 76===e||77===e||78===e}function $b(e){return fN(e)&&zb(e.operatorToken.kind)}function Vb(e){return Bb(e)||61===e}function Kb(e){return fN(e)&&Vb(e.operatorToken.kind)}function Ub(e){return e>=64&&e<=79}function qb(e){const t=Wb(e);return t&&!t.isImplements?t.class:void 0}function Wb(e){if(bN(e)){if(jA(e.parent)&&Pu(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(_P(e.parent)){const t=$h(e.parent);if(t&&Pu(t))return{class:t,isImplements:!1}}}}function Hb(e,t){return fN(e)&&(t?64===e.operatorToken.kind:Ub(e.operatorToken.kind))&&r_(e.left)}function Gb(e){return Hb(e.parent)&&e.parent.left===e}function Xb(e){if(Hb(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function Yb(e){return void 0!==qb(e)}function Qb(e){return 80===e.kind||tx(e)}function Zb(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function ex(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&ex(e.expression)||217===e.kind&&ex(e.expression)}function tx(e){return QD(e)&&qE(e.name)&&Qb(e.expression)}function nx(e){if(QD(e)){const t=nx(e.expression);if(void 0!==t)return t+"."+Up(e.name)}else if(ZD(e)){const t=nx(e.expression);if(void 0!==t&&xu(e.argumentExpression))return t+"."+jy(e.argumentExpression)}else{if(qE(e))return Fc(e.escapedText);if(MA(e))return pC(e)}}function rx(e){return ah(e)&&"prototype"===_h(e)}function ix(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function ox(e){return QD(e.parent)&&e.parent.name===e||ZD(e.parent)&&e.parent.argumentExpression===e}function ax(e){return sD(e.parent)&&e.parent.right===e||QD(e.parent)&&e.parent.name===e||XA(e.parent)&&e.parent.right===e}function sx(e){return 210===e.kind&&0===e.properties.length}function cx(e){return 209===e.kind&&0===e.elements.length}function lx(e){if(function(e){return e&&C(e.declarations)>0&&vb(e.declarations[0],1024)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function ux(e){return O(Wd,(t=>Zo(e,t)))}function _x(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):Fn.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Ad.charAt(o)+Ad.charAt(a)+Ad.charAt(s)+Ad.charAt(c),r+=3;return t}function dx(e,t){return e&&e.base64encode?e.base64encode(t):_x(t)}function fx(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n=e||-1===t),{pos:e,end:t}}function vx(e,t){return yx(e.pos,t)}function bx(e,t){return yx(t,e.end)}function xx(e){const t=nI(e)?M(e.modifiers,_D):void 0;return t&&!aT(t.end)?bx(e,t.end):e}function Sx(e){if(fD(e)||mD(e))return bx(e,e.name.pos);const t=nI(e)?je(e.modifiers):void 0;return t&&!aT(t.end)?bx(e,t.end):xx(e)}function kx(e){return e.pos===e.end}function Tx(e,t){return yx(e,e+ss(t).length)}function Cx(e,t){return Dx(e,e,t)}function wx(e,t,n){return Ix(Ox(e,n,!1),Ox(t,n,!1),n)}function Ex(e,t,n){return Ix(e.end,t.end,n)}function Dx(e,t,n){return Ix(Ox(e,n,!1),t.end,n)}function Nx(e,t,n){return Ix(e.end,Ox(t,n,!1),n)}function Ax(e,t,n,r){const i=Ox(t,n,r);return ms(n,e.end,i)}function Px(e,t,n){return ms(n,e.end,t.end)}function Fx(e,t){return!Ix(e.pos,e.end,t)}function Ix(e,t,n){return 0===ms(n,e,t)}function Ox(e,t,n){return aT(e.pos)?-1:Ts(t.text,e.pos,!1,n)}function Mx(e,t,n,r){const i=Ts(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!hs(n.text.charCodeAt(e)))return e}(i,t,n);return ms(n,o??t,i)}function Lx(e,t,n,r){const i=Ts(n.text,e,!1,r);return ms(n,e,Math.min(t,i))}function Rx(e){const t=Ac(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function jx(e){return V(e.declarations,Bx)}function Bx(e){return GN(e)&&void 0!==e.initializer}function Jx(e){return e.watch&&We(e,"watch")}function zx(e){e.close()}function $x(e){return 33554432&e.flags?e.links.checkFlags:0}function Vx(e,t=!1){if(e.valueDeclaration){const n=Sc(t&&e.declarations&&O(e.declarations,vD)||32768&e.flags&&O(e.declarations,yD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-29&n}if(6&$x(e)){const t=e.links.checkFlags;return(1024&t?8:256&t?4:16)|(2048&t?32:0)}return 4194304&e.flags?36:0}function Kx(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function Ux(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function qx(e){return 1===Hx(e)}function Wx(e){return 0!==Hx(e)}function Hx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return Hx(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&Ub(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:Hx(t);case 303:{const n=Hx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return Fn.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:Hx(t.parent);default:return 0}}function Gx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!Gx(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function Xx(e,t){e.forEach(t),e.clear()}function Yx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{const a=t.get(o);void 0===a?(e.delete(o),r(n,o)):i&&i(n,a,o)}))}function Qx(e,t,n){Yx(e,t,n);const{createNewValue:r}=n;t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function Zx(e){if(32&e.flags){const t=eS(e);return!!t&&vb(t,256)}return!1}function eS(e){var t;return null==(t=e.declarations)?void 0:t.find(Pu)}function tS(e){return 138117121&e.flags?e.objectFlags:0}function nS(e,t){return!!Ma(e,(e=>!!t(e)||void 0))}function rS(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&oA(e.declarations[0])}function iS({moduleSpecifier:e}){return NE(e)?e.text:op(e)}function oS(e){let t;return zI(e,(e=>{zf(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(zf(e[n])){t=e[n];break}})),t}function aS(e,t,n=!0){return!e.has(t)&&(e.set(t,n),!0)}function sS(e){return Pu(e)||ZN(e)||DD(e)}function cS(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||319===e||320===e||321===e||322===e||323===e||324===e||325===e}function lS(e){return 211===e.kind||212===e.kind}function uS(e){return 211===e.kind?e.name:(Fn.assert(212===e.kind),e.argumentExpression)}function _S(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function dS(e){return 275===e.kind||279===e.kind}function fS(e){for(;lS(e);)e=e.expression;return e}function pS(e,t){if(lS(e.parent)&&ox(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!qE(n.argumentExpression)&&!ed(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}return lS(n.expression)?e(n.expression):qE(n.expression)?t(n.expression):void 0}(e.parent)}function mS(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function gS(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function hS(e,t){this.flags=t,(Fn.isDebugging||Br)&&(this.checker=e)}function yS(e,t){this.flags=t,Fn.isDebugging&&(this.checker=e)}function vS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function bS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function xS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function SS(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}function kS(e){Od.push(e),e(Id)}function TS(e){Object.assign(Id,e),w(Od,(e=>e(Id)))}function CS(e,t,n=0){return e.replace(/{(\d+)}/g,((e,r)=>""+Fn.checkDefined(t[+r+n])))}function wS(e){Md=e}function ES(e){!Md&&e&&(Md=e())}function DS(e){return Md&&Md[e.key]||e.message}function NS(e,t,n,r){Yp(void 0,t,n);let i=DS(r);return arguments.length>4&&(i=CS(i,arguments,4)),{file:void 0,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}}function AS(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function PS(e,t){const n=t.fileName||"",r=t.text.length;Fn.assertEqual(e.fileName,n),Fn.assertLessThanOrEqual(e.start,r),Fn.assertLessThanOrEqual(e.start+e.length,r);const i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(const o of e.relatedInformation)AS(o)&&o.fileName===n?(Fn.assertLessThanOrEqual(o.start,r),Fn.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(PS(o,t))):i.relatedInformation.push(o)}return i}function FS(e,t){const n=[];for(const r of e)n.push(PS(r,t));return n}function IS(e,t,n,r){Yp(e,t,n);let i=DS(r);return arguments.length>4&&(i=CS(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function OS(e,t){let n=DS(t);return arguments.length>2&&(n=CS(n,arguments,2)),n}function MS(e){let t=DS(e);return arguments.length>1&&(t=CS(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function LS(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function RS(e,t){let n=DS(t);return arguments.length>2&&(n=CS(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function jS(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function BS(e){return e.file?e.file.path:void 0}function JS(e,t){return zS(e,t)||function(e,t){return e.relatedInformation||t.relatedInformation?e.relatedInformation&&t.relatedInformation?Bt(e.relatedInformation.length,t.relatedInformation.length)||w(e.relatedInformation,((e,n)=>JS(e,t.relatedInformation[n])))||0:e.relatedInformation?-1:1:0}(e,t)||0}function zS(e,t){return Kt(BS(e),BS(t))||Bt(e.start,t.start)||Bt(e.length,t.length)||Bt(e.code,t.code)||$S(e.messageText,t.messageText)||0}function $S(e,t){if("string"==typeof e&&"string"==typeof t)return Kt(e,t);if("string"==typeof e)return-1;if("string"==typeof t)return 1;let n=Kt(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const r=Math.min(e.next.length,t.next.length);for(let i=0;it.next.length?1:0}function VS(e){return 4===e||2===e||1===e||6===e?1:0}function KS(e){if(2&e.transformFlags)return J_(e)||DA(e)?e:zI(e,KS)}function US(e){return e.isDeclarationFile?void 0:KS(e)}function qS(e){return!(99!==e.impliedNodeFormat&&!ea(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function WS(e){switch(QS(e)){case 3:return e=>{e.externalModuleIndicator=xI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=xI(e)};case 2:const t=[xI];4!==e.jsx&&5!==e.jsx||t.push(US),t.push(qS);const n=yn(...t);return e=>{e.externalModuleIndicator=n(e)}}}function HS(e){return e.target??((100===e.module?9:199===e.module&&99)||1)}function GS(e){return"number"==typeof e.module?e.module:HS(e)>=2?5:1}function XS(e){return e>=5&&e<=99}function YS(e){let t=e.moduleResolution;if(void 0===t)switch(GS(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1}return t}function QS(e){return e.moduleDetection||(100===GS(e)||199===GS(e)?3:2)}function ZS(e){switch(GS(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function ek(e){return!(!e.isolatedModules&&!e.verbatimModuleSyntax)}function tk(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function nk(e){return!1===e.allowUnreachableCode}function rk(e){return!1===e.allowUnusedLabels}function ik(e){return!(!dk(e)||!e.declarationMap)}function ok(e){if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(GS(e)){case 100:case 199:return!0}}function ak(e){return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:ok(e)||4===GS(e)||100===YS(e)}function sk(e){return e>=3&&e<=99||100===e}function ck(e){return!!e.noDtsResolution||100!==YS(e)}function lk(e){const t=YS(e);if(!sk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function uk(e){const t=YS(e);if(!sk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function _k(e){return void 0!==e.resolveJsonModule?e.resolveJsonModule:100===YS(e)}function dk(e){return!(!e.declaration&&!e.composite)}function fk(e){return!(!e.preserveConstEnums&&!ek(e))}function pk(e){return!(!e.incremental&&!e.composite)}function mk(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function gk(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function hk(e){return void 0===e.useDefineForClassFields?HS(e)>=9:e.useDefineForClassFields}function yk(e){return!1!==e.useDefineForClassFields&&HS(e)>=9}function vk(e,t){return ff(t,e,hO)}function bk(e,t){return ff(t,e,yO)}function xk(e,t){return ff(t,e,vO)}function Sk(e,t){return t.strictFlag?mk(e,t.name):e[t.name]}function kk(e){const t=e.jsx;return 2===t||4===t||5===t}function Tk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=gt(n)?n[n.length-1]:n;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function Ck(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wk(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=va(i,e,t);JT(a)||(a=xa(a),!1===o||(null==n?void 0:n.has(a))||(r||(r=_t())).add(xa(o.realPath),i),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t){var n,r;Fn.assert(!o),o=!0;for(const t of e)null==(n=t.resolvedModules)||n.forEach((e=>s(this,e.resolvedModule))),null==(r=t.resolvedTypeReferenceDirectiveNames)||r.forEach((e=>s(this,e.resolvedTypeReferenceDirective)));t.forEach((e=>s(this,e.resolvedTypeReferenceDirective)))},hasProcessedResolutions:()=>o};function s(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(va(o,e,t),i);const[s,c]=function(e,t,n,r){const i=la(ga(e,n)),o=la(ga(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!Dk(i[i.length-2],r)&&!Dk(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[ua(i),ua(o)]:void 0}(i,o,e,t)||a;s&&c&&n.setSymlinkedDirectory(c,{real:s,realPath:va(s,e,t)})}}function Dk(e,t){return void 0!==e&&("node_modules"===t(e)||fn(e,"@"))}function Nk(e,t,n){const r=mn(e,t,n);return void 0===r?void 0:Uo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}function Ak(e){return e.replace(Ld,Pk)}function Pk(e){return"\\"+e}function Fk(e,t,n){const r=Ik(e,t,n);if(r&&r.length)return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function Ik(e,t,n){if(void 0!==e&&0!==e.length)return X(e,(e=>e&&Lk(e,t,n,Vd[n])))}function Ok(e){return!/[.*?]/.test(e)}function Mk(e,t,n){const r=e&&Lk(e,t,n,Vd[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function Lk(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}){let a="",s=!1;const c=ma(e,t),l=Be(c);if("exclude"!==n&&"**"===l)return;c[0]=ba(c[0]),Ok(l)&&c.push("**","*");let u=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(",u++),s&&(a+=Bo),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="([^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(Ld,o),t!==e&&(a+=Bd),a+=t}else a+=e.replace(Ld,o);s=!0}for(;u>0;)a+=")?",u--;return a}function Rk(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function jk(e,t,n,r,i){e=ha(e);const o=fa(i=ha(i),e);return{includeFilePatterns:q(Ik(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:Fk(n,o,"files"),includeDirectoryPattern:Fk(n,o,"directories"),excludePattern:Fk(t,o,"exclude"),basePaths:zk(e,n,r)}}function Bk(e,t){return new RegExp(e,t?"":"i")}function Jk(e,t,n,r,i,o,a,s,c){e=ha(e),o=ha(o);const l=jk(e,n,r,i,o),u=l.includeFilePatterns&&l.includeFilePatterns.map((e=>Bk(e,i))),_=l.includeDirectoryPattern&&Bk(l.includeDirectoryPattern,i),d=l.excludePattern&&Bk(l.excludePattern,i),f=u?u.map((()=>[])):[[]],p=new Map,m=ln(i);for(const e of l.basePaths)g(e,fa(o,e),a);return G(f);function g(e,n,r){const i=m(c(n));if(p.has(i))return;p.set(i,!0);const{files:o,directories:a}=s(e);for(const r of Ae(o,Kt)){const i=fa(e,r),o=fa(n,r);if((!t||ea(i,t))&&(!d||!d.test(o)))if(u){const e=L(u,(e=>e.test(o)));-1!==e&&f[e].push(i)}else f[0].push(i)}if(void 0===r||0!=--r)for(const t of Ae(a,Kt)){const i=fa(e,t),o=fa(n,t);_&&!_.test(o)||d&&d.test(o)||g(i,o,r)}}}function zk(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=Wo(n)?n:ha(fa(e,n));i.push($k(t))}i.sort(Ut(!n));for(const t of i)I(r,(r=>!Da(r,t,e,!n)))&&r.push(t)}return r}function $k(e){const t=z(e,Rd);return t<0?Qo(e)?ba(oa(e)):e:e.substring(0,e.lastIndexOf(Bo,t))}function Vk(e,t){return t||Kk(e)||3}function Kk(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function Uk(e,t){const n=e&&gk(e);if(!t||0===t.length)return n?Xd:Kd;const r=n?Xd:Kd,i=G(r);return[...r,...te(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&-1===i.indexOf(e.extension)?[e.extension]:void 0;var t}))]}function qk(e,t){return e&&_k(e)?t===Xd?Yd:t===Kd?qd:[...t,[".json"]]:t}function Wk(e){return le(Gd,(t=>Zo(e,t)))}function Hk(e){return le(Ud,(t=>Zo(e,t)))}function Gk({imports:e},t=yn(Wk,Hk)){return D(e,(({text:e})=>Xo(e)&&!ea(e,ef)?t(e):void 0))||!1}function Xk(e,t,n,r){return"js"===e||99===t?aj(n)&&2!==i()?3:2:"minimal"===e?0:"index"===e?1:aj(n)?i():Gk(r)?2:0;function i(){let e=!1;const t=r.imports.length?r.imports.map((e=>e.text)):Ng(r)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;zg(r)?t=_e(t,r.declarationList.declarations.map((e=>e.initializer))):IN(r)&&Lg(r.expression,!0)?t=ke(t,r.expression):n++}return t||a}(r).map((e=>e.arguments[0].text)):a;for(const n of t)if(Xo(n)){if(ea(n,ef))continue;if(Hk(n))return 3;Wk(n)&&(e=!0)}return e?2:0}}function Yk(e,t,n){if(!e)return!1;const r=Uk(t,n);for(const n of G(qk(t,r)))if(Zo(e,n))return!0;return!1}function Qk(e){const t=e.match(/\//g);return t?t.length:0}function Zk(e,t){return Bt(Qk(e),Qk(t))}function eT(e){for(const t of nf){const n=tT(e,t);if(void 0!==n)return n}return e}function tT(e,t){return Zo(e,t)?nT(e,t):void 0}function nT(e,t){return e.substring(0,e.length-t.length)}function rT(e,t){return ka(e,t,nf,!1)}function iT(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function oT(e){return te(Ge(e),(e=>iT(e)))}function aT(e){return!(e>=0)}function sT(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||fn(e,".d.")&&Zt(e,".ts")}function cT(e){return sT(e)||".json"===e}function lT(e){const t=_T(e);return void 0!==t?t:Fn.fail(`File ${e} has unknown extension.`)}function uT(e){return void 0!==_T(e)}function _T(e){return O(nf,(t=>Zo(e,t)))}function dT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function fT(e,t){const n=[];for(const r of e){if(r===t)return t;yt(r)||n.push(r)}return dn(n,(e=>e),t)}function pT(e,t){const n=e.indexOf(t);return Fn.assert(-1!==n),e.slice(n)}function mT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),Fn.assert(e.relatedInformation!==a,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function gT(e,t){Fn.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;ir&&(r=o)}return{min:n,max:r}}function hT(e){return{pos:ep(e),end:e.end}}function yT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Ts(e.text,t.end)+1)}}function vT(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function bT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&tt(e,t,bT)}function xT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function ST({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function kT(e){if(CT(e,!1))return TT(e)}function TT(e){const t=e.startsWith("-");return{negative:t,base10Value:xT(`${t?e.slice(1):e}n`)}}function CT(e,t){if(""===e)return!1;const n=zs(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===ST({negative:o,base10Value:xT(n.getTokenValue())}))}function wT(e){return!!(33554432&e.flags)||kg(e)||function(e){if(80!==e.kind)return!1;const t=Dc(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(vb(e.parent,256))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(xg(e)||function(e){return qE(e)&&zA(e.parent)&&e.parent.name===e}(e))}function ET(e){return TD(e)&&qE(e.typeName)}function DT(e,t=Mt){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;rnn(e,t)))}function zT(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return rI(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(K_(e))return lP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Ru(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Ju(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return R_(e)?t.children:void 0;case 286:case 285:return Ju(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 312:return t.statements;case 269:return t.clauses;case 263:case 231:return Au(e)?t.members:void 0;case 266:return VA(e)?t.members:void 0}}function $T(e){if(!e.typeParameters){if(le(e.parameters,(e=>!rb(e))))return!0;if(219!==e.kind){const t=Oe(e.parameters);if(!t||!Yv(t))return!0}}return!1}function VT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function KT(e){return 260===e.kind&&299===e.parent.kind}function UT(e){const t=e.valueDeclaration&&Zy(e.valueDeclaration);return!!t&&(uD(t)||KT(t))}function qT(e){return 218===e.kind||219===e.kind}function WT(e){return e.replace(/\$/gm,(()=>"\\$"))}function HT(e){return(+e).toString()===e}function GT(e,t,n,r){return Js(e,t)?FC.createIdentifier(e):!r&&HT(e)&&+e>=0?FC.createNumericLiteral(+e):FC.createStringLiteral(e,!!n)}function XT(e){return!!(262144&e.flags&&e.isThisType)}function YT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(wL,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(wL,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function QT(e){var t;return 348===e.kind?null==(t=e.typeExpression)?void 0:t.type:e.type}function ZT(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function eC(e){return tA(e)||PN(e)||YN(e)||QN(e)||ZN(e)||ZT(e)||nA(e)&&!kp(e)&&!Sp(e)}function tC(e){if(!Wl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&323===n.type.kind}function nC(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&js(e.charCodeAt(1),t):js(n,t)}function rC(e){var t;return 0===(null==(t=Nw(e))?void 0:t.kind)}function iC(e){return Pg(e)&&(e.type&&323===e.type.kind||Wc(e).some((({isBracketed:e,typeExpression:t})=>e||!!t&&323===t.type.kind)))}function oC(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||iC(e);case 355:case 348:return tC(e);default:return!1}}function aC(e){const t=e.kind;return(211===t||212===t)&&kN(e.expression)}function sC(e){return Pg(e)&&iN(e)&&W_(e)&&!!hl(e)}function cC(e){return Fn.checkDefined(lC(e))}function lC(e){const t=hl(e);return t&&t.typeExpression&&t.typeExpression.type}function uC(e){return qE(e)?e.escapedText:fC(e)}function _C(e){return qE(e)?Ic(e):pC(e)}function dC(e){const t=e.kind;return 80===t||295===t}function fC(e){return`${e.namespace.escapedText}:${Ic(e.name)}`}function pC(e){return`${Ic(e.namespace)}:${Ic(e.name)}`}function mC(e){return qE(e)?Ic(e):pC(e)}function gC(e){return!!(8576&e.flags)}function hC(e){return 8192&e.flags?e.escapedName:384&e.flags?Pc(""+e.value):Fn.fail()}var yC=S({"src/compiler/utilities.ts"(){gH(),id=[],od="tslib",ad=160,sd=1e6,cd=function(){var e="";const t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&hs(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:St,decreaseIndent:St,clear:()=>e=""}}(),ld=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(ld||{}),ud=/^(\/\/\/\s*/,_d=/^(\/\/\/\s*/,dd=/^(\/\/\/\s*/,fd=/^(\/\/\/\s*/,pd=/^\/\/\/\s*/,md=/^(\/\/\/\s*/,gd=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(gd||{}),hd=(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))(hd||{}),yd=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(yd||{}),vd=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(vd||{}),bd=/\$\{/g,xd=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Sd=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,kd=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Td=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),Cd=/[^\u0000-\u007F]/g,wd=/["\u0000-\u001f\u2028\u2029\u0085]/g,Ed=/['\u0000-\u001f\u2028\u2029\u0085]/g,Dd=new Map(Object.entries({'"':""","'":"'"})),Nd=[""," "],Ad="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Pd="\r\n",Fd="\n",Id={getNodeConstructor:()=>vS,getTokenConstructor:()=>bS,getIdentifierConstructor:()=>xS,getPrivateIdentifierConstructor:()=>vS,getSourceFileConstructor:()=>vS,getSymbolConstructor:()=>gS,getTypeConstructor:()=>hS,getSignatureConstructor:()=>yS,getSourceMapSourceConstructor:()=>SS},Od=[],Ld=/[^\w\s/]/g,Rd=[42,63],Bd=`(?!(${(jd=["node_modules","bower_components","jspm_packages"]).join("|")})(/|$))`,Vd={files:Jd={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Bd}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Rk(e,Jd.singleAsteriskRegexFragment)},directories:zd={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Bd}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Rk(e,zd.singleAsteriskRegexFragment)},exclude:$d={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Rk(e,$d.singleAsteriskRegexFragment)}},Ud=G(Kd=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]]),qd=[...Kd,[".json"]],Wd=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Gd=G(Hd=[[".js",".jsx"],[".mjs"],[".cjs"]]),Xd=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Yd=[...Xd,[".json"]],Qd=[".d.ts",".d.cts",".d.mts"],Zd=[".ts",".cts",".mts",".tsx"],ef=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],tf=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(tf||{}),nf=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],rf={files:a,directories:a}}});function vC(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=Id.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Id.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Id.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Id.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Id.getNodeConstructor()))(t,-1,-1)}}}var bC,xC=S({"src/compiler/factory/baseNodeFactory.ts"(){gH()}});function SC(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);return n||(n=t=>o(e,t),t.set(e,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);return t||(t=t=>a(e,void 0,t),n.set(e,t)),t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return oF(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=sv(227,58);return 1!==Bt(ov(zl(t)),n)?e.createParenthesizedExpression(t):t},parenthesizeBranchOfConditionalExpression:function(t){return oF(zl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=zl(t);let r=oF(n);if(!r)switch(mS(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=mS(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return r_(t)?t:tI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return o_(t)?t:tI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=H(t,c);return tI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=zl(t);if(eN(n)){const r=n.expression,i=zl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,tI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=mS(n,!1).kind;return 210===r||218===r?tI(e.createParenthesizedExpression(t),t):t},parenthesizeConciseBodyOfArrowFunction:function(t){return AN(t)||!oF(t)&&210!==mS(t,!1).kind?t:tI(e.createParenthesizedExpression(t),t)},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){return 194===t.kind?e.createParenthesizedType(t):t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(H(t,u))},parenthesizeConstituentTypeOfUnionType:u,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(H(t,_))},parenthesizeConstituentTypeOfIntersectionType:_,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){return 198===t.kind?e.createParenthesizedType(t):d(t)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(H(t,p))},parenthesizeElementTypeOfTupleType:p,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):f(t)},parenthesizeTypeArguments:function(t){if(le(t))return e.createNodeArray(H(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Zl((e=zl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Zl(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===zl(n).kind?n:function(e,t,n,i){const o=sv(226,e),a=iv(226,e),s=zl(t);if(!n&&219===t.kind&&o>3)return!0;switch(Bt(ov(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(fN(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Zl(e)&&e===r(s))return!1}}return 0===rv(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=zl(t);return!r_(r)||214===r.kind&&!r.arguments||!n&&Ml(r)?tI(e.createParenthesizedExpression(t),t):t}function c(t){return ov(zl(t))>sv(226,28)?t:tI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return u(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):_(t)}function f(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function p(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return nP(e)?e.postfix:PD(e)||CD(e)||wD(e)||JD(e)?m(e.type):LD(e)?m(e.falseType):OD(e)||MD(e)?m(Be(e.types)):!!RD(e)&&!!e.typeParameter.constraint&&m(e.typeParameter.constraint)}function g(t){return zu(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var kC,TC=S({"src/compiler/factory/parenthesizerRules.ts"(){gH(),bC={getParenthesizeLeftSideOfBinaryForOperator:e=>wt,getParenthesizeRightSideOfBinaryForOperator:e=>wt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:wt,parenthesizeConditionOfConditionalExpression:wt,parenthesizeBranchOfConditionalExpression:wt,parenthesizeExpressionOfExportDefault:wt,parenthesizeExpressionOfNew:e=>xt(e,r_),parenthesizeLeftSideOfAccess:e=>xt(e,r_),parenthesizeOperandOfPostfixUnary:e=>xt(e,r_),parenthesizeOperandOfPrefixUnary:e=>xt(e,o_),parenthesizeExpressionsOfCommaDelimitedList:e=>xt(e,Ql),parenthesizeExpressionForDisallowedComma:wt,parenthesizeExpressionOfExpressionStatement:wt,parenthesizeConciseBodyOfArrowFunction:wt,parenthesizeCheckTypeOfConditionalType:wt,parenthesizeExtendsTypeOfConditionalType:wt,parenthesizeConstituentTypesOfUnionType:e=>xt(e,Ql),parenthesizeConstituentTypeOfUnionType:wt,parenthesizeConstituentTypesOfIntersectionType:e=>xt(e,Ql),parenthesizeConstituentTypeOfIntersectionType:wt,parenthesizeOperandOfTypeOperator:wt,parenthesizeOperandOfReadonlyTypeOperator:wt,parenthesizeNonArrayTypeOfPostfixType:wt,parenthesizeElementTypesOfTupleType:e=>xt(e,Ql),parenthesizeElementTypeOfTupleType:wt,parenthesizeTypeOfOptionalType:wt,parenthesizeTypeArguments:e=>e&&xt(e,Ql),parenthesizeLeadingTypeArgument:wt}}});function CC(e){return{convertToFunctionBlock:function(t,n){if(AN(t))return t;const r=e.createReturnStatement(t);tI(r,t);const i=e.createBlock([r],n);return tI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return Fn.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Uc(t))?void 0:n.filter((e=>!HE(e)&&!GE(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return QC(r,t),tI(r,t),_w(t)&&dw(r,!0),r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!HE(e)&&!GE(e))),t.name,t.typeParameters,t.heritageClauses,t.members);return QC(r,t),tI(r,t),_w(t)&&dw(r,!0),r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(GD(t)){if(t.dotDotDotToken)return Fn.assertNode(t.name,qE),QC(tI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?QC(tI(e.createAssignment(n,t.initializer),t),t):n}return xt(t,l_)}function n(t){if(GD(t)){if(t.dotDotDotToken)return Fn.assertNode(t.name,qE),QC(tI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return QC(tI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return Fn.assertNode(t.name,qE),QC(tI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return xt(t,Bu)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return WD(t)?QC(tI(e.createObjectLiteralExpression(q(t.elements,n)),t),t):xt(t,YD)}function o(n){return HD(n)?QC(tI(e.createArrayLiteralExpression(q(n.elements,t)),n),n):xt(n,XD)}function a(e){return $u(e)?r(e):xt(e,l_)}}var wC,EC,DC,NC,AC,PC,FC,IC,OC=S({"src/compiler/factory/nodeConverters.ts"(){gH(),kC={convertToFunctionBlock:Nt,convertToFunctionExpression:Nt,convertToClassExpression:Nt,convertToArrayAssignmentElement:Nt,convertToObjectAssignmentElement:Nt,convertToAssignmentPattern:Nt,convertToObjectAssignmentPattern:Nt,convertToArrayAssignmentPattern:Nt,convertToAssignmentElementTarget:Nt}}});function MC(e){DC.push(e)}function LC(e,t){const n=8&e?RC:jC,r=At((()=>1&e?bC:SC(y))),i=At((()=>2&e?kC:CC(y))),o=Pt((e=>(t,n)=>It(t,e,n))),s=Pt((e=>t=>Nt(e,t))),c=Pt((e=>t=>Ft(t,e))),l=Pt((e=>()=>function(e){return b(e)}(e))),u=Pt((e=>t=>cr(e,t))),_=Pt((e=>(t,r)=>function(e,t,r){return t.type!==r?n(cr(e,r),t):t}(e,t,r))),d=Pt((e=>(t,n)=>sr(e,t,n))),f=Pt((e=>(t,r)=>function(e,t,r){return t.type!==r?n(sr(e,r,t.postfix),t):t}(e,t,r))),p=Pt((e=>(t,n)=>Ar(e,t,n))),m=Pt((e=>(t,r,i)=>function(e,t,r=fr(t),i){return t.tagName!==r||t.comment!==i?n(Ar(e,r,i),t):t}(e,t,r,i))),g=Pt((e=>(t,n,r)=>Pr(e,t,n,r))),h=Pt((e=>(t,r,i,o)=>function(e,t,r=fr(t),i,o){return t.tagName!==r||t.typeExpression!==i||t.comment!==o?n(Pr(e,r,i,o),t):t}(e,t,r,i,o))),y={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:v,createNumericLiteral:k,createBigIntLiteral:T,createStringLiteral:E,createStringLiteralFromNode:function(e){const t=C(Jy(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:D,createLiteralLikeNode:function(e,t){switch(e){case 9:return k(t,0);case 10:return T(t);case 11:return E(t,void 0);case 12:return zr(t,!1);case 13:return zr(t,!0);case 14:return D(t);case 15:return Jt(e,t,void 0,0)}},createIdentifier:P,createTempVariable:F,createLoopVariable:function(e){let t=2;return e&&(t|=8),A("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return Fn.assert(!(7&t),"Argument out of range: flags"),Fn.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),A(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){return fn(e,"#")||Fn.fail("First character of private identifier must be #: "+e),M(Pc(e))},createUniquePrivateName:function(e,t,n){return e&&!fn(e,"#")&&Fn.fail("First character of private identifier must be #: "+e),L(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=L(Al(e)?qF(!0,t,e,n,Ic):`#generated@${bB(e)}`,4|(t||n?16:0),t,n);return r.original=e,r},createToken:j,createSuper:function(){return j(108)},createThis:B,createNull:J,createTrue:z,createFalse:$,createModifier:V,createModifiersFromModifierFlags:K,createQualifiedName:U,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?n(U(t,r),e):e},createComputedPropertyName:q,updateComputedPropertyName:function(e,t){return e.expression!==t?n(q(t),e):e},createTypeParameterDeclaration:W,updateTypeParameterDeclaration:H,createParameterDeclaration:G,updateParameterDeclaration:X,createDecorator:Y,updateDecorator:function(e,t){return e.expression!==t?n(Y(t),e):e},createPropertySignature:Q,updatePropertySignature:ee,createPropertyDeclaration:te,updatePropertyDeclaration:ne,createMethodSignature:re,updateMethodSignature:ie,createMethodDeclaration:oe,updateMethodDeclaration:ae,createConstructorDeclaration:ce,updateConstructorDeclaration:ue,createGetAccessorDeclaration:_e,updateGetAccessorDeclaration:de,createSetAccessorDeclaration:fe,updateSetAccessorDeclaration:pe,createCallSignature:me,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(me(t,n,r),e):e},createConstructSignature:ge,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?S(ge(t,n,r),e):e},createIndexSignature:he,updateIndexSignature:ye,createClassStaticBlockDeclaration:se,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((r=se(t))!==(i=e)&&(r.modifiers=i.modifiers),n(r,i)):e;var r,i},createTemplateLiteralTypeSpan:ve,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?n(ve(t,r),e):e},createKeywordTypeNode:function(e){return j(e)},createTypePredicateNode:be,updateTypePredicateNode:function(e,t,r,i){return e.assertsModifier!==t||e.parameterName!==r||e.type!==i?n(be(t,r,i),e):e},createTypeReferenceNode:xe,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?n(xe(t,r),e):e},createFunctionTypeNode:Se,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Se(t,n,r))!==(o=e)&&(i.modifiers=o.modifiers),S(i,o)):e;var i,o},createConstructorTypeNode:Te,updateConstructorTypeNode:function(...e){return 5===e.length?we(...e):4===e.length?function(e,t,n,r){return we(e,e.modifiers,t,n,r)}(...e):Fn.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Ee,updateTypeQueryNode:function(e,t,r){return e.exprName!==t||e.typeArguments!==r?n(Ee(t,r),e):e},createTypeLiteralNode:De,updateTypeLiteralNode:function(e,t){return e.members!==t?n(De(t),e):e},createArrayTypeNode:Ne,updateArrayTypeNode:function(e,t){return e.elementType!==t?n(Ne(t),e):e},createTupleTypeNode:Ae,updateTupleTypeNode:function(e,t){return e.elements!==t?n(Ae(t),e):e},createNamedTupleMember:Pe,updateNamedTupleMember:function(e,t,r,i,o){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==i||e.type!==o?n(Pe(t,r,i,o),e):e},createOptionalTypeNode:Fe,updateOptionalTypeNode:function(e,t){return e.type!==t?n(Fe(t),e):e},createRestTypeNode:Ie,updateRestTypeNode:function(e,t){return e.type!==t?n(Ie(t),e):e},createUnionTypeNode:function(e){return Oe(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Me(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Oe(193,e,r().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Me(e,t,r().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Le,updateConditionalTypeNode:function(e,t,r,i,o){return e.checkType!==t||e.extendsType!==r||e.trueType!==i||e.falseType!==o?n(Le(t,r,i,o),e):e},createInferTypeNode:Re,updateInferTypeNode:function(e,t){return e.typeParameter!==t?n(Re(t),e):e},createImportTypeNode:ze,updateImportTypeNode:function(e,t,r,i,o,a=e.isTypeOf){return e.argument!==t||e.assertions!==r||e.qualifier!==i||e.typeArguments!==o||e.isTypeOf!==a?n(ze(t,r,i,o,a),e):e},createParenthesizedType:$e,updateParenthesizedType:function(e,t){return e.type!==t?n($e(t),e):e},createThisTypeNode:function(){const e=b(197);return e.transformFlags=1,e},createTypeOperatorNode:Ve,updateTypeOperatorNode:function(e,t){return e.type!==t?n(Ve(e.operator,t),e):e},createIndexedAccessTypeNode:Ke,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?n(Ke(t,r),e):e},createMappedTypeNode:Ue,updateMappedTypeNode:function(e,t,r,i,o,a,s){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==i||e.questionToken!==o||e.type!==a||e.members!==s?n(Ue(t,r,i,o,a,s),e):e},createLiteralTypeNode:He,updateLiteralTypeNode:function(e,t){return e.literal!==t?n(He(t),e):e},createTemplateLiteralType:Be,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?n(Be(t,r),e):e},createObjectBindingPattern:Ge,updateObjectBindingPattern:function(e,t){return e.elements!==t?n(Ge(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?n(Xe(t),e):e},createBindingElement:Ye,updateBindingElement:function(e,t,r,i,o){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==i||e.initializer!==o?n(Ye(t,r,i,o),e):e},createArrayLiteralExpression:Qe,updateArrayLiteralExpression:function(e,t){return e.elements!==t?n(Qe(t,e.multiLine),e):e},createObjectLiteralExpression:Ze,updateObjectLiteralExpression:function(e,t){return e.properties!==t?n(Ze(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>rw(tt(e,t),262144):tt,updatePropertyAccessExpression:function(e,t,r){return Fl(e)?rt(e,t,e.questionDotToken,xt(r,qE)):e.expression!==t||e.name!==r?n(tt(t,r),e):e},createPropertyAccessChain:4&e?(e,t,n)=>rw(nt(e,t,n),262144):nt,updatePropertyAccessChain:rt,createElementAccessExpression:ot,updateElementAccessExpression:function(e,t,r){return Il(e)?st(e,t,e.questionDotToken,r):e.expression!==t||e.argumentExpression!==r?n(ot(t,r),e):e},createElementAccessChain:at,updateElementAccessChain:st,createCallExpression:lt,updateCallExpression:function(e,t,r,i){return Ol(e)?_t(e,t,e.questionDotToken,r,i):e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(lt(t,r,i),e):e},createCallChain:ut,updateCallChain:_t,createNewExpression:dt,updateNewExpression:function(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(dt(t,r,i),e):e},createTaggedTemplateExpression:ft,updateTaggedTemplateExpression:function(e,t,r,i){return e.tag!==t||e.typeArguments!==r||e.template!==i?n(ft(t,r,i),e):e},createTypeAssertion:pt,updateTypeAssertion:mt,createParenthesizedExpression:ht,updateParenthesizedExpression:yt,createFunctionExpression:vt,updateFunctionExpression:bt,createArrowFunction:St,updateArrowFunction:kt,createDeleteExpression:Ct,updateDeleteExpression:function(e,t){return e.expression!==t?n(Ct(t),e):e},createTypeOfExpression:wt,updateTypeOfExpression:function(e,t){return e.expression!==t?n(wt(t),e):e},createVoidExpression:Et,updateVoidExpression:function(e,t){return e.expression!==t?n(Et(t),e):e},createAwaitExpression:Dt,updateAwaitExpression:function(e,t){return e.expression!==t?n(Dt(t),e):e},createPrefixUnaryExpression:Nt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?n(Nt(e.operator,t),e):e},createPostfixUnaryExpression:Ft,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?n(Ft(t,e.operator),e):e},createBinaryExpression:It,updateBinaryExpression:function(e,t,r,i){return e.left!==t||e.operatorToken!==r||e.right!==i?n(It(t,r,i),e):e},createConditionalExpression:Mt,updateConditionalExpression:function(e,t,r,i,o,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==i||e.colonToken!==o||e.whenFalse!==a?n(Mt(t,r,i,o,a),e):e},createTemplateExpression:Lt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?n(Lt(t,r),e):e},createTemplateHead:function(e,t,n){return Jt(16,e=Rt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return Jt(17,e=Rt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return Jt(18,e=Rt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Bt(15,e=Rt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:Jt,createYieldExpression:zt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?n(zt(t,r),e):e},createSpreadElement:$t,updateSpreadElement:function(e,t){return e.expression!==t?n($t(t),e):e},createClassExpression:Vt,updateClassExpression:Kt,createOmittedExpression:function(){return b(232)},createExpressionWithTypeArguments:Ut,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?n(Ut(t,r),e):e},createAsExpression:qt,updateAsExpression:Wt,createNonNullExpression:Ht,updateNonNullExpression:Gt,createSatisfiesExpression:Xt,updateSatisfiesExpression:Yt,createNonNullChain:Qt,updateNonNullChain:Zt,createMetaProperty:en,updateMetaProperty:function(e,t){return e.name!==t?n(en(e.keywordToken,t),e):e},createTemplateSpan:tn,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?n(tn(t,r),e):e},createSemicolonClassElement:function(){const e=b(240);return e.transformFlags|=1024,e},createBlock:nn,updateBlock:function(e,t){return e.statements!==t?n(nn(t,e.multiLine),e):e},createVariableStatement:rn,updateVariableStatement:on,createEmptyStatement:an,createExpressionStatement:sn,updateExpressionStatement:function(e,t){return e.expression!==t?n(sn(t),e):e},createIfStatement:cn,updateIfStatement:function(e,t,r,i){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==i?n(cn(t,r,i),e):e},createDoStatement:ln,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?n(ln(t,r),e):e},createWhileStatement:un,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?n(un(t,r),e):e},createForStatement:_n,updateForStatement:function(e,t,r,i,o){return e.initializer!==t||e.condition!==r||e.incrementor!==i||e.statement!==o?n(_n(t,r,i,o),e):e},createForInStatement:dn,updateForInStatement:function(e,t,r,i){return e.initializer!==t||e.expression!==r||e.statement!==i?n(dn(t,r,i),e):e},createForOfStatement:pn,updateForOfStatement:function(e,t,r,i,o){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==o?n(pn(t,r,i,o),e):e},createContinueStatement:mn,updateContinueStatement:function(e,t){return e.label!==t?n(mn(t),e):e},createBreakStatement:gn,updateBreakStatement:function(e,t){return e.label!==t?n(gn(t),e):e},createReturnStatement:hn,updateReturnStatement:function(e,t){return e.expression!==t?n(hn(t),e):e},createWithStatement:yn,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?n(yn(t,r),e):e},createSwitchStatement:vn,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?n(vn(t,r),e):e},createLabeledStatement:bn,updateLabeledStatement:xn,createThrowStatement:Sn,updateThrowStatement:function(e,t){return e.expression!==t?n(Sn(t),e):e},createTryStatement:kn,updateTryStatement:function(e,t,r,i){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==i?n(kn(t,r,i),e):e},createDebuggerStatement:function(){const e=b(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Tn,updateVariableDeclaration:function(e,t,r,i,o){return e.name!==t||e.type!==i||e.exclamationToken!==r||e.initializer!==o?n(Tn(t,r,i,o),e):e},createVariableDeclarationList:Cn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?n(Cn(t,e.flags),e):e},createFunctionDeclaration:wn,updateFunctionDeclaration:En,createClassDeclaration:Dn,updateClassDeclaration:Nn,createInterfaceDeclaration:An,updateInterfaceDeclaration:Pn,createTypeAliasDeclaration:In,updateTypeAliasDeclaration:On,createEnumDeclaration:Mn,updateEnumDeclaration:Ln,createModuleDeclaration:Rn,updateModuleDeclaration:jn,createModuleBlock:Bn,updateModuleBlock:function(e,t){return e.statements!==t?n(Bn(t),e):e},createCaseBlock:Jn,updateCaseBlock:function(e,t){return e.clauses!==t?n(Jn(t),e):e},createNamespaceExportDeclaration:zn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?((r=zn(t))!==(i=e)&&(r.modifiers=i.modifiers),n(r,i)):e;var r,i},createImportEqualsDeclaration:$n,updateImportEqualsDeclaration:Vn,createImportDeclaration:Kn,updateImportDeclaration:Un,createImportClause:qn,updateImportClause:function(e,t,r,i){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==i?n(qn(t,r,i),e):e},createAssertClause:Wn,updateAssertClause:function(e,t,r){return e.elements!==t||e.multiLine!==r?n(Wn(t,r),e):e},createAssertEntry:Hn,updateAssertEntry:function(e,t,r){return e.name!==t||e.value!==r?n(Hn(t,r),e):e},createImportTypeAssertionContainer:Gn,updateImportTypeAssertionContainer:function(e,t,r){return e.assertClause!==t||e.multiLine!==r?n(Gn(t,r),e):e},createNamespaceImport:Xn,updateNamespaceImport:function(e,t){return e.name!==t?n(Xn(t),e):e},createNamespaceExport:Yn,updateNamespaceExport:function(e,t){return e.name!==t?n(Yn(t),e):e},createNamedImports:Qn,updateNamedImports:function(e,t){return e.elements!==t?n(Qn(t),e):e},createImportSpecifier:Zn,updateImportSpecifier:function(e,t,r,i){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==i?n(Zn(t,r,i),e):e},createExportAssignment:er,updateExportAssignment:tr,createExportDeclaration:nr,updateExportDeclaration:rr,createNamedExports:ir,updateNamedExports:function(e,t){return e.elements!==t?n(ir(t),e):e},createExportSpecifier:or,updateExportSpecifier:function(e,t,r,i){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==i?n(or(t,r,i),e):e},createMissingDeclaration:function(){const e=x(282);return e.jsDoc=void 0,e},createExternalModuleReference:ar,updateExternalModuleReference:function(e,t){return e.expression!==t?n(ar(t),e):e},get createJSDocAllType(){return l(319)},get createJSDocUnknownType(){return l(320)},get createJSDocNonNullableType(){return d(322)},get updateJSDocNonNullableType(){return f(322)},get createJSDocNullableType(){return d(321)},get updateJSDocNullableType(){return f(321)},get createJSDocOptionalType(){return u(323)},get updateJSDocOptionalType(){return _(323)},get createJSDocVariadicType(){return u(325)},get updateJSDocVariadicType(){return _(325)},get createJSDocNamepathType(){return u(326)},get updateJSDocNamepathType(){return _(326)},createJSDocFunctionType:lr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?n(lr(t,r),e):e},createJSDocTypeLiteral:ur,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?n(ur(t,r),e):e},createJSDocTypeExpression:_r,updateJSDocTypeExpression:function(e,t){return e.type!==t?n(_r(t),e):e},createJSDocSignature:dr,updateJSDocSignature:function(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?n(dr(t,r,i),e):e},createJSDocTemplateTag:gr,updateJSDocTemplateTag:function(e,t=fr(e),r,i,o){return e.tagName!==t||e.constraint!==r||e.typeParameters!==i||e.comment!==o?n(gr(t,r,i,o),e):e},createJSDocTypedefTag:hr,updateJSDocTypedefTag:function(e,t=fr(e),r,i,o){return e.tagName!==t||e.typeExpression!==r||e.fullName!==i||e.comment!==o?n(hr(t,r,i,o),e):e},createJSDocParameterTag:yr,updateJSDocParameterTag:function(e,t=fr(e),r,i,o,a,s){return e.tagName!==t||e.name!==r||e.isBracketed!==i||e.typeExpression!==o||e.isNameFirst!==a||e.comment!==s?n(yr(t,r,i,o,a,s),e):e},createJSDocPropertyTag:vr,updateJSDocPropertyTag:function(e,t=fr(e),r,i,o,a,s){return e.tagName!==t||e.name!==r||e.isBracketed!==i||e.typeExpression!==o||e.isNameFirst!==a||e.comment!==s?n(vr(t,r,i,o,a,s),e):e},createJSDocCallbackTag:br,updateJSDocCallbackTag:function(e,t=fr(e),r,i,o){return e.tagName!==t||e.typeExpression!==r||e.fullName!==i||e.comment!==o?n(br(t,r,i,o),e):e},createJSDocOverloadTag:xr,updateJSDocOverloadTag:function(e,t=fr(e),r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?n(xr(t,r,i),e):e},createJSDocAugmentsTag:Sr,updateJSDocAugmentsTag:function(e,t=fr(e),r,i){return e.tagName!==t||e.class!==r||e.comment!==i?n(Sr(t,r,i),e):e},createJSDocImplementsTag:kr,updateJSDocImplementsTag:function(e,t=fr(e),r,i){return e.tagName!==t||e.class!==r||e.comment!==i?n(kr(t,r,i),e):e},createJSDocSeeTag:Tr,updateJSDocSeeTag:function(e,t,r,i){return e.tagName!==t||e.name!==r||e.comment!==i?n(Tr(t,r,i),e):e},createJSDocNameReference:Cr,updateJSDocNameReference:function(e,t){return e.name!==t?n(Cr(t),e):e},createJSDocMemberName:wr,updateJSDocMemberName:function(e,t,r){return e.left!==t||e.right!==r?n(wr(t,r),e):e},createJSDocLink:Er,updateJSDocLink:function(e,t,r){return e.name!==t?n(Er(t,r),e):e},createJSDocLinkCode:Dr,updateJSDocLinkCode:function(e,t,r){return e.name!==t?n(Dr(t,r),e):e},createJSDocLinkPlain:Nr,updateJSDocLinkPlain:function(e,t,r){return e.name!==t?n(Nr(t,r),e):e},get createJSDocTypeTag(){return g(351)},get updateJSDocTypeTag(){return h(351)},get createJSDocReturnTag(){return g(349)},get updateJSDocReturnTag(){return h(349)},get createJSDocThisTag(){return g(350)},get updateJSDocThisTag(){return h(350)},get createJSDocAuthorTag(){return p(337)},get updateJSDocAuthorTag(){return m(337)},get createJSDocClassTag(){return p(339)},get updateJSDocClassTag(){return m(339)},get createJSDocPublicTag(){return p(340)},get updateJSDocPublicTag(){return m(340)},get createJSDocPrivateTag(){return p(341)},get updateJSDocPrivateTag(){return m(341)},get createJSDocProtectedTag(){return p(342)},get updateJSDocProtectedTag(){return m(342)},get createJSDocReadonlyTag(){return p(343)},get updateJSDocReadonlyTag(){return m(343)},get createJSDocOverrideTag(){return p(344)},get updateJSDocOverrideTag(){return m(344)},get createJSDocDeprecatedTag(){return p(338)},get updateJSDocDeprecatedTag(){return m(338)},get createJSDocThrowsTag(){return g(356)},get updateJSDocThrowsTag(){return h(356)},get createJSDocSatisfiesTag(){return g(357)},get updateJSDocSatisfiesTag(){return h(357)},createJSDocEnumTag:Ir,updateJSDocEnumTag:function(e,t=fr(e),r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?n(Ir(t,r,i),e):e},createJSDocUnknownTag:Fr,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?n(Fr(t,r),e):e},createJSDocText:Or,updateJSDocText:function(e,t){return e.text!==t?n(Or(t),e):e},createJSDocComment:Mr,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?n(Mr(t,r),e):e},createJsxElement:Lr,updateJsxElement:function(e,t,r,i){return e.openingElement!==t||e.children!==r||e.closingElement!==i?n(Lr(t,r,i),e):e},createJsxSelfClosingElement:Rr,updateJsxSelfClosingElement:function(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?n(Rr(t,r,i),e):e},createJsxOpeningElement:jr,updateJsxOpeningElement:function(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?n(jr(t,r,i),e):e},createJsxClosingElement:Br,updateJsxClosingElement:function(e,t){return e.tagName!==t?n(Br(t),e):e},createJsxFragment:Jr,createJsxText:zr,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?n(zr(t,r),e):e},createJsxOpeningFragment:function(){const e=b(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=b(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,i){return e.openingFragment!==t||e.children!==r||e.closingFragment!==i?n(Jr(t,r,i),e):e},createJsxAttribute:$r,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?n($r(t,r),e):e},createJsxAttributes:Vr,updateJsxAttributes:function(e,t){return e.properties!==t?n(Vr(t),e):e},createJsxSpreadAttribute:Kr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?n(Kr(t),e):e},createJsxExpression:Ur,updateJsxExpression:function(e,t){return e.expression!==t?n(Ur(e.dotDotDotToken,t),e):e},createJsxNamespacedName:qr,updateJsxNamespacedName:function(e,t,r){return e.namespace!==t||e.name!==r?n(qr(t,r),e):e},createCaseClause:Wr,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?n(Wr(t,r),e):e},createDefaultClause:Hr,updateDefaultClause:function(e,t){return e.statements!==t?n(Hr(t),e):e},createHeritageClause:Gr,updateHeritageClause:function(e,t){return e.types!==t?n(Gr(e.token,t),e):e},createCatchClause:Xr,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?n(Xr(t,r),e):e},createPropertyAssignment:Yr,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?((i=Yr(t,r))!==(o=e)&&(i.modifiers=o.modifiers,i.questionToken=o.questionToken,i.exclamationToken=o.exclamationToken),n(i,o)):e;var i,o},createShorthandPropertyAssignment:Qr,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?((i=Qr(t,r))!==(o=e)&&(i.modifiers=o.modifiers,i.questionToken=o.questionToken,i.exclamationToken=o.exclamationToken,i.equalsToken=o.equalsToken),n(i,o)):e;var i,o},createSpreadAssignment:Zr,updateSpreadAssignment:function(e,t){return e.expression!==t?n(Zr(t),e):e},createEnumMember:ei,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?n(ei(t,r),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(312);return i.statements=v(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=0,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=VC(i.statements)|$C(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.resolvedModules=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i},updateSourceFile:function(e,t,r=e.isDeclarationFile,i=e.referencedFiles,o=e.typeReferenceDirectives,a=e.hasNoDefaultLib,s=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==r||e.referencedFiles!==i||e.typeReferenceDirectives!==o||e.hasNoDefaultLib!==a||e.libReferenceDirectives!==s?n(function(e,t,n,r,i,o,a){const s=ni(e);return s.statements=v(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=VC(s.statements)|$C(s.endOfFileToken),s}(e,t,r,i,o,a,s),e):e},createRedirectedSourceFile:ti,createBundle:ri,updateBundle:function(e,t,r=a){return e.sourceFiles!==t||e.prepends!==r?n(ri(t,r),e):e},createUnparsedSource:function(e,t,n){const r=b(314);return r.prologues=e,r.syntheticReferences=t,r.texts=n,r.fileName="",r.text="",r.referencedFiles=a,r.libReferenceDirectives=a,r.getLineAndCharacterOfPosition=e=>gs(r,e),r},createUnparsedPrologue:function(e){return ii(307,e)},createUnparsedPrepend:function(e,t){const n=ii(308,e);return n.texts=t,n},createUnparsedTextLike:function(e,t){return ii(t?310:309,e)},createUnparsedSyntheticReference:function(e){const t=b(311);return t.data=e.data,t.section=e,t},createInputFiles:function(){const e=b(315);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t=!1,n){const r=b(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=b(358);return t._children=e,t},createNotEmittedStatement:function(e){const t=b(359);return t.original=e,tI(t,e),t},createPartiallyEmittedExpression:oi,updatePartiallyEmittedExpression:ai,createCommaListExpression:ci,updateCommaListExpression:function(e,t){return e.elements!==t?n(ci(t),e):e},createSyntheticReferenceExpression:li,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?n(li(t,r),e):e},cloneNode:ui,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return s(40)},get createPrefixMinus(){return s(41)},get createPrefixIncrement(){return s(46)},get createPrefixDecrement(){return s(47)},get createBitwiseNot(){return s(55)},get createLogicalNot(){return s(54)},get createPostfixIncrement(){return c(46)},get createPostfixDecrement(){return c(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return lt(vt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,nn(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return lt(St(void 0,void 0,t?[t]:[],void 0,void 0,nn(e,!0)),void 0,n?[n]:[])},createVoidZero:_i,createExportDefault:function(e){return er(void 0,!1,e)},createExternalModuleExport:function(e){return nr(void 0,!1,ir([or(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?y.createStrictEquality(e,J()):"undefined"===t?y.createStrictEquality(e,_i()):y.createStrictEquality(wt(e),E(t))},createIsNotTypeCheck:function(e,t){return"null"===t?y.createStrictInequality(e,J()):"undefined"===t?y.createStrictInequality(e,_i()):y.createStrictInequality(wt(e),E(t))},createMethodCall:di,createGlobalMethodCall:fi,createFunctionBindCall:function(e,t,n){return di(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return di(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return di(e,"apply",[t,n])},createArraySliceCall:function(e,t){return di(e,"slice",void 0===t?[]:[Ci(t)])},createArrayConcatCall:function(e,t){return di(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return fi("Object","defineProperty",[e,Ci(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return fi("Object","getOwnPropertyDescriptor",[e,Ci(t)])},createReflectGetCall:function(e,t,n){return fi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return fi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];pi(n,"enumerable",Ci(e.enumerable)),pi(n,"configurable",Ci(e.configurable));let r=pi(n,"writable",Ci(e.writable));r=pi(n,"value",e.value)||r;let i=pi(n,"get",e.get);return i=pi(n,"set",e.set)||i,Fn.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ze(n,!t)},createCallBinding:function(e,t,n,i=!1){const o=lF(e,15);let a,s;return sg(o)?(a=B(),s=o):iD(o)?(a=B(),s=void 0!==n&&n<2?tI(P("_super"),o):o):8192&cp(o)?(a=_i(),s=r().parenthesizeLeftSideOfAccess(o,!1)):QD(o)?mi(o.expression,i)?(a=F(t),s=tt(tI(y.createAssignment(a,o.expression),o.expression),o.name),tI(s,o)):(a=o.expression,s=o):ZD(o)?mi(o.expression,i)?(a=F(t),s=ot(tI(y.createAssignment(a,o.expression),o.expression),o.argumentExpression),tI(s,o)):(a=o.expression,s=o):(a=_i(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return tt(ht(Ze([fe(void 0,"value",[G(void 0,void 0,e,void 0,void 0,void 0)],nn([sn(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?ci(e):qe(e,y.createComma)},getInternalName:function(e,t,n){return gi(e,t,n,98304)},getLocalName:function(e,t,n,r){return gi(e,t,n,32768,r)},getExportName:hi,getDeclarationName:function(e,t,n){return gi(e,t,n)},getNamespaceMemberName:yi,getExternalModuleOrNamespaceExportName:function(e,t,n,r){return e&&vb(t,1)?yi(e,gi(t),n,r):hi(t,n,r)},restoreOuterExpressions:function e(t,n,r=15){return t&&cF(t,r)&&(!(iN(i=t)&&tv(i)&&tv(sw(i))&&tv(fw(i)))||le(mw(i))||le(yw(i)))?function(e,t){switch(e.kind){case 217:return yt(e,t);case 216:return mt(e,e.type,t);case 234:return Wt(e,t,e.type);case 238:return Yt(e,t,e.type);case 235:return Gt(e,t);case 360:return ai(e,t)}}(t,e(t.expression,n)):n;var i},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=xn(n,n.label,UN(n.statement)?e(t,n.statement):t);return r&&r(n),i},createUseStrictPrologue:vi,copyPrologue:function(e,t,n,r){return xi(e,t,bi(e,t,0,n),r)},copyStandardPrologue:bi,copyCustomPrologue:xi,ensureUseStrict:function(e){return nF(e)?e:tI(v([vi(),...e]),e)},liftToBlock:function(e){return Fn.assert(I(e,O_),"Cannot lift nodes to a Block."),Je(e)||nn(e)},mergeLexicalEnvironment:function(e,t){if(!le(t))return e;const n=Si(e,hm,0),r=Si(e,vm,n),i=Si(e,xm,r),o=Si(t,hm,0),a=Si(t,vm,o),s=Si(t,xm,a),c=Si(t,ym,s);Fn.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Ql(e)?e.slice():e;if(c>s&&l.splice(i,0,...t.slice(s,c)),s>a&&l.splice(r,0,...t.slice(a,s)),a>o&&l.splice(n,0,...t.slice(o,a)),o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}return Ql(e)?tI(v(l,e.hasTrailingComma),e):e},updateModifiers:function(e,t){let n;return n="number"==typeof t?K(t):t,lD(e)?H(e,n,e.name,e.constraint,e.default):uD(e)?X(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):wD(e)?we(e,n,e.typeParameters,e.parameters,e.type):dD(e)?ee(e,n,e.name,e.questionToken,e.type):fD(e)?ne(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):pD(e)?ie(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):mD(e)?ae(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):hD(e)?ue(e,n,e.parameters,e.body):yD(e)?de(e,n,e.name,e.parameters,e.type,e.body):vD(e)?pe(e,n,e.name,e.parameters,e.body):SD(e)?ye(e,n,e.parameters,e.type):oN(e)?bt(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):aN(e)?kt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):yN(e)?Kt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):PN(e)?on(e,n,e.declarationList):YN(e)?En(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):QN(e)?Nn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):ZN(e)?Pn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):eA(e)?On(e,n,e.name,e.typeParameters,e.type):tA(e)?Ln(e,n,e.name,e.members):nA(e)?jn(e,n,e.name,e.body):aA(e)?Vn(e,n,e.isTypeOnly,e.name,e.moduleReference):sA(e)?Un(e,n,e.importClause,e.moduleSpecifier,e.assertClause):gA(e)?tr(e,n,e.expression):hA(e)?rr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.assertClause):Fn.assertNever(e)},updateModifierLike:function(e,t){return uD(e)?X(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):fD(e)?ne(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):mD(e)?ae(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):yD(e)?de(e,t,e.name,e.parameters,e.type,e.body):vD(e)?pe(e,t,e.name,e.parameters,e.body):yN(e)?Kt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):QN(e)?Nn(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):Fn.assertNever(e)}};return w(DC,(e=>e(y))),y;function v(e,t){if(void 0===e||e===a)e=[];else if(Ql(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&KC(e),Fn.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,Fn.attachNodeArrayDebugInfo(n),n}const n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,KC(r),Fn.attachNodeArrayDebugInfo(r),r}function b(e){return t.createBaseNode(e)}function x(e){const t=b(e);return t.symbol=void 0,t.localSymbol=void 0,t}function S(e,t){return e!==t&&(e.typeArguments=t.typeArguments),n(e,t)}function k(e,t=0){const n=x(9);return n.text="number"==typeof e?e+"":e,n.numericLiteralFlags=t,384&t&&(n.transformFlags|=1024),n}function T(e){const t=R(10);return t.text="string"==typeof e?e:ST(e)+"n",t.transformFlags|=32,t}function C(e,t){const n=x(11);return n.text=e,n.singleQuote=t,n}function E(e,t,n){const r=C(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function D(e){const t=R(14);return t.text=e,t}function N(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function A(e,t,n,r){const i=N(Pc(e));return Lw(i,{flags:t,id:wC,prefix:n,suffix:r}),wC++,i}function P(e,t,n){void 0===t&&e&&(t=cs(e)),80===t&&(t=void 0);const r=N(Pc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function F(e,t,n,r){let i=1;t&&(i|=8);const o=A("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){Fn.assert(!(7&t),"Argument out of range: flags"),(n||r)&&(t|=16);const i=A(e?Al(e)?qF(!1,n,e,r,Ic):`generated@${bB(e)}`:"",4|t,n,r);return i.original=e,i}function M(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function L(e,t,n,r){const i=M(Pc(e));return Lw(i,{flags:t,id:wC,prefix:n,suffix:r}),wC++,i}function R(e){return t.createBaseTokenNode(e)}function j(e){Fn.assert(e>=0&&e<=165,"Invalid token"),Fn.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Fn.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Fn.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=R(e);let n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0}return n&&(t.transformFlags|=n),t}function B(){return j(110)}function J(){return j(106)}function z(){return j(112)}function $(){return j(97)}function V(e){return j(e)}function K(e){const t=[];return 1&e&&t.push(V(95)),2&e&&t.push(V(138)),1024&e&&t.push(V(90)),2048&e&&t.push(V(87)),4&e&&t.push(V(125)),8&e&&t.push(V(123)),16&e&&t.push(V(124)),256&e&&t.push(V(128)),32&e&&t.push(V(126)),16384&e&&t.push(V(164)),64&e&&t.push(V(148)),128&e&&t.push(V(129)),512&e&&t.push(V(134)),32768&e&&t.push(V(103)),65536&e&&t.push(V(147)),t.length?t:void 0}function U(e,t){const n=b(166);return n.left=e,n.right=Ti(t),n.transformFlags|=$C(n.left)|zC(n.right),n.flowNode=void 0,n}function q(e){const t=b(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|$C(t.expression),t}function W(e,t,n,r){const i=x(168);return i.modifiers=ki(e),i.name=Ti(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function H(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.constraint!==i||e.default!==o?n(W(t,r,i,o),e):e}function G(e,t,n,r,i,o){const a=x(169);return a.modifiers=ki(e),a.dotDotDotToken=t,a.name=Ti(n),a.questionToken=r,a.type=i,a.initializer=wi(o),Qv(a.name)?a.transformFlags=1:a.transformFlags=VC(a.modifiers)|$C(a.dotDotDotToken)|JC(a.name)|$C(a.questionToken)|$C(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(16476&Rb(a.modifiers)?8192:0),a.jsDoc=void 0,a}function X(e,t,r,i,o,a,s){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==o||e.type!==a||e.initializer!==s?n(G(t,r,i,o,a,s),e):e}function Y(e){const t=b(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|$C(t.expression),t}function Q(e,t,n,r){const i=x(171);return i.modifiers=ki(e),i.name=Ti(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function ee(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.questionToken!==i||e.type!==o?((a=Q(t,r,i,o))!==(s=e)&&(a.initializer=s.initializer),n(a,s)):e;var a,s}function te(e,t,n,r,i){const o=x(172);o.modifiers=ki(e),o.name=Ti(t),o.questionToken=n&&$E(n)?n:void 0,o.exclamationToken=n&&zE(n)?n:void 0,o.type=r,o.initializer=wi(i);const a=33554432&o.flags||2&Rb(o.modifiers);return o.transformFlags=VC(o.modifiers)|JC(o.name)|$C(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(cD(o.name)||32&Rb(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function ne(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.questionToken!==(void 0!==i&&$E(i)?i:void 0)||e.exclamationToken!==(void 0!==i&&zE(i)?i:void 0)||e.type!==o||e.initializer!==a?n(te(t,r,i,o,a),e):e}function re(e,t,n,r,i,o){const a=x(173);return a.modifiers=ki(e),a.name=Ti(t),a.questionToken=n,a.typeParameters=ki(r),a.parameters=ki(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function ie(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?S(re(t,n,r,i,o,a),e):e}function oe(e,t,n,r,i,o,a,s){const c=x(174);if(c.modifiers=ki(e),c.asteriskToken=t,c.name=Ti(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=ki(i),c.parameters=v(o),c.type=a,c.body=s,c.body){const e=512&Rb(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=VC(c.modifiers)|$C(c.asteriskToken)|JC(c.name)|$C(c.questionToken)|VC(c.typeParameters)|VC(c.parameters)|$C(c.type)|-67108865&$C(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function ae(e,t,r,i,o,a,s,c,l){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.questionToken!==o||e.typeParameters!==a||e.parameters!==s||e.type!==c||e.body!==l?((u=oe(t,r,i,o,a,s,c,l))!==(_=e)&&(u.exclamationToken=_.exclamationToken),n(u,_)):e;var u,_}function se(e){const t=x(175);return t.body=e,t.transformFlags=16777216|$C(e),t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function ce(e,t,n){const r=x(176);return r.modifiers=ki(e),r.parameters=v(t),r.body=n,r.transformFlags=VC(r.modifiers)|VC(r.parameters)|-67108865&$C(r.body)|1024,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function ue(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=ce(t,n,r))!==(o=e)&&(i.typeParameters=o.typeParameters,i.type=o.type),S(i,o)):e;var i,o}function _e(e,t,n,r,i){const o=x(177);return o.modifiers=ki(e),o.name=Ti(t),o.parameters=v(n),o.type=r,o.body=i,o.body?o.transformFlags=VC(o.modifiers)|JC(o.name)|VC(o.parameters)|$C(o.type)|-67108865&$C(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function de(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?((a=_e(t,n,r,i,o))!==(s=e)&&(a.typeParameters=s.typeParameters),S(a,s)):e;var a,s}function fe(e,t,n,r){const i=x(178);return i.modifiers=ki(e),i.name=Ti(t),i.parameters=v(n),i.body=r,i.body?i.transformFlags=VC(i.modifiers)|JC(i.name)|VC(i.parameters)|-67108865&$C(i.body)|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function pe(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((o=fe(t,n,r,i))!==(a=e)&&(o.typeParameters=a.typeParameters,o.type=a.type),S(o,a)):e;var o,a}function me(e,t,n){const r=x(179);return r.typeParameters=ki(e),r.parameters=ki(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ge(e,t,n){const r=x(180);return r.typeParameters=ki(e),r.parameters=ki(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function he(e,t,n){const r=x(181);return r.modifiers=ki(e),r.parameters=ki(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ye(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?S(he(t,n,r),e):e}function ve(e,t){const n=b(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function be(e,t,n){const r=b(182);return r.assertsModifier=e,r.parameterName=Ti(t),r.type=n,r.transformFlags=1,r}function xe(e,t){const n=b(183);return n.typeName=Ti(e),n.typeArguments=t&&r().parenthesizeTypeArguments(v(t)),n.transformFlags=1,n}function Se(e,t,n){const r=x(184);return r.typeParameters=ki(e),r.parameters=ki(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function Te(...e){return 4===e.length?Ce(...e):3===e.length?function(e,t,n){return Ce(void 0,e,t,n)}(...e):Fn.fail("Incorrect number of arguments specified.")}function Ce(e,t,n,r){const i=x(185);return i.modifiers=ki(e),i.typeParameters=ki(t),i.parameters=ki(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function we(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?S(Te(t,n,r,i),e):e}function Ee(e,t){const n=b(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function De(e){const t=x(187);return t.members=v(e),t.transformFlags=1,t}function Ne(e){const t=b(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Ae(e){const t=b(189);return t.elements=v(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Pe(e,t,n,r){const i=x(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Fe(e){const t=b(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Ie(e){const t=b(191);return t.type=e,t.transformFlags=1,t}function Oe(e,t,n){const r=b(e);return r.types=y.createNodeArray(n(t)),r.transformFlags=1,r}function Me(e,t,r){return e.types!==t?n(Oe(e.kind,t,r),e):e}function Le(e,t,n,i){const o=b(194);return o.checkType=r().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=i,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function Re(e){const t=b(195);return t.typeParameter=e,t.transformFlags=1,t}function Be(e,t){const n=b(203);return n.head=e,n.templateSpans=v(t),n.transformFlags=1,n}function ze(e,t,n,i,o=!1){const a=b(205);return a.argument=e,a.assertions=t,a.qualifier=n,a.typeArguments=i&&r().parenthesizeTypeArguments(i),a.isTypeOf=o,a.transformFlags=1,a}function $e(e){const t=b(196);return t.type=e,t.transformFlags=1,t}function Ve(e,t){const n=b(198);return n.operator=e,n.type=148===e?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function Ke(e,t){const n=b(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function Ue(e,t,n,r,i,o){const a=x(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&v(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function He(e){const t=b(201);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=b(206);return t.elements=v(e),t.transformFlags|=525312|VC(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=b(207);return t.elements=v(e),t.transformFlags|=525312|VC(t.elements),t}function Ye(e,t,n,r){const i=x(208);return i.dotDotDotToken=e,i.propertyName=Ti(t),i.name=Ti(n),i.initializer=wi(r),i.transformFlags|=$C(i.dotDotDotToken)|JC(i.propertyName)|JC(i.name)|$C(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Qe(e,t){const n=b(209),i=e&&je(e),o=v(e,!(!i||!vN(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=VC(n.elements),n}function Ze(e,t){const n=x(210);return n.properties=v(e),n.multiLine=t,n.transformFlags|=VC(n.properties),n.jsDoc=void 0,n}function et(e,t,n){const r=x(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=$C(r.expression)|$C(r.questionDotToken)|(qE(r.name)?zC(r.name):536870912|$C(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function tt(e,t){const n=et(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ti(t));return iD(e)&&(n.transformFlags|=384),n}function nt(e,t,n){const i=et(r().parenthesizeLeftSideOfAccess(e,!0),t,Ti(n));return i.flags|=64,i.transformFlags|=32,i}function rt(e,t,r,i){return Fn.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==r||e.name!==i?n(nt(t,r,i),e):e}function it(e,t,n){const r=x(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=$C(r.expression)|$C(r.questionDotToken)|$C(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function ot(e,t){const n=it(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Ci(t));return iD(e)&&(n.transformFlags|=384),n}function at(e,t,n){const i=it(r().parenthesizeLeftSideOfAccess(e,!0),t,Ci(n));return i.flags|=64,i.transformFlags|=32,i}function st(e,t,r,i){return Fn.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==i?n(at(t,r,i),e):e}function ct(e,t,n,r){const i=x(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=$C(i.expression)|$C(i.questionDotToken)|VC(i.typeArguments)|VC(i.arguments),i.typeArguments&&(i.transformFlags|=1),sg(i.expression)&&(i.transformFlags|=16384),i}function lt(e,t,n){const i=ct(r().parenthesizeLeftSideOfAccess(e,!1),void 0,ki(t),r().parenthesizeExpressionsOfCommaDelimitedList(v(n)));return oD(i.expression)&&(i.transformFlags|=8388608),i}function ut(e,t,n,i){const o=ct(r().parenthesizeLeftSideOfAccess(e,!0),t,ki(n),r().parenthesizeExpressionsOfCommaDelimitedList(v(i)));return o.flags|=64,o.transformFlags|=32,o}function _t(e,t,r,i,o){return Fn.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==r||e.typeArguments!==i||e.arguments!==o?n(ut(t,r,i,o),e):e}function dt(e,t,n){const i=x(214);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=ki(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=$C(i.expression)|VC(i.typeArguments)|VC(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function ft(e,t,n){const i=b(215);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=ki(t),i.template=n,i.transformFlags|=$C(i.tag)|VC(i.typeArguments)|$C(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),_v(i.template)&&(i.transformFlags|=128),i}function pt(e,t){const n=b(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=$C(n.expression)|$C(n.type)|1,n}function mt(e,t,r){return e.type!==t||e.expression!==r?n(pt(t,r),e):e}function ht(e){const t=b(217);return t.expression=e,t.transformFlags=$C(t.expression),t.jsDoc=void 0,t}function yt(e,t){return e.expression!==t?n(ht(t),e):e}function vt(e,t,n,r,i,o,a){const s=x(218);s.modifiers=ki(e),s.asteriskToken=t,s.name=Ti(n),s.typeParameters=ki(r),s.parameters=v(i),s.type=o,s.body=a;const c=512&Rb(s.modifiers),l=!!s.asteriskToken,u=c&&l;return s.transformFlags=VC(s.modifiers)|$C(s.asteriskToken)|JC(s.name)|VC(s.typeParameters)|VC(s.parameters)|$C(s.type)|-67108865&$C(s.body)|(u?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function bt(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?S(vt(t,n,r,i,o,a,s),e):e}function St(e,t,n,i,o,a){const s=x(219);s.modifiers=ki(e),s.typeParameters=ki(t),s.parameters=v(n),s.type=i,s.equalsGreaterThanToken=o??j(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=512&Rb(s.modifiers);return s.transformFlags=VC(s.modifiers)|VC(s.typeParameters)|VC(s.parameters)|$C(s.type)|$C(s.equalsGreaterThanToken)|-67108865&$C(s.body)|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function kt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?S(St(t,n,r,i,o,a),e):e}function Ct(e){const t=b(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=$C(t.expression),t}function wt(e){const t=b(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=$C(t.expression),t}function Et(e){const t=b(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=$C(t.expression),t}function Dt(e){const t=b(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|$C(t.expression),t}function Nt(e,t){const n=b(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=$C(n.operand),46!==e&&47!==e||!qE(n.operand)||_u(n.operand)||ZP(n.operand)||(n.transformFlags|=268435456),n}function Ft(e,t){const n=b(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=$C(n.operand),!qE(n.operand)||_u(n.operand)||ZP(n.operand)||(n.transformFlags|=268435456),n}function It(e,t,n){const i=x(226),o="number"==typeof(a=t)?j(a):a;var a;const s=o.kind;return i.left=r().parenthesizeLeftSideOfBinary(s,e),i.operatorToken=o,i.right=r().parenthesizeRightSideOfBinary(s,i.left,n),i.transformFlags|=$C(i.left)|$C(i.operatorToken)|$C(i.right),61===s?i.transformFlags|=32:64===s?YD(i.left)?i.transformFlags|=5248|Ot(i.left):XD(i.left)&&(i.transformFlags|=5120|Ot(i.left)):43===s||68===s?i.transformFlags|=512:zb(s)&&(i.transformFlags|=16),103===s&&WE(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Ot(e){return ZF(e)?65536:0}function Mt(e,t,n,i,o){const a=b(227);return a.condition=r().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??j(58),a.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),a.colonToken=i??j(59),a.whenFalse=r().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=$C(a.condition)|$C(a.questionToken)|$C(a.whenTrue)|$C(a.colonToken)|$C(a.whenFalse),a}function Lt(e,t){const n=b(228);return n.head=e,n.templateSpans=v(t),n.transformFlags|=$C(n.head)|VC(n.templateSpans)|1024,n}function Rt(e,t,n,r=0){let i;if(Fn.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){switch(NC||(NC=zs(99,!1,0)),e){case 15:NC.setText("`"+t+"`");break;case 16:NC.setText("`"+t+"${");break;case 17:NC.setText("}"+t+"${");break;case 18:NC.setText("}"+t+"`")}let n,r=NC.scan();if(20===r&&(r=NC.reScanTemplateToken(!1)),NC.isUnterminated())return NC.setText(void 0),AC;switch(r){case 15:case 16:case 17:case 18:n=NC.getTokenValue()}return void 0===n||1!==NC.scan()?(NC.setText(void 0),AC):(NC.setText(void 0),n)}(e,n),"object"==typeof i))return Fn.fail("Invalid raw text");if(void 0===t){if(void 0===i)return Fn.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&Fn.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function jt(e){let t=1024;return e&&(t|=128),t}function Bt(e,t,n,r){const i=x(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=jt(i.templateFlags),i}function Jt(e,t,n,r){return 15===e?Bt(e,t,n,r):function(e,t,n,r){const i=R(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=jt(i.templateFlags),i}(e,t,n,r)}function zt(e,t){Fn.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=b(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=$C(n.expression)|$C(n.asteriskToken)|1049728,n}function $t(e){const t=b(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|$C(t.expression),t}function Vt(e,t,n,r,i){const o=x(231);return o.modifiers=ki(e),o.name=Ti(t),o.typeParameters=ki(n),o.heritageClauses=ki(r),o.members=v(i),o.transformFlags|=VC(o.modifiers)|JC(o.name)|VC(o.typeParameters)|VC(o.heritageClauses)|VC(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Kt(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(Vt(t,r,i,o,a),e):e}function Ut(e,t){const n=b(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=$C(n.expression)|VC(n.typeArguments)|1024,n}function qt(e,t){const n=b(234);return n.expression=e,n.type=t,n.transformFlags|=$C(n.expression)|$C(n.type)|1,n}function Wt(e,t,r){return e.expression!==t||e.type!==r?n(qt(t,r),e):e}function Ht(e){const t=b(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|$C(t.expression),t}function Gt(e,t){return $l(e)?Zt(e,t):e.expression!==t?n(Ht(t),e):e}function Xt(e,t){const n=b(238);return n.expression=e,n.type=t,n.transformFlags|=$C(n.expression)|$C(n.type)|1,n}function Yt(e,t,r){return e.expression!==t||e.type!==r?n(Xt(t,r),e):e}function Qt(e){const t=b(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|$C(t.expression),t}function Zt(e,t){return Fn.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?n(Qt(t),e):e}function en(e,t){const n=b(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=$C(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return Fn.assertNever(e)}return n.flowNode=void 0,n}function tn(e,t){const n=b(239);return n.expression=e,n.literal=t,n.transformFlags|=$C(n.expression)|$C(n.literal)|1024,n}function nn(e,t){const n=b(241);return n.statements=v(e),n.multiLine=t,n.transformFlags|=VC(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function rn(e,t){const n=b(243);return n.modifiers=ki(e),n.declarationList=gt(t)?Cn(t):t,n.transformFlags|=VC(n.modifiers)|$C(n.declarationList),2&Rb(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function on(e,t,r){return e.modifiers!==t||e.declarationList!==r?n(rn(t,r),e):e}function an(){const e=b(242);return e.jsDoc=void 0,e}function sn(e){const t=b(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=$C(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function cn(e,t,n){const r=b(245);return r.expression=e,r.thenStatement=Ei(t),r.elseStatement=Ei(n),r.transformFlags|=$C(r.expression)|$C(r.thenStatement)|$C(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function ln(e,t){const n=b(246);return n.statement=Ei(e),n.expression=t,n.transformFlags|=$C(n.statement)|$C(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function un(e,t){const n=b(247);return n.expression=e,n.statement=Ei(t),n.transformFlags|=$C(n.expression)|$C(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function _n(e,t,n,r){const i=b(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ei(r),i.transformFlags|=$C(i.initializer)|$C(i.condition)|$C(i.incrementor)|$C(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function dn(e,t,n){const r=b(249);return r.initializer=e,r.expression=t,r.statement=Ei(n),r.transformFlags|=$C(r.initializer)|$C(r.expression)|$C(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function pn(e,t,n,i){const o=b(250);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ei(i),o.transformFlags|=$C(o.awaitModifier)|$C(o.initializer)|$C(o.expression)|$C(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function mn(e){const t=b(251);return t.label=Ti(e),t.transformFlags|=4194304|$C(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function gn(e){const t=b(252);return t.label=Ti(e),t.transformFlags|=4194304|$C(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function hn(e){const t=b(253);return t.expression=e,t.transformFlags|=4194432|$C(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function yn(e,t){const n=b(254);return n.expression=e,n.statement=Ei(t),n.transformFlags|=$C(n.expression)|$C(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function vn(e,t){const n=b(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=$C(n.expression)|$C(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function bn(e,t){const n=b(256);return n.label=Ti(e),n.statement=Ei(t),n.transformFlags|=$C(n.label)|$C(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function xn(e,t,r){return e.label!==t||e.statement!==r?n(bn(t,r),e):e}function Sn(e){const t=b(257);return t.expression=e,t.transformFlags|=$C(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function kn(e,t,n){const r=b(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=$C(r.tryBlock)|$C(r.catchClause)|$C(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Tn(e,t,n,r){const i=x(260);return i.name=Ti(e),i.exclamationToken=t,i.type=n,i.initializer=wi(r),i.transformFlags|=JC(i.name)|$C(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Cn(e,t=0){const n=b(261);return n.flags|=7&t,n.declarations=v(e),n.transformFlags|=4194304|VC(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function wn(e,t,n,r,i,o,a){const s=x(262);if(s.modifiers=ki(e),s.asteriskToken=t,s.name=Ti(n),s.typeParameters=ki(r),s.parameters=v(i),s.type=o,s.body=a,!s.body||2&Rb(s.modifiers))s.transformFlags=1;else{const e=512&Rb(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=VC(s.modifiers)|$C(s.asteriskToken)|JC(s.name)|VC(s.typeParameters)|VC(s.parameters)|$C(s.type)|-67108865&$C(s.body)|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function En(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?((c=wn(t,n,r,i,o,a,s))!==(l=e)&&c.modifiers===l.modifiers&&(c.modifiers=l.modifiers),S(c,l)):e;var c,l}function Dn(e,t,n,r,i){const o=x(263);return o.modifiers=ki(e),o.name=Ti(t),o.typeParameters=ki(n),o.heritageClauses=ki(r),o.members=v(i),2&Rb(o.modifiers)?o.transformFlags=1:(o.transformFlags|=VC(o.modifiers)|JC(o.name)|VC(o.typeParameters)|VC(o.heritageClauses)|VC(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function Nn(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(Dn(t,r,i,o,a),e):e}function An(e,t,n,r,i){const o=x(264);return o.modifiers=ki(e),o.name=Ti(t),o.typeParameters=ki(n),o.heritageClauses=ki(r),o.members=v(i),o.transformFlags=1,o.jsDoc=void 0,o}function Pn(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(An(t,r,i,o,a),e):e}function In(e,t,n,r){const i=x(265);return i.modifiers=ki(e),i.name=Ti(t),i.typeParameters=ki(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function On(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.type!==o?n(In(t,r,i,o),e):e}function Mn(e,t,n){const r=x(266);return r.modifiers=ki(e),r.name=Ti(t),r.members=v(n),r.transformFlags|=VC(r.modifiers)|$C(r.name)|VC(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Ln(e,t,r,i){return e.modifiers!==t||e.name!==r||e.members!==i?n(Mn(t,r,i),e):e}function Rn(e,t,n,r=0){const i=x(267);return i.modifiers=ki(e),i.flags|=2088&r,i.name=t,i.body=n,2&Rb(i.modifiers)?i.transformFlags=1:i.transformFlags|=VC(i.modifiers)|$C(i.name)|$C(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function jn(e,t,r,i){return e.modifiers!==t||e.name!==r||e.body!==i?n(Rn(t,r,i,e.flags),e):e}function Bn(e){const t=b(268);return t.statements=v(e),t.transformFlags|=VC(t.statements),t.jsDoc=void 0,t}function Jn(e){const t=b(269);return t.clauses=v(e),t.transformFlags|=VC(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function zn(e){const t=x(270);return t.name=Ti(e),t.transformFlags|=1|zC(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function $n(e,t,n,r){const i=x(271);return i.modifiers=ki(e),i.name=Ti(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=VC(i.modifiers)|zC(i.name)|$C(i.moduleReference),kA(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Vn(e,t,r,i,o){return e.modifiers!==t||e.isTypeOnly!==r||e.name!==i||e.moduleReference!==o?n($n(t,r,i,o),e):e}function Kn(e,t,n,r){const i=b(272);return i.modifiers=ki(e),i.importClause=t,i.moduleSpecifier=n,i.assertClause=r,i.transformFlags|=$C(i.importClause)|$C(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Un(e,t,r,i,o){return e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==i||e.assertClause!==o?n(Kn(t,r,i,o),e):e}function qn(e,t,n){const r=x(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=$C(r.name)|$C(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Wn(e,t){const n=b(300);return n.elements=v(e),n.multiLine=t,n.transformFlags|=4,n}function Hn(e,t){const n=b(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Gn(e,t){const n=b(302);return n.assertClause=e,n.multiLine=t,n}function Xn(e){const t=x(274);return t.name=e,t.transformFlags|=$C(t.name),t.transformFlags&=-67108865,t}function Yn(e){const t=x(280);return t.name=e,t.transformFlags|=32|$C(t.name),t.transformFlags&=-67108865,t}function Qn(e){const t=b(275);return t.elements=v(e),t.transformFlags|=VC(t.elements),t.transformFlags&=-67108865,t}function Zn(e,t,n){const r=x(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=$C(r.propertyName)|$C(r.name),r.transformFlags&=-67108865,r}function er(e,t,n){const i=x(277);return i.modifiers=ki(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=VC(i.modifiers)|$C(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function tr(e,t,r){return e.modifiers!==t||e.expression!==r?n(er(t,e.isExportEquals,r),e):e}function nr(e,t,n,r,i){const o=x(278);return o.modifiers=ki(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.assertClause=i,o.transformFlags|=VC(o.modifiers)|$C(o.exportClause)|$C(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function rr(e,t,r,i,o,a){return e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==i||e.moduleSpecifier!==o||e.assertClause!==a?((s=nr(t,r,i,o,a))!==(c=e)&&s.modifiers===c.modifiers&&(s.modifiers=c.modifiers),n(s,c)):e;var s,c}function ir(e){const t=b(279);return t.elements=v(e),t.transformFlags|=VC(t.elements),t.transformFlags&=-67108865,t}function or(e,t,n){const r=b(281);return r.isTypeOnly=e,r.propertyName=Ti(t),r.name=Ti(n),r.transformFlags|=$C(r.propertyName)|$C(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function ar(e){const t=b(283);return t.expression=e,t.transformFlags|=$C(t.expression),t.transformFlags&=-67108865,t}function sr(e,t,n=!1){const i=cr(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function cr(e,t){const n=b(e);return n.type=t,n}function lr(e,t){const n=x(324);return n.parameters=ki(e),n.type=t,n.transformFlags=VC(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function ur(e,t=!1){const n=x(329);return n.jsDocPropertyTags=ki(e),n.isArrayType=t,n}function _r(e){const t=b(316);return t.type=e,t}function dr(e,t,n){const r=x(330);return r.typeParameters=ki(e),r.parameters=v(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function fr(e){const t=BC(e.kind);return e.tagName.escapedText===Pc(t)?e.tagName:P(t)}function pr(e,t,n){const r=b(e);return r.tagName=t,r.comment=n,r}function mr(e,t,n){const r=x(e);return r.tagName=t,r.comment=n,r}function gr(e,t,n,r){const i=pr(352,e??P("template"),r);return i.constraint=t,i.typeParameters=v(n),i}function hr(e,t,n,r){const i=mr(353,e??P("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=EF(n),i.locals=void 0,i.nextContainer=void 0,i}function yr(e,t,n,r,i,o){const a=mr(348,e??P("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function vr(e,t,n,r,i,o){const a=mr(355,e??P("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function br(e,t,n,r){const i=mr(345,e??P("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=EF(n),i.locals=void 0,i.nextContainer=void 0,i}function xr(e,t,n){const r=pr(346,e??P("overload"),n);return r.typeExpression=t,r}function Sr(e,t,n){const r=pr(335,e??P("augments"),n);return r.class=t,r}function kr(e,t,n){const r=pr(336,e??P("implements"),n);return r.class=t,r}function Tr(e,t,n){const r=pr(354,e??P("see"),n);return r.name=t,r}function Cr(e){const t=b(317);return t.name=e,t}function wr(e,t){const n=b(318);return n.left=e,n.right=t,n.transformFlags|=$C(n.left)|$C(n.right),n}function Er(e,t){const n=b(331);return n.name=e,n.text=t,n}function Dr(e,t){const n=b(332);return n.name=e,n.text=t,n}function Nr(e,t){const n=b(333);return n.name=e,n.text=t,n}function Ar(e,t,n){return pr(e,t??P(BC(e)),n)}function Pr(e,t,n,r){const i=pr(e,t??P(BC(e)),r);return i.typeExpression=n,i}function Fr(e,t){return pr(334,e,t)}function Ir(e,t,n){const r=mr(347,e??P(BC(347)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Or(e){const t=b(328);return t.text=e,t}function Mr(e,t){const n=b(327);return n.comment=e,n.tags=ki(t),n}function Lr(e,t,n){const r=b(284);return r.openingElement=e,r.children=v(t),r.closingElement=n,r.transformFlags|=$C(r.openingElement)|VC(r.children)|$C(r.closingElement)|2,r}function Rr(e,t,n){const r=b(285);return r.tagName=e,r.typeArguments=ki(t),r.attributes=n,r.transformFlags|=$C(r.tagName)|VC(r.typeArguments)|$C(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function jr(e,t,n){const r=b(286);return r.tagName=e,r.typeArguments=ki(t),r.attributes=n,r.transformFlags|=$C(r.tagName)|VC(r.typeArguments)|$C(r.attributes)|2,t&&(r.transformFlags|=1),r}function Br(e){const t=b(287);return t.tagName=e,t.transformFlags|=2|$C(t.tagName),t}function Jr(e,t,n){const r=b(288);return r.openingFragment=e,r.children=v(t),r.closingFragment=n,r.transformFlags|=$C(r.openingFragment)|VC(r.children)|$C(r.closingFragment)|2,r}function zr(e,t){const n=b(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function $r(e,t){const n=x(291);return n.name=e,n.initializer=t,n.transformFlags|=$C(n.name)|$C(n.initializer)|2,n}function Vr(e){const t=x(292);return t.properties=v(e),t.transformFlags|=2|VC(t.properties),t}function Kr(e){const t=b(293);return t.expression=e,t.transformFlags|=2|$C(t.expression),t}function Ur(e,t){const n=b(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=$C(n.dotDotDotToken)|$C(n.expression)|2,n}function qr(e,t){const n=b(295);return n.namespace=e,n.name=t,n.transformFlags|=$C(n.namespace)|$C(n.name)|2,n}function Wr(e,t){const n=b(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=v(t),n.transformFlags|=$C(n.expression)|VC(n.statements),n.jsDoc=void 0,n}function Hr(e){const t=b(297);return t.statements=v(e),t.transformFlags=VC(t.statements),t}function Gr(e,t){const n=b(298);switch(n.token=e,n.types=v(t),n.transformFlags|=VC(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return Fn.assertNever(e)}return n}function Xr(e,t){const n=b(299);return n.variableDeclaration=function(e){return"string"==typeof e||e&&!GN(e)?Tn(e,void 0,void 0,void 0):e}(e),n.block=t,n.transformFlags|=$C(n.variableDeclaration)|$C(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function Yr(e,t){const n=x(303);return n.name=Ti(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=JC(n.name)|$C(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function Qr(e,t){const n=x(304);return n.name=Ti(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=zC(n.name)|$C(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function Zr(e){const t=x(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|$C(t.expression),t.jsDoc=void 0,t}function ei(e,t){const n=x(306);return n.name=Ti(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=$C(n.name)|$C(n.initializer)|1,n.jsDoc=void 0,n}function ti(e){const t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function ni(e){const n=e.redirectInfo?function(e){const t=ti(e.redirectInfo);return t.flags|=-17&e.flags,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}(e):function(e){const n=t.createBaseSourceFileNode(312);n.flags|=-17&e.flags;for(const t in e)!We(n,t)&&We(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return QC(n,e),n}function ri(e,t=a){const n=b(313);return n.prepends=t,n.sourceFiles=e,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function ii(e,t){const n=b(e);return n.data=t,n}function oi(e,t){const n=b(360);return n.expression=e,n.original=t,n.transformFlags|=1|$C(n.expression),tI(n,t),n}function ai(e,t){return e.expression!==t?n(oi(t,e.original),e):e}function si(e){if(tv(e)&&!Nc(e)&&!e.original&&!e.emitNode&&!e.id){if(EN(e))return e.elements;if(fN(e)&&RE(e.operatorToken))return[e.left,e.right]}return e}function ci(e){const t=b(361);return t.elements=v(Z(e,si)),t.transformFlags|=VC(t.elements),t}function li(e,t){const n=b(362);return n.expression=e,n.thisArg=t,n.transformFlags|=$C(n.expression)|$C(n.thisArg),n}function ui(e){if(void 0===e)return e;if(UA(e))return ni(e);if(_u(e))return function(e){const t=N(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,QC(t,e),Lw(t,{...e.emitNode.autoGenerate}),t}(e);if(qE(e))return function(e){const t=N(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,QC(t,e);const n=Mw(e);return n&&Ow(t,n),t}(e);if(du(e))return function(e){const t=M(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,QC(t,e),Lw(t,{...e.emitNode.autoGenerate}),t}(e);if(WE(e))return function(e){const t=M(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,QC(t,e),t}(e);const n=Gl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);n.flags|=-17&e.flags,n.transformFlags=e.transformFlags,QC(n,e);for(const t in e)!We(n,t)&&We(e,t)&&(n[t]=e[t]);return n}function _i(){return Et(k("0"))}function di(e,t,n){return Ol(e)?ut(nt(e,void 0,t),void 0,void 0,n):lt(tt(e,t),void 0,n)}function fi(e,t,n){return di(P(e),t,n)}function pi(e,t,n){return!!n&&(e.push(Yr(t,n)),!0)}function mi(e,t){const n=ny(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function gi(e,t,n,r=0,i){const o=i?e&&zc(e):$c(e);if(o&&qE(o)&&!_u(o)){const e=OT(tI(ui(o),o),o.parent);return r|=cp(o),n||(r|=96),t||(r|=3072),r&&rw(e,r),e}return O(e)}function hi(e,t,n){return gi(e,t,n,16384)}function yi(e,t,n,r){const i=tt(e,tv(t)?t:ui(t));tI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&rw(i,o),i}function vi(){return dF(sn(E("use strict")))}function bi(e,t,n=0,r){Fn.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 360:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}function qC(e){return e.flags|=16,e}function WC(e,t,n){let r,i,o,s,c,l,u,_,d,f;yt(e)?(o="",s=e,c=e.length,l=t,u=n):(Fn.assert("js"===t||"dts"===t),o=("js"===t?e.javascriptPath:e.declarationPath)||"",l="js"===t?e.javascriptMapPath:e.declarationMapPath,_=()=>"js"===t?e.javascriptText:e.declarationText,d=()=>"js"===t?e.javascriptMapText:e.declarationMapText,c=()=>_().length,e.buildInfo&&e.buildInfo.bundle&&(Fn.assert(void 0===n||"boolean"==typeof n),r=n,i="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,f=e.oldFileOfCurrentEmit));const p=f?function(e){let t,n;for(const r of e.sections)switch(r.kind){case"internal":case"text":t=ke(t,tI(FC.createUnparsedTextLike(r.data,"internal"===r.kind),r));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=ke(n,tI(FC.createUnparsedSyntheticReference(r),r));break;case"prologue":case"emitHelpers":case"prepend":break;default:Fn.assertNever(r)}const r=FC.createUnparsedSource(a,n,t??a);return MT(n,r),MT(t,r),r.helpers=q(e.sources&&e.sources.helpers,(e=>TE().get(e))),r}(Fn.checkDefined(i)):function(e,t,n){let r,i,o,s,c,l,u,_;for(const n of e?e.sections:a)switch(n.kind){case"prologue":r=ke(r,tI(FC.createUnparsedPrologue(n.data),n));break;case"emitHelpers":i=ke(i,TE().get(n.data));break;case"no-default-lib":_=!0;break;case"reference":o=ke(o,{pos:-1,end:-1,fileName:n.data});break;case"type":s=ke(s,{pos:-1,end:-1,fileName:n.data});break;case"type-import":s=ke(s,{pos:-1,end:-1,fileName:n.data,resolutionMode:99});break;case"type-require":s=ke(s,{pos:-1,end:-1,fileName:n.data,resolutionMode:1});break;case"lib":c=ke(c,{pos:-1,end:-1,fileName:n.data});break;case"prepend":let e;for(const r of n.texts)t&&"internal"===r.kind||(e=ke(e,tI(FC.createUnparsedTextLike(r.data,"internal"===r.kind),r)));l=we(l,e),u=ke(u,FC.createUnparsedPrepend(n.data,e??a));break;case"internal":if(t){u||(u=[]);break}case"text":u=ke(u,tI(FC.createUnparsedTextLike(n.data,"internal"===n.kind),n));break;default:Fn.assertNever(n)}if(!u){const e=FC.createUnparsedTextLike(void 0,!1);FT(e,0,"function"==typeof n?n():n),u=[e]}const d=uI.createUnparsedSource(r??a,void 0,u);return MT(r,d),MT(u,d),MT(l,d),d.hasNoDefaultLib=_,d.helpers=i,d.referencedFiles=o||a,d.typeReferenceDirectives=s,d.libReferenceDirectives=c||a,d}(i,r,c);return p.fileName=o,p.sourceMapPath=l,p.oldFileOfCurrentEmit=f,_&&d?(Object.defineProperty(p,"text",{get:_}),Object.defineProperty(p,"sourceMapText",{get:d})):(Fn.assert(!f),p.text=s??"",p.sourceMapText=u),p}function HC(e,t,n,r,i,o){return yt(e)?XC(void 0,e,n,r,void 0,t,i,o):GC(e,t,n,r,i,o)}function GC(e,t,n,r,i,o,a,s){const c=uI.createInputFiles();c.javascriptPath=t,c.javascriptMapPath=n,c.declarationPath=r,c.declarationMapPath=i,c.buildInfoPath=o;const l=new Map,u=t=>{if(void 0===t)return;let n=l.get(t);return void 0===n&&(n=e(t),l.set(t,void 0!==n&&n)),!1!==n?n:void 0},_=e=>{const t=u(e);return void 0!==t?t:`/* Input file ${e} was missing */\r\n`};let d;return Object.defineProperties(c,{javascriptText:{get:()=>_(t)},javascriptMapText:{get:()=>u(n)},declarationText:{get:()=>_(Fn.checkDefined(r))},declarationMapText:{get:()=>u(i)},buildInfo:{get:()=>{if(void 0===d&&o)if(null==a?void 0:a.getBuildInfo)d=a.getBuildInfo(o,s.configFilePath)??!1;else{const e=u(o);d=void 0!==e&&(gV(o,e)??!1)}return d||void 0}}}),c}function XC(e,t,n,r,i,o,a,s,c,l,u){const _=uI.createInputFiles();return _.javascriptPath=e,_.javascriptText=t,_.javascriptMapPath=n,_.javascriptMapText=r,_.declarationPath=i,_.declarationText=o,_.declarationMapPath=a,_.declarationMapText=s,_.buildInfoPath=c,_.buildInfo=l,_.oldFileOfCurrentEmit=u,_}function YC(e,t,n){return new(IC||(IC=Id.getSourceMapSourceConstructor()))(e,t,n)}function QC(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:u,startsOnNewLine:_,snippetElement:d,classThis:f,assignedName:p}=e;if(t||(t={}),n&&(t.flags=n),r&&(t.internalFlags=-9&r),i&&(t.leadingComments=we(i.slice(),t.leadingComments)),o&&(t.trailingComments=we(o.slice(),t.trailingComments)),a&&(t.commentRange=a),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges)),void 0!==l&&(t.constantValue=l),u)for(const e of u)t.helpers=De(t.helpers,e);return void 0!==_&&(t.startsOnNewLine=_),void 0!==d&&(t.snippetElement=d),f&&(t.classThis=f),p&&(t.assignedName=p),t}(n,e.emitNode))}return e}var ZC=S({"src/compiler/factory/nodeFactory.ts"(){gH(),wC=0,EC=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(EC||{}),DC=[],AC={},PC=vC(),FC=LC(4,{createBaseSourceFileNode:e=>qC(PC.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>qC(PC.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>qC(PC.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>qC(PC.createBaseTokenNode(e)),createBaseNode:e=>qC(PC.createBaseNode(e))})}});function ew(e){if(e.emitNode)Fn.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Nc(e)){if(312===e.kind)return e.emitNode={annotatedNodes:[e]};ew(Ff(Ac(Ff(e)))??Fn.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function tw(e){var t,n;const r=null==(n=null==(t=Ff(Ac(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function nw(e){const t=ew(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function rw(e,t){return ew(e).flags=t,e}function iw(e,t){const n=ew(e);return n.flags=n.flags|t,e}function ow(e,t){return ew(e).internalFlags=t,e}function aw(e,t){const n=ew(e);return n.internalFlags=n.internalFlags|t,e}function sw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function cw(e,t){return ew(e).sourceMapRange=t,e}function lw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function uw(e,t,n){const r=ew(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function _w(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function dw(e,t){return ew(e).startsOnNewLine=t,e}function fw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function pw(e,t){return ew(e).commentRange=t,e}function mw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function gw(e,t){return ew(e).leadingComments=t,e}function hw(e,t,n,r){return gw(e,ke(mw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function yw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function vw(e,t){return ew(e).trailingComments=t,e}function bw(e,t,n,r){return vw(e,ke(yw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function xw(e,t){gw(e,mw(t)),vw(e,yw(t));const n=ew(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Sw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function kw(e,t){return ew(e).constantValue=t,e}function Tw(e,t){const n=ew(e);return n.helpers=ke(n.helpers,t),e}function Cw(e,t){if(le(t)){const n=ew(e);for(const e of t)n.helpers=De(n.helpers,e)}return e}function ww(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&on(r,t)}function Ew(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function Dw(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!le(i))return;const o=ew(t);let a=0;for(let e=0;e0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Nw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Aw(e,t){return ew(e).snippetElement=t,e}function Pw(e){return ew(e).internalFlags|=4,e}function Fw(e,t){return ew(e).typeNode=t,e}function Iw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function Ow(e,t){return ew(e).identifierTypeArguments=t,e}function Mw(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function Lw(e,t){return ew(e).autoGenerate=t,e}function Rw(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function jw(e,t){return ew(e).generatedImportReference=t,e}function Bw(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var Jw,zw,$w,Vw,Kw,Uw,qw,Ww,Hw,Gw,Xw,Yw,Qw,Zw,eE,tE,nE,rE,iE,oE,aE,sE,cE,lE,uE,_E,dE,fE,pE,mE,gE,hE,yE,vE,bE=S({"src/compiler/factory/emitNode.ts"(){gH()}});function xE(e){const t=e.factory,n=At((()=>ow(t.createTrue(),8))),r=At((()=>ow(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(zw);const s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a)),t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper($w),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(Vw),tI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(Kw),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(Uw),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){return HS(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(qw),t.createCallExpression(i("__assign"),void 0,n))},createAwaitHelper:function(n){return e.requestEmitHelper(Ww),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(Ww),e.requestEmitHelper(Hw),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper(Ww),e.requestEmitHelper(Gw),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(Xw),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(Yw);const s=[];let c=0;for(let e=0;e{let r="";for(let i=0;ie.name)))}function CE(e,t){return eN(e)&&qE(e.expression)&&0!=(8192&cp(e.expression))&&e.expression.escapedText===t}var wE=S({"src/compiler/factory/emitHelpers.ts"(){gH(),Jw=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Jw||{}),zw={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},$w={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},Vw={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},Kw={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},Uw={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},qw={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},Hw={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Ww={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"}],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 };'},Gw={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Ww],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: false } : f ? f(v) : v; } : f; }\n };'},Xw={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},Yw={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},Qw={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},Zw={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},eE={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},tE={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},nE={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},rE={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},iE={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},oE={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},aE={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},lE={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[sE={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},cE={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},uE={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},_E={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[sE],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},dE={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},fE={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},pE={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},mE={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},gE={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},yE={name:"typescript:async-super",scoped:!0,text:kE` + const ${"_superIndex"} = name => super[name];`},vE={name:"typescript:advanced-async-super",scoped:!0,text:kE` + const ${"_superIndex"} = (function (geti, seti) { + const cache = Object.create(null); + return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); + })(name => super[name], (name, value) => super[name] = value);`}}});function EE(e){return 9===e.kind}function DE(e){return 10===e.kind}function NE(e){return 11===e.kind}function AE(e){return 12===e.kind}function PE(e){return 14===e.kind}function FE(e){return 15===e.kind}function IE(e){return 16===e.kind}function OE(e){return 17===e.kind}function ME(e){return 18===e.kind}function LE(e){return 26===e.kind}function RE(e){return 28===e.kind}function jE(e){return 40===e.kind}function BE(e){return 41===e.kind}function JE(e){return 42===e.kind}function zE(e){return 54===e.kind}function $E(e){return 58===e.kind}function VE(e){return 59===e.kind}function KE(e){return 29===e.kind}function UE(e){return 39===e.kind}function qE(e){return 80===e.kind}function WE(e){return 81===e.kind}function HE(e){return 95===e.kind}function GE(e){return 90===e.kind}function XE(e){return 134===e.kind}function YE(e){return 131===e.kind}function QE(e){return 135===e.kind}function ZE(e){return 148===e.kind}function eD(e){return 126===e.kind}function tD(e){return 128===e.kind}function nD(e){return 164===e.kind}function rD(e){return 129===e.kind}function iD(e){return 108===e.kind}function oD(e){return 102===e.kind}function aD(e){return 84===e.kind}function sD(e){return 166===e.kind}function cD(e){return 167===e.kind}function lD(e){return 168===e.kind}function uD(e){return 169===e.kind}function _D(e){return 170===e.kind}function dD(e){return 171===e.kind}function fD(e){return 172===e.kind}function pD(e){return 173===e.kind}function mD(e){return 174===e.kind}function gD(e){return 175===e.kind}function hD(e){return 176===e.kind}function yD(e){return 177===e.kind}function vD(e){return 178===e.kind}function bD(e){return 179===e.kind}function xD(e){return 180===e.kind}function SD(e){return 181===e.kind}function kD(e){return 182===e.kind}function TD(e){return 183===e.kind}function CD(e){return 184===e.kind}function wD(e){return 185===e.kind}function ED(e){return 186===e.kind}function DD(e){return 187===e.kind}function ND(e){return 188===e.kind}function AD(e){return 189===e.kind}function PD(e){return 202===e.kind}function FD(e){return 190===e.kind}function ID(e){return 191===e.kind}function OD(e){return 192===e.kind}function MD(e){return 193===e.kind}function LD(e){return 194===e.kind}function RD(e){return 195===e.kind}function jD(e){return 196===e.kind}function BD(e){return 197===e.kind}function JD(e){return 198===e.kind}function zD(e){return 199===e.kind}function $D(e){return 200===e.kind}function VD(e){return 201===e.kind}function KD(e){return 205===e.kind}function UD(e){return 204===e.kind}function qD(e){return 203===e.kind}function WD(e){return 206===e.kind}function HD(e){return 207===e.kind}function GD(e){return 208===e.kind}function XD(e){return 209===e.kind}function YD(e){return 210===e.kind}function QD(e){return 211===e.kind}function ZD(e){return 212===e.kind}function eN(e){return 213===e.kind}function tN(e){return 214===e.kind}function nN(e){return 215===e.kind}function rN(e){return 216===e.kind}function iN(e){return 217===e.kind}function oN(e){return 218===e.kind}function aN(e){return 219===e.kind}function sN(e){return 220===e.kind}function cN(e){return 221===e.kind}function lN(e){return 222===e.kind}function uN(e){return 223===e.kind}function _N(e){return 224===e.kind}function dN(e){return 225===e.kind}function fN(e){return 226===e.kind}function pN(e){return 227===e.kind}function mN(e){return 228===e.kind}function gN(e){return 229===e.kind}function hN(e){return 230===e.kind}function yN(e){return 231===e.kind}function vN(e){return 232===e.kind}function bN(e){return 233===e.kind}function xN(e){return 234===e.kind}function SN(e){return 238===e.kind}function kN(e){return 235===e.kind}function TN(e){return 236===e.kind}function CN(e){return 237===e.kind}function wN(e){return 360===e.kind}function EN(e){return 361===e.kind}function DN(e){return 239===e.kind}function NN(e){return 240===e.kind}function AN(e){return 241===e.kind}function PN(e){return 243===e.kind}function FN(e){return 242===e.kind}function IN(e){return 244===e.kind}function ON(e){return 245===e.kind}function MN(e){return 246===e.kind}function LN(e){return 247===e.kind}function RN(e){return 248===e.kind}function jN(e){return 249===e.kind}function BN(e){return 250===e.kind}function JN(e){return 251===e.kind}function zN(e){return 252===e.kind}function $N(e){return 253===e.kind}function VN(e){return 254===e.kind}function KN(e){return 255===e.kind}function UN(e){return 256===e.kind}function qN(e){return 257===e.kind}function WN(e){return 258===e.kind}function HN(e){return 259===e.kind}function GN(e){return 260===e.kind}function XN(e){return 261===e.kind}function YN(e){return 262===e.kind}function QN(e){return 263===e.kind}function ZN(e){return 264===e.kind}function eA(e){return 265===e.kind}function tA(e){return 266===e.kind}function nA(e){return 267===e.kind}function rA(e){return 268===e.kind}function iA(e){return 269===e.kind}function oA(e){return 270===e.kind}function aA(e){return 271===e.kind}function sA(e){return 272===e.kind}function cA(e){return 273===e.kind}function lA(e){return 302===e.kind}function uA(e){return 300===e.kind}function _A(e){return 301===e.kind}function dA(e){return 274===e.kind}function fA(e){return 280===e.kind}function pA(e){return 275===e.kind}function mA(e){return 276===e.kind}function gA(e){return 277===e.kind}function hA(e){return 278===e.kind}function yA(e){return 279===e.kind}function vA(e){return 281===e.kind}function bA(e){return 282===e.kind}function xA(e){return 359===e.kind}function SA(e){return 362===e.kind}function kA(e){return 283===e.kind}function TA(e){return 284===e.kind}function CA(e){return 285===e.kind}function wA(e){return 286===e.kind}function EA(e){return 287===e.kind}function DA(e){return 288===e.kind}function NA(e){return 289===e.kind}function AA(e){return 290===e.kind}function PA(e){return 291===e.kind}function FA(e){return 292===e.kind}function IA(e){return 293===e.kind}function OA(e){return 294===e.kind}function MA(e){return 295===e.kind}function LA(e){return 296===e.kind}function RA(e){return 297===e.kind}function jA(e){return 298===e.kind}function BA(e){return 299===e.kind}function JA(e){return 303===e.kind}function zA(e){return 304===e.kind}function $A(e){return 305===e.kind}function VA(e){return 306===e.kind}function KA(e){return 308===e.kind}function UA(e){return 312===e.kind}function qA(e){return 313===e.kind}function WA(e){return 314===e.kind}function HA(e){return 316===e.kind}function GA(e){return 317===e.kind}function XA(e){return 318===e.kind}function YA(e){return 331===e.kind}function QA(e){return 332===e.kind}function ZA(e){return 333===e.kind}function eP(e){return 319===e.kind}function tP(e){return 320===e.kind}function nP(e){return 321===e.kind}function rP(e){return 322===e.kind}function iP(e){return 323===e.kind}function oP(e){return 324===e.kind}function aP(e){return 325===e.kind}function sP(e){return 326===e.kind}function cP(e){return 327===e.kind}function lP(e){return 329===e.kind}function uP(e){return 330===e.kind}function _P(e){return 335===e.kind}function dP(e){return 337===e.kind}function fP(e){return 339===e.kind}function pP(e){return 345===e.kind}function mP(e){return 340===e.kind}function gP(e){return 341===e.kind}function hP(e){return 342===e.kind}function yP(e){return 343===e.kind}function vP(e){return 344===e.kind}function bP(e){return 346===e.kind}function xP(e){return 338===e.kind}function SP(e){return 354===e.kind}function kP(e){return 347===e.kind}function TP(e){return 348===e.kind}function CP(e){return 349===e.kind}function wP(e){return 350===e.kind}function EP(e){return 351===e.kind}function DP(e){return 352===e.kind}function NP(e){return 353===e.kind}function AP(e){return 334===e.kind}function PP(e){return 355===e.kind}function FP(e){return 336===e.kind}function IP(e){return 357===e.kind}function OP(e){return 356===e.kind}function MP(e){return 358===e.kind}var LP,RP,jP=S({"src/compiler/factory/nodeTests.ts"(){gH()}});function BP(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function JP(e,t,n,r){if(cD(n))return tI(e.createElementAccessExpression(t,n.expression),r);{const r=tI(Al(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return iw(r,128),r}}function zP(e,t){const n=uI.createIdentifier(e||"React");return OT(n,Ac(t)),n}function $P(e,t,n){if(sD(t)){const r=$P(e,t.left,n),i=e.createIdentifier(Ic(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return zP(Ic(t),n)}function VP(e,t,n,r){return t?$P(e,t,r):e.createPropertyAccessExpression(zP(n,r),"createElement")}function KP(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)dF(e),a.push(e);else a.push(i[0]);return tI(e.createCallExpression(t,void 0,a),o)}function UP(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?$P(e,t,r):e.createPropertyAccessExpression(zP(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)dF(e),c.push(e);else c.push(i[0]);return tI(e.createCallExpression(VP(e,t,r,o),void 0,c),a)}function qP(e,t,n){if(XN(t)){const r=Le(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return tI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=tI(e.createAssignment(t,n),t);return tI(e.createExpressionStatement(r),t)}}function WP(e,t,n){return AN(t)?e.updateBlock(t,tI(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function HP(e,t){if(sD(t)){const n=HP(e,t.left),r=OT(tI(e.cloneNode(t.right),t.right),t.right.parent);return tI(e.createPropertyAccessExpression(n,r),t)}return OT(tI(e.cloneNode(t),t),t.parent)}function GP(e,t){return qE(t)?e.createStringLiteralFromNode(t):cD(t)?OT(tI(e.cloneNode(t.expression),t.expression),t.expression.parent):OT(tI(e.cloneNode(t),t),t.parent)}function XP(e,t,n,r){switch(n.name&&WE(n.name)&&Fn.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=nb(t,n);if(n===o)return tI(e.createObjectDefinePropertyCall(r,GP(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&tI(QC(e.createFunctionExpression(Uc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&tI(QC(e.createFunctionExpression(Uc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 303:return function(e,t,n){return QC(tI(e.createAssignment(JP(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return QC(tI(e.createAssignment(JP(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return QC(tI(e.createAssignment(JP(e,n,t.name,t.name),QC(tI(e.createFunctionExpression(Uc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function YP(e,t,n,r,i){const o=t.operator;Fn.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);tI(n=e.createAssignment(a,n),t.operand);let s=_N(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return tI(s,t),i&&(s=e.createAssignment(i,s),tI(s,t)),tI(n=e.createComma(n,s),t),dN(t)&&tI(n=e.createComma(n,a),t),n}function QP(e){return 0!=(65536&cp(e))}function ZP(e){return 0!=(32768&cp(e))}function eF(e){return 0!=(16384&cp(e))}function tF(e){return NE(e.expression)&&"use strict"===e.expression.text}function nF(e){for(const t of e){if(!hm(t))break;if(tF(t))return t}}function rF(e){const t=Oe(e);return void 0!==t&&hm(t)&&tF(t)}function iF(e){return 226===e.kind&&28===e.operatorToken.kind}function oF(e){return iF(e)||EN(e)}function aF(e){return iN(e)&&Pg(e)&&!!yl(e)}function sF(e){const t=vl(e);return Fn.assertIsDefined(t),t}function cF(e,t=15){switch(e.kind){case 217:return!(16&t&&aF(e))&&0!=(1&t);case 216:case 234:case 233:case 238:return 0!=(2&t);case 235:return 0!=(4&t);case 360:return 0!=(8&t)}return!1}function lF(e,t=15){for(;cF(e,t);)e=e.expression;return e}function uF(e,t=15){let n=e.parent;for(;cF(n,t);)n=n.parent,Fn.assert(n);return n}function _F(e){return lF(e,6)}function dF(e){return dw(e,!0)}function fF(e){const t=Ec(e,UA),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function pF(e){const t=Ec(e,UA),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function mF(e,t,n,r,i,o,a){if(r.importHelpers&&wp(n,r)){let s;const c=GS(r);if(c>=5&&c<=99||99===n.impliedNodeFormat){const r=Ew(n);if(r){const i=[];for(const e of r)if(!e.scoped){const t=e.importName;t&&Ee(i,t)}le(i)&&(i.sort(Kt),s=e.createNamedImports(q(i,(r=>Bf(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r))))),ew(Ec(n,UA)).externalHelpers=!0)}}else{const t=gF(e,n,r,i,o||a);t&&(s=e.createNamespaceImport(t))}if(s){const t=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,s),e.createStringLiteral(od),void 0);return aw(t,2),t}}}function gF(e,t,n,r,i){if(n.importHelpers&&wp(t,n)){const o=fF(t);if(o)return o;const a=GS(n);let s=(r||ok(n)&&i)&&4!==a&&(a<5||1===t.impliedNodeFormat);if(!s){const e=Ew(t);if(e)for(const t of e)if(!t.scoped){s=!0;break}}if(s){const n=ew(Ec(t,UA));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(od))}}}function hF(e,t,n){const r=Sh(t);if(r&&!kh(t)&&!rp(t)){const t=r.name;return _u(t)?t:e.createIdentifier(np(n,t)||Ic(t))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function yF(e,t,n,r,i,o){const a=xh(t);if(a&&NE(a))return function(e,t,n,r,i){return vF(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function vF(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&Lv(r)?e.createStringLiteral(Av(n,t.fileName)):void 0}function bF(e){if(Uu(e))return e.initializer;if(JA(e)){const t=e.initializer;return Hb(t,!0)?t.right:void 0}return zA(e)?e.objectAssignmentInitializer:Hb(e,!0)?e.right:hN(e)?bF(e.expression):void 0}function xF(e){if(Uu(e))return e.name;if(!Bu(e))return Hb(e,!0)?xF(e.left):hN(e)?xF(e.expression):e;switch(e.kind){case 303:return xF(e.initializer);case 304:return e.name;case 305:return xF(e.expression)}}function SF(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function kF(e){const t=TF(e);return Fn.assert(!!t||$A(e),"Invalid property name for binding element."),t}function TF(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return WE(t)?Fn.failBadSyntaxKind(t):cD(t)&&CF(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return WE(t)?Fn.failBadSyntaxKind(t):cD(t)&&CF(t.expression)?t.expression:t}break;case 305:return e.name&&WE(e.name)?Fn.failBadSyntaxKind(e.name):e.name}const t=xF(e);if(t&&xu(t))return t}function CF(e){const t=e.kind;return 11===t||9===t}function wF(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function EF(e){if(e){let t=e;for(;;){if(qE(t)||!t.body)return qE(t)?t:t.name;t=t.body}}}function DF(e){const t=e.kind;return 176===t||178===t}function NF(e){const t=e.kind;return 176===t||177===t||178===t}function AF(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function PF(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function FF(e){return $E(e)||zE(e)}function IF(e){return qE(e)||BD(e)}function OF(e){return ZE(e)||jE(e)||BE(e)}function MF(e){return $E(e)||jE(e)||BE(e)}function LF(e){return qE(e)||NE(e)}function RF(e){const t=e.kind;return 106===t||112===t||97===t||eu(e)||_N(e)}function jF(e){return function(e){return 61===e||function(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||function(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||function(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}(e)}(e)}(e)}(e)}(e)||Ub(e)}(t=e.kind)||28===t;var t}function BF(e,t,n,r,i,o){const a=new RP(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[LP.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==LP.done;)s=r[s](a,s,r,i,o,n,t);return Fn.assertEqual(s,0),n.value}}function JF(e){return 95===e||90===e}function zF(e){return JF(e.kind)}function $F(e){const t=e.kind;return gu(t)&&!JF(t)}function VF(e,t){if(void 0!==t)return 0===t.length?t:tI(e.createNodeArray([],t.hasTrailingComma),t)}function KF(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(Al(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function UF(e,t){return"object"==typeof e?qF(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function qF(e,t,n,r,i){return t=UF(t,i),r=UF(r,i),`${e?"#":""}${t}${n=function(e,t){return"string"==typeof e?e:function(e,t){return du(e)?t(e).slice(1):_u(e)?t(e):WE(e)?e.escapedText.slice(1):Ic(e)}(e,Fn.checkDefined(t))}(n,i)}${r}`}function WF(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function HF(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function GF(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function XF(e){let t=e.expression;for(;;)if(t=lF(t),EN(t))t=Be(t.elements);else{if(!iF(t)){if(Hb(t,!0)&&_u(t.left))return t;break}t=t.right}}function YF(e,t){if(function(e){return iN(e)&&tv(e)&&!e.emitNode}(e))YF(e.expression,t);else if(iF(e))YF(e.left,t),YF(e.right,t);else if(EN(e))for(const n of e.elements)YF(n,t);else t.push(e)}function QF(e){const t=[];return YF(e,t),t}function ZF(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of wF(e)){const e=xF(t);if(e&&Vu(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&ZF(e))return!0}}return!1}var eI=S({"src/compiler/factory/utilities.ts"(){gH(),(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return Fn.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,u){Fn.assertEqual(r[t],n),Fn.assertIsDefined(e.onLeft),r[t]=s(e,n);const _=e.onLeft(i[t].left,o[t],i[t]);return _?(l(t,i,_),c(t,r,i,o,_)):t}function r(e,t,n,i,o,a,c){return Fn.assertEqual(n[t],r),Fn.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,u){Fn.assertEqual(n[t],i),Fn.assertIsDefined(e.onRight),n[t]=s(e,i);const _=e.onRight(r[t].right,o[t],r[t]);return _?(l(t,r,_),c(t,n,r,o,_)):t}function o(e,t,n,r,i,a,c){Fn.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return Fn.assertEqual(n[t],a),t}function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return o;case o:case a:return a;default:Fn.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(Fn.shouldAssert(2))for(;e>=0;)Fn.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(LP||(LP={})),RP=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}}}});function tI(e,t){return t?PT(e,t.pos,t.end):e}function nI(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function rI(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var iI,oI,aI,sI,cI,lI,uI,_I,dI,fI,pI,mI,gI,hI=S({"src/compiler/factory/utilitiesPublic.ts"(){gH()}});function yI(e,t){return t&&e(t)}function vI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function bI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function xI(e){return w(e.statements,SI)||function(e){return 8388608&e.flags?kI(e):void 0}(e)}function SI(e){return nI(e)&&function(e,t){return le(e.modifiers,(e=>95===e.kind))}(e)||aA(e)&&kA(e.moduleReference)||sA(e)||gA(e)||hA(e)?e:void 0}function kI(e){return function(e){return TN(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:zI(e,kI)}function TI(e,t,n){return vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)}function CI(e,t,n){return vI(t,n,e.types)}function wI(e,t,n){return yI(t,e.type)}function EI(e,t,n){return vI(t,n,e.elements)}function DI(e,t,n){return yI(t,e.expression)||yI(t,e.questionDotToken)||vI(t,n,e.typeArguments)||vI(t,n,e.arguments)}function NI(e,t,n){return vI(t,n,e.statements)}function AI(e,t,n){return yI(t,e.label)}function PI(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||vI(t,n,e.typeParameters)||vI(t,n,e.heritageClauses)||vI(t,n,e.members)}function FI(e,t,n){return vI(t,n,e.elements)}function II(e,t,n){return yI(t,e.propertyName)||yI(t,e.name)}function OI(e,t,n){return yI(t,e.tagName)||vI(t,n,e.typeArguments)||yI(t,e.attributes)}function MI(e,t,n){return yI(t,e.type)}function LI(e,t,n){return yI(t,e.tagName)||(e.isNameFirst?yI(t,e.name)||yI(t,e.typeExpression):yI(t,e.typeExpression)||yI(t,e.name))||("string"==typeof e.comment?void 0:vI(t,n,e.comment))}function RI(e,t,n){return yI(t,e.tagName)||yI(t,e.typeExpression)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))}function jI(e,t,n){return yI(t,e.name)}function BI(e,t,n){return yI(t,e.tagName)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))}function JI(e,t,n){return yI(t,e.expression)}function zI(e,t,n){if(void 0===e||e.kind<=165)return;const r=_I[e.kind];return void 0===r?void 0:r(e,t,n)}function $I(e,t,n){const r=VI(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=166)for(const t of VI(e))r.push(t),i.push(e)}}}function VI(e){const t=[];return zI(e,n,n),t;function n(e){t.unshift(e)}}function KI(e){e.externalModuleIndicator=xI(e)}function UI(e,t,n,r=!1,i){var o,a,s,c;let l;null==(o=Br)||o.push(Br.Phase.Parse,"createSourceFile",{path:e},!0),wr("beforeParse"),null==(a=fr)||a.logStartParseSourceFile(e);const{languageVersion:u,setExternalModuleIndicator:_,impliedNodeFormat:d}="object"==typeof n?n:{languageVersion:n};if(100===u)l=dI.parseSourceFile(e,t,u,void 0,r,6,St);else{const n=void 0===d?_:e=>(e.impliedNodeFormat=d,(_||KI)(e));l=dI.parseSourceFile(e,t,u,void 0,r,i,n)}return null==(s=fr)||s.logStopParseSourceFile(),wr("afterParse"),Er("Parse","beforeParse","afterParse"),null==(c=Br)||c.pop(),l}function qI(e,t){return dI.parseIsolatedEntityName(e,t)}function WI(e,t){return dI.parseJsonText(e,t)}function HI(e){return void 0!==e.externalModuleIndicator}function GI(e,t,n,r=!1){const i=fI.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function XI(e,t,n){const r=dI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&dI.fixupParentReferences(r.jsDoc),r}function YI(e,t,n){return dI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function QI(e){return ea(e,Qd)||Zo(e,".ts")&&nn(aa(e),".d.")}function ZI(e,t){const n=[];for(const e of Ms(t,0)||a)nO(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(const t of n)if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args])}else e.pragmas.set(t.name,t.args)}function eO(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;w(ht(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":l}=n.arguments;if(n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,Ra.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value}):c?r.push({pos:c.pos,end:c.end,fileName:c.value}):t(n.range.pos,n.range.end-n.range.pos,Ra.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=q(ht(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,Ra.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":w(ht(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Fn.fail("Unhandled pragma kind")}}))}function tO(e){if(pI.has(e))return pI.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return pI.set(e,t),t}function nO(e,t,n){const r=2===t.kind&&mI.exec(n);if(r){const i=r[1].toLowerCase(),o=so[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=tO(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}const i=2===t.kind&&gI.exec(n);if(i)return rO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+.*)?$/gim;let i;for(;i=r.exec(n);)rO(e,t,4,i)}}function rO(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=so[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=h(t).split(/\s+/),r={};for(let t=0;tnew(cI||(cI=Id.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(aI||(aI=Id.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(sI||(sI=Id.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(oI||(oI=Id.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(iI||(iI=Id.getNodeConstructor()))(e,-1,-1)}),_I={166:function(e,t,n){return yI(t,e.left)||yI(t,e.right)},168:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.constraint)||yI(t,e.default)||yI(t,e.expression)},304:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.questionToken)||yI(t,e.exclamationToken)||yI(t,e.equalsToken)||yI(t,e.objectAssignmentInitializer)},305:function(e,t,n){return yI(t,e.expression)},169:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.dotDotDotToken)||yI(t,e.name)||yI(t,e.questionToken)||yI(t,e.type)||yI(t,e.initializer)},172:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.questionToken)||yI(t,e.exclamationToken)||yI(t,e.type)||yI(t,e.initializer)},171:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.questionToken)||yI(t,e.type)||yI(t,e.initializer)},303:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.questionToken)||yI(t,e.exclamationToken)||yI(t,e.initializer)},260:function(e,t,n){return yI(t,e.name)||yI(t,e.exclamationToken)||yI(t,e.type)||yI(t,e.initializer)},208:function(e,t,n){return yI(t,e.dotDotDotToken)||yI(t,e.propertyName)||yI(t,e.name)||yI(t,e.initializer)},181:function(e,t,n){return vI(t,n,e.modifiers)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)},185:function(e,t,n){return vI(t,n,e.modifiers)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)},184:function(e,t,n){return vI(t,n,e.modifiers)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)},179:TI,180:TI,174:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.asteriskToken)||yI(t,e.name)||yI(t,e.questionToken)||yI(t,e.exclamationToken)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)||yI(t,e.body)},173:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.questionToken)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)},176:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)||yI(t,e.body)},177:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)||yI(t,e.body)},178:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)||yI(t,e.body)},262:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.asteriskToken)||yI(t,e.name)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)||yI(t,e.body)},218:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.asteriskToken)||yI(t,e.name)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)||yI(t,e.body)},219:function(e,t,n){return vI(t,n,e.modifiers)||vI(t,n,e.typeParameters)||vI(t,n,e.parameters)||yI(t,e.type)||yI(t,e.equalsGreaterThanToken)||yI(t,e.body)},175:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.body)},183:function(e,t,n){return yI(t,e.typeName)||vI(t,n,e.typeArguments)},182:function(e,t,n){return yI(t,e.assertsModifier)||yI(t,e.parameterName)||yI(t,e.type)},186:function(e,t,n){return yI(t,e.exprName)||vI(t,n,e.typeArguments)},187:function(e,t,n){return vI(t,n,e.members)},188:function(e,t,n){return yI(t,e.elementType)},189:function(e,t,n){return vI(t,n,e.elements)},192:CI,193:CI,194:function(e,t,n){return yI(t,e.checkType)||yI(t,e.extendsType)||yI(t,e.trueType)||yI(t,e.falseType)},195:function(e,t,n){return yI(t,e.typeParameter)},205:function(e,t,n){return yI(t,e.argument)||yI(t,e.assertions)||yI(t,e.qualifier)||vI(t,n,e.typeArguments)},302:function(e,t,n){return yI(t,e.assertClause)},196:wI,198:wI,199:function(e,t,n){return yI(t,e.objectType)||yI(t,e.indexType)},200:function(e,t,n){return yI(t,e.readonlyToken)||yI(t,e.typeParameter)||yI(t,e.nameType)||yI(t,e.questionToken)||yI(t,e.type)||vI(t,n,e.members)},201:function(e,t,n){return yI(t,e.literal)},202:function(e,t,n){return yI(t,e.dotDotDotToken)||yI(t,e.name)||yI(t,e.questionToken)||yI(t,e.type)},206:EI,207:EI,209:function(e,t,n){return vI(t,n,e.elements)},210:function(e,t,n){return vI(t,n,e.properties)},211:function(e,t,n){return yI(t,e.expression)||yI(t,e.questionDotToken)||yI(t,e.name)},212:function(e,t,n){return yI(t,e.expression)||yI(t,e.questionDotToken)||yI(t,e.argumentExpression)},213:DI,214:DI,215:function(e,t,n){return yI(t,e.tag)||yI(t,e.questionDotToken)||vI(t,n,e.typeArguments)||yI(t,e.template)},216:function(e,t,n){return yI(t,e.type)||yI(t,e.expression)},217:function(e,t,n){return yI(t,e.expression)},220:function(e,t,n){return yI(t,e.expression)},221:function(e,t,n){return yI(t,e.expression)},222:function(e,t,n){return yI(t,e.expression)},224:function(e,t,n){return yI(t,e.operand)},229:function(e,t,n){return yI(t,e.asteriskToken)||yI(t,e.expression)},223:function(e,t,n){return yI(t,e.expression)},225:function(e,t,n){return yI(t,e.operand)},226:function(e,t,n){return yI(t,e.left)||yI(t,e.operatorToken)||yI(t,e.right)},234:function(e,t,n){return yI(t,e.expression)||yI(t,e.type)},235:function(e,t,n){return yI(t,e.expression)},238:function(e,t,n){return yI(t,e.expression)||yI(t,e.type)},236:function(e,t,n){return yI(t,e.name)},227:function(e,t,n){return yI(t,e.condition)||yI(t,e.questionToken)||yI(t,e.whenTrue)||yI(t,e.colonToken)||yI(t,e.whenFalse)},230:function(e,t,n){return yI(t,e.expression)},241:NI,268:NI,312:function(e,t,n){return vI(t,n,e.statements)||yI(t,e.endOfFileToken)},243:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.declarationList)},261:function(e,t,n){return vI(t,n,e.declarations)},244:function(e,t,n){return yI(t,e.expression)},245:function(e,t,n){return yI(t,e.expression)||yI(t,e.thenStatement)||yI(t,e.elseStatement)},246:function(e,t,n){return yI(t,e.statement)||yI(t,e.expression)},247:function(e,t,n){return yI(t,e.expression)||yI(t,e.statement)},248:function(e,t,n){return yI(t,e.initializer)||yI(t,e.condition)||yI(t,e.incrementor)||yI(t,e.statement)},249:function(e,t,n){return yI(t,e.initializer)||yI(t,e.expression)||yI(t,e.statement)},250:function(e,t,n){return yI(t,e.awaitModifier)||yI(t,e.initializer)||yI(t,e.expression)||yI(t,e.statement)},251:AI,252:AI,253:function(e,t,n){return yI(t,e.expression)},254:function(e,t,n){return yI(t,e.expression)||yI(t,e.statement)},255:function(e,t,n){return yI(t,e.expression)||yI(t,e.caseBlock)},269:function(e,t,n){return vI(t,n,e.clauses)},296:function(e,t,n){return yI(t,e.expression)||vI(t,n,e.statements)},297:function(e,t,n){return vI(t,n,e.statements)},256:function(e,t,n){return yI(t,e.label)||yI(t,e.statement)},257:function(e,t,n){return yI(t,e.expression)},258:function(e,t,n){return yI(t,e.tryBlock)||yI(t,e.catchClause)||yI(t,e.finallyBlock)},299:function(e,t,n){return yI(t,e.variableDeclaration)||yI(t,e.block)},170:function(e,t,n){return yI(t,e.expression)},263:PI,231:PI,264:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||vI(t,n,e.typeParameters)||vI(t,n,e.heritageClauses)||vI(t,n,e.members)},265:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||vI(t,n,e.typeParameters)||yI(t,e.type)},266:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||vI(t,n,e.members)},306:function(e,t,n){return yI(t,e.name)||yI(t,e.initializer)},267:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.body)},271:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)||yI(t,e.moduleReference)},272:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.importClause)||yI(t,e.moduleSpecifier)||yI(t,e.assertClause)},273:function(e,t,n){return yI(t,e.name)||yI(t,e.namedBindings)},300:function(e,t,n){return vI(t,n,e.elements)},301:function(e,t,n){return yI(t,e.name)||yI(t,e.value)},270:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.name)},274:function(e,t,n){return yI(t,e.name)},280:function(e,t,n){return yI(t,e.name)},275:FI,279:FI,278:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.exportClause)||yI(t,e.moduleSpecifier)||yI(t,e.assertClause)},276:II,281:II,277:function(e,t,n){return vI(t,n,e.modifiers)||yI(t,e.expression)},228:function(e,t,n){return yI(t,e.head)||vI(t,n,e.templateSpans)},239:function(e,t,n){return yI(t,e.expression)||yI(t,e.literal)},203:function(e,t,n){return yI(t,e.head)||vI(t,n,e.templateSpans)},204:function(e,t,n){return yI(t,e.type)||yI(t,e.literal)},167:function(e,t,n){return yI(t,e.expression)},298:function(e,t,n){return vI(t,n,e.types)},233:function(e,t,n){return yI(t,e.expression)||vI(t,n,e.typeArguments)},283:function(e,t,n){return yI(t,e.expression)},282:function(e,t,n){return vI(t,n,e.modifiers)},361:function(e,t,n){return vI(t,n,e.elements)},284:function(e,t,n){return yI(t,e.openingElement)||vI(t,n,e.children)||yI(t,e.closingElement)},288:function(e,t,n){return yI(t,e.openingFragment)||vI(t,n,e.children)||yI(t,e.closingFragment)},285:OI,286:OI,292:function(e,t,n){return vI(t,n,e.properties)},291:function(e,t,n){return yI(t,e.name)||yI(t,e.initializer)},293:function(e,t,n){return yI(t,e.expression)},294:function(e,t,n){return yI(t,e.dotDotDotToken)||yI(t,e.expression)},287:function(e,t,n){return yI(t,e.tagName)},295:function(e,t,n){return yI(t,e.namespace)||yI(t,e.name)},190:MI,191:MI,316:MI,322:MI,321:MI,323:MI,325:MI,324:function(e,t,n){return vI(t,n,e.parameters)||yI(t,e.type)},327:function(e,t,n){return("string"==typeof e.comment?void 0:vI(t,n,e.comment))||vI(t,n,e.tags)},354:function(e,t,n){return yI(t,e.tagName)||yI(t,e.name)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))},317:function(e,t,n){return yI(t,e.name)},318:function(e,t,n){return yI(t,e.left)||yI(t,e.right)},348:LI,355:LI,337:function(e,t,n){return yI(t,e.tagName)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))},336:function(e,t,n){return yI(t,e.tagName)||yI(t,e.class)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))},335:function(e,t,n){return yI(t,e.tagName)||yI(t,e.class)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))},352:function(e,t,n){return yI(t,e.tagName)||yI(t,e.constraint)||vI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))},353:function(e,t,n){return yI(t,e.tagName)||(e.typeExpression&&316===e.typeExpression.kind?yI(t,e.typeExpression)||yI(t,e.fullName)||("string"==typeof e.comment?void 0:vI(t,n,e.comment)):yI(t,e.fullName)||yI(t,e.typeExpression)||("string"==typeof e.comment?void 0:vI(t,n,e.comment)))},345:function(e,t,n){return yI(t,e.tagName)||yI(t,e.fullName)||yI(t,e.typeExpression)||("string"==typeof e.comment?void 0:vI(t,n,e.comment))},349:RI,351:RI,350:RI,347:RI,357:RI,356:RI,346:RI,330:function(e,t,n){return w(e.typeParameters,t)||w(e.parameters,t)||yI(t,e.type)},331:jI,332:jI,333:jI,329:function(e,t,n){return w(e.jsDocPropertyTags,t)},334:BI,339:BI,340:BI,341:BI,342:BI,343:BI,338:BI,344:BI,360:JI},(e=>{var t,n,r,i,o,c=zs(99,!0);function l(e){return x++,e}var u,_,d,f,p,m,g,h,v,b,x,S,k,T,C,w,E=LC(11,{createBaseSourceFileNode:e=>l(new o(e,0,0)),createBaseIdentifierNode:e=>l(new r(e,0,0)),createBasePrivateIdentifierNode:e=>l(new i(e,0,0)),createBaseTokenNode:e=>l(new n(e,0,0)),createBaseNode:e=>l(new t(e,0,0))}),{createNodeArray:D,createNumericLiteral:N,createStringLiteral:A,createLiteralLikeNode:P,createIdentifier:F,createPrivateIdentifier:I,createToken:O,createArrayLiteralExpression:M,createObjectLiteralExpression:R,createPropertyAccessExpression:j,createPropertyAccessChain:B,createElementAccessExpression:J,createElementAccessChain:z,createCallExpression:$,createCallChain:V,createNewExpression:K,createParenthesizedExpression:U,createBlock:q,createVariableStatement:W,createExpressionStatement:H,createIfStatement:G,createWhileStatement:X,createForStatement:Y,createForOfStatement:Q,createVariableDeclaration:Z,createVariableDeclarationList:ee}=E,ne=!0,re=!1;function ie(e,t,n=2,r,i=!1){oe(e,t,n,r,6),_=w,Ue();const o=Je();let a,s;if(1===$e())a=vt([],o,o),s=pt();else{let e;for(;1!==$e();){let t;switch($e()){case 23:t=ni();break;case 112:case 97:case 106:t=pt();break;case 41:t=tt((()=>9===Ue()&&59!==Ue()))?Pr():ii();break;case 9:case 11:if(tt((()=>59!==Ue()))){t=_n();break}default:t=ii()}e&>(e)?e.push(t):e?e=[e,t]:(e=t,1!==$e()&&Ie(Ra.Unexpected_token))}const t=gt(e)?bt(M(e),o):Fn.checkDefined(e),n=H(t);bt(n,o),a=vt([n],o),s=ft(1,Ra.Unexpected_token)}const c=de(e,2,6,!1,a,s,_,St);i&&ue(c),c.nodeCount=x,c.identifierCount=k,c.identifiers=S,c.parseDiagnostics=FS(g,c),h&&(c.jsDocDiagnostics=FS(h,c));const l=c;return ae(),l}function oe(e,a,s,l,h){switch(t=Id.getNodeConstructor(),n=Id.getTokenConstructor(),r=Id.getIdentifierConstructor(),i=Id.getPrivateIdentifierConstructor(),o=Id.getSourceFileConstructor(),u=ha(e),d=a,f=s,v=l,p=h,m=VS(h),g=[],T=0,S=new Map,k=0,x=0,_=0,ne=!0,p){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}re=!1,c.setText(d),c.setOnError(Be),c.setScriptTarget(f),c.setLanguageVariant(m)}function ae(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),d=void 0,f=void 0,v=void 0,p=void 0,m=void 0,_=0,g=void 0,h=void 0,T=0,S=void 0,C=void 0,ne=!0}e.parseSourceFile=function(e,t,n,r,i=!1,o,l){var f;if(6===(o=Vk(e,o))){const o=ie(e,t,n,r,i);return kM(o,null==(f=o.statements[0])?void 0:f.expression,o.parseDiagnostics,!1,void 0),o.referencedFiles=a,o.typeReferenceDirectives=a,o.libReferenceDirectives=a,o.amdDependencies=a,o.hasNoDefaultLib=!1,o.pragmas=s,o}oe(e,t,n,r,o);const p=function(e,t,n,r){const i=QI(u);i&&(w|=33554432),_=w,Ue();const o=Wt(0,Ci);Fn.assert(1===$e());const a=ze(),s=ce(pt(),a),l=de(u,e,n,i,o,s,_,r);return ZI(l,d),eO(l,(function(e,t,n){g.push(NS(u,e,t,n))})),l.commentDirectives=c.getCommentDirectives(),l.nodeCount=x,l.identifierCount=k,l.identifiers=S,l.parseDiagnostics=FS(g,l),h&&(l.jsDocDiagnostics=FS(h,l)),t&&ue(l),l}(n,i,o,l||KI);return ae(),p},e.parseIsolatedEntityName=function(e,t){oe("",e,t,void 0,1),Ue();const n=rn(!0),r=1===$e()&&!g.length;return ae(),r?n:void 0},e.parseJsonText=ie;let se=!1;function ce(e,t){if(!t)return e;Fn.assert(!e.jsDoc);const n=te(km(e,d),(t=>To.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),se&&(se=!1,e.flags|=536870912),e}function ue(e){LT(e,!0)}function de(e,t,n,r,i,o,a,s){let l=E.createSourceFile(i,o,a);return FT(l,0,d.length),u(l),!r&&HI(l)&&67108864&l.transformFlags&&(l=function(e){const t=v,n=fI.createSyntaxCursor(e);v={currentNode:function(e){const t=n.currentNode(e);return ne&&t&&s(t)&&(t.intersectsChange=!0),t}};const r=[],i=g;g=[];let o=0,a=l(e.statements,0);for(;-1!==a;){const t=e.statements[o],n=e.statements[a];we(r,e.statements,o,a),o=u(e.statements,a);const s=L(i,(e=>e.start>=t.pos)),_=s>=0?L(i,(e=>e.start>=n.pos),s):-1;s>=0&&we(g,i,s,_>=0?_:void 0),et((()=>{const t=w;for(w|=65536,c.resetTokenState(n.pos),Ue();1!==$e();){const t=c.getTokenFullStart(),n=Ht(0,Ci);if(r.push(n),t===c.getTokenFullStart()&&Ue(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=u(e.statements,o+1))}}w=t}),2),a=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];we(r,e.statements,o);const n=L(i,(e=>e.start>=t.pos));n>=0&&we(g,i,n)}return v=t,E.updateSourceFile(e,tI(D(r),e.statements));function s(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n118}function it(){return 80===$e()||(127!==$e()||!De())&&(135!==$e()||!Fe())&&$e()>118}function ot(e,t,n=!0){return $e()===e?(n&&Ue(),!0):(t?Ie(t):Ie(Ra._0_expected,ss(e)),!1)}e.fixupParentReferences=ue;const at=Object.keys(Ja).filter((e=>e.length>2));function st(e){if(nN(e))return void Le(Ts(d,e.template.pos),e.template.end,Ra.Module_declaration_names_may_only_use_or_quoted_strings);const t=qE(e)?Ic(e):void 0;if(!t||!Js(t,f))return void Ie(Ra._0_expected,ss(27));const n=Ts(d,e.pos);switch(t){case"const":case"let":case"var":return void Le(n,e.end,Ra.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ct(Ra.Interface_name_cannot_be_0,Ra.Interface_must_be_given_a_name,19);case"is":return void Le(n,c.getTokenStart(),Ra.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ct(Ra.Namespace_name_cannot_be_0,Ra.Namespace_must_be_given_a_name,19);case"type":return void ct(Ra.Type_alias_name_cannot_be_0,Ra.Type_alias_must_be_given_a_name,64)}const r=Yt(t,at,(e=>e))??function(e){for(const t of at)if(e.length>t.length+2&&fn(e,t))return`${t} ${e.slice(t.length)}`}(t);r?Le(n,e.end,Ra.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==$e()&&Le(n,e.end,Ra.Unexpected_keyword_or_identifier)}function ct(e,t,n){$e()===n?Ie(t):Ie(e,c.getTokenValue())}function lt(e){return $e()===e?(qe(),!0):(Fn.assert(Ty(e)),Ie(Ra._0_expected,ss(e)),!1)}function ut(e,t,n,r){if($e()===t)return void Ue();const i=Ie(Ra._0_expected,ss(t));n&&i&&mT(i,NS(u,r,1,Ra.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ss(e),ss(t)))}function _t(e){return $e()===e&&(Ue(),!0)}function dt(e){if($e()===e)return pt()}function ft(e,t,n){return dt(e)||xt(e,!1,t||Ra._0_expected,n||ss(e))}function pt(){const e=Je(),t=$e();return Ue(),bt(O(t),e)}function mt(){return 27===$e()||20===$e()||1===$e()||c.hasPrecedingLineBreak()}function ht(){return!!mt()&&(27===$e()&&Ue(),!0)}function yt(){return ht()||ot(27)}function vt(e,t,n,r){const i=D(e,r);return PT(i,t,n??c.getTokenFullStart()),i}function bt(e,t,n){return PT(e,t,n??c.getTokenFullStart()),w&&(e.flags|=w),re&&(re=!1,e.flags|=262144),e}function xt(e,t,n,...r){t?Me(c.getTokenFullStart(),0,n,...r):n&&Ie(n,...r);const i=Je();return bt(80===e?F("",void 0):nu(e)?E.createTemplateLiteralLikeNode(e,"","",void 0):9===e?N("",void 0):11===e?A("",void 0):282===e?E.createMissingDeclaration():O(e),i)}function kt(e){let t=S.get(e);return void 0===t&&S.set(e,t=e),t}function Tt(e,t,n){if(e){k++;const e=Je(),t=$e(),n=kt(c.getTokenValue()),r=c.hasExtendedUnicodeEscape();return Ve(),bt(F(n,t,r),e)}if(81===$e())return Ie(n||Ra.Private_identifiers_are_not_allowed_outside_class_bodies),Tt(!0);if(0===$e()&&c.tryScan((()=>80===c.reScanInvalidIdentifier())))return Tt(!0);k++;const r=1===$e(),i=c.isReservedWord(),o=c.getTokenText(),a=i?Ra.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Ra.Identifier_expected;return xt(80,r,t||a,o)}function Ct(e){return Tt(rt(),void 0,e)}function wt(e,t){return Tt(it(),e,t)}function Et(e){return Tt(rs($e()),e)}function Dt(){return rs($e())||11===$e()||9===$e()}function Nt(){return function(e){if(11===$e()||9===$e()){const e=_n();return e.text=kt(e.text),e}return e&&23===$e()?function(){const e=Je();ot(23);const t=be(hr);return ot(24),bt(E.createComputedPropertyName(t),e)}():81===$e()?At():Et()}(!0)}function At(){const e=Je(),t=I(kt(c.getTokenValue()));return Ue(),bt(t,e)}function Pt(e){return $e()===e&&nt(It)}function Ft(){return Ue(),!c.hasPrecedingLineBreak()&&Lt()}function It(){switch($e()){case 87:return 94===Ue();case 95:return Ue(),90===$e()?tt(Rt):156===$e()?tt(Mt):Ot();case 90:return Rt();case 126:case 139:case 153:return Ue(),Lt();default:return Ft()}}function Ot(){return 60===$e()||42!==$e()&&130!==$e()&&19!==$e()&&Lt()}function Mt(){return Ue(),Ot()}function Lt(){return 23===$e()||19===$e()||42===$e()||26===$e()||Dt()}function Rt(){return Ue(),86===$e()||100===$e()||120===$e()||60===$e()||128===$e()&&tt(di)||134===$e()&&tt(fi)}function jt(e,t){if(Gt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===$e()&&t)&&hi();case 2:return 84===$e()||90===$e();case 4:return tt(Ln);case 5:return tt(Ui)||27===$e()&&!t;case 6:return 23===$e()||Dt();case 12:switch($e()){case 23:case 42:case 26:case 25:return!0;default:return Dt()}case 18:return Dt();case 9:return 23===$e()||26===$e()||Dt();case 24:return rs($e())||11===$e();case 7:return 19===$e()?tt(Bt):t?it()&&!Vt():mr()&&!Vt();case 8:return Ii();case 10:return 28===$e()||26===$e()||Ii();case 19:return 103===$e()||87===$e()||it();case 15:switch($e()){case 28:case 25:return!0}case 11:return 26===$e()||gr();case 16:return Tn(!1);case 17:return Tn(!0);case 20:case 21:return 28===$e()||er();case 22:return io();case 23:return(161!==$e()||!tt(Ni))&&rs($e());case 13:return rs($e())||19===$e();case 14:case 25:return!0;case 26:return Fn.fail("ParsingContext.Count used as a context");default:Fn.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function Bt(){if(Fn.assert(19===$e()),20===Ue()){const e=Ue();return 28===e||19===e||96===e||119===e}return!0}function Jt(){return Ue(),it()}function zt(){return Ue(),rs($e())}function $t(){return Ue(),is($e())}function Vt(){return(119===$e()||96===$e())&&tt(Kt)}function Kt(){return Ue(),gr()}function Ut(){return Ue(),er()}function qt(e){if(1===$e())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===$e();case 3:return 20===$e()||84===$e()||90===$e();case 7:return 19===$e()||96===$e()||119===$e();case 8:return!!mt()||!!wr($e())||39===$e();case 19:return 32===$e()||21===$e()||19===$e()||96===$e()||119===$e();case 11:return 22===$e()||27===$e();case 15:case 21:case 10:return 24===$e();case 17:case 16:case 18:return 22===$e()||24===$e();case 20:return 28!==$e();case 22:return 19===$e()||20===$e();case 13:return 32===$e()||44===$e();case 14:return 30===$e()&&tt(_o);default:return!1}}function Wt(e,t){const n=T;T|=1<=0)}function en(e){return 6===e?Ra.An_enum_member_name_must_be_followed_by_a_or:void 0}function tn(){const e=vt([],Je());return e.isMissingList=!0,e}function nn(e,t,n,r){if(ot(n)){const n=Zt(e,t);return ot(r),n}return tn()}function rn(e,t){const n=Je();let r=e?Et(t):wt(t);for(;_t(25)&&30!==$e();)r=bt(E.createQualifiedName(r,an(e,!1)),n);return r}function on(e,t){return bt(E.createQualifiedName(e,t),e.pos)}function an(e,t){if(c.hasPrecedingLineBreak()&&rs($e())&&tt(_i))return xt(80,!0,Ra.Identifier_expected);if(81===$e()){const e=At();return t?e:xt(80,!0,Ra.Identifier_expected)}return e?Et():wt()}function sn(e){const t=Je();return bt(E.createTemplateExpression(dn(e),function(e){const t=Je(),n=[];let r;do{r=un(e),n.push(r)}while(17===r.literal.kind);return vt(n,t)}(e)),t)}function cn(){const e=Je();return bt(E.createTemplateLiteralTypeSpan(fr(),ln(!1)),e)}function ln(e){return 20===$e()?(Ge(e),function(){const e=pn($e());return Fn.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):ft(18,Ra._0_expected,ss(20))}function un(e){const t=Je();return bt(E.createTemplateSpan(be(hr),ln(e)),t)}function _n(){return pn($e())}function dn(e){!e&&26656&c.getTokenFlags()&&Ge(!1);const t=pn($e());return Fn.assert(16===t.kind,"Template head has wrong token kind"),t}function pn(e){const t=Je(),n=nu(e)?E.createTemplateLiteralLikeNode(e,c.getTokenValue(),function(e){const t=15===e||18===e,n=c.getTokenText();return n.substring(1,n.length-(c.isUnterminated()?0:t?1:2))}(e),7176&c.getTokenFlags()):9===e?N(c.getTokenValue(),c.getNumericLiteralFlags()):11===e?A(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):Zl(e)?P(e,c.getTokenValue()):Fn.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),Ue(),bt(n,t)}function mn(){return rn(!0,Ra.Type_expected)}function gn(){if(!c.hasPrecedingLineBreak()&&30===Xe())return nn(20,fr,30,32)}function hn(){const e=Je();return bt(E.createTypeReferenceNode(mn(),gn()),e)}function yn(e){switch(e.kind){case 183:return Jf(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||yn(n)}case 196:return yn(e.type);default:return!1}}function vn(){const e=Je();return Ue(),bt(E.createThisTypeNode(),e)}function bn(){const e=Je();let t;return 110!==$e()&&105!==$e()||(t=Et(),ot(59)),bt(E.createParameterDeclaration(void 0,void 0,t,void 0,xn(),void 0),e)}function xn(){c.setInJSDocType(!0);const e=Je();if(_t(144)){const t=E.createJSDocNamepathType(void 0);e:for(;;)switch($e()){case 20:case 1:case 28:case 5:break e;default:qe()}return c.setInJSDocType(!1),bt(t,e)}const t=_t(26);let n=_r();return c.setInJSDocType(!1),t&&(n=bt(E.createJSDocVariadicType(n),e)),64===$e()?(Ue(),bt(E.createJSDocOptionalType(n),e)):n}function Sn(){const e=Je(),t=Gi(!1,!0),n=wt();let r,i;_t(96)&&(er()||!gr()?r=fr():i=Fr());const o=_t(64)?fr():void 0,a=E.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,bt(a,e)}function kn(){if(30===$e())return nn(19,Sn,30,32)}function Tn(e){return 26===$e()||Ii()||gu($e())||60===$e()||er(!e)}function Cn(e){return wn(e)}function wn(e,t=!0){const n=Je(),r=ze(),i=e?Te((()=>Gi(!0))):Ce((()=>Gi(!0)));if(110===$e()){const e=E.createParameterDeclaration(i,void 0,Tt(!0),void 0,pr(),void 0),t=Oe(i);return t&&Re(t,Ra.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ce(bt(e,n),r)}const o=ne;ne=!1;const a=dt(26);if(!t&&!rt()&&23!==$e()&&19!==$e())return;const s=ce(bt(E.createParameterDeclaration(i,a,function(e){const t=Oi(Ra.Private_identifiers_cannot_be_used_as_parameters);return 0===vf(t)&&!le(e)&&gu($e())&&Ue(),t}(i),dt(58),pr(),yr()),n),r);return ne=o,s}function En(e,t){if(function(e,t){return 39===e?(ot(e),!0):!!_t(59)||!(!t||39!==$e())&&(Ie(Ra._0_expected,ss(59)),Ue(),!0)}(e,t))return xe(_r)}function Dn(e,t){const n=De(),r=Fe();me(!!(1&e)),he(!!(2&e));const i=32&e?Zt(17,bn):Zt(16,(()=>t?Cn(r):wn(r,!1)));return me(n),he(r),i}function Nn(e){if(!ot(21))return tn();const t=Dn(e,!0);return ot(22),t}function An(){_t(28)||yt()}function Pn(e){const t=Je(),n=ze();180===e&&ot(105);const r=kn(),i=Nn(4),o=En(59,!0);return An(),ce(bt(179===e?E.createCallSignature(r,i,o):E.createConstructSignature(r,i,o),t),n)}function In(){return 23===$e()&&tt(On)}function On(){if(Ue(),26===$e()||24===$e())return!0;if(gu($e())){if(Ue(),it())return!0}else{if(!it())return!1;Ue()}return 59===$e()||28===$e()||58===$e()&&(Ue(),59===$e()||28===$e()||24===$e())}function Mn(e,t,n){const r=nn(16,(()=>Cn(!1)),23,24),i=pr();return An(),ce(bt(E.createIndexSignature(n,r,i),e),t)}function Ln(){if(21===$e()||30===$e()||139===$e()||153===$e())return!0;let e=!1;for(;gu($e());)e=!0,Ue();return 23===$e()||(Dt()&&(e=!0,Ue()),!!e&&(21===$e()||30===$e()||58===$e()||59===$e()||28===$e()||mt()))}function Rn(){if(21===$e()||30===$e())return Pn(179);if(105===$e()&&tt(jn))return Pn(180);const e=Je(),t=ze(),n=Gi(!1);return Pt(139)?Ki(e,t,n,177,4):Pt(153)?Ki(e,t,n,178,4):In()?Mn(e,t,n):function(e,t,n){const r=Nt(),i=dt(58);let o;if(21===$e()||30===$e()){const e=kn(),t=Nn(4),a=En(59,!0);o=E.createMethodSignature(n,r,i,e,t,a)}else{const e=pr();o=E.createPropertySignature(n,r,i,e),64===$e()&&(o.initializer=yr())}return An(),ce(bt(o,e),t)}(e,t,n)}function jn(){return Ue(),21===$e()||30===$e()}function Bn(){return 25===Ue()}function Jn(){switch(Ue()){case 21:case 30:case 25:return!0}return!1}function zn(){let e;return ot(19)?(e=Wt(4,Rn),ot(20)):e=tn(),e}function $n(){return Ue(),40===$e()||41===$e()?148===Ue():(148===$e()&&Ue(),23===$e()&&Jt()&&103===Ue())}function Vn(){const e=Je();if(_t(26))return bt(E.createRestTypeNode(fr()),e);const t=fr();if(nP(t)&&t.pos===t.type.pos){const e=E.createOptionalTypeNode(t.type);return tI(e,t),e.flags=t.flags,e}return t}function Kn(){return 59===Ue()||58===$e()&&59===Ue()}function Un(){return 26===$e()?rs(Ue())&&Kn():rs($e())&&Kn()}function qn(){if(tt(Un)){const e=Je(),t=ze(),n=dt(26),r=Et(),i=dt(58);ot(59);const o=Vn();return ce(bt(E.createNamedTupleMember(n,r,i,o),e),t)}return Vn()}function Wn(){const e=Je(),t=ze(),n=function(){let e;if(128===$e()){const t=Je();Ue(),e=vt([bt(O(128),t)],t)}return e}(),r=_t(105);Fn.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=kn(),o=Nn(4),a=En(39,!1);return ce(bt(r?E.createConstructorTypeNode(n,i,o,a):E.createFunctionTypeNode(i,o,a),e),t)}function Hn(){const e=pt();return 25===$e()?void 0:e}function Gn(e){const t=Je();e&&Ue();let n=112===$e()||97===$e()||106===$e()?pt():pn($e());return e&&(n=bt(E.createPrefixUnaryExpression(41,n),t)),bt(E.createLiteralTypeNode(n),t)}function Xn(){return Ue(),102===$e()}function Yn(){_|=4194304;const e=Je(),t=_t(114);ot(102),ot(21);const n=fr();let r;_t(28)&&(r=function(){const e=Je(),t=c.getTokenStart();ot(19);const n=c.hasPrecedingLineBreak();ot(132),ot(59);const r=po(!0);if(!ot(20)){const e=je(g);e&&e.code===Ra._0_expected.code&&mT(e,NS(u,t,1,Ra.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return bt(E.createImportTypeAssertionContainer(r,n),e)}()),ot(22);const i=_t(25)?mn():void 0,o=gn();return bt(E.createImportTypeNode(n,r,i,o,t),e)}function Qn(){return Ue(),9===$e()||10===$e()}function Zn(){switch($e()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(Hn)||hn();case 67:c.reScanAsteriskEqualsToken();case 42:return function(){const e=Je();return Ue(),bt(E.createJSDocAllType(),e)}();case 61:c.reScanQuestionToken();case 58:return function(){const e=Je();return Ue(),28===$e()||20===$e()||22===$e()||32===$e()||64===$e()||52===$e()?bt(E.createJSDocUnknownType(),e):bt(E.createJSDocNullableType(fr(),!1),e)}();case 100:return function(){const e=Je(),t=ze();if(tt(lo)){Ue();const n=Nn(36),r=En(59,!1);return ce(bt(E.createJSDocFunctionType(n,r),e),t)}return bt(E.createTypeReferenceNode(Et(),void 0),e)}();case 54:return function(){const e=Je();return Ue(),bt(E.createJSDocNonNullableType(Zn(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Gn();case 41:return tt(Qn)?Gn(!0):hn();case 116:return pt();case 110:{const t=vn();return 142!==$e()||c.hasPrecedingLineBreak()?t:(e=t,Ue(),bt(E.createTypePredicateNode(void 0,e,fr()),e.pos))}case 114:return tt(Xn)?Yn():function(){const e=Je();ot(114);const t=rn(!0),n=c.hasPrecedingLineBreak()?void 0:ro();return bt(E.createTypeQueryNode(t,n),e)}();case 19:return tt($n)?function(){const e=Je();let t;ot(19),148!==$e()&&40!==$e()&&41!==$e()||(t=pt(),148!==t.kind&&ot(148)),ot(23);const n=function(){const e=Je(),t=Et();ot(103);const n=fr();return bt(E.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=_t(130)?fr():void 0;let i;ot(24),58!==$e()&&40!==$e()&&41!==$e()||(i=pt(),58!==i.kind&&ot(58));const o=pr();yt();const a=Wt(4,Rn);return ot(20),bt(E.createMappedTypeNode(t,n,r,i,o,a),e)}():function(){const e=Je();return bt(E.createTypeLiteralNode(zn()),e)}();case 23:return function(){const e=Je();return bt(E.createTupleTypeNode(nn(21,qn,23,24)),e)}();case 21:return function(){const e=Je();ot(21);const t=fr();return ot(22),bt(E.createParenthesizedType(t),e)}();case 102:return Yn();case 131:return tt(_i)?function(){const e=Je(),t=ft(131),n=110===$e()?vn():wt(),r=_t(142)?fr():void 0;return bt(E.createTypePredicateNode(t,n,r),e)}():hn();case 16:return function(){const e=Je();return bt(E.createTemplateLiteralType(dn(!1),function(){const e=Je(),t=[];let n;do{n=cn(),t.push(n)}while(17===n.literal.kind);return vt(t,e)}()),e)}();default:return hn()}var e}function er(e){switch($e()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&tt(Qn);case 21:return!e&&tt(tr);default:return it()}}function tr(){return Ue(),22===$e()||Tn(!1)||er()}function nr(){const e=Je();let t=Zn();for(;!c.hasPrecedingLineBreak();)switch($e()){case 54:Ue(),t=bt(E.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Ut))return t;Ue(),t=bt(E.createJSDocNullableType(t,!0),e);break;case 23:if(ot(23),er()){const n=fr();ot(24),t=bt(E.createIndexedAccessTypeNode(t,n),e)}else ot(24),t=bt(E.createArrayTypeNode(t),e);break;default:return t}return t}function rr(){if(_t(96)){const e=Se(fr);if(Ae()||58!==$e())return e}}function ir(){const e=$e();switch(e){case 143:case 158:case 148:return function(e){const t=Je();return ot(e),bt(E.createTypeOperatorNode(e,ir()),t)}(e);case 140:return function(){const e=Je();return ot(140),bt(E.createInferTypeNode(function(){const e=Je(),t=wt(),n=nt(rr);return bt(E.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}()}return xe(nr)}function or(e){if(lr()){const t=Wn();let n;return n=CD(t)?e?Ra.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ra.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?Ra.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ra.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(t,n),t}}function ar(e,t,n){const r=Je(),i=52===e,o=_t(e);let a=o&&or(i)||t();if($e()===e||o){const o=[a];for(;_t(e);)o.push(or(i)||t());a=bt(n(vt(o,r)),r)}return a}function sr(){return ar(51,ir,E.createIntersectionTypeNode)}function cr(){return Ue(),105===$e()}function lr(){return 30===$e()||!(21!==$e()||!tt(ur))||105===$e()||128===$e()&&tt(cr)}function ur(){if(Ue(),22===$e()||26===$e())return!0;if(function(){if(gu($e())&&Gi(!1),it()||110===$e())return Ue(),!0;if(23===$e()||19===$e()){const e=g.length;return Oi(),e===g.length}return!1}()){if(59===$e()||28===$e()||58===$e()||64===$e())return!0;if(22===$e()&&(Ue(),39===$e()))return!0}return!1}function _r(){const e=Je(),t=it()&&nt(dr),n=fr();return t?bt(E.createTypePredicateNode(void 0,t,n),e):n}function dr(){const e=wt();if(142===$e()&&!c.hasPrecedingLineBreak())return Ue(),e}function fr(){if(81920&w)return ye(81920,fr);if(lr())return Wn();const e=Je(),t=ar(52,sr,E.createUnionTypeNode);if(!Ae()&&!c.hasPrecedingLineBreak()&&_t(96)){const n=Se(fr);ot(58);const r=xe(fr);ot(59);const i=xe(fr);return bt(E.createConditionalTypeNode(t,n,r,i),e)}return t}function pr(){return _t(59)?fr():void 0}function mr(){switch($e()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return tt(Jn);default:return it()}}function gr(){if(mr())return!0;switch($e()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return!!Dr()||it()}}function hr(){const e=Pe();e&&ge(!1);const t=Je();let n,r=vr(!0);for(;n=dt(28);)r=Nr(r,n,vr(!0),t);return e&&ge(!0),r}function yr(){return _t(64)?vr(!0):void 0}function vr(e){if(127===$e()&&(De()||tt(pi)))return function(){const e=Je();return Ue(),c.hasPrecedingLineBreak()||42!==$e()&&!gr()?bt(E.createYieldExpression(void 0,void 0),e):bt(E.createYieldExpression(dt(42),vr(!0)),e)}();const t=function(e){const t=21===$e()||30===$e()||134===$e()?tt(xr):39===$e()?1:0;if(0!==t)return 1===t?kr(!0,!0):nt((()=>function(e){const t=c.getTokenStart();if(null==C?void 0:C.has(t))return;const n=kr(!1,e);return n||(C||(C=new Set)).add(t),n}(e)))}(e)||function(e){if(134===$e()&&1===tt(Sr)){const t=Je(),n=ze(),r=Xi();return br(t,Cr(0),e,n,r)}}(e);if(t)return t;const n=Je(),r=ze(),i=Cr(0);return 80===i.kind&&39===$e()?br(n,i,e,r,void 0):r_(i)&&Ub(He())?Nr(i,pt(),vr(e),n):function(e,t,n){const r=dt(58);if(!r)return e;let i;return bt(E.createConditionalExpression(e,r,ye(40960,(()=>vr(!1))),i=ft(59),zf(i)?vr(n):xt(80,!1,Ra._0_expected,ss(59))),t)}(i,n,e)}function br(e,t,n,r,i){Fn.assert(39===$e(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=E.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);bt(o,t.pos);const a=vt([o],o.pos,o.end),s=ft(39),c=Tr(!!i,n);return ce(bt(E.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function xr(){if(134===$e()){if(Ue(),c.hasPrecedingLineBreak())return 0;if(21!==$e()&&30!==$e())return 0}const e=$e(),t=Ue();if(21===e){if(22===t)switch(Ue()){case 39:case 59:case 19:return 1;default:return 0}if(23===t||19===t)return 2;if(26===t)return 1;if(gu(t)&&134!==t&&tt(Jt))return 130===Ue()?0:1;if(!it()&&110!==t)return 0;switch(Ue()){case 59:return 1;case 58:return Ue(),59===$e()||28===$e()||64===$e()||22===$e()?1:0;case 28:case 64:case 22:return 2}return 0}return Fn.assert(30===e),it()||87===$e()?1===m?tt((()=>{_t(87);const e=Ue();if(96===e)switch(Ue()){case 64:case 32:case 44:return!1;default:return!0}else if(28===e||64===e)return!0;return!1}))?1:0:2:0}function Sr(){if(134===$e()){if(Ue(),c.hasPrecedingLineBreak()||39===$e())return 0;const e=Cr(0);if(!c.hasPrecedingLineBreak()&&80===e.kind&&39===$e())return 1}return 0}function kr(e,t){const n=Je(),r=ze(),i=Xi(),o=le(i,XE)?2:0,a=kn();let s;if(ot(21)){if(e)s=Dn(o,e);else{const t=Dn(o,e);if(!t)return;s=t}if(!ot(22)&&!e)return}else{if(!e)return;s=tn()}const c=59===$e(),l=En(59,!1);if(l&&!e&&yn(l))return;let u=l;for(;196===(null==u?void 0:u.kind);)u=u.type;const _=u&&oP(u);if(!e&&39!==$e()&&(_||19!==$e()))return;const d=$e(),f=ft(39),p=39===d||19===d?Tr(le(i,XE),t):wt();return t||!c||59===$e()?ce(bt(E.createArrowFunction(i,a,s,l,f,p),n),r):void 0}function Tr(e,t){if(19===$e())return ci(e?2:0);if(27!==$e()&&100!==$e()&&86!==$e()&&hi()&&(19===$e()||100===$e()||86===$e()||60===$e()||!gr()))return ci(16|(e?2:0));const n=ne;ne=!1;const r=e?Te((()=>vr(t))):Ce((()=>vr(t)));return ne=n,r}function Cr(e){const t=Je();return Er(e,Fr(),t)}function wr(e){return 103===e||165===e}function Er(e,t,n){for(;;){He();const o=cv($e());if(!(43===$e()?o>=e:o>e))break;if(103===$e()&&Ne())break;if(130===$e()||152===$e()){if(c.hasPrecedingLineBreak())break;{const e=$e();Ue(),t=152===e?(r=t,i=fr(),bt(E.createSatisfiesExpression(r,i),r.pos)):Ar(t,fr())}}else t=Nr(t,pt(),Cr(o),n)}var r,i;return t}function Dr(){return(!Ne()||103!==$e())&&cv($e())>0}function Nr(e,t,n,r){return bt(E.createBinaryExpression(e,t,n),r)}function Ar(e,t){return bt(E.createAsExpression(e,t),e.pos)}function Pr(){const e=Je();return bt(E.createPrefixUnaryExpression($e(),Ke(Ir)),e)}function Fr(){if(function(){switch($e()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==m)return!1;default:return!0}}()){const e=Je(),t=Or();return 43===$e()?Er(cv($e()),t,e):t}const e=$e(),t=Ir();if(43===$e()){const n=Ts(d,t.pos),{end:r}=t;216===t.kind?Le(n,r,Ra.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(Fn.assert(Ty(e)),Le(n,r,Ra.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,ss(e)))}return t}function Ir(){switch($e()){case 40:case 41:case 55:case 54:return Pr();case 91:return function(){const e=Je();return bt(E.createDeleteExpression(Ke(Ir)),e)}();case 114:return function(){const e=Je();return bt(E.createTypeOfExpression(Ke(Ir)),e)}();case 116:return function(){const e=Je();return bt(E.createVoidExpression(Ke(Ir)),e)}();case 30:return 1===m?Rr(!0,void 0,void 0,!0):function(){Fn.assert(1!==m,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Je();ot(30);const t=fr();ot(32);const n=Ir();return bt(E.createTypeAssertion(t,n),e)}();case 135:if(135===$e()&&(Fe()||tt(pi)))return function(){const e=Je();return bt(E.createAwaitExpression(Ke(Ir)),e)}();default:return Or()}}function Or(){if(46===$e()||47===$e()){const e=Je();return bt(E.createPrefixUnaryExpression($e(),Ke(Mr)),e)}if(1===m&&30===$e()&&tt($t))return Rr(!0);const e=Mr();if(Fn.assert(r_(e)),(46===$e()||47===$e())&&!c.hasPrecedingLineBreak()){const t=$e();return Ue(),bt(E.createPostfixUnaryExpression(e,t),e.pos)}return e}function Mr(){const e=Je();let t;return 102===$e()?tt(jn)?(_|=4194304,t=pt()):tt(Bn)?(Ue(),Ue(),t=bt(E.createMetaProperty(102,Et()),e),_|=8388608):t=Lr():t=108===$e()?function(){const e=Je();let t=pt();if(30===$e()){const e=Je(),n=nt(Qr);void 0!==n&&(Le(e,Je(),Ra.super_may_not_use_type_arguments),Hr()||(t=E.createExpressionWithTypeArguments(t,n)))}return 21===$e()||25===$e()||23===$e()?t:(ft(25,Ra.super_must_be_followed_by_an_argument_list_or_member_access),bt(j(t,an(!0,!0)),e))}():Lr(),Xr(e,t)}function Lr(){return Wr(Je(),Zr(),!0)}function Rr(e,t,n,r=!1){const i=Je(),o=function(e){const t=Je();if(ot(30),32===$e())return Ze(),bt(E.createJsxOpeningFragment(),t);const n=Jr(),r=0==(524288&w)?ro():void 0,i=function(){const e=Je();return bt(E.createJsxAttributes(Wt(13,$r)),e)}();let o;return 32===$e()?(Ze(),o=E.createJsxOpeningElement(n,r,i)):(ot(44),ot(32,void 0,!1)&&(e?Ue():Ze()),o=E.createJsxSelfClosingElement(n,r,i)),bt(o,t)}(e);let a;if(286===o.kind){let t,r=Br(o);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!iO(s.openingElement.tagName,s.closingElement.tagName)&&iO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=bt(E.createJsxElement(s.openingElement,s.children,bt(E.createJsxClosingElement(bt(F(""),e,e)),e,e)),s.openingElement.pos,e);r=vt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Je();ot(31);const r=Jr();return ot(32,void 0,!1)&&(t||!iO(e.tagName,r)?Ue():Ze()),bt(E.createJsxClosingElement(r),n)}(o,e),iO(o.tagName,t.tagName)||(n&&wA(n)&&iO(t.tagName,n.tagName)?Re(o.tagName,Ra.JSX_element_0_has_no_corresponding_closing_tag,ip(d,o.tagName)):Re(t.tagName,Ra.Expected_corresponding_JSX_closing_tag_for_0,ip(d,o.tagName)));a=bt(E.createJsxElement(o,r,t),i)}else 289===o.kind?a=bt(E.createJsxFragment(o,Br(o),function(e){const t=Je();return ot(31),ot(32,Ra.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?Ue():Ze()),bt(E.createJsxJsxClosingFragment(),t)}(e)),i):(Fn.assert(285===o.kind),a=o);if(!r&&e&&30===$e()){const e=void 0===t?a.pos:t,n=nt((()=>Rr(!0,e)));if(n){const t=xt(28,!1);return FT(t,n.pos,0),Le(Ts(d,e),n.end,Ra.JSX_expressions_must_have_one_parent_element),bt(E.createBinaryExpression(a,t,n),i)}}return a}function jr(e,t){switch(t){case 1:if(NA(e))Re(e,Ra.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;Le(Math.min(Ts(d,t.pos),t.end),t.end,Ra.JSX_element_0_has_no_corresponding_closing_tag,ip(d,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Je(),t=E.createJsxText(c.getTokenValue(),13===b);return b=c.scanJsxToken(),bt(t,e)}();case 19:return zr(!1);case 30:return Rr(!1,void 0,e);default:return Fn.assertNever(t)}}function Br(e){const t=[],n=Je(),r=T;for(T|=16384;;){const n=jr(e,b=c.reScanJsxToken());if(!n)break;if(t.push(n),wA(e)&&284===(null==n?void 0:n.kind)&&!iO(n.openingElement.tagName,n.closingElement.tagName)&&iO(e.tagName,n.closingElement.tagName))break}return T=r,vt(t,n)}function Jr(){const e=Je(),t=function(){const e=Je();Qe();const t=110===$e(),n=Et();return _t(59)?(Qe(),bt(E.createJsxNamespacedName(n,Et()),e)):t?bt(E.createToken(110),e):n}();if(MA(t))return t;let n=t;for(;_t(25);)n=bt(j(n,an(!0,!1)),e);return n}function zr(e){const t=Je();if(!ot(19))return;let n,r;return 20!==$e()&&(n=dt(26),r=hr()),e?ot(20):ot(20,void 0,!1)&&Ze(),bt(E.createJsxExpression(n,r),t)}function $r(){if(19===$e())return function(){const e=Je();ot(19),ot(26);const t=hr();return ot(20),bt(E.createJsxSpreadAttribute(t),e)}();const e=Je();return bt(E.createJsxAttribute(function(){const e=Je();Qe();const t=Et();return _t(59)?(Qe(),bt(E.createJsxNamespacedName(t,Et()),e)):t}(),function(){if(64===$e()){if(11===(b=c.scanJsxAttributeValue()))return _n();if(19===$e())return zr(!0);if(30===$e())return Rr(!0);Ie(Ra.or_JSX_element_expected)}}()),e)}function Vr(){return Ue(),rs($e())||23===$e()||Hr()}function Kr(e){if(64&e.flags)return!0;if(kN(e)){let t=e.expression;for(;kN(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;kN(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Ur(e,t,n){const r=an(!0,!0),i=n||Kr(t),o=i?B(t,n,r):j(t,r);return i&&WE(o.name)&&Re(o.name,Ra.An_optional_chain_cannot_contain_private_identifiers),bN(t)&&t.typeArguments&&Le(t.typeArguments.pos-1,Ts(d,t.typeArguments.end)+1,Ra.An_instantiation_expression_cannot_be_followed_by_a_property_access),bt(o,e)}function qr(e,t,n){let r;if(24===$e())r=xt(80,!0,Ra.An_element_access_expression_should_take_an_argument);else{const e=be(hr);Oy(e)&&(e.text=kt(e.text)),r=e}return ot(24),bt(n||Kr(t)?z(t,n,r):J(t,r),e)}function Wr(e,t,n){for(;;){let r,i=!1;if(n&&29===$e()&&tt(Vr)?(r=ft(29),i=rs($e())):i=_t(25),i)t=Ur(e,t,r);else if(!r&&Pe()||!_t(23)){if(!Hr()){if(!r){if(54===$e()&&!c.hasPrecedingLineBreak()){Ue(),t=bt(E.createNonNullExpression(t),e);continue}const n=nt(Qr);if(n){t=bt(E.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==t.kind?Gr(e,t,r,void 0):Gr(e,t.expression,r,t.typeArguments)}else t=qr(e,t,r)}}function Hr(){return 15===$e()||16===$e()}function Gr(e,t,n,r){const i=E.createTaggedTemplateExpression(t,r,15===$e()?(Ge(!0),_n()):sn(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,bt(i,e)}function Xr(e,t){for(;;){let n;t=Wr(e,t,!0);const r=dt(29);if(r&&(n=nt(Qr),Hr()))t=Gr(e,t,r,n);else{if(!n&&21!==$e()){if(r){const n=xt(80,!1,Ra.Identifier_expected);t=bt(B(t,r,n),e)}break}{r||233!==t.kind||(n=t.typeArguments,t=t.expression);const i=Yr();t=bt(r||Kr(t)?V(t,r,n,i):$(t,n,i),e)}}}return t}function Yr(){ot(21);const e=Zt(11,ti);return ot(22),e}function Qr(){if(0!=(524288&w))return;if(30!==Xe())return;Ue();const e=Zt(20,fr);return 32===He()?(Ue(),e&&function(){switch($e()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return c.hasPrecedingLineBreak()||Dr()||!gr()}()?e:void 0):void 0}function Zr(){switch($e()){case 15:26656&c.getTokenFlags()&&Ge(!1);case 9:case 10:case 11:return _n();case 110:case 108:case 106:case 112:case 97:return pt();case 21:return function(){const e=Je(),t=ze();ot(21);const n=be(hr);return ot(22),ce(bt(U(n),e),t)}();case 23:return ni();case 19:return ii();case 134:if(!tt(fi))break;return oi();case 60:return function(){const e=Je(),t=ze(),n=Gi(!0);if(86===$e())return Zi(e,t,n,231);const r=xt(282,!0,Ra.Expression_expected);return NT(r,e),r.modifiers=n,r}();case 86:return Zi(Je(),ze(),void 0,231);case 100:return oi();case 105:return function(){const e=Je();if(ot(105),_t(25)){const t=Et();return bt(E.createMetaProperty(105,t),e)}let t,n=Wr(Je(),Zr(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression),29===$e()&&Ie(Ra.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,ip(d,n));const r=21===$e()?Yr():void 0;return bt(K(n,t,r),e)}();case 44:case 69:if(14===(b=c.reScanSlashToken()))return _n();break;case 16:return sn(!1);case 81:return At()}return wt(Ra.Expression_expected)}function ei(){return 26===$e()?function(){const e=Je();ot(26);const t=vr(!0);return bt(E.createSpreadElement(t),e)}():28===$e()?bt(E.createOmittedExpression(),Je()):vr(!0)}function ti(){return ye(40960,ei)}function ni(){const e=Je(),t=c.getTokenStart(),n=ot(23),r=c.hasPrecedingLineBreak(),i=Zt(15,ei);return ut(23,24,n,t),bt(M(i,r),e)}function ri(){const e=Je(),t=ze();if(dt(26)){const n=vr(!0);return ce(bt(E.createSpreadAssignment(n),e),t)}const n=Gi(!0);if(Pt(139))return Ki(e,t,n,177,0);if(Pt(153))return Ki(e,t,n,178,0);const r=dt(42),i=it(),o=Nt(),a=dt(58),s=dt(54);if(r||21===$e()||30===$e())return zi(e,t,n,r,o,a,s);let c;if(i&&59!==$e()){const e=dt(64),t=e?be((()=>vr(!0))):void 0;c=E.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{ot(59);const e=be((()=>vr(!0)));c=E.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,ce(bt(c,e),t)}function ii(){const e=Je(),t=c.getTokenStart(),n=ot(19),r=c.hasPrecedingLineBreak(),i=Zt(12,ri,!0);return ut(19,20,n,t),bt(R(i,r),e)}function oi(){const e=Pe();ge(!1);const t=Je(),n=ze(),r=Gi(!1);ot(100);const i=dt(42),o=i?1:0,a=le(r,XE)?2:0,s=o&&a?ve(81920,ai):o?ve(16384,ai):a?Te(ai):ai();const c=kn(),l=Nn(o|a),u=En(59,!1),_=ci(o|a);return ge(e),ce(bt(E.createFunctionExpression(r,i,s,c,l,u,_),t),n)}function ai(){return rt()?Ct():void 0}function si(e,t){const n=Je(),r=ze(),i=c.getTokenStart(),o=ot(19,t);if(o||e){const e=c.hasPrecedingLineBreak(),t=Wt(1,Ci);ut(19,20,o,i);const a=ce(bt(q(t,e),n),r);return 64===$e()&&(Ie(Ra.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ue()),a}{const e=tn();return ce(bt(q(e,void 0),n),r)}}function ci(e,t){const n=De();me(!!(1&e));const r=Fe();he(!!(2&e));const i=ne;ne=!1;const o=Pe();o&&ge(!1);const a=si(!!(16&e),t);return o&&ge(!0),ne=i,me(n),he(r),a}function li(e){const t=Je(),n=ze();ot(252===e?83:88);const r=mt()?void 0:wt();return yt(),ce(bt(252===e?E.createBreakStatement(r):E.createContinueStatement(r),t),n)}function ui(){return 84===$e()?function(){const e=Je(),t=ze();ot(84);const n=be(hr);ot(59);const r=Wt(3,Ci);return ce(bt(E.createCaseClause(n,r),e),t)}():function(){const e=Je();ot(90),ot(59);const t=Wt(3,Ci);return bt(E.createDefaultClause(t),e)}()}function _i(){return Ue(),rs($e())&&!c.hasPrecedingLineBreak()}function di(){return Ue(),86===$e()&&!c.hasPrecedingLineBreak()}function fi(){return Ue(),100===$e()&&!c.hasPrecedingLineBreak()}function pi(){return Ue(),(rs($e())||9===$e()||10===$e()||11===$e())&&!c.hasPrecedingLineBreak()}function mi(){for(;;)switch($e()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return xi();case 135:return Ti();case 120:case 156:return Ue(),!c.hasPrecedingLineBreak()&&it();case 144:case 145:return Ue(),!c.hasPrecedingLineBreak()&&(it()||11===$e());case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=$e();if(Ue(),c.hasPrecedingLineBreak())return!1;if(138===e&&156===$e())return!0;continue;case 162:return Ue(),19===$e()||80===$e()||95===$e();case 102:return Ue(),11===$e()||42===$e()||19===$e()||rs($e());case 95:let t=Ue();if(156===t&&(t=tt(Ue)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:Ue();continue;default:return!1}}function gi(){return tt(mi)}function hi(){switch($e()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 102:return gi()||tt(Jn);case 87:case 95:return gi();case 129:case 125:case 123:case 124:case 126:case 148:return gi()||!tt(_i);default:return gr()}}function yi(){return Ue(),rt()||19===$e()||23===$e()}function vi(){return bi(!0)}function bi(e){return Ue(),(!e||165!==$e())&&(rt()||19===$e())&&!c.hasPrecedingLineBreak()}function xi(){return tt(bi)}function Si(){return ki(!0)}function ki(e){return 160===Ue()&&bi(e)}function Ti(){return tt(ki)}function Ci(){switch($e()){case 27:return function(){const e=Je(),t=ze();return ot(27),ce(bt(E.createEmptyStatement(),e),t)}();case 19:return si(!1);case 115:return Bi(Je(),ze(),void 0);case 121:if(tt(yi))return Bi(Je(),ze(),void 0);break;case 135:if(Ti())return Bi(Je(),ze(),void 0);break;case 160:if(xi())return Bi(Je(),ze(),void 0);break;case 100:return Ji(Je(),ze(),void 0);case 86:return Qi(Je(),ze(),void 0);case 101:return function(){const e=Je(),t=ze();ot(101);const n=c.getTokenStart(),r=ot(21),i=be(hr);ut(21,22,r,n);const o=Ci(),a=_t(93)?Ci():void 0;return ce(bt(G(i,o,a),e),t)}();case 92:return function(){const e=Je(),t=ze();ot(92);const n=Ci();ot(117);const r=c.getTokenStart(),i=ot(21),o=be(hr);return ut(21,22,i,r),_t(27),ce(bt(E.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Je(),t=ze();ot(117);const n=c.getTokenStart(),r=ot(21),i=be(hr);ut(21,22,r,n);const o=Ci();return ce(bt(X(i,o),e),t)}();case 99:return function(){const e=Je(),t=ze();ot(99);const n=dt(135);let r,i;if(ot(21),27!==$e()&&(r=115===$e()||121===$e()||87===$e()||160===$e()&&tt(vi)||135===$e()&&tt(Si)?Ri(!0):ve(8192,hr)),n?ot(165):_t(165)){const e=be((()=>vr(!0)));ot(22),i=Q(n,r,e,Ci())}else if(_t(103)){const e=be(hr);ot(22),i=E.createForInStatement(r,e,Ci())}else{ot(27);const e=27!==$e()&&22!==$e()?be(hr):void 0;ot(27);const t=22!==$e()?be(hr):void 0;ot(22),i=Y(r,e,t,Ci())}return ce(bt(i,e),t)}();case 88:return li(251);case 83:return li(252);case 107:return function(){const e=Je(),t=ze();ot(107);const n=mt()?void 0:be(hr);return yt(),ce(bt(E.createReturnStatement(n),e),t)}();case 118:return function(){const e=Je(),t=ze();ot(118);const n=c.getTokenStart(),r=ot(21),i=be(hr);ut(21,22,r,n);const o=ve(67108864,Ci);return ce(bt(E.createWithStatement(i,o),e),t)}();case 109:return function(){const e=Je(),t=ze();ot(109),ot(21);const n=be(hr);ot(22);const r=function(){const e=Je();ot(19);const t=Wt(2,ui);return ot(20),bt(E.createCaseBlock(t),e)}();return ce(bt(E.createSwitchStatement(n,r),e),t)}();case 111:return function(){const e=Je(),t=ze();ot(111);let n=c.hasPrecedingLineBreak()?void 0:be(hr);return void 0===n&&(k++,n=bt(F(""),Je())),ht()||st(n),ce(bt(E.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return function(){const e=Je(),t=ze();ot(113);const n=si(!1),r=85===$e()?function(){const e=Je();let t;ot(85),_t(21)?(t=Li(),ot(22)):t=void 0;const n=si(!1);return bt(E.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==$e()||(ot(98,Ra.catch_or_finally_expected),i=si(!1)),ce(bt(E.createTryStatement(n,r,i),e),t)}();case 89:return function(){const e=Je(),t=ze();return ot(89),yt(),ce(bt(E.createDebuggerStatement(),e),t)}();case 60:return Ei();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(gi())return Ei()}return function(){const e=Je();let t,n=ze();const r=21===$e(),i=be(hr);return qE(i)&&_t(59)?t=E.createLabeledStatement(i,Ci()):(ht()||st(i),t=H(i),r&&(n=!1)),ce(bt(t,e),n)}()}function wi(e){return 138===e.kind}function Ei(){const e=Je(),t=ze(),n=Gi(!0);if(le(n,wi)){const r=function(e){return ve(33554432,(()=>{const t=Gt(T,e);if(t)return Xt(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return ve(33554432,(()=>Di(e,t,n)))}return Di(e,t,n)}function Di(e,t,n){switch($e()){case 115:case 121:case 87:case 160:case 135:return Bi(e,t,n);case 100:return Ji(e,t,n);case 86:return Qi(e,t,n);case 120:return function(e,t,n){ot(120);const r=wt(),i=kn(),o=eo(),a=zn();return ce(bt(E.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){ot(156),c.hasPrecedingLineBreak()&&Ie(Ra.Line_break_not_permitted_here);const r=wt(),i=kn();ot(64);const o=141===$e()&&nt(Hn)||fr();return yt(),ce(bt(E.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){ot(94);const r=wt();let i;return ot(19)?(i=ye(81920,(()=>Zt(6,oo))),ot(20)):i=tn(),ce(bt(E.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===$e())return co(e,t,n);if(_t(145))r|=32;else if(ot(144),11===$e())return co(e,t,n);return so(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){ot(102);const r=c.getTokenFullStart();let i;it()&&(i=wt());let o,a=!1;if(161===$e()||"type"!==(null==i?void 0:i.escapedText)||!it()&&42!==$e()&&19!==$e()||(a=!0,i=it()?wt():void 0),i&&28!==$e()&&161!==$e())return function(e,t,n,r,i){ot(64);const o=149===$e()&&tt(lo)?function(){const e=Je();ot(149),ot(21);const t=mo();return ot(22),bt(E.createExternalModuleReference(t),e)}():rn(!1);yt();return ce(bt(E.createImportEqualsDeclaration(n,i,r,o),e),t)}(e,t,n,i,a);(i||42===$e()||19===$e())&&(o=function(e,t,n){let r;return e&&!_t(28)||(r=42===$e()?function(){const e=Je();ot(42),ot(130);const t=wt();return bt(E.createNamespaceImport(t),e)}():go(275)),bt(E.createImportClause(n,e,r),t)}(i,r,a),ot(161));const s=mo();let l;return 132!==$e()||c.hasPrecedingLineBreak()||(l=po()),yt(),ce(bt(E.createImportDeclaration(n,o,s,l),e),t)}(e,t,n);case 95:switch(Ue(),$e()){case 90:case 64:return function(e,t,n){const r=Fe();let i;he(!0),_t(64)?i=!0:ot(90);const o=vr(!0);return yt(),he(r),ce(bt(E.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){ot(130),ot(145);const r=wt();yt();const i=E.createNamespaceExportDeclaration(r);return i.modifiers=n,ce(bt(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Fe();let i,o,a;he(!0);const s=_t(156),l=Je();return _t(42)?(_t(130)&&(i=function(e){return bt(E.createNamespaceExport(Et()),e)}(l)),ot(161),o=mo()):(i=go(279),(161===$e()||11===$e()&&!c.hasPrecedingLineBreak())&&(ot(161),o=mo())),o&&132===$e()&&!c.hasPrecedingLineBreak()&&(a=po()),yt(),he(r),ce(bt(E.createExportDeclaration(n,s,i,o,a),e),t)}(e,t,n)}default:if(n){const t=xt(282,!0,Ra.Declaration_expected);return NT(t,e),t.modifiers=n,t}return}}function Ni(){return 11===Ue()}function Ai(e,t){if(19!==$e()){if(4&e)return void An();if(mt())return void yt()}return ci(e,t)}function Pi(){const e=Je();if(28===$e())return bt(E.createOmittedExpression(),e);const t=dt(26),n=Oi(),r=yr();return bt(E.createBindingElement(t,void 0,n,r),e)}function Fi(){const e=Je(),t=dt(26),n=rt();let r,i=Nt();n&&59!==$e()?(r=i,i=void 0):(ot(59),r=Oi());const o=yr();return bt(E.createBindingElement(t,i,r,o),e)}function Ii(){return 19===$e()||23===$e()||81===$e()||rt()}function Oi(e){return 23===$e()?function(){const e=Je();ot(23);const t=be((()=>Zt(10,Pi)));return ot(24),bt(E.createArrayBindingPattern(t),e)}():19===$e()?function(){const e=Je();ot(19);const t=be((()=>Zt(9,Fi)));return ot(20),bt(E.createObjectBindingPattern(t),e)}():Ct(e)}function Mi(){return Li(!0)}function Li(e){const t=Je(),n=ze(),r=Oi(Ra.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===$e()&&!c.hasPrecedingLineBreak()&&(i=pt());const o=pr(),a=wr($e())?void 0:yr();return ce(bt(Z(r,i,o,a),t),n)}function Ri(e){const t=Je();let n,r=0;switch($e()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:Fn.assert(Ti()),r|=6,Ue();break;default:Fn.fail()}if(Ue(),165===$e()&&tt(ji))n=tn();else{const t=Ne();pe(e),n=Zt(8,e?Li:Mi),pe(t)}return bt(ee(n,r),t)}function ji(){return Jt()&&22===Ue()}function Bi(e,t,n){const r=Ri(!1);return yt(),ce(bt(W(n,r),e),t)}function Ji(e,t,n){const r=Fe(),i=Rb(n);ot(100);const o=dt(42),a=1024&i?ai():Ct(),s=o?1:0,c=512&i?2:0,l=kn();1&i&&he(!0);const u=Nn(s|c),_=En(59,!1),d=Ai(s|c,Ra.or_expected);return he(r),ce(bt(E.createFunctionDeclaration(n,o,a,l,u,_,d),e),t)}function zi(e,t,n,r,i,o,a,s){const c=r?1:0,l=le(n,XE)?2:0,u=kn(),_=Nn(c|l),d=En(59,!1),f=Ai(c|l,s),p=E.createMethodDeclaration(n,r,i,o,u,_,d,f);return p.exclamationToken=a,ce(bt(p,e),t)}function $i(e,t,n,r,i){const o=i||c.hasPrecedingLineBreak()?void 0:dt(54),a=pr(),s=ye(90112,yr);return function(e,t,n){if(60!==$e()||c.hasPrecedingLineBreak())return 21===$e()?(Ie(Ra.Cannot_start_a_function_call_in_a_type_annotation),void Ue()):void(!t||mt()?ht()||(n?Ie(Ra._0_expected,ss(27)):st(e)):n?Ie(Ra._0_expected,ss(27)):Ie(Ra.Expected_for_property_initializer));Ie(Ra.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,a,s),ce(bt(E.createPropertyDeclaration(n,r,i||o,a,s),e),t)}function Vi(e,t,n){const r=dt(42),i=Nt(),o=dt(58);return r||21===$e()||30===$e()?zi(e,t,n,r,i,o,void 0,Ra.or_expected):$i(e,t,n,i,o)}function Ki(e,t,n,r,i){const o=Nt(),a=kn(),s=Nn(0),c=En(59,!1),l=Ai(i),u=177===r?E.createGetAccessorDeclaration(n,o,s,c,l):E.createSetAccessorDeclaration(n,o,s,l);return u.typeParameters=a,vD(u)&&(u.type=c),ce(bt(u,e),t)}function Ui(){let e;if(60===$e())return!0;for(;gu($e());){if(e=$e(),yu(e))return!0;Ue()}if(42===$e())return!0;if(Dt()&&(e=$e(),Ue()),23===$e())return!0;if(void 0!==e){if(!Sy(e)||153===e||139===e)return!0;switch($e()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return mt()}}return!1}function qi(){if(Fe()&&135===$e()){const e=Je(),t=wt(Ra.Expression_expected);return Ue(),Xr(e,Wr(e,t,!0))}return Mr()}function Wi(){const e=Je();if(!_t(60))return;const t=ve(32768,qi);return bt(E.createDecorator(t),e)}function Hi(e,t,n){const r=Je(),i=$e();if(87===$e()&&t){if(!nt(Ft))return}else{if(n&&126===$e()&&tt(uo))return;if(e&&126===$e())return;if(!gu($e())||!nt(It))return}return bt(O(i),r)}function Gi(e,t,n){const r=Je();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===$e())for(;o=Wi();)i=ke(i,o);for(;a=Hi(s,t,n);)126===a.kind&&(s=!0),i=ke(i,a),c=!0;if(c&&e&&60===$e())for(;o=Wi();)i=ke(i,o),l=!0;if(l)for(;a=Hi(s,t,n);)126===a.kind&&(s=!0),i=ke(i,a);return i&&vt(i,r)}function Xi(){let e;if(134===$e()){const t=Je();Ue(),e=vt([bt(O(134),t)],t)}return e}function Yi(){const e=Je(),t=ze();if(27===$e())return Ue(),ce(bt(E.createSemicolonClassElement(),e),t);const n=Gi(!0,!0,!0);if(126===$e()&&tt(uo))return function(e,t,n){ft(126);const r=function(){const e=De(),t=Fe();me(!1),he(!0);const n=si(!1);return me(e),he(t),n}(),i=ce(bt(E.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}(e,t,n);if(Pt(139))return Ki(e,t,n,177,0);if(Pt(153))return Ki(e,t,n,178,0);if(137===$e()||11===$e()){const r=function(e,t,n){return nt((()=>{if(137===$e()?ot(137):11===$e()&&21===tt(Ue)?nt((()=>{const e=_n();return"constructor"===e.text?e:void 0})):void 0){const r=kn(),i=Nn(0),o=En(59,!1),a=Ai(0,Ra.or_expected),s=E.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,ce(bt(s,e),t)}}))}(e,t,n);if(r)return r}if(In())return Mn(e,t,n);if(rs($e())||11===$e()||9===$e()||42===$e()||23===$e()){if(le(n,wi)){for(const e of n)e.flags|=33554432;return ve(33554432,(()=>Vi(e,t,n)))}return Vi(e,t,n)}if(n){const r=xt(80,!0,Ra.Declaration_expected);return $i(e,t,n,r,void 0)}return Fn.fail("Should not have attempted to parse class member declaration.")}function Qi(e,t,n){return Zi(e,t,n,263)}function Zi(e,t,n,r){const i=Fe();ot(86);const o=!rt()||119===$e()&&tt(zt)?void 0:Tt(rt()),a=kn();le(n,HE)&&he(!0);const s=eo();let c;return ot(19)?(c=Wt(5,Yi),ot(20)):c=tn(),he(i),ce(bt(263===r?E.createClassDeclaration(n,o,a,s,c):E.createClassExpression(n,o,a,s,c),e),t)}function eo(){if(io())return Wt(22,to)}function to(){const e=Je(),t=$e();Fn.assert(96===t||119===t),Ue();const n=Zt(7,no);return bt(E.createHeritageClause(t,n),e)}function no(){const e=Je(),t=Mr();if(233===t.kind)return t;const n=ro();return bt(E.createExpressionWithTypeArguments(t,n),e)}function ro(){return 30===$e()?nn(20,fr,30,32):void 0}function io(){return 96===$e()||119===$e()}function oo(){const e=Je(),t=ze(),n=Nt(),r=be(yr);return ce(bt(E.createEnumMember(n,r),e),t)}function ao(){const e=Je();let t;return ot(19)?(t=Wt(1,Ci),ot(20)):t=tn(),bt(E.createModuleBlock(t),e)}function so(e,t,n,r){const i=32&r,o=wt(),a=_t(25)?so(Je(),!1,void 0,8|i):ao();return ce(bt(E.createModuleDeclaration(n,o,a,r),e),t)}function co(e,t,n){let r,i,o=0;return 162===$e()?(r=wt(),o|=2048):(r=_n(),r.text=kt(r.text)),19===$e()?i=ao():yt(),ce(bt(E.createModuleDeclaration(n,r,i,o),e),t)}function lo(){return 21===Ue()}function uo(){return 19===Ue()}function _o(){return 44===Ue()}function fo(){const e=Je(),t=rs($e())?Et():pn(11);ot(59);const n=vr(!0);return bt(E.createAssertEntry(t,n),e)}function po(e){const t=Je();e||ot(132);const n=c.getTokenStart();if(ot(19)){const e=c.hasPrecedingLineBreak(),r=Zt(24,fo,!0);if(!ot(20)){const e=je(g);e&&e.code===Ra._0_expected.code&&mT(e,NS(u,n,1,Ra.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return bt(E.createAssertClause(r,e),t)}{const e=vt([],Je(),void 0,!1);return bt(E.createAssertClause(e,!1),t)}}function mo(){if(11===$e()){const e=_n();return e.text=kt(e.text),e}return hr()}function go(e){const t=Je();return bt(275===e?E.createNamedImports(nn(23,yo,19,20)):E.createNamedExports(nn(23,ho,19,20)),t)}function ho(){const e=ze();return ce(vo(281),e)}function yo(){return vo(276)}function vo(e){const t=Je();let n,r=Sy($e())&&!it(),i=c.getTokenStart(),o=c.getTokenEnd(),a=!1,s=!0,l=Et();if("type"===l.escapedText)if(130===$e()){const e=Et();if(130===$e()){const t=Et();rs($e())?(a=!0,n=e,l=u(),s=!1):(n=l,l=t,s=!1)}else rs($e())?(n=l,s=!1,l=u()):(a=!0,l=e)}else rs($e())&&(a=!0,l=u());return s&&130===$e()&&(n=l,ot(130),l=u()),276===e&&r&&Le(i,o,Ra.Identifier_expected),bt(276===e?E.createImportSpecifier(a,n,l):E.createExportSpecifier(a,n,l),t);function u(){return r=Sy($e())&&!it(),i=c.getTokenStart(),o=c.getTokenEnd(),Et()}}let bo;var xo;let So;var ko;let To;(xo=bo||(bo={}))[xo.SourceElements=0]="SourceElements",xo[xo.BlockStatements=1]="BlockStatements",xo[xo.SwitchClauses=2]="SwitchClauses",xo[xo.SwitchClauseStatements=3]="SwitchClauseStatements",xo[xo.TypeMembers=4]="TypeMembers",xo[xo.ClassMembers=5]="ClassMembers",xo[xo.EnumMembers=6]="EnumMembers",xo[xo.HeritageClauseElement=7]="HeritageClauseElement",xo[xo.VariableDeclarations=8]="VariableDeclarations",xo[xo.ObjectBindingElements=9]="ObjectBindingElements",xo[xo.ArrayBindingElements=10]="ArrayBindingElements",xo[xo.ArgumentExpressions=11]="ArgumentExpressions",xo[xo.ObjectLiteralMembers=12]="ObjectLiteralMembers",xo[xo.JsxAttributes=13]="JsxAttributes",xo[xo.JsxChildren=14]="JsxChildren",xo[xo.ArrayLiteralMembers=15]="ArrayLiteralMembers",xo[xo.Parameters=16]="Parameters",xo[xo.JSDocParameters=17]="JSDocParameters",xo[xo.RestProperties=18]="RestProperties",xo[xo.TypeParameters=19]="TypeParameters",xo[xo.TypeArguments=20]="TypeArguments",xo[xo.TupleElementTypes=21]="TupleElementTypes",xo[xo.HeritageClauses=22]="HeritageClauses",xo[xo.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",xo[xo.AssertEntries=24]="AssertEntries",xo[xo.JSDocComment=25]="JSDocComment",xo[xo.Count=26]="Count",(ko=So||(So={}))[ko.False=0]="False",ko[ko.True=1]="True",ko[ko.Unknown=2]="Unknown",(e=>{function t(e){const t=Je(),n=(e?_t:ot)(19),r=ve(16777216,xn);e&&!n||lt(20);const i=E.createJSDocTypeExpression(r);return ue(i),bt(i,t)}function n(){const e=Je(),t=_t(19),n=Je();let r=rn(!1);for(;81===$e();)Ye(),qe(),r=bt(E.createJSDocMemberName(r,wt()),n);t&<(20);const i=E.createJSDocNameReference(r);return ue(i),bt(i,e)}let r;var i;let o;var a;function s(e=0,r){const i=T;T|=1<<25;const o=d,a=void 0===r?o.length:e+r;if(r=a-e,Fn.assert(e>=0),Fn.assert(e<=a),Fn.assert(a<=o.length),!bI(o,e))return;let s,l,_,f,p,m=[];const g=[],h=c.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(o.lastIndexOf("\n",e)+1)+4;function i(e){t||(t=r),m.push(e),r+=e.length}for(qe();Y(5););Y(4)&&(n=0,r=0);e:for(;;){switch($e()){case 60:b(m),p||(p=Je()),(u=w(r))&&(s?s.push(u):(s=[u],l=u.pos),_=u.end),n=0,t=void 0;break;case 4:m.push(c.getTokenText()),n=0,r=0;break;case 42:const o=c.getTokenText();1===n?(n=2,i(o)):(Fn.assert(0===n),n=1,r+=o.length);break;case 5:Fn.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const a=c.getTokenText();void 0!==t&&r+a.length>t&&m.push(a.slice(t-r)),r+=a.length;break;case 1:break e;case 82:n=2,i(c.getTokenValue());break;case 19:n=2;const d=c.getTokenFullStart(),h=A(c.getTokenEnd()-1);if(h){f||v(m),g.push(bt(E.createJSDocText(m.join("")),f??e,d)),g.push(h),m=[],f=c.getTokenEnd();break}default:n=2,i(c.getTokenText())}2===n?We(!1):qe()}var u;const d=y(m.join(""));g.length&&d.length&&g.push(bt(E.createJSDocText(d),f??e,p)),g.length&&s&&Fn.assertIsDefined(p,"having parsed tags implies that the end of the comment span should be set");const h=s&&vt(s,l,_);return bt(E.createJSDocComment(g.length?vt(g,e,p):d.length?d:void 0,h),e,a)}));return T=i,h;function v(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function b(e){for(;e.length;){const t=y(e[e.length-1]);if(""!==t){if(t.lengthq(n))))&&352!==t.kind;)if(s=!0,351===t.kind){if(r){const e=Ie(Ra.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&mT(e,NS(u,0,0,Ra.The_tag_was_first_specified_here));break}r=t}else o=ke(o,t);if(s){const t=i&&188===i.type.kind,n=E.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!R(r.typeExpression.type)?r.typeExpression:bt(n,e),a=i.end}}return a=a||void 0!==s?Je():(o??i??t).end,s||(s=D(e,a,n,r)),bt(E.createJSDocTypedefTag(t,i,o,s),e,a)}(r,i,e,o);break;case"callback":a=function(e,t,n,r){const i=V();S();let o=N(n);const a=K(e,n);o||(o=D(e,Je(),n,r));const s=void 0!==o?Je():a.end;return bt(E.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":a=function(e,t,n,r){S();let i=N(n);const o=K(e,n);i||(i=D(e,Je(),n,r));const a=void 0!==i?Je():o.end;return bt(E.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":a=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?D(e,Je(),r,i):void 0;return bt(E.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":a=function(e,t,r,i){const o=23===$e()||tt((()=>60===qe()&&rs(qe())&&I(c.getTokenValue())))?void 0:n(),a=void 0!==r&&void 0!==i?D(e,Je(),r,i):void 0;return bt(E.createJSDocSeeTag(t,o,a),e)}(r,i,e,o);break;case"exception":case"throws":a=function(e,t,n,r){const i=M(),o=D(e,Je(),n,r);return bt(E.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;default:a=function(e,t,n,r){return bt(E.createJSDocUnknownTag(t,D(e,Je(),n,r)),e)}(r,i,e,o)}return a}function D(e,t,n,r){return r||(n+=t-e),N(n,r.slice(n))}function N(e,t){const n=Je();let r=[];const i=[];let o,a,s=0;function l(t){a||(a=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),s=1);let u=$e();e:for(;;){switch(u){case 4:s=0,r.push(c.getTokenText()),e=0;break;case 60:c.resetTokenState(c.getTokenEnd()-1);break e;case 1:break e;case 5:Fn.assert(2!==s&&3!==s,"whitespace shouldn't come from the scanner while saving comment text");const t=c.getTokenText();void 0!==a&&e+t.length>a&&(r.push(t.slice(a-e)),s=2),e+=t.length;break;case 19:s=2;const u=c.getTokenFullStart(),_=A(c.getTokenEnd()-1);_?(i.push(bt(E.createJSDocText(r.join("")),o??n,u)),i.push(_),r=[],o=c.getTokenEnd()):l(c.getTokenText());break;case 62:s=3===s?2:3,l(c.getTokenText());break;case 82:3!==s&&(s=2),l(c.getTokenValue());break;case 42:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),l(c.getTokenText())}u=2===s||3===s?We(3===s):qe()}v(r);const _=y(r.join(""));return i.length?(_.length&&i.push(bt(E.createJSDocText(_),o??n)),vt(i,n,c.getTokenEnd())):_.length?_:void 0}function A(e){const t=nt(P);if(!t)return;qe(),S();const n=Je();let r=rs($e())?rn(!0):void 0;if(r)for(;81===$e();)Ye(),qe(),r=bt(E.createJSDocMemberName(r,wt()),n);const i=[];for(;20!==$e()&&4!==$e()&&1!==$e();)i.push(c.getTokenText()),qe();return bt(("link"===t?E.createJSDocLink:"linkcode"===t?E.createJSDocLinkCode:E.createJSDocLinkPlain)(r,i.join("")),e,c.getTokenEnd())}function P(){if(C(),19===$e()&&60===qe()&&rs(qe())){const e=c.getTokenValue();if(I(e))return e}}function I(e){return"link"===e||"linkcode"===e||"linkplain"===e}function M(){return C(),19===$e()?t():void 0}function L(){const e=Y(23);e&&S();const t=Y(62),n=function(){let e=Q();for(_t(23)&&ot(24);_t(25);){const t=Q();_t(23)&&ot(24),e=on(e,t)}return e}();return t&&(function(e){if($e()===e)return function(){const e=Je(),t=$e();return qe(),bt(O(t),e)}()}(62)||(Fn.assert(Ty(62)),xt(62,!1,Ra._0_expected,ss(62)))),e&&(S(),dt(64)&&hr(),ot(24)),{name:n,isBracketed:e}}function R(e){switch(e.kind){case 151:return!0;case 188:return R(e.elementType);default:return TD(e)&&qE(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function B(e,t,n,r){let i=M(),o=!i;C();const{name:a,isBracketed:s}=L(),c=C();o&&!tt(P)&&(i=M());const l=D(e,Je(),r,c),u=function(e,t,n,r){if(e&&R(e.type)){const i=Je();let o,a;for(;o=nt((()=>W(n,r,t)));)348===o.kind||355===o.kind?a=ke(a,o):352===o.kind&&Re(o.tagName,Ra.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=bt(E.createJSDocTypeLiteral(a,188===e.type.kind),i);return bt(E.createJSDocTypeExpression(t),i)}}}(i,a,n,r);return u&&(i=u,o=!0),bt(1===n?E.createJSDocPropertyTag(t,a,s,i,o,l):E.createJSDocParameterTag(t,a,s,i,o,l),e)}function J(e,n,r,i){le(s,EP)&&Le(n.pos,c.getTokenStart(),Ra._0_tag_already_specified,Fc(n.escapedText));const o=t(!0),a=void 0!==r&&void 0!==i?D(e,Je(),r,i):void 0;return bt(E.createJSDocTypeTag(n,o,a),e)}function z(){const e=_t(19),t=Je(),n=function(){const e=Je();let t=Q();for(;_t(25);){const n=Q();t=bt(j(t,n),e)}return t}();c.setInJSDocType(!0);const r=ro();c.setInJSDocType(!1);const i=bt(E.createExpressionWithTypeArguments(n,r),t);return e&&ot(20),i}function $(e,t,n,r,i){return bt(t(n,D(e,Je(),r,i)),e)}function V(e){const t=c.getTokenStart();if(!rs($e()))return;const n=Q();if(_t(25)){const r=V(!0);return bt(E.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function K(e,t){const n=function(e){const t=Je();let n,r;for(;n=nt((()=>W(4,e)));){if(352===n.kind){Re(n.tagName,Ra.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=ke(r,n)}return vt(r||[],t)}(t),r=nt((()=>{if(Y(60)){const e=w(t);if(e&&349===e.kind)return e}}));return bt(E.createJSDocSignature(void 0,n,r),e)}function U(e,t){for(;!qE(e)||!qE(t);){if(qE(e)||qE(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function q(e){return W(1,e)}function W(e,t,n){let r=!0,i=!1;for(;;)switch(qe()){case 60:if(r){const r=H(e,t);return!(r&&(348===r.kind||355===r.kind)&&n&&(qE(r.name)||!U(n,r.name.left)))&&r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function H(e,t){Fn.assert(60===$e());const n=c.getTokenFullStart();qe();const r=Q(),i=C();let o;switch(r.escapedText){case"type":return 1===e&&J(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return X(n,r,t,i);default:return!1}return!!(e&o)&&B(n,r,e,t)}function G(){const e=Je(),t=Y(23);t&&S();const n=Q(Ra.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let r;if(t&&(S(),ot(64),r=ve(16777216,xn),ot(24)),!Jf(n))return bt(E.createTypeParameterDeclaration(void 0,n,void 0,r),e)}function X(e,n,r,i){const o=19===$e()?t():void 0,a=function(){const e=Je(),t=[];do{S();const e=G();void 0!==e&&t.push(e),C()}while(Y(28));return vt(t,e)}();return bt(E.createJSDocTemplateTag(n,o,a,D(e,Je(),r,i)),e)}function Y(e){return $e()===e&&(qe(),!0)}function Q(e){if(!rs($e()))return xt(80,!e,e||Ra.Identifier_expected);k++;const t=c.getTokenStart(),n=c.getTokenEnd(),r=$e(),i=kt(c.getTokenValue()),o=bt(F(i,r),t,n);return qe(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){oe("file.js",e,99,void 0,1),c.setText(e,n,r),b=c.scan();const i=t(),o=de("file.js",99,1,!1,[],O(1),0,St),a=FS(g,o);return h&&(o.jsDocDiagnostics=FS(h,o)),ae(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){oe("",e,99,void 0,1);const r=ve(16777216,(()=>s(t,n))),i=FS(g,{languageVariant:0,text:e});return ae(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=b,i=g.length,o=re,a=ve(16777216,(()=>s(t,n)));return OT(a,e),524288&w&&(h||(h=[]),h.push(...g)),b=r,g.length=i,re=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(a=o||(o={}))[a.Property=1]="Property",a[a.Parameter=2]="Parameter",a[a.CallbackParameter=4]="CallbackParameter"})(To=e.JSDocParser||(e.JSDocParser={}))})(dI||(dI={})),(e=>{function t(e,t,r,o,a,s){return void(t?l(e):c(e));function c(e){let t="";if(s&&n(e)&&(t=o.substring(e.pos,e.end)),e._children&&(e._children=void 0),PT(e,e.pos+r,e.end+r),s&&n(e)&&Fn.assert(t===a.substring(e.pos,e.end)),zI(e,c,l),W_(e))for(const t of e.jsDoc)c(t);i(e,s)}function l(e){e._children=void 0,PT(e,e.pos+r,e.end+r);for(const t of e)c(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){Fn.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),Fn.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),Fn.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);Fn.assert(o<=a),e.parent&&(Fn.assertGreaterThanOrEqual(o,e.parent.pos),Fn.assertLessThanOrEqual(a,e.parent.end)),PT(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{Fn.assert(e.pos>=t),t=e.end};if(W_(e))for(const t of e.jsDoc)n(t);zI(e,n),Fn.assert(t<=e.end)}}function o(e,t){let n,r=e;if(zI(e,(function e(i){if(!Jf(i))return i.pos<=t?(i.pos>=r.pos&&(r=i),tt),!0)})),n){const e=function(e){for(;;){const t=oS(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(Fn.assert(i.length-n.span.length+n.newLength===t.length),r||Fn.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);Fn.assert(e===r);const o=i.substring(Qs(n.span),i.length),a=t.substring(Qs(dc(n)),t.length);Fn.assert(o===a)}}function s(e){let t=e.statements,n=0;Fn.assert(n(o!==i&&(r&&r.end===o&&n=e.pos&&i=e.pos&&i0&&t<=1;t++){const t=o(e,n);Fn.assert(t.pos<=n);const r=t.pos;n=Math.max(0,r-1)}return pc(_c(n,Qs(t.span)),t.newLength+(t.span.start-n))}(e,c);a(e,n,f,l),Fn.assert(f.span.start<=c.span.start),Fn.assert(Qs(f.span)===Qs(c.span)),Fn.assert(Qs(dc(f))===Qs(dc(c)));const p=dc(f).length-f.span.length;!function(e,n,o,a,s,c,l,u){return void _(e);function _(e){if(Fn.assert(e.pos<=e.end),e.pos>o)return void t(e,!1,s,c,l,u);const f=e.end;if(f>=n){if(e.intersectsChange=!0,e._children=void 0,r(e,n,o,a,s),zI(e,_,d),W_(e))for(const t of e.jsDoc)_(t);i(e,u)}else Fn.assert(fo)return void t(e,!0,s,c,l,u);const i=e.end;if(i>=n){e.intersectsChange=!0,e._children=void 0,r(e,n,o,a,s);for(const t of e)_(t)}else Fn.assert(ir){u();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=ke(c,t),s&&Fn.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return u(),c;function u(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,m.commentDirectives,f.span.start,Qs(f.span),p,_,n,l),m.impliedNodeFormat=e.impliedNodeFormat,m},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(fI||(fI={})),pI=new Map,mI=/^\/\/\/\s*<(\S+)\s.*?\/>/im,gI=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function GO(e){const t=new Map,n=new Map;return w(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function XO(){return EO||(EO=GO(gO))}function YO(e){return QO(e,MS)}function QO(e,t){const n=Ze(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(Ra.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function ZO(e,t,n){return sL(e,h(t||""),n)}function eM(e,t="",n){if(fn(t=h(t),"-"))return;if("listOrElement"===e.type&&!nn(t,","))return aL(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return te(r,(t=>aL(e.element,parseInt(t),n)));case"string":return te(r,(t=>aL(e.element,t||"",n)));case"boolean":case"object":return Fn.fail(`List of ${e.element.type} is not yet supported.`);default:return te(r,(t=>ZO(e.element,t,n)))}}function tM(e){return e.name}function nM(e,t,n,r,i){var o;if(null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return iL(i,r,t.alternateMode.diagnostic,e);const a=Yt(e,t.optionDeclarations,tM);return a?iL(i,r,t.unknownDidYouMeanDiagnostic,n||e,a.name):iL(i,r,t.unknownOptionDiagnostic,n||e)}function rM(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;nxo.readFile(e)));if(!yt(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function iM(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=aL(r,!1,o),t++):("true"===n&&t++,o.push(MS(Ra.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(MS(Ra.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!fn(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(MS(n.optionTypeMismatchDiagnostic,r.name,TM(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=aL(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=aL(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=aL(r,e[t]||"",o),t++;break;case"list":const a=eM(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":Fn.fail("listOrElement not supported here");break;default:i[r.name]=ZO(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}function oM(e,t){return rM(AO,e,t)}function aM(e,t){return sM(XO,e,t)}function sM(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function cM(){return PO||(PO=GO(CO))}function lM(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=rM(IO,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(MS(Ra.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(MS(Ra.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(MS(Ra.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(MS(Ra.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function uM(e,...t){const n=MS.apply(void 0,arguments);return n.messageText}function _M(e,t,n,r,i,o){const a=mM(e,(e=>n.readFile(e)));if(!yt(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=WI(e,a),c=n.getCurrentDirectory();return s.path=va(e,c,ln(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,BM(s,n,ga(oa(e),c),t,ga(e,c),void 0,o,r,i)}function dM(e,t){const n=mM(e,t);return yt(n)?fM(e,n):{config:{},error:n}}function fM(e,t){const n=WI(e,t);return{config:xM(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function pM(e,t){const n=mM(e,t);return yt(n)?WI(e,n):{fileName:e,parseDiagnostics:[n]}}function mM(e,t){let n;try{n=t(e)}catch(t){return MS(Ra.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?MS(Ra.Cannot_read_file_0,e):n}function gM(e){return nt(e,tM)}function hM(){return MO||(MO=GO(_O))}function yM(){return RO||(RO=gM(gO))}function vM(){return jO||(jO=gM(_O))}function bM(){return BO||(BO=gM(wO))}function xM(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&210!==i.kind){if(t.push(Hp(e,i,Ra.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===aa(e.fileName)?"jsconfig.json":"tsconfig.json")),XD(i)){const r=O(i.elements,YD);if(r)return kM(e,r,t,!0,n)}return{}}return kM(e,i,t,!0,n)}function SM(e,t){var n;return kM(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function kM(e,t,n,r,i){return t?function t(a,s){switch(a.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return o(a)||n.push(Hp(e,a,Ra.String_literal_with_double_quotes_expected)),a.text;case 9:return Number(a.text);case 224:if(41!==a.operator||9!==a.operand.kind)break;return-Number(a.operand.text);case 210:return function(a,s){var c;const l=r?{}:void 0;for(const u of a.properties){if(303!==u.kind){n.push(Hp(e,u,Ra.Property_assignment_expected));continue}u.questionToken&&n.push(Hp(e,u.questionToken,Ra.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),o(u.name)||n.push(Hp(e,u.name,Ra.String_literal_with_double_quotes_expected));const a=$p(u.name)?void 0:Kp(u.name),_=a&&Fc(a),d=_?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(_):void 0,f=t(u.initializer,d);void 0!==_&&(r&&(l[_]=f),null==i||i.onPropertySet(_,f,u,s,d))}return l}(a,s);case 209:return function(e,n){if(r)return V(e.map((e=>t(e,n))),(e=>void 0!==e));e.forEach((e=>t(e,n)))}(a.elements,s&&s.element)}s?n.push(Hp(e,a,Ra.Compiler_option_0_requires_a_value_of_type_1,s.name,TM(s))):n.push(Hp(e,a,Ra.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t){return NE(t)&&Vg(t,e)}}function TM(e){return"listOrElement"===e.type?`${TM(e.element)} or Array`:"list"===e.type?"Array":yt(e.type)?e.type:"string"}function CM(e,t){return!!e&&(zM(t)?!e.disallowNullOrUndefined:"list"===e.type?gt(t):"listOrElement"===e.type?gt(t)||CM(e.element,t):typeof t===(yt(e.type)?e.type:"string"))}function wM(e,t,n){var r,i,o;const a=ln(n.useCaseSensitiveFileNames),s=q(V(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return Tt;const i=jk(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&Bk(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&Bk(i.includeFilePattern,r.useCaseSensitiveFileNames);return a?o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e):o?e=>o.test(e):Tt}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):Tt),(e=>Ia(ga(t,n.getCurrentDirectory()),ga(e,n.getCurrentDirectory()),a))),c=PM(e.options,{configFilePath:ga(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),l=e.watchOptions&&FM(e.watchOptions,hM());return{compilerOptions:{...EM(c),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:l&&EM(l),references:q(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:C(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:DM(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0}}function EM(e){return{...Ze(e.entries()).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{})}}function DM(e){if(C(e)){if(1!==C(e))return e;if(e[0]!==UO)return e}}function NM(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return NM(e.element);default:return e.type}}function AM(e,t){return mf(t,((t,n)=>{if(t===e)return n}))}function PM(e,t){return FM(e,XO(),t)}function FM(e,{optionsNameMap:t},n){const r=new Map,i=n&&ln(n.useCaseSensitiveFileNames);for(const o in e)if(We(e,o)){if(t.has(o)&&(t.get(o).category===Ra.Command_line_Options||t.get(o).category===Ra.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){Fn.assert("listOrElement"!==s.type);const e=NM(s);e?"list"===s.type?r.set(o,a.map((t=>AM(t,e)))):r.set(o,AM(a,e)):n&&s.isFilePath?r.set(o,Ia(n.configFilePath,ga(a,oa(n.configFilePath)),i)):r.set(o,a)}}return r}function IM(e,t){const n=OM(e);return function(){const e=[],r=(2,Array(3).join(" "));return mO.forEach((t=>{if(!n.has(t.name))return;const i=n.get(t.name),o=SL(t);i!==o?e.push(`${r}${t.name}: ${i}`):We(NO,t.name)&&e.push(`${r}${t.name}: ${o}`)})),e.join(t)+t}()}function OM(e){return PM(ct(e,NO))}function MM(e,t,n){const r=OM(e);return function(){const e=new Map;e.set(Ra.Projects,[]),e.set(Ra.Language_and_Environment,[]),e.set(Ra.Modules,[]),e.set(Ra.JavaScript_Support,[]),e.set(Ra.Emit,[]),e.set(Ra.Interop_Constraints,[]),e.set(Ra.Type_Checking,[]),e.set(Ra.Completeness,[]);for(const t of gO)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${DS(t)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(SL(t))},`,c.push({value:e,description:`/* ${t.description&&DS(t.description)||t.name} */`}),a=Math.max(e.length,a)}}));const l=i(2),u=[];u.push("{"),u.push(`${l}"compilerOptions": {`),u.push(`${l}${l}/* ${DS(Ra.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),u.push("");for(const e of c){const{value:t,description:n=""}=e;u.push(t&&`${l}${l}${t}${n&&i(a-t.length+2)+n}`)}if(t.length){u.push(`${l}},`),u.push(`${l}"files": [`);for(let e=0;e"object"==typeof e),"object"),n=h(y("files"));if(n){const r="no-prop"===e||gt(e)&&0===e.length,i=We(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=Ra.The_files_list_in_config_file_0_is_empty,r=Wm(t,"files",(e=>e.initializer)),i=iL(t,r,n,e);u.push(i)}else b(Ra.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c=!1,l=h(i);if("no-prop"===i&&d.compilerOptions){const e=d.compilerOptions.outDir,t=d.compilerOptions.declarationDir;(e||t)&&(l=[e,t].filter((e=>!!e)))}return void 0===n&&void 0===r&&(r=[UO],c=!0),r&&(o=pL(r,u,!0,t,"include")),l&&(s=pL(l,u,!1,t,"exclude")),{filesSpecs:n,includeSpecs:r,excludeSpecs:l,validatedFilesSpec:V(n,yt),validatedIncludeSpecs:o,validatedExcludeSpecs:s,pathPatterns:void 0,isDefaultIncludeSpec:c}}();t&&(t.configFileSpecs=m),JM(f,t);const g=ha(a?$M(a,r):r);return{options:f,watchOptions:p,fileNames:function(e){const t=lL(m,e,f,n,c);return UM(t,qM(d),s)&&u.push(KM(m,a)),t}(g),projectReferences:function(e){let t;const n=v("references",(e=>"object"==typeof e),"object");if(gt(n))for(const r of n)"string"!=typeof r.path?b(Ra.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:ga(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(g),typeAcquisition:_.typeAcquisition||tL(),raw:d,errors:u,wildcardDirectories:gL(m,g,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return gt(e)?e:void 0}function y(e){return v(e,yt,"string")}function v(e,n,r){if(We(d,e)&&!zM(d[e])){if(gt(d[e])){const i=d[e];return t||I(i,n)||u.push(MS(Ra.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return b(Ra.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function b(e,...n){t||u.push(MS(e,...n))}}function KM({includeSpecs:e,excludeSpecs:t},n){return MS(Ra.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function UM(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function qM(e){return!We(e,"files")&&!We(e,"references")}function WM(e,t,n,r,i){const o=r.length;return UM(e,i)?r.push(KM(n,t)):K(r,(e=>!function(e){return e.code===Ra.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function HM(e,t,n,r,i,o,a,s){var c;const l=ga(i||"",r=_a(r));if(o.indexOf(l)>=0)return a.push(MS(Ra.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||SM(t,a)};const u=e?function(e,t,n,r,i){We(e,"excludes")&&i.push(MS(Ra.Unknown_option_excludes_Did_you_mean_exclude));const o=eL(e.compilerOptions,n,i,r),a=nL(e.typeAcquisition,n,i,r),s=function(e,t,n){return rL(vM(),e,t,void 0,LO,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!We(e,oO.name))return!1;const r=oL(oO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:e.extends||""===e.extends?GM(e.extends,t,n,r,i):void 0}}(e,n,r,i,a):function(e,t,n,r,i){const o=ZM(r);let a,s,c,l;const u=(void 0===KO&&(KO={name:void 0,type:"object",elementOptions:gM([zO,$O,VO,JO,{name:"references",type:"list",element:{name:"references",type:"object"},category:Ra.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:Ra.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:Ra.File_Management,defaultValueDescription:Ra.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:Ra.File_Management,defaultValueDescription:Ra.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},oO])}),KO),_=xM(e,i,{rootOptions:u,onPropertySet:function(_,d,f,p,m){if(m&&m!==JO&&(d=oL(m,d,n,i,f,f.initializer,e)),null==p?void 0:p.name)if(m){let e;p===zO?e=o:p===$O?e=s??(s={}):p===VO?e=a??(a=tL(r)):Fn.fail("Unknown option"),e[m.name]=d}else _&&(null==p?void 0:p.extraKeyDiagnostics)&&(p.elementOptions?i.push(nM(_,p.extraKeyDiagnostics,void 0,f.name,e)):i.push(Hp(e,f.name,p.extraKeyDiagnostics.unknownOptionDiagnostic,_)));else p===u&&(m===JO?c=GM(d,t,n,r,i,f,f.initializer,e):m||("excludes"===_&&i.push(Hp(e,f.name,Ra.Unknown_option_excludes_Did_you_mean_exclude)),O(mO,(e=>e.name===_))&&(l=ke(l,f.name))))}});return a||(a=tL(r)),l&&_&&void 0===_.compilerOptions&&i.push(Hp(e,l[0],Ra._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Kp(l[0]))),{raw:_,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(t,n,r,i,a);if((null==(c=u.options)?void 0:c.paths)&&(u.options.pathsBasePath=r),u.extendedConfigPath){o=o.concat([l]);const e={options:{}};yt(u.extendedConfigPath)?_(e,u.extendedConfigPath):u.extendedConfigPath.forEach((t=>_(e,t))),!u.raw.include&&e.include&&(u.raw.include=e.include),!u.raw.exclude&&e.exclude&&(u.raw.exclude=e.exclude),!u.raw.files&&e.files&&(u.raw.files=e.files),void 0===u.raw.compileOnSave&&e.compileOnSave&&(u.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=Ze(e.extendedSourceFiles.keys())),u.options=et(e.options,u.options),u.watchOptions=u.watchOptions&&e.watchOptions?et(e.watchOptions,u.watchOptions):u.watchOptions||e.watchOptions}return u;function _(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:Dt(t);let c,l,u;if(o&&(c=o.get(s))?({extendedResult:l,extendedConfig:u}=c):(l=pM(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(u=HM(void 0,l,n,oa(t),aa(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:u})),e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(!l.parseDiagnostics.length)return u;i.push(...l.parseDiagnostics)}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{t[a]&&(e[a]=q(t[a],(e=>Wo(e)?e:fa(o||(o=Fa(oa(i),r,ln(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),et(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?et({},e.watchOptions,c.watchOptions):e.watchOptions||c.watchOptions}}}function GM(e,t,n,r,i,o,a,s){let c;const l=r?$M(r,n):n;if(yt(e))c=XM(e,t,l,i,a,s);else if(gt(e)){c=[];for(let r=0;riL(i,r,e,...t))))}function cL(e,t,n,r,i,o,a){return V(q(t,((t,s)=>oL(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}function lL(e,t,n,r,i=a){t=ha(t);const o=ln(r.useCaseSensitiveFileNames),s=new Map,c=new Map,l=new Map,{validatedFilesSpec:u,validatedIncludeSpecs:_,validatedExcludeSpecs:d}=e,f=Uk(n,i),p=qk(n,f);if(u)for(const e of u){const n=ga(e,t);s.set(o(n),n)}let m;if(_&&_.length>0)for(const e of r.readDirectory(t,G(p),d,_,void 0)){if(Zo(e,".json")){if(!m){const e=q(Ik(_.filter((e=>Zt(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>Bk(e,r.useCaseSensitiveFileNames))):a}if(-1!==L(m,(t=>t.test(e)))){const t=o(e);s.has(t)||l.has(t)||l.set(t,e)}continue}if(yL(e,s,c,f,o))continue;vL(e,c,f,o);const n=o(e);s.has(n)||c.has(n)||c.set(n,e)}const g=Ze(s.values()),h=Ze(c.values());return g.concat(h,Ze(l.values()))}function uL(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!C(a)||!C(s))return!1;n=ha(n);const c=ln(r);if(o)for(const t of o)if(c(ga(t,n))===e)return!1;return fL(e,s,r,i,n)}function _L(e){const t=fn(e,"**/")?0:e.indexOf("/**/");return-1!==t&&(Zt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function dL(e,t,n,r){return fL(e,V(t,(e=>!_L(e))),n,r)}function fL(e,t,n,r,i){const o=Fk(t,fa(ha(r),i),"exclude"),a=o&&Bk(o,n);return!!a&&(!!a.test(e)||!Qo(e)&&a.test(xa(e)))}function pL(e,t,n,r,i){return e.filter((e=>{if(!yt(e))return!1;const o=mL(e,n);return void 0!==o&&t.push(function(e,t){const n=qm(r,i,t);return iL(r,n,e,t)}(...o)),void 0===o}))}function mL(e,t){return Fn.assert("string"==typeof e),t&&qO.test(e)?[Ra.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:_L(e)?[Ra.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function gL({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=Fk(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={};if(void 0!==e){const t=[];for(const i of e){const e=ha(fa(n,i));if(o&&o.test(e))continue;const s=hL(e,r);if(s){const{key:e,flags:n}=s,r=a[e];(void 0===r||rea(e,t)?t:void 0));if(!o)return!1;for(const r of o){if(Zo(e,r))return!1;const o=i(rT(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&(Zo(e,".js")||Zo(e,".jsx")))continue;return!0}}return!1}function vL(e,t,n,r){const i=w(n,(t=>ea(e,t)?t:void 0));if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if(Zo(e,o))return;const a=r(rT(e,o));t.delete(a)}}function bL(e){const t={};for(const n in e)if(We(e,n)){const r=aM(n);void 0!==r&&(t[n]=xL(e[n],r))}return t}function xL(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!gt(e))return xL(e,t.element);case"list":const n=t.element;return gt(e)?te(e,(e=>xL(e,n))):"";default:return mf(t.type,((t,n)=>{if(t===e)return n}))}}function SL(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"==typeof t?t:""}`:"";case"list":return[];case"listOrElement":return SL(e.element);case"object":return{};default:const n=Me(e.type.keys());return void 0!==n?n:Fn.fail("Expected 'option.type' to have entries.")}}var kL,TL,CL,wL,EL,DL=S({"src/compiler/commandLineParser.ts"(){gH(),oO={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},aO=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),sO=new Map(W(aO.entries(),(([e,t])=>[""+t,e]))),lO=(cO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]]).map((e=>e[0])),uO=new Map(cO),_O=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:Ra.Watch_and_Build_Modes,description:Ra.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:Ra.Watch_and_Build_Modes,description:Ra.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:Ra.Watch_and_Build_Modes,description:Ra.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:Ra.Watch_and_Build_Modes,description:Ra.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:mL},category:Ra.Watch_and_Build_Modes,description:Ra.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:mL},category:Ra.Watch_and_Build_Modes,description:Ra.Remove_a_list_of_files_from_the_watch_mode_s_processing}],dO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Ra.Command_line_Options,description:Ra.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:Ra.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Ra.Command_line_Options,description:Ra.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:Ra.Output_Formatting,description:Ra.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:Ra.Compiler_Diagnostics,description:Ra.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:Ra.Compiler_Diagnostics,description:Ra.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:Ra.Compiler_Diagnostics,description:Ra.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:Ra.Output_Formatting,description:Ra.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:Ra.Compiler_Diagnostics,description:Ra.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:Ra.Compiler_Diagnostics,description:Ra.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:Ra.Compiler_Diagnostics,description:Ra.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:Ra.FILE_OR_DIRECTORY,category:Ra.Compiler_Diagnostics,description:Ra.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:Ra.DIRECTORY,category:Ra.Compiler_Diagnostics,description:Ra.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:Ra.Projects,description:Ra.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:Ra.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ra.Emit,transpileOptionValue:void 0,description:Ra.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:Ra.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ra.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:Ra.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ra.Emit,description:Ra.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ra.Emit,defaultValueDescription:!1,description:Ra.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Watch_and_Build_Modes,description:Ra.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:Ra.Command_line_Options,isCommandLineOnly:!0,description:Ra.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:Ra.Platform_specific}],fO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Ra.VERSION,showInSimplifiedHelpView:!0,category:Ra.Language_and_Environment,description:Ra.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},pO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Ra.KIND,showInSimplifiedHelpView:!0,category:Ra.Modules,description:Ra.Specify_what_module_code_is_generated,defaultValueDescription:void 0},mO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:Ra.Command_line_Options,description:Ra.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:Ra.Command_line_Options,description:Ra.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:Ra.Command_line_Options,description:Ra.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:Ra.Command_line_Options,paramType:Ra.FILE_OR_DIRECTORY,description:Ra.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:Ra.Command_line_Options,description:Ra.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:Ra.Command_line_Options,isCommandLineOnly:!0,description:Ra.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:Ra.Command_line_Options,isCommandLineOnly:!0,description:Ra.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},fO,pO,{name:"lib",type:"list",element:{name:"lib",type:uO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Ra.Language_and_Environment,description:Ra.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:Ra.JavaScript_Support,description:Ra.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:Ra.JavaScript_Support,description:Ra.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:aO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,paramType:Ra.KIND,showInSimplifiedHelpView:!0,category:Ra.Language_and_Environment,description:Ra.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Ra.FILE,showInSimplifiedHelpView:!0,category:Ra.Emit,description:Ra.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Ra.DIRECTORY,showInSimplifiedHelpView:!0,category:Ra.Emit,description:Ra.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Ra.LOCATION,category:Ra.Modules,description:Ra.Specify_the_root_folder_within_your_source_files,defaultValueDescription:Ra.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:Ra.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:Ra.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:Ra.FILE,category:Ra.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:Ra.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ra.Emit,defaultValueDescription:!1,description:Ra.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:Ra.Emit,description:Ra.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:Ra.Interop_Constraints,description:Ra.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:Ra.Interop_Constraints,description:Ra.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ra.Type_Checking,description:Ra.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ra.Type_Checking,description:Ra.Ensure_use_strict_is_always_emitted,defaultValueDescription:Ra.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:Ra.Type_Checking,description:Ra.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsModuleResolution:!0,paramType:Ra.STRATEGY,category:Ra.Modules,description:Ra.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:Ra.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:Ra.Modules,description:Ra.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:Ra.Modules,description:Ra.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Ra.Modules,description:Ra.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:Ra.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Ra.Modules,description:Ra.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Ra.Modules,description:Ra.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Interop_Constraints,description:Ra.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:Ra.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ra.Interop_Constraints,description:Ra.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:Ra.Interop_Constraints,description:Ra.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Modules,description:Ra.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:Ra.Modules,description:Ra.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Modules,description:Ra.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:Ra.Modules,description:Ra.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:Ra.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:Ra.Modules,description:Ra.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:Ra.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:Ra.Modules,description:Ra.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Ra.LOCATION,category:Ra.Emit,description:Ra.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Ra.LOCATION,category:Ra.Emit,description:Ra.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Language_and_Environment,description:Ra.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Language_and_Environment,description:Ra.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:Ra.Language_and_Environment,description:Ra.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:Ra.Language_and_Environment,description:Ra.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:Ra.Language_and_Environment,description:Ra.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:Ra.Modules,description:Ra.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:Ra.Modules,description:Ra.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:Ra.Backwards_Compatibility,paramType:Ra.FILE,transpileOptionValue:void 0,description:Ra.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Language_and_Environment,description:Ra.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:Ra.Completeness,description:Ra.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:Ra.Backwards_Compatibility,description:Ra.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:Ra.NEWLINE,category:Ra.Emit,description:Ra.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Output_Formatting,description:Ra.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:Ra.Language_and_Environment,affectsProgramStructure:!0,description:Ra.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:Ra.Modules,description:Ra.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:Ra.Editor_Support,description:Ra.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:Ra.Projects,description:Ra.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:Ra.Projects,description:Ra.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:Ra.Projects,description:Ra.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Backwards_Compatibility,description:Ra.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,transpileOptionValue:void 0,description:Ra.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Ra.DIRECTORY,category:Ra.Emit,transpileOptionValue:void 0,description:Ra.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:Ra.Completeness,description:Ra.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Type_Checking,description:Ra.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Backwards_Compatibility,description:Ra.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Backwards_Compatibility,description:Ra.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:Ra.Interop_Constraints,description:Ra.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:Ra.JavaScript_Support,description:Ra.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ra.Backwards_Compatibility,description:Ra.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Language_and_Environment,description:Ra.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:Ra.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ra.Emit,description:Ra.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:Ra.Backwards_Compatibility,description:Ra.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:Ra.Specify_a_list_of_language_service_plugins_to_include,category:Ra.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsModuleResolution:!0,description:Ra.Control_what_method_is_used_to_detect_module_format_JS_files,category:Ra.Language_and_Environment,defaultValueDescription:Ra.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],gO=[...dO,...mO],hO=gO.filter((e=>!!e.affectsSemanticDiagnostics)),yO=gO.filter((e=>!!e.affectsEmit)),vO=gO.filter((e=>!!e.affectsDeclarationPath)),bO=gO.filter((e=>!!e.affectsModuleResolution)),xO=gO.filter((e=>!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics)),SO=gO.filter((e=>!!e.affectsProgramStructure)),kO=gO.filter((e=>We(e,"transpileOptionValue"))),TO=[{name:"verbose",shortName:"v",category:Ra.Command_line_Options,description:Ra.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:Ra.Command_line_Options,description:Ra.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:Ra.Command_line_Options,description:Ra.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:Ra.Command_line_Options,description:Ra.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],CO=[...dO,...TO],wO=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],DO={diagnostic:Ra.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:cM},NO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},AO={alternateMode:DO,getOptionsNameMap:XO,optionDeclarations:gO,unknownOptionDiagnostic:Ra.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:Ra.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Ra.Compiler_option_0_expects_an_argument},FO={diagnostic:Ra.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:XO},IO={alternateMode:FO,getOptionsNameMap:cM,optionDeclarations:CO,unknownOptionDiagnostic:Ra.Unknown_build_option_0,unknownDidYouMeanDiagnostic:Ra.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Ra.Build_option_0_requires_a_value_of_type_1},OO={optionDeclarations:wO,unknownOptionDiagnostic:Ra.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:Ra.Unknown_type_acquisition_option_0_Did_you_mean_1},LO={getOptionsNameMap:hM,optionDeclarations:_O,unknownOptionDiagnostic:Ra.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:Ra.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Ra.Watch_option_0_requires_a_value_of_type_1},JO={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:Ra.File_Management,disallowNullOrUndefined:!0},zO={name:"compilerOptions",type:"object",elementOptions:yM(),extraKeyDiagnostics:AO},$O={name:"watchOptions",type:"object",elementOptions:vM(),extraKeyDiagnostics:LO},VO={name:"typeAcquisition",type:"object",elementOptions:bM(),extraKeyDiagnostics:OO},UO="**/*",qO=/(^|\/)\*\*\/?$/,WO=/^[^*?]*(?=\/[^/]*[*?])/}});function NL(e){e.trace(OS.apply(void 0,arguments))}function AL(e,t){return!!e.traceResolution&&void 0!==t.trace}function PL(e,t){let n;if(t&&e){const r=e.contents.packageJsonContent;"string"==typeof r.name&&"string"==typeof r.version&&(n={name:r.name,subModuleName:t.path.slice(e.packageDirectory.length+Bo.length),version:r.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function FL(e){return PL(void 0,e)}function IL(e){if(e)return Fn.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function OL(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function ML(e){if(e)return Fn.assert(sT(e.extension)),{fileName:e.path,packageId:e.packageId}}function LL(e,t,n,r,i,o,a,s){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Gs(e)){const{resolvedFileName:e,originalPath:n}=KL(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return RL(t,n,r,i,o,a.resultFromCache,s)}function RL(e,t,n,r,i,o,a){return o?(o.failedLookupLocations=BL(o.failedLookupLocations,n),o.affectingLocations=BL(o.affectingLocations,r),o.resolutionDiagnostics=BL(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:jL(n),affectingLocations:jL(r),resolutionDiagnostics:jL(i),node10Result:a}}function jL(e){return e.length?e:void 0}function BL(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function JL(e,t,n,r){if(!We(e,t))return void(r.traceEnabled&&NL(r.host,Ra.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&NL(r.host,Ra.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function zL(e,t,n,r){const i=JL(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&NL(r.host,Ra.package_json_had_a_falsy_0_field,t));const o=ha(fa(n,i));return r.traceEnabled&&NL(r.host,Ra.package_json_has_0_field_1_that_references_2,t,i,o),o}function $L(e){kL||(kL=new Jn(t));for(const t in e){if(!We(e,t))continue;const n=zn.tryParse(t);if(void 0!==n&&n.test(kL))return{version:t,paths:e[t]}}}function VL(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=oa(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return Ma(ha(e),(e=>{const n=fa(e,TL);(t??(t=[])).push(n)})),t}(n):void 0}function KL(e,t,n){const r=function(e,t,n){if(!t.realpath)return e;const r=ha(t.realpath(e));return n&&NL(t,Ra.Resolving_real_path_for_0_result_1,e,r),Fn.assert(t.fileExists(r),`${e} linked to nonexistent file ${r}`),r}(e,t,n),i=function(e,t,n){return 0===Ea(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function UL(e,t,n){return fa(e,Zt(e,"/node_modules/@types")||Zt(e,"/node_modules/@types/")?QR(t,n):t)}function qL(e,t,n,r,i,o,a){Fn.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=AL(n,r);i&&(n=i.commandLine.options);const c=t?oa(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||Gs(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(NL(r,Ra.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&NL(r,Ra.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),NL(r,Ra.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),b(l)),l;const u=VL(n,r);s&&(void 0===t?void 0===u?NL(r,Ra.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):NL(r,Ra.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,u):void 0===u?NL(r,Ra.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):NL(r,Ra.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,u),i&&NL(r,Ra.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const _=[],d=[];let f=WL(n);99!==a||3!==YS(n)&&99!==YS(n)||(f|=32);const p=8&f?HL(n,!!(32&f)):[],m=[],g={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:_,affectingLocations:d,packageJsonInfoCache:o,features:f,conditions:p,requestContainingDirectory:c,reportDiagnostic:e=>{m.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let h,y=function(){if(u&&u.length)return s&&NL(r,Ra.Resolving_with_primary_search_path_0,u.join(", ")),D(u,(t=>{const i=UL(t,e,g),o=gx(t,r);if(!o&&s&&NL(r,Ra.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=CR(4,i,!o,g);if(e){const t=SR(e.path);return ML(PL(t?RR(t,!1,g):void 0,e))}}return ML(PR(4,i,!o,g))}));s&&NL(r,Ra.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),v=!0;if(y||(y=function(){const i=t&&oa(t);if(void 0!==i){let o;if(n.typeRoots&&Zt(t,WV))s&&NL(r,Ra.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&NL(r,Ra.Looking_up_in_node_modules_folder_initial_location_0,i),Gs(e)){const{path:t}=vR(i,e);o=bR(4,t,!1,g,!0)}else{const t=WR(4,e,i,g,void 0,void 0);o=t&&t.value}return ML(o)}s&&NL(r,Ra.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),v=!1),y){const{fileName:e,packageId:t}=y;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=KL(e,r,s)),h={primary:v,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:xR(e)}}return l={resolvedTypeReferenceDirective:h,failedLookupLocations:jL(_),affectingLocations:jL(d),resolutionDiagnostics:jL(m)},c&&(null==o||o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Gs(e)||null==o||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&b(l),l;function b(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?NL(r,Ra.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,Df(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):NL(r,Ra.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):NL(r,Ra.Type_reference_directive_0_was_not_resolved,e)}}function WL(e){let t=0;switch(YS(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function HL(e,t){const n=t||100===YS(e)?["import"]:["require"];return e.noDtsResolution||n.push("types"),100!==YS(e)&&n.push("node"),_e(n,e.customConditions)}function GL(e,t,n,r,i){const o=OR(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return Ma(t,(t=>{if("node_modules"!==aa(t)){const n=fa(t,"node_modules");return RR(fa(n,e),!1,o)}}))}function XL(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=VL(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=ha(r),o=fa(e,i,"package.json");if(!t.fileExists(o)||null!==mx(o,t).typings){const e=aa(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function YL(e){var t;if(null===e||"object"!=typeof e)return""+e;if(gt(e))return`[${null==(t=e.map((e=>YL(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)We(e,t)&&(n+=`${t}: ${YL(e[t])}`);return n+"}"}function QL(e,t){return t.map((t=>YL(Sk(e,t)))).join("|")+`|${e.pathsBasePath}`}function ZL(e){const t=new Map,n=new Map,r=new Map;let i=new Map;return e&&t.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(n){e!==n&&(e?i=o(n,!0):t.set(n,i),e=n)},clear:function(){const o=e&&n.get(e);i.clear(),t.clear(),n.clear(),r.clear(),e&&(o&&n.set(e,o),t.set(e,i))}};function o(n,o){let s=t.get(n);if(s)return s;const c=a(n);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&t.set(n,s),s}function a(e){let t=n.get(e);return t||n.set(e,t=QL(e,bO)),t}}function eR(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function tR(e,t){return void 0===t?e:`${t}|${e}`}function nR(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=tR(e,n);return t.set(r,[e,n]),r}}function rR(e,t,n,r){Fn.assert(t.length===n.length);const i=nR();for(let o=0;onR()))},clear:function(){r.clear()},update:function(e){r.update(e)}}}(e,t,n),a=function(e,t,n,r){const i=ZL(n);return{getFromNonRelativeNameCache:function(e,t,n,r){var o,a;return Fn.assert(!Gs(e)),null==(a=null==(o=i.getMapOfCacheRedirects(r))?void 0:o.get(tR(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return Fn.assert(!Gs(e)),eR(i,n,tR(e,t),o)},clear:function(){i.clear()},update:function(e){i.update(e)}};function o(){const n=new Map;return{get:function(r){return n.get(va(r,e,t))},set:function(i,o){const a=va(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=va(oa(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;or,clearAllExceptPackageJsonInfoCache:s};function s(){o.clear(),a.clear()}}function sR(e,t,n,r){const i=aR(e,t,n,r,iR);return i.getOrCreateCacheForModuleName=(e,t,n)=>i.getOrCreateCacheForNonRelativeName(e,t,n),i}function cR(e,t,n,r){return aR(e,t,n,r,oR)}function lR(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function uR(e,t,n,r,i){return dR(e,t,lR(n),r,i)}function _R(e,t,n,r){const i=oa(t);return n.getFromDirectoryCache(e,r,i,void 0)}function dR(e,t,n,r,i,o,a){var s,c,l;const u=AL(n,r);o&&(n=o.commandLine.options),u&&(NL(r,Ra.Resolving_module_0_from_1,e,t),o&&NL(r,Ra.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const _=oa(t);let d=null==i?void 0:i.getFromDirectoryCache(e,a,_,o);if(d)u&&NL(r,Ra.Resolution_for_module_0_was_found_in_cache_from_location_1,e,_);else{let f=n.moduleResolution;if(void 0===f){switch(GS(n)){case 1:f=2;break;case 100:f=3;break;case 199:f=99;break;default:f=1}u&&NL(r,Ra.Module_resolution_kind_is_not_specified_using_0,Mi[f])}else u&&NL(r,Ra.Explicitly_specified_module_resolution_kind_Colon_0,Mi[f]);switch(null==(s=fr)||s.logStartResolveModule(e),f){case 3:case 99:d=function(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s){const c=oa(n),l=99===s?32:0;let u=r.noDtsResolution?3:7;return _k(r)&&(u|=8),yR(e|l,t,c,r,i,o,u,!1,a)}(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:d=gR(e,t,n,r,i,o);break;case 1:d=ij(e,t,n,r,i,o);break;case 100:d=mR(e,t,n,r,i,o);break;default:return Fn.fail(`Unexpected moduleResolution: ${f}`)}d&&d.resolvedModule&&(null==(c=fr)||c.logInfoEvent(`Module "${e}" resolved to "${d.resolvedModule.resolvedFileName}"`)),null==(l=fr)||l.logStopResolveModule(d&&d.resolvedModule?""+d.resolvedModule.resolvedFileName:"null"),null==i||i.getOrCreateCacheForDirectory(_,o).set(e,a,d),Gs(e)||null==i||i.getOrCreateCacheForNonRelativeName(e,a,o).set(_,d)}return u&&(d.resolvedModule?d.resolvedModule.packageId?NL(r,Ra.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,d.resolvedModule.resolvedFileName,Df(d.resolvedModule.packageId)):NL(r,Ra.Module_name_0_was_successfully_resolved_to_1,e,d.resolvedModule.resolvedFileName):NL(r,Ra.Module_name_0_was_not_resolved,e)),d}function fR(e,t,n,r,i){const o=function(e,t,n,r){var i;const{baseUrl:o,paths:a,configFile:s}=r.compilerOptions;if(a&&!Xo(t))return r.traceEnabled&&(o&&NL(r.host,Ra.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),NL(r.host,Ra.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),YR(e,t,Rv(r.compilerOptions,r.host),a,(null==s?void 0:s.configFileSpecs)?(i=s.configFileSpecs).pathPatterns||(i.pathPatterns=oT(a)):void 0,n,!1,r)}(e,t,r,i);return o?o.value:Gs(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&NL(i.host,Ra.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=ha(fa(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=ha(e);Zt(t,Bo)||(t+=Bo);const n=fn(o,t)&&(void 0===s||s.length{h.push(e)},isConfigLookup:s,candidateIsFromPackageJsonField:!1};let v,b;if(f&&sk(YS(r))&&NL(i,Ra.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",g.map((e=>`'${e}'`)).join(", ")),2===YS(r)){const e=5&a,t=-6&a;v=e&&x(e,y)||t&&x(t,y)||void 0}else v=x(a,y);if((null==(l=null==v?void 0:v.value)?void 0:l.isExternalLibraryImport)&&!s&&5&a&&8&e&&!Gs(t)&&!BR(5,v.value.resolved.extension)&&g.indexOf("import")>-1){lj(y,Ra.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=x(5&a,{...y,features:-9&y.features,reportDiagnostic:St});(null==(u=null==e?void 0:e.value)?void 0:u.isExternalLibraryImport)&&(b=e.value.resolved.path)}return LL(t,null==(_=null==v?void 0:v.value)?void 0:_.resolved,null==(d=null==v?void 0:v.value)?void 0:d.isExternalLibraryImport,p,m,h,y,b);function x(r,a){const s=fR(r,t,n,((e,t,n,r)=>bR(e,t,n,r,!0)),a);if(s)return cj({resolved:s,isExternalLibraryImport:xR(s.path)});if(Gs(t)){const{path:e,parts:i}=vR(n,t),o=bR(r,e,!1,a,!0);return o&&cj({resolved:o,isExternalLibraryImport:B(i,"node_modules")})}{let s;if(2&e&&fn(t,"#")&&(s=function(e,t,n,r,i,o){var a,s;if("#"===t||fn(t,"#/"))return r.traceEnabled&&NL(r.host,Ra.Invalid_import_specifier_0_has_no_possible_resolutions,t),cj(void 0);const c=ga(fa(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=MR(c,r);if(!l)return r.traceEnabled&&NL(r.host,Ra.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),cj(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&NL(r.host,Ra.package_json_scope_0_has_no_imports_defined,l.packageDirectory),cj(void 0);const u=KR(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);return u||(r.traceEnabled&&NL(r.host,Ra.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory),cj(void 0))}(r,t,n,a,o,c)),!s&&4&e&&(s=function(e,t,n,r,i,o){var a,s;const c=MR(ga(fa(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),r);if(!c||!c.contents.packageJsonContent.exports)return;if("string"!=typeof c.contents.packageJsonContent.name)return;const l=la(t),u=la(c.contents.packageJsonContent.name);if(!I(u,((e,t)=>l[t]===e)))return;const _=l.slice(u.length),d=C(_)?`.${Bo}${_.join(Bo)}`:".";if(gk(r.compilerOptions)&&!xR(n))return $R(c,e,d,r,i,o);const f=-6&e;return $R(c,5&e,d,r,i,o)||$R(c,f,d,r,i,o)}(r,t,n,a,o,c)),!s){if(t.indexOf(":")>-1)return void(f&&NL(i,Ra.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,OL(r)));f&&NL(i,Ra.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,OL(r)),s=WR(r,t,n,a,o,c)}return 4&r&&(s??(s=oj(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function vR(e,t){const n=fa(e,t),r=la(n),i=je(r);return{path:"."===i||".."===i?xa(ha(n)):ha(n),parts:r}}function bR(e,t,n,r,i){if(r.traceEnabled&&NL(r.host,Ra.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,OL(e)),!ta(t)){if(!n){const e=oa(t);gx(e,r.host)||(r.traceEnabled&&NL(r.host,Ra.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=CR(e,t,n,r);if(o){const e=i?SR(o.path):void 0;return PL(e?RR(e,!1,r):void 0,o)}}if(n||gx(t,r.host)||(r.traceEnabled&&NL(r.host,Ra.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(32&r.features))return PR(e,t,n,r,i)}function xR(e){return nn(e,wL)}function SR(e,t){const n=ha(e),r=n.lastIndexOf(wL);if(-1===r)return;const i=r+wL.length;let o=kR(n,i,t);return 64===n.charCodeAt(i)&&(o=kR(n,o,t)),n.slice(0,o)}function kR(e,t,n){const r=e.indexOf(Bo,t+1);return-1===r?n?e.length:t:r}function TR(e,t,n,r){return FL(CR(e,t,n,r))}function CR(e,t,n,r){const i=wR(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=DR(t,e,"",n,r);if(i)return i}}function wR(e,t,n,r){if(-1===aa(t).indexOf("."))return;let i=eT(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&NL(r.host,Ra.File_name_0_has_a_1_extension_stripping_it,t,o),DR(i,e,o,n,r)}function ER(e,t,n,r){return 1&e&&ea(t,Zd)||4&e&&ea(t,Qd)?void 0!==NR(t,n,r)?{path:t,ext:ux(t),resolvedUsingTsExtension:void 0}:void 0:r.isConfigLookup&&8===e&&Zo(t,".json")?void 0!==NR(t,n,r)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:wR(e,t,n,r)}function DR(e,t,n,r,i){if(!r){const t=oa(e);t&&(r=!gx(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!QI(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=NR(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function NR(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return AR(e,t,n);const i=_T(e)??"",o=i?nT(e,i):e;return w(n.compilerOptions.moduleSuffixes,(e=>AR(o+e+i,t,n)))}function AR(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&NL(n.host,Ra.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&NL(n.host,Ra.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function PR(e,t,n,r,i=!0){const o=i?RR(t,n,r):void 0;return PL(o,jR(e,t,n,r,o&&o.contents.packageJsonContent,o&&LR(o,r)))}function FR(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=WL(t),c=OR(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=HL(t),c.requestContainingDirectory=e.packageDirectory;const l=jR(a,e.packageDirectory,!1,c,e.contents.packageJsonContent,LR(e,c));if(o=ke(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=pe([HL(t,!0),HL(t,!1)],be);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=IR(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=De(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function IR(e,t,n,r){let i;if(gt(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&zR(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&fn(t,"./"))if(t.indexOf("*")>=0&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...Zd),2&e&&t.push(...Gd),4&e&&t.push(...Qd),8&e&&t.push(".json"),t}(r),void 0,[ka(t.replace("*","**/*"),Ov(t))]).forEach((e=>{i=De(i,{path:e,ext:ca(e),resolvedUsingTsExtension:void 0})}))}else{const o=la(t).slice(2);if(o.indexOf("..")>=0||o.indexOf(".")>=0||o.indexOf("node_modules")>=0)return!1;const c=ga(fa(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=ER(r,c,!1,n);if(l)return i=De(i,l,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t)){for(const e of t)if(o(e))return!0}else if("object"==typeof t&&null!==t)return w(Ge(t),(e=>{if("default"===e||B(n.conditions,e)||qR(n.conditions,e))return o(t[e]),!0}))}}function OR(e,t,n){return{host:t,compilerOptions:n,traceEnabled:AL(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:a,requestContainingDirectory:void 0,reportDiagnostic:St,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function MR(e,t){const n=la(e);for(n.pop();n.length>0;){const e=RR(ua(n),!1,t);if(e)return e;n.pop()}}function LR(t,n){return void 0===t.contents.versionPaths&&(t.contents.versionPaths=function(t,n){const r=function(e,t){const n=JL(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&NL(t.host,Ra.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(t,n);if(void 0===r)return;if(n.traceEnabled)for(const e in r)We(r,e)&&!zn.tryParse(e)&&NL(n.host,Ra.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const i=$L(r);if(!i)return void(n.traceEnabled&&NL(n.host,Ra.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e));const{version:o,paths:a}=i;if("object"==typeof a)return i;n.traceEnabled&&NL(n.host,Ra.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof a)}(t.contents.packageJsonContent,n)||!1),t.contents.versionPaths||void 0}function RR(e,t,n){var r,i,o,a,s,c,l,u;const{host:_,traceEnabled:d}=n,f=fa(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(f));const p=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(f);if(void 0!==p)return"boolean"!=typeof p?(d&&NL(_,Ra.File_0_exists_according_to_earlier_cached_lookups,f),null==(o=n.affectingLocations)||o.push(f),p.packageDirectory===e?p:{packageDirectory:e,contents:p.contents}):(p&&d&&NL(_,Ra.File_0_does_not_exist_according_to_earlier_cached_lookups,f),void(null==(a=n.failedLookupLocations)||a.push(f)));const m=gx(e,_);if(m&&_.fileExists(f)){const t=mx(f,_);d&&NL(_,Ra.Found_package_json_at_0,f);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0}};return null==(s=n.packageJsonInfoCache)||s.setPackageJsonInfo(f,r),null==(c=n.affectingLocations)||c.push(f),r}m&&d&&NL(_,Ra.File_0_does_not_exist,f),null==(l=n.packageJsonInfoCache)||l.setPackageJsonInfo(f,m),null==(u=n.failedLookupLocations)||u.push(f)}function jR(e,n,r,i,o,a){let s;o&&(s=i.isConfigLookup?function(e,t,n){return zL(e,"tsconfig",t,n)}(o,n,i):4&e&&function(e,t,n){return zL(e,"typings",t,n)||zL(e,"types",t,n)}(o,n,i)||7&e&&function(e,t,n){return zL(e,"main",t,n)}(o,n,i)||void 0);const c=(e,t,n,r)=>{const i=NR(t,n,r);if(i){const t=function(e,t,n){const r=_T(t);return void 0!==r&&BR(e,r)?{path:t,ext:r,resolvedUsingTsExtension:void 0}:void 0}(e,i);if(t)return FL(t);r.traceEnabled&&NL(r.host,Ra.File_0_has_an_unsupported_extension_so_skipping_it,i)}const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==o?void 0:o.type)&&(r.features&=-33);const l=bR(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=s?!gx(oa(s),i.host):void 0,u=r||!gx(n,i.host),_=fa(n,i.isConfigLookup?"tsconfig":"index");if(a&&(!s||Da(n,s))){const r=Pa(n,s||_,!1);i.traceEnabled&&NL(i.host,Ra.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,t,r);const o=YR(e,r,n,a.paths,void 0,c,l||u,i);if(o)return IL(o.value)}return s&&IL(c(e,s,l,i))||(32&i.features?void 0:CR(e,_,u,i))}function BR(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function JR(e){let t=e.indexOf(Bo);return"@"===e[0]&&(t=e.indexOf(Bo,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function zR(e){return I(Ge(e),(e=>fn(e,".")))}function $R(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!le(Ge(e.contents.packageJsonContent.exports),(e=>fn(e,".")))?a=e.contents.packageJsonContent.exports:We(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a)return UR(t,r,i,o,n,e,!1)(a,"",!1,".")}else if(zR(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&NL(r.host,Ra.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),cj(void 0);const a=KR(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&NL(r.host,Ra.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),cj(void 0)}}function VR(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function KR(e,t,n,r,i,o,a,s){const c=UR(e,t,n,r,i,a,s);if(!Zt(i,Bo)&&-1===i.indexOf("*")&&We(o,i))return c(o[i],"",!1,i);const l=Ae(V(Ge(o),(e=>-1!==e.indexOf("*")||Zt(e,"/"))),VR);for(const e of l){if(16&t.features&&u(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if(Zt(e,"*")&&fn(i,e.substring(0,e.length-1)))return c(o[e],i.substring(e.length-1),!0,e);if(fn(i,e))return c(o[e],i.substring(e.length),!1,e)}function u(e,t){if(Zt(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&fn(t,e.substring(0,n))&&Zt(t,e.substring(n+1))}}function UR(e,t,n,r,i,o,a){return function s(c,l,u,_){if("string"==typeof c){if(!u&&l.length>0&&!Zt(c,"/"))return t.traceEnabled&&NL(t.host,Ra.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),cj(void 0);if(!fn(c,"./")){if(a&&!fn(c,"../")&&!fn(c,"/")&&!Wo(c)){const i=u?c.replace(/\*/g,l):c+l;lj(t,Ra.Using_0_subpath_1_with_target_2,"imports",_,i),lj(t,Ra.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=yR(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r);return cj(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&NL(t.host,Ra.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),cj(void 0)}const s=(Xo(c)?la(c).slice(1):la(c)).slice(1);if(s.indexOf("..")>=0||s.indexOf(".")>=0||s.indexOf("node_modules")>=0)return t.traceEnabled&&NL(t.host,Ra.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),cj(void 0);const p=fa(o.packageDirectory,c),m=la(l);if(m.indexOf("..")>=0||m.indexOf(".")>=0||m.indexOf("node_modules")>=0)return t.traceEnabled&&NL(t.host,Ra.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),cj(void 0);t.traceEnabled&&NL(t.host,Ra.Using_0_subpath_1_with_target_2,a?"imports":"exports",_,u?c.replace(/\*/g,l):c+l);const g=d(u?p.replace(/\*/g,l):p+l),h=function(n,r,i,a){var s,c,l,u;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&-1===n.indexOf("/node_modules/")&&(!t.compilerOptions.configFile||Da(o.packageDirectory,d(t.compilerOptions.configFile.fileName),!uj(t)))){const f=wv({useCaseSensitiveFileNames:()=>uj(t)}),p=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=d(cV(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",f));p.push(e)}else if(t.requestContainingDirectory){const e=d(fa(t.requestContainingDirectory,"index.ts")),n=d(cV(t.compilerOptions,(()=>[e,d(i)]),(null==(u=(l=t.host).getCurrentDirectory)?void 0:u.call(l))||"",f));p.push(n);let r=xa(n);for(;r&&r.length>1;){const e=la(r);e.pop();const t=ua(e);p.unshift(t),r=xa(t)}}p.length>1&&t.reportDiagnostic(MS(a?Ra.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Ra.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===r?".":r,i));for(const r of p){const i=_(r);for(const a of i)if(Da(a,n,!uj(t))){const i=fa(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if(Zo(i,n)){const r=Mv(i);for(const a of r){if(!BR(e,a))continue;const r=ka(i,a,n,!uj(t));if(t.host.fileExists(r))return cj(PL(o,ER(e,r,!1,t)))}}}}}return;function _(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(d(f(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(d(f(i,t.compilerOptions.outDir))),o}}(g,l,fa(o.packageDirectory,"package.json"),a);return h||cj(PL(o,ER(e,g,!1,t)))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){lj(t,Ra.Entering_conditional_exports);for(const e of Ge(c))if("default"===e||t.conditions.indexOf(e)>=0||qR(t.conditions,e)){lj(t,Ra.Matched_0_condition_1,a?"imports":"exports",e);const n=s(c[e],l,u,_);if(n)return lj(t,Ra.Resolved_under_condition_0,e),lj(t,Ra.Exiting_conditional_exports),n;lj(t,Ra.Failed_to_resolve_under_condition_0,e)}else lj(t,Ra.Saw_non_matching_condition_0,e);return void lj(t,Ra.Exiting_conditional_exports)}if(!C(c))return t.traceEnabled&&NL(t.host,Ra.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),cj(void 0);for(const e of c){const t=s(e,l,u,_);if(t)return t}}else if(null===c)return t.traceEnabled&&NL(t.host,Ra.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),cj(void 0);return t.traceEnabled&&NL(t.host,Ra.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),cj(void 0);function d(e){var n,r;return void 0===e?e:ga(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function f(e,t){return xa(fa(e,t))}}}function qR(e,n){if(-1===e.indexOf("types"))return!1;if(!fn(n,"types@"))return!1;const r=zn.tryParse(n.substring("types@".length));return!!r&&r.test(t)}function WR(e,t,n,r,i,o){return HR(e,t,n,r,!1,i,o)}function HR(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){lj(r,Ra.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,OL(c));const e=u(c);if(e)return e}if(l&&!i)return lj(r,Ra.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,OL(l)),u(l);function u(e){return Ma(_a(n),(n=>{if("node_modules"!==aa(n)){return rj(o,t,s,n,a,r)||cj(GR(e,t,n,r,i,o,a))}}))}}function GR(e,t,n,r,i,o,a){const s=fa(n,"node_modules"),c=gx(s,r.host);if(!c&&r.traceEnabled&&NL(r.host,Ra.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=XR(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=fa(s,"@types");let n=c;return c&&!gx(e,r.host)&&(r.traceEnabled&&NL(r.host,Ra.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),XR(4,QR(t,r),e,n,r,o,a)}}function XR(e,n,r,i,o,s,c){var l,u;const _=ha(fa(r,n)),{packageName:d,rest:f}=JR(n),p=fa(r,d);let m,g=RR(_,!i,o);if(""!==f&&g&&(!(8&o.features)||!We((null==(l=m=RR(p,!i,o))?void 0:l.contents.packageJsonContent)??a,"exports"))){const t=CR(e,_,!i,o);if(t)return FL(t);const n=jR(e,_,!i,o,g.contents.packageJsonContent,LR(g,o));return PL(g,n)}const h=(e,t,n,r)=>{let i=(f||!(32&r.features))&&CR(e,t,n,r)||jR(e,t,n,r,g&&g.contents.packageJsonContent,g&&LR(g,r));return!i&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=CR(e,fa(t,"index.js"),n,r)),PL(g,i)};if(""!==f&&(g=m??RR(p,!i,o)),g&&g.contents.packageJsonContent.exports&&8&o.features)return null==(u=$R(g,e,fa(".",f),o,s,c))?void 0:u.value;const y=""!==f&&g?LR(g,o):void 0;if(y){o.traceEnabled&&NL(o.host,Ra.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,t,f);const n=i&&gx(p,o.host),r=YR(e,f,p,y.paths,void 0,h,!n,o);if(r)return r.value}return h(e,_,!i,o)}function YR(e,t,n,r,i,o,a,s){i||(i=oT(r));const c=fT(i,t);if(c){const i=yt(c)?void 0:_n(c,t),l=yt(c)?c:un(c);return s.traceEnabled&&NL(s.host,Ra.Module_name_0_matched_pattern_1,t,l),{value:w(r[l],(t=>{const r=i?t.replace("*",i):t,c=ha(fa(n,r));s.traceEnabled&&NL(s.host,Ra.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=_T(t);if(void 0!==l){const e=NR(c,a,s);if(void 0!==e)return FL({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!gx(oa(c),s.host),s)}))}}}function QR(e,t){const n=ej(e);return t.traceEnabled&&n!==e&&NL(t.host,Ra.Scoped_package_detected_looking_in_0,n),n}function ZR(e){return`@types/${ej(e)}`}function ej(e){if(fn(e,"@")){const t=e.replace(Bo,EL);if(t!==e)return t.slice(1)}return e}function tj(e){const t=pn(e,"@types/");return t!==e?nj(t):e}function nj(e){return nn(e,EL)?"@"+e.replace(EL,Bo):e}function rj(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&NL(o.host,Ra.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function ij(e,t,n,r,i,o){const a=AL(n,r),s=[],c=[],l=oa(t),u=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{u.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1},d=f(5)||f(2|(n.resolveJsonModule?8:0));return LL(e,d&&d.value,(null==d?void 0:d.value)&&xR(d.value.path),s,c,u,_);function f(t){const n=fR(t,e,l,TR,_);if(n)return{value:n};if(Gs(e)){const n=ha(fa(l,e));return cj(TR(t,n,!1,_))}{const n=Ma(l,(n=>{const r=rj(i,e,void 0,n,o,_);if(r)return r;const a=ha(fa(n,e));return cj(TR(t,a,!1,_))}));if(n)return n;if(5&t){let n=function(e,t,n){return HR(4,e,t,n,!0,void 0,void 0)}(e,l,_);return 4&t&&(n??(n=oj(e,_))),n}}}}function oj(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=UL(n,e,t),i=gx(n,t.host);!i&&t.traceEnabled&&NL(t.host,Ra.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=CR(4,r,!i,t);if(o){const e=SR(o.path);return cj(PL(e?RR(e,!1,t):void 0,o))}const a=PR(4,r,!i,t);if(a)return cj(a)}}function aj(e,t){return!!e.allowImportingTsExtensions||t&&QI(t)}function sj(e,t,n,r,i,o){const a=AL(n,r);a&&NL(r,Ra.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};return RL(GR(4,e,i,u,!1,void 0,void 0),!0,s,c,l,u.resultFromCache)}function cj(e){return void 0!==e?{value:e}:void 0}function lj(e,t,...n){e.traceEnabled&&NL(e.host,t,...n)}function uj(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var _j,dj,fj,pj=S({"src/compiler/moduleNameResolver.ts"(){gH(),TL=fa("node_modules","@types"),CL=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(CL||{}),wL="/node_modules/",EL="__"}});function mj(e,t){return e.body&&!e.body.parent&&(OT(e.body,e),LT(e.body,!1)),e.body?gj(e.body,t):1}function gj(e,t=new Map){const n=bB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(sm(e))return 2;break;case 272:case 271:if(!vb(e,1))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=hj(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return zI(e,(e=>{const r=gj(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:Fn.assertNever(r)}})),n}case 267:return mj(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function hj(e,t){const n=e.propertyName||e.name;let r=e.parent;for(;r;){if(AN(r)||rA(r)||UA(r)){const e=r.statements;let i;for(const o of e)if(jc(o,n)){o.parent||(OT(o,r),LT(o,!1));const e=gj(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;271===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}function yj(e){return Fn.attachFlowNodeDebugInfo(e),e}function vj(e,t){var n,r;wr("beforeBind"),null==(n=fr)||n.logStartBindFile(""+e.fileName),fj(e,t),null==(r=fr)||r.logStopBindFile(),wr("afterBind"),Er("Bind","beforeBind","afterBind")}function bj(){var e,t,n,r,i,o,a,s,c,l,u,_,d,f,p,m,g,h,y,v,b,x,S,k,T=!1,E=0,D={flags:1},N={flags:1},A=function(){return BF((function(e,t){if(t){t.stackIndex++,OT(e,r);const n=x;Je(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(Vb(n)||zb(n)){if(ae(e)){const t=G();ye(e,t,t),u=ie(t)}else ye(e,p,m);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&me(t),n}}),(function(e,t,n){t.skip||Le(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&me(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;Ub(t)&&!Hh(e)&&(he(e.left),64===t&&212===e.left.kind)&&H(e.left.expression)&&(u=ne(256,u,e))}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(x=n),void 0!==i&&(r=i),t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&fN(e)&&!Xb(e))return e;Le(e)}}();return function(h,C){var w,A;e=h,n=HS(t=C),x=function(e,t){return!(!mk(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,C),k=new Set,E=0,S=Id.getSymbolConstructor(),Fn.attachFlowNodeDebugInfo(D),Fn.attachFlowNodeDebugInfo(N),e.locals||(null==(w=Br)||w.push(Br.Phase.Bind,"bindSourceFile",{path:e.path},!0),Le(e),null==(A=Br)||A.pop(),e.symbolCount=E,e.classifiableNames=k,function(){if(!c)return;const t=i,n=s,o=a,l=r,_=u;for(const t of c){const n=t.parent.parent;i=Rp(n)||e,a=jp(n)||e,u=yj({flags:2}),r=t,Le(t.typeExpression);const o=$c(t);if((kP(t)||!t.fullName)&&o&&tx(o.parent)){const n=Qe(o.parent);if(n){Xe(e.symbol,o.parent,n,!!Dc(o,(e=>QD(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(dh(o.parent)){case 1:case 2:i=om(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=Sj(e,o.parent.expression)?e:QD(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return Fn.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&j(t,524288,788968),i=r}}else kP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Pe(t,524288,788968)):Le(t.fullName)}i=t,s=n,a=o,r=l,u=_}()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,l=!1,u=void 0,_=void 0,d=void 0,f=void 0,p=void 0,m=void 0,g=void 0,y=void 0,v=!1,T=!1,b=0};function P(t,n,...r){return Hp(Ff(t)||e,t,n,...r)}function F(e,t){return E++,new S(e,t)}function O(e,t,n){e.flags|=n,t.symbol=e,e.declarations=De(e.declarations,t),1955&n&&!e.exports&&(e.exports=cf()),6240&n&&!e.members&&(e.members=cf()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&gh(e,t)}function M(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=$c(e);if(t){if(gp(e)){const n=Jy(t);return Sp(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(Oy(e))return Pc(e.text);if(My(e))return ss(e.operator)+e.operand.text;Fn.fail("Only computed properties with literal names have declaration names")}if(WE(t)){const n=Xm(e);if(!n)return;return Vy(n.symbol,t.escapedText)}return MA(t)?fC(t):By(t)?zy(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(2===nh(e))return"export=";Fn.fail("Unknown binary declaration kind");break;case 324:return wh(e)?"__new":"__call";case 169:return Fn.assert(324===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${Fn.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`)),"arg"+e.parent.parameters.indexOf(e)}}function L(e){return Jc(e)?Jp(e.name):Fc(Fn.checkDefined(M(e)))}function R(t,n,r,i,o,a,s){Fn.assert(s||!Ly(r));const c=vb(r,1024)||vA(r)&&"default"===r.name.escapedText,l=s?"__computed":c&&n?"default":M(r);let u;if(void 0===l)u=F(0,"__missing");else if(u=t.get(l),2885600&i&&k.add(l),u){if(a&&!u.isReplaceableByMethod)return u;if(u.flags&o)if(u.isReplaceableByMethod)t.set(l,u=F(0,l));else if(!(3&i&&67108864&u.flags)){Jc(r)&&OT(r.name,r);let t=2&u.flags?Ra.Cannot_redeclare_block_scoped_variable_0:Ra.Duplicate_identifier_0,n=!0;(384&u.flags||384&i)&&(t=Ra.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;C(u.declarations)&&(c||u.declarations&&u.declarations.length&&277===r.kind&&!r.isExportEquals)&&(t=Ra.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];eA(r)&&Jf(r.type)&&vb(r,1)&&2887656&u.flags&&a.push(P(r,Ra.Did_you_mean_0,`export type { ${Fc(r.name.escapedText)} }`));const s=$c(r)||r;w(u.declarations,((r,i)=>{const c=$c(r)||r,l=n?P(c,t,L(r)):P(c,t);e.bindDiagnostics.push(o?mT(l,P(s,0===i?Ra.Another_export_default_is_here:Ra.and_here)):l),o&&a.push(P(c,Ra.The_first_export_default_is_here))}));const _=n?P(s,t,L(r)):P(s,t);e.bindDiagnostics.push(mT(_,...a)),u=F(0,l)}}else t.set(l,u=F(0,l)),a&&(u.isReplaceableByMethod=!0);return O(u,r,i),u.parent?Fn.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function j(e,t,n){const r=!!(1&Sc(e))||function(e){if(e.parent&&nA(e)&&(e=e.parent),!Eh(e))return!1;if(!kP(e)&&e.fullName)return!0;const t=$c(e);return!!(t&&(tx(t.parent)&&Qe(t.parent)||A_(t.parent)&&1&Sc(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?R(i.symbol.exports,i.symbol,e,t,n):(Fn.assertNode(i,E_),R(i.locals,void 0,e,t,n));if(Eh(e)&&Fn.assert(Pg(e)),!gp(e)&&(r||128&i.flags)){if(!E_(i)||!i.locals||vb(e,1024)&&!M(e))return R(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=R(i.locals,void 0,e,r,n);return o.exportSymbol=R(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return Fn.assertNode(i,E_),R(i.locals,void 0,e,t,n)}function J(e){z(e,(e=>262===e.kind?Le(e):void 0)),z(e,(e=>262!==e.kind?Le(e):void 0))}function z(e,t=Le){void 0!==e&&w(e,t)}function $(e){zI(e,Le,z)}function V(e){const n=T;if(T=!1,function(e){if(!(1&u.flags))return!1;if(u===D){const n=F_(e)&&242!==e.kind||263===e.kind||267===e.kind&&function(e){const n=mj(e);return 1===n||2===n&&fk(t)}(e);if(n&&(u=N,!t.allowUnreachableCode)){const n=nk(t)&&!(33554432&e.flags)&&(!PN(e)||!!(7&Tc(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t){if(I_(e)&&xj(e)&&AN(e.parent)){const{statements:n}=e.parent,r=pT(n,e);ue(r,xj,((e,n)=>t(r[e],r[n-1])))}else t(e,e)}(e,((e,t)=>Me(n,e,t,Ra.Unreachable_code_detected)))}}return!0}(e))return $(e),Re(e),void(T=n);switch(e.kind>=243&&e.kind<=259&&!t.allowUnreachableCode&&(e.flowNode=u),e.kind){case 247:!function(e){const t=fe(e,X()),n=G(),r=G();Z(t,u),u=t,ce(e.expression,n,r),u=ie(n),de(e.statement,r,t),Z(t,u),u=ie(r)}(e);break;case 246:!function(e){const t=X(),n=fe(e,G()),r=G();Z(t,u),u=t,de(e.statement,r,n),Z(n,u),u=ie(n),ce(e.expression,t,r),u=ie(r)}(e);break;case 248:!function(e){const t=fe(e,X()),n=G(),r=G();Le(e.initializer),Z(t,u),u=t,ce(e.condition,n,r),u=ie(n),de(e.statement,r,t),Le(e.incrementor),Z(t,u),u=ie(r)}(e);break;case 249:case 250:!function(e){const t=fe(e,X()),n=G();Le(e.expression),Z(t,u),u=t,250===e.kind&&Le(e.awaitModifier),Z(n,u),Le(e.initializer),261!==e.initializer.kind&&he(e.initializer),de(e.statement,n,t),Z(t,u),u=ie(n)}(e);break;case 245:!function(e){const t=G(),n=G(),r=G();ce(e.expression,t,n),u=ie(t),Le(e.thenStatement),Z(r,u),u=ie(n),Le(e.elseStatement),Z(r,u),u=ie(r)}(e);break;case 253:case 257:!function(e){Le(e.expression),253===e.kind&&(v=!0,f&&Z(f,u)),u=D}(e);break;case 252:case 251:!function(e){if(Le(e.label),e.label){const t=function(e){for(let t=y;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,pe(e,t.breakTarget,t.continueTarget))}else pe(e,_,d)}(e);break;case 258:!function(e){const t=f,n=g,r=G(),i=G();let o=G();if(e.finallyBlock&&(f=i),Z(o,u),g=o,Le(e.tryBlock),Z(r,u),e.catchClause&&(u=ie(o),o=G(),Z(o,u),g=o,Le(e.catchClause),Z(r,u)),f=t,g=n,e.finallyBlock){const t=G();t.antecedents=_e(_e(r.antecedents,o.antecedents),i.antecedents),u=t,Le(e.finallyBlock),1&u.flags?u=D:(f&&i.antecedents&&Z(f,Y(t,i.antecedents,u)),g&&o.antecedents&&Z(g,Y(t,o.antecedents,u)),u=r.antecedents?Y(t,r.antecedents,u):D)}else u=ie(r)}(e);break;case 255:!function(e){const t=G();Le(e.expression);const n=_,r=h;_=t,h=u,Le(e.caseBlock),Z(t,u);const i=w(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!i&&!t.antecedents,i||Z(t,te(h,e,0,0)),_=n,h=r,u=ie(t)}(e);break;case 269:!function(e){const n=e.clauses,r=K(e.parent.expression);let i=D;for(let o=0;ohA(e)||gA(e)))}(e)?e.flags|=128:e.flags&=-129}function Ne(e){const t=mj(e),n=0!==t;return we(e,n?512:1024,n?110735:0),t}function Ae(e,t,n){const r=F(t,n);return 106508&t&&(r.parent=i.symbol),O(r,e,t),r}function Pe(e,t,n){switch(a.kind){case 267:j(e,t,n);break;case 312:if(om(i)){j(e,t,n);break}default:Fn.assertNode(a,E_),a.locals||(a.locals=cf(),Ce(a)),R(a.locals,void 0,e,t,n)}}function Fe(t,n){if(n&&80===n.kind){const i=n;if(qE(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=im(e,n);e.bindDiagnostics.push(IS(e,r.start,r.length,function(t){return Xm(t)?Ra.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?Ra.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:Ra.Invalid_use_of_0_in_strict_mode}(t),Ic(i)))}}var r}function Ie(e){x&&Fe(e,e.name)}function Oe(t,n,...r){const i=nm(e,t.pos);e.bindDiagnostics.push(IS(e,i.start,i.length,n,...r))}function Me(t,n,r,i){!function(t,n,r){const i=IS(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=ke(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:ep(n,e),end:r.end},i)}function Le(t){if(!t)return;OT(t,r),Br&&(t.tracingPath=e.path);const n=x;if(Je(t),t.kind>165){const e=r;r=t;const n=kj(t);0===n?V(t):function(e,t){const n=i,r=o,s=a;if(1&t?(219!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=cf(),Ce(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=u,r=_,i=d,o=f,a=g,s=y,c=v,l=16&t&&!vb(e,512)&&!e.asteriskToken&&!!og(e)||175===e.kind;l||(u=yj({flags:2}),144&t&&(u.node=e)),f=l||176===e.kind||Pg(e)&&(262===e.kind||218===e.kind)?G():void 0,g=void 0,_=void 0,d=void 0,y=void 0,v=!1,V(e),e.flags&=-5633,!(1&u.flags)&&8&t&&zf(e.body)&&(e.flags|=512,v&&(e.flags|=1024),e.endFlowNode=u),312===e.kind&&(e.flags|=b,e.endFlowNode=u),f&&(Z(f,u),u=ie(f),(176===e.kind||175===e.kind||Pg(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=u)),l||(u=n),_=r,d=i,f=o,g=a,y=s,v=c}else 64&t?(l=!1,V(e),Fn.assertNotNode(e,qE),e.flags=l?256|e.flags:-257&e.flags):V(e);i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Re(t),r=e}x=n}function Re(e){if(W_(e))if(Pg(e))for(const t of e.jsDoc)Le(t);else for(const t of e.jsDoc)OT(t,e),LT(t,!1)}function je(e){if(!x)for(const t of e){if(!hm(t))return;if(Be(t))return void(x=!0)}}function Be(t){const n=np(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function Je(o){switch(o.kind){case 80:if(4096&o.flags){let e=o.parent;for(;e&&!Eh(e);)e=e.parent;Pe(e,524288,788968);break}case 110:return u&&(l_(o)||304===r.kind)&&(o.flowNode=u),function(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||cy(t))){const n=Oc(t);if(void 0===n)return;x&&n>=119&&n<=127?e.bindDiagnostics.push(P(t,function(t){return Xm(t)?Ra.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?Ra.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:Ra.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Jp(t))):135===n?HI(e)&&ng(t)?e.bindDiagnostics.push(P(t,Ra.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Jp(t))):65536&t.flags&&e.bindDiagnostics.push(P(t,Ra.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Jp(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(P(t,Ra.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Jp(t)))}}(o);case 166:u&&kg(o)&&(o.flowNode=u);break;case 236:case 108:o.flowNode=u;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(P(t,Ra.constructor_is_a_reserved_word,Jp(t))))}(o);case 211:case 212:const s=o;u&&U(s)&&(s.flowNode=u),mh(s)&&function(e){110===e.expression.kind?Ue(e):ah(e)&&312===e.parent.parent.kind&&(rx(e.expression)?He(e,e.parent):Ge(e))}(s),Pg(s)&&e.commonJsModuleIndicator&&th(s)&&!Tj(a,"module")&&R(e.locals,void 0,s.expression,134217729,111550);break;case 226:switch(nh(o)){case 1:Ve(o);break;case 2:!function(t){if(!$e(t))return;const n=Qg(t.right);if(sx(n)||i===e&&Sj(e,n))return;if(YD(n)&&I(n.properties,zA))return void w(n.properties,Ke);const r=dy(t)?2097152:1049092;gh(R(e.symbol.exports,e.symbol,t,67108864|r,0),t)}(o);break;case 3:He(o.left,o);break;case 6:!function(e){OT(e.left,e),OT(e.right,e),Ze(e.left.expression,e.left,!1,!0)}(o);break;case 4:Ue(o);break;case 5:const t=o.left.expression;if(Pg(o)&&qE(t)){const e=Tj(a,t.escapedText);if(lg(null==e?void 0:e.valueDeclaration)){Ue(o);break}}!function(t){var n;const r=et(t.left.expression,i)||et(t.left.expression,a);if(!Pg(t)&&!hh(r))return;const o=fS(t.left);qE(o)&&2097152&(null==(n=Tj(i,o.escapedText))?void 0:n.flags)||(OT(t.left,t),OT(t.right,t),qE(t.left.expression)&&i===e&&Sj(e,t.left.expression)?Ve(t):Ly(t)?(Ae(t,67108868,"__computed"),We(t,Xe(r,t.left.expression,Qe(t.left),!1,!1))):Ge(xt(t.left,ch)))}(o);break;case 0:break;default:Fn.fail("Unknown binary expression special property assignment kind")}return function(e){x&&r_(e.left)&&Ub(e.operatorToken.kind)&&Fe(e,e.left)}(o);case 299:return function(e){x&&e.variableDeclaration&&Fe(e,e.variableDeclaration.name)}(o);case 220:return function(t){if(x&&80===t.expression.kind){const n=im(e,t.expression);e.bindDiagnostics.push(IS(e,n.start,n.length,Ra.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(o);case 225:return function(e){x&&Fe(e,e.operand)}(o);case 224:return function(e){x&&(46!==e.operator&&47!==e.operator||Fe(e,e.operand))}(o);case 254:return function(e){x&&Oe(e,Ra.with_statements_are_not_allowed_in_strict_mode)}(o);case 256:return function(e){x&&HS(t)>=2&&(P_(e.statement)||PN(e.statement))&&Oe(e.label,Ra.A_label_is_not_allowed_here)}(o);case 197:return void(l=!0);case 182:break;case 168:return function(e){if(DP(e.parent)){const t=Jh(e.parent);t?(Fn.assertNode(t,E_),t.locals??(t.locals=cf()),R(t.locals,void 0,e,262144,526824)):we(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=Dc(e,(e=>e.parent&&LD(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(Fn.assertNode(t,E_),t.locals??(t.locals=cf()),R(t.locals,void 0,e,262144,526824)):Ae(e,262144,M(e))}else we(e,262144,526824)}(o);case 169:return rt(o);case 260:return nt(o);case 208:return o.flowNode=u,nt(o);case 172:case 171:return function(e){const t=Iu(e),n=t?13247:0;return it(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(o);case 303:case 304:return it(o,4,0);case 306:return it(o,8,900095);case 179:case 180:case 181:return we(o,131072,0);case 174:case 173:return it(o,8192|(o.questionToken?16777216:0),Bm(o)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||Iy(t)&&(b|=4096),Ie(t),x?(function(t){if(n<2&&312!==a.kind&&267!==a.kind&&!Tu(a)){const n=im(e,t);e.bindDiagnostics.push(IS(e,n.start,n.length,function(t){return Xm(t)?Ra.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?Ra.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Ra.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}(t),Pe(t,16,110991)):we(t,16,110991)}(o);case 176:return we(o,16384,0);case 177:return it(o,32768,46015);case 178:return it(o,65536,78783);case 184:case 324:case 330:case 185:return function(e){const t=F(131072,M(e));O(t,e,131072);const n=F(2048,"__type");O(n,e,2048),n.members=cf(),n.members.set(t.escapedName,t)}(o);case 187:case 329:case 200:return function(e){return Ae(e,2048,"__type")}(o);case 339:return function(e){$(e);const t=zh(e);t&&174!==t.kind&&O(t.symbol,t,32)}(o);case 210:return function(e){return Ae(e,4096,"__object")}(o);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||Iy(t)&&(b|=4096),u&&(t.flowNode=u),Ie(t);return Ae(t,16,t.name?t.name.escapedText:"__function")}(o);case 213:switch(nh(o)){case 7:return function(e){let t=et(e.arguments[0]);const n=312===e.parent.parent.kind;t=Xe(t,e.arguments[0],n,!1,!1),Ye(e,t,!1)}(o);case 8:return function(e){if(!$e(e))return;const t=tt(e.arguments[0],void 0,((e,t)=>(t&&O(t,e,67110400),t)));if(t){const n=1048580;R(t.exports,t,e,n,0)}}(o);case 9:return function(e){const t=et(e.arguments[0].expression);t&&t.valueDeclaration&&O(t,t.valueDeclaration,32),Ye(e,t,!0)}(o);case 0:break;default:return Fn.fail("Unknown call expression assignment declaration kind")}Pg(o)&&function(t){!e.commonJsModuleIndicator&&Lg(t,!1)&&$e(t)}(o);break;case 231:case 263:return x=!0,function(t){263===t.kind?Pe(t,32,899503):(Ae(t,32,t.name?t.name.escapedText:"__class"),t.name&&k.add(t.name.escapedText));const{symbol:n}=t,r=F(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&OT(t.name,t),e.bindDiagnostics.push(P(i.declarations[0],Ra.Duplicate_identifier_0,Mc(r)))),n.exports.set(r.escapedName,r),r.parent=n}(o);case 264:return Pe(o,64,788872);case 265:return Pe(o,524288,788968);case 266:return function(e){return sm(e)?Pe(e,128,899967):Pe(e,256,899327)}(o);case 267:return function(t){if(Ee(t),gp(t))if(vb(t,1)&&Oe(t,Ra.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Tp(t))Ne(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=iT(e),void 0===n&&Oe(t.name,Ra.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=we(t,512,110735);e.patternAmbientModules=ke(e.patternAmbientModules,n&&!yt(n)?{pattern:n,symbol:r}:void 0)}else{const e=Ne(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(o);case 292:return function(e){return Ae(e,4096,"__jsxAttributes")}(o);case 291:return function(e,t,n){return we(e,4,0)}(o);case 271:case 274:case 276:case 281:return we(o,2097152,2097152);case 270:return function(t){le(t.modifiers)&&e.bindDiagnostics.push(P(t,Ra.Modifiers_cannot_appear_here));const n=UA(t.parent)?HI(t.parent)?t.parent.isDeclarationFile?void 0:Ra.Global_module_exports_may_only_appear_in_declaration_files:Ra.Global_module_exports_may_only_appear_in_module_files:Ra.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(P(t,n)):(e.symbol.globalExports=e.symbol.globalExports||cf(),R(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(o);case 273:return function(e){e.name&&we(e,2097152,2097152)}(o);case 278:return function(e){i.symbol&&i.symbol.exports?e.exportClause?fA(e.exportClause)&&(OT(e.exportClause,e),R(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):R(i.symbol.exports,i.symbol,e,8388608,0):Ae(e,8388608,M(e))}(o);case 277:return function(e){if(i.symbol&&i.symbol.exports){const t=dy(e)?2097152:4,n=R(i.symbol.exports,i.symbol,e,t,67108863);e.isExportEquals&&gh(n,e)}else Ae(e,111551,M(e))}(o);case 312:return je(o.statements),function(){if(Ee(e),HI(e))ze();else if(am(e)){ze();const t=e.symbol;R(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=t}}();case 241:if(!Tu(o.parent))return;case 268:return je(o.statements);case 348:if(330===o.parent.kind)return rt(o);if(329!==o.parent.kind)break;case 355:const _=o;return we(_,_.isBracketed||_.typeExpression&&323===_.typeExpression.type.kind?16777220:4,0);case 353:case 345:case 347:return(c||(c=[])).push(o);case 346:return Le(o.typeExpression)}}function ze(){Ae(e,512,`"${eT(e.fileName)}"`)}function $e(t){return!(e.externalModuleIndicator&&!0!==e.externalModuleIndicator||(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||ze()),0))}function Ve(e){if(!$e(e))return;const t=tt(e.left.expression,void 0,((e,t)=>(t&&O(t,e,67110400),t)));if(t){const n=_y(e.right)&&(Zg(e.left.expression)||th(e.left.expression))?2097152:1048580;OT(e.left,e),R(t.exports,t,e.left,n,0)}}function Ke(t){R(e.symbol.exports,e.symbol,t,69206016,0)}function Ue(e){if(Fn.assert(Pg(e)),fN(e)&&QD(e.left)&&WE(e.left.name)||QD(e)&&WE(e.name))return;const t=eg(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(fN(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;ah(e)&&rx(e.expression)&&(n=et(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||cf(),Ly(e)?qe(e,n,n.members):R(n.members,n,e,67108868,0),O(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,i=bb(t)?r.symbol.exports:r.symbol.members;Ly(e)?qe(e,r.symbol,i):R(i,r.symbol,e,67108868,0,!0);break;case 312:if(Ly(e))break;t.commonJsModuleIndicator?R(t.symbol.exports,t.symbol,e,1048580,0):we(e,1,111550);break;case 267:break;default:Fn.failBadSyntaxKind(t)}}function qe(e,t,n){R(n,t,e,4,0,!0,!0),We(e,t)}function We(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(bB(e),e)}function He(e,t){const n=e.expression,r=n.expression;OT(r,n),OT(n,e),OT(e,t),Ze(r,e,!0,!0)}function Ge(e){Fn.assert(!qE(e)),OT(e.expression,e),Ze(e.expression,e,!1,!1)}function Xe(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=tt(n,t,((t,n,o)=>n?(O(n,t,r),n):R(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=cf()),o,t,r,i)))}return o&&t&&t.valueDeclaration&&O(t,t.valueDeclaration,32),t}function Ye(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&eN(t))return!!Wg(t);let n=t?GN(t)?t.initializer:fN(t)?t.right:QD(t)&&fN(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Qg(n),n){const e=rx(GN(t)?t.name:fN(t)?t.left:t);return!!Hg(!fN(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=cf()):t.exports||(t.exports=cf());let i=0,o=0;Cu(Wg(e))?(i=8192,o=103359):eN(e)&&rh(e)&&(le(e.arguments[2].properties,(e=>{const t=$c(e);return!!t&&qE(t)&&"set"===Ic(t)}))&&(i|=65540,o|=78783),le(e.arguments[2].properties,(e=>{const t=$c(e);return!!t&&qE(t)&&"get"===Ic(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),R(r,t,e,67108864|i,-67108865&o)}function Qe(e){return fN(e.parent)?312===function(e){for(;fN(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:312===e.parent.parent.kind}function Ze(e,t,n,r){let o=et(e,i)||et(e,a);const s=Qe(t);o=Xe(o,t.expression,s,n,r),Ye(t,o,n)}function et(e,t=i){if(qE(e))return Tj(t,e.escapedText);{const t=et(e.expression);return t&&t.exports&&t.exports.get(_h(e))}}function tt(t,n,r){if(Sj(e,t))return e.symbol;if(qE(t))return r(t,et(t),n);{const e=tt(t.expression,n,r),i=lh(t);return WE(i)&&Fn.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(_h(t)),e)}}function nt(e){if(x&&Fe(e,e.name),!$u(e.name)){const n=260===e.kind?e:e.parent.parent;!(Pg(e)&&ck(t)&&jg(n))||yl(e)||1&Sc(e)?pp(e)?Pe(e,2,111551):Qy(e)?we(e,1,111551):we(e,1,111550):we(e,2097152,2097152)}}function rt(e){if((348!==e.kind||330===i.kind)&&(!x||33554432&e.flags||Fe(e,e.name),$u(e.name)?Ae(e,1,"__"+e.parent.parameters.indexOf(e)):we(e,1,111551),hc(e,e.parent))){const t=e.parent.parent;R(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function it(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Iy(t)||(b|=4096),u&&Jm(t)&&(t.flowNode=u),Ly(t)?Ae(t,n,"__computed"):we(t,n,r)}}function xj(e){return!(YN(e)||function(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==mj(e);case 266:return vb(e,2048);default:return!1}}(e)||tA(e)||PN(e)&&!(7&Tc(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function Sj(e,t){let n=0;const r=pt();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Zg(t=r.dequeue())||th(t))return!0;if(qE(t)){const n=Tj(e,t.escapedText);if(n&&n.valueDeclaration&&GN(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),Hb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function kj(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(Jm(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return ku(e.parent)||gD(e.parent)?0:34}return 0}function Tj(e,t){var n,r,i,o;const a=null==(r=null==(n=bt(e,E_))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:UA(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):w_(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}var Cj=S({"src/compiler/binder.ts"(){gH(),co(),_j=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(_j||{}),dj=(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.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(dj||{}),fj=bj()}});function wj(e,t,n,r,i,o,a,s,c,l){return function(u=(()=>!0)){const _=[],d=[];return{walkType:e=>{try{return f(e),{visitedTypes:Ye(_),visitedSymbols:Ye(d)}}finally{U(_),U(d)}},walkSymbol:e=>{try{return g(e),{visitedTypes:Ye(_),visitedSymbols:Ye(d)}}finally{U(_),U(d)}}};function f(e){if(e&&!_[e.id]&&(_[e.id]=e,!g(e.symbol))){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){f(e.target),w(l(e),f)}(e),32&i&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(e),3&i&&(m(t=e),w(t.typeParameters,f),w(r(t),f),f(t.thisType)),24&i&&m(n)}var t;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){w(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&e.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(e)}}function p(r){const i=t(r);i&&f(i.type),w(r.typeParameters,f);for(const e of r.parameters)g(e);f(e(r)),f(n(r))}function m(e){const t=i(e);for(const e of t.indexInfos)f(e.keyType),f(e.type);for(const e of t.callSignatures)p(e);for(const e of t.constructSignatures)p(e);for(const e of t.properties)g(e)}function g(e){if(!e)return!1;const t=xB(e);return!d[t]&&(d[t]=e,!u(e)||(f(o(e)),e.exports&&e.exports.forEach(g),w(e.declarations,(e=>{if(e.type&&186===e.type.kind){const t=e.type;g(a(c(t.exprName)))}})),!1))}}}var Ej=S({"src/compiler/symbolWalker.ts"(){gH()}});function Dj({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,r,i){const o=function(){if(void 0!==i){if(Wk(i))return 2;if(Zt(i,"/index"))return 1}return Xk(t,r.impliedNodeFormat,n,r)}();return{relativePreference:void 0!==i?Gs(i)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{if(99===(e??r.impliedNodeFormat))return aj(n,r.fileName)?[3,2]:[2];if(1===YS(n))return 2===o?[2,1]:[1,2];const t=aj(n,r.fileName);switch(o){case 2:return t?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return t?[1,0,3,2]:[1,0,2];case 0:return t?[0,1,3,2]:[0,1,2];default:Fn.assertNever(o)}}}}function Nj(e,t,n,r,i,o,a={}){const s=Fj(e,t,n,r,i,Dj({},e,t,o),{},a);if(s!==o)return s}function Aj(e,t,n,r,i,o={}){return Fj(e,t,n,r,i,Dj({},e,t),{},o)}function Pj(e,t,n,r,i,o={}){const a=Rj(t.path,r);return D(Vj(t.path,n,r,i,o),(n=>Wj(n,a,t,r,e,i,!0,o.overrideImportMode)))}function Fj(e,t,n,r,i,o,a,s={}){const c=Rj(n,i);return D(Vj(n,r,i,a,s),(n=>Wj(n,c,t,i,e,a,void 0,s.overrideImportMode)))||jj(r,c,e,i,s.overrideImportMode||t.impliedNodeFormat,o)}function Ij(e,t,n,r,i={}){return Oj(e,t,n,r,i)[0]}function Oj(e,t,n,r,i={}){var o;const s=If(e);if(!s)return a;const c=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n),l=null==c?void 0:c.get(t.path,s.path,r,i);return[null==l?void 0:l.moduleSpecifiers,s,null==l?void 0:l.modulePaths,c]}function Mj(e,t,n,r,i,o,a={}){return Lj(e,t,n,r,i,o,a).moduleSpecifiers}function Lj(e,t,n,r,i,o,s={}){let c=!1;const l=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>yp(e)&&(!kp(e)||!Gs(Jy(e.name)))));if(r)return r.name.text;const i=te(e.declarations,(e=>{var n,r,i,o;if(!nA(e))return;const a=function(e){for(;8&e.flags;)e=e.parent;return e}(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&rA(a.parent)&&gp(a.parent.parent)&&UA(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(c&&(2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent}))[0];return i?i.name.text:void 0}(e,t);if(l)return{moduleSpecifiers:[l],computedWithoutCache:c};let[u,_,d,f]=Oj(e,r,i,o,s);if(u)return{moduleSpecifiers:u,computedWithoutCache:c};if(!_)return{moduleSpecifiers:a,computedWithoutCache:c};c=!0,d||(d=Kj(r.path,_.originalFileName,i));const p=function(e,t,n,r,i,o={}){const a=Rj(n.path,r),s=Dj(i,t,n),c=w(e,(e=>w(r.getFileIncludeReasons().get(va(e.path,r.getCurrentDirectory(),a.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;if(n.impliedNodeFormat&&n.impliedNodeFormat!==mK(n,e.index))return;const t=KK(n,e.index).text;return 1===s.relativePreference&&Xo(t)?void 0:t}))));if(c)return[c];const l=le(e,(e=>e.isInNodeModules));let u,_,d,f;for(const c of e){const e=c.isInNodeModules?Wj(c,a,n,r,t,i,void 0,o.overrideImportMode):void 0;if(u=ke(u,e),e&&c.isRedirect)return u;if(!e){const e=jj(c.path,a,t,r,o.overrideImportMode||n.impliedNodeFormat,s,c.isRedirect);if(!e)continue;c.isRedirect?d=ke(d,e):Yo(e)?_=ke(_,e):l&&!c.isInNodeModules||(f=ke(f,e))}}return(null==_?void 0:_.length)?_:(null==d?void 0:d.length)?d:(null==u?void 0:u.length)?u:Fn.checkDefined(f)}(d,n,r,i,o,s);return null==f||f.set(r.path,_.path,o,s,d,p),{moduleSpecifiers:p,computedWithoutCache:c}}function Rj(e,t){return{getCanonicalFileName:ln(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),importingSourceFileName:e,sourceDirectory:oa(e)}}function jj(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a},s){const{baseUrl:c,paths:l,rootDirs:u}=n;if(s&&!l)return;const{sourceDirectory:_,getCanonicalFileName:d}=t,f=o(i),p=u&&function(e,t,n,r,i,o){const a=Hj(t,e,r);if(void 0===a)return;const s=zt(X(Hj(n,e,r),(e=>q(a,(t=>Sa(Pa(e,t,r)))))),Zk);return s?Gj(s,i,o):void 0}(u,e,_,d,f,n)||Gj(Sa(Pa(_,e,d)),f,n);if(!c&&!l||0===a)return s?void 0:p;const m=Zj(e,ga(Rv(n,r)||c,r.getCurrentDirectory()),d);if(!m)return s?void 0:p;const g=l&&Uj(m,l,f,r,n);if(s)return g;const h=void 0===g&&void 0!==c?Gj(m,f,n):g;if(!h)return p;if(1===a&&!Xo(h))return h;if(3===a&&!Xo(h)){const i=n.configFilePath?va(oa(n.configFilePath),r.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(r.getCurrentDirectory()),o=va(e,i,d),a=fn(_,i),s=fn(o,i);if(a&&!s||!a&&s)return h;const c=zj(r,oa(o));return zj(r,_)!==c?h:p}return eB(h)||Bj(p)!!e.fileExists(fa(t,"package.json"))||void 0))}function $j(e,t,n,r,i){var o;const s=wv(n),c=n.getCurrentDirectory(),l=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,u=va(t,c,s),_=n.redirectTargetsMap.get(u)||a,d=[...l?[l]:a,t,..._].map((e=>ga(e,c)));let f=!I(d,JT);if(!r){const e=w(d,(e=>!(f&&JT(e))&&i(e,l===e)));if(e)return e}const p=null==(o=n.getSymlinkCache)?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),m=ga(t,c);return p&&Ma(oa(m),(t=>{const n=p.get(xa(va(t,c,s)));if(n)return!Na(e,t,s)&&w(d,(e=>{if(!Na(e,t,s))return;const r=Pa(t,e,s);for(const t of n){const n=pa(t,r),o=i(n,e===l);if(f=!0,o)return o}}))}))||(r?w(d,(e=>f&&JT(e)?void 0:i(e,e===l))):void 0)}function Vj(e,t,n,r,i={}){var o;const a=va(t,n.getCurrentDirectory(),wv(n)),s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n);if(s){const t=s.get(e,a,r,i);if(null==t?void 0:t.modulePaths)return t.modulePaths}const c=Kj(e,t,n);return s&&s.setModulePaths(e,a,r,i,c),c}function Kj(e,t,n){const r=wv(n),i=new Map;let o=!1;$j(e,t,n,!0,((e,t)=>{const n=xR(e);i.set(e,{path:r(e),isRedirect:t,isInNodeModules:n}),o=o||n}));const a=[];for(let t=oa(e);0!==i.size;){const e=xa(t);let n;i.forEach((({path:t,isRedirect:r,isInNodeModules:o},a)=>{fn(t,e)&&((n||(n=[])).push({path:a,isRedirect:r,isInNodeModules:o}),i.delete(a))})),n&&(n.length>1&&n.sort(Jj),a.push(...n));const r=oa(t);if(r===t)break;t=r}if(i.size){const e=Ze(i.values());e.length>1&&e.sort(Jj),a.push(...e)}return a}function Uj(e,t,n,r,i){for(const r in t)for(const a of t[r]){const t=ha(a),s=t.indexOf("*"),c=n.map((t=>({ending:t,value:Gj(e,[t],i)})));if(_T(t)&&c.push({ending:void 0,value:e}),-1!==s){const e=t.substring(0,s),n=t.substring(s+1);for(const{ending:t,value:i}of c)if(i.length>=e.length+n.length&&fn(i,e)&&Zt(i,n)&&o({ending:t,value:i})){const t=i.substring(e.length,i.length-n.length);if(!Xo(t))return r.replace("*",t)}}else if(le(c,(e=>0!==e.ending&&t===e.value))||le(c,(e=>0===e.ending&&t===e.value&&o(e))))return r}function o({ending:t,value:n}){return 0!==t||n===Gj(e,[t],i,r)}}function qj(e,t,n,r,i,o,a=0){if("string"==typeof i){const o=ga(fa(n,i),void 0),s=Hk(t)?eT(t)+Qj(t,e):void 0;switch(a){case 0:if(0===Ea(t,o)||s&&0===Ea(s,o))return{moduleFileToTry:r};break;case 1:if(Da(o,t)){const e=Pa(o,t,!1);return{moduleFileToTry:ga(fa(fa(r,i),e),void 0)}}break;case 2:const e=o.indexOf("*"),n=o.slice(0,e),a=o.slice(e+1);if(fn(t,n)&&Zt(t,a)){const e=t.slice(n.length,t.length-a.length);return{moduleFileToTry:r.replace("*",e)}}if(s&&fn(s,n)&&Zt(s,a)){const e=s.slice(n.length,s.length-a.length);return{moduleFileToTry:r.replace("*",e)}}}}else{if(Array.isArray(i))return w(i,(i=>qj(e,t,n,r,i,o)));if("object"==typeof i&&null!==i){if(zR(i))return w(Ge(i),(a=>{const s=ga(fa(r,a),void 0),c=Zt(a,"/")?1:nn(a,"*")?2:0;return qj(e,t,n,s,i[a],o,c)}));for(const s of Ge(i))if("default"===s||o.indexOf(s)>=0||qR(o,s)){const c=i[s],l=qj(e,t,n,r,c,o,a);if(l)return l}}}}function Wj({path:e,isRedirect:t},{getCanonicalFileName:n,sourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const u=YT(e);if(!u)return;const _=Dj(s,a,i).getAllowedEndingsInPreferredOrder();let d=e,f=!1;if(!c){let t,n=u.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=y(n);if(1!==YS(a)){if(s)return;if(c)return r}if(i){d=i,f=!0;break}if(t||(t=r),n=e.indexOf(Bo,n+1),-1===n){d=Gj(t,_,a,o);break}}}if(t&&!f)return;const p=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),m=n(d.substring(0,u.topLevelNodeModulesIndex));if(!(fn(r,m)||p&&fn(n(p),m)))return;const g=d.substring(u.topLevelPackageNameIndex+1),h=tj(g);return 1===YS(a)&&h===g?void 0:h;function y(t){var r,s;const c=e.substring(0,t),d=fa(c,"package.json");let f=e,p=!1;const m=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(d);if("object"==typeof m||void 0===m&&o.fileExists(d)){const t=(null==m?void 0:m.contents.packageJsonContent)||JSON.parse(o.readFile(d)),r=l||i.impliedNodeFormat;if(lk(a)){const n=tj(c.substring(u.topLevelPackageNameIndex+1)),i=HL(a,99===r),o=t.exports?qj(a,e,c,n,t.exports,i):void 0;if(o)return{...Hk(o.moduleFileToTry)?{moduleFileToTry:eT(o.moduleFileToTry)+Qj(o.moduleFileToTry,a)}:o,verbatimFromExports:!0};if(t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=t.typesVersions?$L(t.typesVersions):void 0;if(s){const t=Uj(e.slice(c.length+1),s.paths,_,o,a);void 0===t?p=!0:f=fa(c,t)}const g=t.typings||t.types||t.main||"index.js";if(yt(g)&&(!p||!fT(oT(s.paths),g))){const e=va(g,c,n),r=n(f);if(eT(e)===eT(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==t.type&&!ea(r,ef)&&fn(r,e)&&oa(r)===ba(e)&&"index"===eT(aa(r)))return{packageRootPath:c,moduleFileToTry:f}}}else{const e=n(f.substring(u.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:f,packageRootPath:c}}return{moduleFileToTry:f}}}function Hj(e,t,n){return te(t,(t=>{const r=Zj(e,t,n);return void 0!==r&&eB(r)?void 0:r}))}function Gj(e,t,n,r){if(ea(e,[".json",".mjs",".cjs"]))return e;const i=eT(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(ea(e,[".mts",".cts"])&&-1!==a&&a0===e||1===e));return-1!==r&&rBj,forEachFileNameOfModule:()=>$j,getModuleSpecifier:()=>Aj,getModuleSpecifiers:()=>Mj,getModuleSpecifiersWithCacheInfo:()=>Lj,getNodeModulesPackageName:()=>Pj,tryGetJSExtensionForFile:()=>Qj,tryGetModuleSpecifiersFromCache:()=>Ij,tryGetRealFileNameForNonJsDeclarationFileName:()=>Xj,updateModuleSpecifier:()=>Nj});var rB,iB,oB,aB,sB,cB,lB,uB,_B,dB,fB,pB,mB,gB,hB,yB=S({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){tB()}});function vB(){this.flags=0}function bB(e){return e.id||(e.id=aB,aB++),e.id}function xB(e){return e.id||(e.id=oB,oB++),e.id}function SB(e,t){const n=mj(e);return 1===n||t&&2===n}function kB(e){var t,n,r,i,o,s=[],c=e=>{s.push(e)},l=new Set,u=Id.getSymbolConstructor(),_=Id.getTypeConstructor(),d=Id.getSignatureConstructor(),f=0,p=0,m=0,g=0,h=0,y=0,v=!1,b=cf(),x=[1],S=e.getCompilerOptions(),k=HS(S),T=GS(S),E=!!S.experimentalDecorators,N=hk(S),A=yk(S),P=ak(S),F=mk(S,"strictNullChecks"),j=mk(S,"strictFunctionTypes"),z=mk(S,"strictBindCallApply"),K=mk(S,"strictPropertyInitialization"),W=mk(S,"noImplicitAny"),Y=mk(S,"noImplicitThis"),Q=mk(S,"useUnknownInCatchVariables"),Z=!!S.keyofStringsOnly,ee=Z?1:0,ne=S.suppressExcessPropertyErrors?0:8192,re=S.exactOptionalPropertyTypes,ae=function(){const e=BF((function(e,t,r){return t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Pg(e)&&Wg(e)?(t.skip=!0,i(t,WO(e.right,r)),t):(function(e){const{left:t,operatorToken:n,right:r}=e;61===n.kind&&(!fN(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||_B(t,Ra._0_and_1_operations_cannot_be_mixed_without_parentheses,ss(t.operatorToken.kind),ss(n.kind)),!fN(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||_B(r,Ra._0_and_1_operations_cannot_be_mixed_without_parentheses,ss(r.operatorToken.kind),ss(n.kind)))}(e),64!==e.operatorToken.kind||210!==e.left.kind&&209!==e.left.kind||(t.skip=!0,i(t,bO(e.left,WO(e.right,r),r,110===e.right.kind))),t)}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);Fn.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(Vb(s)){let e=o.parent;for(;217===e.kind||Kb(e);)e=e.parent;(56===s||ON(e))&&_L(o.left,a,ON(e)?e.thenStatement:void 0),dL(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);Fn.assertIsDefined(n);const i=r(t);Fn.assertIsDefined(i),o=kO(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return Fn.assertIsDefined(r),r};function t(e,t){if(fN(t))return t;i(e,WO(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),se=function(){const t=e.getResolvedTypeReferenceDirectives();let n;return t&&(n=new Map,t.forEach((({resolvedTypeReferenceDirective:t},n,r)=>{if(!(null==t?void 0:t.resolvedFileName))return;const o=e.getSourceFile(t.resolvedFileName);o&&i(o,n,r)}))),{getReferencedExportContainer:HR,getReferencedImportDeclaration:GR,getReferencedDeclarationWithCollidingName:YR,isDeclarationWithCollidingName:QR,isValueAliasDeclaration:e=>{const t=Ac(e);return!t||!Te||ZR(t)},hasGlobalName:xj,isReferencedAliasDeclaration:(e,t)=>{const n=Ac(e);return!n||!Te||rj(n,t)},getNodeCheckFlags:e=>{const t=Ac(e);return t?uj(t):0},isTopLevelValueImportEqualsWithEntityName:ej,isDeclarationVisible:dc,isImplementationOfOverload:ij,isRequiredInitializedParameter:oj,isOptionalUninitializedParameterProperty:sj,isExpandoFunctionDeclaration:cj,getPropertiesOfContainerFunction:lj,createTypeOfDeclaration:hj,createReturnTypeOfSignatureDeclaration:yj,createTypeOfExpression:bj,createLiteralConstValue:Ej,isSymbolAccessible:zs,isEntityNameVisible:Ws,getConstantValue:e=>{const t=Ac(e,dj);return t?fj(t):void 0},collectLinkedAliases:fc,getReferencedValueDeclaration:kj,getReferencedValueDeclarations:Tj,getTypeReferenceSerializationKind:gj,isOptionalParameter:Ef,moduleExportsSomeValue:WR,isArgumentsLocalBinding:qR,getExternalModuleFileFromDeclaration:e=>{const t=Ac(e,Mp);return t&&Aj(t)},getTypeReferenceDirectivesForEntityName:function(e){if(!n)return;let t;167===e.parent.kind?t=1160127:(t=790504,(80===e.kind&&Zv(e)||211===e.kind&&!function(e){return e.parent&&233===e.parent.kind&&e.parent.parent&&298===e.parent.parent.kind}(e))&&(t=1160127));const i=Va(e,t,!0);return i&&i!==pt?r(i,t):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:Cj,isLateBound:e=>{const t=Ac(e,A_),n=t&&cs(t);return!!(n&&4096&$x(n))},getJsxFactoryEntity:Dj,getJsxFragmentFactoryEntity:Nj,getAllAccessorDeclarations(e){const t=178===(e=Ac(e,Pl)).kind?177:178,n=af(cs(e),t);return{firstAccessor:n&&n.posqa(e,e,void 0),isBindingCapturedByNode:(e,t)=>{const n=Ac(e),r=Ac(t);return!!n&&!!r&&(GN(r)||GD(r))&&function(e,t){const n=$o(e);return!!n&&B(n.capturedBlockScopeBindings,cs(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=Ac(e);Fn.assert(i&&312===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=cs(e);return o?o.exports?ce.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]:e.locals?ce.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=Ff(e);if(!t.symbol)return!1;const n=Aj(e);if(!n)return!1;if(n===t)return!1;const r=rs(t.symbol);for(const e of Ze(r.values()))if(e.mergeId){const t=as(e);if(t.declarations)for(const e of t.declarations)if(Ff(e)===n)return!0}return!1}};function r(e,t){if(!n||!function(e){if(!e.declarations)return!1;let t=e;for(;;){const e=us(t);if(!e)break;t=e}if(t.valueDeclaration&&312===t.valueDeclaration.kind&&512&t.flags)return!1;for(const t of e.declarations){const e=Ff(t);if(n.has(e.path))return!0}return!1}(e))return;let r;for(const i of e.declarations)if(i.symbol&&i.symbol.flags&t){const e=Ff(i),t=n.get(e.path);if(!t)return;(r||(r=[])).push(t)}return r}function i(t,r,o){if(!n.has(t.path)){n.set(t.path,[r,o]);for(const{fileName:n,resolutionMode:o}of t.referencedFiles){const a=QV(n,t.fileName),s=e.getSourceFile(a);s&&i(s,r,o||t.impliedNodeFormat)}}}}(),ce=function(){return{typeToTypeNode:(e,t,r,o)=>n(t,r,o,(t=>i(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,r,i)=>n(t,r,i,(t=>_(e,t,void 0))),signatureToSignatureDeclaration:(e,t,r,i,o)=>n(r,i,o,(n=>d(e,t,n))),symbolToEntityName:(e,t,r,i,o)=>n(r,i,o,(n=>M(e,n,t,!1))),symbolToExpression:(e,t,r,i,o)=>n(r,i,o,(n=>R(e,n,t))),symbolToTypeParameterDeclarations:(e,t,r,i)=>n(t,r,i,(t=>v(e,t))),symbolToParameterDeclaration:(e,t,r,i)=>n(t,r,i,(t=>m(e,t))),typeParameterToDeclaration:(e,t,r,i)=>n(t,r,i,(t=>p(e,t))),symbolTableToDeclarationStatements:(e,t,r,o,s)=>n(t,r,o,(t=>function(e,t,n){const r=ne(FC.createPropertyDeclaration,174,!0),o=ne(((e,t,n,r)=>FC.createPropertySignature(e,t,n,r)),173,!1),s=t.enclosingDeclaration;let c=[];const l=new Set,u=[],f=t;t={...f,usedSymbolNames:new Set(f.usedSymbolNames),remappedSymbolNames:new Map,tracker:void 0};const m={...f.tracker.inner,trackSymbol:(e,n,r)=>{var i;if(0===zs(e,n,r,!1).accessibility){const n=y(e,t,r);4&e.flags||A(n[0])}else if(null==(i=f.tracker.inner)?void 0:i.trackSymbol)return f.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new hB(t,m,f.tracker.moduleResolverHost),mf(e,((e,t)=>{ue(e,Fc(t))}));let g=!n;const h=e.get("export=");return h&&e.size>1&&2097152&h.flags&&(e=cf()).set("export=",h),E(e),v=function(e){const t=L(e,(e=>hA(e)&&!e.moduleSpecifier&&!e.assertClause&&!!e.exportClause&&yA(e.exportClause)));if(t>=0){const n=e[t],r=te(n.exportClause.elements,(t=>{if(!t.propertyName){const n=V(fe(e),(n=>jc(e[n],t.name)));if(C(n)&&I(n,(t=>eC(e[t])))){for(const t of n)e[t]=x(e[t]);return}}return t}));C(r)?e[t]=FC.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,FC.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.assertClause):an(e,t)}return e}(v=function(e){const t=V(e,(e=>hA(e)&&!e.moduleSpecifier&&!!e.exportClause&&yA(e.exportClause)));C(t)>1&&(e=[...V(e,(e=>!hA(e)||!!e.moduleSpecifier||!e.exportClause)),FC.createExportDeclaration(void 0,!1,FC.createNamedExports(X(t,(e=>xt(e.exportClause,yA).elements))),void 0)]);const n=V(e,(e=>hA(e)&&!!e.moduleSpecifier&&!!e.exportClause&&yA(e.exportClause)));if(C(n)>1){const t=ot(n,(e=>NE(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...V(e,(e=>-1===n.indexOf(e))),FC.createExportDeclaration(void 0,!1,FC.createNamedExports(X(n,(e=>xt(e.exportClause,yA).elements))),n[0].moduleSpecifier)])}return e}(v=function(e){const t=O(e,gA),n=L(e,nA);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&qE(t.expression)&&qE(r.name)&&Ic(r.name)===Ic(t.expression)&&r.body&&rA(r.body)){const i=V(e,(e=>!!(1&Pb(e)))),o=r.name;let a=r.body;if(C(i)&&(r=FC.updateModuleDeclaration(r,r.modifiers,r.name,a=FC.updateModuleBlock(a,FC.createNodeArray([...r.body.statements,FC.createExportDeclaration(void 0,!1,FC.createNamedExports(q(X(i,(e=>{return PN(t=e)?V(q(t.declarationList.declarations,$c),b):V([$c(t)],b);var t})),(e=>FC.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!O(e,(e=>e!==r&&jc(e,o)))){c=[];const n=!le(a.statements,(e=>vb(e,1)||gA(e)||hA(e)));w(a.statements,(e=>{F(e,n?1:0)})),e=[...V(e,(e=>e!==r&&e!==t)),...c]}}return e}(v=c))),s&&(UA(s)&&om(s)||nA(s))&&(!le(v,g_)||!p_(v)&&le(v,m_))&&v.push(BP(FC)),v;var v;function b(e){return!!e&&80===e.kind}function x(e){const t=-3&(1|Pb(e));return FC.updateModifiers(e,t)}function S(e){const t=-2&Pb(e);return FC.updateModifiers(e,t)}function E(e,t,n){t||u.push(new Map),e.forEach((e=>{N(e,!1,!!n)})),t||(u[u.length-1].forEach((e=>{N(e,!0,!!n)})),u.pop())}function N(e,c,u){const _=as(e);if(!l.has(xB(_))&&(l.add(xB(_)),!c||C(e.declarations)&&le(e.declarations,(e=>!!Dc(e,(e=>e===s)))))){const l=t;t=function(e){const t={...e};return t.typeParameterNames&&(t.typeParameterNames=new Map(t.typeParameterNames)),t.typeParameterNamesByText&&(t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterSymbolList&&(t.typeParameterSymbolList=new Set(t.typeParameterSymbolList)),t.tracker=new hB(t,t.tracker.inner,t.tracker.moduleResolverHost),t}(t),function(e,c,l){var u,_,d,f;const m=Fc(e.escapedName),g="default"===e.escapedName;if(c&&!(131072&t.flags)&&Dy(m)&&!g)return void(t.encounteredError=!0);let h=g&&!!(-113&e.flags||16&e.flags&&C(Td(ql(e))))&&!(2097152&e.flags),y=!h&&!c&&Dy(m)&&!g;(h||y)&&(c=!0);const v=(c?0:1)|(g&&!h?1024:0),b=1536&e.flags&&7&e.flags&&"export="!==e.escapedName,x=b&&ee(ql(e),e);if((8208&e.flags||x)&&B(ql(e),e,ue(e,m),v),524288&e.flags&&function(e,r,o){var a;const s=Eu(e),c=q(zo(e).typeParameters,(e=>p(e,t))),l=null==(a=e.declarations)?void 0:a.find(Eh),u=El(l?l.comment||l.parent.comment:void 0),_=t.flags;t.flags|=8388608;const d=t.enclosingDeclaration;t.enclosingDeclaration=l;const f=l&&l.typeExpression&&HA(l.typeExpression)&&Q(t,l.typeExpression.type,A,n)||i(s,t);F(gw(FC.createTypeAliasDeclaration(void 0,ue(e,r),c,f),u?[{kind:3,text:"*\n * "+u.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),o),t.flags=_,t.enclosingDeclaration=d}(e,m,v),98311&e.flags&&"export="!==e.escapedName&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!x)if(l)Z(e)&&(y=!1,h=!1);else{const r=ql(e),i=ue(e,m);if(16&e.flags||!ee(r,e)){const o=2&e.flags?wE(e)?2:1:(null==(u=e.parent)?void 0:u.valueDeclaration)&&UA(null==(_=e.parent)?void 0:_.valueDeclaration)?2:void 0,a=!h&&4&e.flags?se(i,e):i;let l=e.declarations&&O(e.declarations,(e=>GN(e)));l&&XN(l.parent)&&1===l.parent.declarations.length&&(l=l.parent.parent);const p=null==(d=e.declarations)?void 0:d.find(QD);if(p&&fN(p.parent)&&qE(p.parent.right)&&(null==(f=r.symbol)?void 0:f.valueDeclaration)&&UA(r.symbol.valueDeclaration)){const e=i===p.parent.right.escapedText?void 0:p.parent.right;F(FC.createExportDeclaration(void 0,!1,FC.createNamedExports([FC.createExportSpecifier(!1,e,i)])),0),t.tracker.trackSymbol(r.symbol,t.enclosingDeclaration,111551)}else F(tI(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(a,void 0,G(t,r,e,s,A,n))],o)),l),a!==i?-2&v:v),a===i||c||(F(FC.createExportDeclaration(void 0,!1,FC.createNamedExports([FC.createExportSpecifier(!1,a,i)])),0),y=!1,h=!1)}else B(r,e,i,v)}if(384&e.flags&&function(e,t,n){F(FC.createEnumDeclaration(FC.createModifiersFromModifierFlags(hO(e)?2048:0),ue(e,t),q(V(Td(ql(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&VA(e.declarations[0])?fj(e.declarations[0]):void 0;return FC.createEnumMember(Fc(e.escapedName),void 0===t?void 0:"string"==typeof t?FC.createStringLiteral(t):FC.createNumericLiteral(t))}))),n)}(e,m,v),32&e.flags&&(4&e.flags&&e.valueDeclaration&&fN(e.valueDeclaration.parent)&&yN(e.valueDeclaration.parent.right)?W(e,ue(e,m),v):function(e,o,s){var c,l;const u=null==(c=e.declarations)?void 0:c.find(Pu),_=t.enclosingDeclaration;t.enclosingDeclaration=u||_;const d=q(ru(e),(e=>p(e,t))),f=f_(Su(e)),m=gu(f),g=u&&hy(u),h=g&&function(e){const r=te(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let o=e.expression;if(Qb(o)){if(qE(o)&&""===Ic(o))return a(void 0);let e;if(({introducesError:e,node:o}=Y(o,t,A)),e)return a(void 0)}return a(FC.createExpressionWithTypeArguments(o,q(e.typeArguments,(e=>Q(t,e,A,n)||i(sx(e),t)))));function a(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}(g)||te(function(e){let t=a;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=hy(n);if(e)for(const n of e){const e=sx(n);wc(e)||(t===a?t=[e]:t.push(e))}}return t}(f),ae),y=ql(e),v=!!(null==(l=y.symbol)?void 0:l.valueDeclaration)&&Pu(y.symbol.valueDeclaration),b=v?du(y):St,x=[...C(m)?[FC.createHeritageClause(96,q(m,(e=>function(e,n,r){const o=oe(e,111551);if(o)return o;const a=se(`${r}_base`);return F(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(a,void 0,i(n,t))],2)),0),FC.createExpressionWithTypeArguments(FC.createIdentifier(a),void 0)}(e,b,o))))]:[],...C(h)?[FC.createHeritageClause(119,h)]:[]],S=function(e,t,n){if(!C(t))return n;const r=new Map;w(n,(e=>{r.set(e.escapedName,e)}));for(const n of t){const t=Td(f_(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return Ze(r.values())}(f,m,Td(f)),k=V(S,(e=>{const t=e.valueDeclaration;return!(!t||Jc(t)&&WE(t.name))})),T=le(S,(e=>{const t=e.valueDeclaration;return!!t&&Jc(t)&&WE(t.name)}))?[FC.createPropertyDeclaration(void 0,FC.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:a,E=X(k,(e=>r(e,!1,m[0]))),D=X(V(Td(y),(e=>!(4194304&e.flags||"prototype"===e.escapedName||U(e)))),(e=>r(e,!0,b))),N=!v&&e.valueDeclaration&&Pg(e.valueDeclaration)&&!le(tf(y,1))?[FC.createConstructorDeclaration(FC.createModifiersFromModifierFlags(8),[],void 0)]:re(1,y,b,176),P=ie(f,m[0]);t.enclosingDeclaration=_,F(tI(FC.createClassDeclaration(void 0,o,d,x,[...P,...D,...N,...E,...T]),e.declarations&&V(e.declarations,(e=>QN(e)||yN(e)))[0]),s)}(e,ue(e,m),v)),(1536&e.flags&&(!b||function(e){return I(j(e),(e=>!(111551&Oa(Fa(e)))))}(e))||x)&&function(e,n,r){const i=it(j(e),(t=>t.parent&&t.parent===e?"real":"merged")),o=i.get("real")||a,s=i.get("merged")||a;C(o)&&$(o,ue(e,n),r,!!(67108880&e.flags));if(C(s)){const r=Ff(t.enclosingDeclaration),i=ue(e,n),o=FC.createModuleBlock([FC.createExportDeclaration(void 0,!1,FC.createNamedExports(te(V(s,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=Fc(n.escapedName),s=ue(n,a),c=n.declarations&&_a(n);if(r&&(c?r!==Ff(c):!le(n.declarations,(e=>Ff(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&Aa(c,!0);A(l||n);const u=l?ue(l,Fc(l.escapedName)):s;return FC.createExportSpecifier(!1,a===u?void 0:u,a)}))))]);F(FC.createModuleDeclaration(void 0,FC.createIdentifier(i),o,32),0)}}(e,m,v),64&e.flags&&!(32&e.flags)&&function(e,n,r){const i=Su(e),a=q(ru(e),(e=>p(e,t))),s=gu(i),c=C(s)?Ey(s):void 0,l=X(Td(i),(e=>function(e,t){return o(e,!1,t)}(e,c))),u=re(0,i,c,179),_=re(1,i,c,180),d=ie(i,c),f=C(s)?[FC.createHeritageClause(96,te(s,(e=>oe(e,111551))))]:void 0;F(FC.createInterfaceDeclaration(void 0,ue(e,n),a,f,[...d,..._,...u,...l]),r)}(e,m,v),2097152&e.flags&&W(e,ue(e,m),v),4&e.flags&&"export="===e.escapedName&&Z(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Ua(n,n.moduleSpecifier);e&&F(FC.createExportDeclaration(void 0,n.isTypeOnly,void 0,FC.createStringLiteral(T(e,t))),0)}h?F(FC.createExportAssignment(void 0,!1,FC.createIdentifier(ue(e,m))),0):y&&F(FC.createExportDeclaration(void 0,!1,FC.createNamedExports([FC.createExportSpecifier(!1,ue(e,m),m)])),0)}(e,c,u),t.reportedDiagnostic&&(f.reportedDiagnostic=t.reportedDiagnostic),t=l}}function A(e){if(le(e.declarations,Qy))return;Fn.assertIsDefined(u[u.length-1]),se(Fc(e.escapedName),e);const t=!!(2097152&e.flags)&&!le(e.declarations,(e=>!!Dc(e,hA)||fA(e)||aA(e)&&!kA(e.moduleReference)));u[t?0:u.length-1].set(xB(e),e)}function F(e,n){if(nI(e)){let r=0;const i=t.enclosingDeclaration&&(Eh(t.enclosingDeclaration)?Ff(t.enclosingDeclaration):t.enclosingDeclaration);1&n&&i&&(function(e){return UA(e)&&(om(e)||am(e))||gp(e)&&!Sp(e)}(i)||nA(i))&&eC(e)&&(r|=1),!g||1&r||i&&33554432&i.flags||!(tA(e)||PN(e)||YN(e)||QN(e)||nA(e))||(r|=2),1024&n&&(QN(e)||ZN(e)||YN(e))&&(r|=1024),r&&(e=FC.updateModifiers(e,r|Pb(e)))}c.push(e)}function j(e){const t=ns(e);return t?V(Ze(t.values()),(e=>U(e)&&Js(e.escapedName,99))):[]}function B(e,r,i,o){const a=tf(e,0);for(const e of a)F(tI(d(e,262,t,{name:FC.createIdentifier(i),privateSymbolVisitor:A,bundledImports:n}),J(e)),o);1536&r.flags&&r.exports&&r.exports.size||$(V(Td(e),U),i,o,!0)}function J(e){if(e.declaration&&e.declaration.parent){if(fN(e.declaration.parent)&&5===nh(e.declaration.parent))return e.declaration.parent;if(GN(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function $(e,n,r,i){if(C(e)){const o=it(e,(e=>!C(e.declarations)||le(e.declarations,(e=>Ff(e)===Ff(t.enclosingDeclaration)))?"local":"remote")).get("local")||a;let l=uI.createModuleDeclaration(void 0,FC.createIdentifier(n),FC.createModuleBlock([]),32);OT(l,s),l.locals=cf(e),l.symbol=e[0].parent;const u=c;c=[];const _=g;g=!1;const d={...t,enclosingDeclaration:l},f=t;t=d,E(cf(o),i,!0),t=f,g=_;const p=c;c=u;const m=q(p,(e=>gA(e)&&!e.isExportEquals&&qE(e.expression)?FC.createExportDeclaration(void 0,!1,FC.createNamedExports([FC.createExportSpecifier(!1,e.expression,FC.createIdentifier("default"))])):e)),h=I(m,(e=>vb(e,1)))?q(m,S):m;l=FC.updateModuleDeclaration(l,l.modifiers,l.name,FC.createModuleBlock(h)),F(l,r)}}function U(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&bb(e.valueDeclaration)&&Pu(e.valueDeclaration.parent))}function W(e,r,i){var o,a,s,c,l;const u=_a(e);if(!u)return Fn.fail();const _=as(Aa(u,!0));if(!_)return;let d=bp(_)&&D(e.declarations,(e=>{if(mA(e)||vA(e))return Ic(e.propertyName||e.name);if(fN(e)||gA(e)){const t=gA(e)?e.expression:e.right;if(QD(t))return Ic(t.name)}if(da(e)){const t=$c(e);if(t&&qE(t))return Ic(t)}}))||Fc(_.escapedName);"export="===d&&P&&(d="default");const f=ue(_,d);switch(A(_),u.kind){case 208:if(260===(null==(a=null==(o=u.parent)?void 0:o.parent)?void 0:a.kind)){const e=T(_.parent||_,t),{propertyName:n}=u;F(FC.createImportDeclaration(void 0,FC.createImportClause(!1,void 0,FC.createNamedImports([FC.createImportSpecifier(!1,n&&qE(n)?FC.createIdentifier(Ic(n)):void 0,FC.createIdentifier(r))])),FC.createStringLiteral(e),void 0),0);break}Fn.failBadSyntaxKind((null==(s=u.parent)?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(l=null==(c=u.parent)?void 0:c.parent)?void 0:l.kind)&&H(Fc(e.escapedName),f);break;case 260:if(QD(u.initializer)){const e=u.initializer,n=FC.createUniqueName(r),o=T(_.parent||_,t);F(FC.createImportEqualsDeclaration(void 0,!1,n,FC.createExternalModuleReference(FC.createStringLiteral(o))),0),F(FC.createImportEqualsDeclaration(void 0,!1,FC.createIdentifier(r),FC.createQualifiedName(n,e.name)),i);break}case 271:if("export="===_.escapedName&&le(_.declarations,(e=>UA(e)&&am(e)))){Z(e);break}const p=!(512&_.flags||GN(u));F(FC.createImportEqualsDeclaration(void 0,!1,FC.createIdentifier(r),p?M(_,t,67108863,!1):FC.createExternalModuleReference(FC.createStringLiteral(T(_,t)))),p?i:0);break;case 270:F(FC.createNamespaceExportDeclaration(Ic(u.name)),0);break;case 273:{const e=T(_.parent||_,t),i=n?FC.createStringLiteral(e):u.parent.moduleSpecifier;F(FC.createImportDeclaration(void 0,FC.createImportClause(!1,FC.createIdentifier(r),void 0),i,u.parent.assertClause),0);break}case 274:{const e=T(_.parent||_,t),i=n?FC.createStringLiteral(e):u.parent.parent.moduleSpecifier;F(FC.createImportDeclaration(void 0,FC.createImportClause(!1,void 0,FC.createNamespaceImport(FC.createIdentifier(r))),i,u.parent.parent.assertClause),0);break}case 280:F(FC.createExportDeclaration(void 0,!1,FC.createNamespaceExport(FC.createIdentifier(r)),FC.createStringLiteral(T(_,t))),0);break;case 276:{const e=T(_.parent||_,t),i=n?FC.createStringLiteral(e):u.parent.parent.parent.moduleSpecifier;F(FC.createImportDeclaration(void 0,FC.createImportClause(!1,void 0,FC.createNamedImports([FC.createImportSpecifier(!1,r!==d?FC.createIdentifier(d):void 0,FC.createIdentifier(r))])),i,u.parent.parent.parent.assertClause),0);break}case 281:const m=u.parent.parent.moduleSpecifier;H(Fc(e.escapedName),m?d:f,m&&ed(m)?FC.createStringLiteral(m.text):void 0);break;case 277:Z(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?Z(e):H(r,f);break;default:return Fn.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}function H(e,t,n){F(FC.createExportDeclaration(void 0,!1,FC.createNamedExports([FC.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function Z(e){var r;if(4194304&e.flags)return!1;const i=Fc(e.escapedName),o="export="===i,a=o||"default"===i,l=e.declarations&&_a(e),u=l&&Aa(l,!0);if(u&&C(u.declarations)&&le(u.declarations,(e=>Ff(e)===Ff(s)))){const n=l&&(gA(l)||fN(l)?fy(l):py(l)),r=n&&Qb(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(th(e.expression)&&!WE(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,_=r&&Va(r,67108863,!0,!0,s);(_||u)&&A(_||u);const d=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,a)c.push(FC.createExportAssignment(void 0,o,R(u,t,67108863)));else if(r===n&&r)H(i,Ic(r));else if(n&&yN(n))H(i,ue(u,Mc(u)));else{const n=se(i,e);F(FC.createImportEqualsDeclaration(void 0,!1,FC.createIdentifier(n),M(u,t,67108863,!1)),0),H(i,n)}return t.tracker.disableTrackSymbol=d,!0}{const l=se(i,e),_=dC(ql(as(e)));return ee(_,e)?B(_,e,l,a?0:1):F(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(l,void 0,G(t,_,e,s,A,n))],267===(null==(r=t.enclosingDeclaration)?void 0:r.kind)?1:2)),u&&4&u.flags&&"export="===u.escapedName?2:i===l?1:0),a?(c.push(FC.createExportAssignment(void 0,o,FC.createIdentifier(l))),!0):i!==l&&(H(i,l),!0)}}function ee(e,n){const r=Ff(t.enclosingDeclaration);return 48&tS(e)&&!C(df(e))&&!oc(e)&&!(!C(V(Td(e),U))&&!C(tf(e,0)))&&!C(tf(e,1))&&!K(n,s)&&!(e.symbol&&le(e.symbol.declarations,(e=>Ff(e)!==r)))&&!le(Td(e),(e=>n_(e.escapedName)))&&!le(Td(e),(e=>le(e.declarations,(e=>Ff(e)!==r))))&&I(Td(e),(e=>Js(Mc(e),k)))}function ne(e,r,i){return function(o,a,c){var l,u,_,f,p;const m=Vx(o),g=!!(8&m);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||c&&Zd(c,o.escapedName)&&sO(Zd(c,o.escapedName))===sO(o)&&(16777216&o.flags)==(16777216&Zd(c,o.escapedName).flags)&&Gx(ql(o),xc(c,o.escapedName)))return[];const h=-513&m|(a?32:0),y=z(o,t),v=null==(l=o.declarations)?void 0:l.find(yn(fD,Fu,GN,dD,fN,QD));if(98304&o.flags&&i){const e=[];if(65536&o.flags&&e.push(tI(FC.createSetAccessorDeclaration(FC.createModifiersFromModifierFlags(h),y,[FC.createParameterDeclaration(void 0,void 0,"arg",void 0,g?void 0:G(t,ql(o),o,s,A,n))],void 0),(null==(u=o.declarations)?void 0:u.find(U_))||v)),32768&o.flags){const r=8&m;e.push(tI(FC.createGetAccessorDeclaration(FC.createModifiersFromModifierFlags(h),y,[],r?void 0:G(t,ql(o),o,s,A,n),void 0),(null==(_=o.declarations)?void 0:_.find(q_))||v))}return e}if(98311&o.flags)return tI(e(FC.createModifiersFromModifierFlags((sO(o)?64:0)|h),y,16777216&o.flags?FC.createToken(58):void 0,g?void 0:G(t,Ul(o),o,s,A,n),void 0),(null==(f=o.declarations)?void 0:f.find(yn(fD,GN)))||v);if(8208&o.flags){const n=tf(ql(o),0);if(8&h)return tI(e(FC.createModifiersFromModifierFlags((sO(o)?64:0)|h),y,16777216&o.flags?FC.createToken(58):void 0,void 0,void 0),(null==(p=o.declarations)?void 0:p.find(Cu))||n[0]&&n[0].declaration||o.declarations&&o.declarations[0]);const i=[];for(const e of n){const n=d(e,r,t,{name:y,questionToken:16777216&o.flags?FC.createToken(58):void 0,modifiers:h?FC.createModifiersFromModifierFlags(h):void 0}),a=e.declaration&&ph(e.declaration.parent)?e.declaration.parent:e.declaration;i.push(tI(n,a))}return i}return Fn.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function re(e,n,r,i){const o=tf(n,e);if(1===e){if(!r&&I(o,(e=>0===C(e.parameters))))return[];if(r){const e=tf(r,1);if(!C(e)&&I(o,(e=>0===C(e.parameters))))return[];if(e.length===o.length){let t=!1;for(let n=0;ni(e,t))),o=R(e.target.symbol,t,788968)):e.symbol&&js(e.symbol,s,n)&&(o=R(e.symbol,t,788968)),o)return FC.createExpressionWithTypeArguments(o,r)}function ae(e){return oe(e,788968)||(e.symbol?FC.createExpressionWithTypeArguments(R(e.symbol,t,788968),void 0):void 0)}function se(e,n){var r,i;const o=n?xB(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=ce(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function ce(e,n){if("default"===n||"__class"===n||"__function"===n){const r=t.flags;t.flags|=16777216;const i=_c(e,t);t.flags=r,n=i.length>0&&$g(i.charCodeAt(0))?yv(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),Js(n,k)&&!Dy(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ue(e,n){const r=xB(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=ce(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t,s))),symbolToNode:(e,t,r,i,o)=>n(r,i,o,(n=>function(e,t,n){if(1073741824&t.flags){if(e.valueDeclaration){const t=$c(e.valueDeclaration);if(t&&cD(t))return t}const r=zo(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,FC.createComputedPropertyName(R(r.symbol,t,n))}return R(e,t,n)}(e,n,t)))};function n(t,n,r,i){Fn.assert(void 0===t||0==(16&t.flags));const o=(null==r?void 0:r.trackSymbol)?r.moduleResolverHost:134217728&n?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ut(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:ut(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}(e):void 0,a={enclosingDeclaration:t,flags:n||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};a.tracker=new hB(a,r,o);const s=i(a);return a.truncating&&1&a.flags&&a.tracker.reportTruncationError(),a.encounteredError?void 0:s}function r(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?sd:ad)}function i(e,n){const c=n.flags,p=function(e,n){var c,p;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const m=8388608&n.flags;if(n.flags&=-8388609,!e)return 262144&n.flags?(n.approximateLength+=3,FC.createKeywordTypeNode(133)):void(n.encounteredError=!0);if(536870912&n.flags||(e=Wd(e)),1&e.flags)return e.aliasSymbol?FC.createTypeReferenceNode(E(e.aliasSymbol),u(e.aliasTypeArguments,n)):e===wt?hw(FC.createKeywordTypeNode(133),3,"unresolved"):(n.approximateLength+=3,FC.createKeywordTypeNode(e===Dt?141:133));if(2&e.flags)return FC.createKeywordTypeNode(159);if(4&e.flags)return n.approximateLength+=6,FC.createKeywordTypeNode(154);if(8&e.flags)return n.approximateLength+=6,FC.createKeywordTypeNode(150);if(64&e.flags)return n.approximateLength+=6,FC.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return n.approximateLength+=7,FC.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=us(e.symbol),r=N(t,n,788968);if(ju(t)===e)return r;const i=Mc(e.symbol);return Js(i,0)?T(r,FC.createTypeReferenceNode(i,void 0)):KD(r)?(r.isTypeOf=!0,FC.createIndexedAccessTypeNode(r,FC.createLiteralTypeNode(FC.createStringLiteral(i)))):TD(r)?FC.createIndexedAccessTypeNode(FC.createTypeQueryNode(r.typeName),FC.createLiteralTypeNode(FC.createStringLiteral(i))):Fn.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return N(e.symbol,n,788968)}if(128&e.flags)return n.approximateLength+=e.value.length+2,FC.createLiteralTypeNode(rw(FC.createStringLiteral(e.value,!!(268435456&n.flags)),16777216));if(256&e.flags){const t=e.value;return n.approximateLength+=(""+t).length,FC.createLiteralTypeNode(t<0?FC.createPrefixUnaryExpression(41,FC.createNumericLiteral(-t)):FC.createNumericLiteral(t))}if(2048&e.flags)return n.approximateLength+=ST(e.value).length+1,FC.createLiteralTypeNode(FC.createBigIntLiteral(e.value));if(512&e.flags)return n.approximateLength+=e.intrinsicName.length,FC.createLiteralTypeNode("true"===e.intrinsicName?FC.createTrue():FC.createFalse());if(8192&e.flags){if(!(1048576&n.flags)){if(Rs(e.symbol,n.enclosingDeclaration))return n.approximateLength+=6,N(e.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,FC.createTypeOperatorNode(158,FC.createKeywordTypeNode(155))}if(16384&e.flags)return n.approximateLength+=4,FC.createKeywordTypeNode(116);if(32768&e.flags)return n.approximateLength+=9,FC.createKeywordTypeNode(157);if(65536&e.flags)return n.approximateLength+=4,FC.createLiteralTypeNode(FC.createNull());if(131072&e.flags)return n.approximateLength+=5,FC.createKeywordTypeNode(146);if(4096&e.flags)return n.approximateLength+=6,FC.createKeywordTypeNode(155);if(67108864&e.flags)return n.approximateLength+=6,FC.createKeywordTypeNode(151);if(XT(e))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),null==(p=(c=n.tracker).reportInaccessibleThisError)||p.call(c)),n.approximateLength+=4,FC.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&n.flags||Ls(e.aliasSymbol,n.enclosingDeclaration))){const t=u(e.aliasTypeArguments,n);return!Es(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===C(t)&&e.aliasSymbol===Zn.symbol?FC.createArrayTypeNode(t[0]):N(e.aliasSymbol,n,788968,t):FC.createTypeReferenceNode(FC.createIdentifier(""),t)}const g=tS(e);if(4&g)return Fn.assert(!!(524288&e.flags)),e.node?x(e,k):k(e);if(262144&e.flags||3&g){if(262144&e.flags&&B(n.inferTypeParameters,e)){let t;n.approximateLength+=Mc(e.symbol).length+6;const r=wd(e);if(r){const o=dp(e,!0);o&&Gx(r,o)||(n.approximateLength+=9,t=r&&i(r,n))}return FC.createInferTypeNode(f(e,n,t))}if(4&n.flags&&262144&e.flags&&!Ls(e.symbol,n.enclosingDeclaration)){const t=F(e,n);return n.approximateLength+=Ic(t).length,FC.createTypeReferenceNode(FC.createIdentifier(Ic(t)),void 0)}if(e.symbol)return N(e.symbol,n,788968);const t=(e===Vn||e===Kn)&&o&&o.symbol?(e===Kn?"sub-":"super-")+Mc(o.symbol):"?";return FC.createTypeReferenceNode(FC.createIdentifier(t),void 0)}if(1048576&e.flags&&e.origin&&(e=e.origin),3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r0?1048576&e.flags?FC.createUnionTypeNode(r):FC.createIntersectionTypeNode(r):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&g)return Fn.assert(!!(524288&e.flags)),b(e);if(4194304&e.flags){const t=e.type;n.approximateLength+=6;const r=i(t,n);return FC.createTypeOperatorNode(143,r)}if(134217728&e.flags){const t=e.texts,r=e.types,o=FC.createTemplateHead(t[0]),a=FC.createNodeArray(q(r,((e,o)=>FC.createTemplateLiteralTypeSpan(i(e,n),(ofunction(e){const t=i(e.checkType,n);if(n.approximateLength+=15,4&n.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=ws(Ao(262144,"T")),o=F(r,n),a=FC.createTypeReferenceNode(o);n.approximateLength+=37;const s=kx(e.root.checkType,r,e.mapper),c=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const l=i(Mx(e.root.extendsType,s),n);n.inferTypeParameters=c;const u=h(Mx(sx(e.root.node.trueType),s)),_=h(Mx(sx(e.root.node.falseType),s));return FC.createConditionalTypeNode(t,FC.createInferTypeNode(FC.createTypeParameterDeclaration(void 0,FC.cloneNode(a.typeName))),FC.createConditionalTypeNode(FC.createTypeReferenceNode(FC.cloneNode(o)),i(e.checkType,n),FC.createConditionalTypeNode(a,l,u,_),FC.createKeywordTypeNode(146)),FC.createKeywordTypeNode(146))}const r=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const o=i(e.extendsType,n);n.inferTypeParameters=r;const a=h(qv(e)),s=h(Gv(e));return FC.createConditionalTypeNode(t,o,a,s)}(e))):33554432&e.flags?i(e.baseType,n):Fn.fail("Should be unreachable.");function h(e){var t,r,o;return 1048576&e.flags?(null==(t=n.visitedTypes)?void 0:t.has(Rh(e)))?(131072&n.flags||(n.encounteredError=!0,null==(o=null==(r=n.tracker)?void 0:r.reportCyclicStructureError)||o.call(r)),s(n)):x(e,(e=>i(e,n))):i(e,n)}function y(e){return!!Nx(e)}function v(e){return!!e.target&&y(e.target)&&!y(e)}function b(e){var t,r;const i=e.id,o=e.symbol;if(o){const r=oc(e)?788968:111551;if(YF(o.valueDeclaration))return N(o,n,r);if(32&o.flags&&!Il(o)&&(!(o.valueDeclaration&&Pu(o.valueDeclaration)&&2048&n.flags)||QN(o.valueDeclaration)&&0===zs(o,n.enclosingDeclaration,r,!1).accessibility)||896&o.flags||function(){var e;const t=!!(8192&o.flags)&&le(o.declarations,(e=>bb(e))),r=!!(16&o.flags)&&(o.parent||w(o.declarations,(e=>312===e.parent.kind||268===e.parent.kind)));if(t||r)return(!!(4096&n.flags)||(null==(e=n.visitedTypes)?void 0:e.has(i)))&&(!(8&n.flags)||Rs(o,n.enclosingDeclaration))}())return N(o,n,r);if(null==(t=n.visitedTypes)?void 0:t.has(i)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=Qh(e.symbol.declarations[0].parent);if(eA(t))return cs(t)}}(e);return t?N(t,n,788968):s(n)}return x(e,S)}if(8388608&tS(e)){const t=e;if(ED(t.node)){const e=Q(n,t.node);if(e)return e}return(null==(r=n.visitedTypes)?void 0:r.has(i))?s(n):x(e,S)}return S(e)}function x(e,t){var r,i;const o=e.id,a=16&tS(e)&&e.symbol&&32&e.symbol.flags,c=4&tS(e)&&e.node?"N"+bB(e.node):16777216&e.flags?"N"+bB(e.root.node):e.symbol?(a?"+":"")+xB(e.symbol):void 0;n.visitedTypes||(n.visitedTypes=new Set),c&&!n.symbolDepth&&(n.symbolDepth=new Map);const l=n.enclosingDeclaration&&$o(n.enclosingDeclaration),u=`${Rh(e)}|${n.flags}`;l&&(l.serializedTypes||(l.serializedTypes=new Map));const _=null==(r=null==l?void 0:l.serializedTypes)?void 0:r.get(u);if(_)return _.truncating&&(n.truncating=!0),n.approximateLength+=_.addedLength,function e(t){return tv(t)||Ac(t)!==t?tI(FC.cloneNode($B(t,e,P$,g)),t):t}(_.node);let d;if(c){if(d=n.symbolDepth.get(c)||0,d>10)return s(n);n.symbolDepth.set(c,d+1)}n.visitedTypes.add(o);const f=n.approximateLength,p=t(e),m=n.approximateLength-f;return n.reportedDiagnostic||n.encounteredError||null==(i=null==l?void 0:l.serializedTypes)||i.set(u,{node:p,truncating:n.truncating,addedLength:m}),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,d),p;function g(e,t,n,r,i){return e&&0===e.length?tI(FC.createNodeArray(void 0,e.hasTrailingComma),e):IB(e,t,n,r,i)}}function S(e){if(yd(e)||e.containsError)return function(e){var t;Fn.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?FC.createToken(e.declaration.readonlyToken.kind):void 0,o=e.declaration.questionToken?FC.createToken(e.declaration.questionToken.kind):void 0;let a,s;const c=!fd(e)&&!(2&pd(e).flags)&&4&n.flags&&!(262144&ld(e).flags&&4194304&(null==(t=wd(ld(e)))?void 0:t.flags));if(fd(e)){if(v(e)&&4&n.flags){const e=F(ws(Ao(262144,"T")),n);s=FC.createTypeReferenceNode(e)}a=FC.createTypeOperatorNode(143,s||i(pd(e),n))}else if(c){const e=F(ws(Ao(262144,"T")),n);s=FC.createTypeReferenceNode(e),a=s}else a=i(ld(e),n);const l=f(cd(e),n,a),u=e.declaration.nameType?i(ud(e),n):void 0,_=i(MT(_d(e),!!(4&md(e))),n),d=FC.createMappedTypeNode(r,l,u,o,_,void 0);n.approximateLength+=10;const p=rw(d,1);if(v(e)&&4&n.flags){const t=Mx(wd(sx(e.declaration.typeParameter.constraint.type))||Nt,e.mapper);return FC.createConditionalTypeNode(i(pd(e),n),FC.createInferTypeNode(FC.createTypeParameterDeclaration(void 0,FC.cloneNode(s.typeName),2&t.flags?void 0:i(t,n))),p,FC.createKeywordTypeNode(146))}return c?FC.createConditionalTypeNode(i(ld(e),n),FC.createInferTypeNode(FC.createTypeParameterDeclaration(void 0,FC.cloneNode(s.typeName),FC.createTypeOperatorNode(143,i(pd(e),n)))),p,FC.createKeywordTypeNode(146)):p}(e);const t=bd(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return n.approximateLength+=2,rw(FC.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length)return d(t.callSignatures[0],184,n);if(1===t.constructSignatures.length&&!t.callSignatures.length)return d(t.constructSignatures[0],185,n)}const o=V(t.constructSignatures,(e=>!!(4&e.flags)));if(le(o)){const e=q(o,tp);return t.callSignatures.length+(t.constructSignatures.length-o.length)+t.indexInfos.length+(2048&n.flags?$(t.properties,(e=>!(4194304&e.flags))):C(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=V(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Ps(e.symbol,e.members,e.callSignatures,le(t)?t:a,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),i(Ey(e),n)}const c=n.flags;n.flags|=4194304;const u=function(e){if(r(n))return[FC.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const r of e.callSignatures)t.push(d(r,179,n));for(const r of e.constructSignatures)4&r.flags||t.push(d(r,180,n));for(const r of e.indexInfos)t.push(_(r,n,1024&e.objectFlags?s(n):void 0));const i=e.properties;if(!i)return t;let o=0;for(const e of i){if(o++,2048&n.flags){if(4194304&e.flags)continue;24&Vx(e)&&n.tracker.reportPrivateInBaseOfClassExpression&&n.tracker.reportPrivateInBaseOfClassExpression(Fc(e.escapedName))}if(r(n)&&o+20){const r=(e.target.typeParameters||a).length;o=u(t.slice(s,r),n)}const c=n.flags;n.flags|=16;const l=N(e.symbol,n,788968,o);return n.flags=c,i?T(i,l):l}}if(t=H(t,((t,n)=>MT(t,!!(2&e.target.elementFlags[n])))),t.length>0){const r=Ip(e),i=u(t.slice(0,r),n);if(i){const{labeledElementDeclarations:t}=e.target;for(let n=0;n!(32768&e.flags))),0);for(const r of e){const e=d(r,173,t,{name:l,questionToken:u});n.push(m(e))}if(e.length||!u)return}let _;c(e,t)?_=s(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),_=o?G(t,o,e,a):FC.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const f=sO(e)?[FC.createToken(148)]:void 0;f&&(t.approximateLength+=9);const p=FC.createPropertySignature(f,l,u,_);function m(t){var n;if(le(e.declarations,(e=>355===e.kind))){const r=El((null==(n=e.declarations)?void 0:n.find((e=>355===e.kind))).comment);r&&gw(t,[{kind:3,text:"*\n * "+r.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else e.valueDeclaration&&pw(t,e.valueDeclaration);return t}n.push(m(p))}function u(e,t,n){if(le(e)){if(r(t)){if(!n)return[FC.createTypeReferenceNode("...",void 0)];if(e.length>2)return[i(e[0],t),FC.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),i(e[e.length-1],t)]}const o=64&t.flags?void 0:_t(),a=[];let s=0;for(const n of e){if(s++,r(t)&&s+2{if(!DT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)a[r]=i(n,t)})),t.flags=e}return a}}function _(e,t,n){const r=zp(e)||"x",o=i(e.keyType,t),a=FC.createParameterDeclaration(void 0,void 0,r,void 0,o,void 0);return n||(n=i(e.type||St,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,FC.createIndexSignature(e.isReadonly?[FC.createToken(148)]:void 0,[a],n)}function d(e,t,n,r){var o;const s=256&n.flags;let c,l;s&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&e.target&&e.mapper&&e.target.typeParameters?l=e.target.typeParameters.map((t=>i(Mx(t,e.mapper),n))):c=e.typeParameters&&e.typeParameters.map((e=>p(e,n)));const u=k_(e,!0)[0];let _;if(n.enclosingDeclaration&&e.declaration&&e.declaration!==n.enclosingDeclaration&&!Pg(e.declaration)&&le(u)){const e=$o(n.enclosingDeclaration).fakeScopeForSignatureDeclaration?n.enclosingDeclaration:void 0;Fn.assertOptionalNode(e,AN);const t=(null==e?void 0:e.locals)??cf();let r;for(const e of u)t.has(e.escapedName)||(r=ke(r,e.escapedName),t.set(e.escapedName,e));if(r){let i=function(){w(r,(e=>t.delete(e)))};if(e)_=i;else{const e=uI.createBlock(a);$o(e).fakeScopeForSignatureDeclaration=!0,e.locals=t;const r=n.enclosingDeclaration;OT(e,r),n.enclosingDeclaration=e,_=()=>{n.enclosingDeclaration=r,i()}}}}const d=(le(u,(e=>e!==u[u.length-1]&&!!(32768&$x(e))))?e.parameters:u).map((e=>m(e,n,176===t,null==r?void 0:r.privateSymbolVisitor,null==r?void 0:r.bundledImports))),f=33554432&n.flags?void 0:function(e,t){if(e.thisParameter)return m(e.thisParameter,t);if(e.declaration&&Pg(e.declaration)){const n=pl(e.declaration);if(n&&n.typeExpression)return FC.createParameterDeclaration(void 0,void 0,"this",void 0,i(sx(n.typeExpression),t))}}(e,n);let g;f&&d.unshift(f);const h=Kf(e);if(h){const e=2===h.kind||3===h.kind?FC.createToken(131):void 0,t=1===h.kind||3===h.kind?rw(FC.createIdentifier(h.parameterName),16777216):FC.createThisTypeNode(),r=h.type&&i(h.type,n);g=FC.createTypePredicateNode(e,t,r)}else{const t=qf(e);!t||s&&Cc(t)?s||(g=FC.createKeywordTypeNode(133)):g=function(e,t,n,r,o){if(!wc(t)&&e.enclosingDeclaration){const i=n.declaration&&ob(n.declaration),a=W(e.enclosingDeclaration);if(Dc(i,(e=>e===a))&&i){const a=sx(i);if((262144&a.flags&&a.isThisType?Mx(a,n.mapper):a)===t&&U(i,t)){const t=Q(e,i,r,o);if(t)return t}}}return i(t,e)}(n,t,e,null==r?void 0:r.privateSymbolVisitor,null==r?void 0:r.bundledImports)}let y=null==r?void 0:r.modifiers;if(185===t&&4&e.flags){const e=Rb(y);y=FC.createModifiersFromModifierFlags(256|e)}const v=179===t?FC.createCallSignature(c,d,g):180===t?FC.createConstructSignature(c,d,g):173===t?FC.createMethodSignature(y,(null==r?void 0:r.name)??FC.createIdentifier(""),null==r?void 0:r.questionToken,c,d,g):174===t?FC.createMethodDeclaration(y,void 0,(null==r?void 0:r.name)??FC.createIdentifier(""),void 0,c,d,g,void 0):176===t?FC.createConstructorDeclaration(y,d,void 0):177===t?FC.createGetAccessorDeclaration(y,(null==r?void 0:r.name)??FC.createIdentifier(""),d,g,void 0):178===t?FC.createSetAccessorDeclaration(y,(null==r?void 0:r.name)??FC.createIdentifier(""),d,void 0):181===t?FC.createIndexSignature(y,d,g):324===t?FC.createJSDocFunctionType(d,g):184===t?FC.createFunctionTypeNode(c,d,g??FC.createTypeReferenceNode(FC.createIdentifier(""))):185===t?FC.createConstructorTypeNode(y,c,d,g??FC.createTypeReferenceNode(FC.createIdentifier(""))):262===t?FC.createFunctionDeclaration(y,void 0,(null==r?void 0:r.name)?xt(r.name,qE):FC.createIdentifier(""),c,d,g,void 0):218===t?FC.createFunctionExpression(y,void 0,(null==r?void 0:r.name)?xt(r.name,qE):FC.createIdentifier(""),c,d,g,FC.createBlock([])):219===t?FC.createArrowFunction(y,c,d,g,void 0,FC.createBlock([])):Fn.assertNever(t);return l&&(v.typeArguments=FC.createNodeArray(l)),330===(null==(o=e.declaration)?void 0:o.kind)&&346===e.declaration.parent.kind&&hw(v,3,op(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0),null==_||_(),v}function f(e,t,n){const r=t.flags;t.flags&=-513;const o=FC.createModifiersFromModifierFlags(uk(e)),a=F(e,t),s=Bd(e),c=s&&i(s,t);return t.flags=r,FC.createTypeParameterDeclaration(o,a,n,c)}function p(e,t,n=wd(e)){return f(e,t,n&&i(n,t))}function m(e,t,n,r,i){let o=af(e,169);o||lf(e)||(o=af(e,348));let a=ql(e);o&&oj(o)&&(a=pT(a));const s=G(t,a,e,t.enclosingDeclaration,r,i),c=!(8192&t.flags)&&n&&o&&nI(o)?q(Uc(o),FC.cloneNode):void 0,l=o&&rd(o)||32768&$x(e)?FC.createToken(26):void 0,u=o&&o.name?80===o.name.kind?rw(FC.cloneNode(o.name),16777216):166===o.name.kind?rw(FC.cloneNode(o.name.right),16777216):function e(n){t.tracker.canTrackSymbol&&cD(n)&&Zu(n)&&g(n.expression,t.enclosingDeclaration,t);let r=$B(n,e,P$,void 0,e);return GD(r)&&(r=FC.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),tv(r)||(r=FC.cloneNode(r)),rw(r,16777217)}(o.name):Mc(e),_=o&&Ef(o)||16384&$x(e)?FC.createToken(58):void 0,d=FC.createParameterDeclaration(c,l,u,_,s,void 0);return t.approximateLength+=Mc(e).length+3,d}function g(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=Zb(e),i=Ho(r,r.escapedText,1160127,void 0,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function h(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),y(e,t,n,r)}function y(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?i=[e]:(i=Fn.checkDefined(function e(n,i,o){let a,s=Os(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Ms(s[0],t.enclosingDeclaration,1===s.length?i:Is(i))){const r=_s(s?s[0]:n,t.enclosingDeclaration,i);if(C(r)){a=r.map((e=>le(e.declarations,Us)?T(e,t):void 0));const o=r.map(((e,t)=>t));o.sort((function(e,t){const n=a[e],r=a[t];if(n&&r){const e=Xo(r);return Xo(n)===e?Bj(n)-Bj(r):e?-1:1}return 0}));const c=o.map((e=>r[e]));for(const t of c){const r=e(t,Is(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&ps(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[fs(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&w(n.declarations,Us))return;return[n]}}(e,n,!0)),Fn.assert(i&&i.length>0)),i}function v(e,t){let n;return 524384&ZL(e).flags&&(n=FC.createNodeArray(q(ru(e),(e=>p(e,t))))),n}function b(e,t,n){var r;Fn.assert(e&&0<=t&&tgx(e,o.links.mapper))),n)}else a=v(i,n)}return a}function x(e){return zD(e.objectType)?x(e.objectType):e}function T(e,t,n){let r=af(e,312);if(!r){const t=D(e.declarations,(t=>ds(t,e)));t&&(r=af(t,312))}if(r&&void 0!==r.moduleName)return r.moduleName;if(!r){if(t.tracker.trackReferencedAmbientModule){const n=V(e.declarations,gp);if(C(n))for(const r of n)t.tracker.trackReferencedAmbientModule(r,e)}if(rB.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1)}if(!t.enclosingDeclaration||!t.tracker.moduleResolverHost)return rB.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):Ff(Cp(e)).fileName;const i=Ff(Ec(t.enclosingDeclaration)),o=n||(null==i?void 0:i.impliedNodeFormat),a=tR(i.path,o),s=zo(e);let c=s.specifierCache&&s.specifierCache.get(a);if(!c){const r=!!Lv(S),{moduleResolverHost:l}=t.tracker,u=r?{...S,baseUrl:l.getCommonSourceDirectory()}:S;c=Le(Mj(e,Ae,u,i,l,{importModuleSpecifierPreference:r?"non-relative":"project-relative",importModuleSpecifierEnding:r?"minimal":99===o?"js":void 0},{overrideImportMode:n})),s.specifierCache??(s.specifierCache=new Map),s.specifierCache.set(a,c)}return c}function E(e){const t=FC.createIdentifier(Fc(e.escapedName));return e.parent?FC.createQualifiedName(E(e.parent),t):t}function N(e,t,n,r){var i,o,a,s;const c=h(e,t,n,!(16384&t.flags)),l=111551===n;if(le(c[0].declarations,Us)){const e=c.length>1?_(c,c.length-1,1):void 0,n=r||b(c,0,t),u=Ff(Ec(t.enclosingDeclaration)),d=If(c[0]);let f,p;if(3!==YS(S)&&99!==YS(S)||99===(null==d?void 0:d.impliedNodeFormat)&&d.impliedNodeFormat!==(null==u?void 0:u.impliedNodeFormat)&&(f=T(c[0],t,99),p=FC.createImportTypeAssertionContainer(FC.createAssertClause(FC.createNodeArray([FC.createAssertEntry(FC.createStringLiteral("resolution-mode"),FC.createStringLiteral("import"))]))),null==(o=(i=t.tracker).reportImportTypeNodeResolutionModeOverride)||o.call(i)),f||(f=T(c[0],t)),!(67108864&t.flags)&&1!==YS(S)&&f.indexOf("/node_modules/")>=0){const e=f;if(3===YS(S)||99===YS(S)){const n=99===(null==u?void 0:u.impliedNodeFormat)?1:99;f=T(c[0],t,n),f.indexOf("/node_modules/")>=0?f=e:(p=FC.createImportTypeAssertionContainer(FC.createAssertClause(FC.createNodeArray([FC.createAssertEntry(FC.createStringLiteral("resolution-mode"),FC.createStringLiteral(99===n?"import":"require"))]))),null==(s=(a=t.tracker).reportImportTypeNodeResolutionModeOverride)||s.call(a))}p||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const m=FC.createLiteralTypeNode(FC.createStringLiteral(f));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(c[0]),t.approximateLength+=f.length+10,!e||bu(e))return e&&Ow(qE(e)?e:e.right,void 0),FC.createImportTypeNode(m,p,e,n,l);{const t=x(e),r=t.objectType.typeName;return FC.createIndexedAccessTypeNode(FC.createImportTypeNode(m,p,r,n,l),t.indexType)}}const u=_(c,c.length-1,0);if(zD(u))return u;if(l)return FC.createTypeQueryNode(u);{const e=qE(u)?u:u.right,t=Mw(e);return Ow(e,void 0),FC.createTypeReferenceNode(u,t)}function _(e,n,i){const o=n===e.length-1?r:b(e,n,t),a=e[n],s=e[n-1];let c;if(0===n?(t.flags|=16777216,c=_c(a,t),t.approximateLength+=(c?c.length:0)+1,t.flags^=16777216):s&&ns(s)&&mf(ns(s),((e,t)=>{if(ps(e,a)&&!n_(t)&&"export="!==t)return c=Fc(t),!0})),void 0===c){const r=D(a.declarations,$c);if(r&&cD(r)&&bu(r.expression)){const t=_(e,n-1,i);return bu(t)?FC.createIndexedAccessTypeNode(FC.createParenthesizedType(FC.createTypeQueryNode(t)),FC.createTypeQueryNode(r.expression)):t}c=_c(a,t)}if(t.approximateLength+=c.length+1,!(16&t.flags)&&s&&c_(s)&&c_(s).get(a.escapedName)&&ps(c_(s).get(a.escapedName),a)){const t=_(e,n-1,i);return zD(t)?FC.createIndexedAccessTypeNode(t,FC.createLiteralTypeNode(FC.createStringLiteral(c))):FC.createIndexedAccessTypeNode(FC.createTypeReferenceNode(t,o),FC.createLiteralTypeNode(FC.createStringLiteral(c)))}const l=rw(FC.createIdentifier(c),16777216);if(o&&Ow(l,FC.createNodeArray(o)),l.symbol=a,n>i){const t=_(e,n-1,i);return bu(t)?FC.createQualifiedName(t,l):Fn.fail("Impossible construct - an export of an indexed access cannot be reachable")}return l}}function A(e,t,n){const r=Ho(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!r||262144&r.flags&&r===n.symbol)}function F(e,t){var n,r;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(Rh(e));if(n)return n}let i=M(e.symbol,t,788968,!0);if(!(80&i.kind))return FC.createIdentifier("(Missing type parameter)");if(4&t.flags){const o=i.escapedText;let a=(null==(n=t.typeParameterNamesByTextNextNameCount)?void 0:n.get(o))||0,s=o;for(;(null==(r=t.typeParameterNamesByText)?void 0:r.has(s))||A(s,t,e);)a++,s=`${o}_${a}`;if(s!==o){const e=Mw(i);i=FC.createIdentifier(s),Ow(i,e)}(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new Map)).set(o,a),(t.typeParameterNames||(t.typeParameterNames=new Map)).set(Rh(e),i),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new Set)).add(o)}return i}function M(e,t,n,r){const i=h(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=b(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=_c(o,t);0===r&&(t.flags^=16777216);const s=rw(FC.createIdentifier(a),16777216);return i&&Ow(s,FC.createNodeArray(i)),s.symbol=o,r>0?FC.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function R(e,t,n){const r=h(e,t,n);return function e(n,r){const i=b(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=_c(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if($g(s)&&le(o.declarations,Us))return FC.createStringLiteral(T(o,t));if(0===r||nC(a,k)){const t=rw(FC.createIdentifier(a),16777216);return i&&Ow(t,FC.createNodeArray(i)),t.symbol=o,r>0?FC.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!$g(s)||8&o.flags?""+ +a===a&&(t=FC.createNumericLiteral(+a)):t=FC.createStringLiteral(yv(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=rw(FC.createIdentifier(a),16777216);i&&Ow(e,FC.createNodeArray(i)),e.symbol=o,t=e}return FC.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function j(e){const t=$c(e);return!!t&&NE(t)}function J(e){const t=$c(e);return!!(t&&NE(t)&&(t.singleQuote||!tv(t)&&fn(op(t,!1),"'")))}function z(e,t){const n=!!C(e.declarations)&&I(e.declarations,j),r=!!C(e.declarations)&&I(e.declarations,J),i=function(e,t,n,r){const i=zo(e).nameType;if(i){if(384&i.flags){const e=""+i.value;return Js(e,HS(S))||!r&&HT(e)?HT(e)&&fn(e,"-")?FC.createComputedPropertyName(FC.createNumericLiteral(+e)):GT(e,HS(S)):FC.createStringLiteral(e,!!n)}if(8192&i.flags)return FC.createComputedPropertyName(R(i.symbol,t,111551))}}(e,t,r,n);return i||GT(Fc(e.escapedName),HS(S),r,n)}function K(e,t){return e.declarations&&O(e.declarations,(e=>!(!rb(e)||t&&!Dc(e,(e=>e===t)))))}function U(e,t){return!(4&tS(t))||!TD(e)||C(e.typeArguments)>=Nf(t.target.typeParameters)}function W(e){return $o(e).fakeScopeForSignatureDeclaration?e.parent:e}function G(e,t,n,r,o,a){if(!wc(t)&&r){const i=K(n,W(r));if(i&&!Cu(i)&&!yD(i)){const n=rb(i);if(function(e,t,n){const r=sx(e);return r===n||!(!uD(t)||!t.questionToken)&&Ew(n,524288)===r}(n,i,t)&&U(n,t)){const t=Q(e,n,o,a);if(t)return t}}}const s=e.flags;8192&t.flags&&t.symbol===n&&(!e.enclosingDeclaration||le(n.declarations,(t=>Ff(t)===Ff(e.enclosingDeclaration))))&&(e.flags|=1048576);const c=i(t,e);return e.flags=s,c}function Y(e,t,n){let r=!1;const i=Zb(e);if(Pg(e)&&(Zg(i)||th(i.parent)||sD(i.parent)&&eh(i.parent.left)&&Zg(i.parent.right)))return r=!0,{introducesError:r,node:e};const o=Va(i,67108863,!0,!0);if(o&&(0!==zs(o,t.enclosingDeclaration,67108863,!1).accessibility?r=!0:(t.tracker.trackSymbol(o,t.enclosingDeclaration,67108863),null==n||n(o)),qE(e))){const n=ju(o),i=262144&o.flags&&!Ls(n.symbol,t.enclosingDeclaration)?F(n,t):FC.cloneNode(e);return i.symbol=o,{introducesError:r,node:rw(QC(i,e),16777216)}}return{introducesError:r,node:e}}function Q(n,r,o,a){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let s=!1;const c=Ff(r),l=FB(r,(function t(r){if(eP(r)||326===r.kind)return FC.createKeywordTypeNode(133);if(tP(r))return FC.createKeywordTypeNode(159);if(nP(r))return FC.createUnionTypeNode([FB(r.type,t,Ju),FC.createLiteralTypeNode(FC.createNull())]);if(iP(r))return FC.createUnionTypeNode([FB(r.type,t,Ju),FC.createKeywordTypeNode(157)]);if(rP(r))return FB(r.type,t);if(aP(r))return FC.createArrayTypeNode(FB(r.type,t,Ju));if(lP(r))return FC.createTypeLiteralNode(q(r.jsDocPropertyTags,(e=>{const o=qE(e.name)?e.name:e.name.right,a=xc(sx(r),o.escapedText),s=a&&e.typeExpression&&sx(e.typeExpression.type)!==a?i(a,n):void 0;return FC.createPropertySignature(void 0,o,e.isBracketed||e.typeExpression&&iP(e.typeExpression.type)?FC.createToken(58):void 0,s||e.typeExpression&&FB(e.typeExpression.type,t,Ju)||FC.createKeywordTypeNode(133))})));if(TD(r)&&qE(r.typeName)&&""===r.typeName.escapedText)return QC(FC.createKeywordTypeNode(133),r);if((bN(r)||TD(r))&&Mg(r))return FC.createTypeLiteralNode([FC.createIndexSignature(void 0,[FC.createParameterDeclaration(void 0,void 0,"x",void 0,FB(r.typeArguments[0],t,Ju))],FB(r.typeArguments[1],t,Ju))]);if(oP(r)){if(wh(r)){let e;return FC.createConstructorTypeNode(void 0,IB(r.typeParameters,t,lD),te(r.parameters,((n,r)=>n.name&&qE(n.name)&&"new"===n.name.escapedText?void(e=n.type):FC.createParameterDeclaration(void 0,l(n),u(n,r),n.questionToken,FB(n.type,t,Ju),void 0))),FB(e||r.type,t,Ju)||FC.createKeywordTypeNode(133))}return FC.createFunctionTypeNode(IB(r.typeParameters,t,lD),q(r.parameters,((e,n)=>FC.createParameterDeclaration(void 0,l(e),u(e,n),e.questionToken,FB(e.type,t,Ju),void 0))),FB(r.type,t,Ju)||FC.createKeywordTypeNode(133))}if(TD(r)&&Og(r)&&(!U(r,sx(r))||vm(r)||pt===tm(r,788968,!0)))return QC(i(sx(r),n),r);if(gm(r)){const o=$o(r).resolvedSymbol;return!Og(r)||!o||(r.isTypeOf||788968&o.flags)&&C(r.typeArguments)>=Nf(ru(o))?FC.updateImportTypeNode(r,FC.updateLiteralTypeNode(r.argument,function(t,r){if(a){if(n.tracker&&n.tracker.moduleResolverHost){const r=Aj(t);if(r){const t=Ev({getCanonicalFileName:ln(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>n.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>n.tracker.moduleResolverHost.getCommonSourceDirectory()},r);return FC.createStringLiteral(t)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){const e=qa(r,r,void 0);e&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(e)}return r}(r,r.argument.literal)),r.assertions,r.qualifier,IB(r.typeArguments,t,Ju),r.isTypeOf):QC(i(sx(r),n),r)}if(bu(r)||Qb(r)){const{introducesError:e,node:t}=Y(r,n,o);if(s=s||e,t!==r)return t}return c&&AD(r)&&gs(c,r.pos).line===gs(c,r.end).line&&rw(r,1),$B(r,t,P$);function l(e){return e.dotDotDotToken||(e.type&&aP(e.type)?FC.createToken(26):void 0)}function u(e,t){return e.name&&qE(e.name)&&"this"===e.name.escapedText?"this":l(e)?"args":`arg${t}`}}),Ju);if(!s)return l===r?tI(FC.cloneNode(r),r):l}}(),ue=cf(),de=Ao(4,"undefined");de.declarations=[];var me=Ao(1536,"globalThis",8);me.exports=ue,me.declarations=[],ue.set(me.escapedName,me);var ge,he,ye,ve=Ao(4,"arguments"),be=Ao(4,"require"),xe=S.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Te=!S.verbatimModuleSyntax||!!S.importsNotUsedAsValues,Ce=0,Ne=0;const Ae={getNodeCount:()=>qe(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>qe(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>qe(e.getSourceFiles(),((e,t)=>e+t.symbolCount),p),getTypeCount:()=>f,getInstantiationCount:()=>m,getRelationCacheSizes:()=>({assignable:co.size,identity:uo.size,subtype:ao.size,strictSubtype:so.size}),isUndefinedSymbol:e=>e===de,isArgumentsSymbol:e=>e===ve,isUnknownSymbol:e=>e===pt,getMergedSymbol:as,getDiagnostics:NR,getGlobalDiagnostics:function(){return AR(),ro.getGlobalDiagnostics()},getRecursionIdentity:Dk,getUnmatchedProperties:RC,getTypeOfSymbolAtLocation:(e,t)=>{const n=Ac(t);return n?function(e,t){if(e=ms(e),(80===t.kind||81===t.kind)&&(ix(t)&&(t=t.parent),xg(t)&&(!Hh(t)||Wx(t)))){const n=NT(KO(t));if(ms($o(t).resolvedSymbol)===e)return n}return oy(t)&&U_(t.parent)&&Tl(t.parent)?Fl(t.parent.symbol):Hl(e)}(e,n):Ct},getTypeOfSymbol:ql,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=Ac(e,uD);return void 0===n?Fn.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(Fn.assert(hc(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=Ko(n.locals,t,111551),o=Ko(c_(r.symbol),t,111551);return i&&o?[i,o]:Fn.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,Pc(t)))},getDeclaredTypeOfSymbol:ju,getPropertiesOfType:Td,getPropertyOfType:(e,t)=>Zd(e,Pc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=Ac(n);if(!r)return;const i=vP(Pc(t),r);return i?SP(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>xc(e,Pc(t)),getIndexInfoOfType:(e,t)=>ff(e,0===t?Jt:zt),getIndexInfosOfType:df,getIndexInfosOfIndexSymbol:cp,getSignaturesOfType:tf,getIndexTypeOfType:(e,t)=>pf(e,0===t?Jt:zt),getIndexType:e=>iv(e),getBaseTypes:gu,getBaseTypeOfLiteralType:Hk,getWidenedType:dC,getTypeFromTypeNode:e=>{const t=Ac(e,Ju);return t?sx(t):Ct},getParameterType:CI,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(324===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(DB(e)?1:0);if(tSM(e),getReturnTypeOfSignature:qf,isNullableType:QA,getNullableType:fT,getNonNullableType:bT,getNonOptionalType:NT,getTypeArguments:Fp,typeToTypeNode:ce.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ce.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ce.signatureToSignatureDeclaration,symbolToEntityName:ce.symbolToEntityName,symbolToExpression:ce.symbolToExpression,symbolToNode:ce.symbolToNode,symbolToTypeParameterDeclarations:ce.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ce.symbolToParameterDeclaration,typeParameterToDeclaration:ce.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=Ac(e);return n?function(e,t){if(67108864&e.flags)return[];const n=cf();let r=!1;return function(){for(;e;){switch(E_(e)&&e.locals&&!Vo(e)&&o(e.locals,t),e.kind){case 312:if(!HI(e))break;case 267:a(cs(e).exports,2623475&t);break;case 266:o(cs(e).exports,8&t);break;case 231:e.name&&i(e.symbol,t);case 263:case 264:r||o(c_(cs(e)),788968&t);break;case 218:e.name&&i(e.symbol,t)}Lm(e)&&i(ve,t),r=bb(e),e=e.parent}o(ue,t)}(),n.delete("this"),Tf(n);function i(e,t){if(Ux(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function o(e,t){t&&e.forEach((e=>{i(e,t)}))}function a(e,t){t&&e.forEach((e=>{af(e,281)||af(e,280)||"default"===e.escapedName||i(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=Ac(e);return t?jR(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=Ac(e);return t?function(e){if(qE(e)&&QD(e.parent)&&e.parent.name===e){const t=Wy(e),n=KO(e.parent.expression);return X(1048576&n.flags?n.types:[n],(e=>V(df(e),(e=>uf(t,e.keyType)))))}}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=Ac(e);return t?function(e){if(e&&304===e.kind)return Va(e.name,2208703)}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=Ac(e,vA);return t?function(e){return vA(e)?e.parent.parent.moduleSpecifier?Ta(e.parent.parent,e):Va(e.propertyName||e.name,2998271):Va(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>as(e.exportSymbol||e),getTypeAtLocation:e=>{const t=Ac(e);return t?BR(t):Ct},getTypeOfAssignmentPattern:e=>{const t=Ac(e,Vu);return t&&JR(t)||Ct},getPropertySymbolOfDestructuringAssignment:e=>{const t=Ac(e,qE);return t?function(e){const t=JR(xt(e.parent.parent,Vu));return t&&Zd(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>Xs(e,Ac(t),n,r),typeToString:(e,t,n)=>Ys(e,Ac(t),n),symbolToString:(e,t,n,r)=>Hs(e,Ac(t),n,r),typePredicateToString:(e,t,n)=>ac(e,Ac(t),n),writeSignature:(e,t,n,r,i)=>Xs(e,Ac(t),n,r,i),writeType:(e,t,n,r)=>Ys(e,Ac(t),n,r),writeSymbol:(e,t,n,r,i)=>Hs(e,Ac(t),n,r,i),writeTypePredicate:(e,t,n,r)=>ac(e,Ac(t),n,r),getAugmentedPropertiesOfType:KR,getRootSymbols:function e(t){const n=function(e){if(6&$x(e))return te(zo(e).containingType.types,(t=>Zd(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:xn(function(e){let t,n=e;for(;n=zo(n).target;)t=n;return t}(e))}}(t);return n?X(n,e):[t]},getSymbolOfExpando:ZF,getContextualType:(e,t)=>{const n=Ac(e,l_);if(n)return 4&t?Fe(n,(()=>qD(n,t))):qD(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=Ac(e,Bu);return t?OD(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=Ac(e,e_);return n&&rD(n,t)},getContextualTypeForJsxAttribute:e=>{const t=Ac(e,j_);return t&&LD(t,void 0)},isContextSensitive:Jx,getTypeOfPropertyOfContextualType:SD,getFullyQualifiedName:$a,getResolvedSignature:(e,t,n)=>Je(e,t,n,0),getResolvedSignatureForStringLiteralCompletions:(e,t,n,r=32)=>32&r?Fe(t,(()=>Je(e,n,void 0,-33&r))):Pe(t,(()=>Je(e,n,void 0,-33&r))),getResolvedSignatureForSignatureHelp:(e,t,n)=>Pe(e,(()=>Je(e,t,n,16))),getExpandedParameters:k_,hasEffectiveRestParameter:AI,containsArgumentsReference:jf,getConstantValue:e=>{const t=Ac(e,dj);return t?fj(t):void 0},isValidPropertyAccess:(e,t)=>{const n=Ac(e,Qu);return!!n&&function(e,t){switch(e.kind){case 211:return GP(e,108===e.expression.kind,t,dC(WO(e.expression)));case 166:return GP(e,!1,t,dC(WO(e.left)));case 205:return GP(e,!1,t,sx(e))}}(n,Pc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=Ac(e,QD);return!!r&&HP(r,t,n)},getSignatureFromDeclaration:e=>{const t=Ac(e,ku);return t?Lf(t):void 0},isImplementationOfOverload:e=>{const t=Ac(e,ku);return t?ij(t):void 0},getImmediateAliasedSymbol:LN,getAliasedSymbol:Ia,getEmitResolver:function(e,t){return NR(e,t),se},getExportsOfModule:Za,getExportsAndPropertiesOfModule:function(e){const t=Za(e),n=Ga(e);if(n!==e){const e=ql(n);ts(e)&&we(t,Td(e))}return t},forEachExportAndPropertyOfModule:function(e,t){rs(e).forEach(((e,n)=>{Es(n)||t(e,n)}));const n=Ga(e);if(n!==e){const e=ql(n);ts(e)&&function(e,n){3670016&(e=Vd(e)).flags&&bd(e).members.forEach(((e,n)=>{Ns(e,n)&&((e,n)=>{t(e,n)})(e,n)}))}(e)}},getSymbolWalker:wj((function(e){return Gf(e)||St}),Kf,qf,gu,bd,ql,ow,wd,Zb,Fp),getAmbientModules:function(){return qn||(qn=[],ue.forEach(((e,t)=>{rB.test(t)&&qn.push(e)}))),qn},getJsxIntrinsicTagNamesAt:function(e){const t=qN(gB.IntrinsicElements,e);return t?Td(t):a},isOptionalParameter:e=>{const t=Ac(e,uD);return!!t&&Ef(t)},tryGetMemberInModuleExports:(e,t)=>es(Pc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=es(e,t);if(n)return n;const r=Ga(t);if(r===t)return;const i=ql(r);return ts(i)?Zd(i,e):void 0}(Pc(e),t),tryFindAmbientModule:e=>Cf(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>Cf(e,!1),getApparentType:$d,getUnionType:ly,isTypeAssignableTo:iS,createAnonymousType:Ps,createSignature:v_,createSymbol:Ao,createIndexInfo:ip,getAnyType:()=>St,getStringType:()=>Jt,getStringLiteralType:Bb,getNumberType:()=>zt,getNumberLiteralType:Jb,getBigIntType:()=>$t,createPromiseType:KI,createArrayType:Qg,getElementTypeOfArrayType:Rk,getBooleanType:()=>Ht,getFalseType:e=>e?Vt:Kt,getTrueType:e=>e?Ut:qt,getVoidType:()=>Xt,getUndefinedType:()=>Pt,getNullType:()=>Rt,getESSymbolType:()=>Gt,getNeverType:()=>Qt,getOptionalType:()=>Lt,getPromiseType:()=>ag(!1),getPromiseLikeType:()=>pg(!1),getAsyncIterableType:()=>{const e=gg(!1);if(e!==Mn)return e},isSymbolAccessible:zs,isArrayType:Ik,isTupleType:eT,isArrayLikeType:jk,isEmptyAnonymousObjectType:ES,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(MA(t.name)?Bb(_C(t.name)):Wy(t.name)),r=n&&gC(n)?hC(n):void 0,i=void 0===r?void 0:xc(e,r);return!!i&&Wk(i)&&!iS(BR(t),i)}))},getExactOptionalProperties:function(e){return Td(e).filter((e=>LT(ql(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=ly(e);if(!(1048576&t.flags))return KR(t);const n=cf();for(const r of e)for(const{escapedName:e}of KR(r))if(!n.has(e)){const r=Kd(t,e);r&&n.set(e,r)}return Ze(n.values())},getSuggestedSymbolForNonexistentProperty:JP,getSuggestionForNonexistentProperty:$P,getSuggestedSymbolForNonexistentJSXAttribute:zP,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>VP(e,Pc(t),n),getSuggestionForNonexistentSymbol:(e,t,n)=>function(e,t,n){const r=VP(e,t,n);return r&&Mc(r)}(e,Pc(t),n),getSuggestedSymbolForNonexistentModule:KP,getSuggestionForNonexistentExport:function(e,t){const n=KP(e,t);return n&&Mc(n)},getSuggestedSymbolForNonexistentClassMember:jP,getBaseConstraintOfType:Od,getDefaultFromTypeParameter:e=>e&&262144&e.flags?Bd(e):void 0,resolveName:(e,t,n,r)=>Ho(t,Pc(e),n,void 0,void 0,!1,r),getJsxNamespace:e=>Fc(ho(e)),getJsxFragmentFactory:e=>{const t=Nj(e);return t&&Fc(Zb(t).escapedText)},getAccessibleSymbolChain:Os,getTypePredicateOfSignature:Kf,resolveExternalModuleName:e=>{const t=Ac(e,l_);return t&&Ua(t,t,!0)},resolveExternalModuleSymbol:Ga,tryGetThisTypeAt:(e,t,n)=>{const r=Ac(e);return r&&zE(r,t,n)},getTypeArgumentConstraint:e=>{const t=Ac(e,Ju);return t&&function(e){const t=bt(e.parent,Q_);if(!t)return;const n=sM(t);if(!n)return;const r=wd(n[t.typeArguments.indexOf(e)]);return r&&Mx(r,mx(n,oM(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=Ac(n,UA)||Fn.fail("Could not determine parsed source file.");if(vT(i,S,e))return a;let o;try{return t=r,PR(i),Fn.assert(!!(1&$o(i).flags)),o=we(o,io.getDiagnostics(i.fileName)),jM(DR(i),((e,t,n)=>{Pf(e)||ER(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})})),o||a}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(Ae)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ru,isDeclarationVisible:dc,isPropertyAccessible:XP,getTypeOnlyAliasDeclaration:ja,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=cs(e),i=ju(r),o=f_(i),a=ql(r),s=my(e)&&gu(i),c=(null==s?void 0:s.length)?f_(Le(s),i.thisType):void 0;return YL(e,a,du(i),c,i,o,t.parent?Sb(t):vb(t,16384),kb(t),bb(t),!1,Mc(n))},isTypeParameterPossiblyReferenced:Dx,typeHasCallOrConstructSignatures:UR};function Pe(e,t){const n=[];for(;e;){if(e_(e)){const t=$o(e),r=t.resolvedSignature;n.push([t,r]),t.resolvedSignature=void 0}e=e.parent}const r=t();for(const[e,t]of n)e.resolvedSignature=t;return r}function Fe(e,t){const n=Dc(e,e_);if(n){let t=e;do{$o(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}v=!0;const r=Pe(e,t);if(v=!1,n){let t=e;do{$o(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Je(e,t,n,r){const i=Ac(e,e_);ge=n;const o=i?XF(i,t,r):void 0;return ge=void 0,o}var ze=new Map,$e=new Map,Ue=new Map,We=new Map,He=new Map,Ge=new Map,Xe=new Map,Ye=new Map,et=new Map,tt=new Map,nt=new Map,rt=new Map,at=new Map,st=new Map,ct=new Map,lt=[],dt=new Map,ft=new Set,pt=Ao(4,"unknown"),mt=Ao(0,"__resolving__"),ht=new Map,vt=new Map,St=ks(1,"any"),kt=ks(1,"any",262144),Tt=ks(1,"any"),Ct=ks(1,"error"),wt=ks(1,"unresolved"),Et=ks(1,"any",65536),Dt=ks(1,"intrinsic"),Nt=ks(2,"unknown"),At=ks(2,"unknown"),Pt=ks(32768,"undefined"),Ft=F?Pt:ks(32768,"undefined",65536),It=ks(32768,"undefined"),Ot=re?It:Pt,Lt=ks(32768,"undefined"),Rt=ks(65536,"null"),jt=F?Rt:ks(65536,"null",65536),Jt=ks(4,"string"),zt=ks(8,"number"),$t=ks(64,"bigint"),Vt=ks(512,"false"),Kt=ks(512,"false"),Ut=ks(512,"true"),qt=ks(512,"true");Ut.regularType=qt,Ut.freshType=Ut,qt.regularType=qt,qt.freshType=Ut,Vt.regularType=Kt,Vt.freshType=Vt,Kt.regularType=Kt,Kt.freshType=Vt;var Wt,Ht=ly([Kt,qt]),Gt=ks(4096,"symbol"),Xt=ks(16384,"void"),Qt=ks(131072,"never"),en=ks(131072,"never",262144),tn=ks(131072,"never"),rn=ks(131072,"never"),on=ks(67108864,"object"),sn=ly([Jt,zt]),cn=ly([Jt,zt,Gt]),un=Z?Jt:cn,_n=ly([zt,$t]),mn=ly([Jt,zt,Ht,$t,Rt,Pt]),gn=av(["",""],[zt]),bn=yx((e=>{return 262144&e.flags?!(t=e).constraint&&!_p(t)||t.constraint===Rn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=ws(t.symbol),t.restrictiveInstantiation.constraint=Rn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),Sn=yx((e=>262144&e.flags?Tt:e),(()=>"(permissive mapper)")),Tn=ks(131072,"never"),Cn=yx((e=>262144&e.flags?Tn:e),(()=>"(unique literal mapper)")),wn=yx((e=>(!Wt||e!==Jn&&e!==zn&&e!==$n||Wt(!0),e)),(()=>"(unmeasurable reporter)")),En=yx((e=>(!Wt||e!==Jn&&e!==zn&&e!==$n||Wt(!1),e)),(()=>"(unreliable reporter)")),Dn=Ps(void 0,b,a,a,a),Nn=Ps(void 0,b,a,a,a);Nn.objectFlags|=2048;var An=Ao(2048,"__type");An.members=cf();var Pn=Ps(An,b,a,a,a),In=Ps(void 0,b,a,a,a),On=F?ly([Pt,Rt,In]):Nt,Mn=Ps(void 0,b,a,a,a);Mn.instantiations=new Map;var Ln=Ps(void 0,b,a,a,a);Ln.objectFlags|=262144;var Rn=Ps(void 0,b,a,a,a),jn=Ps(void 0,b,a,a,a),Bn=Ps(void 0,b,a,a,a),Jn=ws(),zn=ws();zn.constraint=Jn;var $n=ws(),Vn=ws(),Kn=ws();Kn.constraint=Vn;var Un,qn,Wn,Hn,Gn,Xn,Yn,Qn,Zn,er,tr,nr,rr,ir,or,ar,sr,cr,lr,ur,_r,dr,fr,pr,mr,gr,hr,yr,vr,br,xr,Sr,kr,Tr,Cr,Dr,Nr,Ar,Pr,Fr,Ir,Or,Mr,Lr,Rr,jr,Jr,zr,$r,Vr,Kr,Ur,qr,Wr,Hr,Gr,Xr,Yr,Qr,Zr,ei,ti,ni=Df(1,"<>",0,St),ri=v_(void 0,void 0,void 0,a,St,void 0,0,0),ii=v_(void 0,void 0,void 0,a,Ct,void 0,0,0),oi=v_(void 0,void 0,void 0,a,St,void 0,0,0),ai=v_(void 0,void 0,void 0,a,en,void 0,0,0),si=ip(zt,Jt,!0),ci=new Map,li={get yieldType(){return Fn.fail("Not supported")},get returnType(){return Fn.fail("Not supported")},get nextType(){return Fn.fail("Not supported")}},ui=yL(St,St,St),_i=yL(St,St,Nt),di=yL(Qt,St,Pt),fi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Cr||(Cr=Vm("AsyncIterator",3,e))||Mn},getGlobalIterableType:gg,getGlobalIterableIteratorType:function(e){return Dr||(Dr=Vm("AsyncIterableIterator",1,e))||Mn},getGlobalGeneratorType:function(e){return Nr||(Nr=Vm("AsyncGenerator",3,e))||Mn},resolveIterationType:(e,t)=>SM(e,t,Ra.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:Ra.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Ra.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:Ra.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},pi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return vr||(vr=Vm("Iterator",3,e))||Mn},getGlobalIterableType:vg,getGlobalIterableIteratorType:function(e){return br||(br=Vm("IterableIterator",1,e))||Mn},getGlobalGeneratorType:function(e){return xr||(xr=Vm("Generator",3,e))||Mn},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:Ra.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Ra.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:Ra.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},mi=new Map,gi=[],hi=new Map,yi=0,vi=0,bi=0,xi=!1,Si=0,ki=[],Ti=[],Ci=[],wi=0,Ei=[],Di=[],Ni=0,Ai=Bb(""),Pi=Jb(0),Fi=zb({negative:!1,base10Value:"0"}),Ii=[],Oi=[],Mi=[],Li=0,Ri=!1,ji=0,Bi=[],zi=[],$i=[],Vi=[],Ki=[],Ui=[],qi=[],Wi=[],Hi=[],Gi=[],Xi=[],Yi=[],Qi=[],Zi=[],eo=[],to=[],no=[],ro=uv(),io=uv(),oo=ly(Ze(uB.keys(),Bb)),ao=new Map,so=new Map,co=new Map,lo=new Map,uo=new Map,_o=new Map,fo=cf();fo.set(de.escapedName,de);var po=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===S.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())vj(t,S);let t;Un=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!om(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)ro.add(qp(t,Ra.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Bo(ue,n.locals)}n.jsGlobalAugmentations&&Bo(ue,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Wn=_e(Wn,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach(((e,t)=>{ue.has(t)||ue.set(t,e)}))}if(t)for(const e of t)for(const t of e)Sp(t.parent)&&Jo(t);var n,r,i;if(n=ue,r=fo,i=Ra.Declaration_name_conflicts_with_built_in_global_identifier_0,r.forEach(((e,t)=>{const r=n.get(t);r?w(r.declarations,function(e,t){return n=>ro.add(qp(n,t,e))}(Fc(t),i)):n.set(t,e)})),zo(de).type=Ft,zo(ve).type=Vm("IArguments",0,!0),zo(pt).type=Ct,zo(me).type=Cs(16,me),Zn=Vm("Array",1,!0),Gn=Vm("Object",0,!0),Xn=Vm("Function",0,!0),Yn=z&&Vm("CallableFunction",0,!0)||Xn,Qn=z&&Vm("NewableFunction",0,!0)||Xn,tr=Vm("String",0,!0),nr=Vm("Number",0,!0),rr=Vm("Boolean",0,!0),ir=Vm("RegExp",0,!0),ar=Qg(St),(sr=Qg(kt))===Dn&&(sr=Ps(void 0,b,a,a,a)),er=Ig("ReadonlyArray",1)||Zn,cr=er?Jg(er,[St]):ar,or=Ig("ThisType",1),t)for(const e of t)for(const t of e)Sp(t.parent)||Jo(t);Un.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?Ra.Cannot_redeclare_block_scoped_variable_0:Ra.Duplicate_identifier_0;for(const e of t)jo(e,i,r,n);for(const e of n)jo(e,i,r,t)}));else{const r=Ze(n.keys()).join(", ");ro.add(mT(qp(e,Ra.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),qp(t,Ra.Conflicts_are_in_this_file))),ro.add(mT(qp(t,Ra.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),qp(e,Ra.Conflicts_are_in_this_file)))}})),Un=void 0}(),Ae;function mo(e){return e?ct.get(e):void 0}function go(e,t){return e&&ct.set(e,t),t}function ho(e){if(e){const t=Ff(e);if(t)if(NA(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=gt(n)?n[0]:n;if(t.localJsxFragmentFactory=qI(e.arguments.factory,k),FB(t.localJsxFragmentFactory,vo,bu),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=Zb(t.localJsxFragmentFactory).escapedText}const r=Nj(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=Zb(r).escapedText}else{const e=yo(t);if(e)return t.localJsxNamespace=e}}return ei||(ei="React",S.jsxFactory?(FB(ti=qI(S.jsxFactory,k),vo),ti&&(ei=Zb(ti).escapedText)):S.reactNamespace&&(ei=Pc(S.reactNamespace))),ti||(ti=FC.createQualifiedName(FC.createIdentifier(Fc(ei)),"createElement")),ei}function yo(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=gt(t)?t[0]:t;if(e.localJsxFactory=qI(n.arguments.factory,k),FB(e.localJsxFactory,vo,bu),e.localJsxFactory)return e.localJsxNamespace=Zb(e.localJsxFactory).escapedText}}function vo(e){return PT(e,-1,-1),$B(e,vo,P$)}function bo(e,t,n,...r){const i=So(t,n,...r);return i.skippedOn=e,i}function xo(e,t,...n){return e?qp(e,t,...n):MS(t,...n)}function So(e,t,...n){const r=xo(e,t,...n);return ro.add(r),r}function ko(e,t){e?ro.add(t):io.add({...t,category:2})}function To(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=Ff(t);ko(e,"message"in n?IS(i,0,0,n,...r):Zp(i,n))}else ko(e,"message"in n?qp(t,n,...r):Gp(Ff(t),t,n))}function Co(e,t,n,...r){const i=So(e,n,...r);return t&&mT(i,qp(e,Ra.Did_you_forget_to_use_await)),i}function wo(e,t){const n=Array.isArray(e)?w(e,_l):_l(e);return n&&mT(t,qp(n,Ra.The_declaration_was_marked_as_deprecated_here)),io.add(t),t}function Eo(e){const t=us(e);return t&&C(e.declarations)>1?64&t.flags?le(e.declarations,Do):I(e.declarations,Do):!!e.valueDeclaration&&Do(e.valueDeclaration)||C(e.declarations)&&I(e.declarations,Do)}function Do(e){return!!(536870912&MB(e))}function No(e,t,n){return wo(t,qp(e,Ra._0_is_deprecated,n))}function Ao(e,t,n){p++;const r=new u(33554432|e,t);return r.links=new mB,r.links.checkFlags=n||0,r}function Po(e,t){const n=Ao(1,e);return n.links.type=t,n}function Fo(e,t){const n=Ao(4,e);return n.links.type=t,n}function Io(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function Oo(e,t){t.mergeId||(t.mergeId=sB,sB++),Bi[t.mergeId]=e}function Mo(e){const t=Ao(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),Oo(t,e),t}function Lo(e,t,n=!1){if(!(e.flags&Io(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Fa(e);if(n===pt)return t;e=Mo(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&gh(e,t.valueDeclaration),we(e.declarations,t.declarations),t.members&&(e.members||(e.members=cf()),Bo(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=cf()),Bo(e.exports,t.exports,n)),n||Oo(e,t)}else if(1024&e.flags)e!==me&&So(t.declarations&&$c(t.declarations[0]),Ra.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Hs(e));else{const n=!!(384&e.flags||384&t.flags),i=!!(2&e.flags||2&t.flags),o=n?Ra.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:i?Ra.Cannot_redeclare_block_scoped_variable_0:Ra.Duplicate_identifier_0,a=t.declarations&&Ff(t.declarations[0]),s=e.declarations&&Ff(e.declarations[0]),c=Of(a,S.checkJs),l=Of(s,S.checkJs),u=Hs(t);if(a&&s&&Un&&!n&&a!==s){const n=-1===Ea(a.path,s.path)?a:s,o=n===a?s:a,_=ie(Un,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=ie(_.conflictingSymbols,u,(()=>({isBlockScoped:i,firstFileLocations:[],secondFileLocations:[]})));c||r(d.firstFileLocations,t),l||r(d.secondFileLocations,e)}else c||Ro(t,o,u,e),l||Ro(e,o,u,t)}return e;function r(e,t){if(t.declarations)for(const n of t.declarations)Ee(e,n)}}function Ro(e,t,n,r){w(e.declarations,(e=>{jo(e,t,n,r.declarations)}))}function jo(e,t,n,r){const i=(Hg(e,!1)?Xg(e):$c(e))||e,o=function(e,t,...n){const r=e?qp(e,t,...n):MS(t,...n);return ro.lookup(r)||(ro.add(r),r)}(i,t,n);for(const e of r||a){const t=(Hg(e,!1)?Xg(e):$c(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=qp(t,Ra._0_was_also_declared_here,n),a=qp(t,Ra.and_here);C(o.relatedInformation)>=5||le(o.relatedInformation,(e=>0===JS(e,a)||0===JS(e,r)))||mT(o,C(o.relatedInformation)?a:r)}}function Bo(e,t,n=!1){t.forEach(((t,r)=>{const i=e.get(r);e.set(r,i?Lo(i,t,n):as(t))}))}function Jo(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(Sp(i))Bo(ue,i.symbol.exports);else{let t=qa(e,e,33554432&e.parent.parent.flags?void 0:Ra.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!t)return;if(t=Ga(t),1920&t.flags)if(le(Wn,(e=>t===e.symbol))){const n=Lo(i.symbol,t,!0);Hn||(Hn=new Map),Hn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=s_(t,"resolvedExports");for(const[n,r]of Ze(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Lo(e.get(n),r)}Lo(t,i.symbol)}else So(e,Ra.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else Fn.assert(i.symbol.declarations.length>1)}function zo(e){if(33554432&e.flags)return e.links;const t=xB(e);return zi[t]??(zi[t]=new mB)}function $o(e){const t=bB(e);return $i[t]||($i[t]=new vB)}function Vo(e){return 312===e.kind&&!om(e)}function Ko(e,t,n){if(n){const r=as(e.get(t));if(r){if(Fn.assert(0==(1&$x(r)),"Should never get an instantiated symbol here."),r.flags&n)return r;if(2097152&r.flags&&Oa(r)&n)return r}}}function Uo(t,n){const r=Ff(t),i=Ff(n),o=jp(t);if(r!==i){if(T&&(r.externalModuleIndicator||i.externalModuleIndicator)||!Lv(S)||Zv(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(t.pos<=n.pos&&(!fD(t)||!cg(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=xy(n,208);return e?Dc(e,GD)!==Dc(t,GD)||t.poscD(e)&&e.parent.parent===t)):fD(t)?!s(t,n,!1):!hc(t,t.parent)||!(A&&Xm(t)===Xm(n)&&a(n,t))}return!(!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)&&(277!==n.kind||!n.isExportEquals)&&!(16777216&n.flags||Zv(n)||aw(n))&&(!a(n,t)||A&&Xm(t)&&(fD(t)||hc(t,t.parent))&&s(t,n,!0)));function a(e,t){return!!Dc(e,(n=>{if(n===o)return"quit";if(ku(n))return!0;if(gD(n))return t.pos=r&&o.pos<=i){const n=FC.createPropertyAccessExpression(FC.createThis(),e);if(OT(n.expression,n),OT(n,o),n.flowNode=o.returnFlowNode,!DS(SE(n,t,pT(t))))return!0}return!1}(e,ql(cs(t)),V(t.parent.members,gD),t.parent.pos,n.pos))return!0}}else if(172!==t.kind||bb(t)||Xm(e)!==Xm(t))return!0;return!1}))}function s(e,t,n){return!(t.end>e.end)&&void 0===Dc(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(fD(e)&&t.parent===e.parent||hc(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}))}}function qo(e,t,n){const r=HS(S),i=t;if(uD(n)&&i.body&&e.valueDeclaration&&e.valueDeclaration.pos>=i.body.pos&&e.valueDeclaration.end<=i.body.end&&r>=2){const e=$o(i);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=w(i.parameters,(function(e){return o(e.name)||!!e.initializer&&o(e.initializer)}))||!1),!e.declarationRequiresScopeChange}return!1;function o(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return o(e.name);case 172:return xb(e)?!A:o(e.name);default:return Bl(e)||Ml(e)?r<7:GD(e)&&e.dotDotDotToken&&WD(e.parent)?r<4:!Ju(e)&&(zI(e,o)||!1)}}}function Wo(e){return u_(e)&&Jl(e.type)||EP(e)&&Jl(e.typeExpression)}function Ho(e,t,n,r,i,o,a=!1,s=!0){return Go(e,t,n,r,i,o,a,s,Ko)}function Go(e,t,n,r,i,o,a,s,l){var u,_,d;const f=e;let p,m,g,h,y,v=!1;const x=e;let k,T=!1;e:for(;e;){if("const"===t&&Wo(e))return;if(C_(e)&&m&&e.name===m&&(m=e,e=e.parent),E_(e)&&e.locals&&!Vo(e)&&(p=l(e.locals,t,n))){let t=!0;if(ku(e)&&m&&m!==e.body?(n&p.flags&788968&&327!==m.kind&&(t=!!(262144&p.flags)&&(m===e.type||169===m.kind||348===m.kind||349===m.kind||168===m.kind)),n&p.flags&3&&(qo(p,e,m)?t=!1:1&p.flags&&(t=169===m.kind||m===e.type&&!!Dc(p.valueDeclaration,uD)))):194===e.kind&&(t=m===e.trueType),t)break e;p=void 0}switch(v=v||ta(e,m),e.kind){case 312:if(!om(e))break;T=!0;case 267:const i=(null==(u=cs(e))?void 0:u.exports)||b;if(312===e.kind||nA(e)&&33554432&e.flags&&!Sp(e)){if(p=i.get("default")){const e=lx(p);if(e&&p.flags&n&&e.escapedName===t)break e;p=void 0}const e=i.get(t);if(e&&2097152===e.flags&&(af(e,281)||af(e,280)))break}if("default"!==t&&(p=l(i,t,2623475&n))){if(!UA(e)||!e.commonJsModuleIndicator||(null==(_=p.declarations)?void 0:_.some(Eh)))break e;p=void 0}break;case 266:if(p=l((null==(d=cs(e))?void 0:d.exports)||b,t,8&n)){!r||!ek(S)||33554432&e.flags||Ff(e)===Ff(p.valueDeclaration)||So(x,Ra.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Fc(t),xe,`${Fc(ls(e).escapedName)}.${Fc(t)}`);break e}break;case 172:if(!bb(e)){const r=ys(e.parent);r&&r.locals&&l(r.locals,t,111551&n)&&(Fn.assertNode(e,fD),h=e)}break;case 263:case 231:case 264:if(p=l(cs(e).members||b,t,788968&n)){if(!ia(p,e)){p=void 0;break}if(m&&bb(m))return void(r&&So(x,Ra.Static_members_cannot_reference_class_type_parameters));break e}if(yN(e)&&32&n){const n=e.name;if(n&&t===n.escapedText){p=e.symbol;break e}}break;case 233:if(m===e.expression&&96===e.parent.token){const i=e.parent.parent;if(Pu(i)&&(p=l(cs(i).members,t,788968&n)))return void(r&&So(x,Ra.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 167:if(k=e.parent.parent,(Pu(k)||264===k.kind)&&(p=l(cs(k).members,t,788968&n)))return void(r&&So(x,Ra.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 219:if(HS(S)>=2)break;case 174:case 176:case 177:case 178:case 262:if(3&n&&"arguments"===t){p=ve;break e}break;case 218:if(3&n&&"arguments"===t){p=ve;break e}if(16&n){const n=e.name;if(n&&t===n.escapedText){p=e.symbol;break e}}break;case 170:e.parent&&169===e.parent.kind&&(e=e.parent),e.parent&&(Au(e.parent)||263===e.parent.kind)&&(e=e.parent);break;case 353:case 345:case 347:const o=Kh(e);o&&(e=o.parent);break;case 169:m&&(m===e.initializer||m===e.name&&$u(m))&&(y||(y=e));break;case 208:m&&(m===e.initializer||m===e.name&&$u(m))&&Qy(e)&&!y&&(y=e);break;case 195:if(262144&n){const n=e.typeParameter.name;if(n&&t===n.escapedText){p=e.typeParameter.symbol;break e}}break;case 281:m&&m===e.propertyName&&e.parent.parent.moduleSpecifier&&(e=e.parent.parent.parent)}na(e)&&(g=e),m=e,e=DP(e)?Jh(e)||e.parent:(TP(e)||CP(e))&&zh(e)||e.parent}if(!o||!p||g&&p===g.symbol||(p.isReferenced|=n),!p){if(m&&(Fn.assertNode(m,UA),m.commonJsModuleIndicator&&"exports"===t&&n&m.symbol.flags))return m.symbol;a||(p=l(ue,t,n))}if(!p&&f&&Pg(f)&&f.parent&&Lg(f.parent,!1))return be;function w(){return!(!h||A||(So(x,x&&h.type&&tc(h.type,x.pos)?Ra.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Ra.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Jp(h.name),ra(i)),0))}if(p){if(!r||!w())return r&&c((()=>{if(x&&(2&n||(32&n||384&n)&&111551==(111551&n))){const e=ms(p);(2&e.flags||32&e.flags||384&e.flags)&&function(e,t){var n;if(Fn.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>pp(e)||Pu(e)||266===e.kind));if(void 0===r)return Fn.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||Uo(r,t))){let n;const i=Jp($c(r));2&e.flags?n=So(t,Ra.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=So(t,Ra.Class_0_used_before_its_declaration,i):256&e.flags&&(n=So(t,Ra.Enum_0_used_before_its_declaration,i)),n&&mT(n,qp(r,Ra._0_is_declared_here,i))}}(e,x)}if(p&&T&&111551==(111551&n)&&!(16777216&f.flags)){const e=as(p);C(e.declarations)&&I(e.declarations,(e=>oA(e)||UA(e)&&!!e.symbol.globalExports))&&To(!S.allowUmdGlobalAccess,x,Ra._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Fc(t))}if(p&&y&&!v&&111551==(111551&n)){const e=as(__(p)),t=Zy(y);e===cs(y)?So(x,Ra.Parameter_0_cannot_reference_itself,Jp(y.name)):e.valueDeclaration&&e.valueDeclaration.pos>y.pos&&t.parent.locals&&l(t.parent.locals,e.escapedName,n)===e&&So(x,Ra.Parameter_0_cannot_reference_identifier_1_declared_after_it,Jp(y.name),Jp(x))}if(p&&x&&111551&n&&2097152&p.flags&&!(111551&p.flags)&&!wT(x)){const e=ja(p,111551);if(e){const n=281===e.kind||278===e.kind||280===e.kind?Ra._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Ra._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=Fc(t);Yo(So(x,n,r),e,r)}}})),p}else r&&c((()=>{if(!x||!(331===x.parent.kind||function(e,t,n){if(!qE(e)||e.escapedText!==t||FR(e)||Zv(e))return!1;const r=eg(e,!1,!1);let i=r;for(;i;){if(Pu(i.parent)){const o=cs(i.parent);if(!o)break;if(Zd(ql(o),t))return So(e,Ra.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,ra(n),Hs(o)),!0;if(i===r&&!bb(i)&&Zd(ju(o).thisType,t))return So(e,Ra.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,ra(n)),!0}i=i.parent}return!1}(x,t,i)||w()||aa(x)||function(e,t,n){const r=1920|(Pg(e)?111551:0);if(n===r){const n=Fa(Ho(e,t,788968&~r,void 0,void 0,!1)),i=e.parent;if(n){if(sD(i)){Fn.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(Zd(ju(n),r))return So(i,Ra.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,Fc(t),Fc(r)),!0}return So(e,Ra._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Fc(t)),!0}}return!1}(x,t,n)||function(e,t){return!(!ca(t)||281!==e.parent.kind)&&(So(e,Ra.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0)}(x,t)||function(e,t,n){if(111127&n){if(Fa(Ho(e,t,1024,void 0,void 0,!1)))return So(e,Ra.Cannot_use_namespace_0_as_a_value,Fc(t)),!0}else if(788544&n&&Fa(Ho(e,t,1536,void 0,void 0,!1)))return So(e,Ra.Cannot_use_namespace_0_as_a_type,Fc(t)),!0;return!1}(x,t,n)||function(e,t,n){if(111551&n){if(ca(t))return function(e){const t=e.parent.parent,n=t.parent;if(t&&n){const e=jA(t)&&96===t.token,r=ZN(n);return e&&r}return!1}(e)?So(e,Ra.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,Fc(t)):So(e,Ra._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Fc(t)),!0;const n=Fa(Ho(e,t,788544,void 0,void 0,!1)),r=n&&Oa(n);if(n&&void 0!==r&&!(111551&r)){const r=Fc(t);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?So(e,Ra._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,r):function(e,t){const n=Dc(e.parent,(e=>!cD(e)&&!dD(e)&&(DD(e)||"quit")));if(n&&1===n.members.length){const e=ju(t);return!!(1048576&e.flags)&&mO(e,384,!0)}return!1}(e,n)?So(e,Ra._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):So(e,Ra._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}(x,t,n)||function(e,t,n){if(788584&n){const n=Fa(Ho(e,t,111127,void 0,void 0,!1));if(n&&!(1920&n.flags))return So(e,Ra._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Fc(t)),!0}return!1}(x,t,n))){let e,o;if(i&&(o=function(e){const t=ra(e),n=up().get(t);return n&&Re(n.keys())}(i),o&&So(x,r,ra(i),o)),!o&&s&&ji<10&&(e=VP(f,t,n),(null==e?void 0:e.valueDeclaration)&&gp(e.valueDeclaration)&&Sp(e.valueDeclaration)&&(e=void 0),e)){const t=Hs(e),r=AP(f,e,!1),o=1920===n||i&&"string"!=typeof i&&tv(i)?Ra.Cannot_find_namespace_0_Did_you_mean_1:r?Ra.Could_not_find_name_0_Did_you_mean_1:Ra.Cannot_find_name_0_Did_you_mean_1,a=xo(x,o,ra(i),t);ko(!r,a),e.valueDeclaration&&mT(a,qp(e.valueDeclaration,Ra._0_is_declared_here,t))}e||o||!i||So(x,r,ra(i)),ji++}}))}function Yo(e,t,n){return t?mT(e,qp(t,281===t.kind||278===t.kind||280===t.kind?Ra._0_was_exported_here:Ra._0_was_imported_here,n)):e}function ta(e,t){return 219!==e.kind&&218!==e.kind?ED(e)||(Cu(e)||172===e.kind&&!bb(e))&&(!t||t!==e.name):!(t&&t===e.name||!e.asteriskToken&&!vb(e,512)&&og(e))}function na(e){switch(e.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function ra(e){return yt(e)?Fc(e):Jp(e)}function ia(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind&&(DP(n.parent)?Vh(n.parent):n.parent)===t)return!(DP(n.parent)&&O(n.parent.parent.tags,Eh));return!1}function aa(e){const t=sa(e);return!(!t||!Va(t,64,!0)||(So(e,Ra.Cannot_extend_an_interface_0_Did_you_mean_implements,op(t)),0))}function sa(e){switch(e.kind){case 80:case 211:return e.parent?sa(e.parent):void 0;case 233:if(Qb(e.expression))return e.expression;default:return}}function ca(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function la(e,t,n){return!!t&&!!Dc(e,(e=>e===t||!(e!==n&&(!ku(e)||og(e)&&!Iy(e)))&&"quit"))}function ua(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function _a(e){return e.declarations&&M(e.declarations,da)}function da(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&dy(e)||fN(e)&&2===nh(e)&&dy(e)||lS(e)&&fN(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&pa(e.parent.right)||304===e.kind||303===e.kind&&pa(e.initializer)||260===e.kind&&jg(e)||208===e.kind&&jg(e.parent.parent)}function pa(e){return _y(e)||oN(e)&&YF(e)}function ma(e,t,n,r){const i=e.exports.get("export="),o=i?Zd(ql(i),t,!0):e.exports.get(t),a=Fa(o,r);return Ma(n,o,a,!1),a}function ha(e){return gA(e)&&!e.isExportEquals||vb(e,1024)||vA(e)}function ya(e){return ed(e)?hK(Ff(e),e):void 0}function va(e,t){return 99===e&&1===t}function ba(e){return 99===ya(e)&&Zt(e.text,".json")}function xa(e,t,n,r){const i=e&&ya(r);if(e&&void 0!==i){const t=va(i,e.impliedNodeFormat);if(99===i||t)return t}if(!P)return!1;if(!e||e.isDeclarationFile){const e=ma(t,"default",void 0,!0);return!(e&&le(e.declarations,ha)||ma(t,Pc("__esModule"),void 0,n))}return Ng(e)?"object"!=typeof e.externalModuleIndicator&&!ma(t,Pc("__esModule"),void 0,n):Qa(t)}function Sa(e,t,n){var r;let i;i=bp(e)?e:ma(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find(UA),a=ka(t);if(!a)return i;const s=ba(a),c=xa(o,e,n,a);if(i||c||s){if(c||s){const r=Ga(e,n)||Fa(e,n);return Ma(t,e,r,!1),r}}else if(Qa(e)&&!P){const n=T>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=So(t.name,Ra.Module_0_can_only_be_default_imported_using_the_1_flag,Hs(e),n);r&&mT(i,qp(r,Ra.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else cA(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))So(t.name,Ra.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Hs(e),Hs(t.symbol));else{const n=So(t.name,Ra.Module_0_has_no_default_export,Hs(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!(hA(e)&&e.moduleSpecifier&&(null==(n=null==(t=Ua(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&mT(n,qp(e,Ra.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Ca(e,e,t,ou(t)&&t.propertyName||t.name);return Ma(t,i,void 0,!1),i}function ka(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return kA(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return Fn.assertNever(e)}}function Ta(e,t,n=!1){var r;const i=Eg(e)||e.moduleSpecifier,o=Ua(e,i),a=!QD(t)&&t.propertyName||t.name;if(!qE(a))return;const s=Xa(o,i,!1,"default"===a.escapedText&&P);if(s&&a.escapedText){if(bp(o))return o;let c;c=o&&o.exports&&o.exports.get("export=")?Zd(ql(s),a.escapedText,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Fa(Zd(sx(n),t))}}(s,a.escapedText),c=Fa(c,n);let l=function(e,t,n,r){var i;if(1536&e.flags){const o=ns(e).get(t.escapedText),a=Fa(o,r);return Ma(n,o,a,!1,null==(i=zo(e).typeOnlyExportStarMap)?void 0:i.get(t.escapedText),t.escapedText),a}}(s,a,t,n);if(void 0===l&&"default"===a.escapedText){const e=null==(r=o.declarations)?void 0:r.find(UA);(ba(i)||xa(e,o,n,i))&&(l=Ga(o,n)||Fa(o,n))}const u=l&&c&&l!==c?function(e,t){if(e===pt&&t===pt)return pt;if(790504&e.flags)return e;const n=Ao(e.flags|t.flags,e.escapedName);return Fn.assert(e.declarations||t.declarations),n.declarations=pe(_e(e.declarations,t.declarations),Mt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}(c,l):l||c;return u||Ca(o,s,e,a),u}}function Ca(e,t,n,r){var i;const o=$a(e,n),a=Jp(r),s=KP(r,t);if(void 0!==s){const e=Hs(s),t=So(r,Ra._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&mT(t,qp(s.valueDeclaration,Ra._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?So(r,Ra.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=bt(r.valueDeclaration,E_))?void 0:o.locals)?void 0:a.get(t.escapedText),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)ps(r,s)?function(e,t,n,r){T>=5?So(t,ok(S)?Ra._0_can_only_be_imported_by_using_a_default_import:Ra._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Pg(e)?So(t,ok(S)?Ra._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Ra._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):So(t,ok(S)?Ra._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Ra._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}(e,t,n,i):So(t,Ra.Module_0_has_no_exported_member_1,i,n);else{const e=c?O(Tf(c),(e=>!!ps(e,s))):void 0,r=e?So(t,Ra.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,Hs(e)):So(t,Ra.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&mT(r,...q(s.declarations,((e,t)=>qp(e,0===t?Ra._0_is_declared_here:Ra.and_here,n))))}}else So(t,Ra.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function wa(e){if(GN(e)&&e.initializer&&QD(e.initializer))return e.initializer}function Da(e,t,n){if("default"===Ic(e.propertyName||e.name)){const t=ka(e),r=t&&Ua(e,t);if(r)return Sa(r,e,!!n)}const r=e.parent.parent.moduleSpecifier?Ta(e.parent.parent,e,n):Va(e.propertyName||e.name,t,!1,n);return Ma(e,void 0,r,!1),r}function Na(e,t){if(yN(e))return DO(e).symbol;if(!bu(e)&&!Qb(e))return;return Va(e,901119,!0,t)||(DO(e),$o(e).resolvedSymbol)}function Aa(e,t=!1){switch(e.kind){case 271:case 260:return function(e,t){const n=wa(e);if(n){const e=fS(n.expression).arguments[0];return qE(n.name)?Fa(Zd($f(e),n.name.escapedText)):void 0}if(GN(e)||283===e.moduleReference.kind){const t=Ua(e,Eg(e)||wg(e)),n=Ga(t);return Ma(e,t,n,!1),n}const r=za(e.moduleReference,t);return function(e,t){if(Ma(e,void 0,t,!1)&&!e.isTypeOnly){const t=ja(cs(e)),n=281===t.kind||278===t.kind,r=n?Ra.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Ra.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?Ra._0_was_exported_here:Ra._0_was_imported_here,o=278===t.kind?"*":Fc(t.name.escapedText);mT(So(e.moduleReference,r),qp(t,i,o))}}(e,r),r}(e,t);case 273:return function(e,t){const n=Ua(e,e.parent.moduleSpecifier);if(n)return Sa(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Ua(e,n),i=Xa(r,n,t,!1);return Ma(e,r,i,!1),i}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Ua(e,n),i=n&&Xa(r,n,t,!1);return Ma(e,r,i,!1),i}(e,t);case 276:case 208:return function(e,t){if(mA(e)&&"default"===Ic(e.propertyName||e.name)){const n=ka(e),r=n&&Ua(e,n);if(r)return Sa(r,e,t)}const n=GD(e)?Zy(e):e.parent.parent.parent,r=wa(n),i=Ta(n,r||e,t),o=e.propertyName||e.name;return r&&i&&qE(o)?Fa(Zd(ql(i),o.escapedText),t):(Ma(e,void 0,i,!1),i)}(e,t);case 281:return Da(e,901119,t);case 277:case 226:return function(e,t){const n=Na(gA(e)?e.expression:e.right,t);return Ma(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(w_(e.parent)){const n=Ga(e.parent.symbol,t);return Ma(e,void 0,n,!1),n}}(e,t);case 304:return Va(e.name,901119,!0,t);case 303:return Na(e.initializer,t);case 212:case 211:return function(e,t){if(fN(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return Na(e.parent.right,t)}(e,t);default:return Fn.fail()}}function Pa(e,t=901119){return!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Fa(e,t){return!t&&Pa(e)?Ia(e):e}function Ia(e){Fn.assert(0!=(2097152&e.flags),"Should only get Alias here.");const t=zo(e);if(t.aliasTarget)t.aliasTarget===mt&&(t.aliasTarget=pt);else{t.aliasTarget=mt;const n=_a(e);if(!n)return Fn.fail();const r=Aa(n);t.aliasTarget===mt?t.aliasTarget=r||pt:So(n,Ra.Circular_definition_of_import_alias_0,Hs(e))}return t.aliasTarget}function Oa(e,t,n){const r=t&&ja(e),i=r&&hA(r),o=r&&(i?Ua(r.moduleSpecifier,r.moduleSpecifier,!0):Ia(r.symbol)),a=i&&o?rs(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=ms(Ia(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===pt)return 67108863;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function Ma(e,t,n,r,i,o){if(!e||QD(e))return!1;const a=cs(e);if(cu(e))return zo(a).typeOnlyDeclaration=e,!0;if(i){const e=zo(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=zo(a);return La(s,t,r)||La(s,n,r)}function La(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&O(n.declarations,cu);e.typeOnlyDeclaration=i??zo(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function ja(e,t){if(!(2097152&e.flags))return;const n=zo(e);return void 0===t?n.typeOnlyDeclaration||void 0:n.typeOnlyDeclaration&&Oa(278===n.typeOnlyDeclaration.kind?Fa(rs(n.typeOnlyDeclaration.symbol.parent).get(n.typeOnlyExportStarName||e.escapedName)):Ia(n.typeOnlyDeclaration.symbol))&t?n.typeOnlyDeclaration:void 0}function Ba(e){if(!Te)return;const t=cs(e),n=Ia(t);n&&(n===pt||111551&Oa(t,!0)&&!nj(n))&&Ja(t)}function Ja(e){Fn.assert(Te);const t=zo(e);if(!t.referenced){t.referenced=!0;const n=_a(e);if(!n)return Fn.fail();Dg(n)&&111551&Oa(Fa(e))&&DO(n.moduleReference)}}function za(e,t){return 80===e.kind&&ix(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?Va(e,1920,!1,t):(Fn.assert(271===e.parent.kind),Va(e,901119,!1,t))}function $a(e,t){return e.parent?$a(e.parent,t)+"."+Hs(e):Hs(e,t,void 0,36)}function Va(e,t,n,r,i){if(Jf(e))return;const o=1920|(Pg(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||tv(e)?Ra.Cannot_find_namespace_0:iw(Zb(e)),s=Pg(e)&&!tv(e)?function(e,t){if(hm(e.parent)){const n=function(e){if(Dc(e,(e=>$_(e)||16777216&e.flags?Eh(e):"quit")))return;const t=Vh(e);if(t&&IN(t)&&ph(t.expression)){const e=cs(t.expression.left);if(e)return Ka(e)}if(t&&oN(t)&&ph(t.parent)&&IN(t.parent.parent)){const e=cs(t.parent.left);if(e)return Ka(e)}if(t&&(Bm(t)||JA(t))&&fN(t.parent.parent)&&6===nh(t.parent.parent)){const e=cs(t.parent.parent.left);if(e)return Ka(e)}const n=$h(e);if(n&&ku(n)){const e=cs(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ho(n,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(a=as(Ho(i||e,e.escapedText,t,n||s?void 0:r,e,!0,!1)),!a)return as(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let c=Va(r,o,n,!1,i);if(!c||Jf(s))return;if(c===pt)return c;if(c.valueDeclaration&&Pg(c.valueDeclaration)&&100!==YS(S)&&GN(c.valueDeclaration)&&c.valueDeclaration.initializer&&lI(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=Ua(e,e);if(t){const e=Ga(t);e&&(c=e)}}if(a=as(Ko(ns(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=as(Ko(ns(Ia(c)),s.escapedText,t))),!a){if(!n){const n=$a(c),r=Jp(s),i=KP(s,c);if(i)return void So(s,Ra._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,Hs(i));const o=sD(e)&&function(e){for(;sD(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!cN(o.parent)&&function(e){let t=Zb(e),n=Ho(t,t.escapedText,111551,void 0,t,!0);if(n){for(;sD(t.parent);){if(n=Zd(ql(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void So(o,Ra._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Up(o));if(1920&t&&sD(e.parent)){const t=as(Ko(ns(c),s.escapedText,788968));if(t)return void So(e.parent.right,Ra.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,Hs(t),Fc(e.parent.right.escapedText))}So(s,Ra.Namespace_0_has_no_exported_member_1,n,r)}return}}else Fn.assertNever(e,"Unknown entity name kind.");return Fn.assert(0==(1&$x(a)),"Should never get an instantiated symbol here."),!tv(e)&&bu(e)&&(2097152&a.flags||277===e.parent.kind)&&Ma(uy(e),a,void 0,!0),a.flags&t||r?a:Ia(a)}function Ka(e){const t=e.parent.valueDeclaration;if(t)return(Kg(t)?Wg(t):X_(t)?qg(t):void 0)||t}function Ua(e,t,n){const r=1===YS(S)?Ra.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Ra.Cannot_find_module_0_or_its_corresponding_type_declarations;return qa(e,t,n?void 0:r)}function qa(e,t,n,r=!1){return ed(t)?Wa(e,t.text,n,t,r):void 0}function Wa(t,n,r,i,o=!1){var a,s,c,l,u,_,d,f,p,m;fn(n,"@types/")&&So(i,Ra.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,pn(n,"@types/"),n);const g=Cf(n,!0);if(g)return g;const h=Ff(t),y=ed(t)?t:(null==(a=Dc(t,pm))?void 0:a.arguments[0])||(null==(s=Dc(t,sA))?void 0:s.moduleSpecifier)||(null==(c=Dc(t,Cg))?void 0:c.moduleReference.expression)||(null==(l=Dc(t,hA))?void 0:l.moduleSpecifier)||(null==(u=nA(t)?t:t.parent&&nA(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:u.name)||(null==(_=gm(t)?t:void 0)?void 0:_.argument.literal),v=y&&ed(y)?hK(h,y):h.impliedNodeFormat,b=YS(S),x=bf(h,n,v),k=x&&$K(S,x,h),C=x&&(!k||k===Ra.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(x.resolvedFileName);if(C){if(k&&So(i,k,n,x.resolvedFileName),x.resolvedUsingTsExtension&&QI(n)){const e=(null==(d=Dc(t,sA))?void 0:d.importClause)||Dc(t,yn(aA,hA));(e&&!e.isTypeOnly||Dc(t,pm))&&So(i,Ra.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=nT(n,e);if(XS(T)||99===v){const r=QI(n)&&aj(S);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(Fn.checkDefined(ux(n))))}else if(x.resolvedUsingTsExtension&&!aj(S,h.fileName)){const e=(null==(f=Dc(t,sA))?void 0:f.importClause)||Dc(t,yn(aA,hA));if(!(null==e?void 0:e.isTypeOnly)&&!Dc(t,KD)){const e=Fn.checkDefined(ux(n));So(i,Ra.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}if(C.symbol){if(x.isExternalLibraryImport&&!cT(x.extension)&&Ha(!1,i,h,v,x,n),3===b||99===b){const e=1===h.impliedNodeFormat&&!Dc(t,pm)||!!Dc(t,aA),r=Dc(t,(e=>KD(e)||hA(e)||sA(e))),o=r&&KD(r)?null==(p=r.assertions)?void 0:p.assertClause:null==r?void 0:r.assertClause;if(e&&99===C.impliedNodeFormat&&!yK(o))if(Dc(t,aA))So(i,Ra.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e;const t=_T(h.fileName);if(".ts"===t||".js"===t||".tsx"===t||".jsx"===t){const n=h.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0;e=n&&!n.contents.packageJsonContent.type?r?RS(void 0,Ra.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,fa(n.packageDirectory,"package.json")):RS(void 0,Ra.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,fa(n.packageDirectory,"package.json")):r?RS(void 0,Ra.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,r):RS(void 0,Ra.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}ro.add(Gp(Ff(i),i,RS(e,Ra.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return as(C.symbol)}r&&So(i,Ra.File_0_is_not_a_module,C.fileName)}else{if(Wn){const e=dn(Wn,(e=>e.pattern),n);if(e){const t=Hn&&Hn.get(n);return as(t||e.symbol)}}if((!x||cT(x.extension)||void 0!==k)&&k!==Ra.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(x){const t=e.getProjectReferenceRedirect(x.resolvedFileName);if(t)return void So(i,Ra.Output_file_0_has_not_been_built_from_source_file_1,t,x.resolvedFileName)}if(k)So(i,k,n,x.resolvedFileName);else{const t=Xo(n)&&!Qo(n),o=3===b||99===b;if(!_k(S)&&Zo(n,".json")&&1!==b&&ZS(S))So(i,Ra.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===v&&o&&t){const t=ga(n,oa(h.path)),r=null==(m=po.find((([n,r])=>e.fileExists(t+n))))?void 0:m[1];r?So(i,Ra.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):So(i,Ra.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else So(i,r,n)}}return}o?So(i,Ra.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,x.resolvedFileName):Ha(W&&!!r,i,h,v,x,n)}}function Ha(t,n,r,i,{packageId:o,resolvedFileName:a},s){let c;!Gs(s)&&o&&(c=wf(r,e,s,i,o.name)),To(t,n,RS(c,Ra.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function Ga(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===pt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=zo(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:Mo(e);return r.flags=512|r.flags,void 0===r.exports&&(r.exports=cf()),t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Lo(r.exports.get(t),e):e)})),r===e&&(zo(r).resolvedExports=void 0,zo(r).resolvedMembers=void 0),zo(r).cjsExportMerged=r,n.cjsExportMerged=r}(as(Fa(e.exports.get("export="),t)),as(e));return as(n)||e}}function Xa(e,t,n,r){var i;const o=Ga(e,n);if(!n&&o){if(!(r||1539&o.flags||af(o,312))){const e=T>=5?"allowSyntheticDefaultImports":"esModuleInterop";return So(t,Ra.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),o}const n=t.parent;if(sA(n)&&Sh(n)||pm(n)){const t=pm(n)?n.arguments[0]:n.moduleSpecifier,r=ql(o),a=sI(r,o,e,t);if(a)return Ya(o,a,n);const s=null==(i=null==e?void 0:e.declarations)?void 0:i.find(UA),c=s&&va(ya(t),s.impliedNodeFormat);if(ok(S)||c){let i=ef(r,0);if(i&&i.length||(i=ef(r,1)),i&&i.length||Zd(r,"default",!0)||c)return Ya(o,3670016&r.flags?cI(r,o,e,t):aI(o,o.parent),n)}}}return o}function Ya(e,t,n){const r=Ao(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));const i=bd(t);return r.links.type=Ps(r,i.members,a,a,i.indexInfos),r}function Qa(e){return void 0!==e.exports.get("export=")}function Za(e){return Tf(rs(e))}function es(e,t){const n=rs(t);if(n)return n.get(e)}function ts(e){return!(402784252&e.flags||1&tS(e)||Ik(e)||eT(e))}function ns(e){return 6256&e.flags?s_(e,"resolvedExports"):1536&e.flags?rs(e):e.exports||b}function rs(e){const t=zo(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=os(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function is(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&Fa(o)!==Fa(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:op(r.moduleSpecifier)})}))}function os(e){const t=[];let n;const r=new Set,i=function e(i,o,a){if(!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t))),!(i&&i.exports&&Ee(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=cf(),n=new Map;if(c.declarations)for(const r of c.declarations){is(t,e(Ua(r,r.moduleSpecifier),r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)ro.add(qp(r,Ra.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,Fc(t)))})),is(s,t)}return(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,o)))),s}(e=Ga(e))||b;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function as(e){let t;return e&&e.mergeId&&(t=Bi[e.mergeId])?t:e}function cs(e){return as(e.symbol&&__(e.symbol))}function ls(e){return w_(e)?cs(e):void 0}function us(e){return as(e.parent&&__(e.parent))}function _s(t,n,r){const i=us(t);if(i&&!(262144&t.flags)){const o=te(i.declarations,(function(e){return i&&ds(e,i)})),s=n&&function(t,n){const r=Ff(n),i=bB(r),o=zo(t);let s;if(o.extendedContainersByFile&&(s=o.extendedContainersByFile.get(i)))return s;if(r&&r.imports){for(const e of r.imports){if(tv(e))continue;const r=Ua(n,e,!0);r&&fs(r,t)&&(s=ke(s,r))}if(C(s))return(o.extendedContainersByFile||(o.extendedContainersByFile=new Map)).set(i,s),s}if(o.extendedContainers)return o.extendedContainers;const c=e.getSourceFiles();for(const e of c){if(!HI(e))continue;const n=cs(e);fs(n,t)&&(s=ke(s,n))}return o.extendedContainers=s||a}(t,n),c=function(e,t){const n=!!C(e.declarations)&&Le(e.declarations);if(111551&t&&n&&n.parent&&GN(n.parent)&&(YD(n)&&n===n.parent.initializer||DD(n)&&n===n.parent.type))return cs(n.parent)}(i,r);if(n&&i.flags&Is(r)&&Os(i,n,1920,!1))return ke(_e(_e([i],o),s),c);const l=!(i.flags&Is(r))&&788968&i.flags&&524288&ju(i).flags&&111551===r?Fs(n,(e=>mf(e,(e=>{if(e.flags&Is(r)&&ql(e)===ju(i))return e})))):void 0;let u=l?[l,...o,i]:[...o,i];return u=ke(u,c),u=we(u,s),u}const o=te(t.declarations,(e=>{if(!gp(e)&&e.parent){if(Us(e.parent))return cs(e.parent);if(rA(e.parent)&&e.parent.parent&&Ga(cs(e.parent.parent))===t)return cs(e.parent.parent)}if(yN(e)&&fN(e.parent)&&64===e.parent.operatorToken.kind&&lS(e.parent.left)&&Qb(e.parent.left.expression))return th(e.parent.left)||Zg(e.parent.left.expression)?cs(Ff(e)):(DO(e.parent.left.expression),$o(e.parent.left.expression).resolvedSymbol)}));if(C(o))return te(o,(e=>fs(e,t)?e:void 0))}function ds(e,t){const n=Vs(e),r=n&&n.exports&&n.exports.get("export=");return r&&ps(r,t)?n:void 0}function fs(e,t){if(e===us(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&ps(n,t))return e;const r=ns(e),i=r.get(t.escapedName);return i&&ps(i,t)?i:mf(r,(e=>{if(ps(e,t))return e}))}function ps(e,t){if(as(Fa(as(e)))===as(Fa(as(t))))return e}function ms(e){return as(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function hs(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&Oa(e,!t))}function ys(e){const t=e.members;for(const e of t)if(176===e.kind&&zf(e.body))return e}function bs(e){var t;const n=new _(Ae,e);return f++,n.id=f,null==(t=Br)||t.recordType(n),n}function xs(e,t){const n=bs(e);return n.symbol=t,n}function Ss(e){return new _(Ae,e)}function ks(e,t,n=0){const r=bs(e);return r.intrinsicName=t,r.objectFlags=52953088|n,r}function Cs(e,t){const n=xs(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function ws(e){return xs(262144,e)}function Es(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Ds(e){let t;return e.forEach(((e,n)=>{Ns(e,n)&&(t||(t=[])).push(e)})),t||a}function Ns(e,t){return!Es(t)&&hs(e)}function As(e,t,n,r,i){const o=e;return o.members=t,o.properties=a,o.callSignatures=n,o.constructSignatures=r,o.indexInfos=i,t!==b&&(o.properties=Ds(t)),o}function Ps(e,t,n,r,i){return As(Cs(16,e),t,n,r,i)}function Fs(e,t){let n;for(let r=e;r;r=r.parent){if(E_(r)&&r.locals&&!Vo(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 312:if(!om(r))break;case 267:const e=cs(r);if(n=t((null==e?void 0:e.exports)||b,void 0,!0,r))return n;break;case 263:case 231:case 264:let i;if((cs(r).members||b).forEach(((e,t)=>{788968&e.flags&&(i||(i=cf())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(ue,void 0,!0)}function Is(e){return 111551===e?111551:1920}function Os(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const o=zo(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=Fs(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s&&bB(s)}|${n}`;if(a.has(c))return a.get(c);const l=xB(e);let u=i.get(l);u||i.set(l,u=[]);const _=Fs(t,d);return a.set(c,_),_;function d(n,i,o){if(!Ee(u,n))return;const a=function(n,i,o){return p(n.get(e.escapedName),void 0,i)?[e]:mf(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(rS(n)&&t&&HI(Ff(t)))&&(!r||le(n.declarations,Cg))&&(!o||!le(n.declarations,Tg))&&(i||!af(n,281))){const e=m(n,Ia(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&p(as(n.exportSymbol),void 0,i))return[e]}))||(n===ue?m(me,me,i):void 0)}(n,i,o);return u.pop(),a}function f(e,n){return!Ms(e,t,n)||!!Os(e.parent,t,Is(n),r,i)}function p(t,r,i){return(e===(r||t)||as(e)===as(r||t))&&!le(t.declarations,Us)&&(i||f(as(t),n))}function m(e,t,r){if(p(e,t,r))return[e];const i=ns(t),o=i&&d(i,!0);return o&&f(e,Is(n))?[e].concat(o):void 0}}function Ms(e,t,n){let r=!1;return Fs(t,(t=>{let i=as(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!af(i,281);return i=o?Ia(i):i,!!((o?Oa(i):i.flags)&n)&&(r=!0,!0)})),r}function Ls(e,t){return 0===$s(e,t,788968,!1,!0).accessibility}function Rs(e,t){return 0===$s(e,t,111551,!1,!0).accessibility}function js(e,t,n){return 0===$s(e,t,n,!1,!1).accessibility}function Bs(e,t,n,r,i,o){if(!C(e))return;let a,s=!1;for(const c of e){const e=Os(c,t,r,!1);if(e){a=c;const t=qs(e[0],i);if(t)return t}if(o&&le(c.declarations,Us)){if(i){s=!0;continue}return{accessibility:0}}const l=Bs(_s(c,t,r),t,n,n===c?Is(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:Hs(n,t,r),errorModuleName:a!==n?Hs(a,t,1920):void 0}:void 0}function zs(e,t,n,r){return $s(e,t,n,r,!0)}function $s(e,t,n,r,i){if(e&&t){const o=Bs([e],t,e,n,r,i);if(o)return o;const a=w(e.declarations,Vs);return a&&a!==Vs(t)?{accessibility:2,errorSymbolName:Hs(e,t,n),errorModuleName:Hs(a),errorNode:Pg(t)?t:void 0}:{accessibility:1,errorSymbolName:Hs(e,t,n)}}return{accessibility:0}}function Vs(e){const t=Dc(e,Ks);return t&&cs(t)}function Ks(e){return gp(e)||312===e.kind&&om(e)}function Us(e){return hp(e)||312===e.kind&&om(e)}function qs(e,t){let n;if(I(V(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!dc(t)){const o=ua(t);if(o&&!vb(o,1)&&dc(o.parent))return r(t,o);if(GN(t)&&PN(t.parent.parent)&&!vb(t.parent.parent,1)&&dc(t.parent.parent.parent))return r(t,t.parent.parent);if(Op(t)&&!vb(t,1)&&dc(t.parent))return r(t,t);if(GD(t)){if(2097152&e.flags&&Pg(t)&&(null==(n=t.parent)?void 0:n.parent)&&GN(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&PN(t.parent.parent.parent.parent)&&!vb(t.parent.parent.parent.parent,1)&&t.parent.parent.parent.parent.parent&&dc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=Dc(t,PN);return!!vb(e,1)||!!dc(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&($o(e).isVisible=!0,n=De(n,r)),!0}}function Ws(e,t){let n;n=186===e.parent.kind||233===e.parent.kind&&!Tm(e.parent)||167===e.parent.kind?1160127:166===e.kind||211===e.kind||271===e.parent.kind?1920:788968;const r=Zb(e),i=Ho(t,r.escapedText,n,void 0,void 0,!1);return i&&262144&i.flags&&788968&n||!i&&Qv(r)&&0===zs(cs(eg(r,!1,!1)),r,n,!1).accessibility?{accessibility:0}:i&&qs(i,!0)||{accessibility:1,errorSymbolName:op(r),errorNode:r}}function Hs(e,t,n,r=4,i){let o=70221824;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(o|=134217728),16&r&&(o|=1073741824);const a=4&r?ce.symbolToNode:ce.symbolToEntityName;return i?s(i).getText():yf(s);function s(r){const i=a(e,n,t,o),s=312===(null==t?void 0:t.kind)?q$():U$(),c=t&&Ff(t);return s.writeNode(4,i,c,r),r}}function Xs(e,t,n=0,r,i){return i?o(i).getText():yf(o);function o(i){let o;o=262144&n?1===r?185:184:1===r?180:179;const a=ce.signatureToSignatureDeclaration(e,o,t,70222336|ic(n)),s=W$(),c=t&&Ff(t);return s.writeNode(4,a,c,Tv(i)),i}}function Ys(e,t,n=1064960,r=kv("")){const i=S.noErrorTruncation||1&n,o=ce.typeToTypeNode(e,t,70221824|ic(n)|(i?1:0));if(void 0===o)return Fn.fail("should always get typenode");const a=e!==wt?U$():K$(),s=t&&Ff(t);a.writeNode(4,o,s,r);const c=r.getText(),l=i?2*sd:2*ad;return l&&c&&c.length>=l?c.substr(0,l-"...".length)+"...":c}function Zs(e,t){let n=rc(e.symbol)?Ys(e,e.symbol.valueDeclaration):Ys(e),r=rc(t.symbol)?Ys(t,t.symbol.valueDeclaration):Ys(t);return n===r&&(n=nc(e),r=nc(t)),[n,r]}function nc(e){return Ys(e,void 0,64)}function rc(e){return e&&!!e.valueDeclaration&&l_(e.valueDeclaration)&&!Jx(e.valueDeclaration)}function ic(e=0){return 848330091&e}function oc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===Su(e.symbol)||524288&e.flags&&16777216&tS(e)))}function ac(e,t,n=16384,r){return r?i(r).getText():yf(i);function i(r){const i=FC.createTypePredicateNode(2===e.kind||3===e.kind?FC.createToken(131):void 0,1===e.kind||3===e.kind?FC.createIdentifier(e.parameterName):FC.createThisTypeNode(),e.type&&ce.typeToTypeNode(e.type,t,70222336|ic(n))),o=U$(),a=t&&Ff(t);return o.writeNode(4,i,a,r),r}}function sc(e){return 8===e?"private":16===e?"protected":"public"}function cc(e){return e&&e.parent&&268===e.parent.kind&&kp(e.parent.parent)}function lc(e){return 312===e.kind||gp(e)}function uc(e,t){const n=zo(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return Js(e,HS(S))||HT(e)?HT(e)&&fn(e,"-")?`[${e}]`:e:`"${pv(e,34)}"`}if(8192&n.flags)return`[${_c(n.symbol,t)}]`}}function _c(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&Dc(e.declarations[0],lc)!==Dc(t.enclosingDeclaration,lc)))return"default";if(e.declarations&&e.declarations.length){let n=D(e.declarations,(e=>$c(e)?e:void 0));const r=n&&$c(n);if(n&&r){if(eN(n)&&rh(n))return Mc(e);if(cD(r)&&!(4096&$x(e))){const n=zo(e).nameType;if(n&&384&n.flags){const n=uc(e,t);if(void 0!==n)return n}}return Jp(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return Jp(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const n=uc(e,t);return void 0!==n?n:Mc(e)}function dc(e){if(e){const t=$o(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 345:case 353:case 347:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&UA(e.parent.parent.parent));case 208:return dc(e.parent.parent);case 260:if($u(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(kp(e))return!0;const t=vc(e);return 1&OB(e)||271!==e.kind&&312!==t.kind&&33554432&t.flags?dc(t):Vo(t);case 172:case 171:case 177:case 178:case 174:case 173:if(yb(e,24))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return dc(e.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function fc(e,t){let n,r,i;return e.parent&&277===e.parent.kind?n=Ho(e,e.escapedText,2998271,void 0,e,!1):281===e.parent.kind&&(n=Da(e.parent,2998271)),n&&(i=new Set,i.add(xB(n)),function e(n){w(n,(n=>{const o=ua(n)||n;if(t?$o(n).isVisible=!0:(r=r||[],Ee(r,o)),Dg(n)){const t=Ho(n,Zb(n.moduleReference).escapedText,901119,void 0,void 0,!1);t&&i&&oe(i,xB(t))&&e(t.declarations)}}))}(n.declarations)),r}function pc(e,t){const n=mc(e,t);if(n>=0){const{length:e}=Ii;for(let t=n;t=Li;n--){if(gc(Ii[n],Mi[n]))return-1;if(Ii[n]===e&&Mi[n]===t)return n}return-1}function gc(e,t){switch(t){case 0:return!!zo(e).type;case 5:return!!$o(e).resolvedEnumType;case 2:return!!zo(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved;case 8:return!!zo(e).writeType;case 9:return void 0!==$o(e).parameterInitializerContainsUndefined}return Fn.assertNever(t)}function yc(){return Ii.pop(),Mi.pop(),Oi.pop()}function vc(e){return Dc(Zy(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function xc(e,t){const n=Zd(e,t);return n?ql(n):void 0}function kc(e,t){var n;let r;return xc(e,t)||(r=null==(n=Sf(e,t))?void 0:n.type)&&Zc(r,!0,!0)}function Cc(e){return e&&0!=(1&e.flags)}function wc(e){return e===Ct||!!(1&e.flags&&e.aliasSymbol)}function Nc(e,t){if(0!==t)return el(e,!1,t);const n=cs(e);return n&&zo(n).type||el(e,!1,t)}function Lc(e,t,n){if(131072&(e=Qw(e,(e=>!(98304&e.flags)))).flags)return Dn;if(1048576&e.flags)return tE(e,(e=>Lc(e,t,n)));let r=ly(q(t,Wy));const i=[],o=[];for(const t of Td(e)){const e=Hy(t,8576);iS(e,r)||24&Vx(t)||!Ab(t)?o.push(e):i.push(t)}if(Dv(e)||Nv(r)){if(o.length&&(r=ly([r,...o])),131072&r.flags)return e;const t=(Rr||(Rr=jm("Omit",2,!0)||pt),Rr===pt?void 0:Rr);return t?Vp(t,[e,r]):Ct}const s=cf();for(const e of i)s.set(e.escapedName,Fb(e,!1));const c=Ps(n,s,a,a,df(e));return c.objectFlags|=4194304,c}function Rc(e){return!!(465829888&e.flags)&&fO(Od(e)||Nt,32768)}function Bc(e){return Ew(Xw(e,Rc)?tE(e,(e=>465829888&e.flags?Md(e):e)):e,524288)}function zc(e,t){const n=Vc(e);return n?SE(n,t):t}function Vc(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return Vc(t);case 209:return Vc(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&Ih(t)&&t.flowNode){const n=qc(e);if(n){const r=tI(uI.createStringLiteral(n),e),i=r_(t)?t:uI.createParenthesizedExpression(t),o=tI(uI.createElementAccessExpression(i,r),e);return OT(r,o),OT(o,e),i!==t&&OT(i,o),o.flowNode=t.flowNode,o}}}function qc(e){const t=e.parent;return 208===e.kind&&206===t.kind?Hc(e.propertyName||e.name):303===e.kind||304===e.kind?Hc(e.name):""+t.elements.indexOf(e)}function Hc(e){const t=Wy(e);return 384&t.flags?""+t.value:void 0}function Gc(e,t){if(Cc(t))return t;const n=e.parent;let r;if(F&&33554432&e.flags&&Qy(e)?t=bT(t):!F||!n.parent.initializer||65536&ww(zw(n.parent.initializer))||(t=Ew(t,524288)),206===n.kind)if(e.dotDotDotToken){if(2&(t=Wd(t)).flags||!JN(t))return So(e,Ra.Rest_types_may_only_be_created_from_object_types),Ct;const i=[];for(const e of n.elements)e.dotDotDotToken||i.push(e.propertyName||e.name);r=Lc(t,i,e.symbol)}else{const n=e.propertyName||e.name;r=zc(e,Mv(t,Wy(n),32,n))}else{const i=mL(65|(e.dotDotDotToken?0:128),t,Pt,n),o=n.elements.indexOf(e);if(e.dotDotDotToken){const e=tE(t,(e=>58982400&e.flags?Md(e):e));r=Yw(e,eT)?tE(e,(e=>Nh(e,o))):Qg(i)}else r=jk(t)?zc(e,jv(t,Jb(o),32|(CN(e)?16:0),e.name)||Ct):i}return e.initializer?rb(bc(e))?!F||16777216&ww(AO(e,0))?r:Bc(r):PO(e,ly([Bc(r),AO(e,0)],2)):r}function Xc(e){const t=vl(e);if(t)return sx(t)}function Yc(e){const t=ny(e,!0);return 209===t.kind&&0===t.elements.length}function Zc(e,t=!1,n=!0){return F&&n?pT(e,t):e}function el(e,t,n){if(GN(e)&&249===e.parent.parent.kind){const t=iv(ZA(WO(e.parent.parent.expression,n)));return 4456448&t.flags?ov(t):Jt}if(GN(e)&&250===e.parent.parent.kind)return pL(e.parent.parent)||St;if($u(e.parent))return function(e){const t=e.dotDotDotToken?64:0,n=Nc(e.parent.parent,t);return n&&Gc(e,n)}(e);const r=fD(e)&&!Cb(e)||dD(e)||PP(e),i=t&&oC(e),o=kl(e);if(mp(e))return o?Cc(o)||o===Nt?o:Ct:Q?Nt:St;if(o)return Zc(o,r,i);if((W||Pg(e))&&GN(e)&&!$u(e.name)&&!(1&OB(e))&&!(33554432&e.flags)){if(!(6&MB(e))&&(!e.initializer||function(e){const t=ny(e,!0);return 106===t.kind||80===t.kind&&ow(t)===de}(e.initializer)))return kt;if(e.initializer&&Yc(e.initializer))return sr}if(uD(e)){const t=e.parent;if(178===t.kind&&o_(t)){const n=af(cs(e.parent),177);if(n){const r=Lf(n),i=Hj(t);return i&&e===i?(Fn.assert(!i.type),ql(r.thisParameter)):qf(r)}}const n=function(e,t){const n=Rf(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?EI(n,r):CI(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?XE(t):YE(e);if(r)return Zc(r,!1,i)}if(X_(e)&&e.initializer){if(Pg(e)&&!uD(e)){const t=cl(e,cs(e),qg(e));if(t)return t}return Zc(PO(e,AO(e,n)),r,i)}if(fD(e)&&(W||Pg(e))){if(xb(e)){const t=V(e.parent.members,gD),n=t.length?function(e,t){const n=fn(e.escapedName,"__#")?FC.createPrivateIdentifier(e.escapedName.split("@")[1]):Fc(e.escapedName);for(const r of t){const t=FC.createPropertyAccessExpression(FC.createThis(),n);OT(t.expression,t),OT(t,r),t.flowNode=r.returnFlowNode;const i=al(t,e);if(!W||i!==kt&&i!==sr||So(e.valueDeclaration,Ra.Member_0_implicitly_has_an_1_type,Hs(e),Ys(i)),!Yw(i,QA))return iL(i)}}(e.symbol,t):2&Pb(e)?Sk(e.symbol):void 0;return n&&Zc(n,!0,i)}{const t=ys(e.parent),n=t?ol(e.symbol,t):2&Pb(e)?Sk(e.symbol):void 0;return n&&Zc(n,!0,i)}}return PA(e)?Ut:$u(e.name)?gl(e.name,!1,!0):void 0}function nl(e){if(e.valueDeclaration&&fN(e.valueDeclaration)){const t=zo(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!il(e)&&I(e.declarations,(t=>fN(t)&&iD(t)&&(212!==t.left.kind||Oy(t.left.argumentExpression))&&!ll(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function rl(e){const t=e.valueDeclaration;return t&&fD(t)&&!rb(t)&&!t.initializer&&(W||Pg(t))}function il(e){if(e.declarations)for(const t of e.declarations){const e=eg(t,!1,!1);if(e&&(176===e.kind||YF(e)))return e}}function ol(e,t){const n=fn(e.escapedName,"__#")?FC.createPrivateIdentifier(e.escapedName.split("@")[1]):Fc(e.escapedName),r=FC.createPropertyAccessExpression(FC.createThis(),n);OT(r.expression,r),OT(r,t),r.flowNode=t.returnFlowNode;const i=al(r,e);return!W||i!==kt&&i!==sr||So(e.valueDeclaration,Ra.Member_0_implicitly_has_an_1_type,Hs(e),Ys(i)),Yw(i,QA)?void 0:iL(i)}function al(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!rl(t)||2&Pb(t.valueDeclaration))&&Sk(t)||Pt;return SE(e,kt,n)}function sl(e,t){const n=Wg(e.valueDeclaration);if(n){const t=Pg(n)?yl(n):void 0;return t&&t.typeExpression?sx(t.typeExpression):e.valueDeclaration&&cl(e.valueDeclaration,e,n)||Xk(DO(n))}let r,i=!1,o=!1;if(nl(e)&&(r=ol(e,il(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=fN(r)||eN(r)?r:lS(r)?fN(r.parent)?r.parent:r:void 0;if(!s)continue;const c=lS(s)?dh(s):nh(s);(4===c||fN(s)&&iD(s,c))&&(dl(s)?i=!0:o=!0),eN(s)||(a=ll(a,s,e,r)),a||(n||(n=[])).push(fN(s)||eN(s)?ul(e,t,s,c):Qt)}r=a}if(!r){if(!C(n))return Ct;let t=i&&e.declarations?function(e,t){return Fn.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=fN(r)?r:fN(r.parent)?r.parent:void 0;return i&&dl(i)}))}(n,e.declarations):void 0;if(o){const n=Sk(e);n&&((t||(t=[])).push(n),i=!0)}r=ly(le(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=dC(Zc(r,!1,o&&!i));return e.valueDeclaration&&Pg(e.valueDeclaration)&&Qw(a,(e=>!!(-98305&e.flags)))===Qt?(vC(e.valueDeclaration,St),St):a}function cl(e,t,n){var r,i;if(!Pg(e)||!n||!YD(n)||n.properties.length)return;const o=cf();for(;fN(e)||QD(e);){const t=ls(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&Bo(o,t.exports),e=fN(e)?e.parent:e.parent.parent}const s=ls(e);(null==(i=null==s?void 0:s.exports)?void 0:i.size)&&Bo(o,s.exports);const c=Ps(t,o,a,a,a);return c.objectFlags|=4096,c}function ll(e,t,n,r){var i;const o=rb(t.parent);if(o){const t=dC(sx(o));if(!e)return t;wc(e)||wc(t)||Gx(e,t)||aL(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=rb(n.parent.valueDeclaration);if(e){const t=Zd(sx(e),n.escapedName);if(t)return Hl(t)}}return e}function ul(e,t,n,r){if(eN(n)){if(t)return ql(t);const e=DO(n.arguments[2]),r=xc(e,"value");if(r)return r;const i=xc(e,"get");if(i){const e=pF(i);if(e)return qf(e)}const o=xc(e,"set");if(o){const e=pF(o);if(e)return II(e)}return St}if(function(e,t){return QD(e)&&110===e.expression.kind&&$I(t,(t=>cw(e,t)))}(n.left,n.right))return St;const i=1===r&&(QD(n.left)||ZD(n.left))&&(th(n.left.expression)||qE(n.left.expression)&&Zg(n.left.expression)),o=t?ql(t):i?Mb(DO(n.right)):Xk(DO(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=bd(o),r=cf();hf(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=cf()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&Ff(e.valueDeclaration)!==Ff(i.valueDeclaration)){const t=Fc(e.escapedName),r=(null==(n=bt(i.valueDeclaration,Jc))?void 0:n.name)||i.valueDeclaration;mT(So(e.valueDeclaration,Ra.Duplicate_identifier_0,t),qp(r,Ra._0_was_also_declared_here,t)),mT(So(r,Ra.Duplicate_identifier_0,t),qp(e.valueDeclaration,Ra._0_was_also_declared_here,t))}const o=Ao(e.flags|i.flags,t);o.links.type=ly([ql(e),ql(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=_e(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Lo(e,i))}));const a=Ps(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&tS(o))){a.aliasSymbol=o.symbol;const e=Fp(o);a.aliasTypeArguments=C(e)?e:void 0}return a.objectFlags|=4096&tS(o),a.symbol&&32&a.symbol.flags&&o===Su(a.symbol)&&(a.objectFlags|=16777216),a}return zk(o)?(vC(n,ar),ar):o}function dl(e){const t=eg(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!ph(t.parent)}function ml(e,t,n){return e.initializer?Zc(PO(e,AO(e,0,$u(e.name)?gl(e.name,!0,!1):Nt))):$u(e.name)?gl(e.name,t,n):(n&&!xl(e)&&vC(e,St),t?Et:St)}function gl(e,t=!1,n=!1){return 206===e.kind?function(e,t,n){const r=cf();let i,o=131200;w(e.elements,(e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=ip(Jt,St,!1));const s=Wy(a);if(!gC(s))return void(o|=512);const c=hC(s),l=Ao(4|(e.initializer?16777216:0),c);l.links.type=ml(e,t,n),l.links.bindingElement=e,r.set(l.escapedName,l)}));const s=Ps(void 0,r,a,a,i?[i]:a);return s.objectFlags|=o,t&&(s.pattern=e,s.objectFlags|=131072),s}(e,t,n):function(e,t,n){const r=e.elements,i=je(r),o=i&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return k>=2?Vg(St):ar;const a=q(r,(e=>vN(e)?St:ml(e,t,n))),s=R(r,(e=>!(e===o||vN(e)||CN(e))),r.length-1)+1;let c=hh(a,q(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=Ap(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n)}function hl(e,t){return bl(el(e,!0,0),e,t)}function bl(e,t,n){return e?(4096&e.flags&&function(e){const t=ls(e),n=_r||(_r=Rm("SymbolConstructor",!1));return n&&t&&t===n}(t.parent)&&(e=qb(t)),n&&bC(t,e),8192&e.flags&&(GD(t)||!t.type)&&e.symbol!==cs(t)&&(e=Gt),dC(e)):(e=uD(t)&&t.dotDotDotToken?ar:St,n&&(xl(t)||vC(t,e)),e)}function xl(e){const t=Zy(e);return _M(169===t.kind?t.parent:t)}function kl(e){const t=rb(e);if(t)return sx(t)}function Tl(e){if(e)switch(e.kind){case 177:return ob(e);case 178:return sb(e);case 172:return Fn.assert(Cb(e)),rb(e)}}function wl(e){const t=Tl(e);return t&&sx(t)}function Al(e){const t=zo(e);if(!t.type){if(!pc(e,0))return Ct;const n=af(e,177),r=af(e,178),i=bt(af(e,172),Iu);let o=n&&Pg(n)&&Xc(n)||wl(n)||wl(r)||wl(i)||n&&n.body&&GI(n)||i&&i.initializer&&hl(i,!0);o||(r&&!_M(r)?To(W,r,Ra.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Hs(e)):n&&!_M(n)?To(W,n,Ra.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Hs(e)):i&&!_M(i)&&To(W,i,Ra.Member_0_implicitly_has_an_1_type,Hs(e),"any"),o=St),yc()||(Tl(n)?So(n,Ra._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)):Tl(r)||Tl(i)?So(r,Ra._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)):n&&W&&So(n,Ra._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,Hs(e)),o=St),t.type=o}return t.type}function Fl(e){const t=zo(e);if(!t.writeType){if(!pc(e,8))return Ct;const n=af(e,178)??bt(af(e,172),Iu);let r=wl(n);yc()||(Tl(n)&&So(n,Ra._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)),r=St),t.writeType=r||Al(e)}return t.writeType}function Il(e){const t=du(Su(e));return 8650752&t.flags?t:2097152&t.flags?O(t.types,(e=>!!(8650752&e.flags))):void 0}function zl(e){let t=zo(e);const n=t;if(!t.type){const r=e.valueDeclaration&&ZF(e.valueDeclaration,!1);if(r){const n=QF(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&bp(e))return St;if(t&&(226===t.kind||lS(t)&&226===t.parent.kind))return sl(e);if(512&e.flags&&t&&UA(t)&&t.commonJsModuleIndicator){const t=Ga(e);if(t!==e){if(!pc(e,0))return Ct;const n=as(e.exports.get("export=")),r=sl(n,n===t?void 0:t);return yc()?r:Vl(e)}}const n=Cs(16,e);if(32&e.flags){const t=Il(e);return t?Ey([n,t]):n}return F&&16777216&e.flags?pT(n,!0):n}(e)}return t.type}function $l(e){const t=zo(e);return t.type||(t.type=Lu(e))}function Vl(e){const t=e.valueDeclaration;return rb(t)?(So(e.valueDeclaration,Ra._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hs(e)),Ct):(W&&(169!==t.kind||t.initializer)&&So(e.valueDeclaration,Ra._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Hs(e)),St)}function Kl(e){const t=zo(e);return t.type||(Fn.assertIsDefined(t.deferralParent),Fn.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?ly(t.deferralConstituents):Ey(t.deferralConstituents)),t.type}function Ul(e){const t=$x(e);return 4&e.flags?2&t?65536&t?function(e){const t=zo(e);return!t.writeType&&t.deferralWriteConstituents&&(Fn.assertIsDefined(t.deferralParent),Fn.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?ly(t.deferralWriteConstituents):Ey(t.deferralWriteConstituents)),t.writeType}(e)||Kl(e):e.links.writeType||e.links.type:ql(e):98304&e.flags?1&t?function(e){const t=zo(e);return t.writeType||(t.writeType=Mx(Ul(t.target),t.mapper))}(e):Fl(e):ql(e)}function ql(e){const t=$x(e);return 65536&t?Kl(e):1&t?function(e){const t=zo(e);return t.type||(t.type=Mx(ql(t.target),t.mapper))}(e):262144&t?function(e){if(!e.links.type){const t=e.links.mappedType;if(!pc(e,0))return t.containsError=!0,Ct;const n=Mx(_d(t.target||t),Tx(t.mapper,cd(t),e.links.keyType));let r=F&&16777216&e.flags&&!fO(n,49152)?pT(n,!0):524288&e.links.checkFlags?RT(n):n;yc()||(So(i,Ra.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Hs(e),Ys(t)),r=Ct),e.links.type=r}return e.links.type}(e):8192&t?function(e){const t=zo(e);return t.type||(t.type=LC(e.links.propertyType,e.links.mappedType,e.links.constraintType)),t.type}(e):7&e.flags?function(e){const t=zo(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=ju(us(e));return t.typeParameters?Np(t,q(t.typeParameters,(e=>St))):t}(e);if(e===be)return St;if(134217728&e.flags&&e.valueDeclaration){const t=cs(Ff(e.valueDeclaration)),n=Ao(t.flags,"exports");n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));const r=cf();return r.set("exports",n),Ps(e,r,a,a,a)}Fn.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(UA(t)&&am(t))return t.statements.length?dC(Xk(WO(t.statements[0].expression))):Dn;if(Fu(t))return Al(e);if(!pc(e,0))return 512&e.flags&&!(67108864&e.flags)?zl(e):Vl(e);let n;if(277===t.kind)n=bl(kl(t)||DO(t.expression),t);else if(fN(t)||Pg(t)&&(eN(t)||(QD(t)||sh(t))&&fN(t.parent)))n=sl(e);else if(QD(t)||ZD(t)||qE(t)||ed(t)||EE(t)||QN(t)||YN(t)||mD(t)&&!Bm(t)||pD(t)||UA(t)){if(9136&e.flags)return zl(e);n=fN(t.parent)?sl(e):kl(t)||St}else if(JA(t))n=kl(t)||MO(t);else if(PA(t))n=kl(t)||VN(t);else if(zA(t))n=kl(t)||OO(t.name,0);else if(Bm(t))n=kl(t)||LO(t,0);else if(uD(t)||fD(t)||dD(t)||GN(t)||GD(t)||Wl(t))n=hl(t,!0);else if(tA(t))n=zl(e);else{if(!VA(t))return Fn.fail("Unhandled declaration kind! "+Fn.formatSyntaxKind(t.kind)+" for "+Fn.formatSymbol(e));n=$l(e)}return yc()?n:512&e.flags&&!(67108864&e.flags)?zl(e):Vl(e)}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(GD(t)&&(t=bc(t)),!!uD(t)&&Kx(t.parent))}(e)||(t.type=n),n}return t.type}(e):9136&e.flags?zl(e):8&e.flags?$l(e):98304&e.flags?Al(e):2097152&e.flags?function(e){const t=zo(e);if(!t.type){const n=Ia(e),r=e.declarations&&Aa(_a(e),!0),i=D(null==r?void 0:r.declarations,(e=>gA(e)?kl(e):void 0));t.type=(null==r?void 0:r.declarations)&&xR(r.declarations)&&e.declarations.length?function(e){const t=Ff(e.declarations[0]),n=Fc(e.escapedName),r=e.declarations.every((e=>Pg(e)&&lS(e)&&th(e.expression))),i=r?FC.createPropertyAccessExpression(FC.createPropertyAccessExpression(FC.createIdentifier("module"),FC.createIdentifier("exports")),n):FC.createPropertyAccessExpression(FC.createIdentifier("exports"),n);return r&&OT(i.expression.expression,i.expression),OT(i.expression,i),OT(i,t),i.flowNode=t.endFlowNode,SE(i,kt,Pt)}(r):xR(e.declarations)?kt:i||(111551&Oa(n)?ql(n):Ct)}return t.type}(e):Ct}function Hl(e){return MT(ql(e),!!(16777216&e.flags))}function Gl(e,t){return void 0!==e&&void 0!==t&&0!=(4&tS(e))&&e.target===t}function Xl(e){return 4&tS(e)?e.target:e}function Yl(e,t){return function e(n){if(7&tS(n)){const r=Xl(n);return r===t||le(gu(r),e)}return!!(2097152&n.flags)&&le(n.types,e)}(e)}function Ql(e,t){for(const n of t)e=De(e,Ru(cs(n)));return e}function Zl(e,t){for(;;){if((e=e.parent)&&fN(e)){const t=nh(e);if(6===t||3===t){const t=cs(e.left);t&&t.parent&&!Dc(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;switch(e.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const n=Zl(e,t);if(200===e.kind)return ke(n,Ru(cs(e.typeParameter)));if(194===e.kind)return _e(n,tb(e));const r=Ql(n,Dl(e)),i=t&&(263===e.kind||231===e.kind||264===e.kind||YF(e))&&Su(cs(e)).thisType;return i?ke(r,i):r}case 348:const n=Bh(e);n&&(e=n.valueDeclaration);break;case 327:{const n=Zl(e,t);return e.tags?Ql(n,X(e.tags,(e=>DP(e)?e.typeParameters:void 0))):n}}}}function nu(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return Fn.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Zl(n)}function ru(e){if(!e.declarations)return;let t;for(const n of e.declarations)(264===n.kind||263===n.kind||231===n.kind||YF(n)||Dh(n))&&(t=Ql(t,Dl(n)));return t}function iu(e){const t=tf(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&DB(e)){const t=vI(e.parameters[0]);return Cc(t)||Rk(t)===St}}return!1}function au(e){if(tf(e,1).length>0)return!0;if(8650752&e.flags){const t=Od(e);return!!t&&iu(t)}return!1}function su(e){const t=eS(e.symbol);return t&&my(t)}function lu(e,t,n){const r=C(t),i=Pg(n);return V(tf(e,1),(e=>(i||r>=Nf(e.typeParameters))&&r<=C(e.typeParameters)))}function uu(e,t,n){const r=lu(e,t,n),i=q(t,sx);return H(r,(e=>le(e.typeParameters)?Xf(e,i,Pg(n)):e))}function du(e){if(!e.resolvedBaseConstructorType){const t=eS(e.symbol),n=t&&my(t),r=su(e);if(!r)return e.resolvedBaseConstructorType=Pt;if(!pc(e,1))return Ct;const i=WO(r.expression);if(n&&r!==n&&(Fn.assert(!n.typeArguments),WO(n.expression)),2621440&i.flags&&bd(i),!yc())return So(e.symbol.valueDeclaration,Ra._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Hs(e.symbol)),e.resolvedBaseConstructorType=Ct;if(!(1&i.flags||i===jt||au(i))){const t=So(r.expression,Ra.Type_0_is_not_a_constructor_function_type,Ys(i));if(262144&i.flags){const e=fp(i);let n=Nt;if(e){const t=tf(e,1);t[0]&&(n=qf(t[0]))}i.symbol.declarations&&mT(t,qp(i.symbol.declarations[0],Ra.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Hs(i.symbol),Ys(n)))}return e.resolvedBaseConstructorType=Ct}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function fu(e,t){So(e,Ra.Type_0_recursively_references_itself_as_a_base_type,Ys(t,void 0,2))}function gu(e){if(!e.baseTypesResolved){if(pc(e,7)&&(8&e.objectFlags?e.resolvedBaseTypes=[hu(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=id;const t=$d(du(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=a;const n=su(e);let r;const i=t.symbol?ju(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=Fp(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=Lp(n,t.symbol);else if(1&t.flags)r=t;else{const i=uu(t,n.typeArguments,n);if(!i.length)return So(n.expression,Ra.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=a;r=qf(i[0])}if(wc(r))return e.resolvedBaseTypes=a;const o=Wd(r);if(!yu(o)){const t=RS(Qd(void 0,r),Ra.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ys(o));return ro.add(Gp(Ff(n.expression),n.expression,t)),e.resolvedBaseTypes=a}if(e===o||Yl(o,e))return So(e.symbol.valueDeclaration,Ra.Type_0_recursively_references_itself_as_a_base_type,Ys(e,void 0,2)),e.resolvedBaseTypes=a;e.resolvedBaseTypes===id&&(e.members=void 0),e.resolvedBaseTypes=[o]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||a,e.symbol.declarations)for(const t of e.symbol.declarations)if(264===t.kind&&vy(t))for(const n of vy(t)){const r=Wd(sx(n));wc(r)||(yu(r)?e===r||Yl(r,e)?fu(t,e):e.resolvedBaseTypes===a?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):So(n,Ra.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):Fn.fail("type must be class or interface"),!yc()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||fu(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function hu(e){return Qg(ly(H(e.typeParameters,((t,n)=>8&e.elementFlags[n]?Mv(t,zt):t))||a),e.readonly)}function yu(e){if(262144&e.flags){const t=Od(e);if(t)return yu(t)}return!!(67633153&e.flags&&!yd(e)||2097152&e.flags&&I(e.types,yu))}function Su(e){let t=zo(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=QF(e,e.valueDeclaration&&function(e){var t;const n=e&&ZF(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&fN(t)&&rx(t.left)&&64===t.operatorToken.kind){const e=fh(t);return YD(e)&&e}}(r.valueDeclaration);return i?cs(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Cs(r,e),a=nu(e),s=ru(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=vy(t);if(e)for(const t of e)if(Qb(t.expression)){const e=Va(t.expression,788968,!0);if(!e||!(64&e.flags)||Su(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=_e(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(vp(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=ws(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function Eu(e){var t;const n=zo(e);if(!n.declaredType){if(!pc(e,2))return Ct;const r=Fn.checkDefined(null==(t=e.declarations)?void 0:t.find(Dh),"Type alias symbol with no valid declaration found"),i=Eh(r)?r.typeExpression:r.type;let o=i?sx(i):Ct;if(yc()){const t=ru(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(vp(t),o))}else o=Ct,347===r.kind?So(r.typeExpression.type,Ra.Type_alias_0_circularly_references_itself,Hs(e)):So(Jc(r)&&r.name||r,Ra.Type_alias_0_circularly_references_itself,Hs(e));n.declaredType=o}return n.declaredType}function Du(e){return 1056&e.flags&&8&e.symbol.flags?ju(us(e.symbol)):e}function Ou(e){const t=zo(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(o_(r)){const t=cs(r),i=_j(r),o=Ob(void 0!==i?$b(i,xB(e),t):Mu(t));zo(t).declaredType=o,n.push(Mb(o))}const r=n.length?ly(n,1,e,void 0):Mu(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function Mu(e){const t=xs(32,e),n=xs(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function Lu(e){const t=zo(e);if(!t.declaredType){const n=Ou(us(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function Ru(e){const t=zo(e);return t.declaredType||(t.declaredType=ws(e))}function ju(e){return zu(e)||Ct}function zu(e){return 96&e.flags?Su(e):524288&e.flags?Eu(e):262144&e.flags?Ru(e):384&e.flags?Ou(e):8&e.flags?Lu(e):2097152&e.flags?function(e){const t=zo(e);return t.declaredType||(t.declaredType=ju(Ia(e)))}(e):void 0}function Ku(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return Ku(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(Ku)}return!1}function Uu(e){const t=Nl(e);return!t||Ku(t)}function qu(e){const t=rb(e);return t?Ku(t):!G_(e)}function Wu(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return qu(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=ob(e),n=Dl(e);return(176===e.kind||!!t&&Ku(t))&&e.parameters.every(qu)&&n.every(Uu)}(t)}}return!1}function Hu(e,t,n){const r=cf();for(const i of e)r.set(i.escapedName,n&&Wu(i)?i:Ex(i,t));return r}function Gu(e,t){for(const n of t){if(Xu(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&fN(t.valueDeclaration)&&!nl(t)&&!Ym(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function Xu(e){return!!e.valueDeclaration&&pu(e.valueDeclaration)&&bb(e.valueDeclaration)}function Yu(e){if(!e.declaredProperties){const t=e.symbol,n=c_(t);e.declaredProperties=Ds(n),e.declaredCallSignatures=a,e.declaredConstructSignatures=a,e.declaredIndexInfos=a,e.declaredCallSignatures=Bf(n.get("__call")),e.declaredConstructSignatures=Bf(n.get("__new")),e.declaredIndexInfos=ap(t)}return e}function Zu(e){if(!cD(e)&&!ZD(e))return!1;const t=cD(e)?e.expression:e.argumentExpression;return Qb(t)&&gC(cD(e)?EN(e):DO(t))}function n_(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function i_(e){const t=$c(e);return!!t&&Zu(t)}function o_(e){return!Ly(e)||i_(e)}function a_(e,t,n,r){Fn.assert(!!r.symbol,"The member is expected to have a symbol.");const i=$o(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=fN(r)?r.left:r.name,a=ZD(o)?DO(o.argumentExpression):EN(o);if(gC(a)){const s=hC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Ao(0,s,4096));const u=t&&t.get(s);if(l.flags&Io(c)||u){const e=u?_e(u.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&Fc(s)||Jp(o);w(e,(e=>So($c(e)||e,Ra.Property_0_was_also_declared_here,t))),So(o||r,Ra.Duplicate_property_0,t),l=Ao(0,s,4096)}return l.links.nameType=a,function(e,t,n){Fn.assert(!!(4096&$x(e)),"Expected a late-bound symbol."),e.flags|=n,zo(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(l,r,c),l.parent?Fn.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function s_(e,t){var n,r,i;const o=zo(e);if(!o[t]){const s="resolvedExports"===t,c=s?1536&e.flags?os(e).exports:e.exports:e.members;o[t]=c||b;const l=cf();for(const t of e.declarations||a){const n=Nm(t);if(n)for(const t of n)s===xb(t)&&i_(t)&&a_(e,c,l,t)}const u=(219===(null==(n=e.valueDeclaration)?void 0:n.kind)||218===(null==(r=e.valueDeclaration)?void 0:r.kind))&&(null==(i=ls(e.valueDeclaration.parent))?void 0:i.assignmentDeclarationMembers)||e.assignmentDeclarationMembers;if(u){const t=Ze(u.values());for(const n of t){const t=nh(n);s===!(3===t||fN(n)&&iD(n,t)||9===t||6===t)&&i_(n)&&a_(e,c,l,n)}}o[t]=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=cf();return Bo(n,e),Bo(n,t),n}(c,l)||b}return o[t]}function c_(e){return 6256&e.flags?s_(e,"resolvedMembers"):e.members||b}function __(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=zo(e);if(!t.lateSymbol&&le(e.declarations,i_)){const t=as(e.parent);le(e.declarations,xb)?ns(t):c_(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function f_(e,t,n){if(4&tS(e)){const n=e.target,r=Fp(e);return C(n.typeParameters)===C(r)?Np(n,_e(r,[t||n.thisType])):e}if(2097152&e.flags){const r=H(e.types,(e=>f_(e,t,n)));return r!==e.types?Ey(r):e}return n?$d(e):e}function y_(e,t,n,r){let i,o,a,s,c;Ie(n,r,0,n.length)?(o=t.symbol?c_(t.symbol):cf(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=mx(n,r),o=Hu(t.declaredProperties,i,1===n.length),a=fx(t.declaredCallSignatures,i),s=fx(t.declaredConstructSignatures,i),c=px(t.declaredIndexInfos,i));const l=gu(t);if(l.length){t.symbol&&o===c_(t.symbol)&&(o=cf(t.declaredProperties)),As(e,o,a,s,c);const n=je(r);for(const e of l){const t=n?f_(Mx(e,i),n):e;Gu(o,Td(t)),a=_e(a,tf(t,0)),s=_e(s,tf(t,1));const r=t!==St?df(t):[ip(Jt,St,!1)];c=_e(c,V(r,(e=>!rf(c,e.keyType))))}}As(e,o,a,s,c)}function v_(e,t,n,r,i,o,a,s){const c=new d(Ae,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function b_(e){const t=v_(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function x_(e,t){const n=b_(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function S_(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){Fn.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=b_(e);return n.flags|=t,n}(e,t))}function k_(e,t){if(DB(e)){const r=e.parameters.length-1,i=e.parameters[r].escapedName,o=ql(e.parameters[r]);if(eT(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&I(o.types,eT))return q(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=Fp(t),o=function(e,t){const n=new Map;return q(e.target.labeledElementDeclarations,((e,r)=>{const i=bI(e,r,t),o=n.get(i);return void 0===o?(n.set(i,1),i):(n.set(i,o+1),`${i}_${o}`)}))}(t,r),a=q(i,((r,i)=>{const a=o&&o[i]?o[i]:xI(e,n+i,t),s=t.target.elementFlags[i],c=Ao(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?Qg(r):r,c}));return _e(e.parameters.slice(0,n),a)}}function T_(e,t,n,r,i){for(const o of e)if(Ak(o,t,n,r,i,n?Qx:Xx))return o}function D_(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!T_(t,n,!1,!1,!0)){const i=D_(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter;const r=w(i,(e=>e.thisParameter));r&&(t=JT(r,Ey(te(i,(e=>e.thisParameter&&ql(e.thisParameter)))))),e=x_(n,i),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!C(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(Fn.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&le(i,(t=>!!t.typeParameters&&!P_(e.typeParameters,t.typeParameters)))?void 0:q(i,(t=>F_(t,e))),!i)break}t=i}return t||a}function P_(e,t){if(C(e)!==C(t))return!1;if(!e||!t)return!0;const n=mx(t,e);for(let r=0;r=i?e:t,a=o===e?t:e,s=o===e?r:i,c=AI(e)||AI(t),l=c&&!AI(o),u=new Array(s+(l?1:0));for(let _=0;_=NI(o)&&_>=NI(a),h=_>=r?void 0:xI(e,_),y=_>=i?void 0:xI(t,_),v=Ao(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${_}`);v.links.type=m?Qg(p):p,u[_]=v}if(l){const e=Ao(1,"args");e.links.type=Qg(CI(a,s)),a===t&&(e.links.type=Mx(e.links.type,n)),u[s]=e}return u}(e,t,r),a=function(e,t,n){return e&&t?JT(e,Ey([ql(e),Mx(ql(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),s=v_(i,n,a,o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),167&(e.flags|t.flags));return s.compositeKind=1048576,s.compositeSignatures=_e(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(s.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?Sx(e.mapper,r):r),s}function O_(e){const t=df(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;I(e,(e=>!!ff(e,t)))&&n.push(ip(t,ly(q(e,(e=>pf(e,t)))),le(e,(e=>ff(e,t).isReadonly))))}return n}return a}function M_(e,t){return e?t?Ey([e,t]):e:t}function L_(e){const t=$(e,(e=>tf(e,1).length>0)),n=q(e,iu);if(t>0&&t===$(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function R_(e,t,n,r){const i=[];for(let o=0;o!Ak(e,n,!1,!1,!1,Xx)))||(e=ke(e,n));return e}function z_(e,t,n){if(e)for(let r=0;r{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&I(t.declarations,gp)||e.set(t.escapedName,t)})),i=e}if(As(e,i,a,a,a),32&t.flags){const e=du(Su(t));11272192&e.flags?(i=cf(function(e){const t=Ds(e),n=rp(e);return n?_e(t,[n]):t}(i)),Gu(i,Td(e))):e===St&&(r=ip(Jt,St,!1))}const o=rp(i);if(o?n=cp(o):(r&&(n=ke(n,r)),384&t.flags&&(32&ju(t).flags||le(e.properties,(e=>!!(296&ql(e).flags))))&&(n=ke(n,si))),As(e,i,a,a,n||a),8208&t.flags&&(e.callSignatures=Bf(t)),32&t.flags){const n=Su(t);let r=t.members?Bf(t.members.get("__constructor")):a;16&t.flags&&(r=we(r.slice(),te(e.callSignatures,(e=>YF(e.declaration)?v_(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),r.length||(r=function(e){const t=tf(du(e),1),n=eS(e.symbol),r=!!n&&vb(n,256);if(0===t.length)return[v_(void 0,e.localTypeParameters,void 0,a,e,void 0,0,r?4:0)];const i=su(e),o=Pg(i),s=xm(i),c=C(s),l=[];for(const n of t){const t=Nf(n.typeParameters),i=C(n.typeParameters);if(o||c>=t&&c<=i){const a=i?Qf(n,Af(s,n.typeParameters,t,o)):b_(n);a.typeParameters=e.localTypeParameters,a.resolvedReturnType=e,a.flags=r?4|a.flags:-5&a.flags,l.push(a)}}return l}(n)),e.constructSignatures=r}}(e):32&e.objectFlags?function(e){const t=cf();let n;As(e,b,a,a,a);const r=cd(e),i=ld(e),o=e.target||e,s=ud(o),c=!s||vd(o),l=_d(o),u=$d(pd(e)),_=md(e),d=Z?128:8576;function f(i){Gw(s?Mx(s,Tx(e.mapper,r,i)):i,(o=>function(i,o){if(gC(o)){const n=hC(o),r=t.get(n);if(r)r.links.nameType=ly([r.links.nameType,o]),r.links.keyType=ly([r.links.keyType,i]);else{const r=gC(i)?Zd(u,hC(i)):void 0,a=!!(4&_||!(8&_)&&r&&16777216&r.flags),s=!!(1&_||!(2&_)&&r&&sO(r)),l=F&&!a&&r&&16777216&r.flags,d=Ao(4|(a?16777216:0),n,262144|(r?Y_(r):0)|(s?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=i,r&&(d.links.syntheticOrigin=r,d.declarations=c?r.declarations:void 0),t.set(n,d)}}else if(lp(o)||33&o.flags){const t=ip(5&o.flags?Jt:40&o.flags?zt:o,Mx(l,Tx(e.mapper,r,i)),!!(1&_));n=z_(n,t,!0)}}(i,o)))}fd(e)?Z_(u,d,Z,f):Gw(K_(i),f),As(e,t,a,a,n||a)}(e):Fn.fail("Unhandled object type "+Fn.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=N_(q(e.types,(e=>e===Xn?[ii]:tf(e,0)))),n=N_(q(e.types,(e=>tf(e,1)))),r=O_(e.types);As(e,b,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=L_(i),s=$(o,(e=>e));for(let a=0;a0&&(e=q(e,(e=>{const t=b_(e);return t.resolvedReturnType=R_(qf(e),i,o,a),t}))),n=B_(n,e)}t=B_(t,tf(c,0)),r=qe(df(c),((e,t)=>z_(e,t,!1)),r)}As(e,b,t||a,n||a,r||a)}(e):Fn.fail("Unhandled type "+Fn.formatTypeFlags(e.flags))),e}function xd(e){return 524288&e.flags?bd(e).properties:a}function Sd(e,t){if(524288&e.flags){const n=bd(e).members.get(t);if(n&&hs(n))return n}}function kd(e){if(!e.resolvedProperties){const t=cf();for(const n of e.types){for(const r of Td(n))if(!t.has(r.escapedName)){const n=qd(e,r.escapedName);n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===df(n).length)break}e.resolvedProperties=Ds(t)}return e.resolvedProperties}function Td(e){return 3145728&(e=Vd(e)).flags?kd(e):xd(e)}function Cd(e){return 262144&e.flags?wd(e):8388608&e.flags?function(e){return Ld(e)?function(e){if(zd(e)||yd(e.objectType))return Ov(e.objectType,e.indexType);const t=Dd(e.indexType);if(t&&t!==e.indexType){const n=jv(e.objectType,t,e.accessFlags);if(n)return n}const n=Dd(e.objectType);return n&&n!==e.objectType?jv(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?Fd(e):Od(e)}function wd(e){return Ld(e)?fp(e):void 0}function Ed(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&le(null==(n=e.symbol)?void 0:n.declarations,(e=>vb(e,2048)))||1048576&e.flags&&le(e.types,(e=>Ed(e,t)))||8388608&e.flags&&Ed(e.objectType,t+1)||16777216&e.flags&&Ed(Fd(e),t+1)||33554432&e.flags&&Ed(e.baseType,t)||tT(e)&&L(Lh(e),((n,r)=>!!(8&e.target.elementFlags[r])&&Ed(n,t)))>=0))}function Dd(e){const t=Pv(e,!1);return t!==e?t:Cd(e)}function Nd(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?Mx(sx(e.root.node.trueType),e.combinedMapper):qv(e))}(e),n=Gv(e);e.resolvedDefaultConstraint=Cc(t)?n:Cc(n)?t:ly([t,n])}return e.resolvedDefaultConstraint}function Ad(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=Pv(e.checkType,!1),n=t===e.checkType?Cd(t):t;if(n&&n!==e.checkType){const t=Ox(e,kx(e.root.checkType,n,e.mapper));if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function Pd(e){return Ad(e)||Nd(e)}function Fd(e){return Ld(e)?Pd(e):void 0}function Od(e){if(464781312&e.flags||tT(e)){const t=Rd(e);return t!==Rn&&t!==jn?t:void 0}return 4194304&e.flags?un:void 0}function Md(e){return Od(e)||e}function Ld(e){return Rd(e)!==jn}function Rd(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!pc(e,4))return jn;let n;const o=Dk(e);if((t.length<10||t.length<50&&!B(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=fp(e);return e.isThisType||!t?t:r(t)}if(3145728&e.flags){const t=e.types,n=[];let i=!1;for(const e of t){const t=r(e);t?(t!==e&&(i=!0),n.push(t)):i=!0}return i?1048576&e.flags&&n.length===t.length?ly(n):2097152&e.flags&&n.length?Ey(n):void 0:e}if(4194304&e.flags)return un;if(134217728&e.flags){const t=e.types,n=te(t,r);return n.length===t.length?av(e.texts,n):Jt}if(268435456&e.flags){const t=r(e.type);return t&&t!==e.type?cv(e.symbol,t):Jt}if(8388608&e.flags){if(zd(e))return r(Ov(e.objectType,e.indexType));const t=r(e.objectType),n=r(e.indexType),i=t&&n&&jv(t,n,e.accessFlags);return i&&r(i)}if(16777216&e.flags){const t=Pd(e);return t&&r(t)}return 33554432&e.flags?r(_m(e)):tT(e)?hh(q(Lh(e),((t,n)=>{const i=262144&t.flags&&8&e.target.elementFlags[n]&&r(t)||t;return i!==t&&Yw(i,(e=>Mk(e)&&!tT(e)))?i:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}(Pv(e,!1)),t.pop()),!yc()){if(262144&e.flags){const t=_p(e);if(t){const n=So(t,Ra.Type_parameter_0_has_a_circular_constraint,Ys(e));!i||iy(t,i)||iy(i,t)||mT(n,qp(i,Ra.Circularity_originates_in_type_at_this_location))}}n=jn}e.immediateBaseConstraint=n||Rn}return e.immediateBaseConstraint}function r(e){const t=n(e);return t!==Rn&&t!==jn?t:void 0}}function jd(e){if(e.default)e.default===Bn&&(e.default=jn);else if(e.target){const t=jd(e.target);e.default=t?Mx(t,e.mapper):Rn}else{e.default=Bn;const t=e.symbol&&w(e.symbol.declarations,(e=>lD(e)&&e.default)),n=t?sx(t):Rn;e.default===Bn&&(e.default=n)}return e.default}function Bd(e){const t=jd(e);return t!==Rn&&t!==jn?t:void 0}function Jd(e){return!(!e.symbol||!w(e.symbol.declarations,(e=>lD(e)&&e.default)))}function zd(e){let t;return!(!(8388608&e.flags&&32&tS(t=e.objectType)&&!yd(t)&&Nv(e.indexType))||8&md(t)||t.declaration.nameType)}function $d(e){const t=465829888&e.flags?Od(e)||Nt:e,n=tS(t);return 32&n?function(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=Nx(e);if(t&&!e.declaration.nameType){const n=wd(t);if(n&&Yw(n,Mk))return Mx(e,kx(t,n,e.mapper))}return e}(e))}(t):4&n&&t!==e?f_(t,e):2097152&t.flags?function(e,t){return e.resolvedApparentType||(e.resolvedApparentType=f_(e,t,!0))}(t,e):402653316&t.flags?tr:296&t.flags?nr:2112&t.flags?Jr||(Jr=Vm("BigInt",0,!1))||Dn:528&t.flags?rr:12288&t.flags?Gm():67108864&t.flags?Dn:4194304&t.flags?un:2&t.flags&&!F?Dn:t}function Vd(e){return Wd($d(Wd(e)))}function Kd(e,t,n){var r,i,o;let a,s,c;const l=1048576&e.flags;let u,_=4,d=l?0:8,f=!1;for(const r of e.types){const e=$d(r);if(!(wc(e)||131072&e.flags)){const r=Zd(e,t,n),i=r?Vx(r):0;if(r){if(106500&r.flags&&(u??(u=l?0:16777216),l?u|=16777216&r.flags:u&=r.flags),a){if(r!==a)if((ZL(r)||r)===(ZL(a)||a)&&-1===Nk(a,r,((e,t)=>e===t?-1:0)))f=!!a.parent&&!!C(ru(a.parent));else{s||(s=new Map,s.set(xB(a),a));const e=xB(r);s.has(e)||s.set(e,r)}}else a=r;l&&sO(r)?d|=8:l||sO(r)||(d&=-9),d|=(24&i?0:256)|(16&i?512:0)|(8&i?1024:0)|(32&i?2048:0),RA(r)||(_=2)}else if(l){const n=!n_(t)&&Sf(e,t);n?(d|=32|(n.isReadonly?8:0),c=ke(c,eT(e)?iT(e)||Pt:n.type)):!YC(e)||2097152&tS(e)?d|=16:(d|=32,c=ke(c,Pt))}}}if(!a||l&&(s||48&d)&&1536&d&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{B(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&d||c)){if(f){const t=null==(r=bt(a,lf))?void 0:r.links,n=JT(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n}return a}const p=s?Ze(s.values()):[a];let m,g,h;const y=[];let v,b,x=!1;for(const e of p){b?e.valueDeclaration&&e.valueDeclaration!==b&&(x=!0):b=e.valueDeclaration,m=we(m,e.declarations);const t=ql(e);g||(g=t,h=zo(e).nameType);const n=Ul(e);v||n!==t?v=ke(v||y.slice(),n):t!==g&&(d|=64),(Wk(t)||Cv(t))&&(d|=128),131072&t.flags&&t!==Tn&&(d|=131072),y.push(t)}we(y,c);const S=Ao(4|(u??0),t,_|d);return S.links.containingType=e,!x&&b&&(S.valueDeclaration=b,b.symbol.parent&&(S.parent=b.symbol.parent)),S.declarations=m,S.links.nameType=h,y.length>2?(S.links.checkFlags|=65536,S.links.deferralParent=e,S.links.deferralConstituents=y,S.links.deferralWriteConstituents=v):(S.links.type=l?ly(y):Ey(y),v&&(S.links.writeType=l?ly(v):Ey(v))),S}function Ud(e,t,n){var r,i;let o=(null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t))||!n?null==(i=e.propertyCache)?void 0:i.get(t):void 0;return!o&&(o=Kd(e,t,n),o)&&(n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=cf()):e.propertyCache||(e.propertyCache=cf())).set(t,o),o}function qd(e,t,n){const r=Ud(e,t,n);return!r||16&$x(r)?void 0:r}function Wd(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=H(e.types,Wd);if(t===e.types)return e;const n=ly(t);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(le(kd(e),Hd)?33554432:0)),33554432&e.objectFlags?Qt:e):e}function Hd(e){return Gd(e)||Xd(e)}function Gd(e){return!(16777216&e.flags||192!=(131264&$x(e))||!(131072&ql(e).flags))}function Xd(e){return!e.valueDeclaration&&!!(1024&$x(e))}function Yd(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&le(e.types,Yd)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=Mx(e,Cn));return Wd(t)!==t}(e))}function Qd(e,t){if(2097152&t.flags&&33554432&tS(t)){const n=O(kd(t),Gd);if(n)return RS(e,Ra.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ys(t,void 0,536870912),Hs(n));const r=O(kd(t),Xd);if(r)return RS(e,Ra.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ys(t,void 0,536870912),Hs(r))}return e}function Zd(e,t,n,r){if(524288&(e=Vd(e)).flags){const i=bd(e),o=i.members.get(t);if(o&&hs(o,r))return o;if(n)return;const a=i===Ln?Xn:i.callSignatures.length?Yn:i.constructSignatures.length?Qn:void 0;if(a){const e=Sd(a,t);if(e)return e}return Sd(Gn,t)}if(3145728&e.flags)return qd(e,t,n)}function ef(e,t){if(3670016&e.flags){const n=bd(e);return 0===t?n.callSignatures:n.constructSignatures}return a}function tf(e,t){const n=ef(Vd(e),t);if(0===t&&!C(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(Yw(e,(e=>{var t,n;return!(!(null==(t=e.symbol)?void 0:t.parent)||(n=e.symbol.parent,!(n&&Zn.symbol&&er.symbol)||!ps(n,Zn.symbol)&&!ps(n,er.symbol))||(r?r!==e.symbol.escapedName:(r=e.symbol.escapedName,0)))}))){const n=Qg(tE(e,(e=>gx((nf(e.symbol.parent)?er:Zn).typeParameters[0],e.mapper))),Xw(e,(e=>nf(e.symbol.parent))));return e.arrayFallbackSignatures=tf(xc(n,r),t)}e.arrayFallbackSignatures=n}return n}function nf(e){return!(!e||!er.symbol||!ps(e,er.symbol))}function rf(e,t){return O(e,(e=>e.keyType===t))}function of(e,t){let n,r,i;for(const o of e)o.keyType===Jt?n=o:uf(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?ip(Nt,Ey(q(i,(e=>e.type))),qe(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&uf(t,Jt)?n:void 0)}function uf(e,t){return iS(e,t)||t===Jt&&iS(e,zt)||t===zt&&(e===gn||!!(128&e.flags)&&HT(e.value))}function _f(e){return 3670016&e.flags?bd(e).indexInfos:a}function df(e){return _f(Vd(e))}function ff(e,t){return rf(df(e),t)}function pf(e,t){var n;return null==(n=ff(e,t))?void 0:n.type}function vf(e,t){return df(e).filter((e=>uf(t,e.keyType)))}function xf(e,t){return of(df(e),t)}function Sf(e,t){return xf(e,n_(t)?Gt:Bb(Fc(t)))}function kf(e){var t;let n;for(const t of Dl(e))n=De(n,Ru(t.symbol));return(null==n?void 0:n.length)?n:YN(e)?null==(t=Rf(e))?void 0:t.typeParameters:void 0}function Tf(e){const t=[];return e.forEach(((e,n)=>{Es(n)||t.push(e)})),t}function Cf(e,t){if(Gs(e))return;const n=Ko(ue,'"'+e+'"',512);return n&&t?as(n):n}function Ef(e){if(Ch(e)||tC(e)||iC(e))return!0;if(e.initializer){const t=Lf(e.parent),n=e.parent.parameters.indexOf(e);return Fn.assert(n>=0),n>=NI(t,3)}const t=og(e.parent);return!!t&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=t.arguments.length}function Df(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function Nf(e){let t=0;if(e)for(let n=0;n=n&&o<=i){const n=e?e.slice():[];for(let e=o;es.arguments.length&&!u||iC(c)||(o=n.length)}if((177===e.kind||178===e.kind)&&o_(e)&&(!a||!r)){const t=177===e.kind?178:177,n=af(cs(e),t);n&&(r=function(e){const t=Hj(e);return t&&t.symbol}(n))}if(Pg(e)){const t=pl(e);t&&t.typeExpression&&(r=JT(Ao(1,"this"),sx(t.typeExpression)))}const l=uP(e)?$h(e):e,u=l&&hD(l)?Su(as(l.parent.symbol)):void 0,_=u?u.localTypeParameters:kf(e);(nd(e)||Pg(e)&&function(e,t){if(uP(e)||!jf(e))return!1;const n=je(e.parameters),r=D(n?Wc(n):Sl(e).filter(TP),(e=>e.typeExpression&&aP(e.typeExpression.type)?e.typeExpression.type:void 0)),i=Ao(3,"args",32768);return r?i.links.type=Qg(sx(r.type)):(i.links.checkFlags|=65536,i.links.deferralParent=Qt,i.links.deferralConstituents=[ar],i.links.deferralWriteConstituents=[ar]),r&&t.pop(),t.push(i),!0}(e,n))&&(i|=1),(wD(e)&&vb(e,256)||hD(e)&&vb(e.parent,256))&&(i|=4),t.resolvedSignature=v_(e,_,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function Rf(e){if(!Pg(e)||!Cu(e))return;const t=yl(e);return(null==t?void 0:t.typeExpression)&&pF(sx(t.typeExpression))}function jf(e){const t=$o(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===ve.escapedName&&Sj(t)===ve;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!ev(t)&&!Tm(t)&&!!zI(t,e)}}(e.body)),t.containsArgumentsReference}function Bf(e){if(!e||!e.declarations)return a;const t=[];for(let n=0;n0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Pg(r)&&r.jsDoc){let e=!1;for(const n of r.jsDoc)if(n.tags)for(const i of n.tags)if(bP(i)){const n=i.typeExpression;void 0!==n.type||hD(r)||vC(n,St),t.push(Lf(n)),e=!0}if(e)continue}t.push(!qT(r)&&!Bm(r)&&Rf(r)||Lf(r))}}return t}function $f(e){const t=Ua(e,e);if(t){const e=Ga(t);if(e)return ql(e)}return St}function Vf(e){if(e.thisParameter)return ql(e.thisParameter)}function Kf(e){if(!e.resolvedTypePredicate){if(e.target){const r=Kf(e.target);e.resolvedTypePredicate=r?(t=r,n=e.mapper,Df(t.kind,t.parameterName,t.parameterIndex,Mx(t.type,n))):ni}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=Kf(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!by(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?qf(i):void 0;if(e!==Vt&&e!==Kt)return}}if(!n)return;const i=Uf(r,t);return Df(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ni;else{const t=e.declaration&&ob(e.declaration);let n;if(!t){const t=Rf(e.declaration);t&&e!==t&&(n=Kf(t))}e.resolvedTypePredicate=t&&kD(t)?function(e,t){const n=e.parameterName,r=e.type&&sx(e.type);return 197===n.kind?Df(e.assertsModifier?2:0,void 0,void 0,r):Df(e.assertsModifier?3:1,n.escapedText,L(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||ni}Fn.assert(!!e.resolvedTypePredicate)}var t,n;return e.resolvedTypePredicate===ni?void 0:e.resolvedTypePredicate}function Uf(e,t,n){return 2097152!==t?ly(e,n):Ey(e)}function qf(e){if(!e.resolvedReturnType){if(!pc(e,3))return Ct;let t=e.target?Mx(qf(e.target),e.mapper):e.compositeSignatures?Mx(Uf(q(e.compositeSignatures,qf),e.compositeKind,2),e.mapper):Wf(e.declaration)||(Jf(e.declaration.body)?St:GI(e.declaration));if(8&e.flags?t=kT(t):16&e.flags&&(t=pT(t)),!yc()){if(e.declaration){const t=ob(e.declaration);if(t)So(t,Ra.Return_type_annotation_circularly_references_itself);else if(W){const t=e.declaration,n=$c(t);n?So(n,Ra._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,Jp(n)):So(t,Ra.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=St}e.resolvedReturnType=t}return e.resolvedReturnType}function Wf(e){if(176===e.kind)return Su(as(e.parent.symbol));const t=ob(e);if(uP(e)){const n=Kh(e);if(n&&hD(n.parent)&&!t)return Su(as(n.parent.parent.symbol))}if(wh(e))return sx(e.parameters[0].type);if(t)return sx(t);if(177===e.kind&&o_(e)){const t=Pg(e)&&Xc(e);if(t)return t;const n=wl(af(cs(e),178));if(n)return n}return function(e){const t=Rf(e);return t&&qf(t)}(e)}function Hf(e){return e.compositeSignatures&&le(e.compositeSignatures,Hf)||!e.resolvedReturnType&&mc(e,3)>=0}function Gf(e){if(DB(e)){const t=ql(e.parameters[e.parameters.length-1]),n=eT(t)?iT(t):t;return n&&pf(n,zt)}}function Xf(e,t,n,r){const i=Yf(e,Af(t,e.typeParameters,Nf(e.typeParameters),n));if(r){const e=mF(qf(i));if(e){const t=b_(e);t.typeParameters=r;const n=b_(i);return n.resolvedReturnType=tp(t),n}}return i}function Yf(e,t){const n=e.instantiations||(e.instantiations=new Map),r=vp(t);let i=n.get(r);return i||n.set(r,i=Qf(e,t)),i}function Qf(e,t){return wx(e,function(e,t){return mx(e.typeParameters,t)}(e,t),!0)}function Zf(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return wx(e,xx(e.typeParameters),!0)}(e)):e}function ep(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=xx(t),r=mx(t,q(t,(e=>wd(e)||Nt)));let i=q(t,(e=>Mx(e,r)||Nt));for(let e=0;e{lp(e)&&!rf(t,e)&&t.push(ip(e,n.type?sx(n.type):St,yb(n,64),n))}))}return t}return a}function lp(e){return!!(4108&e.flags)||Cv(e)||!!(2097152&e.flags)&&!wv(e)&&le(e.types,lp)}function _p(e){return te(V(e.symbol&&e.symbol.declarations,lD),Nl)[0]}function dp(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(195===n.parent.kind){const[i=n.parent,o]=ey(n.parent.parent);if(183!==o.kind||t){if(169===o.kind&&o.dotDotDotToken||191===o.kind||202===o.kind&&o.dotDotDotToken)r=ke(r,Qg(Nt));else if(204===o.kind)r=ke(r,Jt);else if(168===o.kind&&200===o.parent.kind)r=ke(r,un);else if(200===o.kind&&o.type&&ny(o.type)===n.parent&&194===o.parent.kind&&o.parent.extendsType===o&&200===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=ke(r,Mx(sx(e.type),hx(Ru(cs(e.typeParameter)),e.typeParameter.constraint?sx(e.typeParameter.constraint):un)))}}else{const t=o,n=sM(t);if(n){const o=t.typeArguments.indexOf(i);if(o()=>iM(t,n,r)))));o!==e&&(r=ke(r,o))}}}}}return r&&Ey(r)}function fp(e){if(!e.constraint)if(e.target){const t=wd(e.target);e.constraint=t?Mx(t,e.mapper):Rn}else{const t=_p(e);if(t){let n=sx(t);1&n.flags&&!wc(n)&&(n=200===t.parent.parent.kind?un:Nt),e.constraint=n}else e.constraint=dp(e)||Rn}return e.constraint===Rn?void 0:e.constraint}function yp(e){const t=af(e.symbol,168),n=DP(t.parent)?Jh(t.parent):t.parent;return n&&ls(n)}function vp(e){let t="";if(e){const n=e.length;let r=0;for(;r1&&(t+=":"+o),r+=o}}return t}function Tp(e,t){return e?`@${xB(e)}`+(t?`:${vp(t)}`:""):""}function Ep(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=tS(r));return 458752&n}function Dp(e,t){return le(t)&&e===Mn?Nt:Np(e,t)}function Np(e,t){const n=vp(t);let r=e.instantiations.get(n);return r||(r=Cs(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Ep(t):0,r.target=e,r.resolvedTypeArguments=t),r}function Ap(e){const t=xs(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Pp(e,t,n,r,i){if(!r){const e=db(r=_b(t));i=n?dx(e,n):e}const o=Cs(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function Fp(e){var t,n;if(!e.resolvedTypeArguments){if(!pc(e,6))return(null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Ct)))||a;const r=e.node,o=r?183===r.kind?_e(e.target.outerTypeParameters,oM(r,e.target.localTypeParameters)):188===r.kind?[sx(r.elementType)]:q(r.elements,sx):a;yc()?e.resolvedTypeArguments=e.mapper?dx(o,e.mapper):o:(e.resolvedTypeArguments=(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Ct)))||a,So(e.node||i,e.target.symbol?Ra.Type_arguments_for_0_circularly_reference_themselves:Ra.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&Hs(e.target.symbol)))}return e.resolvedTypeArguments}function Ip(e){return C(e.target.typeParameters)}function Lp(e,t){const n=ju(as(t)),r=n.localTypeParameters;if(r){const t=C(e.typeArguments),i=Nf(r),o=Pg(e);if((W||!o)&&(tr.length)){const t=o&&bN(e)&&!_P(e.parent);if(So(e,i===r.length?t?Ra.Expected_0_type_arguments_provide_these_with_an_extends_tag:Ra.Generic_type_0_requires_1_type_argument_s:t?Ra.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Ra.Generic_type_0_requires_between_1_and_2_type_arguments,Ys(n,void 0,2),i,r.length),!o)return Ct}return 183===e.kind&&lh(e,C(e.typeArguments)!==r.length)?Pp(n,e,void 0):Np(n,_e(n.outerTypeParameters,Af(xm(e),r,i,o)))}return ym(e,t)?n:Ct}function Vp(e,t,n,r){const i=ju(e);if(i===Dt&&pB.has(e.escapedName)&&t&&1===t.length)return cv(e,t[0]);const o=zo(e),a=o.typeParameters,s=vp(t)+Tp(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=Lx(i,mx(a,Af(t,a,Nf(a),Pg(e.valueDeclaration))),n,r)),c}function Hp(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Dh);return!(!n||!Hm(n))}function Yp(e){return e.parent?`${Yp(e.parent)}.${e.escapedName}`:e.escapedName}function Qp(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?Qp(e.left):211===e.kind?Qp(e.expression):void 0,r=n?`${Yp(n)}.${t}`:t;let i=ht.get(r);return i||(ht.set(r,i=Ao(524288,t,1048576)),i.parent=n,i.links.declaredType=wt),i}return pt}function tm(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(Qb(t))return t}}(e);if(!r)return pt;const i=Va(r,t,n);return i&&i!==pt?i:n?pt:Qp(r)}function lm(e,t){if(t===pt)return Ct;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Pg(t)||524288&e.flags||Hg(t,!1))return;const n=GN(t)?qg(t):Wg(t);if(n){const t=ls(n);if(t)return QF(t,e)}}(t)||t).flags)return Lp(e,t);if(524288&t.flags)return function(e,t){if(1048576&$x(t)){const n=xm(e),r=Tp(t,n);let i=vt.get(r);return i||(i=ks(1,"error"),i.aliasSymbol=t,i.aliasTypeArguments=n,vt.set(r,i)),i}const n=ju(t),r=zo(t).typeParameters;if(r){const n=C(e.typeArguments),i=Nf(r);if(nr.length)return So(e,i===r.length?Ra.Generic_type_0_requires_1_type_argument_s:Ra.Generic_type_0_requires_between_1_and_2_type_arguments,Hs(t),i,r.length),Ct;const o=_b(e);let a,s=!o||!Hp(t)&&Hp(o)?void 0:o;if(s)a=db(s);else if(Q_(e)){const t=tm(e,2097152,!0);if(t&&t!==pt){const n=Ia(t);n&&524288&n.flags&&(s=n,a=xm(e)||(r?[]:void 0))}}return Vp(t,xm(e),s,a)}return ym(e,t)?n:Ct}(e,t);const n=zu(t);if(n)return ym(e,t)?Mb(n):Ct;if(111551&t.flags&&hm(e)){const n=function(e,t){const n=$o(e);if(!n.resolvedJSDocType){const r=ql(t);let i=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=lm(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(tm(e,788968),ql(t))}return Ct}function um(e,t){if(3&t.flags||t===e||1&e.flags)return e;const n=`${Rh(e)}>${Rh(t)}`,r=rt.get(n);if(r)return r;const i=bs(33554432);return i.baseType=e,i.constraint=t,rt.set(n,i),i}function _m(e){return Ey([e.constraint,e.baseType])}function dm(e){return 189===e.kind&&1===e.elements.length}function mm(e,t,n){return dm(t)&&dm(n)?mm(e,t.elements[0],n.elements[0]):zv(sx(t))===zv(e)?sx(n):void 0}function hm(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function ym(e,t){return!e.typeArguments||(So(e,Ra.Type_0_is_not_generic,t?Hs(t):e.typeName?Jp(e.typeName):iB),!1)}function vm(e){if(qE(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return ym(e),Jt;case"Number":return ym(e),zt;case"Boolean":return ym(e),Ht;case"Void":return ym(e),Xt;case"Undefined":return ym(e),Pt;case"Null":return ym(e),Rt;case"Function":case"function":return ym(e),Xn;case"array":return t&&t.length||W?void 0:ar;case"promise":return t&&t.length||W?void 0:KI(St);case"Object":if(t&&2===t.length){if(Mg(e)){const e=sx(t[0]),n=sx(t[1]),r=e===Jt||e===zt?[ip(e,n,!1)]:a;return Ps(void 0,b,a,a,r)}return St}return ym(e),W?void 0:St}}}function bm(e){const t=$o(e);if(!t.resolvedType){if(Jl(e)&&u_(e.parent))return t.resolvedSymbol=pt,t.resolvedType=DO(e.parent.expression);let n,r;const i=788968;hm(e)&&(r=vm(e),r||(n=tm(e,i,!0),n===pt?n=tm(e,111551|i):tm(e,i),r=lm(e,n))),r||(n=tm(e,i),r=lm(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function xm(e){return q(e.typeArguments,sx)}function Sm(e){const t=$o(e);if(!t.resolvedType){const n=pI(e);t.resolvedType=Mb(dC(n))}return t.resolvedType}function km(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 263:case 264:case 266:return e}}if(!e)return t?Mn:Dn;const r=ju(e);return 524288&r.flags?C(r.typeParameters)!==t?(So(n(e),Ra.Global_type_0_must_have_1_type_parameter_s,Mc(e),t),t?Mn:Dn):r:(So(n(e),Ra.Global_type_0_must_be_a_class_or_interface_type,Mc(e)),t?Mn:Dn)}function Cm(e,t){return $m(e,111551,t?Ra.Cannot_find_global_value_0:void 0)}function Rm(e,t){return $m(e,788968,t?Ra.Cannot_find_global_type_0:void 0)}function jm(e,t,n){const r=$m(e,788968,n?Ra.Cannot_find_global_type_0:void 0);if(!r||(ju(r),C(zo(r).typeParameters)===t))return r;So(r.declarations&&O(r.declarations,eA),Ra.Global_type_0_must_have_1_type_parameter_s,Mc(r),t)}function $m(e,t,n){return Ho(void 0,e,t,n,e,!1,!1,!1)}function Vm(e,t,n){const r=Rm(e,n);return r||n?km(r,t):void 0}function Km(){return Pr||(Pr=Vm("ImportMeta",0,!0)||Dn)}function Um(){if(!Fr){const e=Ao(0,"ImportMetaExpression"),t=Km(),n=Ao(4,"meta",8);n.parent=e,n.links.type=t;const r=cf([n]);e.members=r,Fr=Ps(e,r,a,a,a)}return Fr}function qm(e){return Ir||(Ir=Vm("ImportCallOptions",0,e))||Dn}function Wm(e){return ur||(ur=Cm("Symbol",e))}function Gm(){return dr||(dr=Vm("Symbol",0,!1))||Dn}function ag(e){return pr||(pr=Vm("Promise",1,e))||Mn}function pg(e){return mr||(mr=Vm("PromiseLike",1,e))||Mn}function mg(e){return gr||(gr=Cm("Promise",e))}function gg(e){return Tr||(Tr=Vm("AsyncIterable",1,e))||Mn}function vg(e){return yr||(yr=Vm("Iterable",1,e))||Mn}function Ag(e){return Or||(Or=Vm("Disposable",0,e))||Dn}function Ig(e,t=0){const n=$m(e,788968,void 0);return n&&km(n,t)}function Rg(e){return jr||(jr=jm("Awaited",1,e)||(e?pt:void 0)),jr===pt?void 0:jr}function Jg(e,t){return e!==Mn?Np(e,t):Dn}function zg(e){return Jg(fr||(fr=Vm("TypedPropertyDescriptor",1,!0)||Mn),[e])}function Vg(e){return Jg(vg(!0),[e])}function Qg(e,t){return Jg(t?er:Zn,[e])}function ih(e){switch(e.kind){case 190:return 2;case 191:return oh(e);case 202:return e.questionToken?2:e.dotDotDotToken?oh(e):1;default:return 1}}function oh(e){return ox(e.type)?4:8}function ah(e){return PD(e)||uD(e)?e:void 0}function lh(e,t){return!!_b(e)||uh(e)&&(188===e.kind?mh(e.elementType):189===e.kind?le(e.elements,mh):t||le(e.typeArguments,mh))}function uh(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return uh(t);case 265:return!0}return!1}function mh(e){switch(e.kind){case 183:return hm(e)||!!(524288&tm(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&mh(e.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return mh(e.type);case 191:return 188!==e.type.kind||mh(e.type.elementType);case 192:case 193:return le(e.types,mh);case 199:return mh(e.objectType)||mh(e.indexType);case 194:return mh(e.checkType)||mh(e.extendsType)||mh(e.trueType)||mh(e.falseType)}return!1}function hh(e,t,n=!1,r=[]){const i=vh(t||q(e,(e=>1)),n,r);return i===Mn?Dn:e.length?bh(i,e):i}function vh(e,t,n){if(1===e.length&&4&e[0])return t?er:Zn;const r=te(n,(e=>e?bB(e):void 0)),i=q(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(r.length?","+r.join(","):"");let o=ze.get(i);return o||ze.set(i,o=function(e,t,n){const r=e.length,i=$(e,(e=>!!(9&e)));let o;const s=[];let c=0;if(r){o=new Array(r);for(let i=0;i!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return Ay(q(t,((t,n)=>8&e.elementFlags[n]?t:Nt)))?tE(t[n],(r=>kh(e,Ve(t,n,r)))):Ct}const a=[],s=[],c=[];let l=-1,u=-1,_=-1;for(let s=0;s=1e4)return So(i,Tm(i)?Ra.Type_produces_a_tuple_type_that_is_too_large_to_represent:Ra.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ct;w(e,((e,t)=>{var n;return f(e,c.target.elementFlags[t],null==(n=c.target.labeledElementDeclarations)?void 0:n[t])}))}else f(jk(c)&&pf(c,zt)||Ct,4,null==(r=e.labeledElementDeclarations)?void 0:r[s]);else f(c,l,null==(o=e.labeledElementDeclarations)?void 0:o[s])}for(let e=0;e=0&&u<_&&(a[u]=ly(H(a.slice(u,_+1),((e,t)=>8&s[u+t]?Mv(e,zt):e))),a.splice(u+1,_-u),s.splice(u+1,_-u),c.splice(u+1,_-u));const d=vh(s,e.readonly,c);return d===Mn?Dn:s.length?Np(d,a):d;function f(e,t,n){1&t&&(l=s.length),4&t&&u<0&&(u=s.length),6&t&&(_=s.length),a.push(2&t?Zc(e,!0):e),s.push(t),c.push(n)}}function Nh(e,t,n=0){const r=e.target,i=Ip(e)-n;return t>r.fixedLength?function(e){const t=iT(e);return t&&Qg(t)}(e)||hh(a):hh(Fp(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function Ah(e){return ly(ke(Qe(e.target.fixedLength,(e=>Bb(""+e))),iv(e.target.readonly?er:Zn)))}function Fh(e,t){return e.elementFlags.length-R(e.elementFlags,(e=>!(e&t)))-1}function Mh(e){return e.fixedLength+Fh(e,3)}function Lh(e){const t=Fp(e),n=Ip(e);return t.length===n?t:t.slice(0,n)}function Rh(e){return e.id}function jh(e,t){return Ke(e,t,Rh,Bt)>=0}function qh(e,t){const n=Ke(e,t,Rh,Bt);return n<0&&(e.splice(~n,0,t),!0)}function Gh(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),n===Tt&&(t|=8388608),!F&&98304&r)65536&tS(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Ke(e,n,Rh,Bt);r<0&&e.splice(~r,0,n)}return t}function Yh(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?Yh(e,t|(ty(i)?1048576:0),i.types):Gh(e,t,i),r=i);return t}function ty(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function ay(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?Ee(e,n):t&&1048576&t.flags&&ay(e,t.types)}}function cy(e,t){const n=Ss(e);return n.types=t,n}function ly(e,t=1,n,r,i){if(0===e.length)return Qt;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id=2&&a[0]===Pt&&a[1]===It&&an(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||Lb(i)&&jh(e,i.regularType))&&an(e,r)}}(a,s,!!(2&t)),128&s&&134217728&s&&function(e){const t=V(e,(e=>!!(134217728&e.flags)&&Cv(e)));if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&le(t,(e=>UC(r,e)))&&an(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const r=vp(e),o=at.get(r);if(o)return o;const a=t&&le(e,(e=>!!(524288&e.flags)&&!yd(e)&&CS(bd(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&Md(t).flags){FS(t,ly(q(e,(e=>e===t?Qt:e))),so)&&an(e,c);continue}const r=61603840&t.flags?O(Td(t),(e=>Uk(ql(e)))):void 0,o=r&&Mb(ql(r));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=Br)||n.instant(Br.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void So(i,Ra.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,r&&61603840&a.flags){const e=xc(a,r.escapedName);if(e&&Uk(e)&&Mb(e)!==o)continue}if(FS(t,a,so)&&(!(1&tS(Xl(t)))||!(1&tS(Xl(a)))||oS(t,a))){an(e,c);break}}}}return at.set(r,e),e}(a,!!(524288&s)),!a))return Ct;if(0===a.length)return 65536&s?4194304&s?Rt:jt:32768&s?4194304&s?Pt:Ft:Qt}if(!o&&1048576&s){const t=[];ay(t,e);const r=[];for(const e of a)le(t,(t=>jh(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(qe(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)qh(r,e);o=cy(1048576,r)}}return Sy(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,r,o)}function by(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Sy(e,t,n,r,i){if(0===e.length)return Qt;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${vp(i.types)}`:2097152&i.flags?`&${vp(i.types)}`:`#${i.type.id}|${vp(e)}`:vp(e))+Tp(n,r);let a=$e.get(o);return a||(a=bs(1048576),a.objectFlags=t|Ep(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),$e.set(o,a)),a}function ky(e,t,n){const r=n.flags;return 2097152&r?Ty(e,t,n.types):(ES(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?n===Tt&&(t|=8388608):!F&&98304&r||(n===It&&(t|=262144,n=Pt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function Ty(e,t,n){for(const r of n)t=ky(e,t,Mb(r));return t}function Cy(e,t){for(const n of e)if(!jh(n.types,t)){const e=128&t.flags?Jt:288&t.flags?zt:2048&t.flags?$t:8192&t.flags?Gt:void 0;if(!e||!jh(n.types,e))return!1}return!0}function wy(e,t){for(let n=0;n!(e.flags&t)))}function Ey(e,t,n,r){const i=new Map,o=Ty(i,0,e),a=Ze(i.values());if(131072&o)return B(a,en)?en:Qt;if(F&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return Qt;if(134217728&o&&128&o&&function(e){let t=e.length;const n=V(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(134217728&r.flags)for(const i of n){if(Zx(i,r)){an(e,t);break}if(Cv(r))return!0}}return!1}(a))return Qt;if(1&o)return 8388608&o?Tt:St;if(!F&&98304&o)return 16777216&o?Qt:32768&o?Pt:Rt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(r||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||ES(r)&&470302716&t)&&an(e,n)}}(a,o)),262144&o&&(a[a.indexOf(Pt)]=It),0===a.length)return Nt;if(1===a.length)return a[0];const s=vp(a)+Tp(t,n);let c=We.get(s);if(!c){if(1048576&o)if(function(e){let t;const n=L(e,(e=>!!(32768&tS(e))));if(n<0)return!1;let r=n+1;for(;r!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=le(a,LT)?It:Pt;wy(a,32768),c=ly([Ey(a),e],1,t,n)}else if(I(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))wy(a,65536),c=ly([Ey(a),Rt],1,t,n);else{if(!Ay(a))return Ct;const e=function(e){const t=Ny(e),n=[];for(let r=0;r=0;n--)if(1048576&e[n].flags){const r=e[n].types,o=r.length;t[n]=r[i%o],i=Math.floor(i/o)}const o=Ey(t);131072&o.flags||n.push(o)}return n}(a);c=ly(e,1,t,n,le(e,(e=>!!(2097152&e.flags)))&&My(e)>My(a)?cy(2097152,a):void 0)}else c=function(e,t,n){const r=bs(2097152);return r.objectFlags=Ep(e,98304),r.types=e,r.aliasSymbol=t,r.aliasTypeArguments=n,r}(a,t,n);We.set(s,c)}return c}function Ny(e){return qe(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function Ay(e){var t;const n=Ny(e);return!(n>=1e5&&(null==(t=Br)||t.instant(Br.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),So(i,Ra.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Py(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Py(e.origin):My(e.types):1}function My(e){return qe(e,((e,t)=>e+Py(t)),0)}function $y(e,t){return!!(76&e.flags)&&t===Pn}function Uy(e,t){const n=bs(4194304);return n.type=e,n.indexFlags=t,n}function qy(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Uy(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Uy(e,0))}function Wy(e){if(WE(e))return Qt;if(EE(e))return Mb(WO(e));if(cD(e))return Mb(EN(e));const t=jy(e);return void 0!==t?Bb(Fc(t)):l_(e)?Mb(WO(e)):Qt}function Hy(e,t,n){if(n||!(24&Vx(e))){let n=zo(__(e)).nameType;if(!n){const t=$c(e.valueDeclaration);n="default"===e.escapedName?Bb("default"):t&&Wy(t)||(Ky(e)?void 0:Bb(Mc(e)))}if(n&&n.flags&t)return n}return Qt}function Xy(e,t){return!!(e.flags&t||2097152&e.flags&&le(e.types,(e=>Xy(e,t))))}function nv(e,t,n){const r=n&&(7&tS(e)||e.aliasSymbol)?function(e){const t=Ss(4194304);return t.type=e,t}(e):void 0;return ly(_e(q(Td(e),(e=>Hy(e,t))),q(df(e),(e=>e!==si&&Xy(e.keyType,t)?e.keyType===Jt&&8&t?sn:e.keyType:Qt))),1,void 0,void 0,r)}function rv(e,t=0){return!!(58982400&e.flags||tT(e)||yd(e)&&!function(e){const t=cd(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?I(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(ud(e)||t)}(e)||1048576&e.flags&&!(4&t)&&Yd(e)||2097152&e.flags&&fO(e,465829888)&&le(e.types,ES))}function iv(e,t=ee){return rv(e=Wd(e),t)?qy(e,t):1048576&e.flags?Ey(q(e.types,(e=>iv(e,t)))):2097152&e.flags?ly(q(e.types,(e=>iv(e,t)))):32&tS(e)?function(e,t){const n=cd(e),r=ld(e),i=ud(e.target||e);if(!(i||2&t))return r;const o=[];if(fd(e)){if(Nv(r))return qy(e,t);Z_($d(pd(e)),8576,!!(1&t),s)}else Gw(K_(r),s);Nv(r)&&Gw(r,s);const a=2&t?Qw(ly(o),(e=>!(5&e.flags))):ly(o);return 1048576&a.flags&&1048576&r.flags&&vp(a.types)===vp(r.types)?r:a;function s(t){const r=i?Mx(i,Tx(e.mapper,n,t)):t;o.push(r===Jt?sn:r)}}(e,t):e===Tt?Tt:2&e.flags?Qt:131073&e.flags?un:nv(e,(2&t?128:402653316)|(1&t?0:12584),t===ee)}function ov(e){if(Z)return e;const t=(Lr||(Lr=jm("Extract",2,!0)||pt),Lr===pt?void 0:Lr);return t?Vp(t,[e,Jt]):Jt}function av(e,t){const n=L(t,(e=>!!(1179648&e.flags)));if(n>=0)return Ay(t)?tE(t[n],(r=>av(e,Ve(t,n,r)))):Ct;if(B(t,Tt))return Tt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a""===e))){if(I(r,(e=>!!(4&e.flags))))return Jt;if(1===r.length&&Cv(r[0]))return r[0]}const a=`${vp(r)}|${q(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=tt.get(a);return s||tt.set(a,s=function(e,t){const n=bs(134217728);return n.objectFlags=Ep(t,98304),n.texts=e,n.types=t,n}(i,r)),s}function sv(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?ST(e.value):98816&e.flags?e.intrinsicName:void 0}function cv(e,t){return 1179648&t.flags?tE(t,(t=>cv(e,t))):128&t.flags?Bb(_v(e,t.value)):134217728&t.flags?av(...function(e,t,n){switch(pB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>cv(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>cv(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[cv(e,n[0]),...n.slice(1)]:n];case 3:return[""===t[0]?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[cv(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||Nv(t)?dv(e,t):xv(t)?dv(e,av(["",""],[t])):t}function _v(e,t){switch(pB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function dv(e,t){const n=`${xB(e)},${Rh(t)}`;let r=nt.get(n);return r||nt.set(n,r=function(e,t){const n=xs(268435456,e);return n.type=t,n}(e,t)),r}function fv(e){if(W)return!1;if(4096&tS(e))return!0;if(1048576&e.flags)return I(e.types,fv);if(2097152&e.flags)return le(e.types,fv);if(465829888&e.flags){const t=Rd(e);return t!==e&&fv(t)}return!1}function mv(e,t){return gC(e)?hC(e):t&&xu(t)?jy(t):void 0}function gv(e,t){if(8208&t.flags){const n=Dc(e.parent,(e=>!lS(e)))||e.parent;return e_(n)?t_(n)&&qE(e)&&kw(n,e):I(t.declarations,(e=>!ku(e)||Do(e)))}return!0}function hv(e,t,n,r,i,o){const a=i&&212===i.kind?i:void 0,s=i&&WE(i)?void 0:mv(n,i);if(void 0!==s){if(256&o)return SD(t,s)||St;const e=Zd(t,s);if(e){if(64&o&&i&&e.declarations&&Eo(e)&&gv(i,e)&&No((null==a?void 0:a.argumentExpression)??(zD(i)?i.indexType:i),e.declarations,s),a){if(qP(e,a,WP(a.expression,t.symbol)),cO(a,e,Wh(a)))return void So(a.argumentExpression,Ra.Cannot_assign_to_0_because_it_is_a_read_only_property,Hs(e));if(8&o&&($o(i).resolvedSymbol=e),kP(a,e))return kt}const n=ql(e);return a&&1!==Wh(a)?SE(a,n):i&&zD(i)&<(n)?ly([n,Pt]):n}if(Yw(t,eT)&&HT(s)){const e=+s;if(i&&Yw(t,(e=>!e.target.hasRestElement))&&!(16&o)){const n=bv(i);if(eT(t)){if(e<0)return So(n,Ra.A_tuple_type_cannot_be_indexed_with_a_negative_value),Pt;So(n,Ra.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ys(t),Ip(t),Fc(s))}else So(n,Ra.Property_0_does_not_exist_on_type_1,Fc(s),Ys(t))}if(e>=0)return c(ff(t,zt)),oT(t,e,1&o?It:void 0)}}if(!(98304&n.flags)&&pO(n,402665900)){if(131073&t.flags)return t;const l=xf(t,n)||ff(t,Jt);if(l)return 2&o&&l.keyType!==zt?void(a&&So(a,Ra.Type_0_cannot_be_used_to_index_type_1,Ys(n),Ys(e))):i&&l.keyType===Jt&&!pO(n,12)?(So(bv(i),Ra.Type_0_cannot_be_used_as_an_index_type,Ys(n)),1&o?ly([l.type,It]):l.type):(c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&us(n.symbol)===t.symbol)?ly([l.type,It]):l.type);if(131072&n.flags)return Qt;if(fv(t))return St;if(a&&!gO(t)){if(YC(t)){if(W&&384&n.flags)return ro.add(qp(a,Ra.Property_0_does_not_exist_on_type_1,n.value,Ys(t))),Pt;if(12&n.flags)return ly(ke(q(t.properties,(e=>ql(e))),Pt))}if(t.symbol===me&&void 0!==s&&me.exports.has(s)&&418&me.exports.get(s).flags)So(a,Ra.Property_0_does_not_exist_on_type_1,Fc(s),Ys(t));else if(W&&!S.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==s&&RP(s,t)){const e=Ys(t);So(a,Ra.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+op(a.argumentExpression)+"]")}else if(pf(t,zt))So(a.argumentExpression,Ra.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=$P(s,t)))void 0!==e&&So(a.argumentExpression,Ra.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,Ys(t),e);else{const e=function(e,t,n){const r=Hh(t)?"set":"get";if(!function(t){const r=Sd(e,t);if(r){const e=pF(ql(r));return!!e&&NI(e)>=1&&iS(n,CI(e,0))}return!1}(r))return;let i=nx(t.expression);return void 0===i?i=r:i+="."+r,i}(t,a,n);if(void 0!==e)So(a,Ra.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ys(t),e);else{let e;if(1024&n.flags)e=RS(void 0,Ra.Property_0_does_not_exist_on_type_1,"["+Ys(n)+"]",Ys(t));else if(8192&n.flags){const r=$a(n.symbol,a);e=RS(void 0,Ra.Property_0_does_not_exist_on_type_1,"["+r+"]",Ys(t))}else 128&n.flags||256&n.flags?e=RS(void 0,Ra.Property_0_does_not_exist_on_type_1,n.value,Ys(t)):12&n.flags&&(e=RS(void 0,Ra.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ys(n),Ys(t)));e=RS(e,Ra.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ys(r),Ys(t)),ro.add(Gp(Ff(a),a,e))}}}return}}if(fv(t))return St;if(i){const e=bv(i);384&n.flags?So(e,Ra.Property_0_does_not_exist_on_type_1,""+n.value,Ys(t)):12&n.flags?So(e,Ra.Type_0_has_no_matching_index_signature_for_type_1,Ys(t),Ys(n)):So(e,Ra.Type_0_cannot_be_used_as_an_index_type,Ys(n))}return Cc(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(Hh(a)||ry(a))&&So(a,Ra.Index_signature_in_type_0_only_permits_reading,Ys(t))}}function bv(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function xv(e){return 2097152&e.flags?le(e.types,(e=>!!(101248&e.flags)||xv(e))):!!(77&e.flags)||Cv(e)}function Cv(e){return!!(134217728&e.flags)&&I(e.types,xv)||!!(268435456&e.flags)&&xv(e.type)}function wv(e){return!!Av(e)}function Dv(e){return!!(4194304&Av(e))}function Nv(e){return!!(8388608&Av(e))}function Av(e){return 137363456&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|qe(e.types,((e,t)=>e|Av(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Av(e.baseType)|Av(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||yd(e)||tT(e)?4194304:0)|(331612160&e.flags&&!Cv(e)?8388608:0)}function Pv(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===jn?e:e[n];e[n]=jn;const r=Pv(e.objectType,t),i=Pv(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=q(t.types,(t=>Pv(Mv(e,t),n)));return n?Ey(r):ly(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=Fv(r,i,t);if(o)return e[n]=o}if(tT(r)&&296&i.flags){const o=aT(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}return!yd(r)||ud(r)&&!vd(r)?e[n]=e:e[n]=tE(Ov(r,e.indexType),(e=>Pv(e,t)))}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=qv(e),o=Gv(e);if(131072&o.flags&&zv(i)===zv(n)){if(1&n.flags||iS(jx(n),jx(r)))return Pv(i,t);if(Iv(n,r))return Qt}else if(131072&i.flags&&zv(o)===zv(n)){if(!(1&n.flags)&&iS(jx(n),jx(r)))return Qt;if(1&n.flags||Iv(n,r))return Pv(o,t)}return e}(e,t):e}function Fv(e,t,n){if(1048576&e.flags||2097152&e.flags&&!rv(e)){const r=q(e.types,(e=>Pv(Mv(e,t),n)));return 2097152&e.flags||n?Ey(r):ly(r)}}function Iv(e,t){return!!(131072&ly([M_(e,t),Qt]).flags)}function Ov(e,t){const n=mx([cd(e)],[t]),r=Sx(e.mapper,n);return Mx(_d(e.target||e),r)}function Mv(e,t,n=0,r,i,o){return jv(e,t,n,r,i,o)||(r?Ct:Nt)}function Rv(e,t){return Yw(e,(e=>{if(384&e.flags){const n=hC(e);if(HT(n)){const e=+n;return e>=0&&e0&&!le(e.elements,(e=>FD(e)||ID(e)||PD(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Kv(e,t){return wv(e)||t&&eT(e)&&le(Lh(e),wv)}function Uv(e,t,n,r){let o,a,s=0;for(;;){if(1e3===s)return So(i,Ra.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ct;const l=Mx(zv(e.checkType),t),u=Mx(e.extendsType,t);if(l===Ct||u===Ct)return Ct;if(l===Tt||u===Tt)return Tt;const _=Vv(e.node.checkType)&&Vv(e.node.extendsType)&&C(e.node.checkType.elements)===C(e.node.extendsType.elements),d=Kv(l,_);let f;if(e.inferTypeParameters){const n=H(e.inferTypeParameters,$v),r=n!==e.inferTypeParameters?mx(e.inferTypeParameters,n):void 0,i=kC(n,void 0,0);if(r){const i=Sx(t,r);for(let t=0;tgx(e,c))),u=mx(a.outerTypeParameters,l),_=a.isDistributive?gx(a.checkType,u):void 0;if(!(_&&_!==a.checkType&&1179648&_.flags))return e=a,t=u,n=void 0,r=void 0,a.aliasSymbol&&s++,!0}}return!1}}function qv(e){return e.resolvedTrueType||(e.resolvedTrueType=Mx(sx(e.root.node.trueType),e.mapper))}function Gv(e){return e.resolvedFalseType||(e.resolvedFalseType=Mx(sx(e.root.node.falseType),e.mapper))}function tb(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=ke(t,ju(e)))})),t}function ib(e){return qE(e)?[e]:ke(ib(e.left),e.right)}function cb(e){var t;const n=$o(e);if(!n.resolvedType){if(!gm(e))return So(e.argument,Ra.String_literal_expected),n.resolvedSymbol=pt,n.resolvedType=Ct;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=Ua(e,e.argument.literal);if(!i)return n.resolvedSymbol=pt,n.resolvedType=Ct;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=Ga(i,!1);if(Jf(e.qualifier))a.flags&r?n.resolvedType=lb(e,n,a,r):(So(e,111551===r?Ra.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Ra.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=pt,n.resolvedType=Ct);else{const t=ib(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=as(Fa(s)),l=e.isTypeOf||Pg(e)&&o?Zd(ql(c),i.escapedText,!1,!0):void 0,u=(e.isTypeOf?void 0:Ko(ns(c),i.escapedText,a))??l;if(!u)return So(i,Ra.Namespace_0_has_no_exported_member_1,$a(s),Jp(i)),n.resolvedType=Ct;$o(i).resolvedSymbol=u,$o(i.parent).resolvedSymbol=u,s=u}n.resolvedType=lb(e,n,s,r)}}return n.resolvedType}function lb(e,t,n,r){const i=Fa(n);return t.resolvedSymbol=i,111551===r?mI(ql(n),e):lm(e,i)}function ub(e){const t=$o(e);if(!t.resolvedType){const n=_b(e);if(0!==c_(e.symbol).size||n){let r=Cs(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=db(n),lP(e)&&e.isArrayType&&(r=Qg(r)),t.resolvedType=r}else t.resolvedType=Pn}return t.resolvedType}function _b(e){let t=e.parent;for(;jD(t)||HA(t)||JD(t)&&148===t.operator;)t=t.parent;return Dh(t)?cs(t):void 0}function db(e){return e?ru(e):void 0}function fb(e){return!!(524288&e.flags)&&!yd(e)}function pb(e){return wS(e)||!!(474058748&e.flags)}function mb(e,t){if(!(1048576&e.flags))return e;if(I(e.types,pb))return O(e.types,wS)||Dn;const n=O(e.types,(e=>!pb(e)));return n?O(e.types,(e=>e!==n&&!pb(e)))?e:function(e){const n=cf();for(const r of Td(e))if(24&Vx(r));else if(Ab(r)){const e=65536&r.flags&&!(32768&r.flags),i=Ao(16777220,r.escapedName,Y_(r)|(t?8:0));i.links.type=e?Pt:Zc(ql(r),!0),i.declarations=r.declarations,i.links.nameType=zo(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=Ps(e.symbol,n,a,a,df(e));return r.objectFlags|=131200,r}(n):e}function Nb(e,t,n,r,i){if(1&e.flags||1&t.flags)return St;if(2&e.flags||2&t.flags)return Nt;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=mb(e,i)).flags)return Ay([e,t])?tE(e,(e=>Nb(e,t,n,r,i))):Ct;if(1048576&(t=mb(t,i)).flags)return Ay([e,t])?tE(t,(t=>Nb(e,t,n,r,i))):Ct;if(473960444&t.flags)return e;if(Dv(e)||Dv(t)){if(wS(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(fb(a)&&fb(t))return Ey(_e(o.slice(0,o.length-1),[Nb(a,t,n,r,i)]))}return Ey([e,t])}const o=cf(),s=new Set,c=e===Dn?df(t):O_([e,t]);for(const e of Td(t))24&Vx(e)?s.add(e.escapedName):Ab(e)&&o.set(e.escapedName,Fb(e,i));for(const t of Td(e))if(!s.has(t.escapedName)&&Ab(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=ql(e);if(16777216&e.flags){const r=_e(t.declarations,e.declarations),i=Ao(4|16777216&t.flags,t.escapedName),a=ql(t),s=RT(a),c=RT(n);i.links.type=s===c?a:ly([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=zo(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,Fb(t,i));const l=Ps(n,o,a,a,H(c,(e=>function(e,t){return e.isReadonly!==t?ip(e.keyType,e.type,t,e.declaration):e}(e,i))));return l.objectFlags|=2228352|r,l}function Ab(e){var t;return!(le(e.declarations,pu)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>Pu(e.parent)))))}function Fb(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===sO(e))return e;const r=Ao(4|16777216&e.flags,e.escapedName,Y_(e)|(t?8:0));return r.links.type=n?Pt:ql(e),r.declarations=e.declarations,r.links.nameType=zo(e).nameType,r.links.syntheticOrigin=e,r}function Ib(e,t,n,r){const i=xs(e,n);return i.value=t,i.regularType=r||i,i}function Ob(e){if(2976&e.flags){if(!e.freshType){const t=Ib(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function Mb(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=tE(e,Mb)):e}function Lb(e){return!!(2976&e.flags)&&e.freshType===e}function Bb(e){let t;return He.get(e)||(He.set(e,t=Ib(128,e)),t)}function Jb(e){let t;return Ge.get(e)||(Ge.set(e,t=Ib(256,e)),t)}function zb(e){let t;const n=ST(e);return Xe.get(n)||(Xe.set(n,t=Ib(2048,e)),t)}function $b(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return Ye.get(i)||(Ye.set(i,r=Ib(o,e,n)),r)}function qb(e){if(Mm(e)){const t=Om(e)?ls(e.left):ls(e);if(t){const e=zo(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=xs(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${xB(t.symbol)}`,t}(t))}}return Gt}function Gb(e){const t=$o(e);return t.resolvedType||(t.resolvedType=function(e){const t=eg(e,!1,!1),n=t&&t.parent;if(n&&(Pu(n)||264===n.kind)&&!bb(t)&&(!hD(t)||iy(e,t.body)))return Su(cs(n)).thisType;if(n&&YD(n)&&fN(n.parent)&&6===nh(n.parent))return Su(ls(n.parent.left).parent).thisType;const r=16777216&e.flags?zh(e):void 0;return r&&oN(r)&&fN(r.parent)&&3===nh(r.parent)?Su(ls(r.parent.left).parent).thisType:YF(t)&&iy(e,t.body)?Su(cs(t)).thisType:(So(e,Ra.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ct)}(e)),t.resolvedType}function Xb(e){return sx(ox(e.type)||e.type)}function ox(e){switch(e.kind){case 196:return ox(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return ox(e.type);break;case 188:return e.elementType}}function sx(e){return function(e,t){let n,r=!0;for(;t&&!I_(t)&&327!==t.kind;){const i=t.parent;if(169===i.kind&&(r=!r),(r||8650752&e.flags)&&194===i.kind&&t===i.trueType){const t=mm(e,i.checkType,i.extendsType);t&&(n=ke(n,t))}else if(262144&e.flags&&200===i.kind&&t===i.type){const t=sx(i);if(cd(t)===zv(e)){const e=Nx(t);if(e){const t=wd(e);t&&Yw(t,Mk)&&(n=ke(n,ly([zt,gn])))}}}t=i}return n?um(e,Ey(n)):e}(cx(e),e)}function cx(e){switch(e.kind){case 133:case 319:case 320:return St;case 159:return Nt;case 154:return Jt;case 150:return zt;case 163:return $t;case 136:return Ht;case 155:return Gt;case 116:return Xt;case 157:return Pt;case 106:return Rt;case 146:return Qt;case 151:return 524288&e.flags&&!W?St:on;case 141:return Dt;case 197:case 110:return Gb(e);case 201:return function(e){if(106===e.literal.kind)return Rt;const t=$o(e);return t.resolvedType||(t.resolvedType=Mb(WO(e.literal))),t.resolvedType}(e);case 183:case 233:return bm(e);case 182:return e.assertsModifier?Xt:Ht;case 186:return Sm(e);case 188:case 189:return function(e){const t=$o(e);if(!t.resolvedType){const n=function(e){const t=function(e){return JD(e)&&148===e.operator}(e.parent);return ox(e)?t?er:Zn:vh(q(e.elements,ih),t,q(e.elements,ah))}(e);if(n===Mn)t.resolvedType=Dn;else if(189===e.kind&&le(e.elements,(e=>!!(8&ih(e))))||!lh(e)){const r=188===e.kind?[sx(e.elementType)]:q(e.elements,sx);t.resolvedType=bh(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:Pp(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return Zc(sx(e.type),!0)}(e);case 192:return function(e){const t=$o(e);if(!t.resolvedType){const n=_b(e);t.resolvedType=ly(q(e.types,sx),1,n,db(n))}return t.resolvedType}(e);case 193:return function(e){const t=$o(e);if(!t.resolvedType){const n=_b(e),r=q(e.types,sx),i=2===r.length&&($y(r[0],r[1])||$y(r[1],r[0]));t.resolvedType=Ey(r,n,db(n),i)}return t.resolvedType}(e);case 321:return function(e){const t=sx(e.type);return F?fT(t,65536):t}(e);case 323:return Zc(sx(e.type));case 202:return function(e){const t=$o(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?Xb(e):Zc(sx(e.type),!0,!!e.questionToken))}(e);case 196:case 322:case 316:return sx(e.type);case 191:return Xb(e);case 325:return function(e){const t=sx(e.type),{parent:n}=e,r=e.parent.parent;if(HA(e.parent)&&TP(r)){const e=zh(r),n=pP(r.parent.parent);if(e||n){const i=je(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Bh(r);if(!i||o&&i.symbol===o&&rd(i))return Qg(t)}}return uD(n)&&oP(n.parent)?Qg(t):Zc(t)}(e);case 184:case 185:case 187:case 329:case 324:case 330:return ub(e);case 198:return function(e){const t=$o(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=iv(sx(e.type));break;case 158:t.resolvedType=155===e.type.kind?qb(Qh(e.parent)):Ct;break;case 148:t.resolvedType=sx(e.type);break;default:Fn.assertNever(e.operator)}return t.resolvedType}(e);case 199:return Bv(e);case 200:return Jv(e);case 194:return function(e){const t=$o(e);if(!t.resolvedType){const n=sx(e.checkType),r=_b(e),i=db(r),o=Zl(e,!0),a=i?o:V(o,(t=>Dx(t,e))),s={node:e,checkType:n,extendsType:sx(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:tb(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=Uv(s,void 0),a&&(s.instantiations=new Map,s.instantiations.set(vp(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=$o(e);return t.resolvedType||(t.resolvedType=Ru(cs(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=$o(e);return t.resolvedType||(t.resolvedType=av([e.head.text,...q(e.templateSpans,(e=>e.literal.text))],q(e.templateSpans,(e=>sx(e.type))))),t.resolvedType}(e);case 205:return cb(e);case 80:case 166:case 211:const t=jR(e);return t?ju(t):Ct;default:return Ct}}function _x(e,t,n){if(e&&e.length)for(let r=0;riy(e,a)))||le(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||le(t.typeParameters,n)||le(t.parameters,n)||!!t.type&&n(t.type)}return!!zI(t,n)}}function Nx(e){const t=ld(e);if(4194304&t.flags){const e=zv(t.type);if(262144&e.flags)return e}}function Ax(e,t,n,r){const i=Nx(e);if(i){const o=Mx(i,t);if(i!==o)return nE(Wd(o),(n=>{if(61603843&n.flags&&n!==Tt&&!wc(n)){if(!e.declaration.nameType){let r;if(Ik(n)||1&n.flags&&mc(i,4)<0&&(r=wd(i))&&Yw(r,Mk))return function(e,t,n){const r=Fx(t,zt,!0,n);return wc(r)?Ct:Qg(r,Px(Ok(e),md(t)))}(n,e,kx(i,n,t));if(tT(n))return function(e,t,n,r){const i=e.target.elementFlags,o=q(Lh(e),((e,o)=>{const a=8&i[o]?e:4&i[o]?Qg(e):hh([e],[i[o]]);return a===n?t:Ax(t,kx(n,a,r))})),a=Px(e.target.readonly,md(t));return hh(o,q(o,(e=>8)),a)}(n,e,i,t);if(eT(n))return function(e,t,n){const r=e.target.elementFlags,i=q(Lh(e),((e,i)=>Fx(t,Bb(""+i),!!(2&r[i]),n))),o=md(t),a=4&o?q(r,(e=>1&e?2:e)):8&o?q(r,(e=>2&e?1:e)):r,s=Px(e.target.readonly,o);return B(i,Ct)?Ct:hh(i,a,s,e.target.labeledElementDeclarations)}(n,e,kx(i,n,t))}return Ix(e,kx(i,n,t))}return n}),n,r)}return Mx(ld(e),t)===Tt?Tt:Ix(e,t,n,r)}function Px(e,t){return!!(1&t)||!(2&t)&&e}function Fx(e,t,n,r){const i=Tx(r,cd(e),t),o=Mx(_d(e.target||e),i),a=md(e);return F&&4&a&&!fO(o,49152)?pT(o,!0):F&&8&a&&n?Ew(o,524288):o}function Ix(e,t,n,r){const i=Cs(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=cd(e),r=Cx(n);i.typeParameter=r,t=Sx(hx(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:dx(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?Ep(i.aliasTypeArguments):0,i}function Ox(e,t,n,r){const i=e.root;if(i.outerTypeParameters){const e=q(i.outerTypeParameters,(e=>gx(e,t))),o=vp(e)+Tp(n,r);let a=i.instantiations.get(o);if(!a){const t=mx(i.outerTypeParameters,e),s=i.checkType,c=i.isDistributive?gx(s,t):void 0;a=c&&s!==c&&1179648&c.flags?nE(Wd(c),(e=>Uv(i,kx(s,e,t))),n,r):Uv(i,t,n,r),i.instantiations.set(o,a)}return a}return e}function Mx(e,t){return e&&t?Lx(e,t,void 0,void 0):e}function Lx(e,t,n,r){var o;if(!AC(e))return e;if(100===h||g>=5e6)return null==(o=Br)||o.instant(Br.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:h,instantiationCount:g}),So(i,Ra.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ct;m++,g++,h++;const s=function(e,t,n,r){const i=e.flags;if(262144&i)return gx(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=dx(n,t);return r!==n?bh(e.target,r):e}return 1024&i?function(e,t){const n=Mx(e.mappedType,t);if(!(32&tS(n)))return e;const r=Mx(e.constraintType,t);if(!(4194304&r.flags))return e;const i=OC(Mx(e.source,t),n,r);return i||e}(e,t):function(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=$o(i),s=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let c=o.outerTypeParameters;if(!c){let t=Zl(i,!0);YF(i)&&(t=we(t,kf(i))),c=t||a;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?V(c,(e=>le(n,(t=>Dx(e,t))))):c,o.outerTypeParameters=c}if(c.length){const i=Sx(e.mapper,t),o=q(c,(e=>gx(e,i))),a=n||e.aliasSymbol,l=n?r:dx(e.aliasTypeArguments,t),u=vp(o)+Tp(a,l);s.instantiations||(s.instantiations=new Map,s.instantiations.set(vp(c)+Tp(s.aliasSymbol,s.aliasTypeArguments),s));let _=s.instantiations.get(u);if(!_){const t=mx(c,o);_=4&s.objectFlags?Pp(e.target,e.node,t,a,l):32&s.objectFlags?Ax(s,t,a,l):Ix(s,t,a,l),s.instantiations.set(u,_);const n=tS(_);if(138117121&_.flags&&!(524288&n)){const e=le(o,AC);524288&tS(_)||(_.objectFlags|=52&n?524288|(e?1048576:0):e?0:524288)}}return _}return e}(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=dx(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:dx(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?Ey(s,c,l):ly(s,1,c,l)}if(4194304&i)return iv(Mx(e.type,t));if(134217728&i)return av(e.texts,dx(e.types,t));if(268435456&i)return cv(e.symbol,Mx(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:dx(e.aliasTypeArguments,t);return Mv(Mx(e.objectType,t),Mx(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return Ox(e,Sx(e.mapper,t),n,r);if(33554432&i){const n=Mx(e.baseType,t),r=Mx(e.constraint,t);return 8650752&n.flags&&wv(r)?um(n,r):3&r.flags||iS(jx(n),jx(r))?n:8650752&n.flags?um(n,r):Ey([r,n])}return e}(e,t,n,r);return h--,s}function Rx(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Mx(e,Sn))}function jx(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Mx(e,bn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Bx(e,t){return ip(e.keyType,Mx(e.type,t),e.isReadonly,e.declaration)}function Jx(e){switch(Fn.assert(174!==e.kind||Bm(e)),e.kind){case 218:case 219:case 174:case 262:return zx(e);case 210:return le(e.properties,Jx);case 209:return le(e.elements,Jx);case 227:return Jx(e.whenTrue)||Jx(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(Jx(e.left)||Jx(e.right));case 303:return Jx(e.initializer);case 217:return Jx(e.expression);case 292:return le(e.properties,Jx)||wA(e.parent)&&le(e.parent.parent.children,Jx);case 291:{const{initializer:t}=e;return!!t&&Jx(t)}case 294:{const{expression:t}=e;return!!t&&Jx(t)}}return!1}function zx(e){return $T(e)||function(e){return!(e.typeParameters||ob(e)||!e.body)&&(241!==e.body.kind?Jx(e.body):!!wm(e.body,(e=>!!e.expression&&Jx(e.expression))))}(e)}function Kx(e){return(qT(e)||Bm(e))&&zx(e)}function Hx(e){if(524288&e.flags){const t=bd(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Cs(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=a,n.constructSignatures=a,n.indexInfos=a,n}}else if(2097152&e.flags)return Ey(q(e.types,Hx));return e}function Gx(e,t){return FS(e,t,uo)}function Xx(e,t){return FS(e,t,uo)?-1:0}function Yx(e,t){return FS(e,t,co)?-1:0}function Qx(e,t){return FS(e,t,ao)?-1:0}function Zx(e,t){return FS(e,t,ao)}function nS(e,t){return FS(e,t,so)}function iS(e,t){return FS(e,t,co)}function oS(e,t){return 1048576&e.flags?I(e.types,(e=>oS(e,t))):1048576&t.flags?le(t.types,(t=>oS(e,t))):2097152&e.flags?le(e.types,(e=>oS(e,t))):58982400&e.flags?oS(Od(e)||Nt,t):ES(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!ES(e):t===Xn?!!(524288&e.flags)&&Cw(e):Yl(e,Xl(t))||Ik(t)&&!Ok(t)&&oS(e,er)}function aS(e,t){return FS(e,t,lo)}function sS(e,t){return aS(e,t)||aS(t,e)}function uS(e,t,n,r,i,o){return VS(e,t,co,n,r,i,o)}function _S(e,t,n,r,i,o){return dS(e,t,co,n,r,i,o,void 0)}function dS(e,t,n,r,i,o,a,s){return!!FS(e,t,n)||(!r||!mS(i,e,t,n,o,a,s))&&VS(e,t,n,r,o,a,s)}function pS(e){return!!(16777216&e.flags||2097152&e.flags&&le(e.types,pS))}function mS(e,t,n,r,i,o,a){if(!e||pS(n))return!1;if(!VS(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=tf(t,0),c=tf(t,1);for(const l of[c,s])if(le(l,(e=>{const t=qf(e);return!(131073&t.flags)&&VS(t,n,r,void 0)}))){const r=a||{};return uS(t,n,e,i,o,r),mT(r.errors[r.errors.length-1],qp(e,l===c?Ra.Did_you_mean_to_use_new_with_this_expression:Ra.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 234:if(!Wo(e))break;case 294:case 217:return mS(e.expression,t,n,r,i,o,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return mS(e.right,t,n,r,i,o,a)}break;case 210:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&yS(function*(e){if(C(e.properties))for(const t of e.properties){if($A(t))continue;const e=Hy(cs(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:$p(t.name)?Ra.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:Fn.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 209:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if($k(t))return yS(bS(e,n),t,n,r,i,o);sN(e,n,!1);const a=wN(e,1,!0);return lN(),!!$k(a)&&yS(bS(e,n),a,n,r,i,o)}(e,t,n,r,o,a);case 292:return function(e,t,n,r,i,o){let a,s=yS(function*(e){if(C(e.properties))for(const t of e.properties)IA(t)||zN(_C(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:Bb(_C(t.name))})}(e),t,n,r,i,o);if(wA(e.parent)&&TA(e.parent.parent)){const a=e.parent.parent,l=uA(iA(e)),u=void 0===l?"children":Fc(l),_=Bb(u),d=Mv(n,_),f=lv(a.children);if(!C(f))return s;const p=C(f)>1;let m,g;if(vg(!1)!==Mn){const e=Vg(St);m=Qw(d,(t=>iS(t,e))),g=Qw(d,(t=>!iS(t,e)))}else m=Qw(d,Vk),g=Qw(d,(e=>!Vk(e)));if(p){if(m!==Qt){const e=hh(KN(a,0)),t=function*(e,t){if(!C(e.children))return;let n=0;for(let r=0;r!Vk(e))),c=s!==Qt?hL(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:u,errorMessage:_}=n.value;let d=c;const f=a!==Qt?gS(t,a,u):void 0;if(!f||8388608&f.flags||(d=c?ly([c,f]):f),!d)continue;let p=jv(t,u);if(!p)continue;const m=mv(u,void 0);if(!VS(p,d,r,void 0)&&(l=!0,!s||!mS(s,p,d,r,void 0,i,o))){const n=o||{},c=s?hS(s,p):p;if(re&&qS(c,d)){const t=qp(e,Ra.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ys(c),Ys(d));ro.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(Zd(a,m)||pt).flags),s=!!(m&&16777216&(Zd(t,m)||pt).flags);d=MT(d,o),p=MT(p,o&&s),VS(c,d,r,e,_,i,n)&&c!==p&&VS(p,d,r,e,_,i,n)}}}return l}(t,e,m,r,i,o)||s}else if(!FS(Mv(t,_),d,r)){s=!0;const e=So(a.openingElement.tagName,Ra.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,Ys(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(g!==Qt){const e=vS(f[0],_,c);e&&(s=yS(function*(){yield e}(),t,n,r,i,o)||s)}else if(!FS(Mv(t,_),d,r)){s=!0;const e=So(a.openingElement.tagName,Ra.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,Ys(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=op(e.parent.tagName),r=uA(iA(e)),i=void 0===r?"children":Fc(r),o=Mv(n,Bb(i)),s=Ra._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:OS(void 0,s,t,i,Ys(o))}}return a}}(e,t,n,r,o,a);case 219:return function(e,t,n,r,i,o){if(AN(e.body))return!1;if(le(e.parameters,H_))return!1;const a=pF(t);if(!a)return!1;const s=tf(n,0);if(!C(s))return!1;const c=e.body,l=qf(a),u=ly(q(s,qf));if(!VS(l,u,r,void 0)){const t=c&&mS(c,l,u,r,void 0,i,o);if(t)return t;const a=o||{};if(VS(l,u,r,c,void 0,i,a),a.errors)return n.symbol&&C(n.symbol.declarations)&&mT(a.errors[a.errors.length-1],qp(n.symbol.declarations[0],Ra.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&Fy(e))&&!xc(l,"then")&&VS(KI(l),u,r,void 0)&&mT(a.errors[a.errors.length-1],qp(e,Ra.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function gS(e,t,n){const r=jv(t,n);if(r)return r;if(1048576&t.flags){const r=WS(e,t);if(r)return jv(r,n)}}function hS(e,t){sN(e,t,!1);const n=OO(e,1);return lN(),n}function yS(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:u}=s;let _=gS(t,n,l);if(!_||8388608&_.flags)continue;let d=jv(t,l);if(!d)continue;const f=mv(l,void 0);if(!VS(d,_,r,void 0)&&(a=!0,!c||!mS(c,d,_,r,void 0,i,o))){const a=o||{},s=c?hS(c,d):d;if(re&&qS(s,_)){const t=qp(e,Ra.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ys(s),Ys(_));ro.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(Zd(n,f)||pt).flags),c=!!(f&&16777216&(Zd(t,f)||pt).flags);_=MT(_,o),d=MT(d,o&&c),VS(s,_,r,e,u,i,a)&&s!==d&&VS(d,_,r,e,u,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=gC(l)?hC(l):void 0,r=void 0!==t?Zd(n,t):void 0;let i=!1;if(!r){const t=xf(n,l);t&&t.declaration&&!Ff(t.declaration).hasNoDefaultLib&&(i=!0,mT(e,qp(t.declaration,Ra.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&C(r.declarations)||n.symbol&&C(n.symbol.declarations))){const i=r&&C(r.declarations)?r.declarations[0]:n.symbol.declarations[0];Ff(i).hasNoDefaultLib||mT(e,qp(i,Ra.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?Ys(l):Fc(t),Ys(n)))}}}}return a}function vS(e,t,n){switch(e.kind){case 294:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return Fn.assertNever(e,"Found invalid jsx child")}}function*bS(e,t){const n=C(e.elements);if(n)for(let r=0;rc:NI(e)>c))return!r||8&n||i(Ra.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,NI(e),c),0;var l;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=hF(e,t=(l=t).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(e){return Xf(e,q(e.typeParameters,(e=>e.target&&!wd(e.target)?e.target:e)),Pg(e.declaration))}(l)):l,void 0,a));const u=DI(e),_=FI(e),d=FI(t);(_||d)&&Mx(_||d,s);const f=t.declaration?t.declaration.kind:0,p=!(3&n)&&j&&174!==f&&173!==f&&176!==f;let m=-1;const g=Vf(e);if(g&&g!==Xt){const e=Vf(t);if(e){const t=!p&&a(g,e,!1)||a(e,g,r);if(!t)return r&&i(Ra.The_this_types_of_each_signature_are_incompatible),0;m&=t}}const h=_||d?Math.min(u,c):Math.max(u,c),y=_||d?h-1:-1;for(let c=0;c=NI(e)&&c=3&&32768&t[0].flags&&65536&t[1].flags&&le(t,ES)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function FS(e,t,n){if(Lb(e)&&(e=e.regularType),Lb(t)&&(t=t.regularType),e===t)return!0;if(n!==uo){if(n===lo&&!(131072&t.flags)&&PS(t,e,n)||PS(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(vk(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&VS(e,t,n,void 0)}function LS(e,t){return 2048&tS(e)&&zN(t.escapedName)}function BS(e,t){for(;;){const n=Lb(e)?e.regularType:tT(e)?$S(e,t):4&tS(e)?e.node?Np(e.target,Fp(e)):Bk(e)||e:3145728&e.flags?zS(e,t):33554432&e.flags?t?e.baseType:_m(e):25165824&e.flags?Pv(e,t):e;if(n===e)return n;e=n}}function zS(e,t){const n=Wd(e);if(n!==e)return n;if(2097152&e.flags&&le(e.types,ES)){const n=H(e.types,(e=>BS(e,t)));if(n!==e.types)return Ey(n)}return e}function $S(e,t){const n=Lh(e),r=H(n,(e=>25165824&e.flags?Pv(e,t):e));return n!==r?kh(e.target,r):e}function VS(e,t,n,r,o,s,c){var l;let u,_,d,f,p,m,g,h,y=0,v=0,b=0,x=0,k=!1,T=0;Fn.assert(n!==uo||!r,"no error reporting in identity checking");const w=j(e,t,3,!!r,o);if(h&&A(),k){null==(l=Br)||l.instant(Br.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:v,targetDepth:b});const n=So(r||i,Ra.Excessive_stack_depth_comparing_types_0_and_1,Ys(e),Ys(t));c&&(c.errors||(c.errors=[])).push(n)}else if(u){if(s){const e=s();e&&(jS(e,u),u=e)}let i;if(o&&r&&!w&&e.symbol){const r=zo(e.symbol);r.originatingImport&&!pm(r.originatingImport)&&VS(ql(r.target),t,n,void 0)&&(i=ke(i,qp(r.originatingImport,Ra.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)))}const a=Gp(Ff(r),r,u,i);_&&mT(a,..._),c&&(c.errors||(c.errors=[])).push(a),c&&c.skipLogging||ro.add(a)}return r&&c&&c.skipLogging&&0===w&&Fn.assert(!!c.errors,"missed opportunity to interact with error."),0!==w;function E(e){u=e.errorInfo,g=e.lastSkippedInfo,h=e.incompatibleStack,T=e.overrideNextErrorInfo,_=e.relatedInfo}function D(){return{errorInfo:u,lastSkippedInfo:g,incompatibleStack:null==h?void 0:h.slice(),overrideNextErrorInfo:T,relatedInfo:null==_?void 0:_.slice()}}function N(e,...t){T++,g=void 0,(h||(h=[])).push([e,...t])}function A(){const e=h||[];h=void 0;const t=g;if(g=void 0,1===e.length)return P(...e[0]),void(t&&O(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case Ra.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:Js(e,HS(S))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case Ra.Call_signature_return_types_0_and_1_are_incompatible.code:case Ra.Construct_signature_return_types_0_and_1_are_incompatible.code:case Ra.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case Ra.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===Ra.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=Ra.Call_signature_return_types_0_and_1_are_incompatible:t.code===Ra.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=Ra.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else n=`${t.code===Ra.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===Ra.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===Ra.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===Ra.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`;break;case Ra.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([Ra.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case Ra.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([Ra.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return Fn.fail(`Unhandled Diagnostic: ${t.code}`)}}n?P(")"===n[n.length-1]?Ra.The_types_returned_by_0_are_incompatible_between_these_types:Ra.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,P(e,...t),e.elidedInCompatabilityPyramid=n}t&&O(void 0,...t)}function P(e,...t){Fn.assert(!!r),h&&A(),e.elidedInCompatabilityPyramid||(u=RS(u,e,...t))}function I(e){Fn.assert(!!u),_?_.push(e):_=[e]}function O(e,t,r){h&&A();const[i,o]=Zs(t,r);let a=t,s=i;if(Wk(t)&&!KS(r)&&(a=Hk(t),Fn.assert(!iS(a,r),"generalized source shouldn't be assignable"),s=nc(a)),262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==Vn&&r!==Kn){const e=Od(r);let n;e&&(iS(a,e)||(n=iS(t,e)))?P(Ra._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,Ys(e)):(u=void 0,P(Ra._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&re&&US(t,r).length&&(e=Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===lo)e=Ra.Type_0_is_not_comparable_to_type_1;else if(i===o)e=Ra.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(re&&US(t,r).length)e=Ra.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Yt(e.value,n,(e=>e.value))}(t,r);if(e)return void P(Ra.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,Ys(e))}e=Ra.Type_0_is_not_assignable_to_type_1}P(e,s,o)}function M(e,t,n){return eT(e)?e.target.readonly&&Lk(t)?(n&&P(Ra.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ys(e),Ys(t)),!1):Mk(t):Ok(e)&&Lk(t)?(n&&P(Ra.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ys(e),Ys(t)),!1):!eT(t)||Ik(e)}function R(e,t,n){return j(e,t,3,n)}function j(e,t,i=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===lo&&!(131072&t.flags)&&PS(t,e,n)||PS(e,t,n,o?P:void 0)?-1:(o&&J(e,t,e,t,a),0);const c=BS(e,!1);let l=BS(t,!0);if(c===l)return-1;if(n===uo)return c.flags!==l.flags?0:67358815&c.flags?-1:(z(c,l),Y(c,l,!1,0,i));if(262144&c.flags&&Cd(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=BS(t,!0),c===l))return-1}if(n===lo&&!(131072&l.flags)&&PS(l,c,n)||PS(c,l,n,o?P:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&YC(c)&&8192&tS(c)&&function(e,t,i){var o;if(!OA(t)||!W&&4096&tS(t))return!1;const a=!!(2048&tS(e));if((n===co||n===lo)&&(Hw(Gn,t)||!a&&wS(t)))return!1;let s,c=t;1048576&t.flags&&(c=AB(e,t,j)||function(e){if(fO(e,67108864)){const t=Qw(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of Td(e))if(V(t,e.symbol)&&!LS(e,t)){if(!AA(c,t.escapedName,a)){if(i){const n=Qw(c,OA);if(!r)return Fn.fail();if(FA(r)||J_(r)||J_(r.parent)){t.valueDeclaration&&PA(t.valueDeclaration)&&Ff(r)===Ff(t.valueDeclaration.name)&&(r=t.valueDeclaration.name);const e=Hs(t),i=zP(e,n),o=i?Hs(i):void 0;o?P(Ra.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Ys(n),o):P(Ra.Property_0_does_not_exist_on_type_1,e,Ys(n))}else{const i=(null==(o=e.symbol)?void 0:o.declarations)&&Oe(e.symbol.declarations);let a;if(t.valueDeclaration&&Dc(t.valueDeclaration,(e=>e===i))&&Ff(i)===Ff(r)){const e=t.valueDeclaration;Fn.assertNode(e,Bu);const i=e.name;r=i,qE(i)&&(a=$P(i,n))}void 0!==a?P(Ra.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Hs(t),Ys(n),a):P(Ra.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Hs(t),Ys(n))}}return!0}if(s&&!j(ql(t),$(s,t.escapedName),3,i))return i&&N(Ra.Types_of_property_0_are_incompatible,Hs(t)),!0}return!1}(c,l,o))return o&&O(a,c,t.aliasSymbol?t:l),0;const u=(n!==lo||Uk(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&tk(l)&&(Td(c).length>0||UR(c)),_=!!(2048&tS(c));if(u&&!function(e,t,n){for(const r of Td(e))if(AA(t,r.escapedName,n))return!0;return!1}(c,l,_)){if(o){const n=Ys(e.aliasSymbol?e:c),r=Ys(t.aliasSymbol?t:l),i=tf(c,0),o=tf(c,1);i.length>0&&j(qf(i[0]),l,1,!1)||o.length>0&&j(qf(o[0]),l,1,!1)?P(Ra.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):P(Ra.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}z(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?K(c,l,o,s):Y(c,l,o,s,i);if(d)return d}return o&&J(e,t,c,l,a),0}function J(e,t,n,i,o){var a,s;const c=!!Bk(e),l=!!Bk(t);n=e.aliasSymbol||c?e:n,i=t.aliasSymbol||l?t:i;let _=T>0;if(_&&T--,524288&n.flags&&524288&i.flags){const e=u;M(n,i,!0),u!==e&&(_=!!u)}if(524288&n.flags&&402784252&i.flags)!function(e,t){const n=rc(e.symbol)?Ys(e,e.symbol.valueDeclaration):Ys(e),r=rc(t.symbol)?Ys(t,t.symbol.valueDeclaration):Ys(t);(tr===e&&Jt===t||nr===e&&zt===t||rr===e&&Ht===t||Gm()===e&&Gt===t)&&P(Ra._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,i);else if(n.symbol&&524288&n.flags&&Gn===n)P(Ra.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&tS(n)&&2097152&i.flags){const e=i.types,t=qN(gB.IntrinsicAttributes,r),n=qN(gB.IntrinsicClassAttributes,r);if(!wc(t)&&!wc(n)&&(B(e,t)||B(e,n)))return}else u=Qd(u,t);if(o||!_){if(O(o,n,i),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!Cd(n)){const e=Cx(n);if(e.constraint=Mx(i,hx(n,e)),Ld(e)){const e=Ys(i,n.symbol.declarations[0]);I(qp(n.symbol.declarations[0],Ra.This_type_parameter_might_need_an_extends_0_constraint,e))}}}else g=[n,i]}function z(e,t){if(Br&&3145728&e.flags&&3145728&t.flags){const n=e,i=t;if(n.objectFlags&i.objectFlags&32768)return;const o=n.types.length,a=i.types.length;o*a>1e6&&Br.instant(Br.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==r?void 0:r.pos,end:null==r?void 0:r.end})}}function $(e,t){return ly(qe(e,((e,n)=>{var r;const i=3145728&(n=$d(n)).flags?qd(n,t):Sd(n,t);return ke(e,i&&ql(i)||(null==(r=Sf(n,t))?void 0:r.type)||Pt)}),void 0)||a)}function V(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function K(e,t,r,i){if(1048576&e.flags)return n===lo?X(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?rE(t,-32769):t}(e,t);for(let e=0;e=a.types.length&&o.length%a.types.length==0){const t=j(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=j(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i);if(1048576&t.flags)return G(zT(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags));if(2097152&t.flags)return function(e,t,n,r){let i=-1;const o=t.types;for(const t of o){const r=j(e,t,2,n,void 0,2);if(!r)return 0;i&=r}return i}(e,t,r);if(n===lo&&402784252&t.flags){const n=H(e.types,(e=>465829888&e.flags?Od(e)||Nt:e));if(n!==e.types){if(131072&(e=Ey(n)).flags)return 0;if(!(2097152&e.flags))return j(e,t,1,!1)||j(t,e,1,!1)}}return X(e,t,!1,1)}function U(e,t){let n=-1;const r=e.types;for(const e of r){const r=G(e,t,!1);if(!r)return 0;n&=r}return n}function G(e,t,r){const i=t.types;if(1048576&t.flags){if(jh(i,e))return-1;if(n!==lo&&32768&tS(t)&&!(1024&e.flags)&&(2688&e.flags||(n===ao||n===so)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?Jt:256&e.flags?zt:2048&e.flags?$t:void 0;return n&&jh(i,n)||t&&jh(i,t)?-1:0}const r=xw(t,e);if(r){const t=j(e,r,2,!1);if(t)return t}}for(const t of i){const n=j(e,t,2,!1);if(n)return n}if(r){const n=WS(e,t,j);n&&j(e,n,2,!0)}return 0}function X(e,t,n,r){const i=e.types;if(1048576&e.flags&&jh(i,t))return-1;const o=i.length;for(let e=0;e(w|=e?16:8,T(e))),3===x?(null==(s=Br)||s.instant(Br.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:p.map((e=>e.id)),targetId:t.id,targetIdStack:m.map((e=>e.id)),depth:v,targetDepth:b}),C=3):(null==(c=Br)||c.push(Br.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),C=function(e,t,r,i){const o=D();let s=function(e,t,r,i,o){let s,c,l=!1,_=e.flags;const d=t.flags;if(n===uo){if(3145728&_){let n=U(e,t);return n&&(n&=U(t,e)),n}if(4194304&_)return j(e.type,t.type,3,!1);if(8388608&_&&(s=j(e.objectType,t.objectType,3,!1))&&(s&=j(e.indexType,t.indexType,3,!1)))return s;if(16777216&_&&e.root.isDistributive===t.root.isDistributive&&(s=j(e.checkType,t.checkType,3,!1))&&(s&=j(e.extendsType,t.extendsType,3,!1))&&(s&=j(qv(e),qv(t),3,!1))&&(s&=j(Gv(e),Gv(t),3,!1)))return s;if(33554432&_&&(s=j(e.baseType,t.baseType,3,!1))&&(s&=j(e.constraint,t.constraint,3,!1)))return s;if(!(524288&_))return 0}else if(3145728&_||3145728&d){if(s=K(e,t,r,i))return s;if(!(465829888&_||524288&_&&1048576&d||2097152&_&&467402752&d))return 0}if(17301504&_&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!lk(e)&&!lk(t)){const n=rk(e.aliasSymbol);if(n===a)return 1;const r=zo(e.aliasSymbol).typeParameters,o=Nf(r),s=y(Af(e.aliasTypeArguments,r,o,Pg(e.aliasSymbol.valueDeclaration)),Af(t.aliasTypeArguments,r,o,Pg(e.aliasSymbol.valueDeclaration)),n,i);if(void 0!==s)return s}if(rT(e)&&!e.target.readonly&&(s=j(Fp(e)[0],t,1))||rT(t)&&(t.target.readonly||Lk(Od(e)||e))&&(s=j(e,Fp(t)[0],2)))return s;if(262144&d){if(32&tS(e)&&!e.declaration.nameType&&j(iv(t),ld(e),3)&&!(4&md(e))){const n=_d(e),i=Mv(t,cd(e));if(s=j(n,i,3,r))return s}if(n===lo&&262144&_){let n=wd(e);if(n&&Ld(e))for(;n&&Xw(n,(e=>!!(262144&e.flags)));){if(s=j(n,t,1,!1))return s;n=wd(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&_&&(s=j(n,e.type,3,!1)))return s;if(eT(n)){if(s=j(e,Ah(n),2,r))return s}else{const i=Dd(n);if(i){if(-1===j(e,iv(i,4|t.indexFlags),2,r))return-1}else if(yd(n)){const t=ud(n),i=ld(n);let o;if(t&&fd(n)){const e=$d(pd(n)),r=[];Z_(e,8576,!1,(e=>{r.push(Mx(t,Tx(n.mapper,cd(n),e)))})),o=ly([...r,t])}else o=t||i;if(-1===j(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&_){if((s=j(e.objectType,t.objectType,3,r))&&(s&=j(e.indexType,t.indexType,3,r)),s)return s;r&&(c=u)}if(n===co||n===lo){const n=t.objectType,a=t.indexType,l=Od(n)||n,_=Od(a)||a;if(!Dv(l)&&!Nv(_)){const t=jv(l,_,4|(l!==n?2:0));if(t){if(r&&c&&E(o),s=j(e,t,2,r,void 0,i))return s;r&&c&&u&&(u=h([c])<=h([u])?c:u)}}}r&&(c=void 0)}else if(yd(t)&&n!==uo){const n=!!t.declaration.nameType,i=_d(t),a=md(t);if(!(8&a)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===cd(t))return-1;if(!yd(e)){const i=n?ud(t):ld(t),l=iv(e,2),_=4&a,d=_?M_(i,l):void 0;if(_?!(131072&d.flags):j(i,l,3)){const o=_d(t),a=cd(t),c=rE(o,-98305);if(!n&&8388608&c.flags&&c.indexType===a){if(s=j(e,c.objectType,2,r))return s}else{const t=Mv(e,n?d||i:d?Ey([d,a]):a);if(s=j(t,o,3,r))return s}}c=u,E(o)}}}else if(16777216&d){if(Ek(t,m,b,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(f=n.root,f.isDistributive&&(Dx(f.checkType,f.node.trueType)||Dx(f.checkType,f.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!iS(Rx(n.checkType),Rx(n.extendsType)),r=!t&&iS(jx(n.checkType),jx(n.extendsType));if((s=t?-1:j(e,qv(n),2,!1,void 0,i))&&(s&=r?-1:j(e,Gv(n),2,!1,void 0,i),s))return s}}else if(134217728&d){if(134217728&_){if(n===lo)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;Mx(e,wn)}if(UC(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&VC(e,t))return-1;var f,g;if(8650752&_){if(!(8388608&_&&8388608&d)){const n=Cd(e)||Nt;if(s=j(n,t,1,!1,void 0,i))return s;if(s=j(f_(n,e),t,1,r&&n!==Nt&&!(d&_&262144),void 0,i))return s;if(zd(e)){const n=Cd(e.indexType);if(n&&(s=j(Mv(e.objectType,n),t,1,r)))return s}}}else if(4194304&_){if(s=j(un,t,1,r))return s}else if(134217728&_&&!(524288&d)){if(!(134217728&d)){const n=Od(e);if(n&&n!==e&&(s=j(n,t,1,r)))return s}}else if(268435456&_)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(s=j(e.type,t.type,3,r))return s}else{const n=Od(e);if(n&&(s=j(n,t,1,r)))return s}else if(16777216&_){if(Ek(e,p,v,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=kC(n,void 0,0,R);HC(e.inferences,t.extendsType,o,1536),o=Mx(o,e.mapper),i=e.mapper}if(Gx(o,t.extendsType)&&(j(e.checkType,t.checkType,3)||j(t.checkType,e.checkType,3))&&((s=j(Mx(qv(e),i),qv(t),3,r))&&(s&=j(Gv(e),Gv(t),3,r)),s))return s}else{const n=Ld(e)?Ad(e):void 0;if(n&&(s=j(n,t,1,r)))return s}const n=Nd(e);if(n&&(s=j(n,t,1,r)))return s}else{if(n!==ao&&n!==so&&32&tS(g=t)&&4&md(g)&&wS(e))return-1;if(yd(t))return yd(e)&&(s=function(e,t,r){if(n===lo||(n===uo?md(e)===md(t):hd(e)<=hd(t))){let n;if(n=j(ld(t),Mx(ld(e),hd(e)<0?En:wn),3,r)){const i=mx([cd(e)],[cd(t)]);if(Mx(ud(e),i)===Mx(ud(t),i))return n&j(Mx(_d(e),i),_d(t),3,r)}}return 0}(e,t,r))?s:0;const f=!!(402784252&_);if(n!==uo)_=(e=$d(e)).flags;else if(yd(e))return 0;if(4&tS(e)&&4&tS(t)&&e.target===t.target&&!eT(e)&&!lk(e)&&!lk(t)){if(zk(e))return-1;const n=nk(e.target);if(n===a)return 1;const r=y(Fp(e),Fp(t),n,i);if(void 0!==r)return r}else{if(Ok(t)?Yw(e,Mk):Ik(t)&&Yw(e,(e=>eT(e)&&!e.target.readonly)))return n!==uo?j(pf(e,zt)||St,pf(t,zt)||St,3,r):0;if(tT(e)&&eT(t)&&!tT(t)){const n=Md(e);if(n!==e)return j(n,t,1,r)}else if((n===ao||n===so)&&wS(t)&&8192&tS(t)&&!wS(e))return 0}if(2621440&_&&524288&d){const n=r&&u===o.errorInfo&&!f;if(s=ee(e,t,n,void 0,!1,i),s&&(s&=te(e,t,0,n,i),s&&(s&=te(e,t,1,n,i),s&&(s&=se(e,t,f,n,i)))),l&&s)u=c||u||o.errorInfo;else if(s)return s}if(2621440&_&&1048576&d){const r=rE(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=yw(Td(e),t);if(!i)return 0;let o=1;for(const n of i)if(o*=eE(Hl(n)),o>25)return null==(r=Br)||r.instant(Br.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:o}),0;const a=new Array(i.length),s=new Set;for(let e=0;er[o]),!1,0,F||n===lo))continue e}Ee(l,a,Mt),o=!0}if(!o)return 0}let u=-1;for(const t of l)if(u&=ee(e,t,!1,s,!1,0),u&&(u&=te(e,t,0,!1,0),u&&(u&=te(e,t,1,!1,0),!u||eT(e)&&eT(t)||(u&=se(e,t,!1,!1,0)))),!u)return u;return u}(e,r);if(t)return t}}}return 0;function h(e){return e?qe(e,((e,t)=>e+1+h(t.next)),0):0}function y(e,t,i,_){if(s=function(e=a,t=a,r=a,i,o){if(e.length!==t.length&&n===uo)return 0;const s=e.length<=t.length?e.length:t.length;let c=-1;for(let a=0;a!!(24&e))))return c=void 0,void E(o);const d=t&&function(e,t){for(let n=0;n0==(7&e)))))return 0;c=u,E(o)}}}(e,t,r,i,o);if(n!==uo){if(!s&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=Cd(i);for(;e&&21233664&e.flags;)e=Cd(e);e&&(n=ke(n,e),t&&(n=ke(n,i)))}else(469892092&i.flags||ES(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||ES(t))&&(n=ke(n,t));return BS(Ey(n),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&Yw(n,(t=>t!==e))&&(s=j(n,t,1,!1,void 0,i))}s&&!(2&i)&&2097152&t.flags&&!Dv(t)&&2621440&e.flags?(s&=ee(e,t,r,void 0,!1,0),s&&YC(e)&&8192&tS(e)&&(s&=se(e,t,!1,r,0))):s&&fb(t)&&!Mk(t)&&2097152&e.flags&&3670016&$d(e).flags&&!le(e.types,(e=>e===t||!!(262144&tS(e))))&&(s&=ee(e,t,r,void 0,!0,i))}return s&&E(o),s}(e,t,r,i),null==(l=Br)||l.pop()),Wt&&(Wt=T),1&o&&v--,2&o&&b--,x=S,C?(-1===C||0===v&&0===b)&&N(-1===C||3===C):(n.set(_,2|(r?4:0)|w),N(!1)),C;function N(e){for(let t=h;t{return!!(16&Vx(t))&&(n=e,r=xk(t),!bk(n,(e=>{const t=xk(e);return!!t&&Yl(t,r)})));var n,r}))}(r,i))return a&&P(Ra.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Hs(i),Ys(xk(r)||e),Ys(xk(i)||t)),0}else if(16&l)return a&&P(Ra.Property_0_is_protected_in_type_1_but_public_in_type_2,Hs(i),Ys(e),Ys(t)),0;if(n===so&&sO(r)&&!sO(i))return 0;const _=function(e,t,n,r,i){const o=F&&!!(48&$x(t)),a=Zc(Hl(t),!1,o);return j(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return _?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&P(Ra.Property_0_is_optional_in_type_1_but_required_in_type_2,Hs(i),Ys(e),Ys(t)),0):_:(a&&N(Ra.Types_of_property_0_are_incompatible,Hs(i)),0)}function ee(e,t,r,i,a,s){if(n===uo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=Q(xd(e),n),i=Q(xd(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=Sd(t,e.escapedName);if(!n)return 0;const r=Nk(e,n,j);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(eT(t)){if(Mk(e)){if(!t.target.readonly&&(Ok(e)||eT(e)&&e.target.readonly))return 0;const n=Ip(e),o=Ip(t),a=eT(e)?4&e.target.combinedFlags:4,l=4&t.target.combinedFlags,u=eT(e)?e.target.minLength:0,_=t.target.minLength;if(!a&&n<_)return r&&P(Ra.Source_has_0_element_s_but_target_requires_1,n,_),0;if(!l&&o!(11&e)));return n>=0?n:e.elementFlags.length}(t.target),m=Fh(t.target,11),g=t.target.hasRestElement;let h=!!i;for(let a=0;a=p?o-1-Math.min(u,m):a,y=t.target.elementFlags[_];if(8&y&&!(8&l))return r&&P(Ra.Source_provides_no_match_for_variadic_element_at_position_0_in_target,_),0;if(8&l&&!(12&y))return r&&P(Ra.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,_),0;if(1&y&&!(1&l))return r&&P(Ra.Source_provides_no_match_for_required_element_at_position_0_in_target,_),0;if(h&&((12&l||12&y)&&(h=!1),h&&(null==i?void 0:i.has(""+a))))continue;const v=MT(d[a],!!(l&y&2)),b=f[_],x=j(v,8&l&&4&y?Qg(b):MT(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(g&&a>=p&&u>=m&&p!==n-m-1?N(Ra.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,p,n-m-1,_):N(Ra.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,_)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const l=!(n!==ao&&n!==so||YC(e)||zk(e)||eT(e)),_=jC(e,t,l,!1);if(_)return r&&function(e,t){const n=ef(e,0),r=ef(e,1),i=xd(e);return!((n.length||r.length)&&!i.length)||!!(tf(t,0).length&&n.length||tf(t,1).length&&r.length)}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&Jc(n.valueDeclaration)&&WE(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Vy(e.symbol,r);if(i&&Zd(e,i)){const n=FC.getDeclarationName(e.symbol.valueDeclaration),i=FC.getDeclarationName(t.symbol.valueDeclaration);return void P(Ra.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,ra(r),ra(""===n.escapedText?iB:n),ra(""===i.escapedText?iB:i))}}const a=Ze(RC(e,t,r,!1));if((!o||o.code!==Ra.Class_0_incorrectly_implements_interface_1.code&&o.code!==Ra.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===a.length){const r=Hs(n,void 0,0,20);P(Ra.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...Zs(e,t)),C(n.declarations)&&I(qp(n.declarations[0],Ra._0_is_declared_here,r)),i&&u&&T++}else M(e,t,!1)&&(a.length>5?P(Ra.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ys(e),Ys(t),q(a.slice(0,4),(e=>Hs(e))).join(", "),a.length-4):P(Ra.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ys(e),Ys(t),q(a,(e=>Hs(e))).join(", ")),i&&u&&T++)}(e,t,_,l),0;if(YC(t))for(const n of Q(Td(e),i))if(!(Sd(t,n.escapedName)||32768&ql(n).flags))return r&&P(Ra.Property_0_does_not_exist_on_type_1,Hs(n),Ys(t)),0;const d=Td(t),f=eT(e)&&eT(t);for(const o of Q(d,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||HT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=Zd(e,i);if(a&&a!==o){const i=Z(e,t,a,o,Hl,r,s,n===lo);if(!i)return 0;c&=i}}}return c}function te(e,t,r,i,o){var a,s;if(n===uo)return function(e,t,n){const r=tf(e,n),i=tf(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;eXs(e,void 0,262144,r);return P(Ra.Type_0_is_not_assignable_to_type_1,e(t),e(c)),P(Ra.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of _){const n=D();let a=i;for(const e of u){const r=oe(e,t,!0,a,o,f(e,t));if(r){d&=r,E(n);continue e}a=!1}return a&&P(Ra.Type_0_provides_no_match_for_the_signature_1,Ys(e),Xs(t,void 0,void 0,r)),0}return d}function ne(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>N(Ra.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ys(e),Ys(t)):(e,t)=>N(Ra.Call_signature_return_types_0_and_1_are_incompatible,Ys(e),Ys(t))}function ie(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>N(Ra.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ys(e),Ys(t)):(e,t)=>N(Ra.Construct_signature_return_types_0_and_1_are_incompatible,Ys(e),Ys(t))}function oe(e,t,r,i,o,a){const s=n===ao?16:n===so?24:0;return kS(r?Zf(e):e,r?Zf(t):t,s,i,P,a,(function(e,t,n){return j(e,t,3,n,void 0,o)}),wn)}function ae(e,t,n,r){const i=j(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?P(Ra._0_index_signatures_are_incompatible,Ys(e.keyType)):P(Ra._0_and_1_index_signatures_are_incompatible,Ys(e.keyType),Ys(t.keyType))),i}function se(e,t,r,i,o){if(n===uo)return function(e,t){const n=df(e),r=df(t);if(n.length!==r.length)return 0;for(const t of r){const n=ff(e,t.keyType);if(!n||!j(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=df(t),s=le(a,(e=>e.keyType===Jt));let c=-1;for(const t of a){const a=n!==so&&!r&&s&&1&t.type.flags?-1:yd(e)&&s?j(_d(e),t.type,3,i):ce(e,t,i,o);if(!a)return 0;c&=a}return c}function ce(e,t,r,i){const o=xf(e,t.keyType);return o?ae(o,t,r,i):1&i||!(n!==so||8192&tS(e))||!jT(e)?(r&&P(Ra.Index_signature_for_type_0_is_missing_in_type_1,Ys(t.keyType),Ys(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?kd(e):xd(e);for(const s of a)if(!LS(e,s)&&uf(Hy(s,8576),o)){const e=Hl(s),a=j(re||32768&e.flags||o===zt||!(16777216&s.flags)?e:Ew(e,524288),t.type,3,n,void 0,r);if(!a)return n&&P(Ra.Property_0_is_incompatible_with_index_signature,Hs(s)),0;i&=a}for(const a of df(e))if(uf(a.keyType,o)){const e=ae(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function KS(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!w(e.types,KS);if(465829888&e.flags){const t=Cd(e);if(t&&t!==e)return KS(t)}return Uk(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function US(e,t){return eT(e)&&eT(t)?a:Td(t).filter((t=>qS(xc(e,t.escapedName),ql(t))))}function qS(e,t){return!!e&&!!t&&fO(e,32768)&&!!LT(t)}function WS(e,t,n=Yx){return AB(e,t,n)||function(e,t){const n=tS(e);if(20&n&&1048576&t.flags)return O(t.types,(t=>{if(524288&t.flags){const r=n&tS(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&tS(e)&&Xw(t,jk))return O(t.types,(e=>!jk(e)))}(e,t)||function(e,t){let n=0;if(tf(e,n).length>0||(n=1,tf(e,n).length>0))return O(t.types,(e=>tf(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=Ey([iv(e),iv(i)]);if(4194304&t.flags)return i;if(Uk(t)||1048576&t.flags){const e=1048576&t.flags?$(t.types,Uk):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function QS(e,t,n){const r=e.types,i=r.map((e=>402784252&e.flags?0:-1));for(const[e,o]of t){let t=!1;for(let a=0;ai[t])),0):e;return 131072&o.flags?e:o}function tk(e){if(524288&e.flags){const t=bd(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&I(t.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&e.flags)&&I(e.types,tk)}function nk(e){return e===Zn||e===er||8&e.objectFlags?x:ik(e.symbol,e.typeParameters)}function rk(e){return ik(e,zo(e).typeParameters)}function ik(e,t=a){var n,r;const i=zo(e);if(!i.variances){null==(n=Br)||n.push(Br.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:Rh(ju(e))});const o=Ri;Ri||(Ri=!0,Li=Ii.length),i.variances=a;const s=[];for(const n of t){const t=uk(n);let r=65536&t?32768&t?0:1:32768&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=Wt;Wt=e=>e?i=!0:t=!0;const a=sk(e,n,Jn),s=sk(e,n,zn);r=(iS(s,a)?1:0)|(iS(a,s)?2:0),3===r&&iS(sk(e,n,$n),a)&&(r=4),Wt=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}o||(Ri=!1,Li=0),i.variances=s,null==(r=Br)||r.pop({variances:s.map(Fn.formatVariance)})}return i.variances}function sk(e,t,n){const r=hx(t,n),i=ju(e);if(wc(i))return i;const o=524288&e.flags?Vp(e,dx(zo(e).typeParameters,r)):Np(i,dx(i.typeParameters,r));return ft.add(Rh(o)),o}function lk(e){return ft.has(Rh(e))}function uk(e){var t;return 100352&qe(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|Pb(t)),0)}function pk(e){return 262144&e.flags&&!wd(e)}function gk(e){return function(e){return!!(4&tS(e))&&!e.node}(e)&&le(Fp(e),(e=>!!(262144&e.flags)||gk(e)))}function vk(e,t,n,r,i){if(r===uo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return gk(e)&&gk(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of Fp(e)){if(262144&a.flags){if(r||pk(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&gk(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function bk(e,t){if(!(6&$x(e)))return t(e);for(const n of e.links.containingType.types){const r=Zd(n,e.escapedName),i=r&&bk(r,t);if(i)return i}}function xk(e){return e.parent&&32&e.parent.flags?ju(us(e)):void 0}function Sk(e){const t=xk(e),n=t&&gu(t)[0];return n&&xc(n,e.escapedName)}function wk(e,t,n){return bk(t,(t=>!!(16&Vx(t,n))&&!Yl(e,xk(t))))?void 0:e}function Ek(e,t,n,r=3){if(n>=r){if(2097152&e.flags)return le(e.types,(e=>Ek(e,t,n,r)));const i=Dk(e);let o=0,a=0;for(let e=0;eDk(e)===i)):Dk(n)===i){if(n.id>=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function Dk(e){if(524288&e.flags&&!ZC(e)){if(4&tS(e)&&e.node)return e.node;if(e.symbol&&!(16&tS(e)&&32&e.symbol.flags))return e.symbol;if(eT(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function Nk(e,t,n){if(e===t)return-1;const r=24&Vx(e);if(r!==(24&Vx(t)))return 0;if(r){if(ZL(e)!==ZL(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return sO(e)!==sO(t)?0:n(ql(e),ql(t))}function Ak(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=DI(e),i=DI(t),o=NI(e),a=NI(t),s=AI(e),c=AI(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(C(e.typeParameters)!==C(t.typeParameters))return 0;if(t.typeParameters){const n=mx(e.typeParameters,t.typeParameters);for(let r=0;re|(1048576&t.flags?Pk(t.types):t.flags)),0)}function Fk(e){if(1===e.length)return e[0];const t=F?H(e,(e=>Qw(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=Hk(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?ly(t):qe(t,((e,t)=>Zx(e,t)?t:e));return t===e?n:fT(n,98304&Pk(e))}function Ik(e){return!!(4&tS(e))&&(e.target===Zn||e.target===er)}function Ok(e){return!!(4&tS(e))&&e.target===er}function Mk(e){return Ik(e)||eT(e)}function Lk(e){return Ik(e)&&!Ok(e)||eT(e)&&!e.target.readonly}function Rk(e){return Ik(e)?Fp(e)[0]:void 0}function jk(e){return Ik(e)||!(98304&e.flags)&&iS(e,cr)}function Bk(e){if(!(4&tS(e)&&3&tS(e.target)))return;if(33554432&tS(e))return 67108864&tS(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&tS(t)){const e=su(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=gu(t);if(1!==n.length)return;if(c_(e.symbol).size)return;let r=C(t.typeParameters)?Mx(n[0],mx(t.typeParameters,Fp(e).slice(0,t.typeParameters.length))):n[0];return C(Fp(e))>C(t.typeParameters)&&(r=f_(r,Be(Fp(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function Jk(e){return F?e===tn:e===Ft}function zk(e){const t=Rk(e);return!!t&&Jk(t)}function $k(e){let t;return eT(e)||!!Zd(e,"0")||jk(e)&&!!(t=xc(e,"length"))&&Yw(t,(e=>!!(256&e.flags)))}function Vk(e){return jk(e)||$k(e)}function Kk(e){return!(240544&e.flags)}function Uk(e){return!!(109472&e.flags)}function qk(e){const t=Md(e);return 2097152&t.flags?le(t.types,Uk):Uk(t)}function Wk(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||I(e.types,Uk):Uk(e))}function Hk(e){return 1056&e.flags?Du(e):402653312&e.flags?Jt:256&e.flags?zt:2048&e.flags?$t:512&e.flags?Ht:1048576&e.flags?function(e){const t=`B${Rh(e)}`;return mo(t)??go(t,tE(e,Hk))}(e):e}function Gk(e){return 402653312&e.flags?Jt:288&e.flags?zt:2048&e.flags?$t:512&e.flags?Ht:1048576&e.flags?tE(e,Gk):e}function Xk(e){return 1056&e.flags&&Lb(e)?Du(e):128&e.flags&&Lb(e)?Jt:256&e.flags&&Lb(e)?zt:2048&e.flags&&Lb(e)?$t:512&e.flags&&Lb(e)?Ht:1048576&e.flags?tE(e,Xk):e}function Yk(e){return 8192&e.flags?Gt:1048576&e.flags?tE(e,Yk):e}function Qk(e,t){return FO(e,t)||(e=Yk(Xk(e))),Mb(e)}function Zk(e,t,n,r){return e&&Uk(e)&&(e=Qk(e,t?RL(n,t,r):void 0)),e}function eT(e){return!!(4&tS(e)&&8&e.target.objectFlags)}function tT(e){return eT(e)&&!!(8&e.target.combinedFlags)}function rT(e){return tT(e)&&1===e.target.elementFlags.length}function iT(e){return aT(e,e.target.fixedLength)}function oT(e,t,n){return tE(e,(e=>{const r=e,i=iT(r);return i?n&&t>=Mh(r.target)?ly([i,n]):i:Pt}))}function aT(e,t,n=0,r=!1,i=!1){const o=Ip(e)-n;if(t!!(4194304&ww(e))))}function uT(e){return 4&e.flags?Ai:8&e.flags?Pi:64&e.flags?Fi:e===Kt||e===Vt||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&sT(e)?e:Qt}function fT(e,t){const n=t&~e.flags&98304;return 0===n?e:ly(32768===n?[e,Pt]:65536===n?[e,Rt]:[e,Pt,Rt])}function pT(e,t=!1){Fn.assert(F);const n=t?Ot:Pt;return e===n||1048576&e.flags&&e.types[0]===n?e:ly([e,n])}function bT(e){return F?Dw(e,2097152):e}function kT(e){return F?ly([e,Lt]):e}function NT(e){return F?Zw(e,Lt):e}function AT(e,t,n){return n?jl(t)?pT(e):kT(e):e}function FT(e,t){return Rl(t)?bT(e):Ml(t)?NT(e):e}function MT(e,t){return re&&t?Zw(e,It):e}function LT(e){return e===It||!!(1048576&e.flags)&&e.types[0]===It}function RT(e){return re?Zw(e,It):Ew(e,524288)}function jT(e){const t=tS(e);return 2097152&e.flags?I(e.types,jT):!(!e.symbol||0==(7040&e.symbol.flags)||32&e.symbol.flags||UR(e))||!!(4194304&t)||!!(1024&t&&jT(e.source))}function JT(e,t){const n=Ao(e.flags,e.escapedName,8&$x(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=zo(e).nameType;return r&&(n.links.nameType=r),n}function zT(e){if(!(YC(e)&&8192&tS(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=cf();for(const r of xd(e)){const e=ql(r),i=t(e);n.set(r.escapedName,i===e?r:JT(r,i))}return n}(e,zT),i=Ps(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function KT(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function WT(e){if(!e.siblings){const t=[];for(const n of WT(e.parent))if(YC(n)){const r=Sd(n,e.propertyName);r&&Gw(ql(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function YT(e){if(!e.resolvedProperties){const t=new Map;for(const n of WT(e))if(YC(n)&&!(2097152&tS(n)))for(const e of Td(n))t.set(e.escapedName,e);e.resolvedProperties=Ze(t.values())}return e.resolvedProperties}function QT(e,t){if(!(4&e.flags))return e;const n=ql(e),r=pC(n,t&&KT(t,e.escapedName,void 0));return r===n?e:JT(e,r)}function rC(e){const t=dt.get(e.escapedName);if(t)return t;const n=JT(e,Ot);return n.flags|=16777216,dt.set(e.escapedName,n),n}function dC(e){return pC(e,void 0)}function pC(e,t){if(196608&tS(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=St;else if(YC(e))n=function(e,t){const n=cf();for(const r of xd(e))n.set(r.escapedName,QT(r,t));if(t)for(const e of YT(t))n.has(e.escapedName)||n.set(e.escapedName,rC(e));const r=Ps(e.symbol,n,a,a,H(df(e),(e=>ip(e.keyType,dC(e.type),e.isReadonly))));return r.objectFlags|=266240&tS(e),r}(e,t);else if(1048576&e.flags){const r=t||KT(void 0,void 0,e.types),i=H(e.types,(e=>98304&e.flags?e:pC(e,r)));n=ly(i,le(i,wS)?2:1)}else 2097152&e.flags?n=Ey(H(e.types,dC)):Mk(e)&&(n=Np(e.target,H(Fp(e),dC)));return n&&void 0===t&&(e.widened=n),n||e}return e}function yC(e){let t=!1;if(65536&tS(e)){if(1048576&e.flags)if(le(e.types,wS))t=!0;else for(const n of e.types)yC(n)&&(t=!0);if(Mk(e))for(const n of Fp(e))yC(n)&&(t=!0);if(YC(e))for(const n of xd(e)){const e=ql(n);65536&tS(e)&&(yC(e)||So(n.valueDeclaration,Ra.Object_literal_s_property_0_implicitly_has_an_1_type,Hs(n),Ys(dC(e))),t=!0)}}return t}function vC(e,t,n){const r=Ys(dC(t));if(Pg(e)&&!dT(Ff(e),S))return;let i;switch(e.kind){case 226:case 172:case 171:i=W?Ra.Member_0_implicitly_has_an_1_type:Ra.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(qE(t.name)){const n=Oc(t.name);if((bD(t.parent)||pD(t.parent)||CD(t.parent))&&t.parent.parameters.indexOf(t)>-1&&(Ho(t,t.name.escapedText,788968,void 0,t.name.escapedText,!0)||n&&cS(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Jp(t.name)+(t.dotDotDotToken?"[]":"");return void To(W,e,Ra.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?W?Ra.Rest_parameter_0_implicitly_has_an_any_type:Ra.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:W?Ra.Parameter_0_implicitly_has_an_1_type:Ra.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(i=Ra.Binding_element_0_implicitly_has_an_1_type,!W)return;break;case 324:return void So(e,Ra.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 330:return void(W&&bP(e.parent)&&So(e.parent.tagName,Ra.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(W&&!e.name)return void So(e,3===n?Ra.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Ra.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=W?3===n?Ra._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Ra._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Ra._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void(W&&So(e,Ra.Mapped_object_type_implicitly_has_an_any_template_type));default:i=W?Ra.Variable_0_implicitly_has_an_1_type:Ra.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}To(W,e,i,Jp($c(e)),r)}function bC(e,t,n){c((()=>{!(W&&65536&tS(t))||n&&SN(e)||yC(t)||vC(e,t,n)}))}function xC(e,t,n){const r=DI(e),i=DI(t),o=PI(e),a=PI(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=Vf(e);if(l){const e=Vf(t);e&&n(l,e)}for(let r=0;re.typeParameter)),q(e.inferences,((t,n)=>()=>(t.isFixed||(function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?ND(t,2):qD(t,2);r&&HC(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),CC(e.inferences),t.isFixed=!0),ew(e,n)))))}(i),i.nonFixingMapper=function(e){return vx(q(e.inferences,(e=>e.typeParameter)),q(e.inferences,((t,n)=>()=>ew(e,n))))}(i),i}function CC(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function wC(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function EC(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function DC(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function NC(e){return e&&e.mapper}function AC(e){const t=tS(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!PC(e)&&(4&t&&(e.node||le(Fp(e),AC))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||137363456&e.flags&&!(1024&e.flags)&&!PC(e)&&le(e.types,AC));return 138117121&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function PC(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=af(e.aliasSymbol,265);return!(!t||!Dc(t.parent,(e=>312===e.kind||267!==e.kind&&"quit")))}return!1}function IC(e,t,n=0){return!!(e===t||3145728&e.flags&&le(e.types,(e=>IC(e,t,n)))||n<3&&16777216&e.flags&&(IC(qv(e),t,n+1)||IC(Gv(e),t,n+1)))}function OC(e,t,n){const r=e.id+","+t.id+","+n.id;if(mi.has(r))return mi.get(r);const i=e.id+","+(t.target||t).id;if(B(gi,i))return;gi.push(i);const o=function(e,t,n){if(!(ff(e,Jt)||0!==Td(e).length&&MC(e)))return;if(Ik(e))return Qg(LC(Fp(e)[0],t,n),Ok(e));if(eT(e))return hh(q(Lh(e),(e=>LC(e,t,n))),4&md(t)?H(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations);const r=Cs(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return gi.pop(),mi.set(r,o),o}function MC(e){return!(262144&tS(e))||YC(e)&&le(Td(e),(e=>MC(ql(e))))||eT(e)&&le(Lh(e),MC)}function LC(e,t,n){const r=Mv(n.type,cd(t)),i=_d(t),o=EC(r);return HC([o],e,i),BC(o)||Nt}function*RC(e,t,n,r){const i=Td(t);for(const t of i)if(!Xu(t)&&(n||!(16777216&t.flags||48&$x(t)))){const n=Zd(e,t.escapedName);if(n){if(r){const e=ql(t);if(109472&e.flags){const r=ql(n);1&r.flags||Mb(r)===Mb(e)||(yield t)}}}else yield t}}function jC(e,t,n,r){return Me(RC(e,t,n,r))}function BC(e){return e.candidates?ly(e.candidates,2):e.contraCandidates?Ey(e.contraCandidates):void 0}function JC(e){return!!$o(e).skipDirectInference}function zC(e){return!(!e.symbol||!le(e.symbol.declarations,JC))}function $C(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function VC(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return iS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return qe(n,((e,t)=>cv(t,e)),e)===e&&VC(e,t)}return!1}function KC(e,t){return 128&e.flags?WC([e.value],a,t):134217728&e.flags?J(e.texts,t.texts)?q(e.types,qC):WC(e.texts,e.types,t):void 0}function UC(e,t){const n=KC(e,t);return!!n&&I(n,((e,n)=>function(e,t){if(e===t||5&t.flags)return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&$C(n,!1)||64&t.flags&&CT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&VC(Bb(n),t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&iS(e.types[0],t)}return iS(e,t)}(e,t.types[n])))}function qC(e){return 402653317&e.flags?e:av(["",""],[e])}function WC(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length0){let t=d,r=f;for(;r=p(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),f+=n.length}else if(f{if(!(128&e.flags))return;const n=Pc(e.value),r=Ao(4,n);r.links.type=St,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[ip(Jt,Dn,!1)]:a;return Ps(void 0,t,a,a,n)}(t),s.type);else if(8388608&t.flags&&8388608&s.flags)p(t.objectType,s.objectType),p(t.indexType,s.indexType);else if(268435456&t.flags&&268435456&s.flags)t.symbol===s.symbol&&p(t.type,s.type);else if(33554432&t.flags)p(t.baseType,s),m(_m(t),s,4);else if(16777216&s.flags)g(t,s,T);else if(3145728&s.flags)S(t,s.types,s.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,s)}else if(134217728&s.flags)!function(e,t){const n=KC(e,t),r=t.types;if(n||I(t.texts,(e=>0===e.length)))for(let e=0;ee|t.flags),0);if(!(4&r)){const n=t.value;296&r&&!$C(n,!0)&&(r&=-297),2112&r&&!CT(n,!0)&&(r&=-2113);const o=qe(e,((e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&UC(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===_v(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?Jb(+n):32&e.flags?e:32&i.flags?Jb(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?zb(TT(n)):2048&e.flags?e:2048&i.flags&&ST(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Ut:"false"===n?Vt:Ht:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e),Qt);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,s);else{if(t=Wd(t),!(512&r&&467927040&t.flags)){const e=$d(t);if(e!==t&&d&&!(2621440&e.flags))return d=!1,p(e,s);t=e}2621440&t.flags&&g(t,s,C)}else y(Fp(t),Fp(s),nk(t.target))}}}function m(e,t,n){const i=r;r|=n,p(e,t),r=i}function g(e,t,n){const r=e.id+","+t.id,i=s&&s.get(r);if(void 0!==i)return void(_=Math.min(_,i));(s||(s=new Map)).set(r,-1);const o=_;_=2048;const a=f;(c??(c=[])).push(e),(l??(l=[])).push(t),Ek(e,c,c.length,2)&&(f|=1),Ek(t,l,l.length,2)&&(f|=2),3!==f?n(e,t):_=-1,l.pop(),c.pop(),f=a,s.set(r,_),_=Math.min(_,o)}function h(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=De(r,t),i=De(i,o));return[r?V(e,(e=>!B(r,e))):e,i?V(t,(e=>!B(i,e))):t]}function y(e,t,n){const r=e.length!!x(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&m(e,n,1))}if(1===i&&!s){const e=X(o,((e,t)=>a[t]?void 0:e));if(e.length)return void p(ly(e),n)}}else for(const n of t)x(n)?i++:p(e,n);if(2097152&n?1===i:i>0)for(const n of t)x(n)&&m(e,n,1)}function k(e,t,n){if(1048576&n.flags){let r=!1;for(const i of n.types)r=k(e,t,i)||r;return r}if(4194304&n.flags){const r=x(n.type);if(r&&!r.isFixed&&!zC(e)){const i=OC(e,t,n);i&&m(i,r.typeParameter,262144&tS(e)?16:8)}return!0}if(262144&n.flags){m(iv(e,e.pattern?2:0),n,32);const r=Cd(n);return r&&k(e,t,r)||p(ly(_e(q(Td(e),ql),q(df(e),(e=>e!==si?e.type:Qt)))),_d(t)),!0}return!1}function T(e,t){16777216&e.flags?(p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(qv(e),qv(t)),p(Gv(e),Gv(t))):function(e,t,n,i){const o=r;r|=i,S(e,t,n),r=o}(e,[qv(t),Gv(t)],t.flags,i?64:0)}function C(e,t){var n,r;if(4&tS(e)&&4&tS(t)&&(e.target===t.target||Ik(e)&&Ik(t)))y(Fp(e),Fp(t),nk(e.target));else{if(yd(e)&&yd(t)){p(ld(e),ld(t)),p(_d(e),_d(t));const n=ud(e),r=ud(t);n&&r&&p(n,r)}if(32&tS(t)&&!t.declaration.nameType&&k(e,t,ld(t)))return;if(!function(e,t){return eT(e)&&eT(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t1){const t=V(e,ZC);if(t.length){const n=ly(t,2);return _e(V(e,(e=>!ZC(e))),[n])}}return e}(e.candidates),r=function(e){const t=wd(e);return!!t&&fO(16777216&t.flags?Nd(t):t,406978556)}(e.typeParameter)||Ed(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=Kf(e);return n?!!n.type&&IC(n.type,t):IC(qf(e),t)}(t,e.typeParameter)),o=r?H(n,Mb):i?H(n,Xk):n;return dC(416&e.priority?ly(o,2):Fk(o))}(n,e.signature):void 0,c=n.contraCandidates?function(e){return 416&e.priority?Ey(e.contraCandidates):qe(e.contraCandidates,((e,t)=>Zx(t,e)?t:e))}(n):void 0;if(s||c){const t=s&&(!c||!(131072&s.flags)&&le(n.contraCandidates,(e=>Zx(s,e)))&&I(e.inferences,(e=>e!==n&&wd(e.typeParameter)!==n.typeParameter||I(e.candidates,(e=>Zx(e,s))))));o=t?s:c,a=t?c:s}else if(1&e.flags)o=en;else{const a=Bd(n.typeParameter);a&&(o=Mx(a,(r=function(e,t){const n=e.inferences.slice(t);return mx(q(n,(e=>e.typeParameter)),q(n,(()=>Nt)))}(e,t),i=e.nonFixingMapper,r?bx(5,r,i):i)))}}else o=BC(n);n.inferredType=o||tw(!!(2&e.flags));const s=wd(n.typeParameter);if(s){const t=Mx(s,e.nonFixingMapper);o&&o!==Tt&&e.compareTypes(o,f_(t,o))||(n.inferredType=a&&e.compareTypes(a,f_(t,a))?a:t)}}var r,i;return n.inferredType}function tw(e){return e?St:Nt}function nw(e){const t=[];for(let n=0;nZN(e)||eA(e)||DD(e))))}function sw(e,t,n,r){switch(e.kind){case 80:if(!eb(e)){const i=ow(e);return i!==pt?`${r?bB(r):"-1"}|${Rh(t)}|${Rh(n)}|${xB(i)}`:void 0}case 110:return`0|${r?bB(r):"-1"}|${Rh(t)}|${Rh(n)}`;case 235:case 217:return sw(e.expression,t,n,r);case 166:const i=sw(e.left,t,n,r);return i&&i+"."+e.right.escapedText;case 211:case 212:const o=lw(e);if(void 0!==o){const i=sw(e.expression,t,n,r);return i&&i+"."+o}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${bB(e)}#${Rh(t)}`}}function cw(e,t){switch(t.kind){case 217:case 235:return cw(e,t.expression);case 226:return Hb(t)&&cw(e,t.left)||fN(t)&&28===t.operatorToken.kind&&cw(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return eb(e)?110===t.kind:80===t.kind&&ow(e)===ow(t)||(GN(t)||GD(t))&&ms(ow(e))===cs(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return cw(e.expression,t);case 211:case 212:const n=lw(e),r=lS(t)?lw(t):void 0;return void 0!==n&&void 0!==r&&r===n&&cw(e.expression,t.expression);case 166:return lS(t)&&e.right.escapedText===lw(t)&&cw(e.left,t.expression);case 226:return fN(e)&&28===e.operatorToken.kind&&cw(e.right,t)}return!1}function lw(e){if(QD(e))return e.name.escapedText;if(ZD(e))return Oy((t=e).argumentExpression)?Pc(t.argumentExpression.text):Qb(t.argumentExpression)?_w(t.argumentExpression):void 0;var t;if(GD(e)){const t=qc(e);return t?Pc(t):void 0}return uD(e)?""+e.parent.parameters.indexOf(e):void 0}function uw(e){return 8192&e.flags?e.escapedName:384&e.flags?Pc(""+e.value):void 0}function _w(e){const t=Va(e,111551,!0);if(!t||!(wE(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=kl(n);if(r){const e=uw(r);if(void 0!==e)return e}if(X_(n)&&Uo(n,e)){const e=Ug(n);if(e)return uw(KO(e));if(VA(n))return Kp(n.name)}}function dw(e,t){for(;lS(e);)if(cw(e=e.expression,t))return!0;return!1}function fw(e,t){for(;Ml(e);)if(cw(e=e.expression,t))return!0;return!1}function mw(e,t){if(e&&1048576&e.flags){const n=Ud(e,t);if(n&&2&$x(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=192==(192&n.links.checkFlags)&&!wv(ql(n))),!!n.links.isDiscriminantProperty}return!1}function yw(e,t){let n;for(const r of e)if(mw(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function vw(e){const t=e.types;if(!(t.length<10||32768&tS(e)||$(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=w(t,(e=>59506688&e.flags?w(Td(e),(e=>Uk(ql(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=xc(i,t);if(e){if(!Wk(e))return;let t=!1;Gw(e,(e=>{const r=Rh(Mb(e)),o=n.get(r);o?o!==Nt&&(n.set(r,Nt),t=!0):n.set(r,i)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function bw(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(Rh(Mb(t)));return r!==Nt?r:void 0}function xw(e,t){const n=vw(e),r=n&&xc(t,n);return r&&bw(e,r)}function Sw(e,t){return cw(e,t)||dw(e,t)}function kw(e,t){if(e.arguments)for(const n of e.arguments)if(Sw(t,n))return!0;return!(211!==e.expression.kind||!Sw(t,e.expression.expression))}function Tw(e){return(!e.id||e.id<0)&&(e.id=cB,cB++),e.id}function Cw(e){const t=bd(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Zx(e,Xn))}function ww(e){467927040&e.flags&&(e=Od(e)||Nt);const t=e.flags;if(268435460&t)return F?16317953:16776705;if(134217856&t){const n=128&t&&""===e.value;return F?n?12123649:7929345:n?12582401:16776705}if(40&t)return F?16317698:16776450;if(256&t){const t=0===e.value;return F?t?12123394:7929090:t?12582146:16776450}if(64&t)return F?16317188:16775940;if(2048&t){const t=sT(e);return F?t?12122884:7928580:t?12581636:16775940}return 16&t?F?16316168:16774920:528&t?F?e===Vt||e===Kt?12121864:7927560:e===Vt||e===Kt?12580616:16774920:524288&t?16&tS(e)&&wS(e)?F?83427327:83886079:Cw(e)?F?7880640:16728e3:F?7888800:16736160:16384&t?9830144:32768&t?26607360:65536&t?42917664:12288&t?F?7925520:16772880:67108864&t?F?7888800:16736160:131072&t?0:1048576&t?qe(e.types,((e,t)=>e|ww(t)),0):2097152&t?function(e){const t=fO(e,402784252);let n=0,r=134217727;for(const i of e.types)if(!(t&&524288&i.flags)){const e=ww(i);n|=e,r&=e}return 8256&n|134209471&r}(e):83886079}function Ew(e,t){return Qw(e,(e=>0!=(ww(e)&t)))}function Dw(e,t){const n=Nw(Ew(F&&2&e.flags?On:e,t));if(F)switch(t){case 524288:return tE(n,(e=>65536&ww(e)?Ey([e,131072&ww(e)&&!fO(n,65536)?ly([Dn,Rt]):Dn]):e));case 1048576:return tE(n,(e=>131072&ww(e)?Ey([e,65536&ww(e)&&!fO(n,32768)?ly([Dn,Pt]):Dn]):e));case 2097152:case 4194304:return tE(n,(e=>262144&ww(e)?function(e){return lr||(lr=$m("NonNullable",524288,void 0)||pt),lr!==pt?Vp(lr,[e]):Ey([e,Dn])}(e):e))}return n}function Nw(e){return e===On?Nt:e}function Aw(e,t){return t?ly([Bc(e),KO(t)]):e}function Pw(e,t){var n;const r=Wy(t);if(!gC(r))return Ct;const i=hC(r);return xc(e,i)||Iw(null==(n=Sf(e,i))?void 0:n.type)||Ct}function Fw(e,t){return Yw(e,$k)&&function(e,t){return xc(e,""+t)||(Yw(e,eT)?oT(e,t,S.noUncheckedIndexedAccess?Pt:void 0):void 0)}(e,t)||Iw(mL(65,e,Pt,void 0))||Ct}function Iw(e){return e&&S.noUncheckedIndexedAccess?ly([e,It]):e}function Lw(e){return Qg(mL(65,e,Pt,void 0)||Ct)}function Rw(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function jw(e){return Pw(Jw(e.parent),e.name)}function Jw(e){const{parent:t}=e;switch(t.kind){case 249:return Jt;case 250:return pL(t)||Ct;case 226:return function(e){return 209===e.parent.kind&&Rw(e.parent)||303===e.parent.kind&&Rw(e.parent.parent)?Aw(Jw(e),e.right):KO(e.right)}(t);case 220:return Pt;case 209:return function(e,t){return Fw(Jw(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return Lw(Jw(e.parent))}(t);case 303:return jw(t);case 304:return function(e){return Aw(jw(e),e.objectAssignmentInitializer)}(t)}return Ct}function zw(e){return $o(e).resolvedType||KO(e)}function $w(e){return 260===e.kind?function(e){return e.initializer?zw(e.initializer):249===e.parent.parent.kind?Jt:250===e.parent.parent.kind&&pL(e.parent.parent)||Ct}(e):function(e){const t=e.parent,n=$w(t.parent);return Aw(206===t.kind?Pw(n,e.propertyName||e.name):e.dotDotDotToken?Lw(n):Fw(n,t.elements.indexOf(e)),e.initializer)}(e)}function Vw(e){switch(e.kind){case 217:return Vw(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return Vw(e.left);case 28:return Vw(e.right)}}return e}function Kw(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?Kw(t):e}function Uw(e){return 296===e.kind?Mb(KO(e.expression)):Qt}function qw(e){const t=$o(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(Uw(n))}return t.switchTypes}function Ww(e){if(le(e.caseBlock.clauses,(e=>296===e.kind&&!ed(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!B(t,e)?e:void 0)}return t}function Hw(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!jh(t.types,n))return!1;return!0}return!!(1056&e.flags&&Du(e)===t)||jh(t.types,e)}(e,t))}function Gw(e,t){return 1048576&e.flags?w(e.types,t):t(e)}function Xw(e,t){return 1048576&e.flags?le(e.types,t):t(e)}function Yw(e,t){return 1048576&e.flags?I(e.types,t):t(e)}function Qw(e,t){if(1048576&e.flags){const n=e.types,r=V(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=V(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=cy(1048576,a)}}return Sy(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:Qt}function Zw(e,t){return Qw(e,(e=>e!==t))}function eE(e){return 1048576&e.flags?e.types.length:1}function tE(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?tE(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&ly(o,n?0:1):e}function nE(e,t,n,r){return 1048576&e.flags&&n?ly(q(e.types,t),1,n,r):tE(e,t)}function rE(e,t){return Qw(e,(e=>0!=(e.flags&t)))}function iE(e,t){return fO(e,134217804)&&fO(t,402655616)?tE(e,(e=>4&e.flags?rE(t,402653316):Cv(e)&&!fO(t,402653188)?rE(t,128):8&e.flags?rE(t,264):64&e.flags?rE(t,2112):e)):e}function oE(e){return 0===e.flags}function aE(e){return 0===e.flags?e.type:e}function sE(e,t){return t?{flags:0,type:131072&e.flags?en:e}:e}function cE(e){return lt[e.id]||(lt[e.id]=function(e){const t=Cs(256);return t.elementType=e,t}(e))}function lE(e,t){const n=zT(Hk(qO(t)));return Hw(n,e.elementType)?e:cE(ly([e.elementType,n]))}function uE(e){return 256&tS(e)?(t=e).finalArrayType||(t.finalArrayType=131072&(n=t.elementType).flags?sr:Qg(1048576&n.flags?ly(n.types,2):n)):e;var t,n}function _E(e){return 256&tS(e)?e.elementType:Qt}function dE(e){const t=Kw(e),n=t.parent,r=QD(n)&&("length"===n.name.escapedText||213===n.parent.kind&&qE(n.name)&&Yy(n.name)),i=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!Hh(n.parent)&&pO(KO(n.argumentExpression),296);return r||i}function fE(e,t){if(8752&(e=Fa(e)).flags)return ql(e);if(7&e.flags){if(262144&$x(e)){const t=e.links.syntheticOrigin;if(t&&fE(t))return ql(e)}const r=e.valueDeclaration;if(r){if((GN(n=r)||fD(n)||dD(n)||uD(n))&&(rb(n)||Pg(n)&&G_(n)&&n.initializer&&qT(n.initializer)&&ob(n.initializer)))return ql(e);if(GN(r)&&250===r.parent.parent.kind){const e=r.parent.parent,t=pE(e.expression,void 0);if(t)return mL(e.awaitModifier?15:13,t,Pt,void 0)}t&&mT(t,qp(r,Ra._0_needs_an_explicit_type_annotation,Hs(e)))}}var n}function pE(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return fE(ms(ow(e)),t);case 110:return function(e){const t=eg(e,!1,!1);if(ku(t)){const e=Lf(t);if(e.thisParameter)return fE(e.thisParameter)}if(Pu(t.parent)){const e=cs(t.parent);return bb(t)?ql(e):ju(e).thisType}}(e);case 108:return VE(e);case 211:{const n=pE(e.expression,t);if(n){const r=e.name;let i;if(WE(r)){if(!n.symbol)return;i=Zd(n,Vy(n.symbol,r.escapedText))}else i=Zd(n,r.escapedText);return i&&fE(i,t)}return}case 217:return pE(e.expression,t)}}function mE(e){const t=$o(e);let n=t.effectsSignature;if(void 0===n){let r;244===e.parent.kind?r=pE(e.expression,void 0):108!==e.expression.kind&&(r=Ml(e)?fP(FT(WO(e.expression),e.expression),e.expression):YA(e.expression));const i=tf(r&&$d(r)||Nt,0),o=1!==i.length||i[0].typeParameters?le(i,gE)?XF(e):void 0:i[0];n=t.effectsSignature=o&&gE(o)?o:ii}return n===ii?void 0:n}function gE(e){return!!(Kf(e)||e.declaration&&131072&(Wf(e.declaration)||Nt).flags)}function hE(e){const t=vE(e,!1);return Yr=e,Qr=t,t}function yE(e){const t=ny(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(yE(t.left)||yE(t.right))||57===t.operatorToken.kind&&yE(t.left)&&yE(t.right))}function vE(e,t){for(;;){if(e===Yr)return Qr;const n=e.flags;if(4096&n){if(!t){const t=Tw(e),n=Gi[t];return void 0!==n?n:Gi[t]=vE(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=mE(e.node);if(t){const n=Kf(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&yE(t))return!1}if(131072&qf(t).flags)return!1}e=e.antecedent}else{if(4&n)return le(e.antecedents,(e=>vE(e,!1)));if(8&n){const t=e.antecedents;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){Yr=void 0;const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=vE(e.antecedent,!1);return t.antecedents=n,r}return!(1&n)}if(e.clauseStart===e.clauseEnd&&eO(e.switchStatement))return!1;e=e.antecedent}}}}function bE(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=Tw(e),n=Xi[t];return void 0!==n?n:Xi[t]=bE(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return I(e.antecedents,(e=>bE(e,!1)));if(!(8&n)){if(1024&n){const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=bE(e.antecedent,!1);return t.antecedents=n,r}return!!(1&n)}e=e.antecedents[0]}}}function xE(e){switch(e.kind){case 110:return!0;case 80:if(!eb(e)){const t=ow(e);return wE(t)||UT(t)&&!TE(t)}break;case 211:case 212:return xE(e.expression)&&sO($o(e).resolvedSymbol||pt)}return!1}function SE(e,t,n=t,r,i=(t=>null==(t=bt(e,Ih))?void 0:t.flowNode)()){let o,a=!1,s=0;if(xi)return Ct;if(!i)return t;Si++;const c=bi,l=aE(d(i));bi=c;const u=256&tS(l)&&dE(e)?sr:uE(l);return u===rn||e.parent&&235===e.parent.kind&&!(131072&u.flags)&&131072&Ew(u,2097152).flags?t:u===At?Nt:u;function _(){return a?o:(a=!0,o=sw(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Br)||o.instant(Br.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),xi=!0,function(e){const t=Dc(e,Nu),n=Ff(e),r=nm(n,t.statements.pos);ro.add(IS(n,r.start,r.length,Ra.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Ct;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;efunction(e,t){if(!(1048576&e.flags))return iS(e,t);for(const n of e.types)if(iS(n,t))return!0;return!1}(t,e))),r=512&t.flags&&Lb(t)?tE(n,Ob):n;return iS(t,r)?r:e}(e,t))}(t,f(n)):t}if(dw(e,r)){if(!hE(n))return rn;if(GN(r)&&(Pg(r)||LB(r))){const e=qg(r);if(e&&(218===e.kind||219===e.kind))return d(n.antecedent)}return t}if(GN(r)&&249===r.parent.parent.kind&&(cw(e,r.parent.parent.expression)||fw(r.parent.parent.expression,e)))return ZA(uE(aE(d(n.antecedent))))}function m(e,t){const n=ny(t,!0);if(97===n.kind)return rn;if(226===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return ly([m(e,n.left),m(e,n.right)])}return Y(e,n,!0)}function g(e){const t=mE(e.node);if(t){const n=Kf(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=uE(aE(t)),i=n.type?X(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex297===e.kind));if(n===r||o>=n&&o(ww(e)&t)===t))}return ly(q(i.slice(n,r),(t=>t?$(e,t):Qt)))}(i,t.switchStatement,t.clauseStart,t.clauseEnd);else{F&&(fw(n,e)?i=j(i,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(163840&e.flags))):221===n.kind&&fw(n.expression,e)&&(i=j(i,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=T(n,i);r&&(i=function(e,t,n,r,i){if(rbw(e,t)||Nt)));if(t!==Nt)return t}return C(e,t,(e=>z(e,n,r,i)))}(i,r,t.switchStatement,t.clauseStart,t.clauseEnd))}return sE(i,oE(r))}function x(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedents){if(!i&&128&s.flags&&s.clauseStart===s.clauseEnd){i=s;continue}const e=d(s),c=aE(e);if(c===t&&t===n)return c;Ee(r,c),Hw(c,n)||(o=!0),oE(e)&&(a=!0)}if(i){const e=d(i),s=aE(e);if(!(131072&s.flags||B(r,s)||eO(i.switchStatement))){if(s===t&&t===n)return s;r.push(s),Hw(s,n)||(o=!0),oE(e)&&(a=!0)}}return sE(k(r,o?2:1),a)}function S(e){const r=Tw(e),i=Vi[r]||(Vi[r]=new Map),o=_();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=yi;t{const t=function(e,t){var n;return xc(e,t)||(null==(n=Sf(e,t))?void 0:n.type)||Nt}(e,r);return!(131072&t.flags)&&!(131072&s.flags)&&sS(s,t)}))}function w(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=vw(e);if(o&&o===lw(t)){const t=bw(e,KO(r));if(t)return n===(i?37:38)?t:Uk(xc(t,o)||Nt)?Zw(e,t):e}}return C(e,t,(e=>P(e,n,r,i)))}function E(t,n,r){if(cw(e,n))return Dw(t,r?4194304:8388608);F&&r&&fw(n,e)&&(t=Dw(t,2097152));const i=T(n,t);return i?C(t,i,(e=>Ew(e,r?4194304:8388608))):t}function D(e,t,n){const r=Zd(e,t);return r?!!(16777216&r.flags||48&$x(r))||n:!!Sf(e,t)||!n}function N(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return E(Y(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=Vw(n.left),a=Vw(n.right);if(221===o.kind&&ed(a))return M(t,o,i,a,r);if(221===a.kind&&ed(o))return M(t,a,i,o,r);if(cw(e,o))return P(t,i,a,r);if(cw(e,a))return P(t,i,o,r);F&&(fw(o,e)?t=A(t,i,a,r):fw(a,e)&&(t=A(t,i,o,r)));const s=T(o,t);if(s)return w(t,s,i,a,r);const c=T(a,t);if(c)return w(t,c,i,o,r);if(K(o))return U(t,i,a,r);if(K(a))return U(t,i,o,r);break;case 104:return function(t,n,r){const i=Vw(n.left);if(!cw(e,i))return r&&F&&fw(i,e)?Dw(t,2097152):t;const o=KO(n.right);if(!oS(o,Xn))return t;const a=tE(o,W);return(!Cc(t)||a!==Gn&&a!==Xn)&&(r||524288&a.flags&&!ES(a))?G(t,a,r,!0):t}(t,n,r);case 103:if(WE(n.left))return function(t,n,r){const i=Vw(n.right);if(!cw(e,i))return t;Fn.assertNode(n.left,WE);const o=xP(n.left);if(void 0===o)return t;const a=o.parent;return G(t,xb(Fn.checkDefined(o.valueDeclaration,"should always have a declaration"))?ql(a):ju(a),r,!0)}(t,n,r);const l=Vw(n.right);if(LT(t)&&lS(e)&&cw(e.expression,l)){const i=KO(n.left);if(gC(i)&&lw(e)===hC(i))return Ew(t,r?524288:65536)}if(cw(e,l)){const e=KO(n.left);if(gC(e))return function(e,t,n){const r=hC(t);if(Xw(e,(e=>D(e,r,!0))))return Qw(e,(e=>D(e,r,n)));if(n){const n=($r||($r=jm("Record",2,!0)||pt),$r===pt?void 0:$r);if(n)return Ey([e,Vp(n,[t,Nt])])}return e}(t,e,r)}break;case 28:return Y(t,n.right,r);case 56:return r?Y(Y(t,n.left,!0),n.right,!0):ly([Y(t,n.left,!1),Y(t,n.right,!1)]);case 57:return r?ly([Y(t,n.left,!0),Y(t,n.right,!0)]):Y(Y(t,n.left,!1),n.right,!1)}return t}function A(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=KO(n);return i!==r&&Yw(a,(e=>!!(e.flags&o)))||i===r&&Yw(a,(e=>!(e.flags&(3|o))))?Dw(e,2097152):e}function P(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=KO(n),o=35===t||36===t;if(98304&i.flags)return F?Dw(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288):e;if(r){if(!o&&(2&e.flags||Xw(e,ES))){if(469893116&i.flags||ES(i))return i;if(524288&i.flags)return on}return iE(Qw(e,(e=>{return sS(e,i)||o&&(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t})),i)}return Uk(i)?Qw(e,(e=>!(qk(e)&&sS(e,i)))):e}function M(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=Vw(n.expression);if(!cw(e,a)){F&&fw(a,e)&&o===("undefined"!==i.text)&&(t=Dw(t,2097152));const n=T(a,t);return n?C(t,n,(e=>R(e,i,o))):t}return R(t,i,o)}function R(e,t,n){return n?$(e,t.text):Dw(e,uB.get(t.text)||32768)}function j(e,t,n,r,i){return n!==r&&I(qw(t).slice(n,r),i)?Ew(e,2097152):e}function z(e,t,n,r){const i=qw(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||B(o,Qt);if(2&e.flags&&!a){let t;for(let n=0;nsS(s,e))),s);if(!a)return c;const l=Qw(e,(e=>!(qk(e)&&B(i,Mb(function(e){return 2097152&e.flags&&O(e.types,Uk)||e}(e))))));return 131072&c.flags?l:ly([c,l])}function $(e,t){switch(t){case"string":return V(e,Jt,1);case"number":return V(e,zt,2);case"bigint":return V(e,$t,4);case"boolean":return V(e,Ht,8);case"symbol":return V(e,Gt,16);case"object":return 1&e.flags?e:ly([V(e,on,32),V(e,Rt,131072)]);case"function":return 1&e.flags?e:V(e,Xn,64);case"undefined":return V(e,Pt,65536)}return V(e,on,128)}function V(e,t,n){return tE(e,(e=>FS(e,t,so)?ww(e)&n?e:Qt:Zx(t,e)?t:ww(e)&n?Ey([e,t]):Qt))}function K(t){return(QD(t)&&"constructor"===Ic(t.name)||ZD(t)&&ed(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&cw(e,t.expression)}function U(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=KO(n);if(!pj(i)&&!au(i))return e;const o=Zd(i,"prototype");if(!o)return e;const a=ql(o),s=Cc(a)?void 0:a;return s&&s!==Gn&&s!==Xn?Cc(e)?s:Qw(e,(e=>{return n=s,524288&(t=e).flags&&1&tS(t)||524288&n.flags&&1&tS(n)?t.symbol===n.symbol:Zx(t,n);var t,n})):e}function W(e){const t=xc(e,"prototype");if(t&&!Cc(t))return t;const n=tf(e,1);return n.length?ly(q(n,(e=>qf(Zf(e))))):Dn}function G(e,t,n,r){const i=1048576&e.flags?`N${Rh(e)},${Rh(t)},${(n?1:0)|(r?2:0)}`:void 0;return mo(i)??go(i,function(e,t,n,r){if(!n){if(r)return Qw(e,(e=>!oS(e,t)));const n=G(e,t,!0,!1);return Qw(e,(e=>!Hw(e,n)))}if(3&e.flags)return t;const i=r?oS:Zx,o=1048576&e.flags?vw(e):void 0,a=tE(t,(t=>{const n=o&&xc(t,o),a=tE(n&&bw(e,n)||e,r?e=>oS(e,t)?e:oS(t,e)?t:Qt:e=>nS(e,t)?e:nS(t,e)?t:Zx(e,t)?e:Zx(t,e)?t:Qt);return 131072&a.flags?tE(e,(e=>fO(e,465829888)&&i(t,Od(e)||Nt)?Ey([e,t]):Qt)):a}));return 131072&a.flags?Zx(t,e)?t:iS(e,t)?e:iS(t,e)?t:Ey([e,t]):a}(e,t,n,r))}function X(t,n,r,i){if(n.type&&(!Cc(t)||n.type!==Gn&&n.type!==Xn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=ny(t.expression);return lS(n)?ny(n.expression):void 0}(n,r);if(o){if(cw(e,o))return G(t,n.type,i,!1);F&&i&&fw(o,e)&&!(65536&ww(n.type))&&(t=Dw(t,2097152));const r=T(o,t);if(r)return C(t,r,(e=>G(e,n.type,i,!1)))}}return t}function Y(t,n,r){if(Rl(n)||fN(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(cw(e,n))return Dw(t,r?2097152:262144);const i=T(n,t);return i?C(t,i,(e=>Ew(e,r?2097152:262144))):t}(t,n,r);switch(n.kind){case 80:if(!cw(e,n)&&y<5){const i=ow(n);if(wE(i)){const n=i.valueDeclaration;if(n&&GN(n)&&!n.type&&n.initializer&&xE(e)){y++;const e=Y(t,n.initializer,r);return y--,e}}}case 110:case 108:case 211:case 212:return E(t,n,r);case 213:return function(t,n,r){if(kw(n,e)){const e=r||!Ol(n)?mE(n):void 0,i=e&&Kf(e);if(i&&(0===i.kind||1===i.kind))return X(t,i,n,r)}if(LT(t)&&lS(e)&&QD(n.expression)){const i=n.expression;if(cw(e.expression,Vw(i.expression))&&qE(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(ed(i)&&lw(e)===Pc(i.text))return Ew(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Y(t,n.expression,r);case 226:return N(t,n,r);case 224:if(54===n.operator)return Y(t,n.operand,!r)}return t}}function kE(e){return Dc(e.parent,(e=>ku(e)&&!og(e)||268===e.kind||312===e.kind||172===e.kind))}function TE(e){if(!e.valueDeclaration)return!1;const t=Zy(e.valueDeclaration).parent,n=$o(t);return 131072&n.flags||(n.flags|=131072,Dc(t.parent,(e=>(ku(e)||BA(e))&&!!(131072&$o(e).flags)))||CE(t)),e.isAssigned||!1}function CE(e){if(80===e.kind){if(Hh(e)){const t=ow(e);UT(t)&&(t.isAssigned=!0)}}else zI(e,CE)}function wE(e){return 3&e.flags&&0!=(6&LA(e))}function DE(e){return 2097152&e.flags?le(e.types,DE):!!(465829888&e.flags&&1146880&Md(e).flags)}function AE(e){return 2097152&e.flags?le(e.types,AE):!(!(465829888&e.flags)||fO(Md(e),98304))}function PE(e,t,n){const r=!(n&&2&n)&&Xw(e,DE)&&(function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(Xw(e,AE)&&Nv(KO(n.argumentExpression)))}(e,t)||function(e,t){const n=(qE(e)||QD(e)||ZD(e))&&!((wA(e.parent)||CA(e.parent))&&e.parent.tagName===e)&&qD(e,t&&64&t?8:void 0);return n&&!wv(n)}(t,n));return r?tE(e,Md):e}function FE(e){return!!Dc(e,(e=>{const t=e.parent;return void 0===t?"quit":gA(t)?t.expression===e&&Qb(e):!!vA(t)&&(t.name===e||t.propertyName===e)}))}function IE(e,t){if(Te&&Pa(e,111551)&&!Zv(t)){const n=Ia(e);1160127&Oa(e,!0)&&(ek(S)||fk(S)&&FE(t)||!nj(ms(n))?Ja(e):function(e){const t=zo(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(e))}}function OE(e,t){if(eb(e))return JE(e);const n=ow(e);if(n===pt)return Ct;if(n===ve){if(OP(e))return So(e,Ra.arguments_cannot_be_referenced_in_property_initializers),Ct;const t=Hm(e);return k<2&&(219===t.kind?So(e,Ra.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):vb(t,512)&&So(e,Ra.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),$o(t).flags|=512,ql(n)}(function(e){var t;const n=e.parent;if(n){if(QD(n)&&n.expression===e)return!1;if(vA(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&hA(r)&&r.isTypeOnly)return!1}return!0})(e)&&IE(n,e);const r=ms(n),i=fR(r,e);Eo(i)&&gv(e,i)&&i.declarations&&No(e,i.declarations,e.escapedText);let o=r.valueDeclaration;if(o&&32&r.flags&&Pu(o)&&o.name!==e){let t=eg(e,!1,!1);for(;312!==t.kind&&t.parent!==o;)t=eg(t,!1,!1);312!==t.kind&&($o(o).flags|=262144,$o(t).flags|=262144,$o(e).flags|=536870912)}!function(e,t){if(k>=2||0==(34&t.flags)||!t.valueDeclaration||UA(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=jp(t.valueDeclaration),r=function(e,t){return!!Dc(e,(e=>e===t?"quit":ku(e)||e.parent&&fD(e.parent)&&!xb(e.parent)&&e.parent.initializer===e))}(e,n),i=ME(n);if(i){if(r){let r=!0;if(RN(n)){const i=xy(t.valueDeclaration,261);if(i&&i.parent===n){const i=function(e,t){return Dc(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=$o(i);e.flags|=8192,Ee(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&($o(i).flags|=4096)}if(RN(n)){const r=xy(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(Hh(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}return!!r&&!!Dc(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&($o(t.valueDeclaration).flags|=65536)}$o(t.valueDeclaration).flags|=32768}r&&($o(t.valueDeclaration).flags|=16384)}(e,n);let a=function(e,t){var n;const r=ql(e),i=e.valueDeclaration;if(i){if(GD(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const n=i.parent.parent;if(260===n.kind&&6&MB(i)||169===n.kind){const r=$o(n);if(!(4194304&r.flags)){r.flags|=4194304;const o=Nc(n,0),a=o&&tE(o,Md);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!TE(e))){const e=SE(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?Qt:Gc(i,e)}}}}if(uD(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const r=i.parent;if(r.parameters.length>=2&&Kx(r)){const o=kN(r);if(o&&1===o.parameters.length&&DB(o)){const a=Vd(Mx(ql(o.parameters[0]),null==(n=pN(r))?void 0:n.nonFixingMapper));if(1048576&a.flags&&Yw(a,eT)&&!TE(e))return Mv(SE(r,a,a,void 0,t.flowNode),Jb(r.parameters.indexOf(i)-(Xv(r)?1:0)))}}}}return r}(r,e);const s=Wh(e);if(s){if(!(3&r.flags||Pg(e)&&512&r.flags))return So(e,384&r.flags?Ra.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?Ra.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?Ra.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?Ra.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?Ra.Cannot_assign_to_0_because_it_is_an_import:Ra.Cannot_assign_to_0_because_it_is_not_a_variable,Hs(n)),Ct;if(sO(r))return 3&r.flags?So(e,Ra.Cannot_assign_to_0_because_it_is_a_constant,Hs(n)):So(e,Ra.Cannot_assign_to_0_because_it_is_a_read_only_property,Hs(n)),Ct}const c=2097152&r.flags;if(3&r.flags){if(1===s)return a}else{if(!c)return a;o=_a(n)}if(!o)return a;a=PE(a,e,t);const l=169===Zy(o).kind,u=kE(o);let _=kE(e);const d=_!==u,f=e.parent&&e.parent.parent&&$A(e.parent)&&Rw(e.parent.parent),p=134217728&n.flags,m=a===kt||a===sr,g=m&&235===e.parent.kind;for(;_!==u&&(218===_.kind||219===_.kind||Jm(_))&&(wE(r)&&a!==sr||l&&!TE(r));)_=kE(_);const h=l||c||d||f||p||function(e,t){if(GD(t)){const n=Dc(e,GD);return n&&Zy(n)===Zy(t)}}(e,o)||a!==kt&&a!==sr&&(!F||0!=(16387&a.flags)||Zv(e)||aw(e)||281===e.parent.kind)||235===e.parent.kind||260===o.kind&&o.exclamationToken||33554432&o.flags,y=g?Pt:h?l?function(e,t){const n=F&&169===t.kind&&t.initializer&&16777216&ww(e)&&!function(e){const t=$o(e);if(void 0===t.parameterInitializerContainsUndefined){if(!pc(e,9))return Vl(e.symbol),!0;const n=!!(16777216&ww(AO(e,0)));if(!yc())return Vl(e.symbol),!0;t.parameterInitializerContainsUndefined=n}return t.parameterInitializerContainsUndefined}(t);return n?Ew(e,524288):e}(a,o):a:m?Pt:pT(a),v=g?bT(SE(e,a,y,_)):SE(e,a,y,_);if(dE(e)||a!==kt&&a!==sr){if(!h&&!DS(a)&&DS(v))return So(e,Ra.Variable_0_is_used_before_being_assigned,Hs(n)),a}else if(v===kt||v===sr)return W&&(So($c(o),Ra.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Hs(n),Ys(v)),So(e,Ra.Variable_0_implicitly_has_an_1_type,Hs(n),Ys(v))),iL(v);return s?Hk(v):v}function ME(e){return Dc(e,(e=>!e||ev(e)?"quit":d_(e,!1)))}function LE(e,t){$o(e).flags|=2,172===t.kind||176===t.kind?$o(t.parent).flags|=4:$o(t).flags|=4}function RE(e){return fm(e)?e:ku(e)?void 0:zI(e,RE)}function jE(e){return du(ju(cs(e)))===jt}function BE(e,t,n){const r=t.parent;gy(r)&&!jE(r)&&Ih(e)&&e.flowNode&&!bE(e.flowNode,!1)&&So(e,n)}function JE(e){const t=Zv(e);let n=eg(e,!0,!0),r=!1,i=!1;for(176===n.kind&&BE(e,n,Ra.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=eg(n,!1,!i),r=!0),167===n.kind;)n=eg(n,!r,!1),i=!0;if(function(e,t){fD(t)&&xb(t)&&E&&t.initializer&&tc(t.initializer,e.pos)&&Eb(t.parent)&&So(e,Ra.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)So(e,Ra.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:So(e,Ra.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:So(e,Ra.this_cannot_be_referenced_in_current_location);break;case 176:$E(e,n)&&So(e,Ra.this_cannot_be_referenced_in_constructor_arguments)}!t&&r&&k<2&&LE(e,n);const o=zE(e,!0,n);if(Y){const t=ql(me);if(o===t&&r)So(e,Ra.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=So(e,Ra.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!UA(n)){const e=zE(n);e&&e!==t&&mT(r,qp(n,Ra.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||St}function zE(e,t=!0,n=eg(e,!1,!1)){const r=Pg(e);if(ku(n)&&(!ZE(e)||Xv(n))){let t=Vf(Lf(n))||r&&function(e){const t=pl(e);if(t&&t.typeExpression)return sx(t.typeExpression);const n=Rf(e);return n?Vf(n):void 0}(n);if(!t){const e=function(e){return 218===e.kind&&fN(e.parent)&&3===nh(e.parent)?e.parent.left.expression.expression:174===e.kind&&210===e.parent.kind&&fN(e.parent.parent)&&6===nh(e.parent.parent)?e.parent.parent.left.expression:218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&fN(e.parent.parent.parent)&&6===nh(e.parent.parent.parent)?e.parent.parent.parent.left.expression:218===e.kind&&JA(e.parent)&&qE(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&YD(e.parent.parent)&&eN(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===nh(e.parent.parent.parent)?e.parent.parent.parent.arguments[0].expression:mD(e)&&qE(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&YD(e.parent)&&eN(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===nh(e.parent.parent)?e.parent.parent.arguments[0].expression:void 0}(n);if(r&&e){const n=WO(e).symbol;n&&n.members&&16&n.flags&&(t=ju(n).thisType)}else YF(n)&&(t=ju(as(n.symbol)).thisType);t||(t=XE(n))}if(t)return SE(e,t)}if(Pu(n.parent)){const t=cs(n.parent);return SE(e,bb(n)?ql(t):ju(t).thisType)}if(UA(n)){if(n.commonJsModuleIndicator){const e=cs(n);return e&&ql(e)}if(n.externalModuleIndicator)return Pt;if(t)return ql(me)}}function $E(e,t){return!!Dc(e,(e=>Cu(e)?"quit":169===e.kind&&e.parent===t))}function VE(e){const t=213===e.parent.kind&&e.parent.expression===e,n=ig(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&219===r.kind;)vb(r,512)&&(o=!0),r=ig(r,!0),i=k<2;r&&vb(r,512)&&(o=!0)}let a=0;if(!r||(s=r,!(t?176===s.kind:(Pu(s.parent)||210===s.parent.kind)&&(bb(s)?174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||175===s.kind:174===s.kind||173===s.kind||177===s.kind||178===s.kind||172===s.kind||171===s.kind||176===s.kind)))){const n=Dc(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?So(e,Ra.super_cannot_be_referenced_in_a_computed_property_name):t?So(e,Ra.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(Pu(r.parent)||210===r.parent.kind)?So(e,Ra.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):So(e,Ra.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Ct}var s;if(t||176!==n.kind||BE(e,r,Ra.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),bb(r)||t?(a=32,!t&&k>=2&&k<=8&&(fD(r)||gD(r))&&Bp(e.parent,(e=>{UA(e)&&!om(e)||($o(e).flags|=2097152)}))):a=16,$o(e).flags|=a,174===r.kind&&o&&(sg(e.parent)&&Hh(e.parent)?$o(r).flags|=256:$o(r).flags|=128),i&&LE(e.parent,r),210===r.parent.kind)return k<2?(So(e,Ra.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ct):St;const c=r.parent;if(!gy(c))return So(e,Ra.super_can_only_be_referenced_in_a_derived_class),Ct;const l=ju(cs(c)),u=l&&gu(l)[0];return u?176===r.kind&&$E(e,r)?(So(e,Ra.super_cannot_be_referenced_in_constructor_arguments),Ct):32===a?du(l):f_(u,l.thisType):Ct}function KE(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function UE(e){return 4&tS(e)&&e.target===or?Fp(e)[0]:void 0}function HE(e){return tE(e,(e=>2097152&e.flags?w(e.types,UE):UE(e)))}function GE(e,t){let n=e,r=t;for(;r;){const e=HE(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=BD(n,void 0)}}function XE(e){if(219===e.kind)return;if(Kx(e)){const t=kN(e);if(t){const e=t.thisParameter;if(e)return ql(e)}}const t=Pg(e);if(Y||t){const n=KE(e);if(n){const e=BD(n,void 0),t=GE(n,e);return t?Mx(t,NC(pN(n))):dC(e?bT(e):DO(n))}const r=Zh(e.parent);if(226===r.kind&&64===r.operatorToken.kind){const e=r.left;if(lS(e)){const{expression:n}=e;if(t&&qE(n)){const e=Ff(r);if(e.commonJsModuleIndicator&&ow(n)===e.symbol)return}return dC(DO(n))}}}}function YE(e){const t=e.parent;if(!Kx(t))return;const n=og(t);if(n&&n.arguments){const r=EF(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return xF(r,i,r.length,St,void 0,0);const o=$o(n),a=o.resolvedSignature;o.resolvedSignature=ri;const s=i=r?Mv(ql(n.parameters[r]),Jb(t-r),256):CI(n,t)}function iD(e,t=nh(e)){if(4===t)return!0;if(!Pg(e)||5!==t||!qE(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ho(e.left,n,111551,void 0,void 0,!0,!0);return lg(null==r?void 0:r.valueDeclaration)}function aD(e){if(!e.symbol)return KO(e.left);if(e.symbol.valueDeclaration){const t=rb(e.symbol.valueDeclaration);if(t){const e=sx(t);if(e)return e}}const t=xt(e.left,lS);if(!Bm(eg(t.expression,!1,!1)))return;const n=JE(t.expression),r=_h(t);return void 0!==r&&SD(n,r)||void 0}function SD(e,t,n){return tE(e,(e=>{var r,i;if(yd(e)&&!e.declaration.nameType){const r=ld(e),i=Od(r)||r,o=n||Bb(Fc(t));if(iS(o,i))return Ov(e,o)}else if(3670016&e.flags){const o=Zd(e,t);if(o)return 262144&$x(i=o)&&!i.links.type&&mc(i,0)>=0?void 0:ql(o);if(eT(e)&&HT(t)&&+t>=0){const t=aT(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=of(_f(e),n||Bb(Fc(t))))?void 0:r.type}}),!0)}function ND(e,t){if(Fn.assert(Bm(e)),!(67108864&e.flags))return OD(e,t)}function OD(e,t){const n=e.parent,r=JA(e)&&QE(e,t);if(r)return r;const i=BD(n,t);if(i){if(o_(e)){const t=cs(e);return SD(i,t.escapedName,zo(t).nameType)}if(Ly(e)){const t=$c(e);if(t&&cD(t)){const e=WO(t.expression),n=gC(e)&&SD(i,hC(e));if(n)return n}}if(e.name){const t=Wy(e.name);return tE(i,(e=>{var n;return null==(n=of(_f(e),t))?void 0:n.type}),!0)}}}function MD(e,t,n,r,i){return e&&tE(e,(e=>{if(eT(e)){if((void 0===r||ti)?n-t:0,a=o>0&&e.target.hasRestElement?Fh(e.target,3):0;return o>0&&o<=a?Fp(e)[Ip(e)-o]:aT(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||t32&tS(e)?e:$d(e)),!0);return 1048576&t.flags&&YD(e)?function(e,t){return function(e,t){const n=vw(e),r=n&&O(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&RD(e.initializer))),i=r&&qO(r.initializer);return i&&bw(e,i)}(t,e)||QS(t,_e(q(V(e.properties,(e=>!!e.symbol&&303===e.kind&&RD(e.initializer)&&mw(t,e.symbol.escapedName))),(e=>[()=>qO(e.initializer),e.symbol.escapedName])),q(V(Td(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&mw(t,n.escapedName)})),(e=>[()=>Pt,e.escapedName]))),iS)}(e,t):1048576&t.flags&&FA(e)?function(e,t){const n=uA(iA(e));return QS(t,_e(q(V(e.properties,(e=>!!e.symbol&&291===e.kind&&mw(t,e.symbol.escapedName)&&(!e.initializer||RD(e.initializer)))),(e=>[e.initializer?()=>qO(e.initializer):()=>Ut,e.symbol.escapedName])),q(V(Td(t),(r=>{var i;if(!(16777216&r.flags&&(null==(i=null==e?void 0:e.symbol)?void 0:i.members)))return!1;const o=e.parent.parent;return(r.escapedName!==n||!TA(o)||!lv(o.children).length)&&!e.symbol.members.has(r.escapedName)&&mw(t,r.escapedName)})),(e=>[()=>Pt,e.escapedName]))),iS)}(e,t):t}}function $D(e,t,n){if(e&&fO(e,465829888)){const r=pN(t);if(r&&1&n&&le(r.inferences,JO))return UD(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=UD(e,r.returnMapper);return 1048576&t.flags&&jh(t.types,Kt)&&jh(t.types,qt)?Qw(t,(e=>e!==Kt&&e!==qt)):t}}return e}function UD(e,t){return 465829888&e.flags?Mx(e,t):1048576&e.flags?ly(q(e.types,(e=>UD(e,t))),0):2097152&e.flags?Ey(q(e.types,(e=>UD(e,t)))):e}function qD(e,t){var n;if(67108864&e.flags)return;const r=dN(e,!t);if(r>=0)return Ti[r];const{parent:i}=e;switch(i.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(G_(n)&&e===n.initializer){const e=QE(n,t);if(e)return e;if(!(8&t)&&$u(n.name)&&n.name.elements.length>0)return gl(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=Hm(e);if(n){let e=tD(n,t);if(e){const t=Fy(n);if(1&t){const n=0!=(2&t);1048576&e.flags&&(e=Qw(e,(e=>!!RL(1,e,n))));const r=RL(1,e,0!=(2&t));if(!r)return;e=r}if(2&t){const t=tE(e,kM);return t&&ly([t,UI(t)])}return e}}}(e,t);case 229:return function(e,t){const n=Hm(e);if(n){const r=Fy(n);let i=tD(n,t);if(i){const t=0!=(2&r);return!e.asteriskToken&&1048576&i.flags&&(i=Qw(i,(e=>!!RL(1,e,t)))),e.asteriskToken?i:RL(0,i,t)}}}(i,t);case 223:return function(e,t){const n=qD(e,t);if(n){const e=kM(n);return e&&ly([e,UI(e)])}}(i,t);case 213:case 214:return nD(i,e);case 170:return function(e){const t=VI(e);return t?tp(t):void 0}(i);case 216:case 234:return Jl(i.type)?qD(i,t):sx(i.type);case 226:return function(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=nh(e);switch(r){case 0:case 4:const i=function(e){if(w_(e)&&e.symbol)return e.symbol;if(qE(e))return ow(e);if(QD(e)){const t=KO(e.expression);return WE(e.name)?function(e,t){const n=vP(t.escapedText,t);return n&&SP(e,n)}(t,e.name):Zd(t,e.name.escapedText)}if(ZD(e)){const t=DO(e.argumentExpression);if(!gC(t))return;return Zd(KO(e.expression),hC(t))}}(e.left),o=i&&i.valueDeclaration;if(o&&(fD(o)||dD(o))){const t=rb(o);return t&&Mx(sx(t),zo(i).mapper)||(fD(o)?o.initializer&&KO(e.left):void 0)}return 0===r?KO(e.left):aD(e);case 5:if(iD(e,r))return aD(e);if(w_(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=xt(e.left,lS),r=rb(t);if(r)return sx(r);if(qE(n.expression)){const e=n.expression,t=Ho(e,e.escapedText,111551,void 0,e.escapedText,!0);if(t){const e=t.valueDeclaration&&rb(t.valueDeclaration);if(e){const t=_h(n);if(void 0!==t)return SD(sx(e),t)}return}}return Pg(t)||t===e.left?void 0:KO(e.left)}return KO(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=w_(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&rb(a);return s?sx(s):void 0;case 7:case 8:case 9:return Fn.fail("Does not apply");default:return Fn.assertNever(r)}}(n):void 0;case 57:case 61:const i=qD(n,t);return e===o&&(i&&i.pattern||!i&&!Gg(n))?KO(r):i;case 56:case 28:return e===o?qD(n,t):void 0;default:return}}(e,t);case 303:case 304:return OD(i,t);case 305:return qD(i.parent,t);case 209:{const r=i,o=BD(r,t),a=sp(r.elements,e),s=(n=$o(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;rjk(e)?Mv(e,Jb(a)):e),!0))}(n,e,t):void 0}(i,t);case 291:case 293:return LD(i,t);case 286:case 285:return function(e,t){if(wA(e)&&4!==t){const n=dN(e.parent,!t);if(n>=0)return Ti[n]}return rD(e,0)}(i,t)}}function rN(e){sN(e,qD(e,void 0),!0)}function sN(e,t,n){ki[wi]=e,Ti[wi]=t,Ci[wi]=n,wi++}function lN(){wi--}function dN(e,t){for(let n=wi-1;n>=0;n--)if(e===ki[n]&&(t||!Ci[n]))return n;return-1}function pN(e){for(let t=Ni-1;t>=0;t--)if(iy(e,Ei[t]))return Di[t]}function mN(e,t){return 0!==kF(t)?function(e,t){let n=OI(e,Nt);n=gN(t,iA(t),n);const r=qN(gB.IntrinsicAttributes,t);return wc(r)||(n=M_(r,n)),n}(e,t):function(e,t){const n=iA(t),r=(i=n,lA(gB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?OI(e,Nt):""===r?qf(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=qf(r);if(Cc(e))return e;const i=xc(e,t);if(!i)return;n.push(i)}return Ey(n)}const n=qf(e);return Cc(n)?n:xc(n,t)}(e,r);if(!o)return r&&C(t.attributes.properties)&&So(t,Ra.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Fc(r)),Nt;if(o=gN(t,n,o),Cc(o))return o;{let n=o;const r=qN(gB.IntrinsicClassAttributes,t);if(!wc(r)){const i=ru(r.symbol),o=qf(e);let a;a=i?Mx(r,mx(i,Af([o],i,Nf(i),Pg(t)))):r,n=M_(a,n)}const i=qN(gB.IntrinsicAttributes,t);return wc(i)||(n=M_(i,n)),n}}(e,t)}function gN(e,t,n){const r=(i=t)&&Ko(i.exports,gB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if($N(e.tagName))return tp(WF(e,pA(e)));const t=DO(e.tagName);if(128&t.flags){const n=dA(t,e);return n?tp(WF(e,n)):Ct}return t}(e),i=EA(r,Pg(e),t,n);if(i)return i}return n}function xN(e,t){const n=V(tf(e,0),(e=>!function(e,t){let n=0;for(;ne!==t&&e?P_(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=mx(t.typeParameters,e.typeParameters));const i=e.declaration,o=function(e,t,n){const r=DI(e),i=DI(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=AI(e)||AI(t),l=c&&!AI(o),u=new Array(s+(l?1:0));for(let _=0;_=NI(o)&&_>=NI(a),h=_>=r?void 0:xI(e,_),y=_>=i?void 0:xI(t,_),v=Ao(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${_}`);v.links.type=m?Qg(p):p,u[_]=v}if(l){const e=Ao(1,"args");e.links.type=Qg(CI(a,s)),a===t&&(e.links.type=Mx(e.links.type,n)),u[s]=e}return u}(e,t,r),a=function(e,t,n){return e&&t?JT(e,ly([ql(e),Mx(ql(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),s=v_(i,n,a,o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),167&(e.flags|t.flags));return s.compositeKind=2097152,s.compositeSignatures=_e(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(s.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?Sx(e.mapper,r):r),s}(e,t):void 0:e)):void 0);var r}function SN(e){return qT(e)||Bm(e)?kN(e):void 0}function kN(e){Fn.assert(174!==e.kind||Bm(e));const t=Rf(e);if(t)return t;const n=BD(e,1);if(!n)return;if(!(1048576&n.flags))return xN(n,e);let r;const i=n.types;for(const t of i){const n=xN(t,e);if(n)if(r){if(!Ak(r[0],n,!1,!0,!0,Xx))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:x_(r[0],r):void 0}function CN(e){return 208===e.kind&&!!e.initializer||226===e.kind&&64===e.operatorToken.kind}function wN(e,t,n){const r=e.elements,i=r.length,o=[],a=[];rN(e);const s=Hh(e),c=IO(e),l=BD(e,void 0),u=function(e){const t=Zh(e.parent);return hN(t)&&t_(t.parent)}(e)||!!l&&Xw(l,$k);let _=!1;for(let c=0;c8&a[t]?jv(e,zt)||St:e)),2):F?tn:Ft,c))}function EN(e){const t=$o(e.expression);if(!t.resolvedType){if((DD(e.parent.parent)||Pu(e.parent.parent)||ZN(e.parent.parent))&&fN(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Ct;if(t.resolvedType=WO(e.expression),fD(e.parent)&&!xb(e.parent)&&yN(e.parent.parent)){const t=ME(jp(e.parent.parent));t&&($o(t).flags|=4096,$o(e).flags|=32768,$o(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!pO(t.resolvedType,402665900)&&!iS(t.resolvedType,cn))&&So(e,Ra.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function NN(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return HT(e.escapedName)||n&&Jc(n)&&function(e){switch(e.kind){case 167:return function(e){return pO(EN(e),296)}(e);case 80:return HT(e.escapedText);case 9:case 11:return HT(e.text);default:return!1}}(n.name)}function FN(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Ky(e)||n&&Jc(n)&&cD(n.name)&&pO(EN(n.name),4096)}function MN(e,t,n,r){const i=[];for(let e=t;e1&&n.declarations&&So(n.declarations[0],Ra.The_global_type_JSX_0_may_not_have_more_than_one_property,Fc(e))}}function uA(e){return lA(gB.ElementChildrenAttributeNameContainer,e)}function _A(e,t){if(4&e.flags)return[ri];if(128&e.flags){const n=dA(e,t);return n?[WF(t,n)]:(So(t,Ra.Property_0_does_not_exist_on_type_1,e.value,"JSX."+gB.IntrinsicElements),a)}const n=$d(e);let r=tf(n,1);return 0===r.length&&(r=tf(n,0)),0===r.length&&1048576&n.flags&&(r=N_(q(n.types,(e=>_A(e,t))))),r}function dA(e,t){const n=qN(gB.IntrinsicElements,t);if(!wc(n)){const t=Zd(n,Pc(e.value));if(t)return ql(t);return pf(n,Jt)||void 0}return St}function pA(e){Fn.assert($N(e.tagName));const t=$o(e);if(!t.resolvedJsxElementAttributesType){const n=WN(e);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=ql(n)||Ct:2&t.jsxFlags?t.resolvedJsxElementAttributesType=pf(qN(gB.IntrinsicElements,e),Jt)||Ct:t.resolvedJsxElementAttributesType=Ct}return t.resolvedJsxElementAttributesType}function bA(e){const t=qN(gB.ElementClass,e);if(!wc(t))return t}function xA(e){return qN(gB.Element,e)}function SA(e){const t=xA(e);if(t)return ly([t,Rt])}function EA(e,t,...n){const r=ju(e);if(524288&e.flags){const i=zo(e).typeParameters;if(C(i)>=n.length){const o=Af(n,i,n.length,t);return 0===C(o)?r:Vp(e,o)}}if(C(r.typeParameters)>=n.length)return Np(r,Af(n,r.typeParameters,n.length,t))}function DA(e){const t=J_(e);var n;if(t&&function(e){(function(e){if(QD(e)&&MA(e.expression))return _B(e.expression,Ra.JSX_property_access_expressions_cannot_include_JSX_namespace_names);MA(e)&&kk(S)&&!vv(e.namespace.escapedText)&&_B(e,Ra.React_components_cannot_include_JSX_namespace_names)})(e.tagName),Jj(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,i=uC(e);if(t.get(i))return _B(e,Ra.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&294===r.kind&&!r.expression)return _B(r,Ra.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(S.jsx||0)&&So(n,Ra.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===xA(n)&&W&&So(n,Ra.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!HN(e)){const n=ro&&2===S.jsx?Ra.Cannot_find_name_0:void 0,r=ho(e),i=t?e.tagName:e;let o;if(NA(e)&&"null"===r||(o=Ho(i,r,111551,n,r,!0)),o&&(o.isReferenced=67108863,Te&&2097152&o.flags&&!ja(o)&&Ja(o)),NA(e)){const t=yo(Ff(e));t&&Ho(i,t,111551,n,t,!0)}}if(t){const t=e,n=XF(t);eI(n,e);const r=function(e){const t=iA(e);if(!t)return;const n=(r=t)&&Ko(r.exports,gB.ElementType,788968);var r;if(!n)return;const i=EA(n,Pg(e));return i&&!wc(i)?i:void 0}(t);if(void 0!==r){const e=t.tagName;VS($N(e)?Bb(mC(e)):WO(e),r,co,e,Ra.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=op(e);return RS(void 0,Ra._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=SA(n);e&&VS(t,e,co,n.tagName,Ra.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=bA(n);e&&VS(t,e,co,n.tagName,Ra.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=SA(n),i=bA(n);if(!e||!i)return;VS(t,ly([e,i]),co,n.tagName,Ra.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=op(n.tagName);return RS(void 0,Ra._0_cannot_be_used_as_a_JSX_component,e)}}(kF(t),qf(n),t)}}function AA(e,t,n){if(524288&e.flags){if(Sd(e,t)||Sf(e,t)||n_(t)&&ff(e,Jt)||n&&zN(t))return!0}else if(3145728&e.flags&&OA(e))for(const r of e.types)if(AA(r,t,n))return!0;return!1}function OA(e){return!!(524288&e.flags&&!(512&tS(e))||67108864&e.flags||1048576&e.flags&&le(e.types,OA)||2097152&e.flags&&I(e.types,OA))}function LA(e){return e.valueDeclaration?MB(e.valueDeclaration):0}function RA(e){if(8192&e.flags||4&$x(e))return!0;if(Pg(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&fN(t)&&3===nh(t)}}function KA(e,t,n,r,i,o=!0){return qA(e,t,n,r,i,o?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function qA(e,t,n,r,i,o){const a=Vx(i,n);if(t){if(k<2&&WA(i))return o&&So(o,Ra.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(256&a)return o&&So(o,Ra.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Hs(i),Ys(xk(i))),!1}if(256&a&&WA(i)&&(cg(e)||ug(e)||WD(e.parent)&&lg(e.parent.parent))){const t=eS(us(i));if(t&&Dc(e,(e=>!!(hD(e)&&zf(e.body)||fD(e))||!(!Pu(e)&&!Cu(e))&&"quit")))return o&&So(o,Ra.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Hs(i),Jy(t.name)),!1}if(!(24&a))return!0;if(8&a)return!!OR(e,eS(us(i)))||(o&&So(o,Ra.Property_0_is_private_and_only_accessible_within_class_1,Hs(i),Ys(xk(i))),!1);if(t)return!0;let s=IR(e,(e=>wk(ju(cs(e)),i,n)));return!s&&(s=function(e){const t=function(e){const t=eg(e,!1,!1);return t&&ku(t)?Xv(t):void 0}(e);let n=(null==t?void 0:t.type)&&sx(t.type);if(n&&262144&n.flags&&(n=wd(n)),n&&7&tS(n))return Xl(n)}(e),s=s&&wk(s,i,n),32&a||!s)?(o&&So(o,Ra.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Hs(i),Ys(xk(i)||r)),!1):!!(32&a)||(262144&r.flags&&(r=r.isThisType?wd(r):Od(r)),!(!r||!Yl(r,s))||(o&&So(o,Ra.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Hs(i),Ys(s),Ys(r)),!1))}function WA(e){return!!bk(e,(e=>!(8192&e.flags)))}function YA(e){return fP(WO(e),e)}function QA(e){return!!(50331648&ww(e))}function ZA(e){return QA(e)?bT(e):e}function sP(e,t){const n=Qb(e)?Up(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(qE(e)&&"undefined"===n)return void So(e,Ra.The_value_0_cannot_be_used_here,"undefined");So(e,16777216&t?33554432&t?Ra._0_is_possibly_null_or_undefined:Ra._0_is_possibly_undefined:Ra._0_is_possibly_null,n)}else So(e,16777216&t?33554432&t?Ra.Object_is_possibly_null_or_undefined:Ra.Object_is_possibly_undefined:Ra.Object_is_possibly_null);else So(e,Ra.The_value_0_cannot_be_used_here,"null")}function cP(e,t){So(e,16777216&t?33554432&t?Ra.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Ra.Cannot_invoke_an_object_which_is_possibly_undefined:Ra.Cannot_invoke_an_object_which_is_possibly_null)}function dP(e,t,n){if(F&&2&e.flags){if(Qb(t)){const e=Up(t);if(e.length<100)return So(t,Ra._0_is_of_type_unknown,e),Ct}return So(t,Ra.Object_is_of_type_unknown),Ct}const r=ww(e);if(50331648&r){n(t,r);const i=bT(e);return 229376&i.flags?Ct:i}return e}function fP(e,t){return dP(e,t,sP)}function mP(e,t){const n=fP(e,t);if(16384&n.flags){if(Qb(t)){const e=Up(t);if(qE(t)&&"undefined"===e)return So(t,Ra.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return So(t,Ra._0_is_possibly_undefined,e),n}So(t,Ra.Object_is_possibly_undefined)}return n}function gP(e,t,n){return 64&e.flags?function(e,t){const n=WO(e.expression),r=FT(n,e.expression);return AT(wP(e,e.expression,fP(r,e.expression),e.name,t),e,r!==n)}(e,t):wP(e,e.expression,YA(e.expression),e.name,t,n)}function hP(e,t){const n=kg(e)&&Qv(e.left)?fP(JE(e.left),e.left):YA(e.left);return wP(e,e.left,n,e.right,t)}function yP(e){for(;217===e.parent.kind;)e=e.parent;return t_(e.parent)&&e.parent.expression===e}function vP(e,t){for(let n=Zm(t);n;n=Xm(n)){const{symbol:t}=n,r=Vy(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function xP(e){if(!xg(e))return;const t=$o(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=vP(e.escapedText,e)),t.resolvedSymbol}function SP(e,t){return Zd(e,t.escapedName)}function kP(e,t){return(nl(t)||cg(e)&&rl(t))&&eg(e,!0,!1)===il(t)}function wP(e,t,n,r,i,o){const a=$o(t).resolvedSymbol,s=Wh(e),c=$d(0!==s||yP(e)?dC(n):n),l=Cc(c)||c===en;let u,_;if(WE(r)){k<99&&(0!==s&&Pj(e,1048576),1!==s&&Pj(e,524288));const t=vP(r.escapedText,r);if(s&&t&&t.valueDeclaration&&mD(t.valueDeclaration)&&_B(r,Ra.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Ic(r)),l){if(t)return wc(c)?Ct:c;if(void 0===Zm(r))return _B(r,Ra.Private_identifiers_are_not_allowed_outside_class_bodies),St}if(u=t&&SP(n,t),void 0===u){if(function(e,t,n){let r;const i=Td(e);i&&w(i,(e=>{const n=e.valueDeclaration;if(n&&Jc(n)&&WE(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=ra(t);if(r){const i=Fn.checkDefined(r.valueDeclaration),a=Fn.checkDefined(Xm(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=Xm(r);if(Fn.assert(!!s),Dc(s,(e=>a===e)))return mT(So(t,Ra.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Ys(e)),qp(r,Ra.The_shadowing_declaration_of_0_is_defined_here,o),qp(i,Ra.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return So(t,Ra.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,ra(a.name||iB)),!0}return!1}(n,r,t))return Ct;const e=Zm(r);e&&Of(Ff(e),S.checkJs)&&_B(r,Ra.Private_field_0_must_be_declared_in_an_enclosing_class,Ic(r))}else 65536&u.flags&&!(32768&u.flags)&&1!==s&&So(e,Ra.Private_accessor_was_defined_without_a_getter)}else{if(l)return qE(t)&&a&&IE(a,e),wc(c)?Ct:c;u=Zd(c,r.escapedText,!1,166===e.kind)}if(qE(t)&&a&&(ek(S)||!u||!(nj(u)||8&u.flags&&306===e.parent.kind)||fk(S)&&FE(e))&&IE(a,e),u){const n=fR(u,r);if(Eo(n)&&gv(e,n)&&n.declarations&&No(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||Ff(t).isDeclarationFile)return;let i;const o=Ic(n);!OP(t)||function(e){return fD(e)&&!Cb(e)&&e.questionToken}(r)||lS(t)&&lS(t.expression)||Uo(r,n)||mD(r)&&32&OB(r)||!N&&function(e){if(!(32&e.parent.flags))return!1;let t=ql(e.parent);for(;;){if(t=t.symbol&&MP(t),!t)return!1;const n=Zd(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||Uo(r,n)||(i=So(n,Ra.Class_0_used_before_its_declaration,o)):i=So(n,Ra.Property_0_is_used_before_its_initialization,o),i&&mT(i,qp(r,Ra._0_is_declared_here,o))}(u,e,r),qP(u,e,WP(t,a)),$o(e).resolvedSymbol=u,KA(e,108===t.kind,Wx(e),c,u),cO(e,u,s))return So(r,Ra.Cannot_assign_to_0_because_it_is_a_read_only_property,Ic(r)),Ct;_=kP(e,u)?kt:o||qx(e)?Ul(u):ql(u)}else{const t=WE(r)||0!==s&&Dv(n)&&!XT(n)?void 0:Sf(c,r.escapedText);if(!t||!t.type){const t=AP(e,n.symbol,!0);return!t&&fv(n)?St:n.symbol===me?(me.exports.has(r.escapedText)&&418&me.exports.get(r.escapedText).flags?So(r,Ra.Property_0_does_not_exist_on_type_1,Fc(r.escapedText),Ys(n)):W&&So(r,Ra.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ys(n)),St):(r.escapedText&&!aa(e)&&LP(r,XT(n)?c:n,t),Ct)}t.isReadonly&&(Hh(e)||ry(e))&&So(e,Ra.Index_signature_in_type_0_only_permits_reading,Ys(c)),_=S.noUncheckedIndexedAccess&&!Hh(e)?ly([t.type,It]):t.type,S.noPropertyAccessFromIndexSignature&&QD(e)&&So(r,Ra.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Fc(r.escapedText)),t.declaration&&Do(t.declaration)&&No(r,[t.declaration],r.escapedText)}return FP(e,u,_,r,i)}function AP(e,t,n){const r=Ff(e);if(r&&void 0===S.checkJs&&void 0===r.checkJsDirective&&(1===r.scriptKind||2===r.scriptKind)){const i=w(null==t?void 0:t.declarations,Ff);return!(r!==i&&i&&Vo(i)||n&&t&&32&t.flags||e&&n&&QD(e)&&110===e.expression.kind)}return!1}function FP(e,t,n,r,i){const o=Wh(e);if(1===o)return MT(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!xR(t.declarations))return n;if(n===kt)return al(e,t);n=PE(n,e,i);let a=!1;if(F&&K&&lS(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&nR(n)&&!bb(n)){const t=kE(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else F&&t&&t.valueDeclaration&&QD(t.valueDeclaration)&&dh(t.valueDeclaration)&&kE(e)===kE(t.valueDeclaration)&&(a=!0);const s=SE(e,n,a?pT(n):n);return a&&!DS(n)&&DS(s)?(So(r,Ra.Property_0_is_used_before_being_assigned,Hs(t)),n):o?Hk(s):s}function OP(e){return!!Dc(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!AN(e.parent)||!gD(e.parent.parent))||"quit";default:return!xg(e)&&"quit"}}))}function MP(e){const t=gu(e);if(0!==t.length)return Ey(t)}function LP(e,t,n){let r,i;if(!WE(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!Zd(n,e.escapedText)&&!Sf(n,e.escapedText)){r=RS(r,Ra.Property_0_does_not_exist_on_type_1,Jp(e),Ys(n));break}if(RP(e.escapedText,t)){const n=Jp(e),i=Ys(t);r=RS(r,Ra.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,i,i+"."+n)}else{const o=gM(t);if(o&&Zd(o,e.escapedText))r=RS(r,Ra.Property_0_does_not_exist_on_type_1,Jp(e),Ys(t)),i=qp(e,Ra.Did_you_forget_to_use_await);else{const o=Jp(e),a=Ys(t),s=function(e,t){const n=$d(t).symbol;if(!n)return;const r=Mc(n),i=up().get(r);if(i)for(const[t,n]of i)if(B(n,e))return t}(o,t);if(void 0!==s)r=RS(r,Ra.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,o,a,s);else{const s=JP(e,t);if(void 0!==s){const e=Mc(s);r=RS(r,n?Ra.Property_0_may_not_exist_on_type_1_Did_you_mean_2:Ra.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,a,e),i=s.valueDeclaration&&qp(s.valueDeclaration,Ra._0_is_declared_here,e)}else{const e=function(e){return S.lib&&!S.lib.includes("dom")&&(n=e=>e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Fc(e.symbol.escapedName)),3145728&(t=e).flags?I(t.types,n):n(t))&&wS(e);var t,n}(t)?Ra.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Ra.Property_0_does_not_exist_on_type_1;r=RS(Qd(r,t),e,o,a)}}}}const o=Gp(Ff(e),e,r);i&&mT(o,i),ko(!n||r.code!==Ra.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,o)}function RP(e,t){const n=t.symbol&&Zd(ql(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&bb(n.valueDeclaration)}function jP(e,t){return UP(e,Td(t),106500)}function JP(e,t){let n=Td(t);if("string"!=typeof e){const r=e.parent;QD(r)&&(n=V(n,(e=>HP(r,t,e)))),e=Ic(e)}return UP(e,n,111551)}function zP(e,t){const n=yt(e)?e:Ic(e),r=Td(t);return("for"===n?O(r,(e=>"htmlFor"===Mc(e))):"class"===n?O(r,(e=>"className"===Mc(e))):void 0)??UP(n,r,111551)}function $P(e,t){const n=JP(e,t);return n&&Mc(n)}function VP(e,t,n){return Fn.assert(void 0!==t,"outername should always be defined"),Go(e,t,n,void 0,t,!1,!1,!0,((e,n,r)=>{Fn.assertEqual(t,n,"name should equal outerName");const i=Ko(e,n,r);if(i)return i;let o;return o=e===ue?te(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Ao(524288,t):void 0)).concat(Ze(e.values())):Ze(e.values()),UP(Fc(n),o,r)}))}function KP(e,t){return t.exports&&UP(Ic(e),Za(t),2623475)}function UP(e,t,n){return Yt(e,t,(function(e){const t=Mc(e);if(!fn(t,'"')){if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(zo(e).aliasTarget!==mt)return Ia(e)}(e);if(r&&r.flags&n)return t}}}))}function qP(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=yb(r,8),o=e.valueDeclaration&&Jc(e.valueDeclaration)&&WE(e.valueDeclaration.name);if((i||o)&&(!t||!qx(t)||65536&e.flags)){if(n){const n=Dc(t,Cu);if(n&&n.symbol===e)return}(1&$x(e)?zo(e).target:e).isReferenced=67108863}}function WP(e,t){return 110===e.kind||!!t&&Qb(e)&&t===ow(Zb(e))}function HP(e,t,n){return XP(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function GP(e,t,n,r){if(Cc(r))return!0;const i=Zd(r,n);return!!i&&XP(e,t,!1,r,i)}function XP(e,t,n,r,i){if(Cc(r))return!0;if(i.valueDeclaration&&pu(i.valueDeclaration)){const t=Xm(i.valueDeclaration);return!Ml(e)&&!!Dc(e,(e=>e===t))}return qA(e,t,n,r,i)}function YP(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!$u(e.name))return cs(e)}else if(80===t.kind)return ow(t)}function QP(e,t,n){const r=0!==Wh(e)||yP(e)?dC(t):t,i=e.argumentExpression,o=WO(i);if(wc(r)||r===en)return r;if(gO(r)&&!ed(i))return So(i,Ra.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ct;const a=function(e){const t=ny(e);if(80===t.kind){const r=ow(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(249===i.kind&&t===i.statement&&YP(i)===r&&1===df(n=KO(i.expression)).length&&ff(n,zt))return!0;t=i,i=i.parent}}}var n;return!1}(i)?zt:o,s=jv(r,a,Hh(e)?4|(Dv(r)&&!XT(r)?2:0):32,e)||Ct;return uM(FP(e,$o(e).resolvedSymbol,s,i,n),e)}function ZP(e){return t_(e)||nN(e)||J_(e)}function eF(e){return ZP(e)&&w(e.typeArguments,SR),215===e.kind?WO(e.template):J_(e)?WO(e.attributes):170!==e.kind&&w(e.arguments,(e=>{WO(e)})),ri}function tF(e){return eF(e),ii}function rF(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function iF(e){return L(e,rF)}function cF(e){return!!(16384&e.flags)}function _F(e){return!!(49155&e.flags)}function dF(e,t,n,r=!1){let i,o=!1,a=DI(n),s=NI(n);if(215===e.kind)if(i=t.length,228===e.template.kind){const t=Be(e.template.templateSpans);o=Jf(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;Fn.assert(15===t.kind),o=!!t.isUnterminated}else if(170===e.kind)i=DF(e,n);else if(J_(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return Fn.assert(214===e.kind),0===NI(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=iF(t);if(a>=0)return a>=NI(n)&&(AI(n)||aa)return!1;if(o||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function pF(e){return gF(e,0,!1)}function mF(e){return gF(e,0,!1)||gF(e,1,!1)}function gF(e,t,n){if(524288&e.flags){const r=bd(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function hF(e,t,n,r){const i=kC(e.typeParameters,e,0,r),o=PI(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return xC(a?wx(t,a):t,e,((e,t)=>{HC(i.inferences,e,t)})),n||SC(t,e,((e,t)=>{HC(i.inferences,e,t,128)})),Xf(e,nw(i),Pg(t.declaration))}function yF(e){if(!e)return Xt;const t=WO(e);return Ll(e.parent)?bT(t):Ml(e.parent)?NT(t):t}function vF(e,t,n,r,i){if(J_(e))return function(e,t,n,r){const i=mN(t,e),o=EO(e.attributes,i,r,n);return HC(r.inferences,o,i),nw(r)}(e,t,r,i);if(170!==e.kind){const n=I(t.typeParameters,(e=>!!Bd(e))),r=qD(e,n?8:0);if(r){const o=qf(t);if(AC(o)){const a=pN(e);if(n||qD(e,8)===r){const e=NC(function(e,t=0){return e&&TC(q(e.inferences,DC),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=Mx(r,e),n=pF(t),s=n&&n.typeParameters?tp(Yf(n,n.typeParameters)):t;HC(i.inferences,s,o,128)}const s=kC(t.typeParameters,t,i.flags),c=Mx(r,a&&a.returnMapper);HC(s.inferences,c,o),i.returnMapper=le(s.inferences,BO)?NC(function(e){const t=V(e.inferences,BO);return t.length?TC(q(t,DC),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=FI(t),a=o?Math.min(DI(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=O(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=L(n,rF,a)<0?n.length-a:void 0)}const s=Vf(t);if(s&&AC(s)){const t=CF(e);HC(i.inferences,yF(t),s)}for(let e=0;e=n-1){const t=e[n-1];if(rF(t)){const e=237===t.kind?t.type:EO(t.expression,r,i,o);return jk(e)?bF(e):Qg(mL(33,e,Pt,230===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let u=t;uRS(void 0,Ra.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||Ra.Type_0_does_not_satisfy_the_constraint_1;s||(s=mx(o,a));const u=a[e];if(!uS(u,f_(Mx(i,s),u),n?t[e]:void 0,l,c))return}}return a}function kF(e){if($N(e.tagName))return 2;const t=$d(WO(e.tagName));return C(tf(t,1))?0:C(tf(t,0))?1:2}function TF(e,t,n,r,i,o,s){const c={errors:void 0,skipLogging:!0};if(J_(e))return function(e,t,n,r,i,o,a){const s=mN(t,e),c=EO(e.attributes,s,void 0,r),l=4&r?zT(c):c;return function(){var t;if(HN(e))return!0;const n=!wA(e)&&!CA(e)||$N(e.tagName)||MA(e.tagName)?void 0:WO(e.tagName);if(!n)return!0;const r=tf(n,0);if(!C(r))return!0;const o=Dj(e);if(!o)return!0;const s=Va(o,111551,!0,!1,e);if(!s)return!0;const c=tf(ql(s),0);if(!C(c))return!0;let l=!1,u=0;for(const e of c){const t=tf(CI(e,0),0);if(C(t))for(const e of t){if(l=!0,AI(e))return!0;const t=DI(e);t>u&&(u=t)}}if(!l)return!0;let _=1/0;for(const e of r){const t=NI(e);t<_&&(_=t)}if(_<=u)return!0;if(i){const n=qp(e.tagName,Ra.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Up(e.tagName),_,Up(o),u),r=null==(t=jR(e.tagName))?void 0:t.valueDeclaration;r&&mT(n,qp(r,Ra._0_is_declared_here,Up(e.tagName))),a&&a.skipLogging&&(a.errors||(a.errors=[])).push(n),a.skipLogging||ro.add(n)}return!1}()&&dS(l,s,n,i?e.tagName:void 0,e.attributes,void 0,o,a)}(e,n,r,i,o,s,c)?void 0:(Fn.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||a);const l=Vf(n);if(l&&l!==Xt&&!(tN(e)||eN(e)&&sg(e.expression))){const t=CF(e),n=yF(t),i=o?t||e:void 0,u=Ra.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!VS(n,l,r,i,u,s,c))return Fn.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||a}const u=Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,_=FI(n),d=_?Math.min(DI(n)-1,t.length):t.length;for(let e=0;e{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=VI(e);if(n){const e=[];for(const r of n.parameters){const n=ql(r);e.push(wF(t,n))}return e}return Fn.fail()}(e);if(J_(e))return e.attributes.properties.length>0||wA(e)&&e.parent.children.length>0?[e.attributes]:a;const t=e.arguments||a,n=iF(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r{var o;const a=i.target.elementFlags[r],s=wF(n,4&a?Qg(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function DF(e,t){return S.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return Cb(e.parent)?3:2;case 174:case 177:case 178:return 0===k||t.parameters.length<=2?2:3;case 169:return 3;default:return Fn.fail()}}(e,t):2}function NF(e,t){let n,r;const i=Ff(e);if(QD(e.expression)){const o=im(i,e.expression.name);n=o.start,r=t?o.length:e.end-n}else{const o=im(i,e.expression);n=o.start,r=t?o.length:e.end-n}return{start:n,length:r,sourceFile:i}}function FF(e,t,...n){if(eN(e)){const{sourceFile:r,start:i,length:o}=NF(e);return"message"in t?IS(r,i,o,t,...n):Zp(r,t)}return"message"in t?qp(e,t,...n):Gp(Ff(e),e,t)}function IF(e,t,n,r){var i;const o=iF(n);if(o>-1)return qp(n[o],Ra.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;for(const e of t){const t=NI(e),r=DI(e);tl&&(l=t),n.length1&&(y=k(d,ao,p,x)),y||(y=k(d,co,p,x)),y)return y;if(y=function(e,t,n,r,i){return Fn.assert(t.length>0),CR(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===ge?n.length:ge),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=ZP(e)?e.typeArguments:void 0,c=s?Qf(o,function(e,t,n){const r=e.map(BR);for(;r.length>t.length;)r.pop();for(;r.lengthe.thisParameter));let n;t.length&&(n=LF(t,t.map(vI)));const{min:r,max:i}=gT(e,MF),o=[];for(let t=0;tDB(e)?twI(e,t)))))}const a=te(e,(e=>DB(e)?Be(e.parameters):void 0));let s=128;if(0!==a.length){const t=Qg(ly(te(e,Gf),2));o.push(RF(a,t)),s|=1}return e.some(NB)&&(s|=2),v_(e[0].declaration,void 0,n,o,Ey(e.map(qf)),void 0,r,s)}(t)}(e,d,f,!!n,r),$o(e).resolvedSignature=y,u)if(m)if(1===m.length||m.length>3){const t=m[m.length-1];let n;m.length>3&&(n=RS(n,Ra.The_last_overload_gave_the_following_error),n=RS(n,Ra.No_overload_matches_this_call)),o&&(n=RS(n,o));const r=TF(e,f,t,co,0,!0,(()=>n));if(r)for(const e of r)t.declaration&&m.length>3&&mT(e,qp(t.declaration,Ra.The_last_overload_is_declared_here)),S(t,e),ro.add(e);else Fn.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,a=0;for(const o of m){const s=TF(e,f,o,co,0,!0,(()=>RS(void 0,Ra.Overload_0_of_1_2_gave_the_following_error,a+1,d.length,Xs(o))));s?(s.length<=r&&(r=s.length,i=a),n=Math.max(n,s.length),t.push(s)):Fn.fail("No error for 3 or fewer overload signatures"),a++}const s=n>1?t[i]:G(t);Fn.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=RS(q(s,em),Ra.No_overload_matches_this_call);o&&(c=RS(c,o));const l=[...X(s,(e=>e.relatedInformation))];let u;if(I(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];u={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else u=Gp(Ff(e),e,c,l);S(m[0],u),ro.add(u)}else if(g)ro.add(IF(e,[g],f,o));else if(h)SF(h,e.typeArguments,!0,o);else{const n=V(t,(e=>fF(e,_)));0===n.length?ro.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=Nf(o.typeParameters),s=C(o.typeParameters);if(r){let t=RS(void 0,Ra.Expected_0_type_arguments_but_got_1,ai?a=Math.min(a,t):n1?O(c,(e=>Cu(e)&&zf(e.body))):void 0;if(l){const e=Lf(l),n=!e.typeParameters;k([e],co,n)&&mT(t,qp(l,Ra.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,g=o,h=s}function k(t,n,r,i=!1){if(m=void 0,g=void 0,h=void 0,r){const r=t[0];if(le(_)||!dF(e,f,r,i))return;return TF(e,f,r,n,0,!1,void 0)?void(m=[r]):r}for(let r=0;r=0&&So(e.arguments[t],Ra.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let r=YA(e.expression);if(r===en)return ai;if(r=$d(r),wc(r))return tF(e);if(Cc(r))return e.typeArguments&&So(e,Ra.Untyped_function_calls_may_not_accept_type_arguments),eF(e);const i=tf(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=Db(n,24);if(!r||176!==n.kind)return!0;const i=eS(n.parent.symbol),o=ju(n.parent.symbol);if(!OR(e,i)){const t=Xm(e);if(t&&16&r){const e=BR(t);if(VF(n.parent.symbol,e))return!0}return 8&r&&So(e,Ra.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ys(o)),16&r&&So(e,Ra.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ys(o)),!1}return!0}(e,i[0]))return tF(e);if($F(i,(e=>!!(4&e.flags))))return So(e,Ra.Cannot_create_an_instance_of_an_abstract_class),tF(e);const o=r.symbol&&eS(r.symbol);return o&&vb(o,256)?(So(e,Ra.Cannot_create_an_instance_of_an_abstract_class),tF(e)):OF(e,i,t,n,0)}const o=tf(r,0);if(o.length){const r=OF(e,o,t,n,0);return W||(r.declaration&&!YF(r.declaration)&&qf(r)!==Xt&&So(e,Ra.Only_a_void_function_can_be_called_with_the_new_keyword),Vf(r)===Xt&&So(e,Ra.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return UF(e.expression,r,1),tF(e)}function $F(e,t){return gt(e)?le(e,(e=>$F(e,t))):1048576===e.compositeKind?le(e.compositeSignatures,t):t(e)}function VF(e,t){const n=gu(t);if(!C(n))return!1;const r=n[0];if(2097152&r.flags){const t=L_(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&tS(i)){if(i.symbol===e)return!0;if(VF(e,i))return!0}n++}return!1}return r.symbol===e||VF(e,r)}function KF(e,t,n){let r;const i=0===n,o=SM(t),a=o&&tf(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e)if(0!==tf(a,n).length){if(o=!0,r)break}else if(r||(r=RS(r,i?Ra.Type_0_has_no_call_signatures:Ra.Type_0_has_no_construct_signatures,Ys(a)),r=RS(r,i?Ra.Not_all_constituents_of_type_0_are_callable:Ra.Not_all_constituents_of_type_0_are_constructable,Ys(t))),o)break;o||(r=RS(void 0,i?Ra.No_constituent_of_type_0_is_callable:Ra.No_constituent_of_type_0_is_constructable,Ys(t))),r||(r=RS(r,i?Ra.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Ra.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ys(t)))}else r=RS(r,i?Ra.Type_0_has_no_call_signatures:Ra.Type_0_has_no_construct_signatures,Ys(t));let s=i?Ra.This_expression_is_not_callable:Ra.This_expression_is_not_constructable;if(eN(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=$o(e);t&&32768&t.flags&&(s=Ra.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:RS(r,s),relatedMessage:a?Ra.Did_you_forget_to_use_await:void 0}}function UF(e,t,n,r){const{messageChain:i,relatedMessage:o}=KF(e,t,n),a=Gp(Ff(e),e,i);if(o&&mT(a,qp(e,o)),eN(e.parent)){const{start:t,length:n}=NF(e.parent,!0);a.start=t,a.length=n}ro.add(a),qF(t,n,r?mT(a,r):a)}function qF(e,t,n){if(!e.symbol)return;const r=zo(e.symbol).originatingImport;if(r&&!pm(r)){const i=tf(ql(zo(e.symbol).target),t);if(!i||!i.length)return;mT(n,qp(r,Ra.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function WF(e,t){const n=iA(e),r=n&&ns(n),i=r&&Ko(r,gB.Element,788968),o=i&&ce.symbolToEntityName(i,788968,e),a=FC.createFunctionTypeNode(void 0,[FC.createParameterDeclaration(void 0,void 0,"props",void 0,ce.typeToTypeNode(t,e))],o?FC.createTypeReferenceNode(o,void 0):FC.createKeywordTypeNode(133)),s=Ao(1,"props");return s.links.type=t,v_(a,void 0,void 0,[s],i?ju(i):Ct,void 0,1,0)}function HF(e,t,n){if($N(e.tagName)){const t=pA(e),n=WF(e,t);return _S(EO(e.attributes,mN(n,e),void 0,0),t,e.tagName,e.attributes),C(e.typeArguments)&&(w(e.typeArguments,SR),ro.add(Wp(Ff(e),e.typeArguments,Ra.Expected_0_type_arguments_but_got_1,0,C(e.typeArguments)))),n}const r=WO(e.tagName),i=$d(r);if(wc(i))return tF(e);const o=_A(r,e);return JF(r,i,o.length,0)?eF(e):0===o.length?(So(e.tagName,Ra.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,op(e.tagName)),tF(e)):OF(e,o,t,n,0)}function GF(e,t,n){switch(e.kind){case 213:return function(e,t,n){if(108===e.expression.kind){const r=VE(e.expression);if(Cc(r)){for(const t of e.arguments)WO(t);return ri}if(!wc(r)){const i=my(Xm(e));if(i)return OF(e,uu(r,i.typeArguments,i),t,n,0)}return eF(e)}let r,i=WO(e.expression);if(Ol(e)){const t=FT(i,e.expression);r=t===i?0:jl(e)?16:8,i=t}else r=0;if(i=dP(i,e.expression,cP),i===en)return ai;const o=$d(i);if(wc(o))return tF(e);const a=tf(o,0),s=tf(o,1).length;if(JF(i,o,a.length,s))return!wc(i)&&e.typeArguments&&So(e,Ra.Untyped_function_calls_may_not_accept_type_arguments),eF(e);if(!a.length){if(s)So(e,Ra.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ys(i));else{let t;if(1===e.arguments.length){const n=Ff(e).text;vs(n.charCodeAt(Ts(n,e.expression.end,!0)-1))&&(t=qp(e.expression,Ra.Are_you_missing_a_semicolon))}UF(e.expression,o,0,t)}return tF(e)}return 8&n&&!e.typeArguments&&a.some(jF)?(jO(e,n),oi):a.some((e=>Pg(e.declaration)&&!!tl(e.declaration)))?(So(e,Ra.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ys(i)),tF(e)):OF(e,a,t,n,r)}(e,t,n);case 214:return zF(e,t,n);case 215:return function(e,t,n){const r=WO(e.tag),i=$d(r);if(wc(i))return tF(e);const o=tf(i,0),a=tf(i,1).length;if(JF(r,i,o.length,a))return eF(e);if(!o.length){if(XD(e.parent)){const t=qp(e.tag,Ra.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return ro.add(t),tF(e)}return UF(e.tag,i,0),tF(e)}return OF(e,o,t,n,0)}(e,t,n);case 170:return function(e,t,n){const r=WO(e.expression),i=$d(r);if(wc(i))return tF(e);const o=tf(i,0),a=tf(i,1).length;if(JF(r,i,o.length,a))return eF(e);if(s=e,(c=o).length&&I(c,(e=>0===e.minArgumentCount&&!DB(e)&&e.parameters.length!!e.typeParameters&&fF(e,n))),(e=>{const t=SF(e,n,!0);return t?Xf(e,t,Pg(e.declaration)):e}))}}function gI(e,t,n){const r=WO(e,n),i=sx(t);return wc(i)?i:(_S(r,i,Dc(t.parent,(e=>238===e.kind||357===e.kind)),e,Ra.Type_0_does_not_satisfy_the_expected_type_1),r)}function hI(e){switch(e.keywordToken){case 102:return Um();case 105:const t=yI(e);return wc(t)?Ct:function(e){const t=Ao(0,"NewTargetExpression"),n=Ao(4,"target",8);n.parent=t,n.links.type=e;const r=cf([n]);return t.members=r,Ps(t,r,a,a,a)}(t);default:Fn.assertNever(e.keywordToken)}}function yI(e){const t=rg(e);return t?176===t.kind?ql(cs(t.parent)):ql(cs(t)):(So(e,Ra.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ct)}function vI(e){const t=ql(e);if(F){const n=e.valueDeclaration;if(n&&G_(n))return pT(t)}return t}function bI(e,t,n="arg"){return e?(Fn.assert(qE(e.name)),e.name.escapedText):`${n}_${t}`}function xI(e,t,n){const r=e.parameters.length-(DB(e)?1:0);if(t=n-1)return t===n-1?i:Qg(Mv(i,zt));const o=[],a=[],s=[];for(let c=t;c!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(131072&Qw(CI(e,n),cF).flags);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function AI(e){if(DB(e)){const t=ql(e.parameters[e.parameters.length-1]);return!eT(t)||t.target.hasRestElement}return!1}function PI(e){if(DB(e)){const t=ql(e.parameters[e.parameters.length-1]);if(!eT(t))return t;if(t.target.hasRestElement)return Nh(t,t.target.fixedLength)}}function FI(e){const t=PI(e);return!t||Ik(t)||Cc(t)?void 0:t}function II(e){return OI(e,Qt)}function OI(e,t){return e.parameters.length>0?CI(e,0):t}function MI(e,t,n){const r=e.parameters.length-(DB(e)?1:0);for(let i=0;i=0);const i=hD(e.parent)?ql(cs(e.parent.parent)):$R(e.parent),o=hD(e.parent)?Pt:VR(e.parent),a=Jb(r),s=Po("target",i),c=Po("propertyKey",o),l=Po("parameterIndex",a);n.decoratorSignature=CM(void 0,void 0,[s,c,l],Xt);break}case 174:case 177:case 178:case 172:{const e=t;if(!Pu(e.parent))break;const r=Po("target",$R(e)),i=Po("propertyKey",VR(e)),o=fD(e)?Xt:zg(BR(e));if(0===k||fD(t)&&!Cb(t))n.decoratorSignature=CM(void 0,void 0,[r,i],ly([o,Xt]));else{const t=Po("descriptor",zg(BR(e)));n.decoratorSignature=CM(void 0,void 0,[r,i,t],ly([o,Xt]))}break}}return n.decoratorSignature===ri?void 0:n.decoratorSignature}(e):JI(e)}function KI(e){const t=ag(!0);return t!==Mn?Np(t,[e=kM(bM(e))||Nt]):Nt}function UI(e){const t=pg(!0);return t!==Mn?Np(t,[e=kM(bM(e))||Nt]):Nt}function WI(e,t){const n=KI(t);return n===Nt?(So(e,pm(e)?Ra.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Ra.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ct):(mg(!0)||So(e,pm(e)?Ra.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:Ra.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function GI(e,t){if(!e.body)return Ct;const n=Fy(e),r=0!=(2&n),i=0!=(1&n);let o,a,s,c=Xt;if(241!==e.body.kind)o=DO(e.body,t&&-9&t),r&&(o=bM(hM(o,!1,e,Ra.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=nO(e,t);n?n.length>0&&(o=ly(n,2)):c=Qt;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=0!=(2&Fy(e));return Em(e.body,(e=>{const o=e.expression?WO(e.expression,t):Ft;let a;if(Ee(n,YI(e,o,St,i)),e.asteriskToken){const t=SL(o,i?19:17,e.expression);a=t&&t.nextType}else a=qD(e,void 0);a&&Ee(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=le(r)?ly(r,2):void 0,s=le(i)?Ey(i):void 0}else{const r=nO(e,t);if(!r)return 2&n?WI(e,Qt):Qt;if(0===r.length){const t=tD(e,void 0),r=t&&32768&(BL(t,n)||Xt).flags?Pt:Xt;return 2&n?WI(e,r):r}o=ly(r,2)}if(o||a||s){if(a&&bC(e,a,3),o&&bC(e,o,1),s&&bC(e,s,2),o&&Uk(o)||a&&Uk(a)||s&&Uk(s)){const t=SN(e),n=t?t===Lf(e)?i?void 0:o:$D(qf(t),e,void 0):void 0;i?(a=Zk(a,n,0,r),o=Zk(o,n,1,r),s=Zk(s,n,2,r)):o=function(e,t,n){return e&&Uk(e)&&(e=Qk(e,t?n?gM(t):t:void 0)),e}(o,n,r)}a&&(a=dC(a)),o&&(o=dC(o)),s&&(s=dC(s))}return i?XI(a||Qt,o||c,s||eD(2,e)||Nt,r):r?KI(o||c):o||c}function XI(e,t,n,r){const i=r?fi:pi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Nt,t=i.resolveIterationType(t,void 0)||Nt,n=i.resolveIterationType(n,void 0)||Nt,o===Mn){const r=i.getGlobalIterableIteratorType(!1),o=r!==Mn?wL(r,i):void 0,a=o?o.returnType:St,s=o?o.nextType:Pt;return iS(t,a)&&iS(s,n)?r!==Mn?Jg(r,[e]):(i.getGlobalIterableIteratorType(!0),Dn):(i.getGlobalGeneratorType(!0),Dn)}return Jg(o,[e,t,n])}function YI(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?mL(r?19:17,t,n,i):t;return r?SM(o,i,e.asteriskToken?Ra.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ra.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function ZI(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=void 0!==o?uB.get(o)||32768:0}return r}function eO(e){const t=$o(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=Ww(e);if(!t)return!1;const n=Md(DO(e.expression.expression)),r=ZI(0,0,t);return 3&n.flags?556800==(556800&r):!Xw(n,(e=>(ww(e)&r)===r))}const t=DO(e.expression);if(!Wk(t))return!1;const n=qw(e);return!(!n.length||le(n,Kk))&&(r=tE(t,Mb),i=n,1048576&r.flags?!w(r.types,(e=>!B(i,e))):B(i,r));var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function tO(e){return e.endFlowNode&&hE(e.endFlowNode)}function nO(e,t){const n=Fy(e),r=[];let i=tO(e),o=!1;if(wm(e.body,(a=>{const s=a.expression;if(s){if(213===s.kind&&80===s.expression.kind&&DO(s.expression).symbol===e.symbol)return void(o=!0);let i=DO(s,t&&-9&t);2&n&&(i=bM(hM(i,!1,e,Ra.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),Ee(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(F&&r.length&&i)||YF(e)&&r.some((t=>t.symbol===e.symbol))||Ee(r,Pt),r}function rO(e,t){c((function(){const n=Fy(e),r=t&&BL(t,n);if(r&&(fO(r,16384)||32769&r.flags))return;if(173===e.kind||Jf(e.body)||241!==e.body.kind||!tO(e))return;const i=1024&e.flags,o=ob(e)||e;if(r&&131072&r.flags)So(o,Ra.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)So(o,Ra.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&F&&!iS(Pt,r))So(o,Ra.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(S.noImplicitReturns){if(!r){if(!i)return;const t=qf(Lf(e));if(JL(e,t))return}So(o,Ra.Not_all_code_paths_return_a_value)}}))}function iO(e,t){if(Fn.assert(174!==e.kind||Bm(e)),CR(e),oN(e)&&rL(e,e.name),t&&4&t&&Jx(e)){if(!ob(e)&&!$T(e)){const n=kN(e);if(n&&AC(qf(n))){const n=$o(e);if(n.contextFreeType)return n.contextFreeType;const r=GI(e,t),i=v_(void 0,void 0,void 0,a,r,void 0,0,64),o=Ps(e.symbol,b,[i],a,a);return o.objectFlags|=262144,n.contextFreeType=o}}return Ln}return jj(e)||218!==e.kind||Kj(e),function(e,t){const n=$o(e);if(!(64&n.flags)){const r=kN(e);if(!(64&n.flags)){n.flags|=64;const i=Oe(tf(ql(cs(e)),0));if(!i)return;if(Jx(e))if(r){const n=pN(e);let o;if(t&&2&t){MI(i,r,n);const e=PI(r);e&&262144&e.flags&&(o=wx(r,n.nonFixingMapper))}o||(o=n?wx(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=JT(t.thisParameter,void 0)),LI(e.thisParameter,ql(t.thisParameter)))}const n=e.parameters.length-(DB(e)?1:0);for(let r=0;re.parameters.length){const n=pN(e);t&&2&t&&MI(i,r,n)}if(r&&!Wf(e)&&!i.resolvedReturnType){const n=GI(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}YO(e)}}}(e,t),ql(cs(e))}function oO(e,t,n,r=!1){if(!iS(t,_n)){const i=r&&mM(t);return Co(e,!!i&&iS(i,_n),n),!1}return!0}function aO(e){if(!eN(e))return!1;if(!rh(e))return!1;const t=DO(e.arguments[2]);if(xc(t,"value")){const e=Zd(t,"writable"),n=e&&ql(e);if(!n||n===Vt||n===Kt)return!0;if(e&&e.valueDeclaration&&JA(e.valueDeclaration)){const t=WO(e.valueDeclaration.initializer);if(t===Vt||t===Kt)return!0}return!1}return!Zd(t,"set")}function sO(e){return!!(8&$x(e)||4&e.flags&&64&Vx(e)||3&e.flags&&6&LA(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||le(e.declarations,aO))}function cO(e,t,n){var r,i;if(0===n)return!1;if(sO(t)){if(4&t.flags&&lS(e)&&110===e.expression.kind){const n=Hm(e);if(!n||176!==n.kind&&!YF(n))return!0;if(t.valueDeclaration){const e=fN(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(lS(e)){const t=ny(e.expression);if(80===t.kind){const e=$o(t).resolvedSymbol;if(2097152&e.flags){const t=_a(e);return!!t&&274===t.kind}}}return!1}function lO(e,t,n){const r=lF(e,7);return 80===r.kind||lS(r)?!(64&r.flags&&(So(e,n),1)):(So(e,t),!1)}function uO(e){let t=!1;const n=Qm(e);if(n&&gD(n))So(e,uN(e)?Ra.await_expression_cannot_be_used_inside_a_class_static_block:Ra.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(65536&e.flags))if(ng(e)){const n=Ff(e);if(!oB(n)){let r;if(!wp(n,S)){r??(r=nm(n,e.pos));const i=uN(e)?Ra.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:Ra.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,o=IS(n,r.start,r.length,i);ro.add(o),t=!0}switch(T){case 100:case 199:if(1===n.impliedNodeFormat){r??(r=nm(n,e.pos)),ro.add(IS(n,r.start,r.length,Ra.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 4:if(k>=4)break;default:r??(r=nm(n,e.pos));const i=uN(e)?Ra.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ra.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;ro.add(IS(n,r.start,r.length,i)),t=!0}}}else{const r=Ff(e);if(!oB(r)){const i=nm(r,e.pos),o=uN(e)?Ra.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ra.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=IS(r,i.start,i.length,o);n&&176!==n.kind&&0==(2&Fy(n))&&mT(a,qp(n,Ra.Did_you_mean_to_mark_this_function_as_async)),ro.add(a),t=!0}}return uN(e)&&ZE(e)&&(So(e,Ra.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function _O(e){return fO(e,2112)?pO(e,3)||fO(e,296)?_n:$t:zt}function dO(e,t){if(fO(e,t))return!0;const n=Md(e);return!!n&&fO(n,t)}function fO(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(fO(e,t))return!0}return!1}function pO(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&iS(e,zt)||!!(2112&t)&&iS(e,$t)||!!(402653316&t)&&iS(e,Jt)||!!(528&t)&&iS(e,Ht)||!!(16384&t)&&iS(e,Xt)||!!(131072&t)&&iS(e,Qt)||!!(65536&t)&&iS(e,Rt)||!!(32768&t)&&iS(e,Pt)||!!(4096&t)&&iS(e,Gt)||!!(67108864&t)&&iS(e,on))}function mO(e,t,n){return 1048576&e.flags?I(e.types,(e=>mO(e,t,n))):pO(e,t,n)}function gO(e){return!!(16&tS(e))&&!!e.symbol&&hO(e.symbol)}function hO(e){return 0!=(128&e.flags)}function yO(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(303===a.kind||304===a.kind){const e=a.name,n=Wy(e);if(gC(n)){const e=Zd(t,hC(n));e&&(qP(e,a,i),KA(a,!1,!0,t,e))}const r=zc(a,Mv(t,n,32,e));return bO(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(nNh(e,n))):Qg(r),i);So(o.operatorToken,Ra.A_rest_element_cannot_have_an_initializer)}}}function bO(e,t,n,r){let i;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(!F||16777216&ww(WO(r.objectAssignmentInitializer))||(t=Ew(t,524288)),function(e,t,n,r,i){const o=t.kind;if(64===o&&(210===e.kind||209===e.kind))return bO(e,WO(n,r),r,110===n.kind);let a;a=Vb(o)?fL(e,r):WO(e,r);kO(e,t,n,a,WO(n,r),r,void 0)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 226===i.kind&&64===i.operatorToken.kind&&(ae(i,n),i=i.left,F&&(t=Ew(t,524288))),210===i.kind?function(e,t,n){const r=e.properties;if(F&&0===r.length)return fP(t,e);for(let i=0;ipO(t,e)&&pO(n,e))),St}return 65===s&&f(h),h;case 30:case 32:case 33:case 34:return d(s)&&(r=Gk(fP(r,e)),i=Gk(fP(i,n)),p(((e,t)=>{if(Cc(e)||Cc(t))return!0;const n=iS(e,_n),r=iS(t,_n);return n&&r||!n&&!r&&sS(e,t)}))),Ht;case 35:case 36:case 37:case 38:if(!(o&&128&o)){if((tu(e)||tu(n))&&(!Pg(e)||37===s||38===s)){const e=35===s||37===s;So(a,Ra.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(ny(n)),o=g(ny(r));if(i||o){const a=So(e,Ra.This_condition_will_always_return_0,ss(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?ss(54):"",c=i?r:n,l=ny(c);mT(a,qp(c,Ra.Did_you_mean_0,`${s}Number.isNaN(${Qb(l)?Up(l):"..."})`))}}(a,s,e,n),p(((e,t)=>SO(e,t)||SO(t,e)))}return Ht;case 104:return function(e,t,n,r){return n===en||r===en?en:(!Cc(n)&&mO(n,402784252)&&So(e,Ra.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Cc(r)||UR(r)||Zx(r,Xn)||So(t,Ra.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Ht)}(e,n,r,i);case 103:return function(e,t,n,r){return n===en||r===en?en:(WE(e)?(k<99&&Pj(e,2097152),!$o(e).resolvedSymbol&&Xm(e)&&LP(e,r,AP(e,r.symbol,!0))):uS(fP(n,e),cn,e),uS(fP(r,t),on,t)&&Xw(r,(e=>e===In||!!(2097152&e.flags)&&ES(Md(e))))&&So(t,Ra.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Ys(r)),Ht)}(e,n,r,i);case 56:case 77:{const e=4194304&ww(r)?ly([(u=F?r:Hk(i),tE(u,uT)),i]):r;return 77===s&&f(i),e}case 57:case 76:{const e=8388608&ww(r)?ly([bT(lT(r)),i],2):r;return 76===s&&f(i),e}case 61:case 78:{const e=262144&ww(r)?ly([bT(r),i],2):r;return 78===s&&f(i),e}case 64:const y=fN(e.parent)?nh(e.parent):0;return function(e,t){if(2===e)for(const e of xd(t)){const t=ql(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ho(e.valueDeclaration,t,788968,void 0,t,!1);(null==n?void 0:n.declarations)&&n.declarations.some(NP)&&(Ro(n,Ra.Duplicate_identifier_0,Fc(t),e),Ro(e,Ra.Duplicate_identifier_0,Fc(t),n))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=ls(e),i=Wg(n);return!!i&&YD(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||wS(i)||Cw(i)||1&tS(i))||f(i),r):(f(i),i);case 28:if(!S.allowUnreachableCode&&xO(e)&&!(217===(l=e.parent).parent.kind&&EE(l.left)&&"0"===l.left.text&&(eN(l.parent.parent)&&l.parent.parent.expression===l.parent||215===l.parent.parent.kind)&&(lS(l.right)||qE(l.right)&&"eval"===l.right.escapedText))){const t=Ff(e),n=Ts(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===Ra.JSX_expressions_must_have_one_parent_element.code&&ec(e,n)))||So(e,Ra.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return Fn.fail()}var l,u;function _(e,t){return pO(e,2112)&&pO(t,2112)}function d(t){const o=dO(r,12288)?e:dO(i,12288)?n:void 0;return!o||(So(o,Ra.The_0_operator_cannot_be_applied_to_type_symbol,ss(t)),!1)}function f(i){Ub(s)&&c((function(){let o=r;if(CJ(t.kind)&&211===e.kind&&(o=gP(e,void 0,!0)),lO(e,Ra.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,Ra.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(re&&QD(e)&&fO(i,32768)){const n=xc(KO(e.expression),e.name.escapedText);qS(i,n)&&(t=Ra.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}_S(i,o,e,n,t)}}))}function p(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=a||t;if(e){const t=kM(r),o=kM(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let s=r,c=i;!n&&e&&([s,c]=function(e,t,n){let r=e,i=t;const o=Hk(e),a=Hk(t);return n(o,a)||(r=o,i=a),[r,i]}(r,i,e));const[l,u]=Zs(s,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return Co(e,n,Ra.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,u)||Co(o,n,Ra.Operator_0_cannot_be_applied_to_types_1_and_2,ss(t.kind),l,u)}function g(e){if(qE(e)&&"NaN"===e.escapedText){const t=zr||(zr=Cm("NaN",!1));return!!t&&t===ow(e)}return!1}}function TO(e){const t=e.parent;return iN(t)&&TO(t)||ZD(t)&&t.argumentExpression===e}function CO(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=WO(r.expression);dO(e,12288)&&So(r.expression,Ra.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(iS(e,mn)?e:Jt)}if(IO(e)||TO(e)||Xw(qD(e,void 0)||Nt,wO))return av(t,n);const r=215!==e.parent.kind&&cR(e);return r?Ob(Bb(r)):Jt}function wO(e){return!!(134217856&e.flags||58982400&e.flags&&fO(Od(e)||Nt,402653316))}function EO(e,t,n,r){const i=function(e){return FA(e)&&!CA(e.parent)?e.parent.parent:e}(e);sN(i,t,!1),function(e,t){Ei[Ni]=e,Di[Ni]=t,Ni++}(i,n);const o=WO(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=fO(o,2944)&&FO(o,$D(t,e,void 0))?Mb(o):o;return Ni--,lN(),a}function DO(e,t){if(t)return WO(e,t);const n=$o(e);if(!n.resolvedType){const r=yi,i=Zr;yi=vi,Zr=void 0,n.resolvedType=WO(e,t),Zr=i,yi=r}return n.resolvedType}function NO(e){return 216===(e=ny(e,!0)).kind||234===e.kind||aF(e)}function AO(e,t,n){const r=Ug(e);if(Pg(e)){const n=lC(e);if(n)return gI(r,n,t)}const i=UO(r)||(n?EO(r,n,void 0,t||0):DO(r,t));return uD(e)&&207===e.name.kind&&eT(i)&&!i.target.hasRestElement&&Ip(i)FO(e,t)));if(58982400&t.flags){const n=Od(t)||Nt;return fO(n,4)&&fO(e,128)||fO(n,8)&&fO(e,256)||fO(n,64)&&fO(e,2048)||fO(n,4096)&&fO(e,8192)||FO(e,n)}return!!(406847616&t.flags&&fO(e,128)||256&t.flags&&fO(e,256)||2048&t.flags&&fO(e,2048)||512&t.flags&&fO(e,512)||8192&t.flags&&fO(e,8192))}return!1}function IO(e){const t=e.parent;return u_(t)&&Jl(t.type)||aF(t)&&Jl(sF(t))||_I(e)&&Ed(qD(e,0))||(iN(t)||XD(t)||hN(t))&&IO(t)||(JA(t)||zA(t)||DN(t))&&IO(t.parent)}function OO(e,t,n){const r=WO(e,t,n);return IO(e)||Im(e)?Mb(r):NO(e)?r:Qk(r,$D(qD(e,void 0),e,void 0))}function MO(e,t){return 167===e.name.kind&&EN(e.name),OO(e.initializer,t)}function LO(e,t){return Xj(e),167===e.name.kind&&EN(e.name),RO(e,iO(e,t),t)}function RO(e,t,n){if(n&&10&n){const r=gF(t,0,!0),i=gF(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=BD(e,2);if(t){const i=gF(bT(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return jO(e,n),Ln;const t=pN(e),r=t.signature&&qf(t.signature),a=r&&mF(r);if(a&&!a.typeParameters&&!I(t.inferences,BO)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(zO(e.inferredTypeParameters,t)||zO(n,t)){const a=ws(Ao(262144,$O(_e(e.inferredTypeParameters,n),t)));a.target=o,r=ke(r,o),i=ke(i,a),n.push(a)}else n.push(o)}if(i){const e=mx(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=Yf(o,e),r=q(t.inferences,(e=>EC(e.typeParameter)));if(xC(n,i,((e,t)=>{HC(r,e,t,0,!0)})),le(r,BO)&&(SC(n,i,((e,t)=>{HC(r,e,t)})),!function(e,t){for(let n=0;ne.symbol.escapedName===t))}function $O(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!zO(e,n))return n}}function VO(e){const t=pF(e);if(t&&!t.typeParameters)return qf(t)}function KO(e){const t=UO(e);if(t)return t;if(268435456&e.flags&&Zr){const t=Zr[bB(e)];if(t)return t}const n=Si,r=WO(e,128);return Si!==n&&((Zr||(Zr=[]))[bB(e)]=r,IT(e,268435456|e.flags)),r}function UO(e){let t=ny(e,!0);if(aF(t)){const e=sF(t);if(!Jl(e))return sx(e)}if(t=ny(e),uN(t)){const e=UO(t.expression);return e?SM(e):void 0}return!eN(t)||108===t.expression.kind||Lg(t,!0)||oI(t)?u_(t)&&!Jl(t.type)?sx(t.type):eu(e)||wu(e)?WO(e):void 0:Ol(t)?function(e){const t=WO(e.expression),n=FT(t,e.expression),r=VO(t);return r&&AT(r,e,n!==t)}(t):VO(YA(t.expression))}function qO(e){const t=$o(e);if(t.contextFreeType)return t.contextFreeType;sN(e,St,!1);const n=t.contextFreeType=WO(e,4);return lN(),n}function WO(e,n,r){var o,s;null==(o=Br)||o.push(Br.Phase.Check,"checkExpression",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const l=i;i=e,g=0;const u=function(e,n,r){const i=e.kind;if(t)switch(i){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(i){case 80:return OE(e,n);case 81:return function(e){!function(e){if(!Xm(e))return _B(e,Ra.Private_identifiers_are_not_allowed_outside_class_bodies);if(!jN(e.parent)){if(!xg(e))return _B(e,Ra.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=fN(e.parent)&&103===e.parent.operatorToken.kind;xP(e)||t||_B(e,Ra.Cannot_find_name_0,Ic(e))}}(e);const t=xP(e);return t&&qP(t,void 0,!1),St}(e);case 110:return JE(e);case 108:return VE(e);case 106:return jt;case 15:case 11:return JC(e)?Tt:Ob(Bb(e.text));case 9:return kB(e),Ob(Jb(+e.text));case 10:return function(e){if(!(VD(e.parent)||_N(e.parent)&&VD(e.parent.parent))&&k<7&&_B(e,Ra.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(e),Ob(zb({negative:!1,base10Value:xT(e.text)}));case 112:return Ut;case 97:return Vt;case 228:return CO(e);case 14:return ir;case 209:return wN(e,n,r);case 210:return function(e,t=0){var n;const r=Hh(e);!function(e,t){const n=new Map;for(const r of e.properties){if(305===r.kind){if(t){const e=ny(r.expression);if(XD(e)||YD(e))return _B(r.expression,Ra.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(167===e.kind&&Vj(e),304===r.kind&&!t&&r.objectAssignmentInitializer&&_B(r.equalsToken,Ra.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),81===e.kind&&_B(e,Ra.Private_identifiers_are_not_allowed_outside_class_bodies),nI(r)&&r.modifiers)for(const e of r.modifiers)!vu(e)||134===e.kind&&174===r.kind||_B(e,Ra._0_modifier_cannot_be_used_here,op(e));else if(PF(r)&&r.modifiers)for(const e of r.modifiers)vu(e)&&_B(e,Ra._0_modifier_cannot_be_used_here,op(e));let i;switch(r.kind){case 304:case 303:qj(r.exclamationToken,Ra.A_definite_assignment_assertion_is_not_permitted_in_this_context),Uj(r.questionToken,Ra.An_object_member_cannot_be_declared_optional),9===e.kind&&kB(e),i=4;break;case 174:i=8;break;case 177:i=1;break;case 178:i=2;break;default:Fn.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=PB(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)_B(e,Ra.Duplicate_identifier_0,op(e));else if(4&i&&4&r)_B(e,Ra.An_object_literal_cannot_have_multiple_properties_with_the_same_name,op(e));else{if(!(3&i&&3&r))return _B(e,Ra.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return _B(e,Ra.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,r);const i=F?cf():void 0;let o=cf(),s=[],c=Dn;rN(e);const l=BD(e,void 0),u=l&&l.pattern&&(206===l.pattern.kind||210===l.pattern.kind),_=IO(e),d=_?8:0,f=Pg(e)&&!Fg(e),p=f?fl(e):void 0,m=!l&&f&&!p;let g=ne,h=!1,y=!1,v=!1,b=!1;for(const t of e.properties)t.name&&cD(t.name)&&EN(t.name);let x=0;for(const n of e.properties){let a=cs(n);const m=n.name&&167===n.name.kind?EN(n.name):void 0;if(303===n.kind||304===n.kind||Bm(n)){let o=303===n.kind?MO(n,t):304===n.kind?OO(!r&&n.objectAssignmentInitializer?n.objectAssignmentInitializer:n.name,t):LO(n,t);if(f){const e=Xc(n);e?(uS(o,e,n),o=e):p&&p.typeExpression&&uS(o,sx(p.typeExpression),n)}g|=458752&tS(o);const s=m&&gC(m)?m:void 0,c=s?Ao(4|a.flags,hC(s),4096|d):Ao(4|a.flags,a.escapedName,d);if(s&&(c.links.nameType=s),r)(303===n.kind&&CN(n.initializer)||304===n.kind&&n.objectAssignmentInitializer)&&(c.flags|=16777216);else if(u&&!(512&tS(l))){const e=Zd(l,a.escapedName);e?c.flags|=16777216&e.flags:S.suppressExcessPropertyErrors||ff(l,Jt)||So(n.name,Ra.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Hs(a),Ys(l))}if(c.declarations=a.declarations,c.parent=a.parent,a.valueDeclaration&&(c.valueDeclaration=a.valueDeclaration),c.links.type=o,c.links.target=a,a=c,null==i||i.set(c.escapedName,c),l&&2&t&&!(4&t)&&(303===n.kind||174===n.kind)&&Jx(n)){const t=pN(e);Fn.assert(t),wC(t,303===n.kind?n.initializer:n,o)}}else{if(305===n.kind){k<2&&Pj(n,2),s.length>0&&(c=Nb(c,T(),e.symbol,g,_),s=[],o=cf(),y=!1,v=!1,b=!1);const r=Wd(WO(n.expression,2&t));if(JN(r)){const t=mb(r,_);if(i&&UN(t,i,n),x=s.length,wc(c))continue;c=Nb(c,t,e.symbol,g,_)}else So(n,Ra.Spread_types_may_only_be_created_from_object_types),c=Ct;continue}Fn.assert(177===n.kind||178===n.kind),CR(n)}!m||8576&m.flags?o.set(a.escapedName,a):iS(m,cn)&&(iS(m,zt)?v=!0:iS(m,Gt)?b=!0:y=!0,r&&(h=!0)),s.push(a)}if(lN(),u){const t=Dc(l.pattern.parent,(e=>260===e.kind||226===e.kind||169===e.kind));if(305!==Dc(e,(e=>e===t||305===e.kind)).kind)for(const e of Td(l))o.get(e.escapedName)||Zd(c,e.escapedName)||(16777216&e.flags||So(e.valueDeclaration||(null==(n=bt(e,lf))?void 0:n.links.bindingElement),Ra.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),o.set(e.escapedName,e),s.push(e))}return wc(c)?Ct:c!==Dn?(s.length>0&&(c=Nb(c,T(),e.symbol,g,_),s=[],o=cf(),y=!1,v=!1),tE(c,(e=>e===Dn?T():e))):T();function T(){const t=[];y&&t.push(MN(e,x,s,Jt)),v&&t.push(MN(e,x,s,zt)),b&&t.push(MN(e,x,s,Gt));const n=Ps(e.symbol,o,a,a,t);return n.objectFlags|=131200|g,m&&(n.objectFlags|=4096),h&&(n.objectFlags|=512),r&&(n.pattern=e),n}}(e,n);case 211:return gP(e,n);case 166:return hP(e,n);case 212:return function(e,t){return 64&e.flags?function(e,t){const n=WO(e.expression),r=FT(n,e.expression);return AT(QP(e,fP(r,e.expression),t),e,r!==n)}(e,t):QP(e,YA(e.expression),t)}(e,n);case 213:if(102===e.expression.kind)return function(e){if(function(e){if(S.verbatimModuleSyntax&&1===T)return _B(e,Ra.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===T)return _B(e,Ra.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return _B(e,Ra.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==T&&199!==T&&100!==T&&(Lj(t),t.length>1))return _B(t[1],Ra.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===t.length||t.length>2)return _B(e,Ra.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);const n=O(t,hN);n&&_B(n,Ra.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return WI(e,St);const t=e.arguments[0],n=DO(t),r=e.arguments.length>1?DO(e.arguments[1]):void 0;for(let t=2;tuO(e)));const t=WO(e.expression),n=hM(t,!0,e,Ra.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||wc(n)||3&t.flags||ko(!1,qp(e,Ra.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=WO(e.operand);if(t===en)return en;switch(e.operand.kind){case 9:switch(e.operator){case 41:return Ob(Jb(-e.operand.text));case 40:return Ob(Jb(+e.operand.text))}break;case 10:if(41===e.operator)return Ob(zb({negative:!0,base10Value:xT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return fP(t,e.operand),dO(t,12288)&&So(e.operand,Ra.The_0_operator_cannot_be_applied_to_type_symbol,ss(e.operator)),40===e.operator?(dO(t,2112)&&So(e.operand,Ra.Operator_0_cannot_be_applied_to_type_1,ss(e.operator),Ys(Hk(t))),zt):_O(t);case 54:dL(t,e.operand);const n=12582912&ww(t);return 4194304===n?Vt:8388608===n?Ut:Ht;case 46:case 47:return oO(e.operand,fP(t,e.operand),Ra.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&lO(e.operand,Ra.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Ra.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),_O(t)}return Ct}(e);case 225:return function(e){const t=WO(e.operand);return t===en?en:(oO(e.operand,fP(t,e.operand),Ra.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&lO(e.operand,Ra.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Ra.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),_O(t))}(e);case 226:return ae(e,n);case 227:return function(e,t){const n=fL(e.condition,t);return _L(e.condition,n,e.whenTrue),ly([WO(e.whenTrue,t),WO(e.whenFalse,t)],2)}(e,n);case 230:return function(e,t){return k<2&&Pj(e,S.downlevelIteration?1536:1024),mL(33,WO(e.expression,t),Pt,e.expression)}(e,n);case 232:return Ft;case 229:return function(e){c((function(){16384&e.flags||aB(e,Ra.A_yield_expression_is_only_allowed_in_a_generator_body),ZE(e)&&So(e,Ra.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));const t=Hm(e);if(!t)return St;const n=Fy(t);if(!(1&n))return St;const r=0!=(2&n);e.asteriskToken&&(r&&k<99&&Pj(e,26624),!r&&k<2&&S.downlevelIteration&&Pj(e,256));const i=Wf(t),o=i&&jL(i,r),a=o&&o.yieldType||St,s=o&&o.nextType||St,l=r?SM(s)||St:s,u=e.expression?WO(e.expression):Ft,_=YI(e,u,l,r);if(i&&_&&_S(_,a,e.expression||e,e.expression),e.asteriskToken)return hL(r?19:17,1,u,e.expression)||St;if(i)return RL(2,i,r)||St;let d=eD(2,t);return d||(d=St,c((()=>{if(W&&!BT(e)){const t=qD(e,void 0);t&&!Cc(t)||So(e,Ra.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),d}(e);case 237:return function(e){return e.isSpread?Mv(e.type,zt):e.type}(e);case 294:return function(e,t){if(function(e){e.expression&&oF(e.expression)&&_B(e.expression,Ra.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=WO(e.expression,t);return e.dotDotDotToken&&n!==St&&!Ik(n)&&So(e,Ra.JSX_spread_child_must_be_an_array_type),n}return Ct}(e,n);case 284:case 285:return function(e,t){return CR(e),xA(e)||St}(e);case 288:return function(e){DA(e.openingFragment);const t=Ff(e);return!kk(S)||!S.jsxFactory&&!t.pragmas.has("jsx")||S.jsxFragmentFactory||t.pragmas.has("jsxfrag")||So(e,S.jsxFactory?Ra.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Ra.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),KN(e),xA(e)||St}(e);case 292:return function(e,t){return function(e,t=0){const n=e.attributes,r=qD(n,0),i=F?cf():void 0;let o,s=cf(),c=Nn,l=!1,u=!1,_=2048;const d=uA(iA(e));for(const e of n.properties){const a=e.symbol;if(PA(e)){const o=VN(e,t);_|=458752&tS(o);const c=Ao(4|a.flags,a.escapedName);if(c.declarations=a.declarations,c.parent=a.parent,a.valueDeclaration&&(c.valueDeclaration=a.valueDeclaration),c.links.type=o,c.links.target=a,s.set(c.escapedName,c),null==i||i.set(c.escapedName,c),uC(e.name)===d&&(u=!0),r){const t=Zd(r,a.escapedName);t&&t.declarations&&Eo(t)&&qE(e.name)&&No(e.name,t.declarations,e.name.escapedText)}if(r&&2&t&&!(4&t)&&Jx(e)){const t=pN(n);Fn.assert(t),wC(t,e.initializer.expression,o)}}else{Fn.assert(293===e.kind),s.size>0&&(c=Nb(c,p(),n.symbol,_,!1),s=cf());const r=Wd(WO(e.expression,2&t));Cc(r)&&(l=!0),JN(r)?(c=Nb(c,r,n.symbol,_,!1),i&&UN(r,i,e)):(So(e.expression,Ra.Spread_types_may_only_be_created_from_object_types),o=o?Ey([o,r]):r)}}l||s.size>0&&(c=Nb(c,p(),n.symbol,_,!1));const f=284===e.parent.kind?e.parent:void 0;if(f&&f.openingElement===e&&f.children.length>0){const r=KN(f,t);if(!l&&d&&""!==d){u&&So(n,Ra._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Fc(d));const t=BD(e.attributes,void 0),i=t&&SD(t,d),o=Ao(4,d);o.links.type=1===r.length?r[0]:i&&Xw(i,$k)?hh(r):Qg(ly(r)),o.valueDeclaration=FC.createPropertySignature(void 0,Fc(d),void 0,void 0),OT(o.valueDeclaration,n),o.valueDeclaration.symbol=o;const s=cf();s.set(d,o),c=Nb(c,Ps(n.symbol,s,a,a,a),n.symbol,_,!1)}}return l?St:o&&c!==Nn?Ey([o,c]):o||(c===Nn?p():c);function p(){_|=ne;const e=Ps(n.symbol,s,a,a,a);return e.objectFlags|=131200|_,e}}(e.parent,t)}(e,n);case 286:Fn.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ct}(e,n,r),_=RO(e,u,n);return gO(_)&&function(e,t){211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e||(80===e.kind||166===e.kind)&&MR(e)||186===e.parent.kind&&e.parent.exprName===e||281===e.parent.kind||So(e,Ra.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),ek(S)&&(Fn.assert(!!(128&t.symbol.flags)),33554432&t.symbol.valueDeclaration.flags&&!wT(e)&&So(e,Ra.Cannot_access_ambient_const_enums_when_0_is_enabled,xe))}(e,_),i=l,null==(s=Br)||s.pop(),_}function HO(e){Ij(e),e.expression&&aB(e.expression,Ra.Type_expected),SR(e.constraint),SR(e.default);const t=Ru(cs(e));Od(t),function(e){return jd(e)!==jn}(t)||So(e.default,Ra.Type_parameter_0_has_a_circular_default,Ys(t));const n=wd(t),r=Bd(t);n&&r&&uS(r,f_(Mx(n,hx(t,r)),r),e.default,Ra.Type_0_does_not_satisfy_the_constraint_1),CR(e),c((()=>KL(e.name,Ra.Type_parameter_name_cannot_be_0)))}function GO(e){Ij(e),oL(e);const t=Hm(e);vb(e,16476)&&(176===t.kind&&zf(t.body)||So(e,Ra.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&qE(e.name)&&"constructor"===e.name.escapedText&&So(e.name,Ra.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&oC(e)&&$u(e.name)&&t.body&&So(e,Ra.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&qE(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&So(e,Ra.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||So(e,Ra.A_constructor_cannot_have_a_this_parameter),219===t.kind&&So(e,Ra.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||So(e,Ra.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||$u(e.name)||iS(Wd(ql(e.symbol)),cr)||So(e,Ra.A_rest_parameter_must_be_of_an_array_type)}function XO(e,t,n){for(const r of e.elements){if(vN(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return So(t,Ra.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&XO(e,t,n))return!0}}function YO(e){181===e.kind?function(e){Ij(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return _B(t?t.name:e,Ra.An_index_signature_must_have_exactly_one_parameter);if(Lj(e.parameters,Ra.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return _B(t.dotDotDotToken,Ra.An_index_signature_cannot_have_a_rest_parameter);if(gb(t))return _B(t.name,Ra.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return _B(t.questionToken,Ra.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return _B(t.name,Ra.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return _B(t.name,Ra.An_index_signature_parameter_must_have_a_type_annotation);const n=sx(t.type);Xw(n,(e=>!!(8576&e.flags)))||wv(n)?_B(t.name,Ra.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Yw(n,lp)?e.type||_B(e,Ra.An_index_signature_must_have_a_type_annotation):_B(t.name,Ra.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||jj(e);const t=Fy(e);4&t||(3==(3&t)&&k<99&&Pj(e,6144),2==(3&t)&&k<4&&Pj(e,64),0!=(3&t)&&k<2&&Pj(e,128)),UL(Dl(e)),function(e){const t=V(Sl(e),TP);if(!C(t))return;const n=Pg(e),r=new Set,i=new Set;if(w(e.parameters,(({name:e},t)=>{qE(e)&&r.add(e.escapedText),$u(e)&&i.add(t)})),jf(e)){const e=t.length-1,o=t[e];n&&o&&qE(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!Ik(sx(o.typeExpression.type))&&So(o.name,Ra.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Ic(o.name))}else w(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||qE(e)&&r.has(e.escapedText)||(sD(e)?n&&So(e,Ra.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Up(e),Up(e.left)):t||To(n,e,Ra.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Ic(e)))}))}(e),w(e.parameters,GO),e.type&&SR(e.type),c((function(){!function(e){k>=2||!nd(e)||33554432&e.flags||Jf(e.body)||w(e.parameters,(e=>{e.name&&!$u(e.name)&&e.name.escapedText===ve.escapedName&&bo("noEmit",e,Ra.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=ob(e),n=t;if(Pg(e)){const r=yl(e);if(r&&r.typeExpression&&TD(r.typeExpression.type)){const e=pF(sx(r.typeExpression));e&&e.declaration&&(t=ob(e.declaration),n=r.typeExpression.type)}}if(W&&!t)switch(e.kind){case 180:So(e,Ra.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:So(e,Ra.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Fy(e);if(1==(5&r)){const e=sx(t);if(e===Xt)So(n,Ra.A_generator_cannot_have_a_void_type_annotation);else{const t=RL(0,e,0!=(2&r))||St;uS(XI(t,RL(1,e,0!=(2&r))||t,RL(2,e,0!=(2&r))||Nt,!!(2&r)),e,n)}}else 2==(3&r)&&function(e,t,n){const r=sx(t);if(k>=2){if(wc(r))return;const e=ag(!0);if(e!==Mn&&!Gl(r,e))return void i(Ra.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,Ys(kM(r)||Xt))}else{if(function(e){NM(e&&_g(e),!1)}(t),wc(r))return;const o=_g(t);if(void 0===o)return void i(Ra.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Ys(r));const a=Va(o,111551,!0),s=a?ql(a):Ct;if(wc(s))return void(80===o.kind&&"Promise"===o.escapedText&&Xl(r)===ag(!1)?So(n,Ra.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):i(Ra.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Up(o)));const c=(!0,hr||(hr=Vm("PromiseConstructorLike",0,true))||Dn);if(c===Dn)return void i(Ra.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Up(o));const l=Ra.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!uS(s,c,n,l,(()=>t===n?void 0:RS(void 0,Ra.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const u=o&&Zb(o),_=Ko(e.locals,u.escapedText,111551);if(_)return void So(_.valueDeclaration,Ra.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Ic(u),Up(o))}function i(e,t,n,r){t===n?So(n,e,r):mT(So(n,Ra.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),qp(t,e,r))}hM(r,!1,e,Ra.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&324!==e.kind&&RM(e)}))}function QO(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=Ic(r);break;default:continue}t.get(e)?(So($c(n.symbol.valueDeclaration),Ra.Duplicate_identifier_0,e),So(n.name,Ra.Duplicate_identifier_0,e)):t.set(e,!0)}}function ZO(e){if(264===e.kind){const t=cs(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=np(cs(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)1===n.parameters.length&&n.parameters[0].type&&Gw(sx(n.parameters[0].type),(t=>{const r=e.get(Rh(t));r?r.declarations.push(n):e.set(Rh(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)So(t,Ra.Duplicate_index_signature_for_type_0,Ys(e.type))}))}}function eM(e){Ij(e)||function(e){if(cD(e.name)&&fN(e.name.expression)&&103===e.name.expression.operatorToken.kind)return _B(e.parent.members[0],Ra.A_mapped_type_may_not_declare_properties_or_methods);if(Pu(e.parent)){if(NE(e.name)&&"constructor"===e.name.text)return _B(e.name,Ra.Classes_may_not_have_a_field_named_constructor);if(Gj(e.name,Ra.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(k<2&&WE(e.name))return _B(e.name,Ra.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(k<2&&Iu(e))return _B(e.name,Ra.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Iu(e)&&Uj(e.questionToken,Ra.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(Gj(e.name,Ra.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(Fn.assertNode(e,dD),e.initializer)return _B(e.initializer,Ra.An_interface_property_cannot_have_an_initializer)}else if(DD(e.parent)){if(Gj(e.name,Ra.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(Fn.assertNode(e,dD),e.initializer)return _B(e.initializer,Ra.A_type_literal_property_cannot_have_an_initializer)}if(33554432&e.flags&&Qj(e),fD(e)&&e.exclamationToken&&(!Pu(e.parent)||!e.type||e.initializer||33554432&e.flags||bb(e)||kb(e))){const t=e.initializer?Ra.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Ra.A_definite_assignment_assertion_is_not_permitted_in_this_context:Ra.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return _B(e.exclamationToken,t)}}(e)||Vj(e.name),oL(e),tM(e),vb(e,256)&&172===e.kind&&e.initializer&&So(e,Ra.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Jp(e.name))}function tM(e){if(WE(e.name)&&k<99){for(let t=jp(e);t;t=jp(t))$o(t).flags|=1048576;if(yN(e.parent)){const t=ME(e.parent);t&&($o(e.name).flags|=32768,$o(t).flags|=4096)}}}function nM(e){return 108===e.kind||110===e.kind||!tg(e)&&!!zI(e,nM)}function rM(e){qE(e.name)&&"constructor"===Ic(e.name)&&Pu(e.parent)&&So(e.name,Ra.Class_constructor_may_not_be_an_accessor),c((function(){if(jj(e)||function(e){if(!(33554432&e.flags)&&187!==e.parent.kind&&264!==e.parent.kind){if(k<1)return _B(e.name,Ra.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(k<2&&WE(e.name))return _B(e.name,Ra.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!vb(e,256))return lB(e,e.end-1,";".length,Ra._0_expected,"{")}if(e.body){if(vb(e,256))return _B(e,Ra.An_abstract_accessor_cannot_have_an_implementation);if(187===e.parent.kind||264===e.parent.kind)return _B(e.body,Ra.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return _B(e.name,Ra.An_accessor_cannot_have_type_parameters);if(!function(e){return Hj(e)||e.parameters.length===(177===e.kind?0:1)}(e))return _B(e.name,177===e.kind?Ra.A_get_accessor_cannot_have_parameters:Ra.A_set_accessor_must_have_exactly_one_parameter);if(178===e.kind){if(e.type)return _B(e.name,Ra.A_set_accessor_cannot_have_a_return_type_annotation);const t=Fn.checkDefined(Hv(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return _B(t.dotDotDotToken,Ra.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return _B(t.questionToken,Ra.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return _B(e.name,Ra.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||Vj(e.name),OM(e),YO(e),177===e.kind&&!(33554432&e.flags)&&zf(e.body)&&512&e.flags&&(1024&e.flags||So(e.name,Ra.A_get_accessor_must_return_a_value)),167===e.name.kind&&EN(e.name),o_(e)){const t=cs(e),n=af(t,177),r=af(t,178);if(n&&r&&!(1&uj(n))){$o(n).flags|=1;const e=Pb(n),t=Pb(r);(256&e)!=(256&t)&&(So(n.name,Ra.Accessors_must_both_be_abstract_or_non_abstract),So(r.name,Ra.Accessors_must_both_be_abstract_or_non_abstract)),(16&e&&!(24&t)||8&e&&!(8&t))&&(So(n.name,Ra.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),So(r.name,Ra.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const t=Al(cs(e));177===e.kind&&rO(e,t)})),SR(e.body),tM(e)}function iM(e,t,n){return e.typeArguments&&n{const t=sM(e);t&&aM(e,t)}));const t=$o(e).resolvedSymbol;t&&le(t.declarations,(e=>ZT(e)&&!!(536870912&e.flags)))&&No(iI(e),t.declarations,t.escapedName)}}function uM(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType;if(iS(r,iv(n,0)))return 212===t.kind&&Hh(t)&&32&tS(n)&&1&md(n)&&So(t,Ra.Index_signature_in_type_0_only_permits_reading,Ys(n)),e;const i=$d(n);if(ff(i,zt)&&pO(r,296))return e;if(Dv(n)){const e=mv(r,t);if(e){const n=Gw(i,(t=>Zd(t,e)));if(n&&24&Vx(n))return So(t,Ra.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Fc(e)),Ct}}return So(t,Ra.Type_0_cannot_be_used_to_index_type_1,Ys(r),Ys(n)),Ct}function _M(e){return(yb(e,8)||pu(e))&&!!(33554432&e.flags)}function dM(e,t){let n=OB(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=Rp(e);!(t&&128&t.flags)||2&n||rA(e.parent)&&nA(e.parent.parent)&&Sp(e.parent.parent)||(n|=1),n|=2}return n&t}function fM(e){c((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}let n,r,i,o=0,a=283,s=!1,c=!0,l=!1;const u=e.declarations,_=0!=(16384&e.flags);function d(e){if(e.name&&Jf(e.name))return;let t=!1;const n=zI(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&(WE(e.name)&&WE(r)&&e.name.escapedText===r.escapedText||cD(e.name)&&cD(r)&&Gx(EN(e.name),EN(r))||By(e.name)&&By(r)&&zy(e.name)===zy(r)))return void(174!==e.kind&&173!==e.kind||bb(e)===bb(n)||So(t,bb(e)?Ra.Function_overload_must_be_static:Ra.Function_overload_must_not_be_static));if(zf(n.body))return void So(t,Ra.Function_implementation_name_must_be_0,Jp(e.name))}const r=e.name||e;_?So(r,Ra.Constructor_implementation_is_missing):vb(e,256)?So(r,Ra.All_declarations_of_an_abstract_method_must_be_consecutive):So(r,Ra.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let f=!1,p=!1,m=!1;const g=[];if(u)for(const e of u){const t=e,u=33554432&t.flags,h=t.parent&&(264===t.parent.kind||187===t.parent.kind)||u;if(h&&(i=void 0),263!==t.kind&&231!==t.kind||u||(m=!0),262===t.kind||174===t.kind||173===t.kind||176===t.kind){g.push(t);const e=dM(t,283);o|=e,a&=e,s=s||Ch(t),c=c&&Ch(t);const u=zf(t.body);u&&n?_?p=!0:f=!0:(null==i?void 0:i.parent)===t.parent&&i.end!==t.pos&&d(i),u?n||(n=t):l=!0,i=t,h||(r=t)}if(Pg(e)&&ku(e)&&e.jsDoc)for(const t of e.jsDoc)if(t.tags)for(const e of t.tags)bP(e)&&(l=!0)}if(p&&w(g,(e=>{So(e,Ra.Multiple_constructor_implementations_are_not_allowed)})),f&&w(g,(e=>{So($c(e)||e,Ra.Duplicate_function_implementation)})),m&&!_&&16&e.flags&&u){const t=V(u,(e=>263===e.kind)).map((e=>qp(e,Ra.Consider_adding_a_declare_modifier_to_this_class)));w(u,(n=>{const r=263===n.kind?Ra.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?Ra.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&mT(So($c(n)||n,r,Mc(e)),...t)}))}if(!r||r.body||vb(r,256)||r.questionToken||d(r),l&&(u&&(function(e,n,r,i,o){if(0!=(i^o)){const i=dM(t(e,n),r);w(e,(e=>{const t=dM(e,r)^i;1&t?So($c(e),Ra.Overload_signatures_must_all_be_exported_or_non_exported):2&t?So($c(e),Ra.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?So($c(e)||e,Ra.Overload_signatures_must_all_be_public_private_or_protected):256&t&&So($c(e),Ra.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(u,n,283,o,a),function(e,n,r,i){if(r!==i){const r=Ch(t(e,n));w(e,(e=>{Ch(e)!==r&&So($c(e),Ra.Overload_signatures_must_all_be_optional_or_required)}))}}(u,n,s,c)),n)){const t=Bf(e),r=Lf(n);for(const e of t)if(!TS(r,e)){mT(So(e.declaration&&uP(e.declaration)?e.declaration.parent.tagName:e.declaration,Ra.This_overload_signature_is_not_compatible_with_its_implementation_signature),qp(n,Ra.The_implementation_signature_is_declared_here));break}}}(e)))}function pM(e){c((()=>function(e){let t=e.localSymbol;if(!t&&(t=cs(e),!t.exportSymbol))return;if(af(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=dM(e,1025);1&o?1024&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=$c(e);t&a?So(n,Ra.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Jp(n)):t&o&&So(n,Ra.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Jp(n))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return gp(t)||0!==mj(t)?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const e=t,n=gA(e)?e.expression:e.right;if(!Qb(n))return 1;t=n;case 271:case 274:case 273:let r=0;return w(Ia(cs(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return Fn.failBadSyntaxKind(t)}}}(e)))}function mM(e,t,n,...r){const i=gM(e,t);return i&&SM(i,t,n,...r)}function gM(e,t,n){if(Cc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(Gl(e,ag(!1)))return r.promisedTypeOfPromise=Fp(e)[0];if(mO(Md(e),402915324))return;const i=xc(e,"then");if(Cc(i))return;const o=i?tf(i,0):a;if(0===o.length)return void(t&&So(t,Ra.A_promise_must_have_a_then_method));let s,c;for(const t of o){const n=Vf(t);n&&n!==Xt&&!FS(e,n,ao)?s=n:c=ke(c,t)}if(!c)return Fn.assertIsDefined(s),n&&(n.value=s),void(t&&So(t,Ra.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ys(e),Ys(s)));const l=Ew(ly(q(c,II)),2097152);if(Cc(l))return;const u=tf(l,0);if(0!==u.length)return r.promisedTypeOfPromise=ly(q(u,II),2);t&&So(t,Ra.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function hM(e,t,n,r,...i){return(t?SM(e,n,r,...i):kM(e,n,r,...i))||Ct}function yM(e){if(mO(Md(e),402915324))return!1;const t=xc(e,"then");return!!t&&tf(Ew(t,2097152),0).length>0}function vM(e){var t;if(16777216&e.flags){const n=Rg(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function bM(e){return 1048576&e.flags?tE(e,bM):vM(e)?e.aliasTypeArguments[0]:e}function xM(e){if(Cc(e)||vM(e))return!1;if(Dv(e)){const t=Od(e);if(t?3&t.flags||wS(t)||Xw(t,yM):fO(e,8650752))return!0}return!1}function SM(e,t,n,...r){const i=kM(e,t,n,...r);return i&&function(e){if(xM(e)){const t=function(e){const t=Rg(!0);if(t)return Vp(t,[bM(e)])}(e);if(t)return t}return Fn.assert(vM(e)||void 0===gM(e),"type provided should not be a non-generic 'promise'-like."),e}(i)}function kM(e,t,n,...r){if(Cc(e))return e;if(vM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(no.lastIndexOf(e.id)>=0)return void(t&&So(t,Ra.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>kM(e,t,n,...r):kM;no.push(e.id);const a=tE(e,o);return no.pop(),i.awaitedTypeOfType=a}if(xM(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=gM(e,void 0,o);if(a){if(e.id===a.id||no.lastIndexOf(a.id)>=0)return void(t&&So(t,Ra.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));no.push(e.id);const o=kM(a,t,n,...r);if(no.pop(),!o)return;return i.awaitedTypeOfType=o}if(!yM(e))return i.awaitedTypeOfType=e;if(t){let i;Fn.assertIsDefined(n),o.value&&(i=RS(i,Ra.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ys(e),Ys(o.value))),i=RS(i,n,...r),ro.add(Gp(Ff(t),t,i))}}function TM(e){const t=XF(e);eI(t,e);const n=qf(t);if(1&n.flags)return;const r=VI(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:i=Ra.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!E){i=Ra.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:i=Ra.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:i=Ra.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return Fn.failBadSyntaxKind(e.parent)}uS(n,o,e.expression,i)}function CM(e,t,n,r,i,o=n.length,s=0){return v_(FC.createFunctionTypeNode(void 0,a,FC.createKeywordTypeNode(133)),e,t,n,r,i,o,s)}function wM(e,t,n,r,i,o,a){return tp(CM(e,t,n,r,i,o,a))}function EM(e){return wM(void 0,void 0,a,e)}function DM(e){return wM(void 0,void 0,[Po("value",e)],Xt)}function NM(e,t){if(!e)return;const n=Zb(e),r=2097152|(80===e.kind?788968:1920),i=Ho(n,n.escapedText,r,void 0,void 0,!0);if(i&&2097152&i.flags)if(Te&&hs(i)&&!nj(Ia(i))&&!ja(i))Ja(i);else if(t&&ek(S)&&GS(S)>=5&&!hs(i)&&!le(i.declarations,cu)){const t=So(e,Ra.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=O(i.declarations||a,da);r&&mT(t,qp(r,Ra._0_was_imported_here,Ic(n)))}}function AM(e){const t=PM(e);t&&bu(t)&&NM(t,!0)}function PM(e){if(e)switch(e.kind){case 193:case 192:return FM(e.types);case 194:return FM([e.trueType,e.falseType]);case 196:case 202:return PM(e.type);case 183:return e.typeName}}function FM(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!F&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=PM(n);if(!e)return;if(t){if(!qE(t)||!qE(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function IM(e){const t=rb(e);return rd(e)?Dm(t):t}function OM(e){if(!(rI(e)&&Eb(e)&&e.modifiers&&fg(E,e,e.parent,e.parent.parent)))return;const t=O(e.modifiers,_D);if(t){if(E?(Pj(t,8),169===e.kind&&Pj(t,32)):k<99&&(Pj(t,8),QN(e)?e.name?HL(e)&&Pj(t,8388608):Pj(t,8388608):yN(e)||(WE(e.name)&&(mD(e)||Fu(e)||Iu(e))&&Pj(t,8388608),cD(e.name)&&Pj(t,16777216))),S.emitDecoratorMetadata)switch(Pj(t,16),e.kind){case 263:const t=Wv(e);if(t)for(const e of t.parameters)AM(IM(e));break;case 177:case 178:const n=177===e.kind?178:177,r=af(cs(e),n);AM(Tl(e)||r&&Tl(r));break;case 174:for(const t of e.parameters)AM(IM(t));AM(ob(e));break;case 172:AM(rb(e));break;case 169:AM(IM(e));const i=e.parent;for(const e of i.parameters)AM(IM(e));AM(ob(i))}for(const t of e.modifiers)_D(t)&&TM(t)}}function MM(e){switch(e.kind){case 80:return e;case 211:return e.name;default:return}}function LM(e){var t;OM(e),YO(e);const n=Fy(e);if(e.name&&167===e.name.kind&&EN(e.name),o_(e)){const n=cs(e),r=e.localSymbol||n,i=null==(t=r.declarations)?void 0:t.find((t=>t.kind===e.kind&&!(524288&t.flags)));e===i&&fM(r),n.parent&&fM(n)}const r=173===e.kind?void 0:e.body;if(SR(r),rO(e,Wf(e)),c((function(){ob(e)||(Jf(r)&&!_M(e)&&vC(e,St),1&n&&zf(r)&&qf(Lf(e)))})),Pg(e)){const t=yl(e);t&&t.typeExpression&&!xN(sx(t.typeExpression),e)&&So(t.typeExpression.type,Ra.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function RM(e){c((function(){const t=Ff(e);let n=hi.get(t.path);n||(n=[],hi.set(t.path,n)),n.push(e)}))}function jM(e,t){for(const n of e)switch(n.kind){case 263:case 231:zM(n,t),VM(n,t);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:HM(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&HM(n,t),VM(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:VM(n,t);break;case 195:$M(n,t);break;default:Fn.assertNever(n,"Node should not have been registered for unused identifiers check")}}function BM(e,t,n){n(e,0,qp($c(e)||e,ZT(e)?Ra._0_is_declared_but_never_used:Ra._0_is_declared_but_its_value_is_never_read,t))}function JM(e){return qE(e)&&95===Ic(e).charCodeAt(0)}function zM(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=cs(n);e.isReferenced||!(yb(n,8)||Jc(n)&&WE(n.name))||33554432&n.flags||t(n,0,qp(n.name,Ra._0_is_declared_but_its_value_is_never_read,Hs(e)));break;case 176:for(const e of n.parameters)!e.symbol.isReferenced&&vb(e,8)&&t(e,0,qp(e.name,Ra.Property_0_is_declared_but_its_value_is_never_read,Mc(e.symbol)));break;case 181:case 240:case 175:break;default:Fn.fail("Unexpected class member")}}function $M(e,t){const{typeParameter:n}=e;KM(n)&&t(e,1,qp(e,Ra._0_is_declared_but_its_value_is_never_read,Ic(n.name)))}function VM(e,t){const n=cs(e).declarations;if(!n||Be(n)!==e)return;const r=Dl(e),i=new Set;for(const e of r){if(!KM(e))continue;const n=Ic(e.name),{parent:r}=e;if(195!==r.kind&&r.typeParameters.every(KM)){if(oe(i,r)){const i=Ff(r),o=DP(r)?hT(r):yT(i,r.typeParameters),a=1===r.typeParameters.length?[Ra._0_is_declared_but_its_value_is_never_read,n]:[Ra.All_type_parameters_are_unused];t(e,1,IS(i,o.pos,o.end-o.pos,...a))}}else t(e,1,qp(e,Ra._0_is_declared_but_its_value_is_never_read,n))}}function KM(e){return!(262144&as(e.symbol).isReferenced||JM(e.name))}function UM(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function qM(e){return bt(Zy(e),uD)}function WM(e){return GD(e)?WD(e.parent)?!(!e.propertyName||!JM(e.name)):JM(e.name):gp(e)||(GN(e)&&h_(e.parent.parent)||XM(e))&&JM(e.name)}function HM(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!WM(a))if(XM(a))UM(n,273===(o=a).kind?o:274===o.kind?o.parent:o.parent.parent,a,bB);else if(GD(a)&&WD(a.parent))a!==Be(a.parent.elements)&&Be(a.parent.elements).dotDotDotToken||UM(r,a.parent,a,bB);else if(GN(a)){const e=7&MB(a),t=$c(a);(4===e||6===e)&&t&&JM(t)||UM(i,a.parent,a,bB)}else{const n=e.valueDeclaration&&qM(e.valueDeclaration),i=e.valueDeclaration&&$c(e.valueDeclaration);n&&i?hc(n,n.parent)||Yv(n)||JM(i)||(GD(a)&&HD(a.parent)?UM(r,a.parent,a,bB):t(n,1,qp(i,Ra._0_is_declared_but_its_value_is_never_read,Mc(e)))):BM(a,Mc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?qp(r,Ra._0_is_declared_but_its_value_is_never_read,Ic(Le(n).name)):qp(r,Ra.All_imports_in_import_declaration_are_unused));else for(const e of n)BM(e,Ic(e.name),t)})),r.forEach((([e,n])=>{const r=qM(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?UM(i,e.parent.parent,e.parent,bB):t(e,r,1===n.length?qp(e,Ra._0_is_declared_but_its_value_is_never_read,GM(Le(n).name)):qp(e,Ra.All_destructured_elements_are_unused));else for(const e of n)t(e,r,qp(e,Ra._0_is_declared_but_its_value_is_never_read,GM(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?qp(Le(n).name,Ra._0_is_declared_but_its_value_is_never_read,GM(Le(n).name)):qp(243===e.parent.kind?e.parent:e,Ra.All_variables_are_unused));else for(const e of n)t(e,0,qp(e,Ra._0_is_declared_but_its_value_is_never_read,GM(e.name)))}))}function GM(e){switch(e.kind){case 80:return Ic(e);case 207:case 206:return GM(xt(Le(e.elements),GD).name);default:return Fn.assertNever(e)}}function XM(e){return 273===e.kind||276===e.kind||274===e.kind}function YM(e){if(241===e.kind&&yB(e),Nu(e)){const t=xi;w(e.statements,SR),xi=t}else w(e.statements,SR);e.locals&&RM(e)}function QM(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((cA(e)||aA(e)||mA(e))&&cu(e))return!1;const r=Zy(e);return!uD(r)||!Jf(r.parent.body)}function ZM(e){Dc(e,(t=>!!(4&uj(t))&&(80!==e.kind?So($c(e),Ra.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):So(e,Ra.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)))}function eL(e){Dc(e,(t=>!!(8&uj(t))&&(80!==e.kind?So($c(e),Ra.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):So(e,Ra.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)))}function tL(e){1048576&uj(jp(e))&&(Fn.assert(Jc(e)&&qE(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),bo("noEmit",e,Ra.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function nL(e){let t=!1;if(yN(e)){for(const n of e.members)if(2097152&uj(n)){t=!0;break}}else if(oN(e))2097152&uj(e)&&(t=!0);else{const n=jp(e);n&&2097152&uj(n)&&(t=!0)}t&&(Fn.assert(Jc(e)&&qE(e.name),"The target of a Reflect collision check should be an identifier"),bo("noEmit",e,Ra.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Jp(e.name),"Reflect"))}function rL(e,t){t&&(function(e,t){if(T>=5&&!(T>=100&&1===Ff(e).impliedNodeFormat))return;if(!t||!QM(e,t,"require")&&!QM(e,t,"exports"))return;if(nA(e)&&1!==mj(e))return;const n=vc(e);312===n.kind&&om(n)&&bo("noEmit",t,Ra.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Jp(t),Jp(t))}(e,t),function(e,t){if(!t||k>=4||!QM(e,t,"Promise"))return;if(nA(e)&&1!==mj(e))return;const n=vc(e);312===n.kind&&om(n)&&4096&n.flags&&bo("noEmit",t,Ra.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Jp(t),Jp(t))}(e,t),function(e,t){k<=8&&(QM(e,t,"WeakMap")||QM(e,t,"WeakSet"))&&Zi.push(e)}(e,t),function(e,t){t&&k>=2&&k<=8&&QM(e,t,"Reflect")&&eo.push(e)}(e,t),Pu(e)?(KL(t,Ra.Class_name_cannot_be_0),33554432&e.flags||function(e){k>=1&&"Object"===e.escapedText&&(T<5||1===Ff(e).impliedNodeFormat)&&So(e,Ra.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Ji[T])}(t)):tA(e)&&KL(t,Ra.Enum_name_cannot_be_0))}function iL(e){return e===kt?St:e===sr?ar:e}function oL(e){var t;if(OM(e),GD(e)||SR(e.type),!e.name)return;if(167===e.name.kind&&(EN(e.name),X_(e)&&e.initializer&&DO(e.initializer)),GD(e)){if(e.propertyName&&qE(e.name)&&Qy(e)&&Jf(Hm(e).body))return void to.push(e);WD(e.parent)&&e.dotDotDotToken&&k<5&&Pj(e,4),e.propertyName&&167===e.propertyName.kind&&EN(e.propertyName);const t=e.parent.parent,n=Nc(t,e.dotDotDotToken?64:0),r=e.propertyName||e.name;if(n&&!$u(r)){const i=Wy(r);if(gC(i)){const r=Zd(n,hC(i));r&&(qP(r,void 0,!1),KA(e,!!t.initializer&&108===t.initializer.kind,!1,n,r))}}}if($u(e.name)&&(207===e.name.kind&&k<2&&S.downlevelIteration&&Pj(e,512),w(e.name.elements,SR)),uD(e)&&e.initializer&&Jf(Hm(e).body))return void So(e,Ra.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if($u(e.name)){if(aw(e))return;const t=X_(e)&&e.initializer&&249!==e.parent.parent.kind,n=!le(e.name.elements,vn(vN));if(t||n){const r=hl(e);if(t){const t=DO(e.initializer);F&&n?mP(t,e):_S(t,hl(e),e,e.initializer)}n&&(HD(e.name)?mL(65,r,Pt,e):F&&mP(r,e))}return}const n=cs(e);if(2097152&n.flags&&(jg(e)||Bg(e)))return void dR(e);const r=iL(ql(n));if(e===n.valueDeclaration){const i=X_(e)&&Ug(e);if(i&&!(Pg(e)&&YD(i)&&(0===i.properties.length||rx(e.name))&&(null==(t=n.exports)?void 0:t.size)||249===e.parent.parent.kind)){const t=DO(i);_S(t,r,e,i,void 0);const n=7&MB(e);if(6===n){const e=(!0,Mr||(Mr=Vm("AsyncDisposable",0,true))||Dn),n=Ag(!0);e!==Dn&&n!==Dn&&uS(t,ly([e,n,Rt,Pt]),i,Ra.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}else if(4===n){const e=Ag(!0);e!==Dn&&uS(t,ly([e,Rt,Pt]),i,Ra.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}n.declarations&&n.declarations.length>1&&le(n.declarations,(t=>t!==e&&Am(t)&&!sL(t,e)))&&So(e.name,Ra.All_declarations_of_0_must_have_identical_modifiers,Jp(e.name))}else{const t=iL(hl(e));wc(r)||wc(t)||Gx(r,t)||67108864&n.flags||aL(n.valueDeclaration,r,e,t),X_(e)&&e.initializer&&_S(DO(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!sL(e,n.valueDeclaration)&&So(e.name,Ra.All_declarations_of_0_must_have_identical_modifiers,Jp(e.name))}172!==e.kind&&171!==e.kind&&(pM(e),260!==e.kind&&208!==e.kind||function(e){if(0!=(7&MB(e))||Qy(e))return;const t=cs(e);if(1&t.flags){if(!qE(e.name))return Fn.fail();const n=Ho(e,e.name.escapedText,3,void 0,void 0,!1);if(n&&n!==t&&2&n.flags&&7&LA(n)){const t=xy(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&ku(r.parent)||268===r.kind||267===r.kind||312===r.kind)){const t=Hs(n);So(e,Ra.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),rL(e,e.name))}function aL(e,t,n,r){const i=$c(n),o=172===n.kind||171===n.kind?Ra.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Ra.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Jp(i),s=So(i,o,a,Ys(t),Ys(r));e&&mT(s,qp(e,Ra._0_was_also_declared_here,a))}function sL(e,t){return 169===e.kind&&260===t.kind||260===e.kind&&169===t.kind||Ch(e)===Ch(t)&&Db(e,888)===Db(t,888)}function cL(e){var t,n;null==(t=Br)||t.push(Br.Phase.Check,"checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){const t=MB(e),n=7&t;if($u(e.name))switch(n){case 6:return _B(e,Ra._0_declarations_may_not_have_binding_patterns,"await using");case 4:return _B(e,Ra._0_declarations_may_not_have_binding_patterns,"using")}if(249!==e.parent.parent.kind&&250!==e.parent.parent.kind)if(33554432&t)Qj(e);else if(!e.initializer){if($u(e.name)&&!$u(e.parent))return _B(e,Ra.A_destructuring_declaration_must_have_an_initializer);switch(n){case 6:return _B(e,Ra._0_declarations_must_be_initialized,"await using");case 4:return _B(e,Ra._0_declarations_must_be_initialized,"using");case 2:return _B(e,Ra._0_declarations_must_be_initialized,"const")}}if(e.exclamationToken&&(243!==e.parent.parent.kind||!e.type||e.initializer||33554432&t)){const t=e.initializer?Ra.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Ra.A_definite_assignment_assertion_is_not_permitted_in_this_context:Ra.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return _B(e.exclamationToken,t)}!(T<5||1===Ff(e).impliedNodeFormat)||4===T||33554432&e.parent.parent.flags||!vb(e.parent.parent,1)||Zj(e.name),n&&eB(e.name)}(e),oL(e),null==(n=Br)||n.pop()}function lL(e){const t=7&Tc(e);4!==t&&6!==t||Pj(e,33554432),w(e.declarations,SR)}function uL(e){Ij(e)||tB(e.declarationList)||function(e){if(!nB(e.parent)){const t=7&MB(e.declarationList);if(t){const n=1===t?"let":2===t?"const":4===t?"using":6===t?"await using":Fn.fail("Unknown BlockScope flag");_B(e,Ra._0_declarations_can_only_be_declared_inside_a_block,n)}}}(e),lL(e.declarationList)}function _L(e,t,n){function r(e,t){for(i(e=ny(e),t);fN(e)&&(57===e.operatorToken.kind||61===e.operatorToken.kind);)i(e=ny(e.left),t)}function i(e,n){const i=Kb(e)?ny(e.right):e;if(th(i))return;if(Kb(i))return void r(i,n);const o=i===e?t:fL(i),a=QD(i)&&NO(i.expression);if(!(4194304&ww(o))||a)return;const s=tf(o,0),c=!!mM(o);if(0===s.length&&!c)return;const l=qE(i)?i:QD(i)?i.name:void 0,u=l&&jR(l);if(!u&&!c)return;const _=u&&fN(e.parent)&&function(e,t){for(;fN(e)&&56===e.operatorToken.kind;){if(zI(e.right,(function e(n){if(qE(n)){const e=jR(n);if(e&&e===t)return!0}return zI(n,e)})))return!0;e=e.parent}return!1}(e.parent,u)||u&&n&&function(e,t,n,r){return!!zI(t,(function t(i){if(qE(i)){const t=jR(i);if(t&&t===r){if(qE(e)||qE(n)&&fN(n.parent))return!0;let t=n.parent,r=i.parent;for(;t&&r;){if(qE(t)&&qE(r)||110===t.kind&&110===r.kind)return jR(t)===jR(r);if(QD(t)&&QD(r)){if(jR(t.name)!==jR(r.name))return!1;r=r.expression,t=t.expression}else{if(!eN(t)||!eN(r))return!1;r=r.expression,t=t.expression}}}}return zI(i,t)}))}(e,n,l,u);_||(c?Co(i,!0,Ra.This_condition_will_always_return_true_since_this_0_is_always_defined,nc(o)):So(i,Ra.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}F&&r(e,n)}function dL(e,t){return 16384&e.flags&&So(t,Ra.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function fL(e,t){return dL(WO(e,t),e)}function pL(e){return mL(e.awaitModifier?15:13,YA(e.expression),Pt,e.expression)}function mL(e,t,n,r){return Cc(t)?t:gL(e,t,n,r,!0)||St}function gL(e,t,n,r,i){const o=0!=(2&e);if(t===Qt)return void NL(r,t,o);const a=k>=2,s=!a&&S.downlevelIteration,c=S.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=SL(t,e,a?r:void 0);if(i&&o){const t=8&e?Ra.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?Ra.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?Ra.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?Ra.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;t&&uS(n,o.nextType,r,t)}if(o||a)return c?Iw(o&&o.yieldType):o&&o.yieldType}let l=t,u=!1,_=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=V(e,(e=>!(402653316&e.flags)));n!==e&&(l=ly(n,2))}else 402653316&l.flags&&(l=Qt);if(_=l!==t,_&&(k<1&&r&&(So(r,Ra.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),u=!0),131072&l.flags))return c?Iw(Jt):Jt}if(!jk(l)){if(r&&!u){const n=!!(4&e)&&!_,[i,o]=function(n,r){var i;return r?n?[Ra.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[Ra.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:hL(e,0,t,void 0)?[Ra.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null==(i=t.symbol)?void 0:i.escapedName)?[Ra.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[Ra.Type_0_is_not_an_array_type_or_a_string_type,!0]:[Ra.Type_0_is_not_an_array_type,!0]}(n,s);Co(r,o&&!!mM(l),i,Ys(l))}return _?c?Iw(Jt):Jt:void 0}const d=pf(l,zt);return _&&d?402653316&d.flags&&!S.noUncheckedIndexedAccess?Jt:ly(c?[d,Jt,Pt]:[d,Jt],2):128&e?Iw(d):d}function hL(e,t,n,r){if(Cc(n))return;const i=SL(n,e,r);return i&&i[EB(t)]}function yL(e=Qt,t=Qt,n=Nt){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=vp([e,t,n]);let i=ci.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},ci.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function vL(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==li){if(i===ui)return ui;t=ke(t,i.yieldType),n=ke(n,i.returnType),r=ke(r,i.nextType)}return t||n||r?yL(t&&ly(t),n&&ly(n),r&&Ey(r)):li}function bL(e,t){return e[t]}function xL(e,t,n){return e[t]=n}function SL(e,t,n){var r,i;if(Cc(e))return ui;if(!(1048576&e.flags)){const i=n?{errors:void 0}:void 0,o=TL(e,t,n,i);if(o===li){if(n){const r=NL(n,e,!!(2&t));(null==i?void 0:i.errors)&&mT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)ro.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=bL(e,o);if(a)return a===li?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=TL(r,t,n,a);if(c===li){if(n){const r=NL(n,e,!!(2&t));(null==a?void 0:a.errors)&&mT(r,...a.errors)}return void xL(e,o,li)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)ro.add(e);s=ke(s,c)}const c=s?vL(s):li;return xL(e,o,c),c===li?void 0:c}function kL(e,t){if(e===li)return li;if(e===ui)return ui;const{yieldType:n,returnType:r,nextType:i}=e;return t&&Rg(!0),yL(SM(n,t)||St,SM(r,t)||St,i)}function TL(e,t,n,r){if(Cc(e))return ui;let i=!1;if(2&t){const r=CL(e,fi)||EL(e,fi);if(r){if(r!==li||!n)return 8&t?kL(r,n):r;i=!0}}if(1&t){let r=CL(e,pi)||EL(e,pi);if(r)if(r===li&&n)i=!0;else{if(!(2&t))return r;if(r!==li)return r=kL(r,n),i?r:xL(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=DL(e,fi,n,r,i);if(t!==li)return t}if(1&t){let o=DL(e,pi,n,r,i);if(o!==li)return 2&t?(o=kL(o,n),i?o:xL(e,"iterationTypesOfAsyncIterable",o)):o}return li}function CL(e,t){return bL(e,t.iterableCacheKey)}function wL(e,t){const n=CL(e,t)||DL(e,t,void 0,void 0,!1);return n===li?di:n}function EL(e,t){let n;if(Gl(e,n=t.getGlobalIterableType(!1))||Gl(e,n=t.getGlobalIterableIteratorType(!1))){const[r]=Fp(e),{returnType:i,nextType:o}=wL(n,t);return xL(e,t.iterableCacheKey,yL(t.resolveIterationType(r,void 0)||r,t.resolveIterationType(i,void 0)||i,o))}if(Gl(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Fp(e);return xL(e,t.iterableCacheKey,yL(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function DL(e,t,n,r,i){const o=Zd(e,function(e){const t=Wm(!1),n=t&&xc(ql(t),Pc(e));return n&&gC(n)?hC(n):`__@${e}`}(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:ql(o);if(Cc(a))return i?ui:xL(e,t.iterableCacheKey,ui);const s=a?tf(a,0):void 0;if(!le(s))return i?li:xL(e,t.iterableCacheKey,li);const c=AL(Ey(q(s,qf)),t,n,r,i)??li;return i?c:xL(e,t.iterableCacheKey,c)}function NL(e,t,n){const r=n?Ra.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Ra.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return Co(e,!!mM(t)||!n&&BN(e.parent)&&e.parent.expression===e&&gg(!1)!==Mn&&iS(t,gg(!1)),r,Ys(t))}function AL(e,t,n,r,i){if(Cc(e))return ui;let o=PL(e,t)||function(e,t){const n=t.getGlobalIterableIteratorType(!1);if(Gl(e,n)){const[r]=Fp(e),i=PL(n,t)||LL(n,t,void 0,void 0,!1),{returnType:o,nextType:a}=i===li?di:i;return xL(e,t.iteratorCacheKey,yL(r,o,a))}if(Gl(e,t.getGlobalIteratorType(!1))||Gl(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=Fp(e);return xL(e,t.iteratorCacheKey,yL(n,r,i))}}(e,t);return o===li&&n&&(o=void 0,i=!0),o??(o=LL(e,t,n,r,i)),o===li?void 0:o}function PL(e,t){return bL(e,t.iteratorCacheKey)}function FL(e,t){const n=xc(e,"done")||Vt;return iS(0===t?Vt:Ut,n)}function IL(e){return FL(e,0)}function OL(e){return FL(e,1)}function ML(e,t,n,r,i){var o,s,c,l;const u=Zd(e,n);if(!u&&"next"!==n)return;const _=!u||"next"===n&&16777216&u.flags?void 0:"next"===n?ql(u):Ew(ql(u),2097152);if(Cc(_))return"next"===n?ui:_i;const d=_?tf(_,0):a;if(0===d.length){if(r){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??(i.errors=[]),i.errors.push(qp(r,e,n))):So(r,e,n)}return"next"===n?li:void 0}if((null==_?void 0:_.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(s=null==(o=e.symbol)?void 0:o.members)?void 0:s.get(n))===_.symbol,a=!i&&(null==(l=null==(c=r.symbol)?void 0:c.members)?void 0:l.get(n))===_.symbol;if(i||a){const t=i?e:r,{mapper:o}=_;return yL(gx(t.typeParameters[0],o),gx(t.typeParameters[1],o),"next"===n?gx(t.typeParameters[2],o):void 0)}}let f,p,m,g,h;for(const e of d)"throw"!==n&&le(e.parameters)&&(f=ke(f,CI(e,0))),p=ke(p,qf(e));if("throw"!==n){const e=f?ly(f):Nt;"next"===n?g=e:"return"===n&&(m=ke(m,t.resolveIterationType(e,r)||St))}const y=p?Ey(p):Qt,v=function(e){if(Cc(e))return ui;const t=bL(e,"iterationTypesOfIteratorResult");if(t)return t;if(Gl(e,Sr||(Sr=Vm("IteratorYieldResult",1,!1))||Mn))return xL(e,"iterationTypesOfIteratorResult",yL(Fp(e)[0],void 0,void 0));if(Gl(e,kr||(kr=Vm("IteratorReturnResult",1,!1))||Mn))return xL(e,"iterationTypesOfIteratorResult",yL(void 0,Fp(e)[0],void 0));const n=Qw(e,IL),r=n!==Qt?xc(n,"value"):void 0,i=Qw(e,OL),o=i!==Qt?xc(i,"value"):void 0;return xL(e,"iterationTypesOfIteratorResult",r||o?yL(r,o||Xt,void 0):li)}(t.resolveIterationType(y,r)||St);return v===li?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(qp(r,t.mustHaveAValueDiagnostic,n))):So(r,t.mustHaveAValueDiagnostic,n)),h=St,m=ke(m,St)):(h=v.yieldType,m=ke(m,v.returnType)),yL(h,ly(m),g)}function LL(e,t,n,r,i){const o=vL([ML(e,t,"next",n,r),ML(e,t,"return",n,r),ML(e,t,"throw",n,r)]);return i?o:xL(e,t.iteratorCacheKey,o)}function RL(e,t,n){if(Cc(t))return;const r=jL(t,n);return r&&r[EB(e)]}function jL(e,t){if(Cc(e))return ui;const n=t?fi:pi;return SL(e,t?2:1,void 0)||function(e,t,n,r){return AL(e,t,void 0,void 0,!1)}(e,n)}function BL(e,t){const n=!!(2&t);if(1&t){const t=RL(1,e,n);return t?n?kM(bM(t)):t:Ct}return n?kM(e)||Ct:e}function JL(e,t){const n=BL(t,Fy(e));return!(!n||!(fO(n,16384)||32769&n.flags))}function zL(e,t,n){const r=df(e);if(0===r.length)return;for(const t of xd(e))n&&4194304&t.flags||$L(e,t,Hy(t,8576,!0),Hl(t));const i=t.valueDeclaration;if(i&&Pu(i))for(const t of i.members)if(!bb(t)&&!o_(t)){const n=cs(t);$L(e,n,KO(t.name.expression),Hl(n))}if(r.length>1)for(const t of r)VL(e,t)}function $L(e,t,n,r){const i=t.valueDeclaration,o=$c(i);if(o&&WE(o))return;const a=vf(e,n),s=2&tS(e)?af(e.symbol,264):void 0,c=i&&226===i.kind||o&&167===o.kind?i:void 0,l=us(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&us(cs(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!le(gu(e),(e=>!!Sd(e,t.escapedName)&&!!pf(e,n.keyType)))?s:void 0);if(o&&!iS(r,n.type)){const e=xo(o,Ra.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Hs(t),Ys(r),Ys(n.keyType),Ys(n.type));c&&o!==c&&mT(e,qp(c,Ra._0_is_declared_here,Hs(t))),ro.add(e)}}}function VL(e,t){const n=t.declaration,r=vf(e,t.keyType),i=2&tS(e)?af(e.symbol,264):void 0,o=n&&us(cs(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&us(cs(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!le(gu(e),(e=>!!ff(e,t.keyType)&&!!pf(e,n.keyType)))?i:void 0);a&&!iS(t.type,n.type)&&So(a,Ra._0_index_type_1_is_not_assignable_to_2_index_type_3,Ys(t.keyType),Ys(t.type),Ys(n.keyType),Ys(n.type))}}function KL(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":So(e,t,e.escapedText)}}function UL(e){let t=!1;if(e)for(let t=0;t{var i,o,a;n.default?(t=!0,i=n.default,o=e,a=r,function e(t){if(183===t.kind){const e=bm(t);if(262144&e.flags)for(let n=a;n263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!WL(n,ju(e).localTypeParameters,Dl)){const t=Hs(e);for(const e of n)So(e.name,Ra.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function WL(e,t,n){const r=C(t),i=Nf(t);for(const o of e){const e=n(o),a=e.length;if(ar)return!1;for(let n=0;n1)return aB(r.types[1],Ra.Classes_can_only_extend_a_single_class);t=!0}else{if(Fn.assert(119===r.token),n)return aB(r,Ra.implements_clause_already_seen);n=!0}zj(r)}})(e)||Rj(e.typeParameters,t)}(e),OM(e),rL(e,e.name),UL(Dl(e)),pM(e);const t=cs(e),n=ju(t),r=f_(n),i=ql(t);qL(t),fM(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(176===o.kind)for(const e of o.parameters)hc(e,o)&&!$u(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=bb(o),a=o.name;if(!a)continue;const s=WE(a),c=s&&e?16:0,l=s?r:e?n:t,u=a&&jy(a);if(u)switch(o.kind){case 177:i(l,a,u,1|c);break;case 178:i(l,a,u,2|c);break;case 172:i(l,a,u,3|c);break;case 174:i(l,a,u,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))So(t,Ra.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,op(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&So(t,Ra.Duplicate_identifier_0,op(t)):i&r&-17?So(t,Ra.Duplicate_identifier_0,op(t)):e.set(n,i|r)}else e.set(n,r)}}(e),33554432&e.flags||function(e){for(const t of e.members){const n=t.name;if(bb(t)&&n){const t=jy(n);switch(t){case"name":case"length":case"caller":case"arguments":if(N)break;case"prototype":So(n,Ra.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,_c(cs(e)))}}}}(e);const o=my(e);if(o){w(o.typeArguments,SR),k<2&&Pj(o.parent,1);const t=gy(e);t&&t!==o&&WO(t.expression);const a=gu(n);a.length&&c((()=>{const t=a[0],s=du(n),c=$d(s);if(function(e,t){const n=tf(e,1);if(n.length){const r=n[0].declaration;r&&yb(r,8)&&(OR(t,eS(e.symbol))||So(t,Ra.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,$a(e.symbol)))}}(c,o),SR(o.expression),le(o.typeArguments)){w(o.typeArguments,SR);for(const e of lu(c,o.typeArguments,o))if(!aM(o,e.typeParameters))break}const l=f_(t,n.thisType);uS(r,l,void 0)?uS(i,Hx(c),e.name||e,Ra.Class_static_side_0_incorrectly_extends_base_class_static_side_1):QL(e,r,l,Ra.Class_0_incorrectly_extends_base_class_1),8650752&s.flags&&(iu(i)?tf(s,1).some((e=>4&e.flags))&&!vb(e,256)&&So(e.name||e,Ra.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):So(e.name||e,Ra.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),c.symbol&&32&c.symbol.flags||8650752&s.flags||w(uu(c,o.typeArguments,o),(e=>!YF(e.declaration)&&!Gx(qf(e),t)))&&So(o.expression,Ra.Base_constructors_must_all_have_the_same_return_type),function(e,t){var n,r,i,o;const a=Td(t);let s;e:for(const c of a){const a=ZL(c);if(4194304&a.flags)continue;const l=Sd(e,a.escapedName);if(!l)continue;const u=ZL(l),_=Vx(a);if(Fn.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===a){const n=eS(e.symbol);if(256&_&&(!n||!vb(n,256))){for(const n of gu(e)){if(n===t)continue;const e=Sd(n,a.escapedName),r=e&&ZL(e);if(r&&r!==a)continue e}s||(s=So(n,Ra.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Ys(e),Ys(t))),231===n.kind?mT(s,qp(c.valueDeclaration??(c.declarations&&Le(c.declarations))??n,Ra.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Hs(c),Ys(t))):mT(s,qp(c.valueDeclaration??(c.declarations&&Le(c.declarations))??n,Ra.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ys(e),Hs(c),Ys(t)))}}else{const s=Vx(u);if(8&_||8&s)continue;let c;const l=98308&a.flags,d=98308&u.flags;if(l&&d){if((6&$x(a)?null==(n=a.declarations)?void 0:n.some((e=>eR(e,_))):null==(r=a.declarations)?void 0:r.every((e=>eR(e,_))))||262144&$x(a)||u.valueDeclaration&&fN(u.valueDeclaration))continue;const c=4!==l&&4===d,f=4===l&&4!==d;if(c||f){const n=c?Ra._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Ra._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;So($c(u.valueDeclaration)||u.valueDeclaration,n,Hs(a),Ys(t),Ys(e))}else if(N){const n=null==(i=u.declarations)?void 0:i.find((e=>172===e.kind&&!e.initializer));if(n&&!(33554432&u.flags)&&!(256&_)&&!(256&s)&&!(null==(o=u.declarations)?void 0:o.some((e=>!!(33554432&e.flags))))){const r=ys(eS(e.symbol)),i=n.name;if(n.exclamationToken||!r||!qE(i)||!F||!rR(i,e,r)){const e=Ra.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;So($c(u.valueDeclaration)||u.valueDeclaration,e,Hs(a),Ys(t))}}}continue}if(RA(a)){if(RA(u)||4&u.flags)continue;Fn.assert(!!(98304&u.flags)),c=Ra.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&a.flags?Ra.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Ra.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;So($c(u.valueDeclaration)||u.valueDeclaration,c,Ys(t),Hs(a),Ys(e))}}}(n,t)}))}!function(e,t,n,r){const i=my(e)&&gu(t),o=(null==i?void 0:i.length)?f_(Le(i),t.thisType):void 0,a=du(t);for(const i of e.members)Tb(i)||(hD(i)&&w(i.parameters,(s=>{hc(s,i)&&XL(e,r,a,o,t,n,s,!0)})),XL(e,r,a,o,t,n,i,!1))}(e,n,r,i);const a=hy(e);if(a)for(const e of a)Qb(e.expression)&&!Ml(e.expression)||So(e.expression,Ra.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),cM(e),c(s(e));function s(t){return()=>{const i=Wd(sx(t));if(!wc(i))if(yu(i)){const t=i.symbol&&32&i.symbol.flags?Ra.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Ra.Class_0_incorrectly_implements_interface_1,o=f_(i,n.thisType);uS(r,o,void 0)||QL(e,r,o,t)}else So(t,Ra.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}c((()=>{zL(n,t),zL(i,t,!0),ZO(e),function(e){if(!F||!K||33554432&e.flags)return;const t=ys(e);for(const n of e.members)if(!(2&Pb(n))&&!bb(n)&&nR(n)){const e=n.name;if(qE(e)||WE(e)||cD(e)){const r=ql(cs(n));3&r.flags||DS(r)||t&&rR(e,r,t)||So(n.name,Ra.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Jp(e))}}}(e)}))}function XL(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&jR(a.name)||jR(a);return l?YL(e,t,n,r,i,o,Sb(a),kb(a),bb(a),s,Mc(l),c?a:void 0):0}function YL(e,t,n,r,i,o,a,s,c,l,u,_){const d=Pg(e),f=!!(33554432&e.flags);if(r&&(a||S.noImplicitOverride)){const e=Pc(u),i=c?n:r,p=Zd(c?t:o,e),m=Zd(i,e),g=Ys(r);if(p&&!m&&a){if(_){const e=jP(u,i);e?So(_,d?Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:Ra.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,g,Hs(e)):So(_,d?Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Ra.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,g)}return 2}if(p&&(null==m?void 0:m.declarations)&&S.noImplicitOverride&&!f){const e=le(m.declarations,kb);if(a)return 0;if(!e)return _&&So(_,l?d?Ra.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ra.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?Ra.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ra.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,g),1;if(s&&e)return _&&So(_,Ra.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,g),1}}else if(a){if(_){const e=Ys(i);So(_,d?Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Ra.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function QL(e,t,n,r){let i=!1;for(const r of e.members){if(bb(r))continue;const e=r.name&&jR(r.name)||jR(r);if(e){const o=Zd(t,e.escapedName),a=Zd(n,e.escapedName);if(o&&a){const s=()=>RS(void 0,Ra.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Hs(e),Ys(t),Ys(n));uS(ql(o),ql(a),r.name||r,void 0,s)||(i=!0)}}}i||uS(t,n,e.name||e,r)}function ZL(e){return 1&$x(e)?e.links.target:e}function eR(e,t){return 256&t&&(!fD(e)||!e.initializer)||ZN(e.parent)}function nR(e){return 172===e.kind&&!kb(e)&&!e.exclamationToken&&!e.initializer}function rR(e,t,n){const r=cD(e)?FC.createElementAccessExpression(FC.createThis(),e.expression):FC.createPropertyAccessExpression(FC.createThis(),e);return OT(r.expression,r),OT(r,n),r.flowNode=n.returnFlowNode,!DS(SE(r,t,pT(t)))}function iR(e){const t=$o(e);if(!(1024&t.flags)){t.flags|=1024;let n=0;for(const t of e.members){const e=oR(t,n);$o(t).enumMemberValue=e,n="number"==typeof e?e+1:void 0}}}function oR(e,t){if($p(e.name))So(e.name,Ra.Computed_property_names_are_not_allowed_in_enums);else{const t=Kp(e.name);HT(t)&&!VT(t)&&So(e.name,Ra.An_enum_member_cannot_have_a_numeric_name)}return e.initializer?function(e){const t=sm(e.parent),n=e.initializer,r=aR(n,e);return void 0!==r?t&&"number"==typeof r&&!isFinite(r)&&So(n,isNaN(r)?Ra.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Ra.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):t?So(n,Ra.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?So(n,Ra.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):uS(WO(n),zt,n,Ra.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),r}(e):33554432&e.parent.flags&&!sm(e.parent)?void 0:void 0!==t?t:void So(e.name,Ra.Enum_member_must_have_initializer)}function aR(e,t){switch(e.kind){case 224:const n=aR(e.operand,t);if("number"==typeof n)switch(e.operator){case 40:return n;case 41:return-n;case 55:return~n}break;case 226:const r=aR(e.left,t),i=aR(e.right,t);if("number"==typeof r&&"number"==typeof i)switch(e.operatorToken.kind){case 52:return r|i;case 51:return r&i;case 49:return r>>i;case 50:return r>>>i;case 48:return r<!!cs(e).isReferenced))&&!rj(e.importClause,!0)&&!Th(e.importClause,(e=>!!zo(cs(e)).constEnumReferenced))}function yR(e){return aA(e)&&kA(e.moduleReference)&&!e.isTypeOnly&&cs(e).isReferenced&&!rj(e,!1)&&!zo(cs(e)).constEnumReferenced}function vR(e){if(dR(e),dk(S)&&fc(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier)ok(S)&&4!==T&&(T<5||1===Ff(e).impliedNodeFormat)&&"default"===Ic(e.propertyName||e.name)&&Pj(e,131072);else{const t=e.propertyName||e.name,n=Ho(t,t.escapedText,2998271,void 0,void 0,!0);if(n&&(n===de||n===me||n.declarations&&Vo(vc(n.declarations[0]))))So(t,Ra.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Ic(t));else{e.isTypeOnly||e.parent.parent.isTypeOnly||Ba(e);const t=n&&(2097152&n.flags?Ia(n):n);(!t||111551&Oa(t))&&DO(e.propertyName||e.name)}}}function bR(e){const t=cs(e),n=zo(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return mf(e.exports,((e,t)=>"export="!==t))}(t)){const t=_a(e)||e.valueDeclaration;!t||cc(t)||Pg(t)||So(t,Ra.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=rs(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=$(e,hn(fB,vn(ZN)));if(!(524288&t&&r<=2)&&r>1&&!xR(e))for(const t of e)CB(t)&&ro.add(qp(t,Ra.Cannot_redeclare_exported_variable_0,Fc(n)))})),n.exportsChecked=!0}}function xR(e){return e&&e.length>1&&e.every((e=>Pg(e)&&lS(e)&&(Zg(e.expression)||th(e.expression))))}function SR(e){if(e){const n=i;i=e,g=0,function(e){Oh(e)&&w(e.jsDoc,(({comment:t,tags:n})=>{kR(t),w(n,(t=>{kR(t.comment),Pg(e)&&SR(t)}))}));const n=e.kind;if(t)switch(n){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}switch(n>=243&&n<=259&&Ih(e)&&e.flowNode&&!hE(e.flowNode)&&To(!1===S.allowUnreachableCode,e,Ra.Unreachable_code_detected),n){case 168:return HO(e);case 169:return GO(e);case 172:return eM(e);case 171:return function(e){return WE(e.name)&&So(e,Ra.Private_identifiers_are_not_allowed_outside_class_bodies),eM(e)}(e);case 185:case 184:case 179:case 180:case 181:return YO(e);case 174:case 173:return function(e){Xj(e)||Vj(e.name),mD(e)&&e.asteriskToken&&qE(e.name)&&"constructor"===Ic(e.name)&&So(e.name,Ra.Class_constructor_may_not_be_a_generator),LM(e),vb(e,256)&&174===e.kind&&e.body&&So(e,Ra.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Jp(e.name)),WE(e.name)&&!Xm(e)&&So(e,Ra.Private_identifiers_are_not_allowed_outside_class_bodies),tM(e)}(e);case 175:return function(e){Ij(e),zI(e,SR)}(e);case 176:return function(e){YO(e),function(e){const t=Pg(e)?ab(e):void 0,n=e.typeParameters||t&&Oe(t);if(n){const t=n.pos===n.end?n.pos:Ts(Ff(e).text,n.pos);return lB(e,t,n.end-t,Ra.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||ob(e);t&&_B(t,Ra.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),SR(e.body);const t=cs(e),n=af(t,e.kind);function r(e){return!!pu(e)||172===e.kind&&!bb(e)&&!!e.initializer}e===n&&fM(t),Jf(e.body)||c((function(){const t=e.parent;if(gy(t)){LE(e.parent,t);const n=jE(t),i=RE(e.body);if(i){if(n&&So(i,Ra.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!A&&(le(e.parent.members,r)||le(e.parameters,(e=>vb(e,16476)))))if(function(e,t){const n=Zh(e.parent);return IN(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(IN(n)&&fm(lF(n.expression))){t=n;break}if(nM(n))break}void 0===t&&So(e,Ra.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else So(i,Ra.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||So(e,Ra.Constructors_for_derived_classes_must_contain_a_super_call)}}))}(e);case 177:case 178:return rM(e);case 183:return cM(e);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void So(e,Ra.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=Lf(t),r=Kf(n);if(!r)return;SR(e.type);const{parameterName:i}=e;if(0===r.kind||2===r.kind)Gb(i);else if(r.parameterIndex>=0){if(DB(n)&&r.parameterIndex===n.parameters.length-1)So(i,Ra.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>RS(void 0,Ra.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);uS(r.type,ql(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if($u(e)&&XO(e,i,r.parameterName)){n=!0;break}n||So(e.parameterName,Ra.Cannot_find_parameter_0,r.parameterName)}}(e);case 186:return function(e){Sm(e)}(e);case 187:return function(e){w(e.members,SR),c((function(){const t=ub(e);zL(t,t.symbol),ZO(e),QO(e)}))}(e);case 188:return function(e){SR(e.elementType)}(e);case 189:return function(e){const t=e.elements;let n=!1,r=!1;for(const e of t){const t=ih(e);if(8&t){const t=sx(e.type);if(!jk(t)){So(e,Ra.A_rest_element_type_must_be_an_array_type);break}(Ik(t)||eT(t)&&4&t.target.combinedFlags)&&(r=!0)}else if(4&t){if(r){_B(e,Ra.A_rest_element_cannot_follow_another_rest_element);break}r=!0}else if(2&t){if(r){_B(e,Ra.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){_B(e,Ra.A_required_element_cannot_follow_an_optional_element);break}}w(e.elements,SR),sx(e)}(e);case 192:case 193:return function(e){w(e.types,SR),sx(e)}(e);case 196:case 190:case 191:return SR(e.type);case 197:return function(e){Gb(e)}(e);case 198:return function(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return _B(e.type,Ra._0_expected,ss(155));let t=Qh(e.parent);if(Pg(t)&&HA(t)){const e=Vh(t);e&&(t=Ph(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return _B(e,Ra.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Fm(n))return _B(e,Ra.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return _B(t.name,Ra.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!bb(t)||!wb(t))return _B(t.name,Ra.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!vb(t,64))return _B(t.name,Ra.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:_B(e,Ra.unique_symbol_types_are_not_allowed_here)}}else 148===e.operator&&188!==e.type.kind&&189!==e.type.kind&&aB(e,Ra.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ss(155))}(e),SR(e.type)}(e);case 194:return function(e){zI(e,SR)}(e);case 195:return function(e){Dc(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||_B(e,Ra.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),SR(e.typeParameter);const t=cs(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=zo(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=Ru(t),r=sf(t,168);if(!WL(r,[n],(e=>[e]))){const e=Hs(t);for(const t of r)So(t.name,Ra.All_declarations_of_0_must_have_identical_constraints,e)}}}RM(e)}(e);case 203:return function(e){for(const t of e.templateSpans)SR(t.type),uS(sx(t.type),mn,t.type);sx(e)}(e);case 205:return function(e){SR(e.argument),e.assertions&&yK(e.assertions.assertClause,_B)&&(Sv()||_B(e.assertions.assertClause,Ra.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),3!==YS(S)&&99!==YS(S)&&_B(e.assertions.assertClause,Ra.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),lM(e)}(e);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&_B(e,Ra.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&_B(e.type,Ra.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&_B(e.type,Ra.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),SR(e.type),sx(e)}(e);case 335:return function(e){const t=$h(e);if(!t||!QN(t)&&!yN(t))return void So(t,Ra.JSDoc_0_is_not_attached_to_a_class,Ic(e.tagName));const n=Sl(t).filter(_P);Fn.assert(n.length>0),n.length>1&&So(n[1],Ra.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=MM(e.class.expression),i=gy(t);if(i){const t=MM(i.expression);t&&r.escapedText!==t.escapedText&&So(r,Ra.JSDoc_0_1_does_not_match_the_extends_2_clause,Ic(e.tagName),Ic(r),Ic(t))}}(e);case 336:return function(e){const t=$h(e);t&&(QN(t)||yN(t))||So(t,Ra.JSDoc_0_is_not_attached_to_a_class,Ic(e.tagName))}(e);case 353:case 345:case 347:return function(e){e.typeExpression||So(e.name,Ra.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&KL(e.name,Ra.Type_alias_name_cannot_be_0),SR(e.typeExpression),UL(Dl(e))}(e);case 352:return function(e){SR(e.constraint);for(const t of e.typeParameters)SR(t)}(e);case 351:return function(e){SR(e.typeExpression)}(e);case 331:case 332:case 333:return function(e){e.name&&RR(e.name,!0)}(e);case 348:case 355:return function(e){SR(e.typeExpression)}(e);case 324:!function(e){c((function(){e.type||wh(e)||vC(e,St)})),YO(e)}(e);case 322:case 321:case 319:case 320:case 329:return TR(e),void zI(e,SR);case 325:return void function(e){TR(e),SR(e.type);const{parent:t}=e;if(uD(t)&&oP(t.parent))return void(Be(t.parent.parameters)!==t&&So(e,Ra.A_rest_parameter_must_be_last_in_a_parameter_list));HA(t)||So(e,Ra.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!TP(n))return void So(e,Ra.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Bh(n);if(!r)return;const i=zh(n);i&&Be(i.parameters).symbol===r||So(e,Ra.A_rest_parameter_must_be_last_in_a_parameter_list)}(e);case 316:return SR(e.type);case 340:case 342:case 341:return function(e){const t=Vh(e);t&&pu(t)&&So(e,Ra.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(e);case 357:return function(e){SR(e.typeExpression);const t=$h(e);if(t){const e=Cl(t,IP);if(C(e)>1)for(let t=1;t{var i;297!==e.kind||n||(void 0===t?t=e:(_B(e,Ra.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&c((i=e,()=>{const e=WO(i.expression);SO(r,e)||xS(e,r,i.expression,void 0)})),w(e.statements,SR),S.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&hE(e.fallthroughFlowNode)&&So(e,Ra.Fallthrough_case_in_switch)})),e.caseBlock.locals&&RM(e.caseBlock)}(e);case 256:return function(e){yB(e)||Dc(e.parent,(t=>ku(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(_B(e.label,Ra.Duplicate_label_0,op(e.label)),!0))),SR(e.statement)}(e);case 257:return function(e){yB(e)||qE(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=Ff(e);if(!oB(r)){const i=nm(r,e.pos);ro.add(IS(r,Qs(i),0,t,...n))}}(e,Ra.Line_break_not_permitted_here),e.expression&&WO(e.expression)}(e);case 258:return function(e){yB(e),YM(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;oL(e);const n=rb(e);if(n){const e=sx(n);!e||3&e.flags||aB(n,Ra.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)aB(e.initializer,Ra.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&gf(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&0!=(2&n.flags)&&_B(n.valueDeclaration,Ra.Cannot_redeclare_identifier_0_in_catch_clause,Fc(t))}))}}YM(t.block)}e.finallyBlock&&YM(e.finallyBlock)}(e);case 260:return cL(e);case 208:return function(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==Be(t))return _B(e,Ra.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Lj(t,Ra.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return _B(e.name,Ra.A_rest_element_cannot_have_a_property_name)}e.dotDotDotToken&&e.initializer&&lB(e,e.initializer.pos-1,1,Ra.A_rest_element_cannot_have_an_initializer)}(e),oL(e)}(e);case 263:return function(e){const t=O(e.modifiers,_D);E&&t&&le(e.members,(e=>xb(e)&&pu(e)))&&_B(t,Ra.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||vb(e,1024)||aB(e,Ra.A_class_declaration_without_the_default_modifier_must_have_a_name),GL(e),w(e.members,SR),RM(e)}(e);case 264:return function(e){Ij(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return Fn.assert(119===n.token),aB(n,Ra.Interface_declaration_cannot_have_implements_clause);if(t)return aB(n,Ra.extends_clause_already_seen);t=!0,zj(n)}}(e),UL(e.typeParameters),c((()=>{KL(e.name,Ra.Interface_name_cannot_be_0),pM(e);const t=cs(e);qL(t);const n=af(t,264);if(e===n){const n=ju(t),r=f_(n);if(function(e,t){const n=gu(e);if(n.length<2)return!0;const r=new Map;w(Yu(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=Td(f_(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===Nk(n.prop,a,Xx)){i=!1;const r=Ys(n.containingType),s=Ys(o);let c=RS(void 0,Ra.Named_property_0_of_types_1_and_2_are_not_identical,Hs(a),r,s);c=RS(c,Ra.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ys(e),r,s),ro.add(Gp(Ff(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of gu(n))uS(r,f_(t,n.thisType),e.name,Ra.Interface_0_incorrectly_extends_interface_1);zL(n,t)}}QO(e)})),w(vy(e),(e=>{Qb(e.expression)&&!Ml(e.expression)||So(e.expression,Ra.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),cM(e)})),w(e.members,SR),c((()=>{ZO(e),RM(e)}))}(e);case 265:return function(e){Ij(e),KL(e.name,Ra.Type_alias_name_cannot_be_0),pM(e),UL(e.typeParameters),141===e.type.kind?pB.has(e.name.escapedText)&&1===C(e.typeParameters)||So(e.type,Ra.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(SR(e.type),RM(e))}(e);case 266:return function(e){c((()=>function(e){Ij(e),rL(e,e.name),pM(e),e.members.forEach(lR),iR(e);const t=cs(e);if(e===af(t,e.kind)){if(t.declarations&&t.declarations.length>1){const n=sm(e);w(t.declarations,(e=>{tA(e)&&sm(e)!==n&&So($c(e),Ra.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;w(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?So(r.name,Ra.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}(e);case 267:return function(e){e.body&&(SR(e.body),Sp(e)||RM(e)),c((function(){var t,n;const r=Sp(e),i=33554432&e.flags;r&&!i&&So(e.name,Ra.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const o=gp(e),a=o?Ra.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Ra.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(gR(e,a))return;Ij(e)||i||11!==e.name.kind||_B(e.name,Ra.Only_ambient_modules_can_use_quoted_names),qE(e.name)&&rL(e,e.name),pM(e);const s=cs(e);if(512&s.flags&&!i&&SB(e,fk(S))){if(ek(S)&&!Ff(e).externalModuleIndicator&&So(e.name,Ra.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,xe),(null==(t=s.declarations)?void 0:t.length)>1){const t=function(e){const t=e.declarations;if(t)for(const e of t)if((263===e.kind||262===e.kind&&zf(e.body))&&!(33554432&e.flags))return e}(s);t&&(Ff(e)!==Ff(t)?So(e.name,Ra.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos95===e.kind));t&&So(t,Ra.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(o)if(kp(e)){if((r||33554432&cs(e).flags)&&e.body)for(const t of e.body.statements)uR(t,r)}else Vo(e.parent)?r?So(e.name,Ra.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Gs(Jy(e.name))&&So(e.name,Ra.Ambient_module_declaration_cannot_specify_relative_module_name):So(e.name,r?Ra.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Ra.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}(e);case 272:return function(e){if(!gR(e,Pg(e)?Ra.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Ra.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ij(e)&&gb(e)&&aB(e,Ra.An_import_declaration_cannot_have_modifiers),_R(e)){const t=e.importClause;t&&!function(e){var t;return e.isTypeOnly&&e.name&&e.namedBindings?_B(e,Ra.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!e.isTypeOnly||275!==(null==(t=e.namedBindings)?void 0:t.kind))&&TB(e.namedBindings)}(t)&&(t.name&&pR(t),t.namedBindings)&&(274===t.namedBindings.kind?(pR(t.namedBindings),4!==T&&(T<5||1===Ff(e).impliedNodeFormat)&&ok(S)&&Pj(e,65536)):Ua(e,e.moduleSpecifier)&&w(t.namedBindings.elements,pR))}mR(e)}}(e);case 271:return function(e){if(!gR(e,Pg(e)?Ra.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Ra.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Ij(e),Dg(e)||_R(e)))if(pR(e),vb(e,1)&&Ba(e),283!==e.moduleReference.kind){const t=Ia(cs(e));if(t!==pt){const n=Oa(t);if(111551&n){const t=Zb(e.moduleReference);1920&Va(t,112575).flags||So(t,Ra.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Jp(t))}788968&n&&KL(e.name,Ra.Import_name_cannot_be_0)}e.isTypeOnly&&_B(e,Ra.An_import_alias_cannot_use_import_type)}else!(T>=5&&void 0===Ff(e).impliedNodeFormat)||e.isTypeOnly||33554432&e.flags||_B(e,Ra.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(e);case 278:return function(e){if(!gR(e,Pg(e)?Ra.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Ra.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ij(e)&&hb(e)&&aB(e,Ra.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&yA(e.exportClause)&&C(e.exportClause.elements)&&0===k&&Pj(e,4194304),function(e){var t;e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind)&&TB(e.exportClause)}(e),!e.moduleSpecifier||_R(e))if(e.exportClause&&!fA(e.exportClause)){w(e.exportClause.elements,vR);const t=268===e.parent.kind&&gp(e.parent.parent),n=!t&&268===e.parent.kind&&!e.moduleSpecifier&&33554432&e.flags;312===e.parent.kind||t||n||So(e,Ra.Export_declarations_are_not_permitted_in_a_namespace)}else{const t=Ua(e,e.moduleSpecifier);t&&Qa(t)?So(e.moduleSpecifier,Ra.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Hs(t)):e.exportClause&&dR(e.exportClause),4!==T&&(T<5||1===Ff(e).impliedNodeFormat)&&(e.exportClause?ok(S)&&Pj(e,65536):Pj(e,32768))}mR(e)}}(e);case 277:return function(e){if(gR(e,e.isExportEquals?Ra.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Ra.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const t=312===e.parent.kind?e.parent:e.parent.parent;if(267===t.kind&&!gp(t))return void(e.isExportEquals?So(e,Ra.An_export_assignment_cannot_be_used_in_a_namespace):So(e,Ra.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!Ij(e)&&gb(e)&&aB(e,Ra.An_export_assignment_cannot_have_modifiers);const n=rb(e);n&&uS(DO(e.expression),sx(n),e.expression);const r=!e.isExportEquals&&!(33554432&e.flags)&&S.verbatimModuleSyntax&&(1===T||1===Ff(e).impliedNodeFormat);if(80===e.expression.kind){const t=e.expression,n=ms(Va(t,67108863,!0,!0,e));n?(IE(n,t),111551&Oa(n)?(DO(t),r||33554432&e.flags||!S.verbatimModuleSyntax||!ja(n,111551)||So(t,e.isExportEquals?Ra.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Ra.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Ic(t))):r||33554432&e.flags||!S.verbatimModuleSyntax||So(t,e.isExportEquals?Ra.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Ra.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Ic(t))):DO(t),dk(S)&&fc(t,!0)}else DO(e.expression);r&&So(e,Ra.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),bR(t),33554432&e.flags&&!Qb(e.expression)&&_B(e.expression,Ra.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),e.isExportEquals&&(T>=5&&(33554432&e.flags&&99===Ff(e).impliedNodeFormat||!(33554432&e.flags)&&1!==Ff(e).impliedNodeFormat)?_B(e,Ra.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==T||33554432&e.flags||_B(e,Ra.Export_assignment_is_not_supported_when_module_flag_is_system))}(e);case 242:case 259:return void yB(e);case 282:!function(e){OM(e)}(e)}}(e),i=n}}function kR(e){gt(e)&&w(e,(e=>{td(e)&&SR(e)}))}function TR(e){if(!Pg(e))if(rP(e)||nP(e)){const t=ss(rP(e)?54:58),n=e.postfix?Ra._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Ra._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=sx(e.type);_B(e,n,t,Ys(nP(e)&&r!==Qt&&r!==Xt?ly(ke([r,Pt],e.postfix?void 0:Rt)):r))}else _B(e,Ra.JSDoc_types_can_only_be_used_inside_documentation_comments)}function CR(e){const t=$o(Ff(e));1&t.flags?Fn.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function wR(e){var t,n;null==(t=Br)||t.push(Br.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const r=i;switch(i=e,g=0,e.kind){case 213:case 214:case 215:case 170:case 286:eF(e);break;case 218:case 219:case 174:case 173:!function(e){Fn.assert(174!==e.kind||Bm(e));const t=Fy(e),n=Wf(e);if(rO(e,n),e.body)if(ob(e)||qf(Lf(e)),241===e.body.kind)SR(e.body);else{const r=WO(e.body),i=n&&BL(n,t);i&&_S(2==(3&t)?hM(r,!1,e.body,Ra.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,e.body,e.body)}}(e);break;case 177:case 178:rM(e);break;case 231:!function(e){w(e.members,SR),RM(e)}(e);break;case 168:!function(e){var t,n;if(ZN(e.parent)||Pu(e.parent)||eA(e.parent)){const r=Ru(cs(e)),i=98304&uk(r);if(i){const a=cs(e.parent);if(!eA(e.parent)||48&tS(ju(a))){if(32768===i||65536===i){null==(t=Br)||t.push(Br.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Rh(ju(a)),id:Rh(r)});const s=sk(a,r,65536===i?Kn:Vn),c=sk(a,r,65536===i?Vn:Kn),l=r;o=r,uS(s,c,e,Ra.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),o=l,null==(n=Br)||n.pop()}}else So(e,Ra.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){DA(e)}(e);break;case 284:!function(e){DA(e.openingElement),$N(e.closingElement.tagName)?WN(e.closingElement):WO(e.closingElement.tagName),KN(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=fI(e),n=iN(e)?t:e,r=$o(e);Fn.assertIsDefined(r.assertionExpressionType);const i=zT(Hk(r.assertionExpressionType)),o=sx(t);wc(o)||c((()=>{const e=dC(i);aS(o,e)||xS(i,o,n,Ra.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e)}i=r,null==(n=Br)||n.pop()}function ER(e,t){if(t)return!1;switch(e){case 0:return!!S.noUnusedLocals;case 1:return!!S.noUnusedParameters;default:return Fn.assertNever(e)}}function DR(e){return hi.get(e.path)||a}function NR(n,r){try{return t=r,function(t){if(t){AR();const e=ro.getGlobalDiagnostics(),n=e.length;PR(t);const r=ro.getDiagnostics(t.fileName),i=ro.getGlobalDiagnostics();return i!==e?_e(Se(e,i,JS),r):0===n&&i.length>0?_e(i,r):r}return w(e.getSourceFiles(),PR),ro.getDiagnostics()}(n)}finally{t=void 0}}function AR(){for(const e of s)e();s=[]}function PR(t){AR();const n=c;var r,i,o;c=e=>e(),r=t,null==(i=Br)||i.push(Br.Phase.Check,"checkSourceFile",{path:r.path},!0),wr("beforeCheck"),function(t){const n=$o(t);if(!(1&n.flags)){if(vT(t,S,e))return;!function(e){33554432&e.flags&&function(e){for(const t of e.statements)if((A_(t)||243===t.kind)&&dB(t))return!0}(e)}(t),U(Yi),U(Qi),U(Zi),U(eo),U(to),w(t.statements,SR),SR(t.endOfFileToken),function(e){const t=$o(e);t.deferredNodes&&t.deferredNodes.forEach(wR),t.deferredNodes=void 0}(t),om(t)&&RM(t),c((()=>{t.isDeclarationFile||!S.noUnusedLocals&&!S.noUnusedParameters||jM(DR(t),((e,t,n)=>{!Pf(e)&&ER(t,!!(33554432&e.flags))&&ro.add(n)})),t.isDeclarationFile||function(){var e;for(const t of to)if(!(null==(e=cs(t))?void 0:e.isReferenced)){const e=bc(t);Fn.assert(Qy(e),"Only parameter declaration should be checked here");const n=qp(t.name,Ra._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Jp(t.name),Jp(t.propertyName));e.type||mT(n,IS(Ff(e),e.end,1,Ra.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Jp(t.propertyName))),ro.add(n)}}()})),2===S.importsNotUsedAsValues&&!t.isDeclarationFile&&HI(t)&&function(e){if(Te)for(const t of e.statements)(hR(t)||yR(t))&&So(t,Ra.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}(t),om(t)&&bR(t),Yi.length&&(w(Yi,ZM),U(Yi)),Qi.length&&(w(Qi,eL),U(Qi)),Zi.length&&(w(Zi,tL),U(Zi)),eo.length&&(w(eo,nL),U(eo)),n.flags|=1}}(r),wr("afterCheck"),Er("Check","beforeCheck","afterCheck"),null==(o=Br)||o.pop(),c=n}function FR(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function IR(e,t){let n,r=Xm(e);for(;r&&!(n=t(r));)r=Xm(r);return n}function OR(e,t){return!!IR(e,(e=>e===t))}function MR(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function LR(e){if(oy(e))return ls(e.parent);if(Pg(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!WE(e)&&!XA(e)&&!function(e){if(110===e.expression.kind){const t=eg(e,!1,!1);if(ku(t)){const e=KE(t);if(e){const t=GE(e,BD(e,void 0));return t&&!Cc(t)}}}}(e.parent)){const t=function(e){switch(nh(e.parent.parent)){case 1:case 3:return ls(e.parent);case 4:case 2:case 5:return cs(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&Qb(e)){const t=Va(e,2998271,!0);if(t&&t!==pt)return t}else if(bu(e)&&MR(e)){const t=xy(e,271);return Fn.assert(void 0!==t),za(e,!0)}if(bu(e)){const t=function(e){let t=e.parent;for(;sD(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){sx(t);const n=$o(e).resolvedSymbol;return n===pt?void 0:n}}for(;ax(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=Tm(e)?788968:111551,Yb(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=Qb(e)?Va(e,t,!0):void 0;if(n)return n}if(348===e.parent.kind)return Bh(e.parent);if(168===e.parent.kind&&352===e.parent.parent.kind){Fn.assert(!Pg(e));const t=Uh(e.parent);return t&&t.symbol}if(xg(e)){if(Jf(e))return;const t=Dc(e,yn(td,GA,XA)),n=t?901119:111551;if(80===e.kind){if(bg(e)&&$N(e)){const t=WN(e.parent);return t===pt?void 0:t}const r=Va(e,n,!0,!0,zh(e));if(!r&&t){const t=Dc(e,yn(Pu,ZN));if(t)return RR(e,!0,cs(t))}if(r&&t){const t=Vh(e);if(t&&VA(t)&&t===r.valueDeclaration)return Va(e,n,!0,!0,Ff(t))||r}return r}if(WE(e))return xP(e);if(211===e.kind||166===e.kind){const n=$o(e);if(n.resolvedSymbol)return n.resolvedSymbol;if(211===e.kind){if(gP(e,0),!n.resolvedSymbol){const t=DO(e.expression),r=vf(t,Wy(e.name));if(r.length&&t.members){const e=bd(t).members.get("__index");if(r===df(t))n.resolvedSymbol=e;else if(e){const i=zo(e),o=q(te(r,(e=>e.declaration)),bB).join(",");if(i.filteredIndexSymbolCache||(i.filteredIndexSymbolCache=new Map),i.filteredIndexSymbolCache.has(o))n.resolvedSymbol=i.filteredIndexSymbolCache.get(o);else{const e=Ao(131072,"__index");e.declarations=te(r,(e=>e.declaration)),e.parent=t.aliasSymbol?t.aliasSymbol:t.symbol?t.symbol:jR(e.declarations[0].parent),i.filteredIndexSymbolCache.set(o,e),n.resolvedSymbol=i.filteredIndexSymbolCache.get(o)}}}}}else hP(e,0);return!n.resolvedSymbol&&t&&sD(e)?RR(e):n.resolvedSymbol}if(XA(e))return RR(e)}else if(FR(e)){const t=Va(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==pt?t:Qp(e)}return 182===e.parent.kind?Va(e,1):void 0}function RR(e,t,n){if(bu(e)){const r=901119;let i=Va(e,r,t,!0,zh(e));if(!i&&qE(e)&&n&&(i=as(Ko(ns(n),e.escapedText,r))),i)return i}const r=qE(e)?n:RR(e.left,t,n),i=qE(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&Zd(ql(r),"prototype");return Zd(e?ql(e):ju(r),i)}}function jR(e,t){if(UA(e))return HI(e)?as(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(wB(e)){const t=cs(n);return ou(e.parent)&&e.parent.propertyName===e?LN(t):t}if(sy(e))return cs(n.parent);if(80===e.kind){if(MR(e))return LR(e);if(208===n.kind&&206===r.kind&&e===n.propertyName){const t=Zd(BR(r),e.escapedText);if(t)return t}else if(TN(n)&&n.name===e)return 105===n.keywordToken&&"target"===Ic(e)?yI(n).symbol:102===n.keywordToken&&"meta"===Ic(e)?Um().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!eb(e))return LR(e);case 110:const i=eg(e,!1,!1);if(ku(i)){const e=Lf(i);if(e.thisParameter)return e.thisParameter}if(Sg(e))return WO(e).symbol;case 197:return Gb(e).symbol;case 108:return WO(e).symbol;case 137:const o=e.parent;return o&&176===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Cg(e.parent.parent)&&wg(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||Pg(e)&&100!==YS(S)&&Lg(e.parent,!1)||pm(e.parent)||VD(e.parent)&&gm(e.parent.parent)&&e.parent.parent.argument===e.parent)return Ua(e,e,t);if(eN(n)&&rh(n)&&n.arguments[1]===e)return cs(n);case 9:const a=ZD(n)?n.argumentExpression===e?KO(n.expression):void 0:VD(n)&&zD(r)?sx(r.objectType):void 0;return a&&Zd(a,Pc(e.text));case 90:case 100:case 39:case 86:return ls(e.parent);case 205:return gm(e)?jR(e.argument.literal,t):void 0;case 95:return gA(e.parent)?Fn.checkDefined(e.parent.symbol):void 0;case 102:case 105:return TN(e.parent)?hI(e.parent).symbol:void 0;case 236:return WO(e).symbol;case 295:if(bg(e)&&$N(e)){const t=WN(e.parent);return t===pt?void 0:t}default:return}}}function BR(e){if(UA(e)&&!HI(e))return Ct;if(67108864&e.flags)return Ct;const t=Wb(e),n=t&&Su(cs(t.class));if(Tm(e)){const t=sx(e);return n?f_(t,n.thisType):t}if(xg(e))return zR(e);if(n&&!t.isImplements){const e=Oe(gu(n));return e?f_(e,n.thisType):Ct}if(ZT(e))return ju(cs(e));if(80===(r=e).kind&&ZT(r.parent)&&$c(r.parent)===r){const t=jR(e);return t?ju(t):Ct}var r;if(GD(e))return el(e,!0,0)||Ct;if(A_(e)){const t=cs(e);return t?ql(t):Ct}if(wB(e)){const t=jR(e);return t?ql(t):Ct}if($u(e))return el(e.parent,!0,0)||Ct;if(MR(e)){const t=jR(e);if(t){const e=ju(t);return wc(e)?ql(t):e}}return TN(e.parent)&&e.parent.keywordToken===e.kind?hI(e.parent):Ct}function JR(e){if(Fn.assert(210===e.kind||209===e.kind),250===e.parent.kind)return bO(e,pL(e.parent)||Ct);if(226===e.parent.kind)return bO(e,KO(e.parent.right)||Ct);if(303===e.parent.kind){const t=xt(e.parent.parent,YD);return yO(t,JR(t)||Ct,sp(t.properties,e.parent))}const t=xt(e.parent,XD),n=JR(t)||Ct,r=mL(65,n,Pt,e.parent)||Ct;return vO(t,n,t.elements.indexOf(e),r)}function zR(e){return ix(e)&&(e=e.parent),Mb(KO(e))}function $R(e){const t=ls(e.parent);return bb(e)?ql(t):ju(t)}function VR(e){const t=e.name;switch(t.kind){case 80:return Bb(Ic(t));case 9:case 11:return Bb(t.text);case 167:const e=EN(t);return pO(e,12288)?e:Jt;default:return Fn.fail("Unsupported property name.")}}function KR(e){const t=cf(Td(e=$d(e))),n=tf(e,0).length?Yn:tf(e,1).length?Qn:void 0;return n&&w(Td(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),Ds(t)}function UR(e){return 0!==tf(e,0).length||0!==tf(e,1).length}function qR(e){if(_u(e))return!1;const t=Ac(e,qE);if(!t)return!1;const n=t.parent;return!!n&&(!((QD(n)||JA(n))&&n.name===t)&&Sj(t)===ve)}function WR(e){let t=Ua(e.parent,e);if(!t||bp(t))return!0;const n=Qa(t);t=Ga(t);const r=zo(t);return void 0===r.exportsSomeValue&&(r.exportsSomeValue=n?!!(111551&t.flags):mf(rs(t),(function(e){return(e=Fa(e))&&!!(111551&Oa(e))}))),r.exportsSomeValue}function HR(e,t){var n;const r=Ac(e,qE);if(r){let e=Sj(r,function(e){return C_(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=as(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=us(e);if(i){if(512&i.flags&&312===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==Ff(r)?void 0:e}return Dc(r.parent,(e=>C_(e)&&cs(e)===i))}}}}function GR(e){const t=Bw(e);if(t)return t;const n=Ac(e,qE);if(n){const e=function(e){const t=$o(e).resolvedSymbol;return t&&t!==pt?t:Ho(e,e.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}(n);if(Pa(e,111551)&&!ja(e,111551))return _a(e)}}function XR(e){if(418&e.flags&&e.valueDeclaration&&!UA(e.valueDeclaration)){const t=zo(e);if(void 0===t.isDeclarationWithCollidingName){const n=jp(e.valueDeclaration);if(Mf(n)||function(e){return e.valueDeclaration&&GD(e.valueDeclaration)&&299===bc(e.valueDeclaration).parent.kind}(e)){const r=$o(e.valueDeclaration);if(Ho(n.parent,e.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(16384&r.flags){const e=32768&r.flags,i=d_(n,!1),o=241===n.kind&&d_(n.parent,!1);t.isDeclarationWithCollidingName=!(xp(n)||e&&(i||o))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function YR(e){if(!_u(e)){const t=Ac(e,qE);if(t){const e=Sj(t);if(e&&XR(e))return e.valueDeclaration}}}function QR(e){const t=Ac(e,A_);if(t){const e=cs(t);if(e)return XR(e)}return!1}function ZR(e){switch(Fn.assert(Te),e.kind){case 271:return tj(cs(e));case 273:case 274:case 276:case 281:const t=cs(e);return!!t&&tj(t,!0);case 278:const n=e.exportClause;return!!n&&(fA(n)||le(n.elements,ZR));case 277:return!e.expression||80!==e.expression.kind||tj(cs(e))}return!1}function ej(e){const t=Ac(e,aA);return!(void 0===t||312!==t.parent.kind||!Dg(t))&&(tj(cs(t))&&t.moduleReference&&!Jf(t.moduleReference))}function tj(e,t){if(!e)return!1;const n=ms(Ia(e));return n===pt||!!(111551&Oa(e,t,!0))&&(fk(S)||!nj(n))}function nj(e){return hO(e)||!!e.constEnumOnlyModule}function rj(e,t){if(Fn.assert(Te),da(e)){const t=cs(e),n=t&&zo(t);if(null==n?void 0:n.referenced)return!0;const r=zo(t).aliasTarget;if(r&&1&Pb(e)&&111551&Oa(r)&&(fk(S)||!nj(r)))return!0}return!!t&&!!zI(e,(e=>rj(e,t)))}function ij(e){if(zf(e.body)){if(q_(e)||U_(e))return!1;const t=Bf(cs(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function oj(e){return!(!F||Ef(e)||TP(e)||!e.initializer||vb(e,16476))}function sj(e){return F&&Ef(e)&&!e.initializer&&vb(e,16476)}function cj(e){const t=Ac(e,YN);if(!t)return!1;const n=cs(t);return!!(n&&16&n.flags)&&!!mf(ns(n),(e=>111551&e.flags&&e.valueDeclaration&&QD(e.valueDeclaration)))}function lj(e){const t=Ac(e,YN);if(!t)return a;const n=cs(t);return n&&Td(ql(n))||a}function uj(e){var t;const n=e.id||0;return n<0||n>=$i.length?0:(null==(t=$i[n])?void 0:t.flags)||0}function _j(e){return iR(e.parent),$o(e).enumMemberValue}function dj(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function fj(e){if(306===e.kind)return _j(e);const t=$o(e).resolvedSymbol;if(t&&8&t.flags){const e=t.valueDeclaration;if(sm(e.parent))return _j(e)}}function pj(e){return!!(524288&e.flags)&&tf(e,0).length>0}function gj(e,t){var n;const r=Ac(e,bu);if(!r)return 0;if(t&&!(t=Ac(t)))return 0;let i=!1;if(sD(r)){const e=Va(Zb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(cu))}const o=Va(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ia(o):o;i||(i=!(!o||!ja(o,111551)));const s=Va(r,788968,!0,!1,t);if(a&&a===s){const e=mg(!1);if(e&&a===e)return 9;const t=ql(a);if(t&&au(t))return i?10:1}if(!s)return i?11:0;const c=ju(s);return wc(c)?i?11:0:3&c.flags?11:pO(c,245760)?2:pO(c,528)?6:pO(c,296)?3:pO(c,2112)?4:pO(c,402653316)?5:eT(c)?7:pO(c,12288)?8:pj(c)?10:Ik(c)?7:11}function hj(e,t,n,r,i){const o=Ac(e,Pm);if(!o)return FC.createToken(133);const a=cs(o);let s=!a||133120&a.flags?Ct:Xk(ql(a));return 8192&s.flags&&s.symbol===a&&(n|=1048576),i&&(s=pT(s)),ce.typeToTypeNode(s,t,1024|n,r)}function yj(e,t,n,r){const i=Ac(e,ku);if(!i)return FC.createToken(133);const o=Lf(i);return ce.typeToTypeNode(qf(o),t,1024|n,r)}function bj(e,t,n,r){const i=Ac(e,l_);if(!i)return FC.createToken(133);const o=dC(zR(i));return ce.typeToTypeNode(o,t,1024|n,r)}function xj(e){return ue.has(Pc(e))}function Sj(e,t){const n=$o(e).resolvedSymbol;if(n)return n;let r=e;if(t){const t=e.parent;A_(t)&&e===t.name&&(r=vc(t))}return Ho(r,e.escapedText,3257279,void 0,void 0,!0)}function kj(e){if(!_u(e)){const t=Ac(e,qE);if(t){const e=Sj(t);if(e)return ms(e).valueDeclaration}}}function Tj(e){if(!_u(e)){const t=Ac(e,qE);if(t){const e=Sj(t);if(e)return V(ms(e).declarations,(e=>{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}}function Cj(e){return!!(cm(e)||GN(e)&&LB(e))&&Lb(ql(cs(e)))}function Ej(e,t){return function(e,t,n){const r=1056&e.flags?ce.symbolToExpression(e.symbol,111551,t,void 0,n):e===Ut?FC.createTrue():e===Vt&&FC.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?FC.createBigIntLiteral(i):"number"==typeof i?FC.createNumericLiteral(i):FC.createStringLiteral(i)}(ql(cs(e)),e,t)}function Dj(e){return e?(ho(e),Ff(e).localJsxFactory||ti):ti}function Nj(e){if(e){const t=Ff(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;const e=t.pragmas.get("jsxfrag"),n=gt(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=qI(n.arguments.factory,k),t.localJsxFragmentFactory}}if(S.jsxFragmentFactory)return qI(S.jsxFragmentFactory,k)}function Aj(e){const t=267===e.kind?bt(e.name,NE):xh(e),n=qa(t,t,void 0);if(n)return af(n,312)}function Pj(e,t){if((n&t)!==t&&S.importHelpers){const a=Ff(e);if(wp(a,S)&&!(33554432&e.flags)){const s=(i=a,o=e,r||(r=Wa(i,od,Ra.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,o)||pt),r);if(s!==pt){const r=t&~n;for(let t=1;t<=33554432;t<<=1)if(r&t)for(const n of Fj(t)){if(l.has(n))continue;l.add(n);const r=Fa(Ko(rs(s),Pc(n),111551));r?524288&t?le(Bf(r),(e=>DI(e)>3))||So(e,Ra.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,od,n,4):1048576&t?le(Bf(r),(e=>DI(e)>4))||So(e,Ra.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,od,n,5):1024&t&&(le(Bf(r),(e=>DI(e)>2))||So(e,Ra.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,od,n,3)):So(e,Ra.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,od,n)}}n|=t}}var i,o}function Fj(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return E?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return Fn.fail("Unrecognized helper")}}function Ij(e){const t=function(e){const t=function(e){return AF(e)?O(e.modifiers,_D):void 0}(e);return t&&aB(t,Ra.Decorators_are_not_valid_here)}(e)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return O(e.modifiers,vu);default:if(268===e.parent.kind||312===e.parent.kind)return;switch(e.kind){case 262:return Oj(e,134);case 263:case 185:return Oj(e,128);case 231:case 264:case 265:return O(e.modifiers,vu);case 243:return 4&e.declarationList.flags?Oj(e,135):O(e.modifiers,vu);case 266:return Oj(e,87);default:Fn.assertNever(e)}}}(e);return t&&aB(t,Ra.Modifiers_cannot_appear_here)}(e);if(void 0!==t)return t;if(uD(e)&&Yv(e))return aB(e,Ra.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const n=PN(e)?7&e.declarationList.flags:0;let r,i,o,a,s,c=0,l=!1,u=!1;for(const t of e.modifiers)if(_D(t)){if(!fg(E,e,e.parent,e.parent.parent))return 174!==e.kind||zf(e.body)?aB(e,Ra.Decorators_are_not_valid_here):aB(e,Ra.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(E&&(177===e.kind||178===e.kind)){const t=nb(e.parent.members,e);if(Eb(t.firstAccessor)&&e===t.secondAccessor)return aB(e,Ra.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-132098&c)return _B(t,Ra.Decorators_are_not_valid_here);if(u&&126975&c)return Fn.assertIsDefined(s),!oB(Ff(t))&&(mT(So(t,Ra.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),qp(s,Ra.Decorator_used_before_export_here)),!0);c|=131072,126975&c?1&c&&(l=!0):u=!0,s??(s=t)}else{if(148!==t.kind){if(171===e.kind||173===e.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_type_member,ss(t.kind));if(181===e.kind&&(126!==t.kind||!Pu(e.parent)))return _B(t,Ra._0_modifier_cannot_appear_on_an_index_signature,ss(t.kind))}if(103!==t.kind&&147!==t.kind&&87!==t.kind&&168===e.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_type_parameter,ss(t.kind));switch(t.kind){case 87:if(266!==e.kind&&168!==e.kind)return _B(e,Ra.A_class_member_cannot_have_the_0_keyword,ss(87));const u=e.parent;if(168===e.kind&&!(Cu(u)||Pu(u)||CD(u)||wD(u)||bD(u)||xD(u)||pD(u)))return _B(t,Ra._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ss(t.kind));break;case 164:if(16384&c)return _B(t,Ra._0_modifier_already_seen,"override");if(2&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"override","readonly");if(128&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"override","accessor");if(512&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"override","async");c|=16384,a=t;break;case 125:case 124:case 123:const _=sc(jb(t.kind));if(28&c)return _B(t,Ra.Accessibility_modifier_already_seen);if(16384&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,_,"override");if(32&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,_,"static");if(128&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,_,"accessor");if(64&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,_,"readonly");if(512&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,_,"async");if(268===e.parent.kind||312===e.parent.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_module_or_namespace_element,_);if(256&c)return 123===t.kind?_B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,_,"abstract"):_B(t,Ra._0_modifier_must_precede_1_modifier,_,"abstract");if(pu(e))return _B(t,Ra.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);c|=jb(t.kind);break;case 126:if(32&c)return _B(t,Ra._0_modifier_already_seen,"static");if(64&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"static","readonly");if(512&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"static","async");if(128&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"static","accessor");if(268===e.parent.kind||312===e.parent.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===e.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_parameter,"static");if(256&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"static","override");c|=32,r=t;break;case 129:if(128&c)return _B(t,Ra._0_modifier_already_seen,"accessor");if(64&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(2&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==e.kind)return _B(t,Ra.accessor_modifier_can_only_appear_on_a_property_declaration);c|=128;break;case 148:if(64&c)return _B(t,Ra._0_modifier_already_seen,"readonly");if(172!==e.kind&&171!==e.kind&&181!==e.kind&&169!==e.kind)return _B(t,Ra.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(128&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");c|=64;break;case 95:if(S.verbatimModuleSyntax&&!(33554432&e.flags)&&265!==e.kind&&264!==e.kind&&267!==e.kind&&312===e.parent.kind&&(1===T||1===Ff(e).impliedNodeFormat))return _B(t,Ra.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(1&c)return _B(t,Ra._0_modifier_already_seen,"export");if(2&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"export","declare");if(256&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"export","abstract");if(512&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"export","async");if(Pu(e.parent))return _B(t,Ra._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===e.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_parameter,"export");if(4===n)return _B(t,Ra._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===n)return _B(t,Ra._0_modifier_cannot_appear_on_an_await_using_declaration,"export");c|=1;break;case 90:const d=312===e.parent.kind?e.parent:e.parent.parent;if(267===d.kind&&!gp(d))return _B(t,Ra.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===n)return _B(t,Ra._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===n)return _B(t,Ra._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(1&c))return _B(t,Ra._0_modifier_must_precede_1_modifier,"export","default");if(l)return _B(s,Ra.Decorators_are_not_valid_here);c|=1024;break;case 138:if(2&c)return _B(t,Ra._0_modifier_already_seen,"declare");if(512&c)return _B(t,Ra._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&c)return _B(t,Ra._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Pu(e.parent)&&!fD(e))return _B(t,Ra._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===e.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===n)return _B(t,Ra._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===n)return _B(t,Ra._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&e.parent.flags&&268===e.parent.kind)return _B(t,Ra.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(pu(e))return _B(t,Ra._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(128&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");c|=2,i=t;break;case 128:if(256&c)return _B(t,Ra._0_modifier_already_seen,"abstract");if(263!==e.kind&&185!==e.kind){if(174!==e.kind&&172!==e.kind&&177!==e.kind&&178!==e.kind)return _B(t,Ra.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==e.parent.kind||!vb(e.parent,256))return _B(t,172===e.kind?Ra.Abstract_properties_can_only_appear_within_an_abstract_class:Ra.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(512&c&&o)return _B(o,Ra._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"abstract","override");if(128&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Jc(e)&&81===e.name.kind)return _B(t,Ra._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");c|=256;break;case 134:if(512&c)return _B(t,Ra._0_modifier_already_seen,"async");if(2&c||33554432&e.parent.flags)return _B(t,Ra._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===e.kind)return _B(t,Ra._0_modifier_cannot_appear_on_a_parameter,"async");if(256&c)return _B(t,Ra._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");c|=512,o=t;break;case 103:case 147:const f=103===t.kind?32768:65536,p=103===t.kind?"in":"out";if(168!==e.kind||!(ZN(e.parent)||Pu(e.parent)||eA(e.parent)))return _B(t,Ra._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,p);if(c&f)return _B(t,Ra._0_modifier_already_seen,p);if(32768&f&&65536&c)return _B(t,Ra._0_modifier_must_precede_1_modifier,"in","out");c|=f}}return 176===e.kind?32&c?_B(r,Ra._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16384&c?_B(a,Ra._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(512&c)&&_B(o,Ra._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===e.kind||271===e.kind)&&2&c?_B(i,Ra.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===e.kind&&16476&c&&$u(e.name)?_B(e,Ra.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===e.kind&&16476&c&&e.dotDotDotToken?_B(e,Ra.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(512&c)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return _B(t,Ra._0_modifier_cannot_be_used_here,"async")}(e,o)}function Oj(e,t){const n=O(e.modifiers,vu);return n&&n.kind!==t?n:void 0}function Lj(e,t=Ra.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&lB(e[0],e.end-",".length,",".length,t)}function Rj(e,t){if(e&&0===e.length){const n=e.pos-"<".length;return lB(t,n,Ts(t.text,e.end)+">".length-n,Ra.Type_parameter_list_cannot_be_empty)}return!1}function jj(e){const t=Ff(e);return Ij(e)||Rj(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&ea(t.fileName,[".mts",".cts"])&&_B(e.typeParameters[0],Ra.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e;return gs(t,n.pos).line!==gs(t,n.end).line&&_B(n,Ra.Line_terminator_not_permitted_before_arrow)}(e,t)||Cu(e)&&function(e){if(k>=3){const t=e.body&&AN(e.body)&&nF(e.body.statements);if(t){const n=V(e.parameters,(e=>!!e.initializer||$u(e.name)||rd(e)));if(C(n)){w(n,(e=>{mT(So(e,Ra.This_parameter_is_not_allowed_with_use_strict_directive),qp(t,Ra.use_strict_directive_used_here))}));const e=n.map(((e,t)=>qp(e,0===t?Ra.Non_simple_parameter_declared_here:Ra.and_here)));return mT(So(t,Ra.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}(e)}function Jj(e,t){return Lj(t)||function(e,t){if(t&&0===t.length){const n=Ff(e),r=t.pos-"<".length;return lB(n,r,Ts(n.text,t.end)+">".length-r,Ra.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function zj(e){const t=e.types;if(Lj(t))return!0;if(t&&0===t.length){const n=ss(e.token);return lB(e,t.pos,0,Ra._0_list_cannot_be_empty,n)}return le(t,$j)}function $j(e){return bN(e)&&oD(e.expression)&&e.typeArguments?_B(e,Ra.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Jj(e,e.typeArguments)}function Vj(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&_B(t.expression,Ra.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function Kj(e){if(e.asteriskToken){if(Fn.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return _B(e.asteriskToken,Ra.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return _B(e.asteriskToken,Ra.An_overload_signature_cannot_be_declared_as_a_generator)}}function Uj(e,t){return!!e&&_B(e,t)}function qj(e,t){return!!e&&_B(e,t)}function Wj(e){if(yB(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=Ff(e);if(ng(e)){if(!oB(t))switch(wp(t,S)||ro.add(qp(e.awaitModifier,Ra.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),T){case 100:case 199:if(1===t.impliedNodeFormat){ro.add(qp(e.awaitModifier,Ra.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(k>=4)break;default:ro.add(qp(e.awaitModifier,Ra.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!oB(t)){const t=qp(e.awaitModifier,Ra.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=Hm(e);return n&&176!==n.kind&&(Fn.assert(0==(2&Fy(n)),"Enclosing function should never be an async function."),mT(t,qp(n,Ra.Did_you_mean_to_mark_this_function_as_async))),ro.add(t),!0}return!1}if(BN(e)&&!(65536&e.flags)&&qE(e.initializer)&&"async"===e.initializer.escapedText)return _B(e.initializer,Ra.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!tB(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?Ra.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Ra.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return aB(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?Ra.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Ra.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return _B(r.name,t)}if(r.type)return _B(r,249===e.kind?Ra.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Ra.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function Hj(e){if(e.parameters.length===(177===e.kind?1:2))return Xv(e)}function Gj(e,t){if(function(e){return Ry(e)&&!Zu(e)}(e))return _B(e,t)}function Xj(e){if(jj(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==Le(e.modifiers).kind))return aB(e,Ra.Modifiers_cannot_appear_here);if(Uj(e.questionToken,Ra.An_object_member_cannot_be_declared_optional))return!0;if(qj(e.exclamationToken,Ra.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return lB(e,e.end-1,";".length,Ra._0_expected,"{")}if(Kj(e))return!0}if(Pu(e.parent)){if(k<2&&WE(e.name))return _B(e.name,Ra.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return Gj(e.name,Ra.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(174===e.kind&&!e.body)return Gj(e.name,Ra.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(264===e.parent.kind)return Gj(e.name,Ra.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return Gj(e.name,Ra.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 Yj(e){return Oy(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function Qj(e){const t=e.initializer;if(t){const r=!(Yj(t)||function(e){if((QD(e)||ZD(e)&&Yj(e.argumentExpression))&&Qb(e.expression))return!!(1056&DO(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));if(!(cm(e)||GN(e)&&LB(e))||e.type)return _B(t,Ra.Initializers_are_not_allowed_in_ambient_contexts);if(r)return _B(t,Ra.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function Zj(e){if(80===e.kind){if("__esModule"===Ic(e))return function(e,t,n,...r){return!oB(Ff(t))&&(bo(e,t,n,...r),!0)}("noEmit",e,Ra.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!vN(e))return Zj(e.name)}return!1}function eB(e){if(80===e.kind){if("let"===e.escapedText)return _B(e,Ra.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)vN(e)||eB(e.name)}return!1}function tB(e){const t=e.declarations;if(Lj(e.declarations))return!0;if(!e.declarations.length)return lB(e,t.pos,t.end-t.pos,Ra.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!jN(e.parent)?6===n&&uO(e):_B(e,4===n?Ra.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Ra.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function nB(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return nB(e.parent)}return!0}function oB(e){return e.parseDiagnostics.length>0}function aB(e,t,...n){const r=Ff(e);if(!oB(r)){const i=nm(r,e.pos);return ro.add(IS(r,i.start,i.length,t,...n)),!0}return!1}function lB(e,t,n,r,...i){const o=Ff(e);return!oB(o)&&(ro.add(IS(o,t,n,r,...i)),!0)}function _B(e,t,...n){return!oB(Ff(e))&&(ro.add(qp(e,t,...n)),!0)}function dB(e){return 264!==e.kind&&265!==e.kind&&272!==e.kind&&271!==e.kind&&278!==e.kind&&277!==e.kind&&270!==e.kind&&!vb(e,1027)&&aB(e,Ra.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function yB(e){if(33554432&e.flags){if(!$o(e).hasReportedStatementInAmbientContext&&(ku(e.parent)||Fu(e.parent)))return $o(e).hasReportedStatementInAmbientContext=aB(e,Ra.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||312===e.parent.kind){const t=$o(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=aB(e,Ra.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function kB(e){const t=-1!==op(e).indexOf("."),n=16&e.numericLiteralFlags;t||n||+e.text<=2**53-1||ko(!1,qp(e,Ra.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function TB(e){return!!w(e.elements,(e=>{if(e.isTypeOnly)return aB(e,276===e.kind?Ra.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Ra.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function AB(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=xw(t,e);if(r)return r;const i=Td(e);if(i){const e=yw(i,t);if(e){const r=QS(t,q(e,(e=>[()=>ql(e),e.escapedName])),n);if(r!==t)return r}}}}function PB(e){return jy(e)||(cD(e)&&Qb(e.expression)?_w(e.expression):void 0)}function OB(e){return ye===e?Ne:(ye=e,Ne=Sc(e))}function MB(e){return he===e?Ce:(he=e,Ce=Tc(e))}function LB(e){const t=7&MB(e);return 2===t||4===t||6===t}}function TB(e){return!Fu(e)}function CB(e){return 262!==e.kind&&174!==e.kind||!!e.body}function wB(e){switch(e.parent.kind){case 276:case 281:return qE(e);default:return oy(e)}}function EB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function DB(e){return!!(1&e.flags)}function NB(e){return!!(2&e.flags)}var AB,PB=S({"src/compiler/checker.ts"(){var e;gH(),yB(),co(),rB=/^".+"$/,iB="(anonymous)",oB=1,aB=1,sB=1,cB=1,lB=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(lB||{}),uB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),_B=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement",e[e.TypeOnly=128]="TypeOnly",e))(_B||{}),dB=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(dB||{}),fB=hn(CB,TB),pB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),mB=class{},(e=gB||(gB={})).JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes",hB=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r;return!(!(null==(r=this.inner)?void 0:r.trackSymbol)||this.disableTrackSymbol||!this.inner.trackSymbol(e,t,n)||(this.onDiagnosticReported(),0))}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var n;(null==(n=this.inner)?void 0:n.trackReferencedAmbientModule)&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(null==(t=this.inner)?void 0:t.trackExternalModuleSymbolOfImportTypeNode)&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}reportImportTypeNodeResolutionModeOverride(){var e;(null==(e=this.inner)?void 0:e.reportImportTypeNodeResolutionModeOverride)&&(this.onDiagnosticReported(),this.inner.reportImportTypeNodeResolutionModeOverride())}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function FB(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=gt(i)?(r||VB)(i):i,Fn.assertNode(o,n),o):void 0}function IB(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||io-r)&&(i=o-r),MB(e,t,n,r,i)}function MB(e,t,n,r,i){let o;const a=e.length;(r>0||i=2&&(i=function(e,t){let n;for(let r=0;r{const o=rl,addSource:P,setSourceContent:F,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){Fn.assert(e>=S,"generatedLine cannot backtrack"),Fn.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const u=tJ(n.mappings);for(const s of u){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLineJSON.stringify(j())};function P(t){s();const n=Oa(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=_.get(n);return void 0===i&&(i=u.length,u.push(n),l.push(t),_.set(n,i)),c(),i}function F(e,t){if(s(),null!==t){for(o||(o=[]);o.length=S,"generatedLine cannot backtrack"),Fn.assert(t>=0,"generatedCharacter cannot be negative"),Fn.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),Fn.assert(void 0===r||r>=0,"sourceLine cannot be negative"),Fn.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!D||S!==e||k!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(L(),S=e,k=t,N=!1,A=!1,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,N=!0,void 0!==o&&(E=o,A=!0)),c()}function M(e){f.push(e),f.length>=1024&&R()}function L(){if(D&&(!x||m!==S||g!==k||h!==T||y!==C||v!==w||b!==E)){if(s(),m0&&(p+=String.fromCharCode.apply(void 0,f),f.length=0)}function j(){return L(),R(),{version:3,file:t,sourceRoot:n,sources:u,names:d,mappings:p,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),M((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:Fn.fail(`${t}: not a base64 value`))}while(e>0);var t}}function XB(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function YB(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=UB.exec(n);if(r)return y(r[1]);if(!n.match(qB))break}}function QB(e){return"string"==typeof e||null===e}function ZB(e){return null!==e&&"object"==typeof e&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&>(e.sources)&&I(e.sources,yt)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||gt(e.sourcesContent)&&I(e.sourcesContent,QB))&&(void 0===e.names||null===e.names||gt(e.names)&&I(e.names,yt))}function eJ(e){try{const t=JSON.parse(e);if(ZB(t))return t}catch{}}function tJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return u(!0,!0)},next(){for(;!n&&r=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=0!=(32&a),i|=(31&a)<>=1:(i>>=1,i=-i),i}}function nJ(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function rJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function iJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function oJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function aJ(e,t){return Fn.assert(e.sourceIndex===t.sourceIndex),Bt(e.sourcePosition,t.sourcePosition)}function sJ(e,t){return Bt(e.generatedPosition,t.generatedPosition)}function cJ(e){return e.sourcePosition}function lJ(e){return e.generatedPosition}function uJ(e,t,n){const r=oa(n),i=t.sourceRoot?ga(t.sourceRoot,r):r,o=ga(t.file,r),s=e.getSourceFileLike(o),c=t.sources.map((e=>ga(e,i))),l=new Map(c.map(((t,n)=>[e.getCanonicalFileName(t),n])));let u,_,d;return{getSourcePosition:function(e){const t=function(){if(void 0===_){const e=[];for(const t of p())e.push(t);_=he(e,sJ,oJ)}return _}();if(!le(t))return e;let n=Ue(t,e.pos,lJ,Bt);n<0&&(n=~n);const r=t[n];return void 0!==r&&iJ(r)?{fileName:c[r.sourceIndex],pos:r.sourcePosition}:e},getGeneratedPosition:function(t){const n=l.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of p()){if(!iJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>he(e,aJ,oJ)))}return d[e]}(n);if(!le(r))return t;let i=Ue(r,t.pos,cJ,Bt);i<0&&(i=~i);const a=r[i];return void 0===a||a.sourceIndex!==n?t:{fileName:o,pos:a.generatedPosition}}};function f(n){const r=void 0!==s?us(s,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(rJ(n)){const r=e.getSourceFileLike(c[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?us(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function p(){if(void 0===u){const n=tJ(t.mappings),r=Ze(n,f);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),u=a):u=r}return u}}var _J,dJ,fJ=S({"src/compiler/sourcemap.ts"(){gH(),co(),KB=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,UB=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,qB=/^\s*(\/\/[@#] .*)?$/,WB={getSourcePosition:wt,getGeneratedPosition:wt}}});function pJ(e){return(e=Ec(e))?bB(e):0}function mJ(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function gJ(e,t){return function(n){return 312===n.kind?t(n):function(n){return e.factory.createBundle(q(n.sourceFiles,t),n.prepends)}(n)}}function hJ(e){return!!Sh(e)}function yJ(e){if(Sh(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!pA(t))return!1;let n=0;for(const e of t.elements)mJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&kh(e)}function vJ(e){return!yJ(e)&&(kh(e)||!!e.importClause&&pA(e.importClause.namedBindings)&&function(e){return!!e&&!!pA(e)&&le(e.elements,mJ)}(e.importClause.namedBindings))}function bJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new dJ,a=[],s=new Map;let c,l,u=!1,_=!1,d=!1,f=!1;for(const n of t.statements)switch(n.kind){case 272:i.push(n),!d&&yJ(n)&&(d=!0),!f&&vJ(n)&&(f=!0);break;case 271:283===n.moduleReference.kind&&i.push(n);break;case 278:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),yA(n.exportClause))m(n);else{const e=n.exportClause.name;s.get(Ic(e))||(SJ(a,pJ(n),e),s.set(Ic(e),!0),c=ke(c,e)),d=!0}else i.push(n),_=!0;else m(n);break;case 277:n.isExportEquals&&!l&&(l=n);break;case 243:if(vb(n,1))for(const e of n.declarationList.declarations)c=xJ(e,s,c,a);break;case 262:if(vb(n,1))if(vb(n,1024))u||(SJ(a,pJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;s.get(Ic(e))||(SJ(a,pJ(n),e),s.set(Ic(e),!0),c=ke(c,e))}break;case 263:if(vb(n,1))if(vb(n,1024))u||(SJ(a,pJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;e&&!s.get(Ic(e))&&(SJ(a,pJ(n),e),s.set(Ic(e),!0),c=ke(c,e))}}const p=mF(e.factory,e.getEmitHelperFactory(),t,r,_,d,f);return p&&i.unshift(p),{externalImports:i,exportSpecifiers:o,exportEquals:l,hasExportStarsToExportValues:_,exportedBindings:a,exportedNames:c,externalHelpersImportDeclaration:p};function m(e){for(const t of xt(e.exportClause,yA).elements)if(!s.get(Ic(t.name))){const r=t.propertyName||t.name;e.moduleSpecifier||o.add(r,t);const i=n.getReferencedImportDeclaration(r)||n.getReferencedValueDeclaration(r);i&&SJ(a,pJ(i),t.name),s.set(Ic(t.name),!0),c=ke(c,t.name)}}}function xJ(e,t,n,r){if($u(e.name))for(const i of e.name.elements)vN(i)||(n=xJ(i,t,n,r));else if(!_u(e.name)){const i=Ic(e.name);t.get(i)||(t.set(i,!0),n=ke(n,e.name),ZP(e.name)&&SJ(r,pJ(e),e.name))}return n}function SJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}function kJ(e){return ed(e)||9===e.kind||Sy(e.kind)||qE(e)}function TJ(e){return!qE(e)&&kJ(e)}function CJ(e){return e>=65&&e<=79}function wJ(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function EJ(e){if(!IN(e))return;const t=ny(e.expression);return fm(t)?t:void 0}function DJ(e,t,n){for(let r=t;rfunction(e,t,n){return fD(e)&&(!!e.initializer||!t)&&xb(e)===n}(e,t,n)))}function PJ(e){return fD(t=e)&&xb(t)||gD(e);var t}function FJ(e){return V(e.members,PJ)}function IJ(e){return 172===e.kind&&void 0!==e.initializer}function OJ(e){return!bb(e)&&(Ou(e)||Iu(e))&&WE(e.name)}function MJ(e){let t;if(e){const n=e.parameters,r=n.length>0&&Yv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;ezJ(e.privateEnv,t)))}var KJ,UJ=S({"src/compiler/transformers/utilities.ts"(){gH(),_J=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(du(t)||_u(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=KF(t),i=Al(r)&&r!==t?e.toKey(r):`(generated@${bB(r)})`;return qF(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return qF(!1,n.prefix,t,n.suffix,e.toKey)}}return WE(t)?Ic(t).slice(1):Ic(t)}},dJ=class extends _J{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(cn(n,t),n.length||this.delete(e))}}}});function qJ(e,t,n,r,i,o){let a,s,c=e;if(Xb(e))for(a=e.right;cx(e.left)||sx(e.left);){if(!Xb(a))return Fn.checkDefined(FB(a,t,l_));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:function(e,r,i,a){Fn.assertNode(e,o?qE:l_);const s=o?o(e,r,i):tI(n.factory.createAssignment(Fn.checkDefined(FB(e,t,l_)),r),i);s.original=a,u(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return Fn.assertEachNode(t,Yu),e.createArrayLiteralExpression(q(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return Fn.assertEachNode(t,Gu),e.createObjectLiteralExpression(q(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:ez,visitor:t};if(a&&(a=FB(a,t,l_),Fn.assert(a),qE(a)&&WJ(e,a.escapedText)||HJ(e)?a=ZJ(l,a,!1,c):i?a=ZJ(l,a,!0,c):tv(e)&&(c=a)),XJ(l,e,a,c,Xb(e)),a&&i){if(!le(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function u(e){s=ke(s,e)}}function WJ(e,t){const n=xF(e);return Wu(n)?function(e,t){const n=wF(e);for(const e of n)if(WJ(e,t))return!0;return!1}(n,t):!!qE(n)&&n.escapedText===t}function HJ(e){const t=TF(e);if(t&&cD(t)&&!eu(t.expression))return!0;const n=xF(e);return!!n&&Wu(n)&&!!w(wF(n),HJ)}function GJ(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],u={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=ke(s,e)},emitBindingOrAssignment:_,createArrayBindingOrAssignmentPattern:e=>function(e,t){return Fn.assertEachNode(t,Ku),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return Fn.assertEachNode(t,GD),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(GN(e)){let t=bF(e);t&&(qE(t)&&WJ(e,t.escapedText)||HJ(e))&&(t=ZJ(u,Fn.checkDefined(FB(t,u.visitor,l_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(XJ(u,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,_(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=Be(c);t.pendingExpressions=ke(t.pendingExpressions,n.factory.createAssignment(e,t.value)),we(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(ke(e,r)):r);a.original=o,tI(a,i),l.push(a)}return l;function _(e,t,r,i){Fn.assertNode(e,Su),s&&(t=n.factory.inlineExpressions(ke(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function XJ(e,t,n,r,i){const o=xF(t);if(!i){const i=FB(bF(t),e.visitor,l_);i?n?(n=function(e,t,n,r){return t=ZJ(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!TJ(i)&&Wu(o)&&(n=ZJ(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}Hu(o)?function(e,t,n,r,i){const o=wF(n),a=o.length;let s,c;1!==a&&(r=ZJ(e,r,!Uu(t)||0!==a,i));for(let t=0;t=1)||98304&l.transformFlags||98304&xF(l).transformFlags||cD(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=QJ(e,r,t);cD(t)&&(c=ke(c,o.argumentExpression)),XJ(e,l,o,l)}else s=ke(s,FB(l,e.visitor,qu))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):Xu(o)?function(e,t,n,r,i){const o=wF(n),a=o.length;let s,c;e.level<1&&e.downlevelIteration?r=ZJ(e,tI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&SF(o[a-1])?void 0:a),i),!1,i):(1!==a&&(e.level<1||0===a)||I(o,vN))&&(r=ZJ(e,r,!Uu(t)||0!==a,i));for(let t=0;t=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!YJ(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=ke(c,[t,n]),s=ke(s,e.createArrayBindingOrAssignmentElement(t))}else s=ke(s,n);else{if(vN(n))continue;if(SF(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);XJ(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);XJ(e,n,i,n)}}}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(const[t,n]of c)XJ(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function YJ(e){const t=xF(e);if(!t||vN(t))return!0;const n=TF(e);if(n&&!By(n))return!1;const r=bF(e);return!(r&&!TJ(r))&&(Wu(t)?I(wF(t),YJ):qE(t))}function QJ(e,t,n){const{factory:r}=e.context;if(cD(n)){const r=ZJ(e,Fn.checkDefined(FB(n.expression,e.visitor,l_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(Oy(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(Ic(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function ZJ(e,t,n,r){if(qE(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(tI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function ez(e){return e}var tz=S({"src/compiler/transformers/destructuring.ts"(){gH(),KJ=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(KJ||{})}});function nz(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return ew(a).classThis=t,a}function rz(e){var t;if(!gD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return IN(n)&&Hb(n.expression,!0)&&qE(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function iz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&le(e.members,rz)}function oz(e,t,n,r){if(iz(t))return t;const i=nz(e,n,r);t.name&&cw(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);tI(o,t.members);const a=QN(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return ew(a).classThis=n,a}var az=S({"src/compiler/transformers/classThis.ts"(){gH()}});function sz(e,t,n){const r=Ec(lF(n));return(QN(r)||YN(r))&&!r.name&&vb(r,1024)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function cz(e,t,n){const{factory:r}=e;if(void 0!==n)return{assignedName:r.createStringLiteral(n),name:t};if(By(t)||WE(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(By(t.expression)&&!qE(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function lz(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return ew(s).assignedName=t,s}function uz(e){var t;if(!gD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return IN(n)&&CE(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function _z(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&le(e.members,uz)}function dz(e){return!!e.name||_z(e)}function fz(e,t,n,r){if(_z(t))return t;const{factory:i}=e,o=lz(e,n,r);t.name&&cw(o.body.statements[0],t.name);const a=L(t.members,rz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return tI(l,t.members),ew(t=QN(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l)).assignedName=n,t}function pz(e,t,n,r){if(r&&NE(n)&&vg(n))return t;const{factory:i}=e,o=lF(t),a=yN(o)?xt(fz(e,o,n),yN):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function mz(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=cz(e,t.name,r),s=pz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):sz(i,t.name,t.objectAssignmentInitializer),a=pz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):sz(i,t.name,t.initializer),a=pz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):sz(i,t.name,t.initializer),a=pz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 208:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):sz(i,t.name,t.initializer),a=pz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=cz(e,t.name,r),s=pz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):sz(i,t.left,t.right),a=pz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=pz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var gz,hz=S({"src/compiler/transformers/namedEvaluation.ts"(){gH()}});function yz(e,t,n,r,i,o){const a=FB(t.tag,n,l_);Fn.assert(a);const s=[void 0],c=[],l=[],u=t.template;if(0===o&&!_v(u))return $B(t,n,e);const{factory:_}=e;if(FE(u))c.push(vz(_,u)),l.push(bz(_,u,r));else{c.push(vz(_,u.head)),l.push(bz(_,u.head,r));for(const e of u.templateSpans)c.push(vz(_,e.literal)),l.push(bz(_,e.literal,r)),s.push(Fn.checkDefined(FB(e.expression,n,l_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(_.createArrayLiteralExpression(c),_.createArrayLiteralExpression(l));if(HI(r)){const e=_.createUniqueName("templateObject");i(e),s[0]=_.createLogicalOr(e,_.createAssignment(e,d))}else s[0]=d;return _.createCallExpression(a,void 0,s)}function vz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function bz(e,t,n){let r=t.rawText;if(void 0===r){Fn.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=np(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),tI(e.createStringLiteral(r),t)}var xz,Sz=S({"src/compiler/transformers/taggedTemplate.ts"(){gH(),gz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(gz||{})}});function kz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=HS(c),u=GS(c),_=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Dz(e):void 0,f=e.onEmitNode,p=e.onSubstituteNode;let m,g,h,y,v,b,x,S;return e.onEmitNode=function(e,t,n){const r=S,i=m;UA(t)&&(m=t),2&x&&function(e){return 267===Ec(e).kind}(t)&&(S|=2),8&x&&function(e){return 266===Ec(e).kind}(t)&&(S|=8),f(e,t,n),S=r,m=i},e.onSubstituteNode=function(e,n){return n=p(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return Ce(e)||e}(e);case 211:case 212:return function(e){return function(e){const n=function(e){if(!ek(c))return QD(e)||ZD(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){kw(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(Math.abs(n))):t.createNumericLiteral(n);if(!c.removeComments){bw(i,3,` ${r=op(Ec(e,lS)),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}(e)}(e)}return e}(n):zA(n)?function(e){if(2&x){const n=e.name,r=Ce(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return tI(t.createPropertyAssignment(n,i),e)}return tI(t.createPropertyAssignment(n,r),e)}}return e}(n):n},e.enableSubstitution(211),e.enableSubstitution(212),function(e){return 313===e.kind?function(e){return t.createBundle(e.sourceFiles.map(k),te(e.prepends,(e=>315===e.kind?WC(e,"js"):e)))}(e):k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=T(t,L);return Cw(n,e.readEmitHelpers()),m=void 0,n}function T(e,t){const n=y,r=v,i=b;!function(e){switch(e.kind){case 312:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(vb(e,2))break;e.name?ie(e):Fn.assert(263===e.kind||vb(e,1024))}}(e);const o=t(e);return y!==n&&(v=r),y=n,b=i,o}function C(e){return T(e,w)}function w(e){return 1&e.transformFlags?M(e):e}function E(e){return T(e,D)}function D(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){if(Ac(n)!==n)return 1&n.transformFlags?$B(n,C,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=FB(e.importClause,ue,cA);return n||1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.assertClause):void 0}(n);case 271:return me(n);case 277:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?$B(t,C,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||fA(e.exportClause))return e;const n=c.verbatimModuleSyntax||!!e.moduleSpecifier&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=FB(e.exportClause,(e=>function(e,n){return fA(e)?function(e){return t.updateNamespaceExport(e,Fn.checkDefined(FB(e.name,C,qE)))}(e):function(e,n){const r=IB(e.elements,pe,vA);return n||le(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Kl);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.assertClause):void 0}(n);default:Fn.fail("Unhandled ellided statement")}}(n);default:return w(n)}}function N(e){return T(e,A)}function A(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||vb(e,1)?M(e):e}function P(n){return r=>T(r,(r=>function(n,r){switch(n.kind){case 176:return function(n){if(H(n))return t.updateConstructorDeclaration(n,void 0,RB(n.parameters,C,e),function(n,r){const a=r&&V(r.parameters,(e=>hc(e,r)));if(!le(a))return BB(n,C,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,C),l=NJ(n.statements,c),u=te(a,X);l.length?G(s,n.statements,c,l,0,u):(we(s,u),we(s,IB(n.statements,C,I_,c))),s=t.mergeLexicalEnvironment(s,o());const _=t.createBlock(tI(t.createNodeArray(s),n.statements),!0);return tI(_,n),QC(_,n),_}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||vb(e,256);if(r&&(!_||!Eb(e)))return;let i=Pu(n)?IB(e.modifiers,r?I:C,Lu):IB(e.modifiers,F,Lu);return i=J(i,e,n),r?t.updatePropertyDeclaration(e,_e(i,t.createModifiersFromModifierFlags(2)),Fn.checkDefined(FB(e.name,C,xu)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,W(e),void 0,void 0,FB(e.initializer,C,l_))}(n,r);case 177:return Z(n,r);case 178:return ee(n,r);case 174:return Y(n,r);case 175:return $B(n,C,e);case 240:return n;case 181:return;default:return Fn.failBadSyntaxKind(n)}}(r,n)))}function F(e){return _D(e)?void 0:C(e)}function I(e){return vu(e)?void 0:C(e)}function O(e){if(!_D(e)&&!(117086&jb(e.kind)||g&&95===e.kind))return e}function M(n){if(I_(n)&&vb(n,2))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){const r=function(e){let t=0;le(AJ(e,!0,!0))&&(t|=1);const n=my(e);return n&&106!==lF(n.expression).kind&&(t|=64),hg(_,e)&&(t|=2),gg(_,e)&&(t|=4),ge(e)?t|=8:function(e){return he(e)&&vb(e,1024)}(e)?t|=32:ye(e)&&(t|=16),t}(n),i=l<=1&&!!(7&r);if(!function(e){return Eb(e)||le(e.typeParameters)||le(e.heritageClauses,R)||le(e.members,R)}(n)&&!hg(_,n)&&!ge(n))return t.updateClassDeclaration(n,IB(n.modifiers,O,vu),n.name,void 0,IB(n.heritageClauses,C,jA),IB(n.members,P(n),Au));i&&e.startLexicalEnvironment();const o=i||8&r;let a=IB(n.modifiers,o?I:C,Lu);2&r&&(a=B(a,n));const s=o&&!n.name||4&r||1&r?n.name??t.getGeneratedNameForNode(n):n.name,c=t.updateClassDeclaration(n,a,s,void 0,IB(n.heritageClauses,C,jA),j(n));let u,d=cp(n);if(1&r&&(d|=64),rw(c,d),i){const r=[c],i=Tx(Ts(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);AT(a,i.end),rw(a,3072);const s=t.createReturnStatement(a);NT(s,i.pos),rw(s,3840),r.push(s),Wf(r,e.endLexicalEnvironment());const l=t.createImmediatelyInvokedArrowFunction(r);ow(l,1);const _=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,l);QC(_,n);const d=t.createVariableStatement(void 0,t.createVariableDeclarationList([_],1));QC(d,n),pw(d,n),cw(d,xx(n)),dF(d),u=d}else u=c;if(o){if(8&r)return[u,ve(n)];if(32&r)return[u,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[u,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return u}(n);case 231:return function(e){let n=IB(e.modifiers,I,Lu);return hg(_,e)&&(n=B(n,e)),t.updateClassExpression(e,n,e.name,void 0,IB(e.heritageClauses,C,jA),j(e))}(n);case 298:return function(t){if(119!==t.token)return $B(t,C,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,Fn.checkDefined(FB(e.expression,C,r_)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,IB(e.properties,(n=e,e=>T(e,(e=>function(e,t){switch(e.kind){case 303:case 304:case 305:return C(e);case 177:return Z(e,t);case 178:return ee(e,t);case 174:return Y(e,t);default:return Fn.failBadSyntaxKind(e)}}(e,n)))),Bu));var n}(n);case 176:case 172:case 174:case 177:case 178:case 175:return Fn.fail("Class and object literal elements must be visited with their respective visitors");case 262:return function(n){if(!H(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,IB(n.modifiers,O,vu),n.asteriskToken,n.name,void 0,RB(n.parameters,C,e),void 0,BB(n.body,C,e)||t.createBlock([]));if(ge(n)){const e=[r];return function(e,t){e.push(ve(t))}(e,n),e}return r}(n);case 218:return function(n){return H(n)?t.updateFunctionExpression(n,IB(n.modifiers,O,vu),n.asteriskToken,n.name,void 0,RB(n.parameters,C,e),void 0,BB(n.body,C,e)||t.createBlock([])):t.createOmittedExpression()}(n);case 219:return function(n){return t.updateArrowFunction(n,IB(n.modifiers,O,vu),void 0,RB(n.parameters,C,e),void 0,n.equalsGreaterThanToken,BB(n.body,C,e))}(n);case 169:return function(e){if(Yv(e))return;const n=t.updateParameterDeclaration(e,IB(e.modifiers,(e=>_D(e)?C(e):void 0),Lu),e.dotDotDotToken,Fn.checkDefined(FB(e.name,C,Su)),void 0,void 0,FB(e.initializer,C,l_));return n!==e&&(pw(n,e),tI(n,Sx(e)),cw(n,Sx(e)),rw(n.name,64)),n}(n);case 217:return function(n){if(u_(lF(n.expression,-7))){const e=FB(n.expression,C,l_);return Fn.assert(e),t.createPartiallyEmittedExpression(e,n)}return $B(n,C,e)}(n);case 216:case 234:return function(e){const n=FB(e.expression,C,l_);return Fn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=FB(e.expression,C,l_);return Fn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,Fn.checkDefined(FB(e.expression,C,l_)),void 0,IB(e.arguments,C,l_))}(n);case 214:return function(e){return t.updateNewExpression(e,Fn.checkDefined(FB(e.expression,C,l_)),void 0,IB(e.arguments,C,l_))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,Fn.checkDefined(FB(e.tag,C,l_)),void 0,Fn.checkDefined(FB(e.template,C,n_)))}(n);case 235:return function(e){const n=FB(e.expression,C,r_);return Fn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!sm(e)||fk(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=ae(n,e);a&&(4===u&&y===m||(i|=1024));const s=Se(e),l=Te(e),_=ge(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(_,t.createAssignment(_,t.createObjectLiteralExpression()));if(ge(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=q(e.members,re);return Wf(a,o()),we(a,s),h=i,t.createBlock(tI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));return QC(f,e),a&&(gw(f,void 0),vw(f,void 0)),tI(f,e),iw(f,i),n.push(f),n}(n);case 243:return function(n){if(ge(n)){const e=jx(n.declarationList);if(0===e.length)return;return tI(t.createExpressionStatement(t.inlineExpressions(q(e,ne))),n)}return $B(n,C,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,Fn.checkDefined(FB(e.name,C,Su)),void 0,void 0,FB(e.initializer,C,l_));return e.type&&Fw(n.name,e.type),n}(n);case 267:return se(n);case 271:return me(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,Fn.checkDefined(FB(e.tagName,C,L_)),void 0,Fn.checkDefined(FB(e.attributes,C,FA)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,Fn.checkDefined(FB(e.tagName,C,L_)),void 0,Fn.checkDefined(FB(e.attributes,C,FA)))}(n);default:return $B(n,C,e)}}function L(n){const r=mk(c,"alwaysStrict")&&!(HI(n)&&u>=5)&&!am(n);return t.updateSourceFile(n,LB(n.statements,E,e,0,r))}function R(e){return!!(8192&e.transformFlags)}function j(e){const n=IB(e.members,P(e),Au);let r;const i=Wv(e),o=i&&V(i.parameters,(e=>hc(e,i)));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);QC(n,e),r=ke(r,n)}return r?(r=we(r,n),tI(t.createNodeArray(r),e.members)):n}function B(e,n){const r=z(n,n);if(le(r)){const n=[];we(n,En(e,zF)),we(n,V(e,_D)),we(n,r),we(n,V(Dn(e,zF),vu)),e=tI(t.createNodeArray(n),e)}return e}function J(e,n,r){if(Pu(r)&&yg(_,n,r)){const i=z(n,r);if(le(i)){const n=[];we(n,V(e,_D)),we(n,i),we(n,V(e,vu)),e=tI(t.createNodeArray(n),e)}}return e}function z(e,r){if(_)return xz?function(e,r){if(d){let i;if($(e)&&(i=ke(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),U(e)&&(i=ke(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))),K(e)&&(i=ke(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))),i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if($(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=ke(i,t.createDecorator(o))}if(U(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=ke(i,t.createDecorator(o))}if(K(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=ke(i,t.createDecorator(o))}return i}}(e,r)}function $(e){const t=e.kind;return 174===t||177===t||178===t||172===t}function K(e){return 174===e.kind}function U(e){switch(e.kind){case 263:case 231:return void 0!==Wv(e);case 174:case 177:case 178:return!0}return!1}function W(e){const n=e.name;if(cD(n)&&(!xb(e)&&b||Eb(e)&&_)){const e=FB(n.expression,C,l_);if(Fn.assert(e),!TJ(zl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return Fn.checkDefined(FB(n,C,xu))}function H(e){return!Jf(e.body)}function G(e,n,r,i,o,a){const s=i[o],c=n[s];if(we(e,IB(n,C,I_,r,s-r)),WN(c)){const n=[];G(n,c.tryBlock.statements,0,i,o+1,a),tI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),FB(c.catchClause,C,BA),FB(c.finallyBlock,C,AN)))}else we(e,IB(n,C,I_,s,1)),we(e,a);we(e,IB(n,C,I_,s+1))}function X(e){const n=e.name;if(!qE(n))return;const r=OT(tI(t.cloneNode(n),n),n.parent);rw(r,3168);const i=OT(tI(t.cloneNode(n),n),n.parent);return rw(i,3072),dF(nw(tI(QC(t.createExpressionStatement(t.createAssignment(tI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),bx(e,-1))))}function Y(n,r){if(!(1&n.transformFlags))return n;if(!H(n))return;let i=Pu(r)?IB(n.modifiers,C,Lu):IB(n.modifiers,F,Lu);return i=J(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,W(n),void 0,void 0,RB(n.parameters,C,e),void 0,BB(n.body,C,e))}function Q(e){return!(Jf(e.body)&&vb(e,256))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=Pu(r)?IB(n.modifiers,C,Lu):IB(n.modifiers,F,Lu);return i=J(i,n,r),t.updateGetAccessorDeclaration(n,i,W(n),RB(n.parameters,C,e),void 0,BB(n.body,C,e)||t.createBlock([]))}function ee(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=Pu(r)?IB(n.modifiers,C,Lu):IB(n.modifiers,F,Lu);return i=J(i,n,r),t.updateSetAccessorDeclaration(n,i,W(n),RB(n.parameters,C,e),BB(n.body,C,e)||t.createBlock([]))}function ne(n){const r=n.name;return $u(r)?qJ(n,C,e,0,!1,be):tI(t.createAssignment(xe(r),Fn.checkDefined(FB(n.initializer,C,l_))),n)}function re(n){const r=function(e,n){const r=e.name;return WE(r)?t.createIdentifier(""):cD(r)?r.expression:qE(r)?t.createStringLiteral(Ic(r)):t.cloneNode(r)}(n),i=function(n){const r=s.getConstantValue(n);return void 0!==r?"string"==typeof r?t.createStringLiteral(r):t.createNumericLiteral(r):(0==(8&x)&&(x|=8,e.enableSubstitution(80)),n.initializer?Fn.checkDefined(FB(n.initializer,C,l_)):t.createVoidZero())}(n),o=t.createAssignment(t.createElementAccessExpression(h,r),i),a=11===i.kind?o:t.createAssignment(t.createElementAccessExpression(h,o),r);return tI(t.createExpressionStatement(tI(a,n)),n)}function ie(e){v||(v=new Map);const t=oe(e);v.has(t)||v.set(t,e)}function oe(e){return Fn.assertNode(e.name,qE),e.name.escapedText}function ae(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=312===y.kind?0:1,o=t.createVariableStatement(IB(n.modifiers,O,vu),t.createVariableDeclarationList([r],i));return QC(r,n),gw(r,void 0),vw(r,void 0),QC(o,n),ie(n),!!function(e){if(v){const t=oe(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?cw(o.declarationList,n):cw(o,n),pw(o,n),iw(o,2048),e.push(o),!0)}function se(n){if(!function(e){const t=Ac(e,nA);return!t||SB(t,fk(c))}(n))return t.createNotEmittedStatement(n);Fn.assertNode(n.name,qE,"A TypeScript namespace should have an Identifier name."),0==(2&x)&&(x|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));const i=[];let a=4;const s=ae(i,n);s&&(4===u&&y===m||(a|=1024));const l=Se(n),_=Te(n),d=ge(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let f=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(ge(n)){const e=t.getLocalName(n,!1,!0);f=t.createAssignment(e,f)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,u;if(r(),e.body)if(268===e.body.kind)T(e.body,(e=>we(c,IB(e.statements,N,I_)))),l=e.body.statements,u=e.body;else{const t=se(e.body);t&&(gt(t)?we(c,t):c.push(t)),l=bx(ce(e).body.statements,-1)}Wf(c,o()),h=i,g=a,v=s;const _=t.createBlock(tI(t.createNodeArray(c),l),!0);return tI(_,u),e.body&&268===e.body.kind||rw(_,3072|cp(_)),_}(n,_)),void 0,[f]));return QC(p,n),s&&(gw(p,void 0),vw(p,void 0)),tI(p,n),iw(p,a),i.push(p),i}function ce(e){if(267===e.body.kind)return ce(e.body)||e.body}function ue(e){Fn.assert(!e.isTypeOnly);const n=Ee(e)?e.name:void 0,r=FB(e.namedBindings,de,T_);return n||r?t.updateImportClause(e,!1,n,r):void 0}function de(e){if(274===e.kind)return Ee(e)?e:void 0;{const n=c.verbatimModuleSyntax||c.preserveValueImports&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=IB(e.elements,fe,mA);return n||le(r)?t.updateNamedImports(e,r):void 0}}function fe(e){return!e.isTypeOnly&&Ee(e)?e:void 0}function pe(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function me(n){if(n.isTypeOnly)return;if(Cg(n)){const r=Ee(n);return r||1!==c.importsNotUsedAsValues?r?$B(n,C,e):void 0:QC(tI(t.createImportDeclaration(void 0,void 0,n.moduleReference.expression,void 0),n),n)}if(!function(e){return Ee(e)||!HI(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=HP(t,n.moduleReference);return rw(r,7168),ye(n)||!ge(n)?QC(tI(t.createVariableStatement(IB(n.modifiers,O,vu),t.createVariableDeclarationList([QC(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):QC(function(e,n,r){return tI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,e,!1,!0),n)),r)}(n.name,r,n),n)}function ge(e){return void 0!==g&&vb(e,1)}function he(e){return void 0===g&&vb(e,1)}function ye(e){return he(e)&&!vb(e,1024)}function ve(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));cw(n,yx(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return cw(r,yx(-1,e.end)),r}function be(e,n,r){return tI(t.createAssignment(xe(e),n),r)}function xe(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Se(e){const n=t.getGeneratedNameForNode(e);return cw(n,e.name),n}function Te(e){return t.getGeneratedNameForNode(e)}function Ce(e){if(x&S&&!_u(e)&&!ZP(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&312!==n.kind&&(2&S&&267===n.kind||8&S&&266===n.kind))return tI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function Ee(e){return c.verbatimModuleSyntax||Pg(e)||(c.preserveValueImports?s.isValueAliasDeclaration(e):s.isReferencedAliasDeclaration(e))}}var Tz=S({"src/compiler/transformers/ts.ts"(){gH(),xz=!1}});function Cz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),u=HS(l),_=hk(l),d=!!l.experimentalDecorators,f=!_,p=_&&u<9,m=f||p,g=u<9,h=u<99?-1:_?0:3,y=u<9,v=y&&u>=2,b=m||g||-1===h,x=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=x(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&k&&536870912&c.getNodeCheckFlags(e)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return cw(n,e),pw(n,e),n}}}}(e)||e}(e);case 110:return function(e){if(2&k&&(null==E?void 0:E.data)&&!A.has(e)){const{facts:n,classConstructor:r,classThis:i}=E.data,o=I?i??r:r;if(o)return tI(QC(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n):n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=Ec(t),i=N.get(r);if(i){const o=E,a=M;return E=i,M=I,I=!(gD(r)&&32&lp(r)),S(e,t,n),I=M,M=a,void(E=o)}switch(t.kind){case 218:if(aN(r)||524288&cp(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{const r=E,i=M;return E=void 0,M=I,I=!1,S(e,t,n),I=M,M=i,void(E=r)}case 167:{const r=E,i=I;return E=null==E?void 0:E.previous,I=M,S(e,t,n),I=i,void(E=r)}}S(e,t,n)};let k,T,C,w,E,D=!1;const N=new Map,A=new Set;let P,F,I=!1,M=!1;return gJ(e,(function(t){if(t.isDeclarationFile)return t;if(E=void 0,D=!!(32&lp(t)),!b&&!D)return t;const n=$B(t,R,e);return Cw(n,e.readEmitHelpers()),n}));function L(e){return 129===e.kind?Z()?void 0:e:bt(e,vu)}function R(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 129:return Fn.fail("Use `modifierVisitor` instead.");case 263:return function(e){return fe(e,pe)}(n);case 231:return function(e){return fe(e,me)}(n);case 175:case 172:return Fn.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){return Xy(t,se)&&(t=mz(e,t)),$B(t,R,e)}(n);case 243:return function(t){const n=w;w=[];const r=$B(t,R,e),i=le(w)?[r,...w]:r;return w=n,i}(n);case 277:return function(t){return Xy(t,se)&&(t=mz(e,t,!0,t.isExportEquals?"":"default")),$B(t,R,e)}(n);case 81:return function(e){return g?I_(e.parent)?e:QC(t.createIdentifier(""),e):e}(n);case 211:return function(n){if(WE(n.name)){const e=Le(n.name);if(e)return tI(QC(ne(e,n.expression),n),n)}if(v&&F&&sg(n)&&qE(n.name)&&wz(F)&&(null==E?void 0:E.data)){const{classConstructor:e,superClassReference:r,facts:i}=E.data;if(1&i)return Ee(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return QC(i,n.expression),tI(i,n.expression),i}}return $B(n,R,e)}(n);case 212:return function(n){if(v&&F&&sg(n)&&wz(F)&&(null==E?void 0:E.data)){const{classConstructor:e,superClassReference:r,facts:i}=E.data;if(1&i)return Ee(n);if(e&&r){const i=t.createReflectGetCall(r,FB(n.argumentExpression,R,l_),e);return QC(i,n.expression),tI(i,n.expression),i}}return $B(n,R,e)}(n);case 224:case 225:return ie(n,!1);case 226:return ce(n,!1);case 217:return ue(n,!1);case 213:return function(n){var i;if(mu(n.expression)&&Le(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,u);return Ol(n)?t.updateCallChain(n,t.createPropertyAccessChain(FB(i,R,l_),n.questionDotToken,"call"),void 0,void 0,[FB(e,R,l_),...IB(n.arguments,R,l_)]):t.updateCallExpression(n,t.createPropertyAccessExpression(FB(i,R,l_),"call"),void 0,[FB(e,R,l_),...IB(n.arguments,R,l_)])}if(v&&F&&sg(n.expression)&&wz(F)&&(null==(i=null==E?void 0:E.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(FB(n.expression,R,l_),E.data.classConstructor,IB(n.arguments,R,l_));return QC(e,n),tI(e,n),e}return $B(n,R,e)}(n);case 244:return function(e){return t.updateExpressionStatement(e,FB(e.expression,B,l_))}(n);case 215:return function(n){var i;if(mu(n.tag)&&Le(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,u);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(FB(i,R,l_),"bind"),void 0,[FB(e,R,l_)]),void 0,FB(n.template,R,n_))}if(v&&F&&sg(n.tag)&&wz(F)&&(null==(i=null==E?void 0:E.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(FB(n.tag,R,l_),E.data.classConstructor,[]);return QC(e,n),tI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,FB(n.template,R,n_))}return $B(n,R,e)}(n);case 248:return function(n){return t.updateForStatement(n,FB(n.initializer,B,b_),FB(n.condition,R,l_),FB(n.incrementor,B,l_),JB(n.statement,R,e))}(n);case 110:return function(e){if(y&&F&&gD(F)&&(null==E?void 0:E.data)){const{classThis:t,classConstructor:n}=E.data;return t??n??e}return e}(n);case 262:case 218:return Y(void 0,j,n);case 176:case 174:case 177:case 178:return Y(n,j,n);default:return j(n)}}function j(t){return $B(t,R,e)}function B(e){switch(e.kind){case 224:case 225:return ie(e,!0);case 226:return ce(e,!0);case 361:return function(e,n){const r=zB(e.elements,B);return t.updateCommaListExpression(e,r)}(e);case 217:return ue(e,!0);default:return R(e)}}function J(n){switch(n.kind){case 298:return $B(n,J,e);case 233:return function(n){var i;if(4&((null==(i=null==E?void 0:E.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return De().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,FB(n.expression,R,l_)),void 0)}return $B(n,R,e)}(n);default:return R(n)}}function z(e){switch(e.kind){case 210:case 209:return ze(e);default:return R(e)}}function $(e){switch(e.kind){case 176:return Y(e,H,e);case 177:case 178:case 174:return Y(e,X,e);case 172:return Y(e,ee,e);case 175:return Y(e,ge,e);case 167:return W(e);case 240:return e;default:return Lu(e)?L(e):R(e)}}function K(e){return 167===e.kind?W(e):R(e)}function U(e){switch(e.kind){case 172:return Q(e);case 177:case 178:return $(e);default:Fn.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function W(e){const n=FB(e.expression,R,l_);return t.updateComputedPropertyName(e,function(e){return le(C)&&(iN(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}(n))}function H(e){return P?ye(e,P):j(e)}function G(e){return!!g||!!(xb(e)&&32&lp(e))}function X(n){if(Fn.assert(!Eb(n)),!pu(n)||!G(n))return $B(n,$,e);const r=Le(n.name);if(Fn.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){Fn.assert(WE(e.name));const t=Le(e.name);if(Fn.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(q_(e))return t.getterName;if(U_(e))return t.setterName}}(n);i&&Ae().push(t.createAssignment(i,t.createFunctionExpression(V(n.modifiers,(e=>vu(e)&&!eD(e)&&!rD(e))),n.asteriskToken,i,void 0,RB(n.parameters,R,e),void 0,BB(n.body,R,e))))}function Y(e,t,n){if(e!==F){const r=F;F=e;const i=t(n);return F=r,i}return t(n)}function Q(n){return Fn.assert(!Eb(n),"Decorators should already have been transformed and elided."),pu(n)?function(n){if(!G(n))return f&&!bb(n)&&(null==E?void 0:E.data)&&16&E.data.facts?t.updatePropertyDeclaration(n,IB(n.modifiers,R,Lu),n.name,void 0,void 0,void 0):(Xy(n,se)&&(n=mz(e,n)),t.updatePropertyDeclaration(n,IB(n.modifiers,L,vu),FB(n.name,K,xu),void 0,void 0,FB(n.initializer,R,l_)));{const e=Le(n.name);if(Fn.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=Se(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):function(e){if(!m||Iu(e))return t.updatePropertyDeclaration(e,IB(e.modifiers,L,vu),FB(e.name,K,xu),void 0,void 0,FB(e.initializer,R,l_));{const n=function(e,n){if(cD(e)){const i=XF(e),o=FB(e.expression,R,l_),a=zl(o),l=TJ(a);if(!(i||Hb(a)&&_u(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return 32768&c.getNodeCheckFlags(e)?s(n):r(n),t.createAssignment(n,o)}return l||qE(a)?void 0:o}}(e.name,!!e.initializer||_);if(n&&Ae().push(...QF(n)),bb(e)&&!g){const n=Se(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return QC(r,e),pw(r,e),pw(n,{pos:-1,end:-1}),gw(n,void 0),vw(n,void 0),r}}}}(n)}function Z(){return-1===h||3===h&&!!(null==E?void 0:E.data)&&!!(16&E.data.facts)}function ee(e){return Iu(e)&&(Z()||xb(e)&&32&lp(e))?function(e){const n=fw(e),i=sw(e),o=e.name;let a=o,s=o;if(cD(o)&&!TJ(o.expression)){const e=XF(o);if(e)a=t.updateComputedPropertyName(o,FB(o.expression,R,l_)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);cw(e,o.expression);const n=FB(o.expression,R,l_),i=t.createAssignment(e,n);cw(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=IB(e.modifiers,L,vu),l=WF(t,e,c,e.initializer);QC(l,e),rw(l,3072),cw(l,i);const u=bb(e)?function(){const e=De(),t=e.classThis??e.classConstructor??(null==P?void 0:P.name);return Fn.checkDefined(t)}():t.createThis(),_=HF(t,e,c,a,u);QC(_,e),pw(_,n),cw(_,i);const d=t.createModifiersFromModifierFlags(Rb(c)),f=GF(t,e,d,s,u);return QC(f,e),rw(f,3072),cw(f,i),OB([l,_,f],U,Au)}(e):Q(e)}function te(e){if(F&&xb(F)&&Fu(F)&&Iu(Ec(F))){const t=lF(e);110===t.kind&&A.add(t)}}function ne(e,t){return te(t=FB(t,R,l_)),re(e,t)}function re(e,t){switch(pw(t,bx(t,-1)),e.kind){case"a":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case"m":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case"f":return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return Fn.fail("Access helpers should not be created for untransformed private elements");default:Fn.assertNever(e,"Unknown private element type")}}function ie(n,i){if(46===n.operator||47===n.operator){const e=ny(n.operand);if(mu(e)){let o;if(o=Le(e.name)){const a=FB(e.expression,R,l_);te(a);const{readExpression:s,initializeExpression:c}=oe(a);let l=ne(o,s);const u=_N(n)||i?void 0:t.createTempVariable(r);return l=YP(t,n,l,r,u),l=_e(o,c||s,l,64),QC(l,n),tI(l,n),u&&(l=t.createComma(l,u),tI(l,n)),l}}else if(v&&F&&sg(e)&&wz(F)&&(null==E?void 0:E.data)){const{classConstructor:o,superClassReference:a,facts:s}=E.data;if(1&s){const r=Ee(e);return _N(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(QD(e)?qE(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):TJ(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,FB(e.argumentExpression,R,l_))),s&&c){let l=t.createReflectGetCall(a,c,o);tI(l,e);const u=i?void 0:t.createTempVariable(r);return l=YP(t,n,l,r,u),l=t.createReflectSetCall(a,s,l,o),QC(l,n),tI(l,n),u&&(l=t.createComma(l,u),tI(l,n)),l}}}}return $B(n,R,e)}function oe(e){const n=tv(e)?e:t.cloneNode(e);if(110===e.kind&&A.has(e)&&A.add(n),TJ(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function ae(e){if(E&&N.set(Ec(e),E),g){if(rz(e)){const t=FB(e.body.statements[0].expression,R,l_);if(Hb(t,!0)&&t.left===t.right)return;return t}if(uz(e))return FB(e.body.statements[0].expression,R,l_);o();let n=Y(e,(e=>IB(e,R,I_)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return QC(ny(r.expression),e),iw(ny(r.expression),4),QC(r,e),tI(r,e),r}}function se(e){if(yN(e)&&!e.name){const t=FJ(e);return!le(t,uz)&&((g||!!lp(e))&&le(t,(e=>gD(e)||pu(e)||m&&IJ(e))))}return!1}function ce(i,o){if(Xb(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,FB(i.left,z,l_),i.operatorToken,FB(i.right,R,l_));const n=le(C)?t.inlineExpressions(xe([...C,i])):i;return C=e,n}if(Hb(i)){Xy(i,se)&&(i=mz(e,i),Fn.assertNode(i,Hb));const n=lF(i.left,9);if(mu(n)){const e=Le(n.name);if(e)return tI(QC(_e(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&F&&sg(i.left)&&wz(F)&&(null==E?void 0:E.data)){const{classConstructor:e,superClassReference:n,facts:a}=E.data;if(1&a)return t.updateBinaryExpression(i,Ee(i.left),i.operatorToken,FB(i.right,R,l_));if(e&&n){let a=ZD(i.left)?FB(i.left.argumentExpression,R,l_):qE(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=FB(i.right,R,l_);if(CJ(i.operatorToken.kind)){let o=a;TJ(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);QC(c,i.left),tI(c,i.left),s=t.createBinaryExpression(c,wJ(i.operatorToken.kind),s),tI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),tI(c,i)),s=t.createReflectSetCall(n,a,s,e),QC(s,i),tI(s,i),c&&(s=t.createComma(s,c),tI(s,i)),s}}}}return function(e){return WE(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=Le(t.left);if(r){const e=FB(t.right,R,l_);return QC(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return $B(t,R,e)}(i):$B(i,R,e)}function ue(e,n){const r=n?B:R,i=FB(e.expression,r,l_);return t.updateParenthesizedExpression(e,i)}function _e(e,r,i,o){if(r=FB(r,R,l_),i=FB(i,R,l_),te(r),CJ(o)){const{readExpression:n,initializeExpression:a}=oe(r);r=a||n,i=t.createBinaryExpression(re(e,n),wJ(o),i)}switch(pw(r,bx(r,-1)),e.kind){case"a":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case"m":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case"untransformed":return Fn.fail("Access helpers should not be created for untransformed private elements");default:Fn.assertNever(e,"Unknown private element type")}}function de(e){return V(e.members,OJ)}function fe(n,r){var i;const o=P,a=C,s=E;P=n,C=void 0,E={previous:E,data:void 0};const l=32&lp(n);if(g||l){const e=$c(n);if(e&&qE(e))Ne().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&NE(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&qE(n.emitNode.assignedName.textSourceNode))Ne().data.className=n.emitNode.assignedName.textSourceNode;else if(Js(n.emitNode.assignedName.text,u)){const e=t.createIdentifier(n.emitNode.assignedName.text);Ne().data.className=e}}if(g){const e=de(n);le(e)&&(Ne().data.weakSetName=Oe("instances",e[0].name))}const _=function(e){var t;let n=0;const r=Ec(e);QN(r)&&hg(d,r)&&(n|=1),g&&(iz(e)||_z(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)bb(r)?(r.name&&(WE(r.name)||Iu(r))&&g?n|=2:!Iu(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(fD(r)||gD(r))&&(y&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&r.transformFlags&&(1&n||(n|=6)))):kb(Ec(r))||(Iu(r)?(s=!0,a||(a=pu(r))):pu(r)?(a=!0,262144&c.getNodeCheckFlags(r)&&(n|=2)):fD(r)&&(i=!0,o||(o=!!r.initializer)));return(p&&i||f&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);_&&(De().facts=_),8&_&&0==(2&k)&&(k|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167));const m=r(n,_);return E=null==E?void 0:E.previous,Fn.assert(E===s),P=o,C=a,m}function pe(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))De().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);De().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(De().classThis=e.emitNode.classThis);const s=262144&c.getNodeCheckFlags(e),l=vb(e,1),u=vb(e,1024);let _=IB(e.modifiers,L,vu);const d=IB(e.heritageClauses,J,jA),{members:p,prologue:m}=he(e),h=[];if(a&&Ae().unshift(a),le(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),f||g||32&lp(e)){const n=FJ(e);le(n)&&be(h,n,t.getInternalName(e))}h.length>0&&l&&u&&(_=IB(_,(e=>zF(e)?void 0:e),vu),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=De().classConstructor;s&&y&&(Ce(),T[pJ(e)]=y);const v=t.updateClassDeclaration(e,_,e.name,void 0,d,p);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function me(e,n){var i,o,a;const l=!!(1&n),u=FJ(e),_=c.getNodeCheckFlags(e),d=262144&_;let f;function p(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return De().classConstructor=e.emitNode.classThis;const i=32768&_,o=t.createTempVariable(i?s:r,!0);return De().classConstructor=t.cloneNode(o),o}(null==(i=e.emitNode)?void 0:i.classThis)&&(De().classThis=e.emitNode.classThis),2&n&&(f??(f=p()));const h=IB(e.modifiers,L,vu),y=IB(e.heritageClauses,J,jA),{members:v,prologue:b}=he(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),S=[];if(b&&S.push(b),(g||32&lp(e))&&le(u,(e=>gD(e)||pu(e)||m&&IJ(e)))||le(C))if(l)Fn.assertIsDefined(w,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),le(C)&&we(w,q(C,t.createExpressionStatement)),le(u)&&be(w,u,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),f?S.push(t.createAssignment(f,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?S.push(t.createAssignment(e.emitNode.classThis,x)):S.push(x);else{if(f??(f=p()),d){Ce();const n=t.cloneNode(f);n.emitNode.autoGenerate.flags&=-9,T[pJ(e)]=n}S.push(t.createAssignment(f,x)),we(S,C),we(S,function(e,t){const n=[];for(const r of e){const e=gD(r)?Y(r,ae,r):Y(r,(()=>Te(r,t)),void 0);e&&(dF(e),QC(e,r),iw(e,3072&cp(r)),cw(e,Sx(r)),pw(e,r),n.push(e))}return n}(u,f)),S.push(t.cloneNode(f))}else S.push(x);return S.length>1&&(iw(x,131072),S.forEach(dF)),t.inlineExpressions(S)}function ge(t){if(!g)return $B(t,R,e)}function he(e){const n=!!(32&lp(e));if(g||D){for(const t of e.members)pu(t)&&(G(t)?Ie(t,t.name,Pe):$J(Ne(),t.name,{kind:"untransformed"}));if(g&&le(de(e))&&function(){const{weakSetName:e}=Ne().data;Fn.assert(e,"weakSetName should be set in private identifier environment"),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),Z())for(const r of e.members)if(Iu(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");g||n&&xb(r)?Ie(r,e,Fe):$J(Ne(),e,{kind:"untransformed"})}}let i,o,a,s=IB(e.members,$,Au);if(le(s,hD)||(i=ye(void 0,e)),!g&&le(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=O(s,rz),o=O(s,uz);n=ke(n,r),n=ke(n,o),n=ke(n,i),n=ke(n,a),n=we(n,r||o?V(s,(e=>e!==r&&e!==o)):s),s=tI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function ye(n,r){if(n=FB(n,R,hD),!((null==E?void 0:E.data)&&16&E.data.facts))return n;const o=my(r),s=!(!o||106===lF(o.expression).kind),c=RB(n?n.parameters:void 0,R,e),l=function(n,r,o){const s=AJ(n,!1,!1);let c=s;_||(c=V(c,(e=>!!e.initializer||WE(e.name)||Cb(e))));const l=de(n),u=le(c)||le(l);if(!r&&!u)return BB(void 0,R,e);a();const d=!r&&o;let f=0,p=[];const m=[],h=t.createThis();if(function(e,n,r){if(!g||!le(n))return;const{weakSetName:i}=Ne().data;Fn.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(m,l,h),r){const e=V(s,(e=>hc(Ec(e),r))),t=V(c,(e=>!hc(Ec(e),r)));be(m,e,h),be(m,t,h)}else be(m,c,h);if(null==r?void 0:r.body){f=t.copyPrologue(r.body.statements,p,!1,R);const e=NJ(r.body.statements,f);if(e.length)ve(p,r.body.statements,f,e,0,m,r);else{for(;f=p.length?r.body.multiLine??p.length>0:p.length>0;return tI(t.createBlock(tI(t.createNodeArray(p),r?r.body.statements:n.members),y),r?r.body:void 0)}(r,n,s);return l?n?(Fn.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):dF(QC(tI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function ve(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(we(e,IB(n,R,I_,r,c-r)),r=c+1,WN(l)){const n=[];ve(n,l.tryBlock.statements,0,i,o+1,a,s),tI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),FB(l.catchClause,R,BA),FB(l.finallyBlock,R,AN)))}else{for(we(e,IB(n,R,I_,c,1));rl(e,f,t),serializeTypeOfNode:(e,t)=>l(e,u,t),serializeParameterTypesOfNode:(e,t,n)=>l(e,_,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function u(e){switch(e.kind){case 172:case 169:return f(e.type);case 178:case 177:return f(function(e){const t=r.getAllAccessorDeclarations(e);return t.setAccessor&&Gv(t.setAccessor)||t.getAccessor&&ob(t.getAccessor)}(e));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function _(e,n){const r=Pu(e)?Wv(e):ku(e)&&zf(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=nb(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let n=0;ne.parent&&LD(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return Fn.assertNever(i)}}(e);case 193:return m(e.types,!0);case 192:return m(e.types,!1);case 194:return m([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return f(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return f(e.type);default:return Fn.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function p(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const t=e.operand;switch(t.kind){case 9:case 10:return p(t);default:return Fn.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return Fn.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=ty(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(VD(i)&&106===i.literal.kind||157===i.kind))continue;const e=f(i);if(qE(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return _u(e)?_u(t):qE(e)?qE(t)&&e.escapedText===t.escapedText:QD(e)?QD(t)&&g(e.expression,t.expression)&&g(e.name,t.name):lN(e)?lN(t)&&EE(e.expression)&&"0"===e.expression.text&&EE(t.expression)&&"0"===t.expression.text:NE(e)?NE(t)&&e.text===t.text:cN(e)?cN(t)&&g(e.expression,t.expression):iN(e)?iN(t)&&g(e.expression,t.expression):pN(e)?pN(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!fN(e)&&fN(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right)}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function v(e){switch(e.kind){case 80:const n=OT(tI(uI.cloneNode(e),e),e.parent);return n.original=void 0,OT(n,Ac(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return ozF(e)||_D(e)?void 0:e),Lu),p=Sx(a),g=function(n){if(262144&i.getNodeCheckFlags(n)){s||(e.enableSubstitution(80),s=[]);const i=t.createUniqueName(n.name&&!_u(n.name)?Ic(n.name):"default");return s[pJ(n)]=i,r(i),i}}(a),h=o<2?t.getInternalName(a,!1,!0):t.getLocalName(a,!1,!0),y=IB(a.heritageClauses,l,jA);let v=IB(a.members,l,Au),b=[];({members:v,decorationStatements:b}=d(a,v));const x=o>=9&&!!g&&le(v,(e=>fD(e)&&vb(e,32)||gD(e)));x&&(v=tI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(g,t.createThis()))])),...v]),v));const S=t.createClassExpression(f,c&&_u(c)?void 0:c,void 0,y,v);QC(S,a),tI(S,p);const k=g&&!x?t.createAssignment(g,S):S,T=t.createVariableDeclaration(h,void 0,void 0,k);QC(T,a);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);QC(w,a),tI(w,p),pw(w,a);const E=[w];if(we(E,b),function(e,r){const i=function(e){const r=m(LJ(e));if(!r)return;const i=s&&s[pJ(e)],a=o<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),c=n().createDecorateHelper(r,a),l=t.createAssignment(a,i?t.createAssignment(i,c):c);return rw(l,3072),cw(l,Sx(e)),l}(r);i&&e.push(QC(t.createExpressionStatement(i),r))}(E,a),u)if(_){const e=t.createExportDefault(h);E.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(a));E.push(e)}return E}(a,a.name):function(e,n){const r=IB(e.modifiers,c,vu),i=IB(e.heritageClauses,l,jA);let o=IB(e.members,l,Au),a=[];return({members:o,decorationStatements:a}=d(e,o)),we([t.updateClassDeclaration(e,r,n,void 0,i,o)],a)}(a,a.name)):$B(a,l,e)}(a);case 231:return function(e){return t.updateClassExpression(e,IB(e.modifiers,c,vu),e.name,void 0,IB(e.heritageClauses,l,jA),IB(e.members,l,Au))}(a);case 176:return function(e){return t.updateConstructorDeclaration(e,IB(e.modifiers,c,vu),IB(e.parameters,l,uD),FB(e.body,l,AN))}(a);case 174:return function(e){return f(t.updateMethodDeclaration(e,IB(e.modifiers,c,vu),e.asteriskToken,Fn.checkDefined(FB(e.name,l,xu)),void 0,void 0,IB(e.parameters,l,uD),void 0,FB(e.body,l,AN)),e)}(a);case 178:return function(e){return f(t.updateSetAccessorDeclaration(e,IB(e.modifiers,c,vu),Fn.checkDefined(FB(e.name,l,xu)),IB(e.parameters,l,uD),FB(e.body,l,AN)),e)}(a);case 177:return function(e){return f(t.updateGetAccessorDeclaration(e,IB(e.modifiers,c,vu),Fn.checkDefined(FB(e.name,l,xu)),IB(e.parameters,l,uD),void 0,FB(e.body,l,AN)),e)}(a);case 172:return function(e){if(!(33554432&e.flags||vb(e,2)))return f(t.updatePropertyDeclaration(e,IB(e.modifiers,c,vu),Fn.checkDefined(FB(e.name,l,xu)),void 0,void 0,FB(e.initializer,l,l_)),e)}(a);case 169:return function(e){const n=t.updateParameterDeclaration(e,VF(t,e.modifiers),e.dotDotDotToken,Fn.checkDefined(FB(e.name,l,Su)),void 0,void 0,FB(e.initializer,l,l_));return n!==e&&(pw(n,e),tI(n,Sx(e)),cw(n,Sx(e)),rw(n.name,64)),n}(a);default:return $B(a,l,e)}}function u(e){return!!(536870912&e.transformFlags)}function _(e){return le(e,u)}function d(e,n){let r=[];return g(r,e,!1),g(r,e,!0),function(e){for(const t of e.members){if(!rI(t))continue;const n=RJ(t,e,!0);if(le(null==n?void 0:n.decorators,u))return!0;if(le(null==n?void 0:n.parameters,_))return!0}return!1}(e)&&(n=tI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(pw(e,t),cw(e,Sx(t))),e}function p(e){return CE(e.expression,"___metadata")}function m(e){if(!e)return;const{false:t,true:n}=at(e.decorators,p),r=[];return we(r,q(t,y)),we(r,X(e.parameters,v)),we(r,q(n,y)),r}function g(e,n,r){we(e,q(function(e,t){const n=function(e,t){return V(e.members,(n=>{return i=t,mg(!0,r=n,e)&&i===bb(r);var r,i}))}(e,t);let r;for(const t of n)r=ke(r,h(e,t));return r}(n,r),(e=>t.createExpressionStatement(e))))}function h(e,r){const i=m(RJ(r,e,!0));if(!i)return;const a=function(e,n){return bb(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),s=function(e,n){const r=e.name;return WE(r)?t.createIdentifier(""):cD(r)?n&&!TJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:qE(r)?t.createStringLiteral(Ic(r)):t.cloneNode(r)}(r,!vb(r,2)),c=o>0?fD(r)&&!Cb(r)?t.createVoidZero():t.createNull():void 0,l=n().createDecorateHelper(i,a,s,c);return rw(l,3072),cw(l,Sx(r)),l}function y(e){return Fn.checkDefined(FB(e.expression,l,l_))}function v(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(y(i),t);tI(e,i.expression),rw(e,3072),r.push(e)}}return r}}var Pz=S({"src/compiler/transformers/legacyDecorators.ts"(){gH()}});function Fz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=HS(e.getCompilerOptions());let s,c,l,u,_,d;return gJ(e,(function(t){s=void 0,d=!1;const n=$B(t,b,e);return Cw(n,e.readEmitHelpers()),d&&(aw(n,32),d=!1),n}));function f(){switch(c=void 0,l=void 0,u=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,u=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,u=e.classSuper)}}function p(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:_},_=void 0,f()}function m(){Fn.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),_=s.savedPendingExpressions,s=s.next,f()}function g(e){var t,n;Fn.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(gD(e)||fD(e)&&xb(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),f()}function h(){var e;Fn.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),Fn.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,f()}function y(){Fn.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},f()}function v(){Fn.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,f()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!u&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 170:return Fn.fail("Use `modifierVisitor` instead.");case 263:return function(n){if(D(n)){const r=[],i=Ec(n,Pu)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=vb(n,1),s=vb(n,1024);if(n.name||(n=fz(e,n,o)),a&&s){const e=E(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);QC(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));QC(s,n),pw(s,fw(n)),cw(s,xx(n)),r.push(s)}else{const i=t.createExportDefault(e);QC(i,n),pw(i,fw(n)),cw(i,xx(n)),r.push(i)}}else{Fn.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=E(n),i=a?e=>HE(e)?void 0:S(e):S,o=IB(n.modifiers,i,vu),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);QC(c,n);const l=t.createVariableDeclarationList([c],1),u=t.createVariableStatement(o,l);if(QC(u,n),pw(u,fw(n)),r.push(u),a){const e=t.createExternalModuleExport(s);QC(e,n),r.push(e)}}return $e(r)}{const e=IB(n.modifiers,S,vu),r=IB(n.heritageClauses,b,jA);p(void 0);const i=IB(n.members,k,Au);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 231:return function(e){if(D(e)){const t=E(e);return QC(t,e),t}{const n=IB(e.modifiers,S,vu),r=IB(e.heritageClauses,b,jA);p(void 0);const i=IB(e.members,k,Au);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 176:case 172:case 175:return Fn.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){Xy(n,I)&&(n=mz(e,n,O(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,FB(n.name,b,Su),void 0,void 0,FB(n.initializer,b,l_));return r!==n&&(pw(r,n),tI(r,Sx(n)),cw(r,Sx(n)),rw(r.name,64)),r}(n);case 226:return M(n,!1);case 303:case 260:case 208:return function(t){return Xy(t,I)&&(t=mz(e,t,O(t.initializer))),$B(t,b,e)}(n);case 277:return function(t){return Xy(t,I)&&(t=mz(e,t,O(t.expression))),$B(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 248:return function(n){return t.updateForStatement(n,FB(n.initializer,T,b_),FB(n.condition,b,l_),FB(n.incrementor,T,l_),JB(n.statement,b,e))}(n);case 244:return function(t){return $B(t,T,e)}(n);case 361:return R(n,!1);case 217:return U(n,!1);case 360:return function(e,n){const r=b,i=FB(e.expression,r,l_);return t.updatePartiallyEmittedExpression(e,i)}(n);case 213:return function(n){if(sg(n.expression)&&l){const e=FB(n.expression,b,l_),r=IB(n.arguments,b,l_),i=t.createFunctionCallCall(e,l,r);return QC(i,n),tI(i,n),i}return $B(n,b,e)}(n);case 215:return function(n){if(sg(n.tag)&&l){const e=FB(n.tag,b,l_),r=t.createFunctionBindCall(e,l,[]);QC(r,n),tI(r,n);const i=FB(n.template,b,n_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return $B(n,b,e)}(n);case 224:case 225:return L(n,!1);case 211:return function(n){if(sg(n)&&qE(n.name)&&l&&u){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(u,e,l);return QC(r,n.expression),tI(r,n.expression),r}return $B(n,b,e)}(n);case 212:return function(n){if(sg(n)&&l&&u){const e=FB(n.argumentExpression,b,l_),r=t.createReflectGetCall(u,e,l);return QC(r,n.expression),tI(r,n.expression),r}return $B(n,b,e)}(n);case 167:return B(n);case 174:case 178:case 177:case 218:case 262:{"other"===(null==s?void 0:s.kind)?(Fn.assert(!_),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:_},_=void 0,f());const t=$B(n,x,e);return Fn.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(Fn.assert(!_),s.depth--):(_=s.savedPendingExpressions,s=s.next,f()),t}default:return $B(n,x,e)}}function x(e){if(170!==e.kind)return b(e)}function S(e){if(170!==e.kind)return e}function k(a){switch(a.kind){case 176:return function(e){g(e);const n=IB(e.modifiers,S,vu),r=IB(e.parameters,b,uD);let i;if(e.body&&c){const n=N(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=NJ(e.body.statements,o);a.length>0?A(r,e.body.statements,o,a,0,n):(we(r,n),we(r,IB(e.body.statements,b,I_))),i=t.createBlock(r,!0),QC(i,e.body),tI(i,e.body)}}return i??(i=FB(e.body,b,AN)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 174:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=F(e,c,Y);if(i)return h(),P(function(e,n,r){return e=IB(e,(e=>eD(e)?e:void 0),vu),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=IB(e.parameters,b,uD),o=FB(e.body,b,AN);return h(),P(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 177:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=F(e,c,Q);if(i)return h(),P(te(n,r,i),e);{const i=IB(e.parameters,b,uD),o=FB(e.body,b,AN);return h(),P(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=F(e,c,Z);if(i)return h(),P(ne(n,r,i),e);{const i=IB(e.parameters,b,uD),o=FB(e.body,b,AN);return h(),P(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 172:return function(a){Xy(a,I)&&(a=mz(e,a,O(a.initializer))),g(a),Fn.assert(!Dp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:u,descriptorName:_,thisArg:d}=F(a,c,Cb(a)?ee:void 0);r();let f=FB(a.initializer,b,l_);u&&(f=n().createRunInitializersHelper(d??t.createThis(),u,f??t.createVoidZero())),bb(a)||!(null==c?void 0:c.instanceExtraInitializersName)||(null==c?void 0:c.hasInjectedInstanceInitializers)||(c.hasInjectedInstanceInitializers=!0,f??(f=t.createVoidZero()),f=t.createParenthesizedExpression(t.createComma(n().createRunInitializersHelper(t.createThis(),c.instanceExtraInitializersName),f))),bb(a)&&c&&f&&(c.hasStaticInitializers=!0);const p=i();if(le(p)&&(f=t.createImmediatelyInvokedArrowFunction([...p,t.createReturnStatement(f)])),h(),Cb(a)&&_){const e=fw(a),n=sw(a),r=a.name;let i=r,c=r;if(cD(r)&&!TJ(r.expression)){const e=XF(r);if(e)i=t.updateComputedPropertyName(r,FB(r.expression,b,l_)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);cw(e,r.expression);const n=FB(r.expression,b,l_),a=t.createAssignment(e,n);cw(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=IB(s,(e=>129!==e.kind?e:void 0),vu),u=WF(t,a,l,f);QC(u,a),rw(u,3072),cw(u,n),cw(u.name,a.name);const d=te(l,i,_);QC(d,a),pw(d,e),cw(d,n);const p=ne(l,c,_);return QC(p,a),rw(p,3072),cw(p,n),[u,d,p]}return P(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 175:return function(t){let n;if(g(t),uz(t))n=$B(t,b,e);else if(rz(t)){const r=l;l=void 0,n=$B(t,b,e),l=r}else c&&(c.hasStaticInitializers=!0),n=$B(t,b,e);return h(),n}(a);default:return b(a)}}function T(e){switch(e.kind){case 224:case 225:return L(e,!0);case 226:return M(e,!0);case 361:return R(e,!0);case 217:return U(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&qE(e.name)&&!_u(e.name)?Ic(e.name):e.name&&WE(e.name)&&!_u(e.name)?Ic(e.name).slice(1):e.name&&NE(e.name)&&Js(e.name.text,99)?e.name.text:Pu(e)?"class":"member";return q_(e)&&(t=`get_${t}`),U_(e)&&(t=`set_${t}`),e.name&&WE(e.name)&&(t=`private_${t}`),bb(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function E(o){r(),!dz(o)&&hg(!1,o)&&(o=fz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const n=t.createUniqueName("_metadata",48);let r,i,o=!1,a=!1,s=!1;for(const n of e.members)if(Mu(n)&&mg(!1,n,e)&&(xb(n)?i??(i=t.createUniqueName("_staticExtraInitializers",48)):r??(r=t.createUniqueName("_instanceExtraInitializers",48))),gD(n)?uz(n)||(o=!0):fD(n)&&(xb(n)?o||(o=!!n.initializer||Eb(n)):a||(a=!Dp(n))),(pu(n)||Iu(n))&&xb(n)&&(s=!0),i&&r&&o&&a&&s)break;return{class:e,metadataReference:n,instanceExtraInitializersName:r,staticExtraInitializersName:i,hasStaticInitializers:o,hasNonAmbientInstanceFields:a,hasStaticPrivateClassElements:s}}(o),c=[];let l,u,f,g,h=!1;const y=H(LJ(o));if(y){s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48);const e=le(o.members,(e=>(pu(e)||Iu(e))&&xb(e)));s.classThis=t.createUniqueName("_classThis",e?24:48),c.push(w(s.classDecoratorsName,t.createArrayLiteralExpression(y)),w(s.classDescriptorName),w(s.classExtraInitializersName,t.createArrayLiteralExpression()),w(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0)}const v=by(o.heritageClauses,96),x=v&&Oe(v.types),S=x&&FB(x.expression,b,l_);if(S){s.classSuper=t.createUniqueName("_classSuper",48);const e=lF(S),n=yN(e)&&!e.name||oN(e)&&!e.name||aN(e)?t.createComma(t.createNumericLiteral(0),S):S;c.push(w(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();p(s),l=ke(l,function(e,n){const r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[n?re(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=IB(o.members,k,Au);if(_){let n;for(let r of _)r=FB(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):$B(i,r,e):i}),l_),l=ke(l,t.createExpressionStatement(r));_=void 0}if(m(),s.instanceExtraInitializersName&&!Wv(o)){const e=N(0,s);if(e){const n=my(o),r=[];if(n&&106!==lF(n.expression).kind){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}we(r,e);const i=t.createBlock(r,!0);f=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticExtraInitializersName&&c.push(w(s.staticExtraInitializersName,t.createArrayLiteralExpression())),s.instanceExtraInitializersName&&c.push(w(s.instanceExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&mf(s.memberInfos,((e,n)=>{bb(n)&&(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),s.memberInfos&&mf(s.memberInfos,((e,n)=>{bb(n)||(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),l=we(l,s.staticNonFieldDecorationStatements),l=we(l,s.nonStaticNonFieldDecorationStatements),l=we(l,s.staticFieldDecorationStatements),l=we(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),u=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),_=t.createExpressionStatement(u);cw(_,xx(o)),l.push(_);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),f=t.createAssignment(s.classThis,d),p=t.createAssignment(a,f);l.push(t.createExpressionStatement(p))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return rw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),s.staticExtraInitializersName){const e=n().createRunInitializersHelper(T,s.staticExtraInitializersName),r=t.createExpressionStatement(e);cw(r,o.name??xx(o)),l=ke(l,r)}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);cw(r,o.name??xx(o)),u=ke(u,r)}l&&u&&!s.hasStaticInitializers&&(we(l,u),u=void 0);const E=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));E&&h&&ow(E,32);const D=u&&t.createClassStaticBlockDeclaration(t.createBlock(u,!0));if(E||f||D){const e=[],n=C.findIndex(uz);E?(we(e,C,0,n+1),e.push(E),we(e,C,n+1)):we(e,C),f&&e.push(f),D&&e.push(D),C=tI(t.createNodeArray(e),C)}const A=i();let P;if(y){P=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(P=oz(t,P,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,P),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else P=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(P));if(h){aw(P,32);for(const e of P.members)(pu(e)||Iu(e))&&xb(e)&&aw(e,32)}return QC(P,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,A))}function D(e){return hg(!1,e)||gg(!1,e)}function N(e,r){if(r.instanceExtraInitializersName&&!r.hasNonAmbientInstanceFields){const e=[];return e.push(t.createExpressionStatement(n().createRunInitializersHelper(t.createThis(),r.instanceExtraInitializersName))),e}}function A(e,n,r,i,o,a){const s=i[o],c=n[s];if(we(e,IB(n,b,I_,r,s-r)),WN(c)){const n=[];A(n,c.tryBlock.statements,0,i,o+1,a),tI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),FB(c.catchClause,b,BA),FB(c.finallyBlock,b,AN)))}else we(e,IB(n,b,I_,s,1)),we(e,a);we(e,IB(n,b,I_,s+1))}function P(e,t){return e!==t&&(pw(e,t),cw(e,xx(t))),e}function F(e,r,i){let a,s,c,l,u;if(!r){const t=IB(e.modifiers,S,vu);return y(),s=j(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:u,thisArg:l}}const d=H(RJ(e,r.class,!1)),f=IB(e.modifiers,S,vu);if(d){const p=C(e,"decorators"),m=t.createArrayLiteralExpression(d),g=t.createAssignment(p,m),h={memberDecoratorsName:p};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,h),_??(_=[]),_.push(g);const x=Ou(e)||Iu(e)?bb(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):fD(e)&&!Iu(e)?bb(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):Fn.fail(),S=yD(e)?"getter":vD(e)?"setter":mD(e)?"method":Iu(e)?"accessor":fD(e)?"field":Fn.fail();let k;if(qE(e.name)||WE(e.name))k={computed:!1,name:e.name};else if(By(e.name))k={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;By(r)&&!qE(r)?k={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(By(e)||WE(e))return{referencedName:t.createStringLiteralFromNode(e),name:FB(e,b,xu)};if(By(e.expression)&&!qE(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:FB(e,b,xu)};const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(FB(e.expression,b,l_)),a=t.createAssignment(r,i);return{referencedName:r,name:t.updateComputedPropertyName(e,W(a))}}(e.name)),k={computed:!0,name:a},v())}const T={kind:S,name:k,static:bb(e),private:WE(e.name),access:{get:fD(e)||yD(e)||mD(e),set:fD(e)||vD(e)},metadata:r.metadataReference},w=bb(e)?r.staticExtraInitializersName??(r.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",48)):r.instanceExtraInitializersName??(r.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",48));if(Ou(e)){let r;pu(e)&&i&&(r=i(e,IB(f,(e=>bt(e,XE)),vu)),h.memberDescriptorName=u=C(e,"descriptor"),r=t.createAssignment(u,r));const o=n().createESDecorateHelper(t.createThis(),r??t.createNull(),p,T,t.createNull(),w),a=t.createExpressionStatement(o);cw(a,xx(e)),x.push(a)}else if(fD(e)){let o;c=h.memberInitializersName??(h.memberInitializersName=C(e,"initializers")),bb(e)&&(l=r.classThis),pu(e)&&Cb(e)&&i&&(o=i(e,void 0),h.memberDescriptorName=u=C(e,"descriptor"),o=t.createAssignment(u,o));const a=n().createESDecorateHelper(Iu(e)?t.createThis():t.createNull(),o??t.createNull(),p,T,c,w),s=t.createExpressionStatement(a);cw(s,xx(e)),x.push(s)}}return void 0===s&&(y(),s=j(e.name),v()),le(f)||!mD(e)&&!fD(e)||rw(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,descriptorName:u,thisArg:l}}function I(e){return yN(e)&&!e.name&&D(e)}function O(e){const t=lF(e);return yN(t)&&!t.name&&!hg(!1,t)}function M(n,r){if(Xb(n)){const e=K(n.left),r=FB(n.right,b,l_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(Hb(n)){if(Xy(n,I))return $B(n=mz(e,n,O(n.right)),b,e);if(sg(n.left)&&l&&u){let e=ZD(n.left)?FB(n.left.argumentExpression,b,l_):qE(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=FB(n.right,b,l_);if(CJ(n.operatorToken.kind)){let r=e;TJ(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(u,r,l);QC(a,n.left),tI(a,n.left),i=t.createBinaryExpression(a,wJ(n.operatorToken.kind),i),tI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),tI(a,n)),i=t.createReflectSetCall(u,e,i,l),QC(i,n),tI(i,n),a&&(i=t.createComma(i,a),tI(i,n)),i}}}if(28===n.operatorToken.kind){const e=FB(n.left,T,l_),i=FB(n.right,r?T:b,l_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return $B(n,b,e)}function L(n,r){if(46===n.operator||47===n.operator){const e=ny(n.operand);if(sg(e)&&l&&u){let i=ZD(e)?FB(e.argumentExpression,b,l_):qE(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;TJ(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(u,e,l);QC(a,n),tI(a,n);const s=r?void 0:t.createTempVariable(o);return a=YP(t,n,a,o,s),a=t.createReflectSetCall(u,i,a,l),QC(a,n),tI(a,n),s&&(a=t.createComma(a,s),tI(a,n)),a}}}return $B(n,b,e)}function R(e,n){const r=n?zB(e.elements,T):zB(e.elements,b,T);return t.updateCommaListExpression(e,r)}function j(e){return cD(e)?B(e):FB(e,b,xu)}function B(e){let n=FB(e.expression,b,l_);return TJ(n)||(n=W(n)),t.updateComputedPropertyName(e,n)}function J(n){if(YD(n)||XD(n))return K(n);if(sg(n)&&l&&u){const e=ZD(n)?FB(n.argumentExpression,b,l_):qE(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(u,e,r,l));return QC(i,n),tI(i,n),i}}return $B(n,b,e)}function z(n){if(Hb(n,!0)){Xy(n,I)&&(n=mz(e,n,O(n.right)));const r=J(n.left),i=FB(n.right,b,l_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return J(n)}function $(n){return Fn.assertNode(n,Yu),hN(n)?function(n){if(r_(n.expression)){const e=J(n.expression);return t.updateSpreadElement(n,e)}return $B(n,b,e)}(n):vN(n)?$B(n,b,e):z(n)}function V(n){return Fn.assertNode(n,Gu),$A(n)?function(n){if(r_(n.expression)){const e=J(n.expression);return t.updateSpreadAssignment(n,e)}return $B(n,b,e)}(n):zA(n)?function(t){return Xy(t,I)&&(t=mz(e,t,O(t.objectAssignmentInitializer))),$B(t,b,e)}(n):JA(n)?function(n){const r=FB(n.name,b,xu);if(Hb(n.initializer,!0)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(r_(n.initializer)){const e=J(n.initializer);return t.updatePropertyAssignment(n,r,e)}return $B(n,b,e)}(n):$B(n,b,e)}function K(e){if(XD(e)){const n=IB(e.elements,$,l_);return t.updateArrayLiteralExpression(e,n)}{const n=IB(e.properties,V,Bu);return t.updateObjectLiteralExpression(e,n)}}function U(e,n){const r=n?T:b,i=FB(e.expression,r,l_);return t.updateParenthesizedExpression(e,i)}function W(e){return le(_)&&(iN(e)?(_.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(_))):(_.push(e),e=t.inlineExpressions(_)),_=void 0),e}function H(e){if(!e)return;const t=[];return we(t,q(e.decorators,G)),t}function G(e){const n=FB(e.expression,b,l_);if(rw(n,3072),lS(lF(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function X(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));QC(l,e),cw(l,xx(e)),rw(l,3072);const u="get"===a||"set"===a?a:void 0,_=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,_,u),f=t.createPropertyAssignment(t.createIdentifier(a),d);return QC(f,e),cw(f,xx(e)),rw(f,3072),f}function Y(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,e.asteriskToken,"value",IB(e.parameters,b,uD),FB(e.body,b,AN))])}function Q(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"get",[],FB(e.body,b,AN))])}function Z(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"set",IB(e.parameters,b,uD),FB(e.body,b,AN))])}function ee(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),X(e,e.name,n,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier("value")))]))])}function te(e,n,r){return e=IB(e,(e=>eD(e)?e:void 0),vu),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function ne(e,n,r){return e=IB(e,(e=>eD(e)?e:void 0),vu),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function re(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var Iz=S({"src/compiler/transformers/esDecorators.ts"(){gH()}});function Oz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=HS(s);let l,u,_,d,f=0;const p=[];let m=0;const g=e.onEmitNode,h=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&l&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==f){const i=f;return f=r,g(e,t,n),void(f=i)}}else if(l&&p[bB(t)]){const r=f;return f=0,g(e,t,n),void(f=r)}g(e,t,n)},e.onSubstituteNode=function(e,n){return n=h(e,n),1===e&&f?function(e){switch(e.kind){case 211:return V(e);case 212:return K(e);case 213:return function(e){const n=e.expression;if(sg(n)){const r=QD(n)?V(n):K(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n},gJ(e,(function(t){if(t.isDeclarationFile)return t;y(1,!1),y(2,!Ep(t,s));const n=$B(t,k,e);return Cw(n,e.readEmitHelpers()),n}));function y(e,t){m=t?m|e:m&~e}function v(e){return 0!=(m&e)}function b(){return v(2)}function x(e,t,n){const r=e&~m;if(r){y(r,!0);const e=t(n);return y(r,!1),e}return t(n)}function S(t){return $B(t,k,e)}function k(n){if(0==(256&n.transformFlags))return n;switch(n.kind){case 134:return;case 223:return function(n){return v(1)?QC(tI(t.createYieldExpression(void 0,FB(n.expression,k,l_)),n),n):$B(n,k,e)}(n);case 174:return x(3,E,n);case 262:return x(3,A,n);case 218:return x(3,P,n);case 219:return x(1,F,n);case 211:return _&&QD(n)&&108===n.expression.kind&&_.add(n.name.escapedText),$B(n,k,e);case 212:return _&&108===n.expression.kind&&(d=!0),$B(n,k,e);case 177:return x(3,D,n);case 178:return x(3,N,n);case 176:return x(3,C,n);case 263:case 231:return x(3,S,n);default:return $B(n,k,e)}}function T(n){if(Gh(n))switch(n.kind){case 243:return function(n){if(O(n.declarationList)){const e=M(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return $B(n,k,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,O(r)?M(r,!1):FB(n.initializer,k,b_),FB(n.condition,k,l_),FB(n.incrementor,k,l_),JB(n.statement,T,e))}(n);case 249:return function(n){return t.updateForInStatement(n,O(n.initializer)?M(n.initializer,!0):Fn.checkDefined(FB(n.initializer,k,b_)),Fn.checkDefined(FB(n.expression,k,l_)),JB(n.statement,T,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,FB(n.awaitModifier,k,QE),O(n.initializer)?M(n.initializer,!0):Fn.checkDefined(FB(n.initializer,k,b_)),Fn.checkDefined(FB(n.expression,k,l_)),JB(n.statement,T,e))}(n);case 299:return function(t){const n=new Set;let r;if(I(t.variableDeclaration,n),n.forEach(((e,t)=>{u.has(t)&&(r||(r=new Set(u)),r.delete(t))})),r){const n=u;u=r;const i=$B(t,T,e);return u=n,i}return $B(t,T,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return $B(n,T,e);default:return Fn.assertNever(n,"Unhandled node.")}return k(n)}function C(n){return t.updateConstructorDeclaration(n,IB(n.modifiers,k,vu),RB(n.parameters,k,e),B(n))}function E(n){return t.updateMethodDeclaration(n,IB(n.modifiers,k,Lu),n.asteriskToken,n.name,void 0,void 0,RB(n.parameters,k,e),void 0,2&Fy(n)?J(n):B(n))}function D(n){return t.updateGetAccessorDeclaration(n,IB(n.modifiers,k,Lu),n.name,RB(n.parameters,k,e),void 0,B(n))}function N(n){return t.updateSetAccessorDeclaration(n,IB(n.modifiers,k,Lu),n.name,RB(n.parameters,k,e),B(n))}function A(n){return t.updateFunctionDeclaration(n,IB(n.modifiers,k,Lu),n.asteriskToken,n.name,void 0,RB(n.parameters,k,e),void 0,2&Fy(n)?J(n):BB(n.body,k,e))}function P(n){return t.updateFunctionExpression(n,IB(n.modifiers,k,vu),n.asteriskToken,n.name,void 0,RB(n.parameters,k,e),void 0,2&Fy(n)?J(n):BB(n.body,k,e))}function F(n){return t.updateArrowFunction(n,IB(n.modifiers,k,vu),void 0,RB(n.parameters,k,e),void 0,n.equalsGreaterThanToken,2&Fy(n)?J(n):BB(n.body,k,e))}function I({name:e},t){if(qE(e))t.add(e.escapedText);else for(const n of e.elements)vN(n)||I(n,t)}function O(e){return!!e&&XN(e)&&!(7&e.flags)&&e.declarations.some(j)}function M(e,n){!function(e){w(e.declarations,L)}(e);const r=jx(e);return 0===r.length?n?FB(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),k,l_):void 0:t.inlineExpressions(q(r,R))}function L({name:e}){if(qE(e))o(e);else for(const t of e.elements)vN(t)||L(t)}function R(e){const n=cw(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return Fn.checkDefined(FB(n,k,l_))}function j({name:e}){if(qE(e))return u.has(e.escapedText);for(const t of e.elements)if(!vN(t)&&j(t))return!0;return!1}function B(n){Fn.assertIsDefined(n.body);const r=_,i=d;_=new Set,d=!1;let o=BB(n.body,k,e);const s=Ec(n,Cu);if(c>=2&&384&a.getNodeCheckFlags(n)&&3!=(3&Fy(s))){if($(),_.size){const e=Mz(t,a,n,_);p[bB(e)]=!0;const r=o.statements.slice();Wf(r,[e]),o=t.updateBlock(o,r)}d&&(256&a.getNodeCheckFlags(n)?Tw(o,vE):128&a.getNodeCheckFlags(n)&&Tw(o,yE))}return _=r,d=i,o}function J(e){r();const o=Ec(e,ku).type,s=c<2?function(e){const t=e&&_g(e);if(t&&bu(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}}(o):void 0,l=219===e.kind,f=0!=(512&a.getNodeCheckFlags(e)),m=u;u=new Set;for(const t of e.parameters)I(t,u);const g=_,h=d;let y;if(l||(_=new Set,d=!1),l){const r=n().createAwaiterHelper(b(),f,s,z(e.body)),o=i();if(le(o)){const e=t.converters.convertToFunctionBlock(r);y=t.updateBlock(e,tI(t.createNodeArray(_e(o,e.statements)),e.statements))}else y=r}else{const r=[],o=t.copyPrologue(e.body.statements,r,!1,k);r.push(t.createReturnStatement(n().createAwaiterHelper(b(),f,s,z(e.body,o)))),Wf(r,i());const l=c>=2&&384&a.getNodeCheckFlags(e);if(l&&($(),_.size)){const n=Mz(t,a,e,_);p[bB(n)]=!0,Wf(r,[n])}const u=t.createBlock(r,!0);tI(u,e.body),l&&d&&(256&a.getNodeCheckFlags(e)?Tw(u,vE):128&a.getNodeCheckFlags(e)&&Tw(u,yE)),y=u}return u=m,l||(_=g,d=h),y}function z(e,n){return AN(e)?t.updateBlock(e,IB(e.statements,T,I_,n)):t.converters.convertToFunctionBlock(Fn.checkDefined(FB(e,T,y_)))}function $(){0==(1&l)&&(l|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function V(e){return 108===e.expression.kind?tI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function K(e){return 108===e.expression.kind?function(e,n){return tI(256&f?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[e]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[e]),n)}(e.argumentExpression,e):e}}function Mz(e,t,n,r){const i=0!=(256&t.getNodeCheckFlags(n)),o=[];return r.forEach(((t,n)=>{const r=Fc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,rw(e.createPropertyAccessExpression(rw(e.createSuper(),8),r),8)))),i&&a.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(rw(e.createPropertyAccessExpression(rw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}var Lz=S({"src/compiler/transformers/es2017.ts"(){gH()}});function Rz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=HS(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&_&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(_&&x[bB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const u=e.onSubstituteNode;e.onSubstituteNode=function(e,n){return n=u(e,n),1===e&&v?function(e){switch(e.kind){case 211:return H(e);case 212:return G(e);case 213:return function(e){const n=e.expression;if(sg(n)){const r=QD(n)?H(n):G(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n):n};let _,d,f,p,m,g,h,y=!1,v=0,b=0;const x=[];return gJ(e,(function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=S(2,Ep(n,s)?0:1);y=!1;const i=$B(n,C,e),o=_e(i.statements,m&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(m))]),a=t.updateSourceFile(i,tI(t.createNodeArray(o),n.statements));return k(r),a}(n);return Cw(r,e.readEmitHelpers()),p=void 0,m=void 0,r}));function S(e,t){const n=b;return b=3&(b&~e|t),n}function k(e){b=e}function T(e){m=ke(m,t.createVariableDeclaration(e))}function C(e){return A(e,!1)}function w(e){return A(e,!0)}function E(e){if(134!==e.kind)return e}function D(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=S(n,r),o=e(t);return k(i),o}return e(t)}function N(t){return $B(t,C,e)}function A(r,i){if(0==(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){return 2&d&&1&d?QC(tI(t.createYieldExpression(void 0,n().createAwaitHelper(FB(r.expression,C,l_))),r),r):$B(r,C,e)}(r);case 229:return function(r){if(2&d&&1&d){if(r.asteriskToken){const e=FB(Fn.checkDefined(r.expression),C,l_);return QC(tI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,tI(n().createAsyncDelegatorHelper(tI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return QC(tI(t.createYieldExpression(void 0,O(r.expression?FB(r.expression,C,l_):t.createVoidZero())),r),r)}return $B(r,C,e)}(r);case 253:return function(n){return 2&d&&1&d?t.updateReturnStatement(n,O(n.expression?FB(n.expression,C,l_):t.createVoidZero())):$B(n,C,e)}(r);case 256:return function(n){if(2&d){const e=Rm(n);return 250===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(FB(e,C,I_,t.liftToBlock),n)}return $B(n,C,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(305===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(FB(e,C,l_))}else n=ke(n,303===i.kind?t.createPropertyAssignment(i.name,FB(i.initializer,C,l_)):FB(i,C,Bu));return n&&r.push(t.createObjectLiteralExpression(n)),r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&384&a.getNodeCheckFlags(o);if(p){0==(1&_)&&(_|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=Mz(t,a,o,g);x[bB(n)]=!0,Wf(s,[n])}s.push(f),Wf(s,i());const m=t.updateBlock(o.body,s);return p&&h&&(256&a.getNodeCheckFlags(o)?Tw(m,vE):128&a.getNodeCheckFlags(o)&&Tw(m,yE)),g=u,h=d,m}function q(e){r();let n=0;const o=[],a=FB(e.body,C,y_)??t.createBlock([]);AN(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),we(o,W(void 0,e));const s=i();if(n>0||le(o)||le(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Wf(o,s),we(o,e.statements.slice(n)),t.updateBlock(e,tI(t.createNodeArray(o),e.statements))}return a}function W(n,r){let i=!1;for(const o of r.parameters)if(i){if($u(o.name)){if(o.name.elements.length>0){const r=GJ(o,C,e,0,t.getGeneratedNameForNode(o));if(le(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);rw(i,2097152),n=ke(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=FB(o.initializer,C,l_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);rw(a,2097152),n=ke(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);tI(e,o.name),rw(e,96);const r=FB(o.initializer,C,l_);iw(r,3168);const i=t.createAssignment(e,r);tI(i,o),rw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);tI(a,o),rw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);dF(c),tI(c,o),rw(c,2101056),n=ke(n,c)}}else if(65536&o.transformFlags){i=!0;const r=GJ(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if(le(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);rw(i,2097152),n=ke(n,i)}}return n}function H(e){return 108===e.expression.kind?tI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function G(e){return 108===e.expression.kind?function(e,n){return tI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[e]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[e]),n)}(e.argumentExpression,e):e}}var jz=S({"src/compiler/transformers/es2018.ts"(){gH()}});function Bz(e){const t=e.factory;return gJ(e,(function(t){return t.isDeclarationFile?t:$B(t,n,e)}));function n(r){return 0==(64&r.transformFlags)?r:299===r.kind?function(r){return r.variableDeclaration?$B(r,n,e):t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),FB(r.block,n,AN))}(r):$B(r,n,e)}}var Jz=S({"src/compiler/transformers/es2019.ts"(){gH()}});function zz(e){const{factory:t,hoistVariableDeclaration:n}=e;return gJ(e,(function(t){return t.isDeclarationFile?t:$B(t,r,e)}));function r(i){if(0==(32&i.transformFlags))return i;switch(i.kind){case 213:{const e=o(i,!1);return Fn.assertNotNode(e,SA),e}case 211:case 212:if(Ml(i)){const e=s(i,!1,!1);return Fn.assertNotNode(e,SA),e}return $B(i,r,e);case 226:return 61===i.operatorToken.kind?function(e){let i=FB(e.left,r,l_),o=i;return kJ(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i)),tI(t.createConditionalExpression(c(i,o),void 0,o,void 0,FB(e.right,r,l_)),e)}(i):$B(i,r,e);case 220:return function(e){return Ml(ny(e.expression))?QC(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,FB(e.expression,r,l_))}(i);default:return $B(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return SA(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(Ml(n))return s(n,o,!1);if(iN(n.expression)&&Ml(ny(n.expression))){const e=i(n.expression,!0,!1),o=IB(n.arguments,r,l_);return SA(e)?tI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return $B(n,r,e)}function a(e,a,c){switch(e.kind){case 217:return i(e,a,c);case 211:case 212:return function(e,i,o){if(Ml(e))return s(e,i,o);let a,c=FB(e.expression,r,l_);return Fn.assertNotNode(c,SA),i&&(kJ(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=211===e.kind?t.updatePropertyAccessExpression(e,c,FB(e.name,r,qE)):t.updateElementAccessExpression(e,c,FB(e.argumentExpression,r,l_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 213:return o(e,a);default:return FB(e,r,l_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){Fn.assertNotNode(e,$l);const t=[e];for(;!e.questionDotToken&&!nN(e);)e=xt(zl(e.expression),Ml),Fn.assertNotNode(e,$l),t.unshift(e);return{expression:e.expression,chain:t}}(e),u=a(zl(s),Ol(l[0]),!1);let _=SA(u)?u.thisArg:void 0,d=SA(u)?u.expression:u,f=t.restoreOuterExpressions(s,d,8);kJ(d)||(d=t.createTempVariable(n),f=t.createAssignment(d,f));let p,m=d;for(let e=0;ee&&we(c,IB(n.statements,u,I_,e,d-e));break}d++}Fn.assert(dt&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,FB(n.expression,u,l_),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){return 0!==Xz(n.statements)?LA(n)?t.updateCaseClause(n,FB(n.expression,u,l_),_(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,_(n.statements,0,n.statements.length,r,void 0)):$B(n,u,e)}(n,i)))))],i,2===r)}return $B(n,u,e)}(n);default:return $B(n,u,e)}}function _(i,o,a,s,_){const m=[];for(let r=o;rt&&(t=e)}return t}var Yz,Qz=S({"src/compiler/transformers/esnext.ts"(){gH()}});function Zz(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return gJ(e,(function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=Tk(r,n);let a=$B(n,l,e);Cw(a,e.readEmitHelpers());let s=a.statements;if(o.filenameDeclaration&&(s=Xf(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports)for(const[e,r]of Ze(o.utilizedImplicitRuntimeImports.entries()))if(HI(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Ze(r.values()))),t.createStringLiteral(e),void 0);LT(n,!1),s=Xf(s.slice(),n)}else if(om(n)){const n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Ze(r.values(),(e=>t.createBindingElement(void 0,e.propertyName,e.name)))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(e)]))],2));LT(n,!1),s=Xf(s.slice(),n)}return s!==a.statements&&(a=t.updateSourceFile(a,s)),o=void 0,a}));function s(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(i.fileName));return o.filenameDeclaration=e,o.filenameDeclaration.name}function c(e){var n,i;const a="createElement"===e?o.importSpecifier:Ck(o.importSpecifier,r),s=null==(i=null==(n=o.utilizedImplicitRuntimeImports)?void 0:n.get(a))?void 0:i.get(e);if(s)return s.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let c=o.utilizedImplicitRuntimeImports.get(a);c||(c=new Map,o.utilizedImplicitRuntimeImports.set(a,c));const l=t.createUniqueName(`_${e}`,112),u=t.createImportSpecifier(!1,t.createIdentifier(e),l);return jw(l,u),c.set(e,u),l}function l(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return f(t,!1);case 285:return p(t,!1);case 288:return m(t,!1);case 294:return N(t);default:return $B(t,l,e)}}(t):t}function u(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;iJA(e)&&(qE(e.name)&&"__proto__"===Ic(e.name)||NE(e.name)&&"__proto__"===e.name.text)))}function d(e){return void 0===o.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!IA(n)||YD(n.expression)&&!n.expression.properties.some($A)){if(t&&PA(n)&&qE(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function f(e,t){return(d(e.openingElement)?v:h)(e.openingElement,e.children,t,e)}function p(e,t){return(d(e)?v:h)(e,void 0,t,e)}function m(e,t){return(void 0===o.importSpecifier?x:b)(e.openingFragment,e.children,t,e)}function g(e){const n=lv(e);if(1===C(n)&&!n[0].dotDotDotToken){const e=u(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=te(e,u);return C(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function h(e,n,r,i){const o=D(e),s=n&&n.length?g(n):void 0,c=O(e.attributes.properties,(e=>!!e.name&&qE(e.name)&&"key"===e.name.escapedText)),l=c?V(e.attributes.properties,(e=>e!==c)):e.attributes.properties;return y(o,C(l)?S(l,s):t.createObjectLiteralExpression(s?[s]:a),c,n||a,r,i)}function y(e,n,o,a,l,u){var _;const d=lv(a),f=C(d)>1||!!(null==(_=d[0])?void 0:_.dotDotDotToken),p=[e,n];if(o&&p.push(T(o.initializer)),5===r.jsx){const e=Ec(i);if(e&&UA(e)){void 0===o&&p.push(t.createVoidZero()),p.push(f?t.createTrue():t.createFalse());const n=gs(e,u.pos);p.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",s()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),p.push(t.createThis())}}const m=tI(t.createCallExpression(function(e){const t=function(e){return 5===r.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return c(t)}(f),void 0,p),u);return l&&dF(m),m}function v(n,a,s,l){const _=D(n),d=n.attributes.properties,f=C(d)?S(d):t.createNull(),p=void 0===o.importSpecifier?VP(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):c("createElement"),m=KP(t,p,_,f,te(a,u),l);return s&&dF(m),m}function b(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=g(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return y(c("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function x(n,o,a,s){const c=UP(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,te(o,u),n,s);return a&&dF(c),c}function S(e,i){const o=HS(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=G(se(e,IA,((e,n)=>G(q(e,(e=>{return n?YD((r=e).expression)&&!_(r.expression)?r.expression.properties:t.createSpreadAssignment(Fn.checkDefined(FB(r.expression,l,l_))):k(e);var r}))))));return n&&r.push(n),r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(IA(t)){if(YD(t.expression)&&!_(t.expression)){for(const e of t.expression.properties)$A(e)?(a(),i.push(Fn.checkDefined(FB(e.expression,l,l_)))):o.push(Fn.checkDefined(FB(e,l)));continue}a(),i.push(Fn.checkDefined(FB(t.expression,l,l_)))}else o.push(k(t));return r&&o.push(r),a(),i.length&&!YD(i[0])&&i.unshift(t.createObjectLiteralExpression()),Je(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,i)}function k(e){const n=function(e){const n=e.name;if(qE(n)){const e=Ic(n);return/^[A-Za-z_]\w*$/.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(Ic(n.namespace)+":"+Ic(n.name))}(e),r=T(e.initializer);return t.createPropertyAssignment(n,r)}function T(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!Vg(e,i);return tI(t.createStringLiteral(function(e){const t=E(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():Fn.checkDefined(FB(e.expression,l,l_)):TA(e)?f(e,!1):CA(e)?p(e,!1):DA(e)?m(e,!1):Fn.failBadSyntaxKind(e)}function w(e,t){const n=E(t);return void 0===e?n:e+" "+n}function E(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return Ks(parseInt(i,10));if(o)return Ks(parseInt(o,16));{const t=Yz.get(a);return t?Ks(t):e}}))}function D(e){if(284===e.kind)return D(e.openingElement);{const n=e.tagName;return qE(n)&&vv(n.escapedText)?t.createStringLiteral(Ic(n)):MA(n)?t.createStringLiteral(Ic(n.namespace)+":"+Ic(n.name)):HP(t,n)}}function N(e){const n=FB(e.expression,l,l_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var e$=S({"src/compiler/transformers/jsx.ts"(){gH(),Yz=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function t$(e){const{factory:t,hoistVariableDeclaration:n}=e;return gJ(e,(function(t){return t.isDeclarationFile?t:$B(t,r,e)}));function r(i){return 0==(512&i.transformFlags)?i:226===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=FB(e.left,r,l_),s=FB(e.right,r,l_);if(ZD(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=tI(t.createElementAccessExpression(tI(t.createAssignment(e,a.expression),a.expression),tI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=tI(t.createElementAccessExpression(e,r),a)}else if(QD(a)){const e=t.createTempVariable(n);i=tI(t.createPropertyAccessExpression(tI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=tI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return tI(t.createAssignment(i,tI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=FB(e.left,r,l_),i=FB(e.right,r,l_);return tI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return $B(i,r,e)}}(i):$B(i,r,e)}}var n$=S({"src/compiler/transformers/es2016.ts"(){gH()}});function r$(e,t){return{kind:e,expression:t}}function i$(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,_=e.onEmitNode;let d,f,p,m,g,h;function y(e){m=ke(m,t.createVariableDeclaration(e))}return e.onEmitNode=function(e,t,n){if(1&h&&ku(t)){const r=v(32670,16&cp(t)?81:65);return _(e,t,n),void b(r,0,0)}_(e,t,n)},e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){switch(e.kind){case 80:return function(e){if(2&h&&!QP(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!Pu(n)||!function(e,t){let n=Ac(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=jp(e);for(;n;){if(n===r||n===e)return!1;if(Au(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return tI(t.getGeneratedNameForNode($c(n)),e)}return e}(e);case 110:return function(e){return 1&h&&16&p?tI(t.createUniqueName("_this",48),e):e}(e)}return e}(n):qE(n)?function(e){if(2&h&&!QP(e)){const n=Ac(e,qE);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return tI(t.getGeneratedNameForNode(n),e)}return e}(n):n},gJ(e,(function(n){if(n.isDeclarationFile)return n;d=n,f=n.text;const i=function(e){const n=v(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,k);return we(a,IB(e.statements,k,I_,s)),m&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(m))),t.mergeLexicalEnvironment(i,o()),$(i,e),b(n,0,0),t.updateSourceFile(e,tI(t.createNodeArray(_e(i,a)),e.statements))}(n);return Cw(i,e.readEmitHelpers()),d=void 0,f=void 0,m=void 0,p=0,i}));function v(e,t){const n=p;return p=32767&(p&~e|t),n}function b(e,t,n){p=-32768&(p&~t|n)|e}function x(e){return 0!=(8192&p)&&253===e.kind&&!e.expression}function S(e){return 0!=(1024&e.transformFlags)||void 0!==g||8192&p&&function(e){return 4194304&e.transformFlags&&($N(e)||ON(e)||VN(e)||KN(e)||iA(e)||LA(e)||RA(e)||WN(e)||BA(e)||UN(e)||d_(e,!1)||AN(e))}(e)||d_(e,!1)&&Se(e)||0!=(1&lp(e))}function k(e){return S(e)?E(e,!1):e}function T(e){return S(e)?E(e,!0):e}function C(e){if(S(e)){const t=Ec(e);if(fD(t)&&xb(t)){const t=v(32670,16449),n=E(e,!1);return b(t,98304,0),n}return E(e,!1)}return e}function w(e){return 108===e.kind?Ge(!0):k(e)}function E(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,A(e));QC(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(QC(i,e),tI(i,e),dF(i),r.push(i),vb(e,1)){const n=vb(e,1024)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));QC(n,i),r.push(n)}return $e(r)}(n);case 231:return function(e){return A(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:$u(e.name)?QC(tI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?QC(tI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262:return function(n){const r=g;g=void 0;const i=v(32670,65),o=RB(n.parameters,k,e),a=Z(n),s=32768&p?t.getLocalName(n):n.name;return b(i,98304,0),g=r,t.updateFunctionDeclaration(n,IB(n.modifiers,k,vu),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 219:return function(n){16384&n.transformFlags&&!(16384&p)&&(p|=65536);const r=g;g=void 0;const i=v(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,RB(n.parameters,k,e),void 0,Z(n));return tI(o,n),QC(o,n),rw(o,16),b(i,0,0),g=r,o}(n);case 218:return function(n){const r=524288&cp(n)?v(32662,69):v(32670,65),i=g;g=void 0;const o=RB(n.parameters,k,e),a=Z(n),s=32768&p?t.getLocalName(n):n.name;return b(r,98304,0),g=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 260:return ne(n);case 80:return N(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&Xe();const e=IB(n.declarations,1&n.flags?te:ne,GN),r=t.createVariableDeclarationList(e);return QC(r,n),tI(r,n),pw(r,n),524288&n.transformFlags&&($u(n.declarations[0].name)||$u(Be(n.declarations).name))&&cw(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return yx(t,n)}(e)),r}return $B(n,k,e)}(n);case 255:return function(t){if(void 0!==g){const n=g.allowedNonLabeledJumps;g.allowedNonLabeledJumps|=2;const r=$B(t,k,e);return g.allowedNonLabeledJumps=n,r}return $B(t,k,e)}(n);case 269:return function(t){const n=v(7104,0),r=$B(t,k,e);return b(n,0,0),r}(n);case 241:return function(t,n){const r=256&p?v(7104,512):v(6976,128),i=$B(t,k,e);return b(r,0,0),i}(n);case 252:case 251:return function(n){if(g){const e=252===n.kind?2:4;if(!(n.label&&g.labels&&g.labels.get(Ic(n.label))||!n.label&&g.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Pe(g,!0,Ic(r),e)):(e=`continue-${r.escapedText}`,Pe(g,!1,Ic(r),e)):252===n.kind?(g.nonLocalJumps|=2,e="break"):(g.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(g.loopOutParameters.length){const e=g.loopOutParameters;let n;for(let r=0;rPN(e)&&!!Le(e.declarationList.declarations).initializer,i=g;g=void 0;const o=IB(n.statements,C,I_);g=i;const a=V(o,r),s=V(o,(e=>!r(e))),c=xt(Le(a),PN).declarationList.declarations[0],l=lF(c.initializer);let _=bt(l,Hb);!_&&fN(l)&&28===l.operatorToken.kind&&(_=bt(l.left,Hb));const d=xt(_?lF(_.right):l,eN),f=xt(lF(d.expression),oN),p=f.body.statements;let m=0,h=-1;const y=[];if(_){const e=bt(p[m],IN);e&&(y.push(e),m++),y.push(p[m]),m++,y.push(t.createExpressionStatement(t.createAssignment(_.left,xt(c.name,qE))))}for(;!$N(u(p,h));)h--;we(y,p,m,h),h<-1&&we(y,p,h+1);const v=bt(u(p,h),$N);for(const e of s)$N(e)&&(null==v?void 0:v.expression)&&!qE(v.expression)?y.push(v):y.push(e);return we(y,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(_&&_.right,t.updateCallExpression(d,t.restoreOuterExpressions(d.expression,t.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,t.updateBlock(f.body,y))),void 0,d.arguments))))}(e);const n=lF(e.expression);return 108===n.kind||sg(n)||le(e.arguments,hN)?Ve(e,!0):t.updateCallExpression(e,Fn.checkDefined(FB(e.expression,w,l_)),void 0,IB(e.arguments,k,l_))}(n);case 214:return function(n){if(le(n.arguments,hN)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(Fn.checkDefined(FB(e,k,l_)),r,Ke(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return $B(n,k,e)}(n);case 217:return function(t,n){return $B(t,n?T:k,e)}(n,r);case 226:return ee(n,r);case 361:return function(n,r){if(r)return $B(n,T,e);let i;for(let e=0;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return tI(n,e)}(n);case 230:return function(e){return FB(e.expression,k,l_)}(n);case 108:return Ge(!1);case 110:return function(e){return 2&p&&!(16384&p)&&(p|=65536),g?2&p?(g.containsLexicalThis=!0,e):g.thisName||(g.thisName=t.createUniqueName("this")):e}(n);case 236:return function(e){return 105===e.keywordToken&&"target"===e.name.escapedText?(p|=32768,t.createUniqueName("_newTarget",48)):e}(n);case 174:return function(e){Fn.assert(!cD(e.name));const n=Q(e,bx(e,-1),void 0,void 0);return rw(n,1024|cp(n)),tI(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){Fn.assert(!cD(n.name));const r=g;g=void 0;const i=v(32670,65);let o;const a=RB(n.parameters,k,e),s=Z(n);return o=177===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s),b(i,98304,0),g=r,o}(n);case 243:return function(n){const r=v(0,vb(n,1)?32:0);let i;if(g&&0==(7&n.declarationList.flags)&&!function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&lp(e.declarationList.declarations[0].initializer))}(n)){let r;for(const i of n.declarationList.declarations)if(Ce(g,i),i.initializer){let n;$u(i.name)?n=qJ(i,k,e,0):(n=t.createBinaryExpression(i.name,64,Fn.checkDefined(FB(i.initializer,k,l_))),tI(n,i)),r=ke(r,n)}i=r?tI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}else i=$B(n,k,e);return b(r,0,0),i}(n);case 253:return function(n){return g?(g.nonLocalJumps|=8,x(n)&&(n=D(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?Fn.checkDefined(FB(n.expression,k,l_)):t.createVoidZero())]))):x(n)?D(n):$B(n,k,e)}(n);default:return $B(n,k,e)}}function D(e){return QC(t.createReturnStatement(t.createUniqueName("_this",48)),e)}function N(e){return g&&c.isArgumentsLocalBinding(e)?g.argumentsName||(g.argumentsName=t.createUniqueName("arguments")):256&e.flags?QC(tI(t.createIdentifier(Fc(e.escapedText)),e),e):e}function A(a){a.name&&Xe();const s=gy(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,t.createUniqueName("_super",48))]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),u=Ay(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(tI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=g;g=void 0;const l=v(32662,73),u=Wv(r),_=function(e,t){if(!e||!t)return!1;if(le(e.parameters))return!1;const n=Oe(e.body.statements);if(!n||!tv(n)||244!==n.kind)return!1;const r=n.expression;if(!tv(r)||213!==r.kind)return!1;const i=r.expression;if(!tv(i)||108!==i.kind)return!1;const o=Je(r.arguments);if(!o||!tv(o)||230!==o.kind)return!1;const a=o.expression;return qE(a)&&"arguments"===a.escapedText}(u,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return RB(t&&!n?t.parameters:void 0,k,e)||[]}(u,_),void 0,function(e,n,r,a){const s=!!r&&106!==lF(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(L()));const a=t.createNodeArray(r);tI(a,e.members);const s=t.createBlock(a,!0);return tI(s,e),rw(s,3072),s}(n,s);const c=[],l=[];i();const u=t.copyStandardPrologue(e.body.statements,c,0),_=NJ(e.body.statements,u);(a||_.length>0)&&(p|=8192);const d=P(c,l,e.body.statements,u,_,0,e,s,a,!0);j(c,e),z(c,e,a),U(c,e),t.mergeLexicalEnvironment(c,o()),d&&!O(e.body)&&l.push(t.createReturnStatement(t.createUniqueName("_this",48)));const f=t.createBlock(tI(t.createNodeArray([...c,...l]),e.body.statements),!0);return tI(f,e.body),f}(u,r,s,_));tI(d,u||r),s&&rw(d,16),n.push(d),b(l,98304,0),g=c}(c,a,u,s),function(e,t){for(const n of t.members)switch(n.kind){case 240:e.push(W(n));break;case 174:e.push(H(Qe(t,n),n,t));break;case 177:case 178:const r=nb(t.members,n);n===r.firstAccessor&&e.push(X(Qe(t,n),r,t));break;case 176:case 175:break;default:Fn.failBadSyntaxKind(n,d&&d.fileName)}}(c,a);const _=Tx(Ts(f,a.members.end),20),m=t.createPartiallyEmittedExpression(u);AT(m,_.end),rw(m,3072);const h=t.createReturnStatement(m);NT(h,_.pos),rw(h,3840),c.push(h),Wf(c,o());const y=t.createBlock(tI(t.createNodeArray(c),a.members),!0);return rw(y,3072),y}(a,s));rw(c,131072&cp(a)|1048576);const l=t.createPartiallyEmittedExpression(c);AT(l,a.end),rw(l,3072);const u=t.createPartiallyEmittedExpression(l);AT(u,Ts(f,a.pos)),rw(u,3072);const _=t.createParenthesizedExpression(t.createCallExpression(u,void 0,s?[Fn.checkDefined(FB(s.expression,k,l_))]:[]));return hw(_,3,"* @class "),_}function P(e,n,r,i,o,a,s,c,l,u){let _=!1;const d=a=0?d:r.length;if(u&&d>=0){let e=i;for(;u&&eqE(e.name)&&!e.initializer))||F(t)))break;e++}u=d===e}var m;we(n,IB(r,k,I_,i,f-i));const g=d>=0?r[d]:void 0;if(g&&WN(g)){const r=[];_=P(e,r,g.tryBlock.statements,0,o,a+1,s,c,l,u),tI(t.createNodeArray(r),g.tryBlock.statements),n.push(t.updateTryStatement(g,t.updateBlock(g.tryBlock,r),FB(g.catchClause,k,BA),FB(g.finallyBlock,k,AN)))}else{const i=g&&EJ(g);let o;if(l?(o=L(),p|=8192):i&&(o=function(e){return Ve(e,!1)}(i),p|=8192),c||o){if(o&&d===r.length-1&&!(16384&s.body.transformFlags)){const e=xt(xt(o,fN).left,eN),r=t.createReturnStatement(o);return pw(r,fw(e)),rw(e,3072),n.push(r),!1}u?K(n,s,o||M()):(K(e,s,M()),o&&function(e,n){Ye();const r=t.createExpressionStatement(t.createBinaryExpression(t.createThis(),64,n));e.push(r),pw(r,Ec(n).parent)}(n,o)),_=!0}else $(e,s)}return d>=0&&we(n,IB(r,k,I_,d+1)),_}function F(e){if(!PN(e)||1!==e.declarationList.declarations.length)return!1;const t=e.declarationList.declarations[0];if(!qE(t.name)||!t.initializer)return!1;const n=t.initializer;if(!YD(n)||3!==n.properties.length)return!1;const[r,i,o]=n.properties;return!!(JA(r)&&qE(r.name)&&"stack"===Ic(r.name)&&XD(r.initializer))&&!!(JA(i)&&qE(i.name)&&"error"===Ic(i.name)&&lN(i.initializer)&&EE(i.initializer.expression))&&!(!JA(o)||!qE(o.name)||"hasError"!==Ic(o.name)||97!==o.initializer.kind)}function O(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return O(t.thenStatement)&&O(t.elseStatement)}else if(241===e.kind){const t=je(e.statements);if(t&&O(t))return!0}return!1}function M(){return rw(t.createThis(),8)}function L(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(t.createUniqueName("_super",48),t.createNull()),t.createFunctionApplyCall(t.createUniqueName("_super",48),M(),t.createIdentifier("arguments"))),M())}function R(e){return void 0!==e.initializer||$u(e.name)}function j(e,t){if(!le(t.parameters,R))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||($u(t)?n=B(e,r,t,i)||n:i&&(J(e,r,t,i),n=!0))}return n}function B(n,r,i,o){return i.elements.length>0?(Xf(n,rw(t.createVariableStatement(void 0,t.createVariableDeclarationList(GJ(r,k,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Xf(n,rw(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),Fn.checkDefined(FB(o,k,l_)))),2097152)),!0)}function J(e,n,r,i){i=Fn.checkDefined(FB(i,k,l_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),rw(tI(t.createBlock([t.createExpressionStatement(rw(tI(t.createAssignment(rw(OT(tI(t.cloneNode(r),r),r.parent),96),rw(i,3168|cp(i))),n),3072))]),n),3905));dF(o),tI(o,n),rw(o,2101056),Xf(e,o)}function z(n,r,i){const o=[],a=je(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?OT(tI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);rw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,u=t.createLoopVariable();o.push(rw(tI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const _=t.createForStatement(tI(t.createVariableDeclarationList([t.createVariableDeclaration(u,void 0,void 0,t.createNumericLiteral(l))]),a),tI(t.createLessThan(u,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),tI(t.createPostfixIncrement(u),a),t.createBlock([dF(tI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?u:t.createSubtract(u,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),u))),a))]));return rw(_,2097152),dF(_),o.push(_),80!==a.name.kind&&o.push(rw(tI(t.createVariableStatement(void 0,t.createVariableDeclarationList(GJ(a,k,e,0,c))),a),2097152)),Hf(n,o),!0}function $(e,n){return!!(65536&p&&219!==n.kind)&&(K(e,n,t.createThis()),!0)}function K(e,n,r){Ye();const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_this",48),void 0,void 0,r)]));rw(i,2100224),cw(i,n),Xf(e,i)}function U(e,n){if(32768&p){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(rw(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(rw(t.createThis(),8),t.createBinaryExpression(rw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(rw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return Fn.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));rw(i,2100224),Xf(e,i)}return e}function W(e){return tI(t.createEmptyStatement(),e)}function H(n,r,i){const o=fw(r),a=sw(r),s=Q(r,r,void 0,i),c=FB(r.name,k,xu);let l;if(Fn.assert(c),!WE(c)&&hk(e.getCompilerOptions())){const e=cD(c)?c.expression:qE(c)?t.createStringLiteral(Fc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=JP(t,n,c,r.name);l=t.createAssignment(e,s)}rw(s,3072),cw(s,a);const u=tI(t.createExpressionStatement(l),r);return QC(u,r),pw(u,o),rw(u,96),u}function X(e,n,r){const i=t.createExpressionStatement(Y(e,n,r,!1));return rw(i,3072),cw(i,sw(n.firstAccessor)),i}function Y(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=OT(tI(t.cloneNode(e),e),e.parent);rw(s,3136),cw(s,n.name);const c=FB(n.name,k,xu);if(Fn.assert(c),WE(c))return Fn.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=GP(t,c);rw(l,3104),cw(l,n.name);const u=[];if(r){const e=Q(r,void 0,void 0,o);cw(e,sw(r)),rw(e,1024);const n=t.createPropertyAssignment("get",e);pw(n,fw(r)),u.push(n)}if(i){const e=Q(i,void 0,void 0,o);cw(e,sw(i)),rw(e,1024);const n=t.createPropertyAssignment("set",e);pw(n,fw(i)),u.push(n)}u.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const _=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(u,!0)]);return a&&dF(_),_}function Q(n,r,i,o){const a=g;g=void 0;const s=o&&Pu(o)&&!bb(n)?v(32670,73):v(32670,65),c=RB(n.parameters,k,e),l=Z(n);return 32768&p&&!i&&(262===n.kind||218===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,98304,0),g=a,QC(tI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function Z(e){let n,r,a=!1,s=!1;const c=[],l=[],u=e.body;let _;if(i(),AN(u)&&(_=t.copyStandardPrologue(u.statements,c,0,!1),_=t.copyCustomPrologue(u.statements,l,_,k,vm),_=t.copyCustomPrologue(u.statements,l,_,k,xm)),a=j(l,e)||a,a=z(l,e,!1)||a,AN(u))_=t.copyCustomPrologue(u.statements,l,_,k),n=u.statements,we(l,IB(u.statements,k,I_,_)),!a&&u.multiLine&&(a=!0);else{Fn.assert(219===e.kind),n=vx(u,-1);const i=e.equalsGreaterThanToken;tv(i)||tv(u)||(Nx(i,u,d)?s=!0:a=!0);const o=FB(u,k,l_),c=t.createReturnStatement(o);tI(c,u),xw(c,u),rw(c,2880),l.push(c),r=u}if(t.mergeLexicalEnvironment(c,o()),U(c,e),$(c,e),le(c)&&(a=!0),l.unshift(...c),AN(u)&&be(l,u.statements))return u;const f=t.createBlock(tI(t.createNodeArray(l),n),a);return tI(f,e.body),!a&&s&&rw(f,1),r&&uw(f,20,r),QC(f,e.body),f}function ee(n,r){return Xb(n)?qJ(n,k,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,Fn.checkDefined(FB(n.left,T,l_)),n.operatorToken,Fn.checkDefined(FB(n.right,r?T:k,l_))):$B(n,k,e)}function te(n){return $u(n.name)?ne(n):!n.initializer&&function(e){const t=c.getNodeCheckFlags(e),n=16384&t,r=32768&t;return!(0!=(64&p)||n&&r&&0!=(512&p))&&0==(4096&p)&&(!c.isDeclarationWithCollidingName(e)||r&&!n&&0==(6144&p))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):$B(n,k,e)}function ne(t){const n=v(32,0);let r;return r=$u(t.name)?GJ(t,k,e,0,void 0,0!=(32&n)):$B(t,k,e),b(n,0,0),r}function re(e){g.labels.set(Ic(e.label),!0)}function ie(e){g.labels.set(Ic(e.label),!1)}function oe(n,i,a,s,c){const l=v(n,i),u=function(n,i,a,s){if(!Se(n)){let r;g&&(r=g.allowedNonLabeledJumps,g.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(RN(n)?function(e){return t.updateForStatement(e,FB(e.initializer,T,b_),FB(e.condition,k,l_),FB(e.incrementor,T,l_),Fn.checkDefined(FB(e.statement,k,I_,t.liftToBlock)))}(n):$B(n,k,e),i,g&&ie);return g&&(g.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&Tc(t)){const i=ye(e)||ve(e)||xe(e);for(const o of t.declarations)Ie(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};return g&&(g.argumentsName&&(i.argumentsName=g.argumentsName),g.thisName&&(i.thisName=g.thisName),g.hoistedLocalVariables&&(i.hoistedLocalVariables=g.hoistedLocalVariables)),i}(n),l=[],u=g;g=c;const _=ye(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=0!=(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16),i&&4&p&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ae(n.loopOutParameters,2,1,a);return{functionName:r,containsYield:i,functionDeclaration:t.createVariableStatement(void 0,rw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,rw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,Fn.checkDefined(FB(t.createBlock(a,!0),k,AN))),o))]),4194304)),part:t.createVariableDeclarationList(q(n.loopOutParameters,De))}}(n,c):void 0,d=Te(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=FB(e.statement,k,I_,t.liftToBlock),c=o(),l=[];(ve(e)||xe(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(Fn.checkDefined(FB(e.incrementor,k,l_))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),ve(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,Fn.checkDefined(FB(e.condition,k,l_))),Fn.checkDefined(FB(t.createBreakStatement(),k,I_))))),Fn.assert(s),AN(s)?we(l,s.statements):l.push(s),Ae(n.loopOutParameters,1,1,l),Wf(l,c);const u=t.createBlock(l,!0);AN(s)&&QC(u,s);const _=0!=(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16),_&&0!=(4&p)&&(d|=524288);const f=t.createVariableStatement(void 0,rw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,rw(t.createFunctionExpression(void 0,_?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,u),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,q(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),rw(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ae(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ae(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Fe(n.labeledNonLocalBreaks,!0,e,r,i),Fe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,_);return{functionName:a,containsYield:_,functionDeclaration:f,part:m}}(n,c,u):void 0;let f;if(g=u,_&&l.push(_.functionDeclaration),d&&l.push(d.functionDeclaration),function(e,n,r){let i;if(n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this")))),n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse()))),i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))}(l,c,u),_&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),rw(r,8388608)):r;return t.createExpressionStatement(i)}(_.functionName,_.containsYield)),d)if(s)f=s(n,i,d.part,a);else{const e=Ee(n,_,t.createBlock(d.part,!0));f=t.restoreEnclosingLabel(e,i,g&&ie)}else{const e=Ee(n,_,Fn.checkDefined(FB(n.statement,k,I_,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,g&&ie)}return l.push(f),l}(a,s,l,c);return b(l,0,0),u}function ae(e,t){return oe(0,1280,e,t)}function ce(e,t){return oe(5056,3328,e,t)}function ue(e,t){return oe(3008,5376,e,t)}function de(e,t){return oe(3008,5376,e,t,s.downlevelIteration?ge:me)}function fe(n,r,i){const o=[],a=n.initializer;if(XN(a)){7&n.initializer.flags&&Xe();const i=Oe(a.declarations);if(i&&$u(i.name)){const a=GJ(i,k,e,0,r),s=tI(t.createVariableDeclarationList(a),n.initializer);QC(s,n.initializer),cw(s,yx(a[0].pos,Be(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(tI(t.createVariableStatement(void 0,QC(tI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),bx(a,-1)),a)),vx(a,-1)))}else{const e=t.createAssignment(a,r);Xb(e)?o.push(t.createExpressionStatement(ee(e,!0))):(AT(e,a.end),o.push(tI(t.createExpressionStatement(Fn.checkDefined(FB(e,k,l_))),vx(a,-1))))}if(i)return pe(we(o,i));{const e=FB(n.statement,k,I_,t.liftToBlock);return Fn.assert(e),AN(e)?t.updateBlock(e,tI(t.createNodeArray(_e(o,e.statements)),e.statements)):(o.push(e),pe(o))}}function pe(e){return rw(t.createBlock(t.createNodeArray(e),!0),864)}function me(e,n,r){const i=FB(e.expression,k,l_);Fn.assert(i);const o=t.createLoopVariable(),a=qE(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);rw(i,96|cp(i));const s=tI(t.createForStatement(rw(tI(t.createVariableDeclarationList([tI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),bx(e.expression,-1)),tI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),tI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),tI(t.createPostfixIncrement(o),e.expression),fe(e,t.createElementAccessExpression(a,o),r)),e);return rw(s,512),tI(s,e),t.restoreEnclosingLabel(s,n,g&&ie)}function ge(e,r,i,o){const s=FB(e.expression,k,l_);Fn.assert(s);const c=qE(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=qE(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),u=t.createUniqueName("e"),_=t.getGeneratedNameForNode(u),d=t.createTempVariable(void 0),f=tI(n().createValuesHelper(s),e.expression),p=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(u),a(d);const m=1024&o?t.inlineExpressions([t.createAssignment(u,t.createVoidZero()),f]):f,h=rw(tI(t.createForStatement(rw(tI(t.createVariableDeclarationList([tI(t.createVariableDeclaration(c,void 0,void 0,m),e.expression),t.createVariableDeclaration(l,void 0,void 0,p)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,p),fe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,g&&ie)]),t.createCatchClause(t.createVariableDeclaration(_),rw(t.createBlock([t.createExpressionStatement(t.createAssignment(u,t.createObjectLiteralExpression([t.createPropertyAssignment("error",_)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([rw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,rw(t.createBlock([rw(t.createIfStatement(u,t.createThrowStatement(t.createPropertyAccessExpression(u,"error"))),1)]),1))]))}function he(e){return 0!=(8192&c.getNodeCheckFlags(e))}function ye(e){return RN(e)&&!!e.initializer&&he(e.initializer)}function ve(e){return RN(e)&&!!e.condition&&he(e.condition)}function xe(e){return RN(e)&&!!e.incrementor&&he(e.incrementor)}function Se(e){return Te(e)||ye(e)}function Te(e){return 0!=(4096&c.getNodeCheckFlags(e))}function Ce(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)vN(e)||t(e.name)}(t.name)}function Ee(e,n,r){switch(e.kind){case 248:return function(e,n,r){const i=e.condition&&he(e.condition),o=i||e.incrementor&&he(e.incrementor);return t.updateForStatement(e,FB(n?n.part:e.initializer,T,b_),FB(i?void 0:e.condition,k,l_),FB(o?void 0:e.incrementor,T,l_),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,Fn.checkDefined(FB(e.initializer,k,b_)),Fn.checkDefined(FB(e.expression,k,l_)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,Fn.checkDefined(FB(e.initializer,k,b_)),Fn.checkDefined(FB(e.expression,k,l_)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,Fn.checkDefined(FB(e.expression,k,l_)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,Fn.checkDefined(FB(e.expression,k,l_)),n)}(e,r);default:return Fn.failBadSyntaxKind(e,"IterationStatement expected")}}function De(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function Ne(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ae(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement(Ne(o,r)))}function Pe(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Fe(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Pe(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Ie(e,n,r,i,o){const a=n.name;if($u(a))for(const t of a.elements)vN(t)||Ie(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=c.getNodeCheckFlags(n);if(65536&s||o){const r=t.createUniqueName("out_"+Ic(a));let o=0;65536&s&&(o|=1),RN(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Me(e,n,r){const i=t.createAssignment(JP(t,n,Fn.checkDefined(FB(e.name,k,xu))),Fn.checkDefined(FB(e.initializer,k,l_)));return tI(i,e),r&&dF(i),i}function Re(e,n,r){const i=t.createAssignment(JP(t,n,Fn.checkDefined(FB(e.name,k,xu))),t.cloneNode(e.name));return tI(i,e),r&&dF(i),i}function ze(e,n,r,i){const o=t.createAssignment(JP(t,n,Fn.checkDefined(FB(e.name,k,xu))),Q(e,e,void 0,r));return tI(o,e),i&&dF(o),o}function Ve(n,r){if(32768&n.transformFlags||108===n.expression.kind||sg(lF(n.expression))){const{target:e,thisArg:i}=t.createCallBinding(n.expression,a);let o;if(108===n.expression.kind&&rw(i,8),o=32768&n.transformFlags?t.createFunctionApplyCall(Fn.checkDefined(FB(e,w,l_)),108===n.expression.kind?i:Fn.checkDefined(FB(i,k,l_)),Ke(n.arguments,!0,!1,!1)):tI(t.createFunctionCallCall(Fn.checkDefined(FB(e,w,l_)),108===n.expression.kind?i:Fn.checkDefined(FB(i,k,l_)),IB(n.arguments,k,l_)),n),108===n.expression.kind){const e=t.createLogicalOr(o,M());o=r?t.createAssignment(t.createUniqueName("_this",48),e):e}return QC(o,n)}return $B(n,k,e)}function Ke(e,r,i,o){const a=e.length,c=G(se(e,Ue,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===c.length){const e=c[0];if(r&&!s.downlevelIteration||jT(e.expression)||CE(e.expression,"___spreadArray"))return e.expression}const l=n(),u=0!==c[0].kind;let _=u?t.createArrayLiteralExpression():c[0].expression;for(let e=u?0:1;e=83&&n<=118)return tI(t.createStringLiteralFromNode(e),e)}}var s$=S({"src/compiler/transformers/es5.ts"(){gH()}});function c$(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistFunctionDeclaration:o,hoistVariableDeclaration:a}=e,s=HS(e.getCompilerOptions()),c=e.getEmitResolver(),l=e.onSubstituteNode;let u,_,d,f,p,m,g,h,y,v;e.onSubstituteNode=function(e,n){return n=l(e,n),1===e?function(e){return qE(e)?function(e){if(!_u(e)&&u&&u.has(Ic(e))){const n=Ec(e);if(qE(n)&&n.parent){const r=c.getReferencedValueDeclaration(n);if(r){const n=_[pJ(r)];if(n){const r=OT(tI(t.cloneNode(n),n),n.parent);return cw(r,e),pw(r,e),r}}}}return e}(e):e}(n):n};let b,x,S,k,T,C,E,D,N,A,P,F,I=1,O=0,M=0;return gJ(e,(function(t){if(t.isDeclarationFile||0==(2048&t.transformFlags))return t;const n=$B(t,L,e);return Cw(n,e.readEmitHelpers()),n}));function L(t){const n=t.transformFlags;return f?function(t){switch(t.kind){case 246:case 247:return function(t){return f?(oe(),t=$B(t,L,e),se(),t):$B(t,L,e)}(t);case 255:return function(t){return f&&te({kind:2,isScript:!0,breakLabel:-1}),t=$B(t,L,e),f&&ce(),t}(t);case 256:return function(t){return f&&te({kind:4,isScript:!0,labelText:Ic(t.label),breakLabel:-1}),t=$B(t,L,e),f&&le(),t}(t);default:return R(t)}}(t):d?R(t):Cu(t)&&t.asteriskToken?function(e){switch(e.kind){case 262:return j(e);case 218:return B(e);default:return Fn.failBadSyntaxKind(e)}}(t):2048&n?$B(t,L,e):t}function R(r){switch(r.kind){case 262:return j(r);case 218:return B(r);case 177:case 178:return function(t){const n=d,r=f;return d=!1,f=!1,t=$B(t,L,e),d=n,f=r,t}(r);case 243:return function(e){if(!(1048576&e.transformFlags)){if(2097152&cp(e))return e;for(const t of e.declarationList.declarations)a(t.name);const n=jx(e.declarationList);if(0===n.length)return;return cw(t.createExpressionStatement(t.inlineExpressions(q(n,H))),e)}W(e.declarationList)}(r);case 248:return function(n){f&&oe();const r=n.initializer;if(r&&XN(r)){for(const e of r.declarations)a(e.name);const i=jx(r);n=t.updateForStatement(n,i.length>0?t.inlineExpressions(q(i,H)):void 0,FB(n.condition,L,l_),FB(n.incrementor,L,l_),JB(n.statement,L,e))}else n=$B(n,L,e);return f&&se(),n}(r);case 249:return function(n){f&&oe();const r=n.initializer;if(XN(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,Fn.checkDefined(FB(n.expression,L,l_)),Fn.checkDefined(FB(n.statement,L,I_,t.liftToBlock)))}else n=$B(n,L,e);return f&&se(),n}(r);case 252:return function(t){if(f){const e=pe(t.label&&Ic(t.label));if(e>0)return ye(e,t)}return $B(t,L,e)}(r);case 251:return function(t){if(f){const e=me(t.label&&Ic(t.label));if(e>0)return ye(e,t)}return $B(t,L,e)}(r);case 253:return function(e){return function(e,n){return tI(t.createReturnStatement(t.createArrayLiteralExpression(e?[he(2),e]:[he(2)])),n)}(FB(e.expression,L,l_),e)}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 226:return function(n){const r=rv(n);switch(r){case 0:return function(n){return G(n.right)?Jb(n.operatorToken.kind)?function(e){const t=Z(),n=Q();return xe(n,Fn.checkDefined(FB(e.left,L,l_)),e.left),56===e.operatorToken.kind?Te(t,n,e.left):ke(t,n,e.left),xe(n,Fn.checkDefined(FB(e.right,L,l_)),e.right),ee(t),n}(n):28===n.operatorToken.kind?z(n):t.updateBinaryExpression(n,Y(Fn.checkDefined(FB(n.left,L,l_))),n.operatorToken,Fn.checkDefined(FB(n.right,L,l_))):$B(n,L,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(G(i)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Y(Fn.checkDefined(FB(r.expression,L,r_))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Y(Fn.checkDefined(FB(r.expression,L,r_))),Y(Fn.checkDefined(FB(r.argumentExpression,L,l_))));break;default:e=Fn.checkDefined(FB(r,L,l_))}const o=n.operatorToken.kind;return CJ(o)?tI(t.createAssignment(e,tI(t.createBinaryExpression(Y(e),wJ(o),Fn.checkDefined(FB(i,L,l_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,Fn.checkDefined(FB(i,L,l_)))}return $B(n,L,e)}(n);default:return Fn.assertNever(r)}}(r);case 361:return function(e){let n=[];for(const r of e.elements)fN(r)&&28===r.operatorToken.kind?n.push(z(r)):(G(r)&&n.length>0&&(Ce(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(Fn.checkDefined(FB(r,L,l_))));return t.inlineExpressions(n)}(r);case 227:return function(t){if(G(t.whenTrue)||G(t.whenFalse)){const e=Z(),n=Z(),r=Q();return Te(e,Fn.checkDefined(FB(t.condition,L,l_)),t.condition),xe(r,Fn.checkDefined(FB(t.whenTrue,L,l_)),t.whenTrue),Se(n),ee(e),xe(r,Fn.checkDefined(FB(t.whenFalse,L,l_)),t.whenFalse),ee(n),r}return $B(t,L,e)}(r);case 229:return function(e){const r=Z(),i=FB(e.expression,L,l_);return e.asteriskToken?function(e,t){Ce(7,[e],t)}(0==(8388608&cp(e.expression))?tI(n().createValuesHelper(i),e):i,e):function(e,t){Ce(6,[e],t)}(i,e),ee(r),function(e){return tI(t.createCallExpression(t.createPropertyAccessExpression(k,"sent"),void 0,[]),e)}(e)}(r);case 209:return function(e){return $(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,i=X(n),o=Q();xe(o,t.createObjectLiteralExpression(IB(n,L,Bu,0,i),r));const a=qe(n,(function(n,i){G(i)&&n.length>0&&(be(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=FB(XP(t,e,i,o),L,l_);return a&&(r&&dF(a),n.push(a)),n}),[],i);return a.push(r?dF(OT(tI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a)}(r);case 212:return function(n){return G(n.argumentExpression)?t.updateElementAccessExpression(n,Y(Fn.checkDefined(FB(n.expression,L,r_))),Fn.checkDefined(FB(n.argumentExpression,L,l_))):$B(n,L,e)}(r);case 213:return function(n){if(!pm(n)&&w(n.arguments,G)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,s,!0);return QC(tI(t.createFunctionApplyCall(Y(Fn.checkDefined(FB(e,L,r_))),r,$(n.arguments)),n),n)}return $B(n,L,e)}(r);case 214:return function(n){if(w(n.arguments,G)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return QC(tI(t.createNewExpression(t.createFunctionApplyCall(Y(Fn.checkDefined(FB(e,L,l_))),r,$(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return $B(n,L,e)}(r);default:return $B(r,L,e)}}(r):4196352&r.transformFlags?$B(r,L,e):r}}function j(n){if(n.asteriskToken)n=QC(tI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,RB(n.parameters,L,e),void 0,J(n.body)),n),n);else{const t=d,r=f;d=!1,f=!1,n=$B(n,L,e),d=t,f=r}return d?void o(n):n}function B(n){if(n.asteriskToken)n=QC(tI(t.createFunctionExpression(void 0,void 0,n.name,void 0,RB(n.parameters,L,e),void 0,J(n.body)),n),n);else{const t=d,r=f;d=!1,f=!1,n=$B(n,L,e),d=t,f=r}return n}function J(e){const o=[],a=d,s=f,c=p,l=m,u=g,_=h,w=y,R=v,j=I,B=b,J=x,z=S,$=k;d=!0,f=!1,p=void 0,m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,I=1,b=void 0,x=void 0,S=void 0,k=t.createTempVariable(void 0),r();const K=t.copyPrologue(e.statements,o,!1,L);V(e.statements,K);const U=function(){O=0,M=0,T=void 0,C=!1,E=!1,D=void 0,N=void 0,A=void 0,P=void 0,F=void 0;const e=function(){if(b){for(let e=0;e0)),1048576))}();return Wf(o,i()),o.push(t.createReturnStatement(U)),d=a,f=s,p=c,m=l,g=u,h=_,y=w,v=R,I=j,b=B,x=J,S=z,k=$,tI(t.createBlock(o,e.multiLine),e)}function z(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){fN(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(G(e)&&n.length>0&&(Ce(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(Fn.checkDefined(FB(e,L,l_))))}}function $(e,n,r,i){const o=X(e);let a;if(o>0){a=Q();const r=IB(e,L,l_,0,o);xe(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=qe(e,(function(e,r){if(G(r)&&e.length>0){const r=void 0!==a;a||(a=Q()),xe(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(Fn.checkDefined(FB(r,L,l_))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):tI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function V(e,t=0){const n=e.length;for(let r=t;r0?Se(t,e):be(e)}(n);case 252:return function(e){const t=pe(e.label?Ic(e.label):void 0);t>0?Se(t,e):be(e)}(n);case 253:return function(e){!function(e,t){Ce(8,[e],t)}(FB(e.expression,L,l_),e)}(n);case 254:return function(e){G(e)?(function(e){const t=Z(),n=Z();ee(t),te({kind:1,expression:e,startLabel:t,endLabel:n})}(Y(Fn.checkDefined(FB(e.expression,L,l_)))),K(e.statement),Fn.assert(1===ie()),ee(ne().endLabel)):be(FB(e,L,I_))}(n);case 255:return function(e){if(G(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=Z();return te({kind:2,isScript:!1,breakLabel:e}),e}(),o=Y(Fn.checkDefined(FB(e.expression,L,l_))),a=[];let s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(Fn.checkDefined(FB(r.expression,L,l_)),[ye(a[i],r.expression)]))}else e++}l.length&&(be(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Se(s>=0?a[s]:i);for(let e=0;e0)break;o.push(H(t))}o.length&&(be(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function H(e){return cw(t.createAssignment(cw(t.cloneNode(e.name),e.name),Fn.checkDefined(FB(e.initializer,L,l_))),e)}function G(e){return!!e&&0!=(1048576&e.transformFlags)}function X(e){const t=e.length;for(let n=0;n=0;n--){const t=h[n];if(!_e(t))break;if(t.labelText===e)return!0}return!1}function pe(e){if(h)if(e)for(let t=h.length-1;t>=0;t--){const n=h[t];if(_e(n)&&n.labelText===e)return n.breakLabel;if(ue(n)&&fe(e,t-1))return n.breakLabel}else for(let e=h.length-1;e>=0;e--){const t=h[e];if(ue(t))return t.breakLabel}return 0}function me(e){if(h)if(e)for(let t=h.length-1;t>=0;t--){const n=h[t];if(de(n)&&fe(e,t-1))return n.continueLabel}else for(let e=h.length-1;e>=0;e--){const t=h[e];if(de(t))return t.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===v&&(v=[]);const n=t.createNumericLiteral(-1);return void 0===v[e]?v[e]=[n]:v[e].push(n),n}return t.createOmittedExpression()}function he(e){const n=t.createNumericLiteral(e);return bw(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(e)),n}function ye(e,n){return Fn.assertLessThan(0,e,"Invalid label"),tI(t.createReturnStatement(t.createArrayLiteralExpression([he(3),ge(e)])),n)}function ve(){Ce(0)}function be(e){e?Ce(1,[e]):ve()}function xe(e,t,n){Ce(2,[e,t],n)}function Se(e,t){Ce(3,[e],t)}function ke(e,t,n){Ce(4,[e,t],n)}function Te(e,t,n){Ce(5,[e,t],n)}function Ce(e,t,n){void 0===b&&(b=[],x=[],S=[]),void 0===y&&ee(Z());const r=b.length;b[r]=e,x[r]=t,S[r]=n}function we(e){(function(e){if(!E)return!0;if(!y||!v)return!1;for(let t=0;t=0;e--){const n=F[e];N=[t.createWithStatement(n.expression,t.createBlock(N))]}if(P){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=P;N.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(k,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ge(e),ge(n),ge(r),ge(i)])]))),P=void 0}e&&N.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(k,"label"),t.createNumericLiteral(M+1))))}D.push(t.createCaseClause(t.createNumericLiteral(M),N||[])),N=void 0}function De(e){if(y)for(let t=0;tt.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Ic(n))),e)),t.createVoidZero())))}ke(o,FB(g.externalHelpersImportDeclaration,D,I_)),we(o,IB(n.statements,D,I_,c)),E(o,!1),Wf(o,i());const l=t.updateSourceFile(n,tI(t.createNodeArray(o),n.statements));return Cw(l,e.readEmitHelpers()),l}function x(n){const r=t.createIdentifier("define"),i=vF(t,n,l,s),o=am(n)&&n,{aliasedModuleNames:c,unaliasedModuleNames:u,importAliasNames:_}=k(n,!0),d=t.updateSourceFile(n,tI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(r,void 0,[...i?[i]:[],t.createArrayLiteralExpression(o?a:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...c,...u]),o?o.statements.length?o.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),..._],void 0,w(n))]))]),n.statements));return Cw(d,e.readEmitHelpers()),d}function S(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=k(n,!1),a=vF(t,n,l,s),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,tI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),rw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...a?[a]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),u=t.updateSourceFile(n,tI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(c,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,w(n))]))]),n.statements));return Cw(u,e.readEmitHelpers()),u}function k(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of g.externalImports){const a=yF(t,e,m,l,c,s),u=hF(t,e,m);a&&(n&&u?(rw(u,8),r.push(a),o.push(t.createParameterDeclaration(void 0,void 0,u))):i.push(a))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function T(e){if(aA(e)||hA(e)||!yF(t,e,m,l,c,s))return;const n=hF(t,e,m),r=R(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function w(e){r();const n=[],o=t.copyPrologue(e.statements,n,!s.noImplicitUseStrict,D);v()&&ke(n,q()),C(g.exportedNames)&&ke(n,t.createExpressionStatement(qe(g.exportedNames,((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Ic(n))),e)),t.createVoidZero()))),ke(n,FB(g.externalHelpersImportDeclaration,D,I_)),2===_&&we(n,te(g.externalImports,T)),we(n,IB(e.statements,D,I_,o)),E(n,!0),Wf(n,i());const a=t.createBlock(n,!0);return y&&Tw(a,l$),a}function E(e,n){if(g.exportEquals){const r=FB(g.exportEquals.expression,P,l_);if(r)if(n){const n=t.createReturnStatement(r);tI(n,g.exportEquals),rw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));tI(n,g.exportEquals),rw(n,3072),e.push(n)}}}function D(e){switch(e.kind){case 272:return function(e){let n;const r=Sh(e);if(2!==_){if(!e.importClause)return QC(tI(t.createExpressionStatement(j(e)),e),e);{const i=[];r&&!kh(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,R(e,j(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,R(e,j(e)))),r&&kh(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=ke(n,QC(tI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,u>=2?2:0)),e),e))}}else r&&kh(e)&&(n=ke(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([QC(tI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],u>=2?2:0))));return n=function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new _J;n.name&&(e=K(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 274:e=K(e,r,i);break;case 275:for(const t of i.elements)e=K(e,r,t,!0)}return e}(n,e),$e(n)}(e);case 271:return function(e){let n;return Fn.assert(Cg(e),"import= for internal module references should be handled in an earlier transformer."),2!==_?n=vb(e,1)?ke(n,QC(tI(t.createExpressionStatement(H(e.name,j(e))),e),e)):ke(n,QC(tI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,j(e))],u>=2?2:0)),e),e)):vb(e,1)&&(n=ke(n,QC(tI(t.createExpressionStatement(H(t.getExportName(e),t.getLocalName(e))),e),e))),n=function(e,t){return g.exportEquals?e:K(e,new _J,t)}(n,e),$e(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&yA(e.exportClause)){const i=[];2!==_&&i.push(QC(tI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,j(e))])),e),e));for(const o of e.exportClause.elements)if(0===u)i.push(QC(tI(t.createExpressionStatement(n().createCreateBindingHelper(r,t.createStringLiteralFromNode(o.propertyName||o.name),o.propertyName?t.createStringLiteralFromNode(o.name):void 0)),o),o));else{const a=!(!ok(s)||2&lp(e)||"default"!==Ic(o.propertyName||o.name)),c=t.createPropertyAccessExpression(a?n().createImportDefaultHelper(r):r,o.propertyName||o.name);i.push(QC(tI(t.createExpressionStatement(H(t.getExportName(o),c,void 0,!0)),o),o))}return $e(i)}if(e.exportClause){const i=[];return i.push(QC(tI(t.createExpressionStatement(H(t.cloneNode(e.exportClause.name),function(e,t){return!ok(s)||2&lp(e)?t:hJ(e)?n().createImportStarHelper(t):t}(e,2!==_?j(e):rp(e)?r:t.createIdentifier(Ic(e.exportClause.name))))),e),e)),$e(i)}return QC(tI(t.createExpressionStatement(n().createExportStarHelper(2!==_?j(e):r)),e),e)}(e);case 277:return function(e){if(!e.isExportEquals)return W(t.createIdentifier("default"),FB(e.expression,P,l_),e,!0)}(e);default:return N(e)}}function N(n){switch(n.kind){case 243:return function(n){let r,i,o;if(vb(n,1)){let e,a=!1;for(const r of n.declarationList.declarations)if(qE(r.name)&&ZP(r.name))e||(e=IB(n.modifiers,G,vu)),i=r.initializer?ke(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,H(r.name,FB(r.initializer,P,l_)))):ke(i,r);else if(r.initializer)if(!$u(r.name)&&(aN(r.initializer)||oN(r.initializer)||yN(r.initializer))){const e=t.createAssignment(tI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(Jy(r.name)));i=ke(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,FB(r.initializer,P,l_))),o=ke(o,e),a=!0}else o=ke(o,J(r));if(i&&(r=ke(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=QC(tI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&nw(e),r=ke(r,e)}}else r=ke(r,$B(n,P,e));return r=function(e,t){return z(e,t.declarationList,!1)}(r,n),$e(r)}(n);case 262:return function(n){let r;return r=vb(n,1)?ke(r,QC(tI(t.createFunctionDeclaration(IB(n.modifiers,G,vu),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,IB(n.parameters,P,uD),void 0,$B(n.body,P,e)),n),n)):ke(r,$B(n,P,e)),r=V(r,n),$e(r)}(n);case 263:return function(n){let r;return r=vb(n,1)?ke(r,QC(tI(t.createClassDeclaration(IB(n.modifiers,G,Lu),t.getDeclarationName(n,!0,!0),void 0,IB(n.heritageClauses,P,jA),IB(n.members,P,Au)),n),n)):ke(r,$B(n,P,e)),r=V(r,n),$e(r)}(n);case 248:return O(n,!0);case 249:return function(n){if(XN(n.initializer)&&!(7&n.initializer.flags)){const r=z(void 0,n.initializer,!0);if(le(r)){const i=FB(n.initializer,F,b_),o=FB(n.expression,P,l_),a=JB(n.statement,N,e),s=AN(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,FB(n.initializer,F,b_),FB(n.expression,P,l_),JB(n.statement,N,e))}(n);case 250:return function(n){if(XN(n.initializer)&&!(7&n.initializer.flags)){const r=z(void 0,n.initializer,!0),i=FB(n.initializer,F,b_),o=FB(n.expression,P,l_);let a=JB(n.statement,N,e);return le(r)&&(a=AN(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,FB(n.initializer,F,b_),FB(n.expression,P,l_),JB(n.statement,N,e))}(n);case 246:return function(n){return t.updateDoStatement(n,JB(n.statement,N,e),FB(n.expression,P,l_))}(n);case 247:return function(n){return t.updateWhileStatement(n,FB(n.expression,P,l_),JB(n.statement,N,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,Fn.checkDefined(FB(e.statement,N,I_,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,FB(e.expression,P,l_),Fn.checkDefined(FB(e.statement,N,I_,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,FB(e.expression,P,l_),Fn.checkDefined(FB(e.thenStatement,N,I_,t.liftToBlock)),FB(e.elseStatement,N,I_,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,FB(e.expression,P,l_),Fn.checkDefined(FB(e.caseBlock,N,iA)))}(n);case 269:return function(e){return t.updateCaseBlock(e,IB(e.clauses,N,z_))}(n);case 296:return function(e){return t.updateCaseClause(e,FB(e.expression,P,l_),IB(e.statements,N,I_))}(n);case 297:case 258:case 241:return function(t){return $B(t,N,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,Fn.checkDefined(FB(e.block,N,AN)))}(n);default:return P(n)}}function A(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return O(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,FB(e.expression,F,l_))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,FB(e.expression,n?F:P,l_))}(n,r);case 360:return function(e,n){return t.updatePartiallyEmittedExpression(e,FB(e.expression,n?F:P,l_))}(n,r);case 213:if(pm(n)&&void 0===m.impliedNodeFormat)return function(n){if(0===_&&u>=7)return $B(n,P,e);const r=yF(t,n,m,l,c,s),i=FB(Oe(n.arguments),P,l_),a=!r||i&&NE(i)&&i.text===r.text?i:r,d=!!(16384&n.transformFlags);switch(s.module){case 2:return M(a,d);case 3:return function(e,n){if(y=!0,kJ(e)){const r=_u(e)?e:NE(e)?t.createStringLiteralFromNode(e):rw(tI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,L(e),void 0,M(r,n))}{const r=t.createTempVariable(o);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,L(r,!0),void 0,M(r,n)))}}(a??t.createVoidZero(),d);default:return L(a)}}(n);break;case 226:if(Xb(n))return function(t,n){return I(t.left)?qJ(t,P,e,0,!n,B):$B(t,P,e)}(n,r);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&qE(n.operand)&&!_u(n.operand)&&!ZP(n.operand)&&!Rx(n.operand)){const e=Y(n.operand);if(e){let i,a=FB(n.operand,P,l_);_N(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),tI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),tI(a,n));for(const t of e)h[bB(a)]=!0,a=H(t,a),tI(a,n);return i&&(h[bB(a)]=!0,a=t.createComma(a,i),tI(a,n)),a}}return $B(n,P,e)}(n,r)}return $B(n,P,e)}function P(e){return A(e,!1)}function F(e){return A(e,!0)}function I(e){if(YD(e))for(const t of e.properties)switch(t.kind){case 303:if(I(t.initializer))return!0;break;case 304:if(I(t.name))return!0;break;case 305:if(I(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:Fn.assertNever(t,"Unhandled object member kind")}else if(XD(e)){for(const t of e.elements)if(hN(t)){if(I(t.expression))return!0}else if(I(t))return!0}else if(qE(e))return C(Y(e))>(eF(e)?1:0);return!1}function O(n,r){if(r&&n.initializer&&XN(n.initializer)&&!(7&n.initializer.flags)){const i=z(void 0,n.initializer,!1);if(i){const o=[],a=FB(n.initializer,F,XN),s=t.createVariableStatement(void 0,a);o.push(s),we(o,i);const c=FB(n.condition,P,l_),l=FB(n.incrementor,F,l_),u=JB(n.statement,r?N:P,e);return o.push(t.updateForStatement(n,void 0,c,l,u)),o}}return t.updateForStatement(n,FB(n.initializer,F,b_),FB(n.condition,P,l_),FB(n.incrementor,F,l_),JB(n.statement,r?N:P,e))}function M(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),a=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;u>=2?l=t.createArrowFunction(void 0,void 0,a,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,a,void 0,c),r&&rw(l,16));const _=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return ok(s)?t.createCallExpression(t.createPropertyAccessExpression(_,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):_}function L(e,r){const i=e&&!TJ(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?u>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let a=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);ok(s)&&(a=n().createImportStarHelper(a));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;return l=u>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,a):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(a)])),t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function R(e,t){return!ok(s)||2&lp(e)?t:yJ(e)?n().createImportStarHelper(t):vJ(e)?n().createImportDefaultHelper(t):t}function j(e){const n=yF(t,e,m,l,c,s),r=[];return n&&r.push(n),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function B(e,n,r){const i=Y(e);if(i){let o=eF(e)?n:t.createAssignment(e,n);for(const e of i)rw(o,8),o=H(e,o,r);return o}return t.createAssignment(e,n)}function J(n){return $u(n.name)?qJ(FB(n,P,Bx),P,e,0,!1,B):t.createAssignment(tI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?FB(n.initializer,P,l_):t.createVoidZero())}function z(e,t,n){if(g.exportEquals)return e;for(const r of t.declarations)e=$(e,r,n);return e}function $(e,t,n){if(g.exportEquals)return e;if($u(t.name))for(const r of t.name.elements)vN(r)||(e=$(e,r,n));else _u(t.name)||GN(t)&&!t.initializer&&!n||(e=K(e,new _J,t));return e}function V(e,n){if(g.exportEquals)return e;const r=new _J;return vb(n,1)&&(e=U(e,r,vb(n,1024)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)),n.name&&(e=K(e,r,n)),e}function K(e,n,r,i){const o=t.getDeclarationName(r),a=g.exportSpecifiers.get(o);if(a)for(const t of a)e=U(e,n,t.name,o,t.name,void 0,i);return e}function U(e,t,n,r,i,o,a){return t.has(n)||(t.set(n,!0),e=ke(e,W(n,r,i,o,a))),e}function q(){let e;return e=0===u?t.createExpressionStatement(H(t.createIdentifier("__esModule"),t.createTrue())):t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])])),rw(e,2097152),e}function W(e,n,r,i,o){const a=tI(t.createExpressionStatement(H(e,n,void 0,o)),r);return dF(a),i||rw(a,3072),a}function H(e,n,r,i){return tI(i&&0!==u?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function G(e){switch(e.kind){case 95:case 90:return}return e}function X(e){var n,r;if(8192&cp(e)){const n=fF(m);return n?t.createPropertyAccessExpression(n,e):e}if((!_u(e)||64&e.emitNode.autoGenerate.flags)&&!ZP(e)){const i=c.getReferencedExportContainer(e,eF(e));if(i&&312===i.kind)return tI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=c.getReferencedImportDeclaration(e);if(o){if(cA(o))return tI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(mA(o)){const i=o.propertyName||o.name;return tI(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(i)),e)}}}return e}function Y(e){if(_u(e)){if(fu(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=c.getReferencedImportDeclaration(e);if(t)return null==g?void 0:g.exportedBindings[pJ(t)];const n=new Set,r=c.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==g?void 0:g.exportedBindings[pJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Ze(n)}}}}var d$=S({"src/compiler/transformers/module/module.ts"(){gH(),l$={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}});function f$(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){return function(e){return b&&e.id&&b[e.id]}(n=c(e,n))?n:1===e?function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&cp(e)){const n=fF(p);return n?t.createPropertyAccessExpression(n,e):e}if(!_u(e)&&!ZP(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(cA(i))return tI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(mA(i))return tI(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i),t.cloneNode(i.propertyName||i.name)),e)}}return e}(e);case 226:return function(e){if(Ub(e.operatorToken.kind)&&qE(e.left)&&(!_u(e.left)||fu(e.left))&&!ZP(e.left)){const t=U(e.left);if(t){let n=e;for(const e of t)n=L(e,W(n));return n}}return e}(e);case 236:return function(e){return mm(e)?t.createPropertyAccessExpression(h,t.createIdentifier("meta")):e}(e)}return e}(n):4===e?function(e){return 304===e.kind?function(e){var n,r;const i=e.name;if(!_u(i)&&!ZP(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(cA(o))return tI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(mA(o))return tI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(o.propertyName||o.name))),e)}}return e}(e):e}(n):n},e.onEmitNode=function(e,t,n){if(312===t.kind){const r=pJ(t);p=t,m=u[r],g=_[r],b=d[r],h=f[r],b&&delete d[r],l(e,t,n),p=void 0,m=void 0,g=void 0,h=void 0,b=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const u=[],_=[],d=[],f=[];let p,m,g,h,y,v,b;return gJ(e,(function(i){if(i.isDeclarationFile||!(wp(i,o)||8388608&i.transformFlags))return i;const c=pJ(i);p=i,v=i,m=u[c]=bJ(e,i),g=t.createUniqueName("exports"),_[c]=g,h=f[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=yF(t,i,p,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(m.externalImports),T=function(e,i){const a=[];n();const s=mk(o,"alwaysStrict")||!o.noImplicitUseStrict&&HI(p),c=t.copyPrologue(e.statements,a,s,k);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(h,t.createPropertyAccessExpression(h,"id")))]))),FB(m.externalHelpersImportDeclaration,k,I_);const l=IB(e.statements,k,I_,c);we(a,y),Wf(a,r());const u=function(e){if(!m.hasExportStarsToExportValues)return;if(!m.exportedNames&&0===m.exportSpecifiers.size){let t=!1;for(const e of m.externalImports)if(278===e.kind&&e.exportClause){t=!0;break}if(!t){const t=x(void 0);return e.push(t),t.name}}const n=[];if(m.exportedNames)for(const e of m.exportedNames)"default"!==e.escapedText&&n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=x(r);return e.push(i),i.name}(a),_=2097152&e.transformFlags?t.createModifiersFromModifierFlags(512):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",S(u,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(_,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,g),t.createParameterDeclaration(void 0,void 0,h)],void 0,T),w=vF(t,i,s,o),E=t.createArrayLiteralExpression(q(l,(e=>e.name))),D=rw(t.updateSourceFile(i,tI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,E,C]:[E,C]))]),i.statements)),2048);return Lv(o)||Dw(D,T,(e=>!e.scoped)),b&&(d[c]=b,b=void 0),p=void 0,m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,D}));function x(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,"hasOwnProperty"),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([rw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(g,void 0,[o]))],!0))}function S(e,n){const r=[];for(const i of n){const n=w(i.externalImports,(e=>hF(t,e,p))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=hF(t,n,p);switch(n.kind){case 272:if(!n.importClause)break;case 271:Fn.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),vb(n,1)&&a.push(t.createExpressionStatement(t.createCallExpression(g,void 0,[t.createStringLiteral(Ic(r)),o])));break;case 278:if(Fn.assert(void 0!==r),n.exportClause)if(yA(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Ic(r.name)),t.createElementAccessExpression(o,t.createStringLiteral(Ic(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(g,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(g,void 0,[t.createStringLiteral(Ic(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function k(e){switch(e.kind){case 272:return function(e){return e.importClause&&i(hF(t,e,p)),$e(function(e,t){if(m.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=I(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 274:e=I(e,r);break;case 275:for(const t of r.elements)e=I(e,t)}return e}(undefined,e))}(e);case 271:return function(e){return Fn.assert(Cg(e),"import= for internal module references should be handled in an earlier transformer."),i(hF(t,e,p)),$e(function(e,t){return m.exportEquals?e:I(e,t)}(undefined,e))}(e);case 278:return function(e){Fn.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=FB(e.expression,z,l_);return M(t.createIdentifier("default"),n,!0)}(e);default:return R(e)}}function T(e){if($u(e.name))for(const t of e.name.elements)vN(t)||T(t);else i(t.cloneNode(e.name))}function C(e){return 0==(4194304&cp(e))&&(312===v.kind||0==(7&Ec(e).flags))}function E(t,n){const r=n?D:N;return $u(t.name)?qJ(t,z,e,0,!1,r):t.initializer?r(t.name,FB(t.initializer,z,l_)):t.name}function D(e,t,n){return A(e,t,n,!0)}function N(e,t,n){return A(e,t,n,!1)}function A(e,n,r,o){return i(t.cloneNode(e)),o?L(e,W(tI(t.createAssignment(e,n),r))):W(tI(t.createAssignment(e,n),r))}function P(e,n,r){if(m.exportEquals)return e;if($u(n.name))for(const t of n.name.elements)vN(t)||(e=P(e,t,r));else if(!_u(n.name)){let i;r&&(e=O(e,n.name,t.getLocalName(n)),i=Ic(n.name)),e=I(e,n,i)}return e}function F(e,n){if(m.exportEquals)return e;let r;if(vb(n,1)){const i=vb(n,1024)?t.createStringLiteral("default"):n.name;e=O(e,i,t.getLocalName(n)),r=Jy(i)}return n.name&&(e=I(e,n,r)),e}function I(e,n,r){if(m.exportEquals)return e;const i=t.getDeclarationName(n),o=m.exportSpecifiers.get(i);if(o)for(const t of o)t.name.escapedText!==r&&(e=O(e,t.name,i));return e}function O(e,t,n,r){return ke(e,M(t,n,r))}function M(e,n,r){const i=t.createExpressionStatement(L(e,n));return dF(i),r||rw(i,3072),i}function L(e,n){const r=qE(e)?t.createStringLiteralFromNode(e):e;return rw(n,3072|cp(n)),pw(t.createCallExpression(g,void 0,[r,n]),n)}function R(n){switch(n.kind){case 243:return function(e){if(!C(e.declarationList))return FB(e,z,I_);let n;if(um(e.declarationList)||lm(e.declarationList)){const r=IB(e.modifiers,K,Lu),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,E(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=ke(n,t.updateVariableStatement(e,r,o))}else{let r;const i=vb(e,1);for(const t of e.declarationList.declarations)t.initializer?r=ke(r,E(t,i)):T(t);r&&(n=ke(n,tI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(m.exportEquals)return e;for(const n of t.declarationList.declarations)n.initializer&&(e=P(e,n,!1));return e}(n,e),$e(n)}(n);case 262:return function(n){y=vb(n,1)?ke(y,t.updateFunctionDeclaration(n,IB(n.modifiers,K,Lu),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,IB(n.parameters,z,uD),void 0,FB(n.body,z,AN))):ke(y,$B(n,z,e)),y=F(y,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return i(r),n=ke(n,tI(t.createExpressionStatement(t.createAssignment(r,tI(t.createClassExpression(IB(e.modifiers,K,Lu),e.name,void 0,IB(e.heritageClauses,z,jA),IB(e.members,z,Au)),e))),e)),n=F(n,e),$e(n)}(n);case 248:return j(n,!0);case 249:return function(n){const r=v;return v=n,n=t.updateForInStatement(n,B(n.initializer),FB(n.expression,z,l_),JB(n.statement,R,e)),v=r,n}(n);case 250:return function(n){const r=v;return v=n,n=t.updateForOfStatement(n,n.awaitModifier,B(n.initializer),FB(n.expression,z,l_),JB(n.statement,R,e)),v=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,JB(n.statement,R,e),FB(n.expression,z,l_))}(n);case 247:return function(n){return t.updateWhileStatement(n,FB(n.expression,z,l_),JB(n.statement,R,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,Fn.checkDefined(FB(e.statement,R,I_,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,FB(e.expression,z,l_),Fn.checkDefined(FB(e.statement,R,I_,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,FB(e.expression,z,l_),Fn.checkDefined(FB(e.thenStatement,R,I_,t.liftToBlock)),FB(e.elseStatement,R,I_,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,FB(e.expression,z,l_),Fn.checkDefined(FB(e.caseBlock,R,iA)))}(n);case 269:return function(e){const n=v;return v=e,e=t.updateCaseBlock(e,IB(e.clauses,R,z_)),v=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,FB(e.expression,z,l_),IB(e.statements,R,I_))}(n);case 297:case 258:return function(t){return $B(t,R,e)}(n);case 299:return function(e){const n=v;return v=e,e=t.updateCatchClause(e,e.variableDeclaration,Fn.checkDefined(FB(e.block,R,AN))),v=n,e}(n);case 241:return function(t){const n=v;return v=t,t=$B(t,R,e),v=n,t}(n);default:return z(n)}}function j(n,r){const i=v;return v=n,n=t.updateForStatement(n,FB(n.initializer,r?B:$,b_),FB(n.condition,z,l_),FB(n.incrementor,$,l_),JB(n.statement,r?R:z,e)),v=i,n}function B(e){if(function(e){return XN(e)&&C(e)}(e)){let n;for(const t of e.declarations)n=ke(n,E(t,!1)),t.initializer||T(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return FB(e,$,b_)}function J(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return j(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,FB(e.expression,$,l_))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,FB(e.expression,n?$:z,l_))}(n,r);case 360:return function(e,n){return t.updatePartiallyEmittedExpression(e,FB(e.expression,n?$:z,l_))}(n,r);case 226:if(Xb(n))return function(t,n){return V(t.left)?qJ(t,z,e,0,!n):$B(t,z,e)}(n,r);break;case 213:if(pm(n))return function(e){const n=yF(t,e,p,s,a,o),r=FB(Oe(e.arguments),z,l_),i=!n||r&&NE(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(h,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&qE(n.operand)&&!_u(n.operand)&&!ZP(n.operand)&&!Rx(n.operand)){const e=U(n.operand);if(e){let o,a=FB(n.operand,z,l_);_N(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),tI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),tI(a,n));for(const t of e)a=L(t,W(a));return o&&(a=t.createComma(a,o),tI(a,n)),a}}return $B(n,z,e)}(n,r)}return $B(n,z,e)}function z(e){return J(e,!1)}function $(e){return J(e,!0)}function V(e){if(Hb(e,!0))return V(e.left);if(hN(e))return V(e.expression);if(YD(e))return le(e.properties,V);if(XD(e))return le(e.elements,V);if(zA(e))return V(e.name);if(JA(e))return V(e.initializer);if(qE(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&312===t.kind}return!1}function K(e){switch(e.kind){case 95:case 90:return}return e}function U(e){let n;const r=function(e){if(!_u(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==m?void 0:m.exportedBindings[pJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==m?void 0:m.exportedBindings[pJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&312===i.kind&&(n=ke(n,t.getDeclarationName(r))),n=we(n,null==m?void 0:m.exportedBindings[pJ(r)])}else if(_u(e)&&fu(e)){const t=null==m?void 0:m.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function W(e){return void 0===b&&(b=[]),b[bB(e)]=!0,e}}var p$=S({"src/compiler/transformers/module/system.ts"(){gH()}});function m$(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=HS(o),s=e.onEmitNode,c=e.onSubstituteNode;let l,u,_;return e.onEmitNode=function(e,t,n){UA(t)?((HI(t)||ek(o))&&o.importHelpers&&(l=new Map),s(e,t,n),l=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){return n=c(e,n),l&&qE(n)&&8192&cp(n)?function(e){const n=Ic(e);let r=l.get(n);return r||l.set(n,r=t.createUniqueName(n,48)),r}(n):n},e.enableEmitNotification(312),e.enableSubstitution(80),gJ(e,(function(r){if(r.isDeclarationFile)return r;if(HI(r)||ek(o)){u=r,_=void 0;let i=function(r){const i=mF(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return ke(e,i),we(e,IB(r.statements,d,I_,n)),t.updateSourceFile(r,tI(t.createNodeArray(e),r.statements))}return $B(r,d,e)}(r);return u=void 0,_&&(i=t.updateSourceFile(i,tI(t.createNodeArray(Hf(i.statements.slice(),_)),i.statements))),!HI(r)||le(i.statements,g_)?i:t.updateSourceFile(i,tI(t.createNodeArray([...i.statements,BP(t)]),i.statements))}return r}));function d(e){switch(e.kind){case 271:return GS(o)>=100?function(e){let n;return Fn.assert(Cg(e),"import= for internal module references should be handled in an earlier transformer."),n=ke(n,QC(tI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,f(e))],a>=2?2:0)),e),e)),n=function(e,n){return vb(n,1)&&(e=ke(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Ic(n.name))])))),e}(n,e),$e(n)}(e):void 0;case 277:return function(e){return e.isExportEquals?void 0:e}(e);case 278:return function(e){if(void 0!==o.module&&o.module>5)return e;if(!e.exportClause||!fA(e.exportClause)||!e.moduleSpecifier)return e;const n=e.exportClause.name,r=t.getGeneratedNameForNode(n),i=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(r)),e.moduleSpecifier,e.assertClause);QC(i,e.exportClause);const a=rp(e)?t.createExportDefault(r):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,r,n)]));return QC(a,e),[i,a]}(e)}return e}function f(e){const n=yF(t,e,Fn.checkDefined(u),r,i,o),s=[];if(n&&s.push(n),!_){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module")),r=t.createUniqueName("__require",48),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],a>=2?2:0));_=[n,i]}const c=_[1].declarationList.declarations[0].name;return Fn.assertNode(c,qE),t.createCallExpression(t.cloneNode(c),void 0,s)}}var g$=S({"src/compiler/transformers/module/esnextAnd2015.ts"(){gH()}});function h$(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=m$(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=_$(e),s=e.onSubstituteNode,c=e.onEmitNode;let l;return e.onSubstituteNode=function(e,n){return UA(n)?(l=n,t(e,n)):l?99===l.impliedNodeFormat?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){return UA(t)&&(l=t),l?99===l.impliedNodeFormat?o(e,t,r):c(e,t,r):n(e,t,r)},e.enableSubstitution(312),e.enableEmitNotification(312),function(t){return 312===t.kind?u(t):function(t){return e.factory.createBundle(q(t.sourceFiles,u),t.prepends)}(t)};function u(e){if(e.isDeclarationFile)return e;l=e;const t=(99===e.impliedNodeFormat?r:a)(e);return l=void 0,Fn.assert(UA(t)),t}}var y$=S({"src/compiler/transformers/module/node.ts"(){gH()}});function v$(e){return GN(e)||fD(e)||dD(e)||GD(e)||U_(e)||q_(e)||xD(e)||bD(e)||mD(e)||pD(e)||YN(e)||uD(e)||lD(e)||bN(e)||aA(e)||eA(e)||hD(e)||SD(e)||QD(e)||ZD(e)||fN(e)||Eh(e)}function b$(e){return U_(e)||q_(e)?function(t){const n=function(t){return bb(e)?t.errorModuleName?2===t.accessibility?Ra.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Ra.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ra.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ra.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:pD(e)||mD(e)?function(t){const n=function(t){return bb(e)?t.errorModuleName?2===t.accessibility?Ra.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Ra.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ra.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ra.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:x$(e)}function x$(e){return GN(e)||fD(e)||dD(e)||QD(e)||ZD(e)||fN(e)||GD(e)||hD(e)?t:U_(e)||q_(e)?function(t){let n;return n=178===e.kind?bb(e)?t.errorModuleName?Ra.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ra.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:bb(e)?t.errorModuleName?2===t.accessibility?Ra.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?Ra.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:xD(e)||bD(e)||mD(e)||pD(e)||YN(e)||SD(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?Ra.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ra.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?Ra.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ra.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?Ra.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ra.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=bb(e)?t.errorModuleName?2===t.accessibility?Ra.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ra.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Ra.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Ra.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ra.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Ra.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?Ra.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ra.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?Ra.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ra.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Ra.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return Fn.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:uD(e)?hc(e,e.parent)&&vb(e.parent,8)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?Ra.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?Ra.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?Ra.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?Ra.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return bb(e.parent)?t.errorModuleName?2===t.accessibility?Ra.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?Ra.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ra.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?Ra.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?Ra.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Ra.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return Fn.fail(`Unknown parent for parameter: ${Fn.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:lD(e)?function(){let t;switch(e.parent.kind){case 263:t=Ra.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=Ra.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=Ra.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=Ra.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=Ra.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=bb(e.parent)?Ra.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?Ra.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Ra.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=Ra.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=Ra.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=Ra.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return Fn.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:bN(e)?function(){let t;return t=QN(e.parent.parent)?jA(e.parent)&&119===e.parent.token?Ra.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?Ra.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Ra.extends_clause_of_exported_class_has_or_is_using_private_name_0:Ra.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:$c(e.parent.parent)}}:aA(e)?function(){return{diagnosticMessage:Ra.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:eA(e)||Eh(e)?function(t){return{diagnosticMessage:t.errorModuleName?Ra.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Ra.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Eh(e)?Fn.checkDefined(e.typeExpression):e.type,typeName:Eh(e)?$c(e):e.name}}:Fn.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${Fn.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?Ra.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Ra.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&vb(e.parent,8)?bb(e)?t.errorModuleName?2===t.accessibility?Ra.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?Ra.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ra.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ra.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ra.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ra.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}var S$,k$=S({"src/compiler/transformers/declarations/diagnostics.ts"(){gH()}});function T$(e,t,n){const r=e.getCompilerOptions();return z$(t,e,FC,r,n?[n]:V(e.getSourceFiles(),Ig),[E$],!1).diagnostics}function C$(e,t){return nn(t.text.substring(e.pos,e.end),"@internal")}function w$(e,t){const n=Ac(e);if(n&&169===n.kind){const r=n.parent.parameters.indexOf(n),i=r>0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?_e(Ls(o,Ts(o,i.end+1,!1,!0)),Ms(o,e.pos)):Ls(o,Ts(o,e.pos,!1,!0));return a&&a.length&&C$(Be(a),t)}return!!w(n&&Sm(n,t),(e=>C$(e,t)))}function E$(e){const t=()=>Fn.fail("Diagnostic emitted without context");let n,r,i,o,s,c,l=t,u=!0,_=!1,d=!1,f=!1,p=!1;const{factory:m}=e,g=e.getEmitHost(),h={trackSymbol:function(e,t,n){if(262144&e.flags)return!1;const r=P(T.isSymbolAccessible(e,t,n,!0));return A(T.getTypeReferenceDirectivesForSymbol(e,n)),r},reportInaccessibleThisError:function(){(y||v)&&e.addDiagnostic(qp(y||v,Ra.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,F(),"this"))},reportInaccessibleUniqueSymbolError:function(){(y||v)&&e.addDiagnostic(qp(y||v,Ra.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,F(),"unique symbol"))},reportCyclicStructureError:function(){(y||v)&&e.addDiagnostic(qp(y||v,Ra.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,F()))},reportPrivateInBaseOfClassExpression:function(t){(y||v)&&e.addDiagnostic(qp(y||v,Ra.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(y||v)&&e.addDiagnostic(qp(y||v,Ra.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,F(),t))},reportTruncationError:function(){(y||v)&&e.addDiagnostic(qp(y||v,Ra.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,trackReferencedAmbientModule:function(e,t){const n=T.getTypeReferenceDirectivesForSymbol(t,67108863);if(C(n))return A(n);const r=Ff(e);x.set(pJ(r),r)},trackExternalModuleSymbolOfImportTypeNode:function(e){_||(c||(c=[])).push(e)},reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>Ff(e)===t)),a=V(r.declarations,(e=>Ff(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(mT(qp(t,Ra.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),qp(o,Ra.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(y||v)&&e.addDiagnostic(qp(y||v,Ra.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))},reportImportTypeNodeResolutionModeOverride:function(){Sv()||!y&&!v||e.addDiagnostic(qp(y||v,Ra.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}};let y,v,b,x,S,k;const T=e.getEmitResolver(),E=e.getCompilerOptions(),{noResolve:D,stripInternal:N}=E;return function(a){if(312===a.kind&&a.isDeclarationFile)return a;if(313===a.kind){_=!0,x=new Map,S=new Map;let r=!1;const c=m.createBundle(q(a.sourceFiles,(a=>{if(a.isDeclarationFile)return;if(r=r||a.hasNoDefaultLib,b=a,n=a,i=void 0,s=!1,o=new Map,l=t,f=!1,p=!1,O(a,x),M(a,S),om(a)||am(a)){d=!1,u=!1;const t=Ng(a)?m.createNodeArray(I(a,!0)):IB(a.statements,oe,I_);return m.updateSourceFile(a,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(Ev(e.getEmitHost(),a)),m.createModuleBlock(tI(m.createNodeArray(re(t)),a.statements)))],!0,[],[],!1,[])}u=!0;const c=Ng(a)?m.createNodeArray(I(a)):IB(a.statements,oe,I_);return m.updateSourceFile(a,re(c),!0,[],[],!1,[])})),te(a.prepends,(e=>{if(315===e.kind){const t=WC(e,"dts",N);return r=r||!!t.hasNoDefaultLib,O(t,x),A(q(t.typeReferenceDirectives,(e=>[e.fileName,e.resolutionMode]))),M(t,S),t}return e})));c.syntheticFileReferences=[],c.syntheticTypeReferences=w(),c.syntheticLibReferences=C(),c.hasNoDefaultLib=r;const h=oa(_a(Z$(a,g,!0).declarationFilePath)),y=P(c.syntheticFileReferences,h);return x.forEach(y),c}u=!0,f=!1,p=!1,n=a,b=a,l=t,_=!1,d=!1,s=!1,i=void 0,o=new Map,r=void 0,x=O(b,new Map),S=M(b,new Map);const h=[],y=P(h,oa(_a(Z$(a,g,!0).declarationFilePath)));let v;if(Ng(b))v=m.createNodeArray(I(a)),x.forEach(y),k=V(v,Fp);else{const e=IB(a.statements,oe,I_);v=tI(m.createNodeArray(re(e)),a.statements),x.forEach(y),k=V(v,Fp),HI(a)&&(!d||f&&!p)&&(v=tI(m.createNodeArray([...v,BP(m)]),v))}const T=m.updateSourceFile(a,v,!0,h,w(),a.hasNoDefaultLib,C());return T.exportedModulesFromDeclarationEmit=c,T;function C(){return Ze(S.keys(),(e=>({fileName:e,pos:-1,end:-1})))}function w(){return r?te(Ze(r.keys()),D):[]}function D([e,t]){if(k)for(const t of k)if(aA(t)&&kA(t.moduleReference)){const n=t.moduleReference.expression;if(ed(n)&&n.text===e)return}else if(sA(t)&&NE(t.moduleSpecifier)&&t.moduleSpecifier.text===e)return;return{fileName:e,pos:-1,end:-1,...t?{resolutionMode:t}:void 0}}function P(e,t){return n=>{let r;if(n.isDeclarationFile)r=n.fileName;else{if(_&&B(a.sourceFiles,n))return;const e=Z$(n,g,!0);r=e.declarationFilePath||e.jsFilePath||n.fileName}if(r){const n=Aj(E,b,va(t,g.getCurrentDirectory(),g.getCanonicalFileName),va(r,g.getCurrentDirectory(),g.getCanonicalFileName),g);if(!Xo(n))return void A([[n,void 0]]);let i=Oa(t,r,g.getCurrentDirectory(),g.getCanonicalFileName,!1);if(fn(i,"./")&&Qo(i)&&(i=i.substring(2)),fn(i,"node_modules/")||xR(i))return;e.push({pos:-1,end:-1,fileName:i})}}}};function A(e){if(e){r=r||new Set;for(const t of e)r.add(t)}}function P(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(i)for(const e of t.aliasesToMakeVisible)Ee(i,e);else i=t.aliasesToMakeVisible}else{const n=l(t);if(n)return n.typeName?e.addDiagnostic(qp(t.errorNode||n.errorNode,n.diagnosticMessage,op(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(qp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function F(){return y?Jp(y):v&&$c(v)?Jp($c(v)):v&&gA(v)?v.isExportEquals?"export=":"default":"(Missing)"}function I(e,t){const n=l;l=t=>t.errorNode&&v$(t.errorNode)?x$(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?Ra.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Ra.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const r=T.getDeclarationStatementsForSourceFile(e,S$,h,t);return l=n,r}function O(e,t){return D||!WA(e)&&Ng(e)||w(e.referencedFiles,(n=>{const r=g.getSourceFileFromReference(e,n);r&&t.set(pJ(r),r)})),t}function M(e,t){return w(e.libReferenceDirectives,(e=>{g.getLibFileFromReference(e)&&t.set(Dt(e.fileName),!0)})),t}function L(e){return 80===e.kind?e:207===e.kind?m.updateArrayBindingPattern(e,IB(e.elements,t,Ku)):m.updateObjectBindingPattern(e,IB(e.elements,t,GD));function t(e){return 232===e.kind?e:e.propertyName&&qE(e.propertyName)&&qE(e.name)&&!e.symbol.isReferenced&&!Ay(e.propertyName)?m.updateBindingElement(e,e.dotDotDotToken,void 0,e.propertyName,j(e)?e.initializer:void 0):m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,L(e.name),j(e)?e.initializer:void 0)}}function R(e,t,n){let r;s||(r=l,l=x$(e));const i=m.updateParameterDeclaration(e,function(e,t,n,r){return e.createModifiersFromModifierFlags(D$(t,n,void 0))}(m,e,t),e.dotDotDotToken,L(e.name),T.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,z(e,n||e.type,!0),J(e));return s||(l=r),i}function j(e){return function(e){switch(e.kind){case 172:case 171:return!yb(e,8);case 169:case 260:return!0}return!1}(e)&&T.isLiteralConstDeclaration(Ac(e))}function J(e){if(j(e))return T.createLiteralConstValue(Ac(e),h)}function z(e,t,r){if(!r&&yb(e,8))return;if(j(e))return;const i=169===e.kind&&(T.isRequiredInitializedParameter(e)||T.isOptionalUninitializedParameterProperty(e));if(t&&!i)return FB(t,ie,Ju);if(!Ac(e))return t?FB(t,ie,Ju):m.createKeywordTypeNode(133);if(178===e.kind)return m.createKeywordTypeNode(133);let o;return y=e.name,s||(o=l,l=x$(e)),260===e.kind||208===e.kind?a(T.createTypeOfDeclaration(e,n,S$,h)):169===e.kind||172===e.kind||171===e.kind?dD(e)||!e.initializer?a(T.createTypeOfDeclaration(e,n,S$,h,i)):a(T.createTypeOfDeclaration(e,n,S$,h,i)||T.createTypeOfExpression(e.initializer,n,S$,h)):a(T.createReturnTypeOfSignatureDeclaration(e,n,S$,h));function a(e){return y=void 0,s||(l=o),e||m.createKeywordTypeNode(133)}}function $(e){switch((e=Ac(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!T.isDeclarationVisible(e);case 260:return!K(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function K(e){return!vN(e)&&($u(e.name)?le(e.name.elements,K):T.isDeclarationVisible(e))}function U(e,t,n){if(yb(e,8))return m.createNodeArray();const r=q(t,(e=>R(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function W(e,t){let n;if(!t){const t=Xv(e);t&&(n=[R(t)])}if(vD(e)){let r;if(!t){const t=Hv(e);t&&(r=R(t,void 0,me(e,T.getAllAccessorDeclarations(e))))}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=ke(n,r)}return m.createNodeArray(n||a)}function H(e,t){return yb(e,8)?void 0:IB(t,ie,lD)}function Y(e){return UA(e)||eA(e)||nA(e)||QN(e)||ZN(e)||ku(e)||SD(e)||$D(e)}function Q(e,t){P(T.isEntityNameVisible(e,t)),A(T.getTypeReferenceDirectivesForEntityName(e))}function Z(e,t){return W_(e)&&W_(t)&&(e.jsDoc=t.jsDoc),pw(e,fw(t))}function ee(t,n){if(n){if(d=d||267!==t.kind&&205!==t.kind,ed(n))if(_){const n=Nv(e.getEmitHost(),T,t);if(n)return m.createStringLiteral(n)}else{const e=T.getSymbolOfExternalModuleSpecifier(n);e&&(c||(c=[])).push(e)}return n}}function ne(t){if(void 0!==yK(t))return Sv()||e.addDiagnostic(qp(t,Ra.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),t}function re(e){for(;C(i);){const e=i.shift();if(!Op(e))return Fn.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Fn.formatSyntaxKind(e.kind)}`);const t=u;u=e.parent&&UA(e.parent)&&!(HI(e.parent)&&_);const n=ce(e);u=t,o.set(pJ(e),n)}return IB(e,(function(e){if(Op(e)){const t=pJ(e);if(o.has(t)){const n=o.get(t);return o.delete(t),n&&((gt(n)?le(n,m_):m_(n))&&(f=!0),UA(e.parent)&&(gt(n)?le(n,g_):g_(n))&&(d=!0)),n}}return e}),I_)}function ie(t){if(de(t))return;if(A_(t)){if($(t))return;if(Ly(t)&&!T.isLateBound(Ac(t)))return}if(ku(t)&&T.isImplementationOfOverload(t))return;if(NN(t))return;let r;Y(t)&&(r=n,n=t);const i=l,o=v$(t),a=s;let c=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((mD(t)||pD(t))&&yb(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return _(m.createPropertyDeclaration(pe(t),t.name,void 0,void 0,void 0))}if(o&&!s&&(l=x$(t)),ED(t)&&Q(t.exprName,n),c&&(s=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(bu(t.expression)||Qb(t.expression))&&Q(t.expression,n);const r=$B(t,ie,e);return _(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{Q(t.typeName,n);const r=$B(t,ie,e);return _(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return _(m.updateConstructSignature(t,H(t,t.typeParameters),U(t,t.parameters),z(t,t.type)));case 176:return _(m.createConstructorDeclaration(pe(t),U(t,t.parameters,0),void 0));case 174:return WE(t.name)?_(void 0):_(m.createMethodDeclaration(pe(t),void 0,t.name,t.questionToken,H(t,t.typeParameters),U(t,t.parameters),z(t,t.type),void 0));case 177:{if(WE(t.name))return _(void 0);const e=me(t,T.getAllAccessorDeclarations(t));return _(m.updateGetAccessorDeclaration(t,pe(t),t.name,W(t,yb(t,8)),z(t,e),void 0))}case 178:return WE(t.name)?_(void 0):_(m.updateSetAccessorDeclaration(t,pe(t),t.name,W(t,yb(t,8)),void 0));case 172:return WE(t.name)?_(void 0):_(m.updatePropertyDeclaration(t,pe(t),t.name,t.questionToken,z(t,t.type),J(t)));case 171:return WE(t.name)?_(void 0):_(m.updatePropertySignature(t,pe(t),t.name,t.questionToken,z(t,t.type)));case 173:return WE(t.name)?_(void 0):_(m.updateMethodSignature(t,pe(t),t.name,t.questionToken,H(t,t.typeParameters),U(t,t.parameters),z(t,t.type)));case 179:return _(m.updateCallSignature(t,H(t,t.typeParameters),U(t,t.parameters),z(t,t.type)));case 181:return _(m.updateIndexSignature(t,pe(t),U(t,t.parameters),FB(t.type,ie,Ju)||m.createKeywordTypeNode(133)));case 260:return $u(t.name)?ue(t.name):(c=!0,s=!0,_(m.updateVariableDeclaration(t,t.name,void 0,z(t,t.type),J(t))));case 168:return 174===(u=t).parent.kind&&yb(u.parent,8)&&(t.default||t.constraint)?_(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):_($B(t,ie,e));case 194:{const e=FB(t.checkType,ie,Ju),r=FB(t.extendsType,ie,Ju),i=n;n=t.trueType;const o=FB(t.trueType,ie,Ju);n=i;const a=FB(t.falseType,ie,Ju);return Fn.assert(e),Fn.assert(r),Fn.assert(o),Fn.assert(a),_(m.updateConditionalTypeNode(t,e,r,o,a))}case 184:return _(m.updateFunctionTypeNode(t,IB(t.typeParameters,ie,lD),U(t,t.parameters),Fn.checkDefined(FB(t.type,ie,Ju))));case 185:return _(m.updateConstructorTypeNode(t,pe(t),IB(t.typeParameters,ie,lD),U(t,t.parameters),Fn.checkDefined(FB(t.type,ie,Ju))));case 205:return gm(t)?_(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,ee(t,t.argument.literal)),t.assertions,t.qualifier,IB(t.typeArguments,ie,Ju),t.isTypeOf)):_(t);default:Fn.assertNever(t,`Attempted to process unhandled node kind: ${Fn.formatSyntaxKind(t.kind)}`)}var u;return AD(t)&&gs(b,t.pos).line===gs(b,t.end).line&&rw(t,1),_($B(t,ie,e));function _(e){return e&&o&&Ly(t)&&function(e){let t;s||(t=l,l=b$(e)),y=e.name,Fn.assert(T.isLateBound(Ac(e))),Q(e.name.expression,n),s||(l=t),y=void 0}(t),Y(t)&&(n=r),o&&!s&&(l=i),c&&(s=a),e===t?e:e&&QC(Z(e,t),t)}}function oe(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(de(e))return;switch(e.kind){case 278:return UA(e.parent)&&(d=!0),p=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,ee(e,e.moduleSpecifier),yK(e.assertClause)?e.assertClause:void 0);case 277:if(UA(e.parent)&&(d=!0),p=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);l=()=>({diagnosticMessage:Ra.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),v=e;const n=m.createVariableDeclaration(t,void 0,T.createTypeOfExpression(e.expression,e,S$,h),void 0);v=void 0;const r=m.createVariableStatement(u?[m.createModifier(138)]:[],m.createVariableDeclarationList([n],2));return Z(r,e),nw(e),[r,m.updateExportAssignment(e,e.modifiers,t)]}}const t=ce(e);return o.set(pJ(e),t),e}function ae(e){if(aA(e)||yb(e,1024)||!nI(e))return e;const t=m.createModifiersFromModifierFlags(258046&Pb(e));return m.updateModifiers(e,t)}function se(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(gp(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return QC(o,i),tI(o,i),o}function ce(e){if(i)for(;on(i,e););if(de(e))return;switch(e.kind){case 271:return function(e){if(T.isDeclarationVisible(e)){if(283===e.moduleReference.kind){const t=wg(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,ee(e,t)))}{const t=l;return l=x$(e),Q(e.moduleReference,n),l=t,e}}}(e);case 272:return function(e){if(!e.importClause)return m.updateImportDeclaration(e,e.modifiers,e.importClause,ee(e,e.moduleSpecifier),ne(e.assertClause));const t=e.importClause&&e.importClause.name&&T.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return t&&m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,void 0),ee(e,e.moduleSpecifier),ne(e.assertClause));if(274===e.importClause.namedBindings.kind){const n=T.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return t||n?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),ee(e,e.moduleSpecifier),ne(e.assertClause)):void 0}const n=te(e.importClause.namedBindings.elements,(e=>T.isDeclarationVisible(e)?e:void 0));return n&&n.length||t?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n&&n.length?m.updateNamedImports(e.importClause.namedBindings,n):void 0),ee(e,e.moduleSpecifier),ne(e.assertClause)):T.isImportRequiredByAugmentation(e)?m.updateImportDeclaration(e,e.modifiers,void 0,ee(e,e.moduleSpecifier),ne(e.assertClause)):void 0}(e)}if(A_(e)&&$(e))return;if(ku(e)&&T.isImplementationOfOverload(e))return;let t;Y(e)&&(t=n,n=e);const r=v$(e),a=l;r&&(l=x$(e));const s=u;switch(e.kind){case 265:{u=!1;const t=c(m.updateTypeAliasDeclaration(e,pe(e),e.name,IB(e.typeParameters,ie,lD),Fn.checkDefined(FB(e.type,ie,Ju))));return u=s,t}case 264:return c(m.updateInterfaceDeclaration(e,pe(e),e.name,H(e,e.typeParameters),ge(e.heritageClauses),IB(e.members,ie,Ru)));case 262:{const t=c(m.updateFunctionDeclaration(e,pe(e),void 0,e.name,H(e,e.typeParameters),U(e,e.parameters),z(e,e.type),void 0));if(t&&T.isExpandoFunctionDeclaration(e)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>YN(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(e)){const r=T.getPropertiesOfContainerFunction(e),i=uI.createModuleDeclaration(void 0,t.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);OT(i,n),i.locals=cf(r),i.symbol=r[0].parent;const o=[];let s=te(r,(e=>{if(!e.valueDeclaration||!(QD(e.valueDeclaration)||ZD(e.valueDeclaration)||fN(e.valueDeclaration)))return;const t=Fc(e.escapedName);if(!Js(t,99))return;l=x$(e.valueDeclaration);const n=T.createTypeOfDeclaration(e.valueDeclaration,i,S$,h);l=a;const r=Dy(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&o.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))}));o.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(q(o,(([e,t])=>m.createExportSpecifier(!1,e,t)))))):s=te(s,(e=>m.updateModifiers(e,0)));const c=m.createModuleDeclaration(pe(e),e.name,m.createModuleBlock(s),32);if(!yb(t,1024))return[t,c];const u=m.createModifiersFromModifierFlags(-1026&Pb(t)|2),_=m.updateFunctionDeclaration(t,u,void 0,t.name,t.typeParameters,t.parameters,t.type,void 0),f=m.updateModuleDeclaration(c,u,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return UA(e.parent)&&(d=!0),p=!0,[_,f,g]}return t}case 267:{u=!1;const t=e.body;if(t&&268===t.kind){const n=f,r=p;p=!1,f=!1;let i=re(IB(t.statements,oe,I_));33554432&e.flags&&(f=!1),Sp(e)||le(i,fe)||p||(i=f?m.createNodeArray([...i,BP(m)]):IB(i,ae,I_));const o=m.updateModuleBlock(t,i);u=s,f=n,p=r;const a=pe(e);return c(se(e,a,kp(e)?ee(e,e.name):e.name,o))}{u=s;const n=pe(e);u=!1,FB(t,oe);const r=pJ(t),i=o.get(r);return o.delete(r),c(se(e,n,e.name,i))}}case 263:{y=e.name,v=e;const t=m.createNodeArray(pe(e)),n=H(e,e.typeParameters),r=Wv(e);let i;if(r){const e=l;i=xe(X(r.parameters,(e=>{if(vb(e,16476)&&!de(e))return l=x$(e),80===e.name.kind?Z(m.createPropertyDeclaration(pe(e),e.name,e.questionToken,z(e,e.type),J(e)),e):function t(n){let r;for(const i of n.elements)vN(i)||($u(i.name)&&(r=_e(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(pe(e),i.name,void 0,z(i,void 0),void 0)));return r}(e.name)}))),l=e}const o=_e(_e(le(e.members,(e=>!!e.name&&WE(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,i),IB(e.members,ie,Au)),a=m.createNodeArray(o),s=my(e);if(s&&!Qb(s.expression)&&106!==s.expression.kind){const r=e.name?Fc(e.name.escapedText):"default",i=m.createUniqueName(`${r}_base`,16);l=()=>({diagnosticMessage:Ra.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:s,typeName:e.name});const o=m.createVariableDeclaration(i,void 0,T.createTypeOfExpression(s.expression,e,S$,h),void 0),_=m.createVariableStatement(u?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),d=m.createNodeArray(q(e.heritageClauses,(e=>{if(96===e.token){const t=l;l=x$(e.types[0]);const n=m.updateHeritageClause(e,q(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,IB(e.typeArguments,ie,Ju)))));return l=t,n}return m.updateHeritageClause(e,IB(m.createNodeArray(V(e.types,(e=>Qb(e.expression)||106===e.expression.kind))),ie,bN))})));return[_,c(m.updateClassDeclaration(e,t,e.name,n,d,a))]}{const r=ge(e.heritageClauses);return c(m.updateClassDeclaration(e,t,e.name,n,r,a))}}case 243:return c(function(e){if(!w(e.declarationList.declarations,K))return;const t=IB(e.declarationList.declarations,ie,GN);if(!C(t))return;const n=m.createNodeArray(pe(e));let r;return um(e.declarationList)||lm(e.declarationList)?(r=m.createVariableDeclarationList(t,2),QC(r,e.declarationList),tI(r,e.declarationList),pw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t),m.updateVariableStatement(e,n,r)}(e));case 266:return c(m.updateEnumDeclaration(e,m.createNodeArray(pe(e)),e.name,m.createNodeArray(te(e.members,(e=>{if(de(e))return;const t=T.getConstantValue(e);return Z(m.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?m.createStringLiteral(t):m.createNumericLiteral(t):void 0),e)})))))}return Fn.assertNever(e,`Unhandled top-level node in declaration emit: ${Fn.formatSyntaxKind(e.kind)}`);function c(i){return Y(e)&&(n=t),r&&(l=a),267===e.kind&&(u=s),i===e?i:(v=void 0,y=void 0,i&&QC(Z(i,e),e))}}function ue(e){return G(te(e.elements,(e=>function(e){if(232!==e.kind&&e.name){if(!K(e))return;return $u(e.name)?ue(e.name):m.createVariableDeclaration(e.name,void 0,z(e,void 0),void 0)}}(e))))}function de(e){return!!N&&!!e&&w$(e,b)}function fe(e){return gA(e)||hA(e)}function pe(e){const t=Pb(e),n=function(e){let t=241147,n=u&&!function(e){return 264===e.kind}(e)?2:0;const r=312===e.parent.kind;return(!r||_&&r&&HI(e.parent))&&(t^=2,n=0),D$(e,t,n)}(e);return t===n?OB(e.modifiers,(e=>bt(e,vu)),vu):m.createModifiersFromModifierFlags(n)}function me(e,t){let n=N$(e);return n||e===t.firstAccessor||(n=N$(t.firstAccessor),l=x$(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=N$(t.secondAccessor),l=x$(t.secondAccessor)),n}function ge(e){return m.createNodeArray(V(q(e,(e=>m.updateHeritageClause(e,IB(m.createNodeArray(V(e.types,(t=>Qb(t.expression)||96===e.token&&106===t.expression.kind))),ie,bN)))),(e=>e.types&&!!e.types.length)))}}function D$(e,t=258043,n=0){let r=Pb(e)&t|n;return 1024&r&&!(1&r)&&(r^=1),1024&r&&2&r&&(r^=2),r}function N$(e){if(e)return 177===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}var A$,P$,F$=S({"src/compiler/transformers/declarations.ts"(){gH(),yB(),S$=531469}});function I$(e,t,n){return{scriptTransformers:O$(e,t,n),declarationTransformers:M$(t)}}function O$(e,t,n){if(n)return a;const r=HS(e),i=GS(e),o=hk(e),s=[];return we(s,t&&q(t.before,R$)),s.push(kz),e.experimentalDecorators&&s.push(Az),kk(e)&&s.push(Zz),r<99&&s.push(Uz),e.experimentalDecorators||!(r<99)&&o||s.push(Fz),s.push(Cz),r<8&&s.push(Vz),r<7&&s.push(zz),r<6&&s.push(Bz),r<5&&s.push(Rz),r<4&&s.push(Oz),r<3&&s.push(t$),r<2&&(s.push(i$),s.push(c$)),s.push(function(e){switch(e){case 99:case 7:case 6:case 5:return m$;case 4:return f$;case 100:case 199:return h$;default:return _$}}(i)),r<1&&s.push(a$),we(s,t&&q(t.after,R$)),s}function M$(e){const t=[];return t.push(E$),we(t,e&&q(e.afterDeclarations,j$)),t}function L$(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>qA(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function R$(e){return L$(e,gJ)}function j$(e){return L$(e,((e,t)=>t))}function B$(e,t){return t}function J$(e,t,n){n(e,t)}function z$(e,t,n,r,i,o,a){var s,c;const l=new Array(363);let u,_,d,f,p,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,S=[],k=0,T=B$,C=J$,w=0;const E=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:At((()=>xE(D))),startLexicalEnvironment:function(){Fn.assert(w>0,"Cannot modify the lexical environment during initialization."),Fn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Fn.assert(!x,"Lexical environment is suspended."),g[b]=u,h[b]=_,y[b]=d,v[b]=m,b++,u=void 0,_=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){Fn.assert(w>0,"Cannot modify the lexical environment during initialization."),Fn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Fn.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){Fn.assert(w>0,"Cannot modify the lexical environment during initialization."),Fn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Fn.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(Fn.assert(w>0,"Cannot modify the lexical environment during initialization."),Fn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Fn.assert(!x,"Lexical environment is suspended."),u||_||d){if(_&&(e=[..._]),u){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(u));rw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}return b--,u=g[b],_=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]),e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){Fn.assert(w>0,"Cannot modify the lexical environment during initialization."),Fn.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=rw(n.createVariableDeclaration(e),128);u?u.push(t):u=[t],1&m&&(m|=2)},hoistFunctionDeclaration:function(e){Fn.assert(w>0,"Cannot modify the lexical environment during initialization."),Fn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),rw(e,2097152),_?_.push(e):_=[e]},addInitializationStatement:function(e){Fn.assert(w>0,"Cannot modify the lexical environment during initialization."),Fn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),rw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){Fn.assert(w>0,"Cannot start a block scope during initialization."),Fn.assert(w<2,"Cannot start a block scope after transformation has completed."),S[k]=f,k++,f=void 0},endBlockScope:function(){Fn.assert(w>0,"Cannot end a block scope during initialization."),Fn.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=le(f)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(f.map((e=>n.createVariableDeclaration(e))),1))]:void 0;return k--,f=S[k],0===k&&(S=[]),e},addBlockScopedVariable:function(e){Fn.assert(k>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(e)},requestEmitHelper:function e(t){if(Fn.assert(w>0,"Cannot modify the transformation context during initialization."),Fn.assert(w<2,"Cannot modify the transformation context after transformation has completed."),Fn.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);p=ke(p,t)},readEmitHelpers:function(){Fn.assert(w>0,"Cannot modify the transformation context during initialization."),Fn.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=p;return p=void 0,e},enableSubstitution:function(e){Fn.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){Fn.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){Fn.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),Fn.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){Fn.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),Fn.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){E.push(e)}};for(const e of i)tw(Ff(Ac(e)));wr("beforeTransform");const N=o.map((e=>e(D))),A=e=>{for(const t of N)e=t(e);return e};w=1;const P=[];for(const e of i)null==(s=Br)||s.push(Br.Phase.Emit,"transformNodes",312===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),P.push((a?A:F)(e)),null==(c=Br)||c.pop();return w=2,wr("afterTransform"),Er("transformTime","beforeTransform","afterTransform"),{transformed:P,substituteNode:function(e,t){return Fn.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){Fn.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)tw(Ff(Ac(e)));u=void 0,g=void 0,_=void 0,h=void 0,T=void 0,C=void 0,p=void 0,w=3}},diagnostics:E};function F(e){return!e||UA(e)&&e.isDeclarationFile?e:A(e)}function I(e){return 0!=(1&l[e.kind])&&0==(8&cp(e))}function O(e){return 0!=(2&l[e.kind])||0!=(4&cp(e))}}var $$,V$,K$,U$,q$,W$,H$=S({"src/compiler/transformer.ts"(){gH(),co(),A$={scriptTransformers:a,declarationTransformers:a},P$={factory:FC,getCompilerOptions:()=>({}),getEmitResolver:Nt,getEmitHost:Nt,getEmitHelperFactory:Nt,startLexicalEnvironment:St,resumeLexicalEnvironment:St,suspendLexicalEnvironment:St,endLexicalEnvironment:Ct,setLexicalEnvironmentFlags:St,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:St,hoistFunctionDeclaration:St,addInitializationStatement:St,startBlockScope:St,endBlockScope:Ct,addBlockScopedVariable:St,requestEmitHelper:St,readEmitHelpers:Nt,enableSubstitution:St,enableEmitNotification:St,isSubstitutionEnabled:Nt,isEmitNotificationEnabled:Nt,onSubstituteNode:B$,onEmitNode:J$,addDiagnostic:St}}});function G$(e){return Zo(e,".tsbuildinfo")}function X$(e,t,n,r=!1,i,o){const a=gt(n)?n:jv(e,n,r),s=e.getCompilerOptions();if(Lv(s)){const n=e.getPrependNodes();if(a.length||n.length){const i=FC.createBundle(a,n),o=t(Z$(i,e,r),i);if(o)return o}}else{if(!i)for(const n of a){const i=t(Z$(n,e,r),n);if(i)return i}if(o){const e=Y$(s);if(e)return t({buildInfoPath:e},void 0)}}}function Y$(e){const t=e.configFilePath;if(!pk(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=Lv(e);let r;if(n)r=eT(n);else{if(!t)return;const n=eT(t);r=e.outDir?e.rootDir?pa(e.outDir,Pa(e.rootDir,n,!0)):fa(e.outDir,aa(n)):n}return r+".tsbuildinfo"}function Q$(e,t){const n=Lv(e),r=e.emitDeclarationOnly?void 0:n,i=r&&eV(r,e),o=t||dk(e)?eT(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&ik(e)?o+".map":void 0,buildInfoPath:Y$(e)}}function Z$(e,t,n){const r=t.getCompilerOptions();if(313===e.kind)return Q$(r,n);{const i=Pv(e.fileName,t,tV(e.fileName,r)),o=am(e),a=o&&0===Ea(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||am(e)?void 0:eV(s,r),l=n||dk(r)&&!o?Fv(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&ik(r)?l+".map":void 0,buildInfoPath:void 0}}}function eV(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function tV(e,t){return Zo(e,".json")?".json":1===t.jsx&&ea(e,[".jsx",".tsx"])?".jsx":ea(e,[".mts",".mjs"])?".mjs":ea(e,[".cts",".cjs"])?".cjs":".js"}function nV(e,t,n,r,i){return r?pa(r,Pa(i?i():lV(t,n),e,n)):e}function rV(e,t,n,r){return rT(nV(e,t,n,t.options.declarationDir||t.options.outDir,r),Ov(e))}function iV(e,t,n,r){if(t.options.emitDeclarationOnly)return;const i=Zo(e,".json"),o=rT(nV(e,t,n,t.options.outDir,r),tV(e,t.options));return i&&0===Ea(e,o,Fn.checkDefined(t.options.configFilePath),n)?void 0:o}function oV(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||a}}}function aV(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o,buildInfoPath:a}=Q$(e.options,!1);t(n),t(r),t(i),t(o),t(a)}function sV(e,t,n,r,i){if(QI(t))return;const o=iV(t,e,n,i);if(r(o),!Zo(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),dk(e.options))){const o=rV(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function cV(e,t,n,r,i){let o;return e.rootDir?(o=ga(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=oa(_a(e.configFilePath)),null==i||i(o)):o=ZV(t(),n,r),o&&o[o.length-1]!==Bo&&(o+=Bo),o}function lV({options:e,fileNames:t},n){return cV(e,(()=>V(t,(t=>!(e.noEmitForJsFiles&&ea(t,Gd)||QI(t))))),oa(_a(Fn.checkDefined(e.configFilePath))),ln(!n))}function uV(e,t){const{addOutput:n,getOutputs:r}=oV();if(Lv(e.options))aV(e,n);else{const r=At((()=>lV(e,t)));for(const i of e.fileNames)sV(e,i,t,n,r);n(Y$(e.options))}return r()}function _V(e,t,n){t=ha(t),Fn.assert(B(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=oV();return Lv(e.options)?aV(e,r):sV(e,t,n,r),i()}function dV(e,t){if(Lv(e.options)){const{jsFilePath:t,declarationFilePath:n}=Q$(e.options,!1);return Fn.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=At((()=>lV(e,t)));for(const r of e.fileNames){if(QI(r))continue;const i=iV(r,e,t,n);if(i)return i;if(!Zo(r,".json")&&dk(e.options))return rV(r,e,t,n)}return Y$(e.options)||Fn.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function fV(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,s){var c,l=t.getCompilerOptions(),u=l.sourceMap||l.inlineSourceMap||ik(l)?[]:void 0,_=l.listEmittedFiles?[]:void 0,d=uv(),f=hx(l),p=kv(f),{enter:m,exit:g}=Cr("printTime","beforePrint","afterPrint"),h=!1;return m(),X$(t,(function({jsFilePath:a,sourceMapFilePath:u,declarationFilePath:f,declarationMapPath:p,buildInfoPath:m},g){var b,x,S,k,T,w;let E;function D(e){return Sa(Pa(E,e,t.getCanonicalFileName))}m&&g&&qA(g)&&(E=oa(ga(m,t.getCurrentDirectory())),c={commonSourceDirectory:D(t.getCommonSourceDirectory()),sourceFiles:g.sourceFiles.map((e=>D(ga(e.fileName,t.getCurrentDirectory()))))}),null==(b=Br)||b.push(Br.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a,s){if(!n||o||!i)return;if(t.isEmitBlocked(i)||l.noEmit)return void(h=!0);const u=z$(e,t,FC,l,[n],r,!1),_=yV({removeComments:l.removeComments,newLine:l.newLine,noEmitHelpers:l.noEmitHelpers,module:l.module,target:l.target,sourceMap:l.sourceMap,inlineSourceMap:l.inlineSourceMap,inlineSources:l.inlineSources,extendedDiagnostics:l.extendedDiagnostics,writeBundleFileInfo:!!c,relativeToBuildInfo:s},{hasGlobalName:e.hasGlobalName,onEmitNode:u.emitNodeWithNotification,isEmitNotificationEnabled:u.isEmitNotificationEnabled,substituteNode:u.substituteNode});Fn.assert(1===u.transformed.length,"Should only see one output from the transform"),v(i,a,u,_,l),u.dispose(),c&&(c.js=_.bundleFileInfo)}(g,a,u,D),null==(x=Br)||x.pop(),null==(S=Br)||S.push(Br.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:f}),function(n,r,a,u){if(!n||0===o)return;if(!r)return void((o||l.emitDeclarationOnly)&&(h=!0));const _=UA(n)?[n]:n.sourceFiles,f=s?_:V(_,Ig),p=Lv(l)?[FC.createBundle(f,UA(n)?void 0:n.prepends)]:f;o&&!dk(l)&&f.forEach(y);const m=z$(e,t,FC,l,p,i,!1);if(C(m.diagnostics))for(const e of m.diagnostics)d.add(e);const g={removeComments:l.removeComments,newLine:l.newLine,noEmitHelpers:!0,module:l.module,target:l.target,sourceMap:!s&&l.declarationMap,inlineSourceMap:l.inlineSourceMap,extendedDiagnostics:l.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!c,recordInternalSection:!!c,relativeToBuildInfo:u},b=yV(g,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),x=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!l.noEmit;h=h||x,(!x||s)&&(Fn.assert(1===m.transformed.length,"Should only see one output from the decl transform"),v(r,a,m,b,{sourceMap:g.sourceMap,sourceRoot:l.sourceRoot,mapRoot:l.mapRoot,extendedDiagnostics:l.extendedDiagnostics})),m.dispose(),c&&(c.dts=b.bundleFileInfo)}(g,f,p,D),null==(k=Br)||k.pop(),null==(T=Br)||T.push(Br.Phase.Emit,"emitBuildInfo",{buildInfoPath:m}),function(e,r){if(!r||n||h)return;if(t.isEmitBlocked(r))return void(h=!0);const i=t.getBuildInfo(e)||pV(void 0,e);$v(t,d,r,mV(i),!1,void 0,{buildInfo:i})}(c,m),null==(w=Br)||w.pop(),!h&&_&&(o||(a&&_.push(a),u&&_.push(u),m&&_.push(m)),0!==o&&(f&&_.push(f),p&&_.push(p)))}),jv(t,n,s),s,a,!n),g(),{emitSkipped:h,diagnostics:d.getDiagnostics(),emittedFiles:_,sourceMaps:u};function y(t){gA(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):vA(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):zI(t,y)}function v(e,n,r,i,o){const a=r.transformed[0],s=313===a.kind?a:void 0,c=312===a.kind?a:void 0,_=s?s.sourceFiles:[c];let m,g;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(312!==t.kind||!Zo(t.fileName,".json"))}(o,a)&&(m=GB(t,aa(_a(e)),function(e){const t=_a(e.sourceRoot||"");return t?xa(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=_a(e.mapRoot);return r&&(n=oa(Jv(r.fileName,t,n))),0===ia(n)&&(n=fa(t.getCommonSourceDirectory(),n)),n}return oa(ha(n))}(o,e,c),o)),s?i.writeBundle(s,p,m):i.writeFile(c,p,m),m){u&&u.push({inputSourceFileNames:m.getSources(),sourceMap:m.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${dx(xo,e)}`}const a=aa(_a(Fn.checkDefined(i)));if(e.mapRoot){let n=_a(e.mapRoot);return o&&(n=oa(Jv(o.fileName,t,n))),0===ia(n)?(n=fa(t.getCommonSourceDirectory(),n),encodeURI(Oa(oa(ha(r)),fa(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(fa(n,a))}return encodeURI(a)}(o,m,e,n,c);if(r&&(p.isAtStartOfLine()||p.rawWrite(f),g=p.getTextPos(),p.writeComment(`//# sourceMappingURL=${r}`)),n){const e=m.toString();$v(t,d,n,e,!1,_),i.bundleFileInfo&&(i.bundleFileInfo.mapHash=TU(e,t))}}else p.writeLine();const h=p.getText();$v(t,d,e,h,!!l.emitBOM,_,{sourceMapUrlPos:g,diagnostics:r.diagnostics}),i.bundleFileInfo&&(i.bundleFileInfo.hash=TU(h,t)),p.clear()}}function pV(e,n){return{bundle:n,program:e,version:t}}function mV(e){return JSON.stringify(e)}function gV(e,t){return px(e,t)}function hV(e,t,n,r){var i,o;null==(i=Br)||i.push(Br.Phase.Emit,"emitUsingBuildInfo",{},!0),wr("beforeEmit");const a=function(e,t,n,r){const{buildInfoPath:i,jsFilePath:o,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:c}=Q$(e.options,!1),l=t.getBuildInfo(i,e.options.configFilePath);if(!l)return i;if(!l.bundle||!l.bundle.js||s&&!l.bundle.dts)return i;const u=t.readFile(Fn.checkDefined(o));if(!u)return o;if(TU(u,t)!==l.bundle.js.hash)return o;const _=a&&t.readFile(a);if(a&&!_||e.options.inlineSourceMap)return a||"inline sourcemap decoding";if(a&&TU(_,t)!==l.bundle.js.mapHash)return a;const d=s&&t.readFile(s);if(s&&!d)return s;if(s&&TU(d,t)!==l.bundle.dts.hash)return s;const f=c&&t.readFile(c);if(c&&!f||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&TU(f,t)!==l.bundle.dts.mapHash)return c;const p=oa(ga(i,t.getCurrentDirectory())),m=XC(o,u,a,_,s,d,c,f,i,l,!0),g=[],h=JK(e.projectReferences,n,(e=>t.readFile(e)),t),y=function(e,t,n){var r;const i=Fn.checkDefined(e.js),o=(null==(r=i.sources)?void 0:r.prologues)&&nt(i.sources.prologues,(e=>e.file));return e.sourceFiles.map(((e,r)=>{const i=null==o?void 0:o.get(r),a=null==i?void 0:i.directives.map((e=>{const t=tI(FC.createStringLiteral(e.expression.text),e.expression),n=tI(FC.createExpressionStatement(t),e);return OT(t,n),n})),s=FC.createToken(1),c=FC.createSourceFile(a??[],s,0);return c.fileName=Pa(n.getCurrentDirectory(),ga(e,t),!n.useCaseSensitiveFileNames()),c.text=(null==i?void 0:i.text)??"",FT(c,0,(null==i?void 0:i.text.length)??0),MT(c.statements,c),FT(s,c.end,0),OT(s,c),c}))}(l.bundle,p,t);let v,b;const x={getPrependNodes:At((()=>[...h,m])),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>ga(l.bundle.commonSourceDirectory,p),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Ct,getSourceFileByPath:Ct,getSourceFiles:()=>y,getLibFileFromReference:Nt,isSourceFileFromExternalLibrary:kt,getResolvedProjectReferenceToRedirect:Ct,getProjectReferenceRedirect:Ct,isSourceOfProjectReferenceRedirect:kt,writeFile:(e,t,n,r,l,p)=>{switch(e){case o:if(u===t)return;break;case a:if(_===t)return;break;case i:break;case s:if(d===t)return;v=t,b=p;break;case c:if(f===t)return;break;default:Fn.fail(`Unexpected path: ${e}`)}g.push({name:e,text:t,writeByteOrderMark:n,data:p})},isEmitBlocked:kt,readFile:e=>t.readFile(e),fileExists:e=>t.fileExists(e),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:n=>{const r=l.program;r&&void 0!==v&&e.options.composite&&(r.outSignature=TU(v,t,b));const{js:i,dts:o,sourceFiles:a}=l.bundle;return n.js.sources=i.sources,o&&(n.dts.sources=o.sources),n.sourceFiles=a,pV(r,n)},getSourceFileFromReference:Ct,redirectTargetsMap:_t(),getFileIncludeReasons:Nt,createHash:ut(t,t.createHash)};return fV(V$,x,void 0,I$(e.options,r)),g}(e,t,n,r);return wr("afterEmit"),Er("Emit","beforeEmit","afterEmit"),null==(o=Br)||o.pop(),a}function yV(e={},t={}){var n,r,i,o,a,s,c,l,u,_,d,f,p,m,g,h,y,v,b,x,S,k,T,C,E,D,{hasGlobalName:N,onEmitNode:A=J$,isEmitNotificationEnabled:P,substituteNode:F=B$,onBeforeEmitNode:O,onAfterEmitNode:M,onBeforeEmitNodeArray:R,onAfterEmitNodeArray:j,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,$=hx(e),V=GS(e),K=new Map,U=e.preserveSourceNewlines,q=function(e){y.write(e)},W=e.writeBundleFileInfo?{sections:[]}:void 0,H=W?Fn.checkDefined(e.relativeToBuildInfo):void 0,G=e.recordInternalSection,X=0,Y="text",Q=!0,Z=-1,ee=-1,te=-1,ne=-1,re=-1,ie=!1,oe=!!e.removeComments,{enter:ae,exit:se}=Tr(z,"commentTime","beforeComment","afterComment"),ce=FC.parenthesizer,ue={select:e=>0===e?ce.parenthesizeLeadingTypeArgument:void 0},_e=function(){return BF((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=U,t.containerPosStack[t.stackIndex]=te,t.containerEndStack[t.stackIndex]=ne,t.declarationListContainerEndStack[t.stackIndex]=re;const n=t.shouldEmitCommentsStack[t.stackIndex]=$e(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Ve(e);null==O||O(e),n&&nr(e),r&&Cr(e),Le(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,i=An(n,n.left,e),o=An(n,e,n.right);xn(i,r),pr(e.pos),hn(e,103===e.kind?an:sn),gr(e.end,!0),xn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){if(Sn(An(e,e.left,e.operatorToken),An(e,e.operatorToken,e.right)),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Re(n),s&&wr(e),a&&rr(e,r,i,o),null==M||M(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?ce.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):ce.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=Ke(0,1,e);if(i===Ge&&(Fn.assertIsDefined(E),i=Ue(1,1,e=r(xt(E,l_))),E=void 0),(i===tr||i===kr||i===We)&&fN(e))return e;D=r,i(1,e)}}();return De(),{printNode:function(e,t,n){switch(e){case 0:Fn.assert(UA(t),"Expected a SourceFile node.");break;case 2:Fn.assert(qE(t),"Expected an Identifier node.");break;case 1:Fn.assert(l_(t),"Expected an Expression node.")}switch(t.kind){case 312:return fe(t);case 313:return de(t);case 314:return function(e,t){const n=y;Ee(t,void 0),Ce(4,e,void 0),De(),y=n}(t,ke()),Te()}return pe(e,t,n,ke()),Te()},printList:function(e,t,n){return me(e,t,n,ke()),Te()},printFile:fe,printBundle:de,writeNode:pe,writeList:me,writeFile:Se,writeBundle:xe,bundleFileInfo:W};function de(e){return xe(e,ke(),void 0),Te()}function fe(e){return Se(e,ke(),void 0),Te()}function pe(e,t,n,r){const i=y;Ee(r,void 0),Ce(e,t,n),De(),y=i}function me(e,t,n,r){const i=y;Ee(r,void 0),n&&we(n),Xt(void 0,t,e),De(),y=i}function ge(){return y.getTextPosWithWriteLine?y.getTextPosWithWriteLine():y.getTextPos()}function he(e,t,n){const r=je(W.sections);r&&r.kind===n?r.end=t:W.sections.push({pos:e,end:t,kind:n})}function ye(e){if(G&&W&&n&&(A_(e)||PN(e))&&w$(e,n)&&"internal"!==Y){const e=Y;return be(y.getTextPos()),X=ge(),Y="internal",e}}function ve(e){e&&(be(y.getTextPos()),X=ge(),Y=e)}function be(e){return XFn.assert(_S(e)))),W.sections.push({pos:t,end:y.getTextPos(),kind:"prepend",data:H(e.fileName),texts:r}))}}X=ge();for(const e of t.sourceFiles)Ce(0,e,e);if(W&&t.sourceFiles.length&&be(y.getTextPos())){const n=function(e){const t=new Set;let n;for(let r=0;r"),un(),Ae(e.type),Rn(e)}(t);case 185:return function(e){Ln(e),Bt(e,e.modifiers),an("new"),un(),qt(e,e.typeParameters),Wt(e,e.parameters),un(),rn("=>"),un(),Ae(e.type),Rn(e)}(t);case 186:return function(e){an("typeof"),un(),Ae(e.exprName),Ut(e,e.typeArguments)}(t);case 187:return function(e){Bn(0,void 0),rn("{");const t=1&cp(e)?768:32897;Xt(e,e.members,524288|t),rn("}"),Jn()}(t);case 188:return function(e){Ae(e.elementType,ce.parenthesizeNonArrayTypeOfPostfixType),rn("["),rn("]")}(t);case 189:return function(e){lt(23,e.pos,rn,e);const t=1&cp(e)?528:657;Xt(e,e.elements,524288|t,ce.parenthesizeElementTypeOfTupleType),lt(24,e.elements.end,rn,e)}(t);case 190:return function(e){Ae(e.type,ce.parenthesizeTypeOfOptionalType),rn("?")}(t);case 192:return function(e){Xt(e,e.types,516,ce.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Xt(e,e.types,520,ce.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194:return function(e){Ae(e.checkType,ce.parenthesizeCheckTypeOfConditionalType),un(),an("extends"),un(),Ae(e.extendsType,ce.parenthesizeExtendsTypeOfConditionalType),un(),rn("?"),un(),Ae(e.trueType),un(),rn(":"),un(),Ae(e.falseType)}(t);case 195:return function(e){an("infer"),un(),Ae(e.typeParameter)}(t);case 196:return function(e){rn("("),Ae(e.type),rn(")")}(t);case 233:return rt(t);case 197:return void an("this");case 198:return function(e){yn(e.operator,an),un();const t=148===e.operator?ce.parenthesizeOperandOfReadonlyTypeOperator:ce.parenthesizeOperandOfTypeOperator;Ae(e.type,t)}(t);case 199:return function(e){Ae(e.objectType,ce.parenthesizeNonArrayTypeOfPostfixType),rn("["),Ae(e.indexType),rn("]")}(t);case 200:return function(e){const t=cp(e);rn("{"),1&t?un():(fn(),pn()),e.readonlyToken&&(Ae(e.readonlyToken),148!==e.readonlyToken.kind&&an("readonly"),un()),rn("["),ze(3,e.typeParameter),e.nameType&&(un(),an("as"),un(),Ae(e.nameType)),rn("]"),e.questionToken&&(Ae(e.questionToken),58!==e.questionToken.kind&&rn("?")),rn(":"),un(),Ae(e.type),on(),1&t?un():(fn(),mn()),Xt(e,e.members,2),rn("}")}(t);case 201:return function(e){Ie(e.literal)}(t);case 202:return function(e){Ae(e.dotDotDotToken),Ae(e.name),Ae(e.questionToken),lt(59,e.name.end,rn,e),un(),Ae(e.type)}(t);case 203:return function(e){Ae(e.head),Xt(e,e.templateSpans,262144)}(t);case 204:return function(e){Ae(e.type),Ae(e.literal)}(t);case 205:return function(e){if(e.isTypeOf&&(an("typeof"),un()),an("import"),rn("("),Ae(e.argument),e.assertions){rn(","),un(),rn("{"),un(),an("assert"),rn(":"),un();const t=e.assertions.assertClause.elements;Xt(e.assertions.assertClause,t,526226),un(),rn("}")}rn(")"),e.qualifier&&(rn("."),Ae(e.qualifier)),Ut(e,e.typeArguments)}(t);case 206:return function(e){rn("{"),Xt(e,e.elements,525136),rn("}")}(t);case 207:return function(e){rn("["),Xt(e,e.elements,524880),rn("]")}(t);case 208:return function(e){Ae(e.dotDotDotToken),e.propertyName&&(Ae(e.propertyName),rn(":"),un()),Ae(e.name),zt(e.initializer,e.name.end,e,ce.parenthesizeExpressionForDisallowedComma)}(t);case 239:return function(e){Ie(e.expression),Ae(e.literal)}(t);case 240:return void on();case 241:return function(e){it(e,!e.multiLine&&Pn(e))}(t);case 243:return function(e){jt(e,e.modifiers,!1),Ae(e.declarationList),on()}(t);case 242:return ot(!1);case 244:return function(e){Ie(e.expression,ce.parenthesizeExpressionOfExpressionStatement),n&&am(n)&&!tv(e.expression)||on()}(t);case 245:return function(e){const t=lt(101,e.pos,an,e);un(),lt(21,t,rn,e),Ie(e.expression),lt(22,e.expression.end,rn,e),Kt(e,e.thenStatement),e.elseStatement&&(vn(e,e.thenStatement,e.elseStatement),lt(93,e.thenStatement.end,an,e),245===e.elseStatement.kind?(un(),Ae(e.elseStatement)):Kt(e,e.elseStatement))}(t);case 246:return function(e){lt(92,e.pos,an,e),Kt(e,e.statement),AN(e.statement)&&!U?un():vn(e,e.statement,e.expression),at(e,e.statement.end),on()}(t);case 247:return function(e){at(e,e.pos),Kt(e,e.statement)}(t);case 248:return function(e){const t=lt(99,e.pos,an,e);un();let n=lt(21,t,rn,e);ct(e.initializer),n=lt(27,e.initializer?e.initializer.end:n,rn,e),Vt(e.condition),n=lt(27,e.condition?e.condition.end:n,rn,e),Vt(e.incrementor),lt(22,e.incrementor?e.incrementor.end:n,rn,e),Kt(e,e.statement)}(t);case 249:return function(e){const t=lt(99,e.pos,an,e);un(),lt(21,t,rn,e),ct(e.initializer),un(),lt(103,e.initializer.end,an,e),un(),Ie(e.expression),lt(22,e.expression.end,rn,e),Kt(e,e.statement)}(t);case 250:return function(e){const t=lt(99,e.pos,an,e);un(),function(e){e&&(Ae(e),un())}(e.awaitModifier),lt(21,t,rn,e),ct(e.initializer),un(),lt(165,e.initializer.end,an,e),un(),Ie(e.expression),lt(22,e.expression.end,rn,e),Kt(e,e.statement)}(t);case 251:return function(e){lt(88,e.pos,an,e),$t(e.label),on()}(t);case 252:return function(e){lt(83,e.pos,an,e),$t(e.label),on()}(t);case 253:return function(e){lt(107,e.pos,an,e),Vt(e.expression&&dt(e.expression),dt),on()}(t);case 254:return function(e){const t=lt(118,e.pos,an,e);un(),lt(21,t,rn,e),Ie(e.expression),lt(22,e.expression.end,rn,e),Kt(e,e.statement)}(t);case 255:return function(e){const t=lt(109,e.pos,an,e);un(),lt(21,t,rn,e),Ie(e.expression),lt(22,e.expression.end,rn,e),un(),Ae(e.caseBlock)}(t);case 256:return function(e){Ae(e.label),lt(59,e.label.end,rn,e),un(),Ae(e.statement)}(t);case 257:return function(e){lt(111,e.pos,an,e),Vt(dt(e.expression),dt),on()}(t);case 258:return function(e){lt(113,e.pos,an,e),un(),Ae(e.tryBlock),e.catchClause&&(vn(e,e.tryBlock,e.catchClause),Ae(e.catchClause)),e.finallyBlock&&(vn(e,e.catchClause||e.tryBlock,e.finallyBlock),lt(98,(e.catchClause||e.tryBlock).end,an,e),un(),Ae(e.finallyBlock))}(t);case 259:return function(e){gn(89,e.pos,an),on()}(t);case 260:return function(e){var t,n,r;Ae(e.name),Ae(e.exclamationToken),Jt(e.type),zt(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,ce.parenthesizeExpressionForDisallowedComma)}(t);case 261:return function(e){lm(e)?(an("await"),un(),an("using")):an(dm(e)?"let":_m(e)?"const":um(e)?"using":"var"),un(),Xt(e,e.declarations,528)}(t);case 262:return function(e){pt(e)}(t);case 263:return function(e){St(e)}(t);case 264:return function(e){Bn(0,void 0),jt(e,e.modifiers,!1),an("interface"),un(),Ae(e.name),qt(e,e.typeParameters),Xt(e,e.heritageClauses,512),un(),rn("{"),Xt(e,e.members,129),rn("}"),Jn()}(t);case 265:return function(e){jt(e,e.modifiers,!1),an("type"),un(),Ae(e.name),qt(e,e.typeParameters),un(),rn("="),un(),Ae(e.type),on()}(t);case 266:return function(e){jt(e,e.modifiers,!1),an("enum"),un(),Ae(e.name),un(),rn("{"),Xt(e,e.members,145),rn("}")}(t);case 267:return function(e){jt(e,e.modifiers,!1),2048&~e.flags&&(an(32&e.flags?"namespace":"module"),un()),Ae(e.name);let t=e.body;if(!t)return on();for(;t&&nA(t);)rn("."),Ae(t.name),t=t.body;un(),Ae(t)}(t);case 268:return function(e){Ln(e),w(e.statements,$n),it(e,Pn(e)),Rn(e)}(t);case 269:return function(e){lt(19,e.pos,rn,e),Xt(e,e.clauses,129),lt(20,e.clauses.end,rn,e,!0)}(t);case 270:return function(e){let t=lt(95,e.pos,an,e);un(),t=lt(130,t,an,e),un(),t=lt(145,t,an,e),un(),Ae(e.name),on()}(t);case 271:return function(e){jt(e,e.modifiers,!1),lt(102,e.modifiers?e.modifiers.end:e.pos,an,e),un(),e.isTypeOnly&&(lt(156,e.pos,an,e),un()),Ae(e.name),un(),lt(64,e.name.end,rn,e),un(),function(e){80===e.kind?Ie(e):Ae(e)}(e.moduleReference),on()}(t);case 272:return function(e){jt(e,e.modifiers,!1),lt(102,e.modifiers?e.modifiers.end:e.pos,an,e),un(),e.importClause&&(Ae(e.importClause),un(),lt(161,e.importClause.end,an,e),un()),Ie(e.moduleSpecifier),e.assertClause&&$t(e.assertClause),on()}(t);case 273:return function(e){e.isTypeOnly&&(lt(156,e.pos,an,e),un()),Ae(e.name),e.name&&e.namedBindings&&(lt(28,e.name.end,rn,e),un()),Ae(e.namedBindings)}(t);case 274:return function(e){const t=lt(42,e.pos,rn,e);un(),lt(130,t,an,e),un(),Ae(e.name)}(t);case 280:return function(e){const t=lt(42,e.pos,rn,e);un(),lt(130,t,an,e),un(),Ae(e.name)}(t);case 275:case 279:return function(e){!function(e){rn("{"),Xt(e,e.elements,525136),rn("}")}(e)}(t);case 276:case 281:return function(e){!function(e){e.isTypeOnly&&(an("type"),un()),e.propertyName&&(Ae(e.propertyName),un(),lt(130,e.propertyName.end,an,e),un()),Ae(e.name)}(e)}(t);case 277:return function(e){const t=lt(95,e.pos,an,e);un(),e.isExportEquals?lt(64,t,sn,e):lt(90,t,an,e),un(),Ie(e.expression,e.isExportEquals?ce.getParenthesizeRightSideOfBinaryForOperator(64):ce.parenthesizeExpressionOfExportDefault),on()}(t);case 278:return function(e){jt(e,e.modifiers,!1);let t=lt(95,e.pos,an,e);un(),e.isTypeOnly&&(t=lt(156,t,an,e),un()),e.exportClause?Ae(e.exportClause):t=lt(42,t,rn,e),e.moduleSpecifier&&(un(),lt(161,e.exportClause?e.exportClause.end:t,an,e),un(),Ie(e.moduleSpecifier)),e.assertClause&&$t(e.assertClause),on()}(t);case 300:return function(e){lt(132,e.pos,an,e),un();Xt(e,e.elements,526226)}(t);case 301:return function(e){Ae(e.name),rn(":"),un();const t=e.value;0==(1024&cp(t))&&gr(fw(t).pos),Ae(t)}(t);case 282:case 326:case 337:case 338:case 340:case 341:case 342:case 343:case 359:return;case 283:return function(e){an("require"),rn("("),Ie(e.expression),rn(")")}(t);case 12:return function(e){y.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(rn("<"),wA(e)){const t=En(e.tagName,e);kt(e.tagName),Ut(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&un(),Ae(e.attributes),Dn(e.attributes,e),Sn(t)}rn(">")}(t);case 287:case 290:return function(e){rn("")}(t);case 291:return function(e){Ae(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,rn,e.initializer,Me)}(t);case 292:return function(e){Xt(e,e.properties,262656)}(t);case 293:return function(e){rn("{..."),Ie(e.expression),rn("}")}(t);case 294:return function(e){var t,r;if(e.expression||!oe&&!tv(e)&&(function(e){let t=!1;return Ps((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r=e.pos)||function(e){let t=!1;return As((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!tv(e)&&gs(n,e.pos).line!==gs(n,e.end).line;r&&y.increaseIndent();const i=lt(19,e.pos,rn,e);Ae(e.dotDotDotToken),Ie(e.expression),lt(20,(null==(t=e.expression)?void 0:t.end)||i,rn,e),r&&y.decreaseIndent()}}(t);case 295:return function(e){Pe(e.namespace),rn(":"),Pe(e.name)}(t);case 296:return function(e){lt(84,e.pos,an,e),un(),Ie(e.expression,ce.parenthesizeExpressionForDisallowedComma),Tt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=lt(90,e.pos,an,e);Tt(e,e.statements,t)}(t);case 298:return function(e){un(),yn(e.token,an),un(),Xt(e,e.types,528)}(t);case 299:return function(e){const t=lt(85,e.pos,an,e);un(),e.variableDeclaration&&(lt(21,t,rn,e),Ae(e.variableDeclaration),lt(22,e.variableDeclaration.end,rn,e),un()),Ae(e.block)}(t);case 303:return function(e){Ae(e.name),rn(":"),un();const t=e.initializer;0==(1024&cp(t))&&gr(fw(t).pos),Ie(t,ce.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){Ae(e.name),e.objectAssignmentInitializer&&(un(),rn("="),un(),Ie(e.objectAssignmentInitializer,ce.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(lt(26,e.pos,rn,e),Ie(e.expression,ce.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){Ae(e.name),zt(e.initializer,e.name.end,e,ce.parenthesizeExpressionForDisallowedComma)}(t);case 307:return Ze(t);case 314:case 308:return function(e){for(const t of e.texts)fn(),Ae(t)}(t);case 309:case 310:return function(e){const t=ge();Ze(e),W&&he(t,y.getTextPos(),309===e.kind?"text":"internal")}(t);case 311:return function(e){const t=ge();if(Ze(e),W){const n=st(e.section);n.pos=t,n.end=y.getTextPos(),W.sections.push(n)}}(t);case 312:return At(t);case 313:return Fn.fail("Bundles should be printed using printBundle");case 315:return Fn.fail("InputFiles should not be printed");case 316:return Nt(t);case 317:return function(e){un(),rn("{"),Ae(e.name),rn("}")}(t);case 319:return rn("*");case 320:return rn("?");case 321:return function(e){rn("?"),Ae(e.type)}(t);case 322:return function(e){rn("!"),Ae(e.type)}(t);case 323:return function(e){Ae(e.type),rn("=")}(t);case 324:return function(e){an("function"),Wt(e,e.parameters),rn(":"),Ae(e.type)}(t);case 191:case 325:return function(e){rn("..."),Ae(e.type)}(t);case 327:return function(e){if(q("/**"),e.comment){const t=El(e.comment);if(t){const e=t.split(/\r\n?|\n/g);for(const t of e)fn(),un(),rn("*"),un(),q(t)}}e.tags&&(1!==e.tags.length||351!==e.tags[0].kind||e.comment?Xt(e,e.tags,33):(un(),Ae(e.tags[0]))),un(),q("*/")}(t);case 329:return Ct(t);case 330:return wt(t);case 334:case 339:case 344:return Et((o=t).tagName),void Dt(o.comment);case 335:case 336:return function(e){Et(e.tagName),un(),rn("{"),Ae(e.class),rn("}"),Dt(e.comment)}(t);case 345:return function(e){Et(e.tagName),e.name&&(un(),Ae(e.name)),Dt(e.comment),wt(e.typeExpression)}(t);case 346:return function(e){Dt(e.comment),wt(e.typeExpression)}(t);case 348:case 355:return Et((i=t).tagName),Nt(i.typeExpression),un(),i.isBracketed&&rn("["),Ae(i.name),i.isBracketed&&rn("]"),void Dt(i.comment);case 347:case 349:case 350:case 351:case 356:case 357:return function(e){Et(e.tagName),Nt(e.typeExpression),Dt(e.comment)}(t);case 352:return function(e){Et(e.tagName),Nt(e.constraint),un(),Xt(e,e.typeParameters,528),Dt(e.comment)}(t);case 353:return function(e){Et(e.tagName),e.typeExpression&&(316===e.typeExpression.kind?Nt(e.typeExpression):(un(),rn("{"),q("Object"),e.typeExpression.isArrayType&&(rn("["),rn("]")),rn("}"))),e.fullName&&(un(),Ae(e.fullName)),Dt(e.comment),e.typeExpression&&329===e.typeExpression.kind&&Ct(e.typeExpression)}(t);case 354:return function(e){Et(e.tagName),Ae(e.name),Dt(e.comment)}(t)}if(l_(t)&&(e=1,F!==B$)){const n=F(e,t)||t;n!==t&&(t=n,D&&(t=D(t)))}}var i,o,a;if(1===e)switch(t.kind){case 9:case 10:return function(e){Qe(e,!1)}(t);case 11:case 14:case 15:return Qe(t,!1);case 80:return et(t);case 81:return tt(t);case 209:return function(e){Yt(e,e.elements,8914|(e.multiLine?65536:0),ce.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){Bn(0,void 0),w(e.properties,Vn);const t=131072&cp(e);t&&pn();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!am(n)?64:0;Xt(e,e.properties,526226|i|r),t&&mn(),Jn()}(t);case 211:return function(e){Ie(e.expression,ce.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||PT(FC.createToken(25),e.expression.end,e.name.pos),n=An(e,e.expression,t),r=An(e,t,e.name);xn(n,!1),29===t.kind||!function(e){if(EE(e=zl(e))){const t=Mn(e,!0,!1);return!(448&e.numericLiteralFlags||nn(t,ss(25))||nn(t,String.fromCharCode(69))||nn(t,String.fromCharCode(101)))}if(lS(e)){const t=Sw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)||y.hasTrailingComment()||y.hasTrailingWhitespace()||rn("."),e.questionDotToken?Ae(t):lt(t.kind,e.expression.end,rn,e),xn(r,!1),Ae(e.name),Sn(n,r)}(t);case 212:return function(e){Ie(e.expression,ce.parenthesizeLeftSideOfAccess),Ae(e.questionDotToken),lt(23,e.expression.end,rn,e),Ie(e.argumentExpression),lt(24,e.argumentExpression.end,rn,e)}(t);case 213:return function(e){const t=16&lp(e);t&&(rn("("),en("0"),rn(","),un()),Ie(e.expression,ce.parenthesizeLeftSideOfAccess),t&&rn(")"),Ae(e.questionDotToken),Ut(e,e.typeArguments),Yt(e,e.arguments,2576,ce.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){lt(105,e.pos,an,e),un(),Ie(e.expression,ce.parenthesizeExpressionOfNew),Ut(e,e.typeArguments),Yt(e,e.arguments,18960,ce.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&lp(e);t&&(rn("("),en("0"),rn(","),un()),Ie(e.tag,ce.parenthesizeLeftSideOfAccess),t&&rn(")"),Ut(e,e.typeArguments),un(),Ie(e.template)}(t);case 216:return function(e){rn("<"),Ae(e.type),rn(">"),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=lt(21,e.pos,rn,e),n=En(e.expression,e);Ie(e.expression,void 0),Dn(e.expression,e),Sn(n),lt(22,e.expression?e.expression.end:t,rn,e)}(t);case 218:return function(e){Kn(e.name),pt(e)}(t);case 219:return function(e){Bt(e,e.modifiers),mt(e,nt)}(t);case 220:return function(e){lt(91,e.pos,an,e),un(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){lt(114,e.pos,an,e),un(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){lt(116,e.pos,an,e),un(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){lt(135,e.pos,an,e),un(),Ie(e.expression,ce.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){yn(e.operator,sn),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&un(),Ie(e.operand,ce.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){Ie(e.operand,ce.parenthesizeOperandOfPostfixUnary),yn(e.operator,sn)}(t);case 226:return _e(t);case 227:return function(e){const t=An(e,e.condition,e.questionToken),n=An(e,e.questionToken,e.whenTrue),r=An(e,e.whenTrue,e.colonToken),i=An(e,e.colonToken,e.whenFalse);Ie(e.condition,ce.parenthesizeConditionOfConditionalExpression),xn(t,!0),Ae(e.questionToken),xn(n,!0),Ie(e.whenTrue,ce.parenthesizeBranchOfConditionalExpression),Sn(t,n),xn(r,!0),Ae(e.colonToken),xn(i,!0),Ie(e.whenFalse,ce.parenthesizeBranchOfConditionalExpression),Sn(r,i)}(t);case 228:return function(e){Ae(e.head),Xt(e,e.templateSpans,262144)}(t);case 229:return function(e){lt(127,e.pos,an,e),Ae(e.asteriskToken),Vt(e.expression&&dt(e.expression),ft)}(t);case 230:return function(e){lt(26,e.pos,rn,e),Ie(e.expression,ce.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){Kn(e.name),St(e)}(t);case 232:case 282:case 359:return;case 234:return function(e){Ie(e.expression,void 0),e.type&&(un(),an("as"),un(),Ae(e.type))}(t);case 235:return function(e){Ie(e.expression,ce.parenthesizeLeftSideOfAccess),sn("!")}(t);case 233:return rt(t);case 238:return function(e){Ie(e.expression,void 0),e.type&&(un(),an("satisfies"),un(),Ae(e.type))}(t);case 236:return function(e){gn(e.keywordToken,e.pos,rn),rn("."),Ae(e.name)}(t);case 237:return Fn.fail("SyntheticExpression should never be printed.");case 284:return function(e){Ae(e.openingElement),Xt(e,e.children,262144),Ae(e.closingElement)}(t);case 285:return function(e){rn("<"),kt(e.tagName),Ut(e,e.typeArguments),un(),Ae(e.attributes),rn("/>")}(t);case 288:return function(e){Ae(e.openingFragment),Xt(e,e.children,262144),Ae(e.closingFragment)}(t);case 358:return Fn.fail("SyntaxList should not be printed");case 360:return function(e){const t=cp(e);1024&t||e.pos===e.expression.pos||gr(e.expression.pos),Ie(e.expression),2048&t||e.end===e.expression.end||pr(e.expression.end)}(t);case 361:return function(e){Yt(e,e.elements,528,void 0)}(t);case 362:return Fn.fail("SyntheticReferenceExpression should not be printed")}return Sy(t.kind)?hn(t,an):Xl(t.kind)?hn(t,rn):void Fn.fail(`Unhandled SyntaxKind: ${Fn.formatSyntaxKind(t.kind)}.`)}function Ge(e,t){const n=Ue(1,e,t);Fn.assertIsDefined(E),t=E,E=void 0,n(e,t)}function Xe(t){let r=!1;const i=313===t.kind?t:void 0;if(i&&0===V)return;const o=i?i.prepends.length:0,a=i?i.sourceFiles.length+o:1;for(let s=0;s0)return!1;t=n}return!0}(e)?yt:vt;cr(e,e.statements,t),mn(),gn(20,e.statements.end,rn,e),null==M||M(e)}function yt(e){vt(e,!0)}function vt(e,t){const n=It(e.statements),r=y.getTextPos();Xe(e),0===n&&r===y.getTextPos()&&t?(mn(),Xt(e,e.statements,768),pn()):Xt(e,e.statements,1,void 0,n)}function St(e){Bn(0,void 0),w(e.members,Vn),jt(e,e.modifiers,!0),lt(86,Sx(e).pos,an,e),e.name&&(un(),Pe(e.name));const t=131072&cp(e);t&&pn(),qt(e,e.typeParameters),Xt(e,e.heritageClauses,0),un(),rn("{"),Xt(e,e.members,129),rn("}"),t&&mn(),Jn()}function kt(e){80===e.kind?Ie(e):Ae(e)}function Tt(e,t,r){let i=163969;1===t.length&&(!n||tv(e)||tv(t[0])||wx(e,t[0],n))?(gn(59,r,rn,e),un(),i&=-130):lt(59,r,rn,e),Xt(e,t,i)}function Ct(e){Xt(e,FC.createNodeArray(e.jsDocPropertyTags),33)}function wt(e){e.typeParameters&&Xt(e,FC.createNodeArray(e.typeParameters),33),e.parameters&&Xt(e,FC.createNodeArray(e.parameters),33),e.type&&(fn(),un(),rn("*"),un(),Ae(e.type))}function Et(e){rn("@"),Ae(e)}function Dt(e){const t=El(e);t&&(un(),q(t))}function Nt(e){e&&(un(),rn("{"),Ae(e.type),rn("}"))}function At(e){fn();const t=e.statements;0===t.length||!hm(t[0])||tv(t[0])?cr(e,t,Ft):Ft(e)}function Pt(e,t,r,i){if(e){const e=y.getTextPos();ln('/// '),W&&W.sections.push({pos:e,end:y.getTextPos(),kind:"no-default-lib"}),fn()}if(n&&n.moduleName&&(ln(`/// `),fn()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?ln(`/// `):ln(`/// `),fn();for(const e of t){const t=y.getTextPos();ln(`/// `),W&&W.sections.push({pos:t,end:y.getTextPos(),kind:"reference",data:e.fileName}),fn()}for(const e of r){const t=y.getTextPos(),r=e.resolutionMode&&e.resolutionMode!==(null==n?void 0:n.impliedNodeFormat)?`resolution-mode="${99===e.resolutionMode?"import":"require"}"`:"";ln(`/// `),W&&W.sections.push({pos:t,end:y.getTextPos(),kind:e.resolutionMode?99===e.resolutionMode?"type-import":"type-require":"type",data:e.fileName}),fn()}for(const e of i){const t=y.getTextPos();ln(`/// `),W&&W.sections.push({pos:t,end:y.getTextPos(),kind:"lib",data:e.fileName}),fn()}}function Ft(e){const t=e.statements;Ln(e),w(e.statements,$n),Xe(e);const n=L(t,(e=>!hm(e)));!function(e){e.isDeclarationFile&&Pt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Xt(e,t,1,void 0,-1===n?t.length:n),Rn(e)}function It(e,t,n,r){let i=!!t;for(let o=0;o=r.length||0===s;if(c&&32768&i)return null==R||R(r),void(null==j||j(r));15360&i&&(rn(function(e){return $$[15360&e][0]}(i)),c&&r&&gr(r.pos,!0)),null==R||R(r),c?!(1&i)||U&&(!t||n&&Cx(t,n))?256&i&&!(524288&i)&&un():fn():Zt(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==j||j(r),15360&i&&(c&&r&&pr(r.end),rn(function(e){return $$[15360&e][1]}(i)))}function Zt(e,t,n,r,i,o,a,s,c){const l=0==(262144&r);let u=l;const _=kn(t,n[o],r);_?(fn(_),u=!1):256&r&&un(),128&r&&pn();const d=function(e,t){return 1===e.length?vV:"object"==typeof t?bV:xV}(e,i);let f,p,m=!1;for(let s=0;s0?(0==(131&r)&&(pn(),m=!0),fn(e),u=!1):f&&512&r&&un()}p=ye(a),u?gr(fw(a).pos):u=l,h=a.pos,d(a,e,i,s),m&&(mn(),m=!1),f=a}const g=f?cp(f):0,y=oe||!!(2048&g),v=s&&64&r&&16&r;v&&(f&&!y?lt(28,f.end,rn,f):rn(",")),f&&(t?t.end:-1)!==f.end&&60&r&&!y&&pr(v&&(null==c?void 0:c.end)?c.end:f.end),128&r&&mn(),ve(p);const b=Cn(t,n[o+a-1],r,c);b?fn(b):2097408&r&&un()}function en(e){y.writeLiteral(e)}function tn(e,t){y.writeSymbol(e,t)}function rn(e){y.writePunctuation(e)}function on(){y.writeTrailingSemicolon(";")}function an(e){y.writeKeyword(e)}function sn(e){y.writeOperator(e)}function cn(e){y.writeParameter(e)}function ln(e){y.writeComment(e)}function un(){y.writeSpace(" ")}function _n(e){y.writeProperty(e)}function dn(e){y.nonEscapingWrite?y.nonEscapingWrite(e):y.write(e)}function fn(e=1){for(let t=0;t0)}function pn(){y.increaseIndent()}function mn(){y.decreaseIndent()}function gn(e,t,n,r){return Q?yn(e,n,t):function(e,t,n,r,i){if(Q||e&&Fg(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||S;return r=Er(c,s?s.pos:r),0==(256&a)&&r>=0&&Nr(c,r),r=i(t,n,r),s&&(r=s.end),0==(512&a)&&r>=0&&Nr(c,r),r}(r,e,n,t,yn)}function hn(e,t){B&&B(e),t(ss(e.kind)),J&&J(e)}function yn(e,t,n){const r=ss(e);return t(r),n<0?n:n+r.length}function vn(e,t,n){if(1&cp(e))un();else if(U){const r=An(e,t,n);r?fn(r):un()}else fn()}function bn(e){const t=e.split(/\r\n?|\n/g),n=Z_(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(fn(),q(t))}}function xn(e,t){e?(pn(),fn(e)):t&&un()}function Sn(e,t){e&&mn(),t&&mn()}function kn(e,t,r){if(2&r||U){if(65536&r)return 1;if(void 0===t)return!e||n&&Cx(e,n)?0:1;if(t.pos===h)return 0;if(12===t.kind)return 0;if(n&&e&&!aT(e.pos)&&!tv(t)&&(!t.parent||Ec(t.parent)===Ec(e)))return U?wn((r=>Mx(t.pos,e.pos,n,r))):wx(e,t,n)?0:1;if(Nn(t,r))return 1}return 1&r?1:0}function Tn(e,t,r){if(2&r||U){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!tv(e)&&!tv(t))return U&&function(e,t){if(t.pos-1&&r.indexOf(t)===i+1}(e,t)?wn((r=>Ax(e,t,n,r))):!U&&(o=t,(i=Ec(i=e)).parent&&i.parent===Ec(o).parent)?Nx(e,t,n)?0:1:65536&r?1:0;if(Nn(e,r)||Nn(t,r))return 1}else if(_w(t))return 1;var i,o;return 1&r?1:0}function Cn(e,t,r,i){if(2&r||U){if(65536&r)return 1;if(void 0===t)return!e||n&&Cx(e,n)?0:1;if(n&&e&&!aT(e.pos)&&!tv(t)&&(!t.parent||t.parent===e)){if(U){const r=i&&!aT(i.end)?i.end:t.end;return wn((t=>Lx(r,e.end,n,t)))}return Ex(e,t,n)?0:1}if(Nn(t,r))return 1}return 1&r&&!(131072&r)?1:0}function wn(e){Fn.assert(!!U);const t=e(!0);return 0===t?e(!1):t}function En(e,t){const n=U&&kn(t,e,0);return n&&xn(n,!1),!!n}function Dn(e,t){const n=U&&Cn(t,e,0,void 0);n&&fn(n)}function Nn(e,t){if(tv(e)){const n=_w(e);return void 0===n?0!=(65536&t):n}return 0!=(65536&t)}function An(e,t,r){return 262144&cp(e)?0:(e=In(e),t=In(t),_w(r=In(r))?1:!n||tv(e)||tv(t)||tv(r)?0:U?wn((e=>Ax(t,r,n,e))):Nx(t,r,n)?0:1)}function Pn(e){return 0===e.statements.length&&(!n||Nx(e,e,n))}function In(e){for(;217===e.kind&&tv(e);)e=e.expression;return e}function On(e,t){if(_u(e)||du(e))return Un(e);if(NE(e)&&e.textSourceNode)return On(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!tv(e);if(Al(e)){if(!i||Ff(e)!==Ec(r))return Ic(e)}else if(MA(e)){if(!i||Ff(e)!==Ec(r))return pC(e)}else if(Fn.assertNode(e,eu),!i)return e.text;return np(r,e,t)}function Mn(t,r,i){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(qE(e)||WE(e)||EE(e)||MA(e)){const n=EE(e)?e.text:On(e);return i?`"${hv(n)}"`:r||16777216&cp(t)?`"${pv(n)}"`:`"${mv(n)}"`}return Mn(e,r,i)}const o=(r?1:0)|(i?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&99===e.target?8:0);return _p(t,n,o)}function Ln(e){e&&1048576&cp(e)||(_.push(d),d=0,s.push(c),c=void 0,f.push(p))}function Rn(e){e&&1048576&cp(e)||(d=_.pop(),c=s.pop(),p=f.pop())}function jn(e){p&&p!==je(f)||(p=new Set),p.add(e)}function Bn(e,t){l.push(u),u=e,m.push(p),g=t}function Jn(){u=l.pop(),g=m.pop()}function zn(e){g&&g!==je(m)||(g=new Set),g.add(e)}function $n(e){if(e)switch(e.kind){case 241:case 296:case 297:w(e.statements,$n);break;case 256:case 254:case 246:case 247:$n(e.statement);break;case 245:$n(e.thenStatement),$n(e.elseStatement);break;case 248:case 250:case 249:$n(e.initializer),$n(e.statement);break;case 255:$n(e.caseBlock);break;case 269:w(e.clauses,$n);break;case 258:$n(e.tryBlock),$n(e.catchClause),$n(e.finallyBlock);break;case 299:$n(e.variableDeclaration),$n(e.block);break;case 243:$n(e.declarationList);break;case 261:w(e.declarations,$n);break;case 260:case 169:case 208:case 263:case 274:case 280:Kn(e.name);break;case 262:Kn(e.name),1048576&cp(e)&&(w(e.parameters,$n),$n(e.body));break;case 206:case 207:case 275:w(e.elements,$n);break;case 272:$n(e.importClause);break;case 273:Kn(e.name),$n(e.namedBindings);break;case 276:Kn(e.propertyName||e.name)}}function Vn(e){if(e)switch(e.kind){case 303:case 304:case 172:case 174:case 177:case 178:Kn(e.name)}}function Kn(e){e&&(_u(e)||du(e)?Un(e):$u(e)&&$n(e))}function Un(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return qn(KF(e),WE(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=UF(t.prefix,Un),r=UF(t.suffix);switch(7&t.flags){case 1:return Xn(0,!!(8&t.flags),WE(e),n,r);case 2:return Fn.assertNode(e,qE),Xn(268435456,!!(8&t.flags),!1,n,r);case 3:return Yn(Ic(e),32&t.flags?Hn:Wn,!!(16&t.flags),!!(8&t.flags),WE(e),n,r)}return Fn.fail(`Unsupported GeneratedIdentifierKind: ${Fn.formatEnum(7&t.flags,Hr,!0)}.`)}(e))}}function qn(e,t,n,o,a){const s=bB(e),c=t?i:r;return c[s]||(c[s]=er(e,t,n??0,UF(o,Un),UF(a)))}function Wn(e,t){return Hn(e)&&!function(e,t){return t?!!(null==g?void 0:g.has(e)):!!(null==p?void 0:p.has(e))}(e,t)&&!a.has(e)}function Hn(e,t){return!n||Bf(n,e,N)}function Gn(e,t){switch(e){case"":d=t;break;case"#":u=t;break;default:c??(c=new Map),c.set(e,t)}}function Xn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=qF(n,r,"",i);let a=function(e){switch(e){case"":return d;case"#":return u;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=qF(n,r,268435456===e?"_i":"_n",i);if(Wn(s,n))return a|=e,n?zn(s):t&&jn(s),Gn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=qF(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Wn(s,n))return n?zn(s):t&&jn(s),Gn(o,a),s}}}function Yn(e,t=Wn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=qF(i,o,e,s);if(t(n,i))return i?zn(n):r?jn(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=qF(i,o,e+c,s);if(t(n,i))return i?zn(n):r?jn(n):a.add(n),n;c++}}function Qn(e){return Yn(e,Hn,!0,!1,!1,"","")}function Zn(){return Yn("default",Wn,!1,!1,!1,"","")}function er(e,t,n,r,i){switch(e.kind){case 80:case 81:return Yn(On(e),Wn,!!(16&n),!!(8&n),t,r,i);case 267:case 266:return Fn.assert(!r&&!i&&!t),function(e){const t=On(e.name);return function(e,t){for(let n=t;n&&iy(n,t);n=n.nextContainer)if(E_(n)&&n.locals){const t=n.locals.get(Pc(e));if(t&&3257279&t.flags)return!1}return!0}(t,bt(e,E_))?t:Yn(t,Wn,!1,!1,!1,"","")}(e);case 272:case 278:return Fn.assert(!r&&!i&&!t),function(e){const t=xh(e);return Yn(NE(t)?fp(t.text):"module",Wn,!1,!1,!1,"","")}(e);case 262:case 263:{Fn.assert(!r&&!i&&!t);const o=e.name;return o&&!_u(o)?er(o,!1,n,r,i):Zn()}case 277:return Fn.assert(!r&&!i&&!t),Zn();case 231:return Fn.assert(!r&&!i&&!t),Yn("class",Wn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return qE(e.name)?qn(e.name,t):Xn(0,!1,t,n,r)}(e,t,r,i);case 167:return Xn(0,!0,t,r,i);default:return Xn(0,!1,t,r,i)}}function tr(e,t){const n=Ue(2,e,t),r=te,i=ne,o=re;nr(t),n(e,t),rr(t,r,i,o)}function nr(e){const t=cp(e),n=fw(e);!function(e,t,n,r){ae(),ie=!1;const i=n<0||0!=(1024&t)||12===e.kind,o=r<0||0!=(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||lr(n,359!==e.kind),(!i||n>=0&&0!=(1024&t))&&(te=n),(!o||r>=0&&0!=(2048&t))&&(ne=r,261===e.kind&&(re=r))),w(mw(e),or),se()}(e,t,n.pos,n.end),4096&t&&(oe=!0)}function rr(e,t,n,r){const i=cp(e),o=fw(e);4096&i&&(oe=!1),ir(e,i,o.pos,o.end,t,n,r);const a=Iw(e);a&&ir(e,i,a.pos,a.end,t,n,r)}function ir(e,t,n,r,i,o,a){ae();const s=r<0||0!=(2048&t)||12===e.kind;w(yw(e),ar),(n>0||r>0)&&n!==r&&(te=i,ne=o,re=a,s||359===e.kind||function(e){br(e,mr)}(r)),se()}function or(e){(e.hasLeadingNewline||2===e.kind)&&y.writeLine(),sr(e),e.hasTrailingNewLine||2===e.kind?y.writeLine():y.writeSpace(" ")}function ar(e){y.isAtStartOfLine()||y.writeSpace(" "),sr(e),e.hasTrailingNewLine&&y.writeLine()}function sr(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);fb(t,3===e.kind?ls(t):void 0,y,0,t.length,$)}function cr(e,t,r){ae();const{pos:i,end:o}=t,a=cp(e),s=oe||o<0||0!=(2048&a);i<0||0!=(1024&a)||function(e){const t=n&&db(n.text,Ne(),y,xr,e,$,oe);t&&(C?C.push(t):C=[t])}(t),se(),4096&a&&!oe?(oe=!0,r(e),oe=!1):r(e),ae(),s||(lr(t.end,!0),ie&&!y.isAtStartOfLine()&&y.writeLine()),se()}function lr(e,t){ie=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?vr(e,_r):vr(e,fr):0===e&&vr(e,ur)}function ur(e,t,n,r,i){Sr(e,t)&&fr(e,t,n,r,i)}function _r(e,t,n,r,i){Sr(e,t)||fr(e,t,n,r,i)}function dr(t,n){return!e.onlyPrintJsDocStyle||bI(t,n)||Qf(t,n)}function fr(e,t,r,i,o){n&&dr(n.text,e)&&(ie||(ub(Ne(),y,o,e),ie=!0),Dr(e),fb(n.text,Ne(),y,e,t,$),Dr(t),i?y.writeLine():3===r&&y.writeSpace(" "))}function pr(e){oe||-1===e||lr(e,!0)}function mr(e,t,r,i){n&&dr(n.text,e)&&(y.isAtStartOfLine()||y.writeSpace(" "),Dr(e),fb(n.text,Ne(),y,e,t,$),Dr(t),i&&y.writeLine())}function gr(e,t,n){oe||(ae(),br(e,t?mr:n?hr:yr),se())}function hr(e,t,r){n&&(Dr(e),fb(n.text,Ne(),y,e,t,$),Dr(t),2===r&&y.writeLine())}function yr(e,t,r,i){n&&(Dr(e),fb(n.text,Ne(),y,e,t,$),Dr(t),i?y.writeLine():y.writeSpace(" "))}function vr(e,t){!n||-1!==te&&e===te||(function(e){return void 0!==C&&Be(C).nodePos===e}(e)?function(e){if(!n)return;const t=Be(C).detachedCommentEndPos;C.length-1?C.pop():C=void 0,As(n.text,t,e,t)}(t):As(n.text,e,t,e))}function br(e,t){n&&(-1===ne||e!==ne&&e!==re)&&Ps(n.text,e,t)}function xr(e,t,r,i,o,a){n&&dr(n.text,i)&&(Dr(i),fb(e,t,r,i,o,a),Dr(o))}function Sr(e,t){return!!n&&Yf(n.text,e,t)}function kr(e,t){const n=Ue(3,e,t);Cr(t),n(e,t),wr(t)}function Cr(e){const t=cp(e),n=sw(e);if(ql(e)){Fn.assertIsDefined(e.parent,"UnparsedNodes must have parent pointers");const t=function(e){return void 0===e.parsedSourceMap&&void 0!==e.sourceMapText&&(e.parsedSourceMap=eJ(e.sourceMapText)||!1),e.parsedSourceMap||void 0}(e.parent);t&&x&&x.appendSourceMap(y.getLine(),y.getColumn(),t,e.parent.sourceMapPath,e.parent.getLineAndCharacterOfPosition(e.pos),e.parent.getLineAndCharacterOfPosition(e.end))}else{const r=n.source||S;359!==e.kind&&0==(32&t)&&n.pos>=0&&Nr(n.source||S,Er(r,n.pos)),128&t&&(Q=!0)}}function wr(e){const t=cp(e),n=sw(e);ql(e)||(128&t&&(Q=!1),359!==e.kind&&0==(64&t)&&n.end>=0&&Nr(n.source||S,n.end))}function Er(e,t){return e.skipTrivia?e.skipTrivia(t):Ts(e.text,t)}function Dr(e){if(Q||aT(e)||Pr(S))return;const{line:t,character:n}=gs(S,e);x.addMapping(y.getLine(),y.getColumn(),Z,t,n,void 0)}function Nr(e,t){if(e!==S){const n=S,r=Z;Ar(e),Dr(t),function(e,t){S=e,Z=t}(n,r)}else Dr(t)}function Ar(t){Q||(S=t,t!==k?Pr(t)||(Z=x.addSource(t.fileName),e.inlineSources&&x.setSourceContent(Z,t.text),k=t,ee=Z):Z=ee)}function Pr(e){return Zo(e.fileName,".json")}}function vV(e,t,n,r){t(e)}function bV(e,t,n,r){t(e,n.select(r))}function xV(e,t,n,r){t(e,n)}var SV,kV,TV=S({"src/compiler/emitter.ts"(){gH(),gH(),co(),$$=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),V$={hasGlobalName:Nt,getReferencedExportContainer:Nt,getReferencedImportDeclaration:Nt,getReferencedDeclarationWithCollidingName:Nt,isDeclarationWithCollidingName:Nt,isValueAliasDeclaration:Nt,isReferencedAliasDeclaration:Nt,isTopLevelValueImportEqualsWithEntityName:Nt,getNodeCheckFlags:Nt,isDeclarationVisible:Nt,isLateBound:e=>!1,collectLinkedAliases:Nt,isImplementationOfOverload:Nt,isRequiredInitializedParameter:Nt,isOptionalUninitializedParameterProperty:Nt,isExpandoFunctionDeclaration:Nt,getPropertiesOfContainerFunction:Nt,createTypeOfDeclaration:Nt,createReturnTypeOfSignatureDeclaration:Nt,createTypeOfExpression:Nt,createLiteralConstValue:Nt,isSymbolAccessible:Nt,isEntityNameVisible:Nt,getConstantValue:Nt,getReferencedValueDeclaration:Nt,getReferencedValueDeclarations:Nt,getTypeReferenceSerializationKind:Nt,isOptionalParameter:Nt,moduleExportsSomeValue:Nt,isArgumentsLocalBinding:Nt,getExternalModuleFileFromDeclaration:Nt,getTypeReferenceDirectivesForEntityName:Nt,getTypeReferenceDirectivesForSymbol:Nt,isLiteralConstDeclaration:Nt,getJsxFactoryEntity:Nt,getJsxFragmentFactoryEntity:Nt,getAllAccessorDeclarations:Nt,getSymbolOfExternalModuleSpecifier:Nt,isBindingCapturedByNode:Nt,getDeclarationStatementsForSourceFile:Nt,isImportRequiredByAugmentation:Nt},K$=At((()=>yV({}))),U$=At((()=>yV({removeComments:!0}))),q$=At((()=>yV({removeComments:!0,neverAsciiEscape:!0}))),W$=At((()=>yV({removeComments:!0,omitTrailingSemicolon:!0})))}});function CV(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const r=new Map,i=ln(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=c(o(t));return n&&_(n.sortedAndCanonicalizedFiles,i(l(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=o(t);return r.has(xa(n))||e.directoryExists(t)},getDirectories:function(t){const n=u(t,o(t));return n?n.directories.slice():e.getDirectories(t)},readDirectory:function(r,i,s,c,_){const f=o(r),p=u(r,f);let m;return void 0!==p?Jk(r,i,s,c,n,t,_,(function(e){const t=o(e);if(t===f)return p||g(e,t);const n=u(e,t);return void 0!==n?n||g(e,t):rf}),d):e.readDirectory(r,i,s,c,_);function g(t,n){if(m&&n===f)return m;const r={files:q(e.readDirectory(t,void 0,void 0,["*.*"]),l)||a,directories:e.getDirectories(t)||a};return n===f&&(m=r),r}},createDirectory:e.createDirectory&&function(t){const n=c(o(t));if(n){const e=l(t),r=i(e);ge(n.sortedAndCanonicalizedDirectories,r,Kt)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=c(o(t));return i&&f(i,l(t),!0),e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==s(n))return void p();const r=c(n);if(!r)return;if(!e.directoryExists)return void p();const o=l(t),a={fileExists:e.fileExists(n),directoryExists:e.directoryExists(n)};return a.directoryExists||_(r.sortedAndCanonicalizedDirectories,i(o))?p():f(r,o,a.fileExists),a},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=c(t);r&&f(r,l(e),0===n)},clearCache:p,realpath:e.realpath&&d};function o(e){return va(e,t,i)}function s(e){return r.get(xa(e))}function c(e){const t=s(oa(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t):t}function l(e){return aa(ha(e))}function u(t,n){const i=s(n=xa(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||xa(o(e.realpath(t)))===n){const i={files:q(e.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:e.getDirectories(t)||[]};return r.set(xa(n),i),i}if(null==(i=e.directoryExists)?void 0:i.call(e,t))return r.set(n,!1),!1}(t,n)}catch(e){return void Fn.assert(!r.has(xa(n)))}}function _(e,t){return Ke(e,t,wt,Kt)>=0}function d(t){return e.realpath?e.realpath(t):t}function f(e,t,n){const r=e.sortedAndCanonicalizedFiles,o=i(t);if(n)ge(r,o,Kt)&&e.files.push(t);else{const t=Ke(r,o,wt,Kt);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>i(e)===o));e.files.splice(n,1)}}}function p(){r.clear()}}function wV(e,t,n,r,i){var o;const s=nt((null==(o=null==t?void 0:t.configFile)?void 0:o.extendedSourceFiles)||a,i);n.forEach(((t,n)=>{s.has(n)||(t.projects.delete(e),t.close())})),s.forEach(((t,i)=>{const o=n.get(i);o?o.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{const e=n.get(i);e&&0===e.projects.size&&(e.watcher.close(),n.delete(i))}})}))}function EV(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function DV(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&DV(e,i,n)}))}function NV(e,t,n){Qx(t,new Map(e),{createNewValue:n,onDeleteValue:zx})}function AV(e,t,n){Qx(t,nt(e.getMissingFilePaths(),wt,Tt),{createNewValue:n,onDeleteValue:zx})}function PV(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}Qx(e,t,{createNewValue:r,onDeleteValue:LV,onExistingValue:function(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}})}function FV({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:u}){const _=jU(n);if(!_)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=_)===e)return!1;if(Qo(n)&&!Yk(t,i,a))return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(uL(t,i.configFile.configFileSpecs,ga(oa(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(Lv(i)||i.outDir)return!1;if(QI(n)){if(i.declarationDir)return!1}else if(!ea(n,Gd))return!1;const d=eT(n),f=gt(o)?void 0:function(e){return!!e.getState}(o)?o.getProgramOrUndefined():o,p=f||gt(o)?void 0:o;return!(!m(d+".ts")&&!m(d+".tsx")||(l(`Project: ${r} Detected output file: ${t}`),0));function m(e){return f?!!f.getSourceFileByPath(e):p?p.getState().fileInfos.has(e):!!O(o,(t=>u(t)===e))}}function IV(e,t){return!!e&&e.isEmittedFile(t)}function OV(e,t,n,r){Fo(2===t?n:St);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,0!=(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${u(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${u(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${u(e,i,a,s,c,r)}`;n(l);const _=cr(),d=o.watchDirectory(e,t,i,a,s,c),f=cr()-_;return n(`Elapsed:: ${f}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${u(e,i,a,s,c,r)}`;n(t);const o=cr();d.close();const l=cr()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${u(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${u(e,t,i,o,a,r)}`)}}:nq;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var u;return dL(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(u=e.getCurrentDirectory)?void 0:u.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,((...i)=>{const _=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${u(t,a,s,c,l,r)}`;n(_);const d=cr();o.call(void 0,...i);const f=cr()-d;n(`Elapsed:: ${f}ms ${_}`)}),a,s,c,l)}function u(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function MV(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function LV(e){e.watcher.close()}var RV,jV,BV,JV,zV,$V,VV,KV,UV,qV,WV,HV,GV,XV=S({"src/compiler/watchUtilities.ts"(){gH(),SV=(e=>(e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",e))(SV||{}),kV=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(kV||{})}});function YV(e,t,n="tsconfig.json"){return Ma(e,(e=>{const r=fa(e,n);return t(r)?r:void 0}))}function QV(e,t){const n=oa(t);return ha(Wo(e)?e:fa(n,e))}function ZV(e,t,n){let r;return w(e,(e=>{const i=ma(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e{let a;try{wr("beforeIORead"),a=e(r,t().charset),wr("afterIORead"),Er("I/O Read","beforeIORead","afterIORead")}catch(e){o&&o(e.message),a=""}return void 0!==a?UI(r,a,i,n):void 0}}function nK(e,t,n){return(r,i,o,a)=>{try{wr("beforeIOWrite"),Kv(r,i,o,e,t,n),wr("afterIOWrite"),Er("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function rK(e,t,n=xo){const r=new Map,i=ln(n.useCaseSensitiveFileNames);function o(){return oa(ha(n.getExecutingFilePath()))}const a=hx(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:tK((e=>c.readFile(e)),(()=>e),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>fa(o(),Ys(e)),writeFile:nK(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:At((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:ut(n,n.createHash)};return c}function iK(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,u=new Map,_=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:Zo(n,".json")||G$(n)?d(i,n):r.call(e,n)};const f=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=_.get(s),l=null==c?void 0:c.get(a);if(l)return l;const u=n(e,r,i,o);return u&&(QI(e)||Zo(e,".json"))&&_.set(s,(c||new Map).set(a,u)),u}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),_.forEach((e=>e.delete(o)))):f&&_.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)})),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=u.get(r);if(void 0!==i)return i;const a=o.call(e,n);return u.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);u.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:f,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function oK(e,t,n){let r;return r=we(r,e.getConfigFileParsingDiagnostics()),r=we(r,e.getOptionsDiagnostics(n)),r=we(r,e.getSyntacticDiagnostics(t,n)),r=we(r,e.getGlobalDiagnostics(n)),r=we(r,e.getSemanticDiagnostics(t,n)),dk(e.getCompilerOptions())&&(r=we(r,e.getDeclarationDiagnostics(t,n))),Xs(r||a)}function aK(e,t){let n="";for(const r of e)n+=sK(r,t);return n}function sK(e,t){const n=`${uo(e)} TS${e.code}: ${fK(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=gs(e.file,e.start);return`${Fa(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}function cK(e){switch(e){case 1:return"";case 0:return"";case 2:return Fn.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function lK(e,t){return t+e+JV}function uK(e,t,n,r,i,o){const{line:a,character:s}=gs(e,t),{line:c,character:l}=gs(e,t+n),u=gs(e,e.text.length).line,_=c-a>=4;let d=(c+1+"").length;_&&(d=Math.max(zV.length,d));let f="";for(let t=a;t<=c;t++){f+=o.getNewLine(),_&&a+1n.getCanonicalFileName(e))):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function dK(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=_K(e,i,t),n+=" - "}if(n+=lK(uo(r),cK(r.category)),n+=lK(` TS${r.code}: `,""),n+=fK(r.messageText,t.getNewLine()),r.file&&r.code!==Ra.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=uK(r.file,r.start,r.length,"",cK(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=$V+_K(e,i,t),n+=uK(e,i,o,VV,"",t)),n+=t.getNewLine(),n+=VV+fK(a,t.getNewLine())}n+=t.getNewLine()}return n}function fK(e,t,n=0){if(yt(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;edR(o,e,n,r,i,t,a)}}function xK(e){return yt(e)?e:Dt(e.fileName)}function SK(e,t,n,r,i){return{nameAndMode:qV,resolve:(o,a)=>qL(o,e,n,r,t,i,a)}}function kK(e,t,n,r,i,o,s,c){if(0===e.length)return a;const l=[],u=new Map,_=c(t,n,r,o,s);for(const t of e){const e=_.nameAndMode.getName(t),n=_.nameAndMode.getMode(t,i),r=tR(e,n);let o=u.get(r);o||u.set(r,o=_.resolve(e,n)),l.push(o)}return l}function TK(e,t){return CK(void 0,e,((e,n)=>e&&t(e,n)))}function CK(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}return w(o,((t,r)=>{if(t&&(null==i?void 0:i.has(t.sourceFile.path)))return;const o=n(t,a,r);return o||!t?o:((i||(i=new Set)).add(t.sourceFile.path),e(t.commandLine.projectReferences,t.references,t))}))}(e,t,void 0)}function wK(e,t,n){return fa(e.configFilePath?oa(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function EK(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function DK(e){const t=Dt(e.fileName);return{libName:t,libFileName:uO.get(t)}}function NK(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function AK(e){return void 0!==e.pos}function PK(e,t){var n,r,i,o,a,s;const c=Fn.checkDefined(e(t.file)),{kind:l,index:u}=t;let _,d,f,p;switch(l){case 3:const e=KK(c,u);if(f=null==(i=null==(r=null==(n=c.resolvedModules)?void 0:n.get(e.text,mK(c,u)))?void 0:r.resolvedModule)?void 0:i.packageId,-1===e.pos)return{file:c,packageId:f,text:e.text};_=Ts(c.text,e.pos),d=e.end;break;case 4:({pos:_,end:d}=c.referencedFiles[u]);break;case 5:({pos:_,end:d,resolutionMode:p}=c.typeReferenceDirectives[u]),f=null==(s=null==(a=null==(o=c.resolvedTypeReferenceDirectiveNames)?void 0:o.get(Dt(c.typeReferenceDirectives[u].fileName),p||c.impliedNodeFormat))?void 0:a.resolvedTypeReferenceDirective)?void 0:s.packageId;break;case 7:({pos:_,end:d}=c.libReferenceDirectives[u]);break;default:return Fn.assertNever(l)}return{file:c,pos:_,end:d,packageId:f}}function FK(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!be(e.getRootFileNames(),t))return!1;let u;if(!be(e.getProjectReferences(),l,(function(t,n,r){return Tf(t,n)&&d(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;if(e.getMissingFilePaths().some(i))return!1;const _=e.getCompilerOptions();return!(!Gx(_,n)||e.resolvedLibReferences&&mf(e.resolvedLibReferences,((e,t)=>a(t)))||_.configFile&&n.configFile&&_.configFile.text!==n.configFile.text);function d(e,t){if(e){if(B(u,e))return!0;const n=zK(t),r=c(n);return!!r&&e.commandLine.options.configFile===r.options.configFile&&!!be(e.commandLine.fileNames,r.fileNames)&&((u||(u=[])).push(e),!w(e.references,((t,n)=>!d(t,e.commandLine.projectReferences[n]))))}const n=zK(t);return!c(n)}}function IK(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function OK(e,t,n,r){const i=MK(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function MK(e,t,n,r){switch(YS(r)){case 3:case 99:return ea(e,[".d.mts",".mts",".mjs"])?99:ea(e,[".d.cts",".cts",".cjs"])?1:ea(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=OR(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=MR(e,i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0;default:return}}function LK(t,n,r,i,o){var s,c,l,u,_,d,f,p,m,g,h,y,v,b,x,S;const k=gt(t)?function(e,t,n,r,i,o){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:void 0}}(t,n,r,i,o):t,{rootNames:T,options:C,configFileParsingDiagnostics:E,projectReferences:D,typeScriptVersion:A}=k;let{oldProgram:P}=k;const F=At((()=>Ln("ignoreDeprecations",Ra.Invalid_value_for_ignoreDeprecations)));let I,M,R,j,J,z,$;const K=new Map;let U=_t();const q={},W={};let H,Y,Q,Z,ee,re,ie=nR();const oe="number"==typeof C.maxNodeModuleJsDepth?C.maxNodeModuleJsDepth:0;let ae=0;const se=new Map,ce=new Map;null==(s=Br)||s.push(Br.Phase.Program,"createProgram",{configFilePath:C.configFilePath,rootDir:C.rootDir},!0),wr("beforeProgram");const ue=k.host||eK(C),de=BK(ue);let fe=C.noLib;const pe=At((()=>ue.getDefaultLibFileName(C))),me=ue.getDefaultLibLocation?ue.getDefaultLibLocation():oa(pe()),ge=uv(),he=ue.getCurrentDirectory(),ye=Uk(C),ve=qk(C,ye),xe=new Map;let Se,Te,Ce;const we=ue.hasInvalidatedResolutions||kt;let Ee;if(ue.resolveModuleNameLiterals?(Ce=ue.resolveModuleNameLiterals.bind(ue),Te=null==(c=ue.getModuleResolutionCache)?void 0:c.call(ue)):ue.resolveModuleNames?(Ce=(e,t,n,r,i,o)=>ue.resolveModuleNames(e.map(vK),t,null==o?void 0:o.map(vK),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:lT(e.resolvedFileName)}}:KV)),Te=null==(l=ue.getModuleResolutionCache)?void 0:l.call(ue)):(Te=sR(he,Sn,C),Ce=(e,t,n,r,i)=>kK(e,t,n,r,i,ue,Te,bK)),ue.resolveTypeReferenceDirectiveReferences)Ee=ue.resolveTypeReferenceDirectiveReferences.bind(ue);else if(ue.resolveTypeReferenceDirectives)Ee=(e,t,n,r,i)=>ue.resolveTypeReferenceDirectives(e.map(xK),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=cR(he,Sn,void 0,null==Te?void 0:Te.getPackageJsonInfoCache());Ee=(t,n,r,i,o)=>kK(t,n,r,i,o,ue,e,SK)}const De=ue.hasInvalidatedLibResolutions||kt;let Ne;if(ue.resolveLibrary)Ne=ue.resolveLibrary.bind(ue);else{const e=sR(he,Sn,C,null==Te?void 0:Te.getPackageJsonInfoCache());Ne=(t,n,r)=>uR(t,n,r,ue,e)}const Ae=new Map;let Pe=new Map,Ie=_t(),Oe=!1;const Me=new Map;let Le;const Re=ue.useCaseSensitiveFileNames()?new Map:void 0;let je,Be,Je,ze;const $e=!!(null==(u=ue.useSourceOfProjectReferenceRedirect)?void 0:u.call(ue))&&!C.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ve,fileExists:Ke,directoryExists:Ue}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:St,fileExists:s};let a;return e.compilerHost.fileExists=s,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(function(t){var n;if(!e.getResolvedProjectReferences()||JT(t))return;if(!o||!nn(t,wL))return;const r=e.getSymlinkCache(),i=xa(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=ha(o.call(e.compilerHost,t));let s;a!==t&&(s=xa(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:xa(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=Lv(n.commandLine.options);if(r)t.add(oa(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),c(n,!1))),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)}),{onProgramCreateComplete:function(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i},fileExists:s,directoryExists:a};function s(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&!!QI(t)&&c(t,!0)}function c(r,i){var o;const a=i?t=>function(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!yt(r)||n.call(e.compilerHost,r):void 0}(t):n=>function(n){const r=e.toPath(n),i=`${r}${Bo}`;return gf(t,(e=>r===e||fn(e,i)||fn(r,`${e}/`)))}(n),s=a(r);if(void 0!==s)return s;const c=e.getSymlinkCache(),l=c.getSymlinkedDirectories();if(!l)return!1;const u=e.toPath(r);return!!nn(u,wL)&&(!(!i||!(null==(o=c.getSymlinkedFiles())?void 0:o.has(u)))||N(l.entries(),(([t,n])=>{if(!n||!fn(u,t))return;const o=a(u.replace(t,n.realPath));if(i&&o){const i=ga(r,e.compilerHost.getCurrentDirectory());c.setSymlinkedFile(u,`${n.real}${i.replace(new RegExp(t,"i"),"")}`)}return o}))||!1)}}({compilerHost:ue,getSymlinkCache:Un,useSourceOfProjectReferenceRedirect:$e,toPath:at,getResolvedProjectReferences:pt,getSourceOfProjectReferenceRedirect:_n,forEachResolvedProjectReference:un}),qe=ue.readFile.bind(ue);null==(_=Br)||_.push(Br.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!P});const He=function(e,t){return!!e&&ff(e.getCompilerOptions(),t,xO)}(P,C);let Ge;if(null==(d=Br)||d.pop(),null==(f=Br)||f.push(Br.Phase.Program,"tryReuseStructureFromOldProgram",{}),Ge=function(){var e;if(!P)return 0;const t=P.getCompilerOptions();if(uf(t,C))return 0;if(!be(P.getRootFileNames(),T))return 0;if(CK(P.getProjectReferences(),P.getResolvedProjectReferences(),((e,t,n)=>{const r=Tn((t?t.commandLine.projectReferences:D)[n]);return e?!r||r.sourceFile!==e.sourceFile||!be(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!be(e,t?mn(t.sourceFile.path).commandLine.projectReferences:D,Tf))))return 0;D&&(je=D.map(Tn));const n=[],r=[];if(Ge=2,P.getMissingFilePaths().some((e=>ue.fileExists(e))))return 0;const i=P.getSourceFiles();let o;var a;(a=o||(o={}))[a.Exists=0]="Exists",a[a.Modified=1]="Modified";const s=new Map;for(const t of i){const i=tn(t.fileName,Te,ue,C);let o,a=ue.getSourceFileByPath?ue.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,He):ue.getSourceFile(t.fileName,i,void 0,He);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,Fn.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(P.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=P.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}o?(t.impliedNodeFormat!==a.impliedNodeFormat?Ge=1:be(t.libReferenceDirectives,a.libReferenceDirectives,Kt)?t.hasNoDefaultLib!==a.hasNoDefaultLib?Ge=1:be(t.referencedFiles,a.referencedFiles,Kt)?(Wt(a),be(t.imports,a.imports,Ut)&&be(t.moduleAugmentations,a.moduleAugmentations,Ut)?(12582912&t.flags)!=(12582912&a.flags)?Ge=1:be(t.typeReferenceDirectives,a.typeReferenceDirectives,Kt)||(Ge=1):Ge=1):Ge=1:Ge=1,r.push({oldFile:t,newFile:a})):we(t.path)&&(Ge=1,r.push({oldFile:t,newFile:a})),n.push(a)}if(2!==Ge)return Ge;const c=r.map((e=>e.oldFile));for(const e of i)if(!B(c,e))for(const t of e.ambientModuleNames)K.set(t,e.fileName);for(const{oldFile:e,newFile:t}of r){const n=VK(t),r=ct(n,t);Af(n,t,r,e.resolvedModules,Cf,UV)?(Ge=1,t.resolvedModules=rR(t,n,r,UV)):t.resolvedModules=e.resolvedModules;const i=t.typeReferenceDirectives,o=lt(i,t);Af(i,t,o,e.resolvedTypeReferenceDirectiveNames,Nf,qV)?(Ge=1,t.resolvedTypeReferenceDirectiveNames=rR(t,i,o,qV)):t.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames}if(2!==Ge)return Ge;if(df(t,C))return 1;if(P.resolvedLibReferences&&mf(P.resolvedLibReferences,((e,t)=>bn(t).actual!==e.actual)))return 1;if(ue.hasChangedAutomaticTypeDirectiveNames){if(ue.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Y=XL(C,ue),!be(P.getAutomaticTypeDirectiveNames(),Y))return 1;Le=P.getMissingFilePaths(),Fn.assert(n.length===P.getSourceFiles().length);for(const e of n)Me.set(e.path,e);return P.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?Me.set(t,Me.get(e.path)):P.isSourceFileFromExternalLibrary(e)&&ce.set(e.path,!0):Me.set(t,e)})),R=n,U=P.getFileIncludeReasons(),H=P.getFileProcessingDiagnostics(),ie=P.getResolvedTypeReferenceDirectives(),Y=P.getAutomaticTypeDirectiveNames(),Q=P.getAutomaticTypeDirectiveResolutions(),Pe=P.sourceFileToPackageName,Ie=P.redirectTargetsMap,Oe=P.usesUriStyleNodeCoreModules,Z=P.resolvedLibReferences,re=P.getCurrentPackagesMap(),2}(),null==(p=Br)||p.pop(),2!==Ge){if(I=[],M=[],D&&(je||(je=D.map(Tn)),T.length&&(null==je||je.forEach(((e,t)=>{if(!e)return;const n=Lv(e.commandLine.options);if($e){if(n||0===GS(e.commandLine.options))for(const n of e.commandLine.fileNames)Xt(n,{kind:1,index:t})}else if(n)Xt(rT(n,".d.ts"),{kind:2,index:t});else if(0===GS(e.commandLine.options)){const n=At((()=>lV(e.commandLine,!ue.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)QI(r)||Zo(r,".json")||Xt(rV(r,e.commandLine,!ue.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(m=Br)||m.push(Br.Phase.Program,"processRootFiles",{count:T.length}),w(T,((e,t)=>Vt(e,!1,!1,{kind:0,index:t}))),null==(g=Br)||g.pop(),Y??(Y=T.length?XL(C,ue):a),Q=nR(),Y.length){null==(h=Br)||h.push(Br.Phase.Program,"processTypeReferences",{count:Y.length});const e=fa(C.configFilePath?oa(C.configFilePath):he,WV),t=lt(Y,e);for(let e=0;e{Vt(vn(e),!0,!1,{kind:6,index:t})}))}Le=Ze(ne(Me.entries(),(([e,t])=>void 0===t?e:void 0))),R=Fe(I,(function(e,t){return Bt(ot(e),ot(t))})).concat(M),I=void 0,M=void 0}if(Fn.assert(!!Le),P&&ue.onReleaseOldSourceFile){const e=P.getSourceFiles();for(const t of e){const e=Tt(t.resolvedPath);(He||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&ue.onReleaseOldSourceFile(t,P.getCompilerOptions(),!!Tt(t.path))}ue.getParsedCommandLine||P.forEachResolvedProjectReference((e=>{mn(e.sourceFile.path)||ue.onReleaseOldSourceFile(e.sourceFile,P.getCompilerOptions(),!1)}))}P&&ue.onReleaseParsedCommandLine&&CK(P.getProjectReferences(),P.getResolvedProjectReferences(),((e,t,n)=>{const r=zK((null==t?void 0:t.commandLine.projectReferences[n])||P.getProjectReferences()[n]);(null==Be?void 0:Be.has(at(r)))||ue.onReleaseParsedCommandLine(r,e,P.getCompilerOptions())})),P=void 0,ee=void 0;const Xe={getRootFileNames:()=>T,getSourceFile:xt,getSourceFileByPath:Tt,getSourceFiles:()=>R,getMissingFilePaths:()=>Le,getModuleResolutionCache:()=>Te,getFilesByNameMap:()=>Me,getCompilerOptions:()=>C,getSyntacticDiagnostics:function(e,t){return Ct(e,Nt,t)},getOptionsDiagnostics:function(){return Xs(_e(ge.getGlobalDiagnostics(),function(){if(!C.configFile)return a;let e=ge.getDiagnostics(C.configFile.fileName);return un((t=>{e=_e(e,ge.getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return T.length?Xs(vt().getGlobalDiagnostics().slice()):a},getSemanticDiagnostics:function(e,t){return Ct(e,Ft,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null==(t=q.perFile)?void 0:t.get(e.path):q.allDiagnostics},getSuggestionDiagnostics:function(e,t){return Pt((()=>vt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){const n=Xe.getCompilerOptions();return!e||Lv(n)?jt(e,t):Ct(e,$t,t)},getBindAndCheckDiagnostics:function(e,t){return It(e,t)},getProgramDiagnostics:Et,getTypeChecker:vt,getClassifiableNames:function(){var e;if(!$){vt(),$=new Set;for(const t of R)null==(e=t.classifiableNames)||e.forEach((e=>$.add(e)))}return $},getCommonSourceDirectory:st,emit:function(e,t,n,r,i,o){var a,s;null==(a=Br)||a.push(Br.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const c=Pt((()=>function(e,t,n,r,i,o,a){if(!a){const i=RK(e,t,n,r);if(i)return i}const s=vt().getEmitResolver(Lv(C)?void 0:t,r);wr("beforeEmit");const c=fV(s,dt(n),t,I$(C,o,i),i,!1,a);return wr("afterEmit"),Er("Emit","beforeEmit","afterEmit"),c}(Xe,e,t,n,r,i,o)));return null==(s=Br)||s.pop(),c},getCurrentDirectory:()=>he,getNodeCount:()=>vt().getNodeCount(),getIdentifierCount:()=>vt().getIdentifierCount(),getSymbolCount:()=>vt().getSymbolCount(),getTypeCount:()=>vt().getTypeCount(),getInstantiationCount:()=>vt().getInstantiationCount(),getRelationCacheSizes:()=>vt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>H,getResolvedTypeReferenceDirectives:()=>ie,getAutomaticTypeDirectiveNames:()=>Y,getAutomaticTypeDirectiveResolutions:()=>Q,isSourceFileFromExternalLibrary:ht,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(!C.noLib)return!1;const t=ue.useCaseSensitiveFileNames()?Rt:Lt;return C.lib?le(C.lib,(n=>t(e.fileName,Z.get(n).actual))):t(e.fileName,pe())},getSourceFileFromReference:function(e,t){return Ht(QV(t.fileName,e.fileName),xt)},getLibFileFromReference:function(e){var t;const{libFileName:n}=DK(e),r=n&&(null==(t=null==Z?void 0:Z.get(n))?void 0:t.actual);return void 0!==r?xt(r):void 0},sourceFileToPackageName:Pe,redirectTargetsMap:Ie,usesUriStyleNodeCoreModules:Oe,resolvedLibReferences:Z,getCurrentPackagesMap:()=>re,typesPackageExists:function(e){return Ye().has(ZR(e))},packageBundlesTypes:function(e){return!!Ye().get(e)},isEmittedFile:function(e){if(C.noEmit)return!1;const t=at(e);if(Tt(t))return!1;const n=Lv(C);if(n)return Kn(t,n)||Kn(t,eT(n)+".d.ts");if(C.declarationDir&&Da(C.declarationDir,t,he,!ue.useCaseSensitiveFileNames()))return!0;if(C.outDir)return Da(C.outDir,t,he,!ue.useCaseSensitiveFileNames());if(ea(t,Gd)||QI(t)){const e=eT(t);return!!Tt(e+".ts")||!!Tt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return E||a},getProjectReferences:function(){return D},getResolvedProjectReferences:pt,getProjectReferenceRedirect:an,getResolvedProjectReferenceToRedirect:ln,getResolvedProjectReferenceByPath:mn,forEachResolvedProjectReference:un,isSourceOfProjectReferenceRedirect:dn,emitBuildInfo:function(e){var t,n;Fn.assert(!Lv(C)),null==(t=Br)||t.push(Br.Phase.Emit,"emitBuildInfo",{},!0),wr("beforeEmit");const r=fV(V$,dt(e),void 0,A$,!1,!0);return wr("afterEmit"),Er("Emit","beforeEmit","afterEmit"),null==(n=Br)||n.pop(),r},fileExists:Ke,readFile:qe,directoryExists:Ue,getSymlinkCache:Un,realpath:null==(x=ue.realpath)?void 0:x.bind(ue),useCaseSensitiveFileNames:()=>ue.useCaseSensitiveFileNames(),getCanonicalFileName:Sn,getFileIncludeReasons:()=>U,structureIsReused:Ge,writeFile:ft};return Ve(),null==H||H.forEach((e=>{switch(e.kind){case 1:return ge.add(wn(e.file&&Tt(e.file),e.fileProcessingReason,e.diagnostic,e.args||a));case 0:const{file:t,pos:n,end:r}=PK(Tt,e.reason);return ge.add(IS(t,Fn.checkDefined(n),Fn.checkDefined(r)-n,e.diagnostic,...e.args||a));case 2:return e.diagnostics.forEach((e=>ge.add(e)));default:Fn.assertNever(e)}})),function(){C.strictPropertyInitialization&&!mk(C,"strictNullChecks")&&Mn(Ra.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),C.exactOptionalPropertyTypes&&!mk(C,"strictNullChecks")&&Mn(Ra.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(C.isolatedModules||C.verbatimModuleSyntax)&&(C.out&&Mn(Ra.Option_0_cannot_be_specified_with_option_1,"out",C.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),C.outFile&&Mn(Ra.Option_0_cannot_be_specified_with_option_1,"outFile",C.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),C.inlineSourceMap&&(C.sourceMap&&Mn(Ra.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),C.mapRoot&&Mn(Ra.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),C.composite&&(!1===C.declaration&&Mn(Ra.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===C.incremental&&Mn(Ra.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=Lv(C);if(C.tsBuildInfoFile?pk(C)||Mn(Ra.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!C.incremental||e||C.configFilePath||ge.add(MS(Ra.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Cn("5.0","5.5",(function(e,t,n,r,...i){if(n){const o=RS(void 0,Ra.Use_0_instead,n);jn(!t,e,void 0,RS(o,r,...i))}else jn(!t,e,void 0,r,...i)}),(e=>{0===C.target&&e("target","ES3"),C.noImplicitUseStrict&&e("noImplicitUseStrict"),C.keyofStringsOnly&&e("keyofStringsOnly"),C.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),C.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),C.noStrictGenericChecks&&e("noStrictGenericChecks"),C.charset&&e("charset"),C.out&&e("out",void 0,"outFile"),C.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),C.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")})),function(){const e=C.suppressOutputPathCheck?void 0:Y$(C);CK(D,je,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:D)[r],o=n&&n.sourceFile;if(function(e,t,n){Cn("5.0","5.5",(function(e,r,i,o,...a){Rn(t,n,o,...a)}),(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Rn(o,r,Ra.File_0_not_found,i.path);const a=t.commandLine.options;if(a.composite&&!a.noEmit||(n?n.commandLine.fileNames:T).length&&(a.composite||Rn(o,r,Ra.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Rn(o,r,Ra.Referenced_project_0_may_not_disable_emit,i.path)),i.prepend){const e=Lv(a);e?ue.fileExists(e)||Rn(o,r,Ra.Output_file_0_from_project_1_does_not_exist,e,i.path):Rn(o,r,Ra.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}!n&&e&&e===Y$(a)&&(Rn(o,r,Ra.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),xe.set(at(e),!0))}))}(),C.composite){const e=new Set(T.map(at));for(const t of R)Bv(t,Xe)&&!e.has(t.path)&&Dn(t,Ra.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,C.configFilePath||""])}if(C.paths)for(const e in C.paths)if(We(C.paths,e))if(wk(e)||An(!0,e,Ra.Pattern_0_can_have_at_most_one_Asterisk_character,e),gt(C.paths[e])){const t=C.paths[e].length;0===t&&An(!1,e,Ra.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nHI(e)&&!e.isDeclarationFile));if(C.isolatedModules||C.verbatimModuleSyntax)0===C.module&&t<2&&C.isolatedModules&&Mn(Ra.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===C.preserveConstEnums&&Mn(Ra.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,C.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===C.module){const e=im(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);ge.add(IS(n,e.start,e.length,Ra.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!C.emitDeclarationOnly)if(C.module&&2!==C.module&&4!==C.module)Mn(Ra.Only_amd_and_system_modules_are_supported_alongside_0,C.out?"out":"outFile","module");else if(void 0===C.module&&n){const e=im(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);ge.add(IS(n,e.start,e.length,Ra.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,C.out?"out":"outFile"))}if(_k(C)&&(1===YS(C)?Mn(Ra.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):ZS(C)||Mn(Ra.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),C.outDir||C.rootDir||C.sourceRoot||C.mapRoot){const e=st();C.outDir&&""===e&&R.some((e=>ia(e.fileName)>1))&&Mn(Ra.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}C.useDefineForClassFields&&0===t&&Mn(Ra.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),C.checkJs&&!gk(C)&&ge.add(MS(Ra.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),C.emitDeclarationOnly&&(dk(C)||Mn(Ra.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),C.noEmit&&Mn(Ra.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),C.emitDecoratorMetadata&&!C.experimentalDecorators&&Mn(Ra.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),C.jsxFactory?(C.reactNamespace&&Mn(Ra.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==C.jsx&&5!==C.jsx||Mn(Ra.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",sO.get(""+C.jsx)),qI(C.jsxFactory,t)||Ln("jsxFactory",Ra.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,C.jsxFactory)):C.reactNamespace&&!Js(C.reactNamespace,t)&&Ln("reactNamespace",Ra.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,C.reactNamespace),C.jsxFragmentFactory&&(C.jsxFactory||Mn(Ra.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==C.jsx&&5!==C.jsx||Mn(Ra.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",sO.get(""+C.jsx)),qI(C.jsxFragmentFactory,t)||Ln("jsxFragmentFactory",Ra.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,C.jsxFragmentFactory)),C.reactNamespace&&(4!==C.jsx&&5!==C.jsx||Mn(Ra.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",sO.get(""+C.jsx))),C.jsxImportSource&&2===C.jsx&&Mn(Ra.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",sO.get(""+C.jsx)),C.preserveValueImports&&GS(C)<5&&Mn(Ra.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const r=GS(C);C.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Mn(Ra.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),C.preserveValueImports&&$n("preserveValueImports","verbatimModuleSyntax"),C.importsNotUsedAsValues&&$n("importsNotUsedAsValues","verbatimModuleSyntax")),!C.allowImportingTsExtensions||C.noEmit||C.emitDeclarationOnly||Ln("allowImportingTsExtensions",Ra.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=YS(C);if(C.resolvePackageJsonExports&&!sk(i)&&Mn(Ra.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),C.resolvePackageJsonImports&&!sk(i)&&Mn(Ra.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),C.customConditions&&!sk(i)&&Mn(Ra.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),100!==i||XS(r)||Ln("moduleResolution",Ra.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),Ji[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=Ji[r];Ln("moduleResolution",Ra.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,e,e)}else if(Mi[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=Mi[i];Ln("module",Ra.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!C.noEmit&&!C.suppressOutputPathCheck){const e=dt(),t=new Set;X$(e,(e=>{C.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=at(e);if(Me.has(n)){let t;C.configFilePath||(t=RS(void 0,Ra.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=RS(t,Ra.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Vn(e,LS(t))}const r=ue.useCaseSensitiveFileNames()?n:Dt(n);t.has(r)?Vn(e,MS(Ra.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),wr("afterProgram"),Er("Program","beforeProgram","afterProgram"),null==(S=Br)||S.pop(),Xe;function Ye(){return re||(re=new Map,R.forEach((e=>{e.resolvedModules&&e.resolvedModules.forEach((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&re.set(e.packageId.name,".d.ts"===e.extension||!!re.get(e.packageId.name))}))})),re)}function Qe(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(H??(H=[])).push({kind:2,diagnostics:e.resolutionDiagnostics})}function et(e,t,n,r){if(ue.resolveModuleNameLiterals||!ue.resolveModuleNames)return Qe(n);if(!Te||Gs(t))return;const i=oa(ga(e.originalFileName,he)),o=rt(e),a=Te.getFromNonRelativeNameCache(t,r,i,o);a&&Qe(a)}function tt(e,t,n){var r,i;if(!e.length)return a;const o=ga(t.originalFileName,he),s=rt(t);null==(r=Br)||r.push(Br.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),wr("beforeResolveModule");const c=Ce(e,o,s,C,t,n);return wr("afterResolveModule"),Er("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=Br)||i.pop(),c}function nt(e,t,n){var r,i;if(!e.length)return[];const o=yt(t)?void 0:t,a=yt(t)?t:ga(t.originalFileName,he),s=o&&rt(o);null==(r=Br)||r.push(Br.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),wr("beforeResolveTypeReference");const c=Ee(e,a,s,C,o,n);return wr("afterResolveTypeReference"),Er("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Br)||i.pop(),c}function rt(e){const t=ln(e.originalFileName);if(t||!QI(e.originalFileName))return t;const n=it(e.path);if(n)return n;if(!ue.realpath||!C.preserveSymlinks||!nn(e.originalFileName,wL))return;const r=at(ue.realpath(e.originalFileName));return r===e.path?void 0:it(r)}function it(e){const t=_n(e);return yt(t)?ln(t):t?un((t=>{const n=Lv(t.commandLine.options);if(n)return at(n)===e?t:void 0})):void 0}function ot(e){if(Da(me,e.fileName,!1)){const t=aa(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=en(pn(t,"lib."),".d.ts"),r=lO.indexOf(n);if(-1!==r)return r+1}return lO.length+2}function at(e){return va(e,he,Sn)}function st(){if(void 0===J){const e=V(R,(e=>Bv(e,Xe)));J=cV(C,(()=>te(e,(e=>e.isDeclarationFile?void 0:e.fileName))),he,Sn,(t=>function(e,t){let n=!0;const r=ue.getCanonicalFileName(ga(t,he));for(const i of e)i.isDeclarationFile||0!==ue.getCanonicalFileName(ga(i.fileName,he)).indexOf(r)&&(Dn(i,Ra.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1);return n}(e,t)))}return J}function ct(e,t){var n;if(0===Ge&&!t.ambientModuleNames.length)return tt(e,t,void 0);const r=P&&P.getSourceFile(t.fileName);if(r!==t&&t.resolvedModules){const n=[];for(const r of e){const e=t.resolvedModules.get(r.text,hK(t,r));n.push(e)}return n}let i,o,s;const c=KV;for(let a=0;ahe,getSourceFile:Xe.getSourceFile,getSourceFileByPath:Xe.getSourceFileByPath,getSourceFiles:Xe.getSourceFiles,getLibFileFromReference:Xe.getLibFileFromReference,isSourceFileFromExternalLibrary:ht,getResolvedProjectReferenceToRedirect:ln,getProjectReferenceRedirect:an,isSourceOfProjectReferenceRedirect:dn,getSymlinkCache:Un,writeFile:e||ft,isEmitBlocked:bt,readFile:e=>ue.readFile(e),fileExists:e=>{const t=at(e);return!!Tt(t)||!B(Le,t)&&ue.fileExists(e)},useCaseSensitiveFileNames:()=>ue.useCaseSensitiveFileNames(),getBuildInfo:e=>{var t;return null==(t=Xe.getBuildInfo)?void 0:t.call(Xe,e)},getSourceFileFromReference:(e,t)=>Xe.getSourceFileFromReference(e,t),redirectTargetsMap:Ie,getFileIncludeReasons:Xe.getFileIncludeReasons,createHash:ut(ue,ue.createHash)}}function ft(e,t,n,r,i,o){ue.writeFile(e,t,n,r,i,o)}function pt(){return je}function mt(){return JK(D,((e,t)=>{var n;return null==(n=je[t])?void 0:n.commandLine}),(e=>{const t=at(e),n=Tt(t);return n?n.text:Me.has(t)?void 0:ue.readFile(t)}),ue)}function ht(e){return!!ce.get(e.path)}function vt(){return z||(z=kB(Xe))}function bt(e){return xe.has(at(e))}function xt(e){return Tt(at(e))}function Tt(e){return Me.get(e)||void 0}function Ct(e,t,n){return Xs(e?t(e,n):X(Xe.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function Et(e){var t;if(vT(e,C,Xe))return a;const n=ge.getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Mt(e,e.commentDirectives,n).diagnostics:n}function Nt(e){return Ng(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Pt((()=>{const t=[];return n(e,e),$I(e,n,(function(e,n){if(AF(n)){const e=O(n.modifiers,_D);e&&t.push(i(e,Ra.Decorators_are_not_valid_here))}else if(rI(n)&&n.modifiers){const e=L(n.modifiers,_D);if(e>=0)if(uD(n)&&!C.experimentalDecorators)t.push(i(n.modifiers[e],Ra.Decorators_are_not_valid_here));else if(QN(n)){const r=L(n.modifiers,HE);if(r>=0){const o=L(n.modifiers,GE);if(e>r&&o>=0&&e=0&&e=0&&t.push(mT(i(n.modifiers[o],Ra.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),i(n.modifiers[e],Ra.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(r(e,Ra.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return function(e,n){for(const r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(i(r,Ra.The_0_modifier_can_only_be_used_in_TypeScript_files,ss(r.kind)))}}(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)vu(n)&&126!==n.kind&&129!==n.kind&&t.push(i(n,Ra.The_0_modifier_can_only_be_used_in_TypeScript_files,ss(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&le(e,vu))return t.push(r(e,Ra.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(r(e,Ra.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(i(e,Ra.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(i(e,Ra.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(i(n,Ra._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(i(e,Ra._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(i(e,Ra._0_declarations_can_only_be_used_in_TypeScript_files,mA(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(i(e,Ra.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(e.isExportEquals)return t.push(i(e,Ra.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(i(e,Ra.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=ss(120);return Fn.assertIsDefined(r),t.push(i(e,Ra._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const o=32&e.flags?ss(145):ss(144);return Fn.assertIsDefined(o),t.push(i(e,Ra._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 265:return t.push(i(e,Ra.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(i(e,Ra.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const a=Fn.checkDefined(ss(94));return t.push(i(e,Ra._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 235:return t.push(i(e,Ra.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(i(e.type,Ra.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(i(e.type,Ra.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:Fn.fail()}}function r(t,n,...r){const i=t.pos;return IS(e,i,t.end-i,n,...r)}function i(t,n,...r){return Hp(e,t,n,...r)}}))}(e)),_e(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Pt(e){try{return e()}catch(e){throw e instanceof Qr&&(z=void 0),e}}function Ft(e,t){return _e(jK(It(e,t),C),Et(e))}function It(e,t){return zt(e,t,q,Ot)}function Ot(e,t){return Pt((()=>{if(vT(e,C,Xe))return a;const n=vt();Fn.assert(!!e.bindDiagnostics);const r=(1===e.scriptKind||2===e.scriptKind)&&dT(e,C),i=Of(e,C.checkJs),o=!(e.checkJsDirective&&!1===e.checkJsDirective.enabled)&&(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind||i||r||7===e.scriptKind);let s=o?e.bindDiagnostics:a,c=o?n.getDiagnostics(e,t):a;return i&&(s=V(s,(e=>HV.has(e.code))),c=V(c,(e=>HV.has(e.code)))),function(e,t,...n){var r;const i=G(n);if(!t||!(null==(r=e.commentDirectives)?void 0:r.length))return i;const{diagnostics:o,directives:a}=Mt(e,e.commentDirectives,i);for(const t of a.getUnusedExpectations())o.push(tm(e,t.range,Ra.Unused_ts_expect_error_directive));return o}(e,o&&!i,s,c,r?e.jsDocDiagnostics:void 0)}))}function Mt(e,t,n){const r=Zf(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=ds(n);let o=fs(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^(\s*)\/\/(.*)$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function jt(e,t){return zt(e,t,W,Jt)}function Jt(e,t){return Pt((()=>{const n=vt().getEmitResolver(e,t);return T$(dt(St),n,e)||a}))}function zt(e,t,n,r){var i;const o=e?null==(i=n.perFile)?void 0:i.get(e.path):n.allDiagnostics;if(o)return o;const a=r(e,t);return e?(n.perFile||(n.perFile=new Map)).set(e.path,a):n.allDiagnostics=a,a}function $t(e,t){return e.isDeclarationFile?[]:jt(e,t)}function Vt(e,t,n,r){Gt(ha(e),t,n,void 0,r)}function Kt(e,t){return e.fileName===t.fileName}function Ut(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function qt(e,t){const n=FC.createStringLiteral(e),r=FC.createImportDeclaration(void 0,void 0,n,void 0);return aw(r,2),OT(n,r),OT(r,t),n.flags&=-17,r.flags&=-17,n}function Wt(e){if(e.imports)return;const t=Ng(e),n=HI(e);let r,i,o;if((ek(C)||n)&&!e.isDeclarationFile){C.importHelpers&&(r=[qt(od,e)]);const t=Ck(Tk(C,e),C);t&&(r||(r=[])).push(qt(t,e))}for(const t of e.statements)c(t,!1);const s=t&&ck(C);return(4194304&e.flags||s)&&function(e){const t=/import|require/g;for(;null!==t.exec(e.text);){const n=l(e,t.lastIndex);s&&Lg(n,!0)||pm(n)&&n.arguments.length>=1&&ed(n.arguments[0])?(LT(n,!1),r=ke(r,n.arguments[0])):gm(n)&&(LT(n,!1),r=ke(r,n.argument.literal))}}(e),e.imports=r||a,e.moduleAugmentations=i||a,void(e.ambientModuleNames=o||a);function c(t,a){if(Lp(t)){const n=xh(t);!(n&&NE(n)&&n.text)||a&&Gs(n.text)||(LT(t,!1),r=ke(r,n),Oe||0!==ae||e.isDeclarationFile||(Oe=fn(n.text,"node:")))}else if(nA(t)&&gp(t)&&(a||vb(t,2)||e.isDeclarationFile)){t.name.parent=t;const r=Jy(t.name);if(n||a&&!Gs(r))(i||(i=[])).push(t.name);else if(!a){e.isDeclarationFile&&(o||(o=[])).push(r);const n=t.body;if(n)for(const e of n.statements)c(e,!0)}}}function l(e,n){let r=e;const i=e=>{if(e.pos<=n&&(nZo(i,e))))return void(n&&(Wk(i)?n(Ra.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(Ra.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+G(ye).join("', '")+"'")));const o=t(e);if(n)if(o)NK(r)&&i===ue.getCanonicalFileName(Tt(r.file).fileName)&&n(Ra.A_file_cannot_have_a_reference_to_itself);else{const t=an(e);t?n(Ra.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(Ra.File_0_not_found,e)}return o}{const r=C.allowNonTsExtensions&&t(e);if(r)return r;if(n&&C.allowNonTsExtensions)return void n(Ra.File_0_not_found,e);const i=w(ye[0],(n=>t(e+n)));return n&&!i&&n(Ra.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+G(ye).join("', '")+"'"),i}}function Gt(e,t,n,r,i){Ht(e,(e=>Zt(e,t,n,i,r)),((e,...t)=>En(void 0,i,e,t)),i)}function Xt(e,t){return Gt(e,!1,!1,void 0,t)}function Qt(e,t,n){!NK(n)&&le(U.get(t.path),NK)?En(t,n,Ra.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):En(t,n,Ra.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function Zt(e,t,n,r,i){var o,a;null==(o=Br)||o.push(Br.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Zr[r.kind]});const s=function(e,t,n,r,i){var o;const a=at(e);if($e){let o=_n(a);if(!o&&ue.realpath&&C.preserveSymlinks&&QI(e)&&nn(e,wL)){const t=at(ue.realpath(e));t!==a&&(o=_n(t))}if(o){const e=yt(o)?Zt(o,t,n,r,i):void 0;return e&&on(e,a,void 0),e}}const s=e;if(Me.has(a)){const n=Me.get(a);if(rn(n||void 0,r),n&&!1!==C.forceConsistentCasingInFileNames){const t=n.fileName;at(t)!==at(e)&&(e=an(e)||e),ya(t,he)!==ya(e,he)&&Qt(e,n,r)}return n&&ce.get(n.path)&&0===ae?(ce.set(n.path,!1),C.noResolve||(gn(n,t),hn(n)),C.noLib||xn(n),se.set(n.path,!1),kn(n)):n&&se.get(n.path)&&aeEn(void 0,r,Ra.Cannot_read_file_0_Colon_1,[e,t])),He);if(i){const t=Df(i),n=Ae.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=uI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,ce.set(r,ae>0),c}(n,u,e,a,at(e),s,l);return Ie.add(n.path,e),on(t,a,c),rn(t,r),Pe.set(a,Ef(i)),M.push(t),t}u&&(Ae.set(t,u),Pe.set(a,Ef(i)))}if(on(u,a,c),u){if(ce.set(a,ae>0),u.fileName=e,u.path=a,u.resolvedPath=at(e),u.originalFileName=s,u.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,u.packageJsonScope=l.packageJsonScope,rn(u,r),ue.useCaseSensitiveFileNames()){const t=Dt(a),n=Re.get(t);n?Qt(e,n,r):Re.set(t,u)}fe=fe||u.hasNoDefaultLib&&!n,C.noResolve||(gn(u,t),hn(u)),C.noLib||xn(u),kn(u),t?I.push(u):M.push(u)}return u}(e,t,n,r,i);return null==(a=Br)||a.pop(),s}function tn(e,t,n,r){const i=MK(ga(e,he),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=HS(r),a=WS(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a}}function rn(e,t){e&&U.add(e.path,t)}function on(e,t,n){n?(Me.set(n,e),Me.set(t,e||!1)):Me.set(t,e)}function an(e){const t=sn(e);return t&&cn(t,e)}function sn(e){if(je&&je.length&&!QI(e)&&!Zo(e,".json"))return ln(e)}function cn(e,t){const n=Lv(e.commandLine.options);return n?rT(n,".d.ts"):rV(t,e.commandLine,!ue.useCaseSensitiveFileNames())}function ln(e){void 0===Je&&(Je=new Map,un((e=>{at(C.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>Je.set(at(t),e.sourceFile.path)))})));const t=Je.get(at(e));return t&&mn(t)}function un(e){return TK(je,e)}function _n(e){if(QI(e))return void 0===ze&&(ze=new Map,un((e=>{const t=Lv(e.commandLine.options);if(t){const e=rT(t,".d.ts");ze.set(at(e),!0)}else{const t=At((()=>lV(e.commandLine,!ue.useCaseSensitiveFileNames())));w(e.commandLine.fileNames,(n=>{if(!QI(n)&&!Zo(n,".json")){const r=rV(n,e.commandLine,!ue.useCaseSensitiveFileNames(),t);ze.set(at(r),n)}}))}}))),ze.get(e)}function dn(e){return $e&&!!ln(e)}function mn(e){if(Be)return Be.get(e)||void 0}function gn(e,t){w(e.referencedFiles,((n,r)=>{Gt(QV(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function hn(e){const t=e.typeReferenceDirectives;if(!t.length)return void(e.resolvedTypeReferenceDirectiveNames=void 0);const n=lt(t,e);for(let r=0;r{const{libName:r,libFileName:i}=DK(t);if(i)Vt(vn(i),!0,!0,{kind:7,file:e.path,index:n});else{const t=Yt(en(pn(r,"lib."),".d.ts"),lO,wt),i=t?Ra.Cannot_find_lib_definition_for_0_Did_you_mean_1:Ra.Cannot_find_lib_definition_for_0,o=t?[r,t]:[r];(H||(H=[])).push({kind:0,reason:{kind:7,file:e.path,index:n},diagnostic:i,args:o})}}))}function Sn(e){return ue.getCanonicalFileName(e)}function kn(e){var t;if(Wt(e),e.imports.length||e.moduleAugmentations.length){const n=VK(e),r=ct(n,e);Fn.assert(r.length===n.length);const i=($e?null==(t=rt(e))?void 0:t.commandLine.options:void 0)||C;for(let t=0;toe,f=_&&!$K(i,o,e)&&!i.noResolve&&t{l?void 0===i?r(e,i,o,Ra.Option_0_has_been_removed_Please_remove_it_from_your_configuration,e):r(e,i,o,Ra.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,e,i):void 0===i?r(e,i,o,Ra.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,e,n,t):r(e,i,o,Ra.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,e,i,n,t)}))}function wn(e,t,n,r){var i;let o,s,c=NK(t)?t:void 0;e&&(null==(i=U.get(e.path))||i.forEach(f)),t&&f(t),c&&1===(null==o?void 0:o.length)&&(o=void 0);const l=c&&PK(Tt,c),u=o&&RS(o,Ra.The_file_is_in_the_program_because_Colon),_=e&&yq(e),d=RS(_?u?[u,..._]:_:u,n,...r||a);return l&&AK(l)?Qp(l.file,l.pos,l.end-l.pos,d,s):LS(d,s);function f(e){(o||(o=[])).push(xq(Xe,e)),!c&&NK(e)?c=e:c!==e&&(s=ke(s,function(e){if(NK(e)){const t=PK(Tt,e);let n;switch(e.kind){case 3:n=Ra.File_is_included_via_import_here;break;case 4:n=Ra.File_is_included_via_reference_here;break;case 5:n=Ra.File_is_included_via_type_library_reference_here;break;case 7:n=Ra.File_is_included_via_library_reference_here;break;default:Fn.assertNever(e)}return AK(t)?IS(t.file,t.pos,t.end-t.pos,n):void 0}if(!C.configFile)return;let t,n;switch(e.kind){case 0:if(!C.configFile.configFileSpecs)return;const i=ga(T[e.index],he),o=vq(Xe,i);if(o){t=qm(C.configFile,"files",o),n=Ra.File_is_matched_by_files_list_specified_here;break}const a=bq(Xe,i);if(!a||!yt(a))return;t=qm(C.configFile,"include",a),n=Ra.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const s=Fn.checkDefined(null==je?void 0:je[e.index]),c=CK(D,je,((e,t,n)=>e===s?{sourceFile:(null==t?void 0:t.sourceFile)||C.configFile,index:n}:void 0));if(!c)return;const{sourceFile:l,index:u}=c,_=Wm(l,"references",(e=>XD(e.initializer)?e.initializer:void 0));return _&&_.elements.length>u?Hp(l,_.elements[u],2===e.kind?Ra.File_is_output_from_referenced_project_specified_here:Ra.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!C.types)return;t=On("types",e.typeReference),n=Ra.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=On("lib",C.lib[e.index]),n=Ra.File_is_library_specified_here;break}const d=mf(fO.type,((e,t)=>e===HS(C)?t:void 0));t=d?(r=d,Pn("target",(e=>NE(e.initializer)&&e.initializer.text===r?e.initializer:void 0))):void 0,n=Ra.File_is_default_library_for_target_specified_here;break;default:Fn.assertNever(e)}var r;return t&&Hp(C.configFile,t,n)}(e))),e===t&&(t=void 0)}}function En(e,t,n,r){(H||(H=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Dn(e,t,n){ge.add(wn(e,void 0,t,n))}function Nn(e,t,n,...r){let i=!0;In((o=>{YD(o.initializer)&&Vm(o.initializer,e,(e=>{const o=e.initializer;XD(o)&&o.elements.length>t&&(ge.add(Hp(C.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&ge.add(MS(n,...r))}function An(e,t,n,...r){let i=!0;In((o=>{YD(o.initializer)&&zn(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&ge.add(MS(n,...r))}function Pn(e,t){return Vm(Bn(),e,t)}function In(e){return Pn("paths",e)}function On(e,t){const n=Bn();return n&&Km(n,e,t)}function Mn(e,t,n,r){jn(!0,t,n,e,t,n,r)}function Ln(e,t,...n){jn(!1,e,void 0,t,...n)}function Rn(e,t,n,...r){const i=Wm(e||C.configFile,"references",(e=>XD(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?ge.add(Hp(e||C.configFile,i.elements[t],n,...r)):ge.add(MS(n,...r))}function jn(e,t,n,r,...i){const o=Bn();(!o||!zn(o,e,t,n,r,...i))&&("messageText"in r?ge.add(LS(r)):ge.add(MS(r,...i)))}function Bn(){return void 0===Se&&(Se=Vm(Um(C.configFile),"compilerOptions",(e=>YD(e.initializer)?e.initializer:void 0))||!1),Se||void 0}function zn(e,t,n,r,i,...o){let a=!1;return Vm(e,n,(e=>{"messageText"in i?ge.add(Gp(C.configFile,t?e.name:e.initializer,i)):ge.add(Hp(C.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function $n(e,t){const n=Bn();n?zn(n,!0,e,void 0,Ra.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t):Mn(Ra.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t)}function Vn(e,t){xe.set(at(e),!0),ge.add(t)}function Kn(e,t){return 0===Ea(e,t,he,!ue.useCaseSensitiveFileNames())}function Un(){return ue.getSymlinkCache?ue.getSymlinkCache():(j||(j=Ek(he,Sn)),R&&Q&&!j.hasProcessedResolutions()&&j.setSymlinksFromResolutions(R,Q),j)}}function RK(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return e.getSemanticDiagnostics(t,r),t||Lv(i)?GV:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&dk(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t&&!Lv(i)){const t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}}function jK(e,t){return V(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function BK(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(Fn.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:ut(t,t.directoryExists),getDirectories:ut(t,t.getDirectories),realpath:ut(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Ct,trace:e.trace?t=>e.trace(t):void 0}}function JK(e,t,n,r){if(!e)return a;let i;for(let o=0;oe));for(const e of t)11===e.kind&&n.push(e);return n}function KK({imports:e,moduleAugmentations:t},n){if(n(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))(RV||{}),jV="",BV=" ",JV="",zV="...",$V=" ",VV=" ",KV={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},UV={getName:vK,getMode:(e,t)=>hK(t,e)},qV={getName:xK,getMode:(e,t)=>pK(e,null==t?void 0:t.impliedNodeFormat)},WV="__inferred type names__.ts",HV=new Set([Ra.Cannot_redeclare_block_scoped_variable_0.code,Ra.A_module_cannot_have_multiple_default_exports.code,Ra.Another_export_default_is_here.code,Ra.The_first_export_default_is_here.code,Ra.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,Ra.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,Ra.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,Ra.constructor_is_a_reserved_word.code,Ra.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,Ra.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,Ra.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,Ra.Invalid_use_of_0_in_strict_mode.code,Ra.A_label_is_not_allowed_here.code,Ra.with_statements_are_not_allowed_in_strict_mode.code,Ra.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,Ra.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,Ra.A_class_declaration_without_the_default_modifier_must_have_a_name.code,Ra.A_class_member_cannot_have_the_0_keyword.code,Ra.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,Ra.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,Ra.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Ra.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Ra.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,Ra.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,Ra.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,Ra.A_destructuring_declaration_must_have_an_initializer.code,Ra.A_get_accessor_cannot_have_parameters.code,Ra.A_rest_element_cannot_contain_a_binding_pattern.code,Ra.A_rest_element_cannot_have_a_property_name.code,Ra.A_rest_element_cannot_have_an_initializer.code,Ra.A_rest_element_must_be_last_in_a_destructuring_pattern.code,Ra.A_rest_parameter_cannot_have_an_initializer.code,Ra.A_rest_parameter_must_be_last_in_a_parameter_list.code,Ra.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,Ra.A_return_statement_cannot_be_used_inside_a_class_static_block.code,Ra.A_set_accessor_cannot_have_rest_parameter.code,Ra.A_set_accessor_must_have_exactly_one_parameter.code,Ra.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Ra.An_export_declaration_cannot_have_modifiers.code,Ra.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Ra.An_import_declaration_cannot_have_modifiers.code,Ra.An_object_member_cannot_be_declared_optional.code,Ra.Argument_of_dynamic_import_cannot_be_spread_element.code,Ra.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,Ra.Cannot_redeclare_identifier_0_in_catch_clause.code,Ra.Catch_clause_variable_cannot_have_an_initializer.code,Ra.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,Ra.Classes_can_only_extend_a_single_class.code,Ra.Classes_may_not_have_a_field_named_constructor.code,Ra.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,Ra.Duplicate_label_0.code,Ra.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,Ra.for_await_loops_cannot_be_used_inside_a_class_static_block.code,Ra.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,Ra.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,Ra.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,Ra.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,Ra.Jump_target_cannot_cross_function_boundary.code,Ra.Line_terminator_not_permitted_before_arrow.code,Ra.Modifiers_cannot_appear_here.code,Ra.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,Ra.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,Ra.Private_identifiers_are_not_allowed_outside_class_bodies.code,Ra.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Ra.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,Ra.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,Ra.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,Ra.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,Ra.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,Ra.Trailing_comma_not_allowed.code,Ra.Variable_declaration_list_cannot_be_empty.code,Ra._0_and_1_operations_cannot_be_mixed_without_parentheses.code,Ra._0_expected.code,Ra._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,Ra._0_list_cannot_be_empty.code,Ra._0_modifier_already_seen.code,Ra._0_modifier_cannot_appear_on_a_constructor_declaration.code,Ra._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,Ra._0_modifier_cannot_appear_on_a_parameter.code,Ra._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,Ra._0_modifier_cannot_be_used_here.code,Ra._0_modifier_must_precede_1_modifier.code,Ra._0_declarations_can_only_be_declared_inside_a_block.code,Ra._0_declarations_must_be_initialized.code,Ra.extends_clause_already_seen.code,Ra.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,Ra.Class_constructor_may_not_be_a_generator.code,Ra.Class_constructor_may_not_be_an_accessor.code,Ra.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ra.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ra.Private_field_0_must_be_declared_in_an_enclosing_class.code,Ra.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),GV={diagnostics:a,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),WK=S({"src/compiler/builderStatePublic.ts"(){}});function HK(e,t,n,r,i,o){const a=[],{emitSkipped:s,diagnostics:c}=e.emit(t,(function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})}),r,n,i,o);return{outputFiles:a,emitSkipped:s,diagnostics:c}}var GK,XK,YK=S({"src/compiler/builderState.ts"(){gH(),(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function r(e){return te(e.declarations,(e=>{var t;return null==(t=Ff(e))?void 0:t.resolvedPath}))}function i(e,t){const n=e.getSymbolAtLocation(t);return n&&r(n)}function o(e,t,n,r){return va(e.getProjectReferenceRedirect(t)||t,n,r)}function s(e,t,n){let r;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=i(n,e);null==t||t.forEach(c)}}const a=oa(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles)c(o(e,r.fileName,a,n));if(t.resolvedTypeReferenceDirectiveNames&&t.resolvedTypeReferenceDirectiveNames.forEach((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(o(e,r,a,n))})),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!NE(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return r;function s(e){if(e.declarations)for(const n of e.declarations){const e=Ff(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(r||(r=new Set)).add(e)}}function c(e,t){return t&&!t.referencedMap==!e}function l(e,t,n,r,i){const o=t.getSourceFileByPath(n);return o?_(e,t,o,r,i)?(e.referencedMap?v:y)(e,t,o,r,i):[o]:a}function u(e,t,n,r,i){e.emit(t,((n,o,a,s,c,l)=>{Fn.assert(QI(n),`File extension for signature expected to be dts: Got:: ${n}`),i(kU(e,t,o,r,l),c)}),n,!0,void 0,!0)}function _(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let l;if(n.isDeclarationFile||o||u(t,n,r,i,((t,r)=>{l=t,l!==c&&d(e,n,r[0].exportedModulesFromDeclarationEmit)})),void 0===l&&(l=n.version,e.exportedModulesMap&&l!==c)){(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(n.resolvedPath,e.exportedModulesMap.getValues(n.resolvedPath)||!1);const t=e.referencedMap?e.referencedMap.getValues(n.resolvedPath):void 0;t?e.exportedModulesMap.set(n.resolvedPath,t):e.exportedModulesMap.deleteKey(n.resolvedPath)}return(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=l,l!==c}function d(e,t,n){if(!e.exportedModulesMap)return;(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(t.resolvedPath,e.exportedModulesMap.getValues(t.resolvedPath)||!1);const r=f(n);r?e.exportedModulesMap.set(t.resolvedPath,r):e.exportedModulesMap.deleteKey(t.resolvedPath)}function f(e){let t;return null==e||e.forEach((e=>r(e).forEach((e=>(t??(t=new Set)).add(e))))),t}function p(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===a?a:n.map((e=>e.fileName))}return e.allFileNames}function m(e,t){const n=e.referencedMap.getKeys(t);return n?Ze(n.keys()):[]}function g(e){return function(e){return le(e.moduleAugmentations,(e=>Sp(e.parent)))}(e)||!om(e)&&!am(e)&&!function(e){for(const t of e.statements)if(!hp(t))return!1;return!0}(e)}function h(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(const e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||a,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}function y(e,t,n){const r=t.getCompilerOptions();return r&&Lv(r)?[n]:h(e,t,n)}function v(e,t,n,r,i){if(g(n))return h(e,t,n);const o=t.getCompilerOptions();if(o&&(ek(o)||Lv(o)))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=m(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&_(e,t,o,r,i)&&s.push(...m(e,o.resolvedPath))}}return Ze(ne(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=c,e.create=function(e,n,r){var i,o,a;const l=new Map,u=e.getCompilerOptions(),_=Lv(u),d=0===u.module||_?void 0:t(),f=d?t():void 0,p=c(d,n);e.getTypeChecker();for(const t of e.getSourceFiles()){const r=Fn.checkDefined(t.version,"Program intended to be used with Builder should have source files with versions set"),c=p?null==(i=n.oldSignatures)?void 0:i.get(t.resolvedPath):void 0,u=void 0===c?p?null==(o=n.fileInfos.get(t.resolvedPath))?void 0:o.signature:void 0:c||void 0;if(d){const r=s(e,t,e.getCanonicalFileName);if(r&&d.set(t.resolvedPath,r),p){const e=null==(a=n.oldExportedModulesMap)?void 0:a.get(t.resolvedPath),r=void 0===e?n.exportedModulesMap.getValues(t.resolvedPath):e||void 0;r&&f.set(t.resolvedPath,r)}}l.set(t.resolvedPath,{version:r,signature:u,affectsGlobalScope:_?void 0:g(t)||void 0,impliedFormat:t.impliedNodeFormat})}return{fileInfos:l,referencedMap:d,exportedModulesMap:f,useFileVersionAsSignature:!r&&!p}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o,a;const s=l(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),null==(a=e.oldExportedModulesMap)||a.clear(),s},e.getFilesAffectedByWithOldState=l,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=u,e.updateShapeSignature=_,e.updateExportedModules=d,e.getExportedModules=f,e.getAllDependencies=function(e,t,n){if(Lv(t.getCompilerOptions()))return p(e,t);if(!e.referencedMap||g(n))return p(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return Ze(ne(r.keys(),(e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e})))},e.getReferencedByPaths=m,e.getAllFilesExcludingDefaultLibraryFile=h})(UK||(UK={}))}});function QK(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),dk(e)&&(t|=8),e.declarationMap&&(t|=16),e.emitDeclarationOnly&&(t&=24),t}function ZK(e,t){const n=t&&(vt(t)?t:QK(t)),r=vt(e)?e:QK(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),24&i&&(o|=24&r),o}function eU(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function tU(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:yt(n)?[n]:n[0]}function nU(e,t,n,r){const i=r(e);if(i)return{...wf(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:rU(e.next,t,n,r)};const o=rU(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function rU(e,t,n,r){return H(e,(e=>nU(e,t,n,r)))}function iU(e,t,n){const{file:r}=e,i=r?t.getSourceFileByPath(n(r)):void 0;return{...e,file:i,messageText:yt(e.messageText)?e.messageText:nU(e.messageText,i,t,(e=>e.info))}}function oU(e,t){Fn.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function aU(e,t,n){for(var r,i;;){const{affectedFiles:o}=e;if(o){const a=e.seenAffectedFiles;let s=e.affectedFilesIndex;for(;st.isSourceFileDefaultLibrary(r)&&!vT(r,n,t)&&uU(e,r.resolvedPath)))}}function cU(e,t,n,r){if(uU(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return sU(e),void UK.updateShapeSignature(e,Fn.checkDefined(e.program),t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!_U(e,t.resolvedPath))return;if(ek(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=UK.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),dU(e,t,n,r))return;if(lU(e,t,n,r),_U(e,t)){const n=Fn.checkDefined(e.program).getSourceFileByPath(t);o.push(...UK.getReferencedByPaths(e,n.resolvedPath))}}}}const o=new Set;null==(i=e.exportedModulesMap.getKeys(t.resolvedPath))||i.forEach((t=>{if(dU(e,t,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&gf(i,(t=>fU(e,t,o,n,r)))}))}(e,t,n,r)}function lU(e,t,n,r){if(uU(e,t),!e.changedFilesSet.has(t)){const i=Fn.checkDefined(e.program),o=i.getSourceFileByPath(t);o&&(UK.updateShapeSignature(e,i,o,n,r,!0),dk(e.compilerOptions)&&wU(e,t,e.compilerOptions.declarationMap?24:8))}}function uU(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function _U(e,t){const n=Fn.checkDefined(e.oldSignatures).get(t)||void 0;return Fn.checkDefined(e.fileInfos.get(t)).signature!==n}function dU(e,t,n,r){var i;return!!(null==(i=e.fileInfos.get(t))?void 0:i.affectsGlobalScope)&&(UK.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>lU(e,t.resolvedPath,n,r))),sU(e),!0)}function fU(e,t,n,r,i){var o,a;if(oe(n,t)){if(dU(e,t,r,i))return!0;lU(e,t,r,i),null==(o=e.exportedModulesMap.getKeys(t))||o.forEach((t=>fU(e,t,n,r,i))),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>!n.has(t)&&lU(e,t,r,i)))}}function pU(e,t,n){return _e(function(e,t,n){const r=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const t=e.semanticDiagnosticsPerFile.get(r);if(t)return jK(t,e.compilerOptions)}const i=Fn.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(r,i),jK(i,e.compilerOptions)}(e,t,n),Fn.checkDefined(e.program).getProgramDiagnostics(t))}function mU(e){return!!Lv(e.options||{})}function gU(e,t,n){if(e)if(Fn.assert("listOrElement"!==e.type),"list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);return t}function hU(e,t){return Fn.assert(!!e.length),e.map((e=>{const n=yU(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>yU(e,t))):[]:void 0,n}))}function yU(e,t){const{file:n}=e;return{...e,file:n?t(n.resolvedPath):void 0,messageText:yt(e.messageText)?e.messageText:vU(e.messageText)}}function vU(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:bU(e.next)};const t=bU(e.next);return t===e.next?e:{...e,next:t}}function bU(e){return e&&w(e,((t,n)=>{const r=vU(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t`${function(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(void 0===a&&(a=oa(t.resolvedPath)),`${Sa(Pa(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}(n)}${Oi[n.category]}${n.code}: ${s(n.messageText)}`)).join("\n")),(r.createHash??ko)(n);function s(e){return yt(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function TU(e,t,n){return(t.createHash??ko)(SU(e,n))}function CU(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let o=r&&r.getState();if(o&&t===o.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,r;const s=function(e,t){var n,r;const i=UK.create(e,t,!1);i.program=e;const o=e.getCompilerOptions();i.compilerOptions=o;const s=Lv(o);s?o.composite&&(null==t?void 0:t.outSignature)&&s===Lv(null==t?void 0:t.compilerOptions)&&(i.outSignature=t.outSignature&&tU(o,t.compilerOptions,t.outSignature)):i.semanticDiagnosticsPerFile=new Map,i.changedFilesSet=new Set,i.latestChangedDtsFile=o.composite?null==t?void 0:t.latestChangedDtsFile:void 0;const c=UK.canReuseOldState(i.referencedMap,t),l=c?t.compilerOptions:void 0,u=c&&t.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile&&!vk(o,l),_=o.composite&&(null==t?void 0:t.emitSignatures)&&!s&&!xk(o,t.compilerOptions);c?(null==(n=t.changedFilesSet)||n.forEach((e=>i.changedFilesSet.add(e))),!s&&(null==(r=t.affectedFilesPendingEmit)?void 0:r.size)&&(i.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),i.seenAffectedFiles=new Set),i.programEmitPending=t.programEmitPending):i.buildInfoEmitPending=!0;const d=i.referencedMap,f=c?t.referencedMap:void 0,p=u&&!o.skipLibCheck==!l.skipLibCheck,m=p&&!o.skipDefaultLibCheck==!l.skipDefaultLibCheck;if(i.fileInfos.forEach(((n,r)=>{let s,l;if(!c||!(s=t.fileInfos.get(r))||s.version!==n.version||s.impliedFormat!==n.impliedFormat||(g=l=d&&d.getValues(r))!==(h=f&&f.getValues(r))&&(void 0===g||void 0===h||g.size!==h.size||gf(g,(e=>!h.has(e))))||l&&gf(l,(e=>!i.fileInfos.has(e)&&t.fileInfos.has(e))))eU(i,r);else if(u){const n=e.getSourceFileByPath(r);if(n.isDeclarationFile&&!p)return;if(n.hasNoDefaultLib&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?function(e,t){if(!e.length)return a;let n;return e.map((e=>{const n=iU(e,t,r);n.reportsUnnecessary=e.reportsUnnecessary,n.reportsDeprecated=e.reportDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:i}=e;return n.relatedInformation=i?i.length?i.map((e=>iU(e,t,r))):[]:void 0,n}));function r(e){return n??(n=oa(ga(Y$(t.getCompilerOptions()),t.getCurrentDirectory()))),va(e,n,t.getCanonicalFileName)}}(o,e):function(e,t){return e.length?H(e,(e=>{if(yt(e.messageText))return e;const n=nU(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:{...e,messageText:n}})):e}(o,e)),i.semanticDiagnosticsFromOldState||(i.semanticDiagnosticsFromOldState=new Set),i.semanticDiagnosticsFromOldState.add(r))}var g,h;if(_){const e=t.emitSignatures.get(r);e&&(i.emitSignatures??(i.emitSignatures=new Map)).set(r,tU(o,t.compilerOptions,e))}})),c&&mf(t.fileInfos,((e,t)=>!(i.fileInfos.has(t)||!s&&!e.affectsGlobalScope&&(i.buildInfoEmitPending=!0,1)))))UK.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach((e=>eU(i,e.resolvedPath)));else if(l){const t=bk(o,l)?QK(o):ZK(o,l);0!==t&&(s?i.programEmitPending=i.programEmitPending?i.programEmitPending|t:t:(e.getSourceFiles().forEach((e=>{i.changedFilesSet.has(e.resolvedPath)||wU(i,e.resolvedPath,t)})),Fn.assert(!i.seenAffectedFiles||!i.seenAffectedFiles.size),i.seenAffectedFiles=i.seenAffectedFiles||new Set,i.buildInfoEmitPending=!0))}return s&&!i.changedFilesSet.size&&(c&&(i.bundle=t.bundle),le(e.getProjectReferences(),(e=>!!e.prepend))&&(i.programEmitPending=QK(o))),i}(t,o);t.getBuildInfo=e=>function(e,t){var n,r,i;const o=Fn.checkDefined(e.program).getCurrentDirectory(),s=oa(ga(Y$(e.compilerOptions),o)),c=e.latestChangedDtsFile?x(e.latestChangedDtsFile):void 0,l=[],u=new Map,_=[];if(Lv(e.compilerOptions)){const i=Ze(e.fileInfos.entries(),(([e,t])=>(C(e,k(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version))),o={fileNames:l,fileInfos:i,root:_,options:w(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:c,pendingEmit:e.programEmitPending?e.programEmitPending!==QK(e.compilerOptions)&&e.programEmitPending:void 0},{js:a,dts:s,commonSourceDirectory:u,sourceFiles:d}=t;return e.bundle=t={commonSourceDirectory:u,sourceFiles:d,js:a||(e.compilerOptions.emitDeclarationOnly||null==(n=e.bundle)?void 0:n.js),dts:s||(dk(e.compilerOptions)?null==(r=e.bundle)?void 0:r.dts:void 0)},pV(o,t)}let d,f,p;const m=Ze(e.fileInfos.entries(),(([t,n])=>{var r,i;const o=k(t);C(t,o),Fn.assert(l[o-1]===S(t));const s=null==(r=e.oldSignatures)?void 0:r.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!am(n)&&Bv(n,e.program)){const n=null==(i=e.emitSignatures)?void 0:i.get(t);n!==c&&(p||(p=[])).push(void 0===n?o:[o,yt(n)||n[0]!==c?n:a])}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let g,h,y,v,b;if(e.referencedMap&&(g=Ze(e.referencedMap.keys()).sort(Kt).map((t=>[k(t),T(e.referencedMap.getValues(t))]))),e.exportedModulesMap&&(h=te(Ze(e.exportedModulesMap.keys()).sort(Kt),(t=>{var n;const r=null==(n=e.oldExportedModulesMap)?void 0:n.get(t);return void 0===r?[k(t),T(e.exportedModulesMap.getValues(t))]:r?[k(t),T(r)]:void 0}))),e.semanticDiagnosticsPerFile)for(const t of Ze(e.semanticDiagnosticsPerFile.keys()).sort(Kt)){const n=e.semanticDiagnosticsPerFile.get(t);(y||(y=[])).push(n.length?[k(t),hU(n,S)]:k(t))}if(null==(i=e.affectedFilesPendingEmit)?void 0:i.size){const t=QK(e.compilerOptions),n=new Set;for(const r of Ze(e.affectedFilesPendingEmit.keys()).sort(Kt))if(oe(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Bv(n,e.program))continue;const i=k(r),o=e.affectedFilesPendingEmit.get(r);(v||(v=[])).push(o===t?i:8===o?[i]:[i,o])}}if(e.changedFilesSet.size)for(const t of Ze(e.changedFilesSet.keys()).sort(Kt))(b||(b=[])).push(k(t));return pV({fileNames:l,fileInfos:m,root:_,options:w(e.compilerOptions),fileIdsList:d,referencedMap:g,exportedModulesMap:h,semanticDiagnosticsPerFile:y,affectedFilesPendingEmit:v,changeFileSet:b,emitSignatures:p,latestChangedDtsFile:c},t);function x(e){return S(ga(e,o))}function S(t){return Sa(Pa(s,t,e.program.getCanonicalFileName))}function k(e){let t=u.get(e);return void 0===t&&(l.push(S(e)),u.set(e,t=l.length)),t}function T(e){const t=Ze(e.keys(),k).sort(Bt),n=t.join();let r=null==f?void 0:f.get(n);return void 0===r&&((d||(d=[])).push(t),(f||(f=new Map)).set(n,r=d.length)),r}function C(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!_.length)return _.push(n);const i=_[_.length-1],o=gt(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===_.length||i!==n-1)return _.push(n);const a=_[_.length-2];return vt(a)&&a===i-1?(_[_.length-2]=[a,n],_.length=_.length-1):_.push(n)}function w(e){let t;const{optionsNameMap:n}=XO();for(const r of Ge(e).sort(Kt)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=gU(i,e[r],x))}return t}}(s,e),t=void 0,r=void 0,o=void 0;const c=()=>s,l=FU(c,i);return l.getState=c,l.saveEmitState=()=>function(e){const t=Lv(e.compilerOptions);return Fn.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}(s),l.restoreEmitState=e=>function(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}(s,e),l.hasChangedEmitSignature=()=>!!s.hasChangedEmitSignature,l.getAllDependencies=e=>UK.getAllDependencies(s,Fn.checkDefined(s.program),e),l.getSemanticDiagnostics=function(e,t){if(oU(s,e),Lv(Fn.checkDefined(s.program).getCompilerOptions()))return Fn.assert(!s.semanticDiagnosticsPerFile),Fn.checkDefined(s.program).getSemanticDiagnostics(e,t);if(e)return pU(s,e,t);for(;d(t););let n;for(const e of Fn.checkDefined(s.program).getSourceFiles())n=we(n,pU(s,e,t));return n||a},l.emit=function(t,n,r,i,o){1===e&&oU(s,t);const c=RK(l,t,n,r);if(c)return c;if(!t){if(1===e){let e,t,s=[],c=!1,l=[];for(;t=u(n,r,i,o);)c=c||t.result.emitSkipped,e=we(e,t.result.diagnostics),l=we(l,t.result.emittedFiles),s=we(s,t.result.sourceMaps);return{emitSkipped:c,diagnostics:e||a,emittedFiles:l,sourceMaps:s}}!function(e,t){var n;(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)&&(t?e.affectedFilesPendingEmit.forEach(((t,n)=>{const r=7&t;r?e.affectedFilesPendingEmit.set(n,r):e.affectedFilesPendingEmit.delete(n)})):e.affectedFilesPendingEmit=void 0)}(s,i)}return Fn.checkDefined(s.program).emit(t,_(n,o),r,i,o)},l.releaseProgram=()=>function(e){UK.releaseCache(e),e.program=void 0}(s),0===e?l.getSemanticDiagnosticsOfNextAffectedFile=d:1===e?(l.getSemanticDiagnosticsOfNextAffectedFile=d,l.emitNextAffectedFile=u,l.emitBuildInfo=function(e,t){if(s.buildInfoEmitPending){const r=Fn.checkDefined(s.program).emitBuildInfo(e||ut(n,n.writeFile),t);return s.buildInfoEmitPending=!1,r}return GV}):Nt(),l;function u(e,t,r,i){var o,a,c;let l=aU(s,t,n);const u=QK(s.compilerOptions);let d,f=r?24&u:u;if(!l)if(Lv(s.compilerOptions)){if(!s.programEmitPending)return;if(f=s.programEmitPending,r&&(f&=24),!f)return;l=s.program}else{const i=function(e,t){var n;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)return mf(e.affectedFilesPendingEmit,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Bv(o,e.program))return void e.affectedFilesPendingEmit.delete(r);let a=ZK(n,null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath));return t&&(a&=24),a?{affectedFile:o,emitKind:a}:void 0}))}(s,r);if(!i){if(!s.buildInfoEmitPending)return;const r=s.program,i=r.emitBuildInfo(e||ut(n,n.writeFile),t);return s.buildInfoEmitPending=!1,{result:i,affected:r}}({affectedFile:l,emitKind:f}=i)}7&f&&(d=0),24&f&&(d=void 0===d?1:void 0),l===s.program&&(s.programEmitPending=s.changedFilesSet.size?ZK(u,f):s.programEmitPending?ZK(s.programEmitPending,f):void 0);const p=s.program.emit(l===s.program?void 0:l,_(e,i),t,d,i);if(l!==s.program){const e=l;s.seenAffectedFiles.add(e.resolvedPath),void 0!==s.affectedFilesIndex&&s.affectedFilesIndex++,s.buildInfoEmitPending=!0;const t=(null==(o=s.seenEmittedFiles)?void 0:o.get(e.resolvedPath))||0;(s.seenEmittedFiles??(s.seenEmittedFiles=new Map)).set(e.resolvedPath,f|t);const n=ZK((null==(a=s.affectedFilesPendingEmit)?void 0:a.get(e.resolvedPath))||u,f|t);n?(s.affectedFilesPendingEmit??(s.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(c=s.affectedFilesPendingEmit)||c.delete(e.resolvedPath)}else s.changedFilesSet.clear();return{result:p,affected:l}}function _(e,t){return dk(s.compilerOptions)?(r,i,o,a,c,l)=>{var u,_,d,f;if(QI(r))if(Lv(s.compilerOptions)){if(s.compilerOptions.composite){const e=p(s.outSignature,void 0);if(!e)return;s.outSignature=e}}else{let e;if(Fn.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=s.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=kU(s.program,t,i,n,l);(null==(u=null==l?void 0:l.diagnostics)?void 0:u.length)||(e=o),o!==t.version&&(n.storeFilesChangingSignatureDuringEmit&&(s.filesChangingSignature??(s.filesChangingSignature=new Set)).add(t.resolvedPath),s.exportedModulesMap&&UK.updateExportedModules(s,t,t.exportedModulesFromDeclarationEmit),s.affectedFiles?(void 0===(null==(_=s.oldSignatures)?void 0:_.get(t.resolvedPath))&&(s.oldSignatures??(s.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o):(r.signature=o,null==(d=s.oldExportedModulesMap)||d.clear()))}}if(s.compilerOptions.composite){const t=c[0].resolvedPath;if(e=p(null==(f=s.emitSignatures)?void 0:f.get(t),e),!e)return;(s.emitSignatures??(s.emitSignatures=new Map)).set(t,e)}}function p(e,t){const o=!e||yt(e)?e:e[0];if(t??(t=TU(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else s.hasChangedEmitSignature=!0,s.latestChangedDtsFile=r;return t}e?e(r,i,o,a,c,l):n.writeFile?n.writeFile(r,i,o,a,c,l):s.program.writeFile(r,i,o,a,c,l)}:e||ut(n,n.writeFile)}function d(e,t){for(;;){const r=aU(s,e,n);let i;if(!r)return;if(r!==s.program){const n=r;if(t&&t(n)||(i=pU(s,n,e)),s.seenAffectedFiles.add(n.resolvedPath),s.affectedFilesIndex++,s.buildInfoEmitPending=!0,!i)continue}else i=s.program.getSemanticDiagnostics(void 0,e),s.changedFilesSet.clear(),s.programEmitPending=QK(s.compilerOptions);return{result:i,affected:r}}}}function wU(e,t,n){var r;const i=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,i|n)}function EU(e){return yt(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:yt(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function DU(e,t){return vt(e)?t:e[1]||8}function NU(e,t){return e||QK(t||{})}function AU(e,t,n){var r,i,o,s;const c=e.program,l=oa(ga(t,n.getCurrentDirectory())),u=ln(n.useCaseSensitiveFileNames());let _;const d=null==(r=c.fileNames)?void 0:r.map((function(e){return va(e,l,u)}));let f;const p=c.latestChangedDtsFile?m(c.latestChangedDtsFile):void 0;if(mU(c)){const t=new Map;c.fileInfos.forEach(((e,n)=>{const r=g(n+1);t.set(r,yt(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),_={fileInfos:t,compilerOptions:c.options?LM(c.options,m):{},latestChangedDtsFile:p,outSignature:c.outSignature,programEmitPending:void 0===c.pendingEmit?void 0:NU(c.pendingEmit,c.options),bundle:e.bundle}}else{f=null==(i=c.fileIdsList)?void 0:i.map((e=>new Set(e.map(g))));const e=new Map,t=(null==(o=c.options)?void 0:o.composite)&&!Lv(c.options)?new Map:void 0;c.fileInfos.forEach(((n,r)=>{const i=g(r+1),o=EU(n);e.set(i,o),t&&o.signature&&t.set(i,o.signature)})),null==(s=c.emitSignatures)||s.forEach((e=>{if(vt(e))t.delete(g(e));else{const n=g(e[0]);t.set(n,yt(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=c.affectedFilesPendingEmit?QK(c.options||{}):void 0;_={fileInfos:e,compilerOptions:c.options?LM(c.options,m):{},referencedMap:h(c.referencedMap),exportedModulesMap:h(c.exportedModulesMap),semanticDiagnosticsPerFile:c.semanticDiagnosticsPerFile&&nt(c.semanticDiagnosticsPerFile,(e=>g(vt(e)?e:e[0])),(e=>vt(e)?a:e[1])),hasReusableDiagnostic:!0,affectedFilesPendingEmit:c.affectedFilesPendingEmit&&nt(c.affectedFilesPendingEmit,(e=>g(vt(e)?e:e[0])),(e=>DU(e,n))),changedFilesSet:new Set(q(c.changeFileSet,g)),latestChangedDtsFile:p,emitSignatures:(null==t?void 0:t.size)?t:void 0}}return{getState:()=>_,saveEmitState:St,restoreEmitState:St,getProgram:Nt,getProgramOrUndefined:Ct,releaseProgram:St,getCompilerOptions:()=>_.compilerOptions,getSourceFile:Nt,getSourceFiles:Nt,getOptionsDiagnostics:Nt,getGlobalDiagnostics:Nt,getConfigFileParsingDiagnostics:Nt,getSyntacticDiagnostics:Nt,getDeclarationDiagnostics:Nt,getSemanticDiagnostics:Nt,emit:Nt,getAllDependencies:Nt,getCurrentDirectory:Nt,emitNextAffectedFile:Nt,getSemanticDiagnosticsOfNextAffectedFile:Nt,emitBuildInfo:Nt,close:St,hasChangedEmitSignature:kt};function m(e){return ga(e,l)}function g(e){return d[e-1]}function h(e){if(!e)return;const t=UK.createManyToManyPathMap();return e.forEach((([e,n])=>t.set(g(e),f[n-1]))),t}}function PU(e,t,n){const r=oa(ga(t,n.getCurrentDirectory())),i=ln(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=[];return e.fileInfos.forEach(((t,n)=>{const c=va(e.fileNames[n],r,i),l=yt(t)?t:t.version;if(o.set(c,l),ae().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:Nt,getCurrentDirectory:()=>n().getCurrentDirectory(),close:St};function n(){return Fn.checkDefined(e().program)}}var IU=S({"src/compiler/builder.ts"(){gH(),GK=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(GK||{}),XK=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(XK||{})}});function OU(e,t,n,r,i,o){return CU(0,xU(e,t,n,r,i,o))}function MU(e,t,n,r,i,o){return CU(1,xU(e,t,n,r,i,o))}function LU(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=xU(e,t,n,r,i,o);return FU((()=>({program:a,compilerOptions:a.getCompilerOptions()})),s)}var RU=S({"src/compiler/builderPublic.ts"(){gH()}});function jU(e){return Zt(e,"/node_modules/.staging")?en(e,"/.staging"):le(yo,(t=>nn(e,t)))?void 0:e}function BU(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-zA-Z]:/);if(e[0]!==Bo&&!r&&0===e[1].search(/[a-zA-Z]\$$/)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:n+2}function JU(e,t){return void 0===t&&(t=e.length),!(t<=2)&&t>BU(e,t)+1}function zU(e){return VU(oa(e))}function $U(e,t){if(t.lengthi.length+1?WU(s,a,Math.max(i.length+1,c+1)):{dir:n,dirPath:r,nonRecursive:!0}:qU(s,a,a.length-1,c,l,i)}function qU(e,t,n,r,i,o){if(-1!==i)return WU(e,t,i+1);let a=!0,s=n;for(let e=0;ee.getCurrentDirectory())),b=e.getCachedDirectoryStructureHost(),x=new Map,S=sR(v(),e.getCanonicalFileName,e.getCompilationSettings()),k=new Map,T=cR(v(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache()),C=new Map,w=sR(v(),e.getCanonicalFileName,lR(e.getCompilationSettings()),S.getPackageJsonInfoCache()),E=new Map,D=new Map,A=GU(t,v),P=e.toPath(A),F=la(P),I=new Map;return{getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){r=[]},finishRecordingFilesWithChangedResolutions:function(){const e=r;return r=void 0,e},startCachingPerDirectoryResolution:function(){S.clearAllExceptPackageJsonInfoCache(),T.clearAllExceptPackageJsonInfoCache(),w.clearAllExceptPackageJsonInfoCache(),s.forEach(q),s.clear()},finishCachingPerDirectoryResolution:function(t,n){o=void 0,y=!1,s.forEach(q),s.clear(),t!==n&&(function(t){C.forEach(((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(G(n,e.toPath(wK(t.getCompilerOptions(),v(),r)),O),C.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t;const n=om(e)?(null==(t=e.packageJsonLocations)?void 0:t.length)??0:0,r=_.get(e.path)??a;for(let t=r.length;tn)for(let e=n;e{(null==t?void 0:t.getSourceFileByPath(n))||(e.forEach((e=>D.get(e).files--)),_.delete(n))}))),E.forEach(((e,t)=>{0===e.refCount&&(E.delete(t),e.watcher.close())})),D.forEach(((e,t)=>{0===e.files&&0===e.resolutions&&(D.delete(t),e.watcher.close())})),h=!1},resolveModuleNameLiterals:function(e,t,r,i,o,a){return B({entries:e,containingFile:t,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:x,loader:j(t,r,i),getResolutionWithResolvedFileName:O,shouldRetryResolution:e=>!e.resolvedModule||!cT(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){var s;return B({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:k,loader:SK(n,r,i,(null==(s=e.getCompilerHost)?void 0:s.call(e))||e,T),getResolutionWithResolvedFileName:M,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){var o;const a=(null==(o=e.getCompilerHost)?void 0:o.call(e))||e;let s=null==C?void 0:C.get(i);if(!s||s.isInvalidated){const o=s;s=uR(t,n,r,a,w);const c=e.toPath(n);z(t,s,c,O,!1),C.set(i,s),o&&G(o,c,O)}else if(AL(r,a)){const e=O(s);NL(a,(null==e?void 0:e.resolvedFileName)?e.packageId?Ra.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ra.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ra.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&Df(e.packageId))}return s},resolveSingleModuleNameWithoutWatching:function(t,n){const r=e.toPath(n),i=x.get(r),o=null==i?void 0:i.get(t,void 0);return o&&!o.isInvalidated?o:R(t,n,e.getCompilationSettings())},removeResolutionsFromProjectReferenceRedirects:function(t){if(!Zo(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach((t=>Z(e.toPath(t))))},removeResolutionsOfFile:Z,hasChangedAutomaticTypeDirectiveNames:()=>h,invalidateResolutionOfFile:function(t){Z(t);const n=h;ee(u.get(t),Tt)&&h&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:re,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){Fn.assert(o===e||void 0===o),o=e},createHasInvalidatedResolutions:function(e,t){re();const n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||y||!!(null==n?void 0:n.has(t))||L(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==C?void 0:C.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:L,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void se();const n=VL(t,{getCurrentDirectory:v});n?Qx(I,nt(n,(t=>e.toPath(t))),{createNewValue:ce,onDeleteValue:zx}):se()},closeTypeRootsWatch:se,clear:function(){Xx(E,LV),Xx(D,LV),s.clear(),se(),x.clear(),k.clear(),u.clear(),c.clear(),l.clear(),p=void 0,m=void 0,g=void 0,f=void 0,d=void 0,y=!1,S.clear(),T.clear(),S.update(e.getCompilationSettings()),T.update(e.getCompilationSettings()),w.clear(),_.clear(),C.clear(),h=!1},onChangesAffectModuleResolution:function(){y=!0,S.clearAllExceptPackageJsonInfoCache(),T.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),T.update(e.getCompilationSettings())}};function O(e){return e.resolvedModule}function M(e){return e.resolvedTypeReferenceDirective}function L(e){if(!o)return!1;const t=o.get(e);return!!t&&!!t.length}function R(t,n,r,i,o){var a;const s=(null==(a=e.getCompilerHost)?void 0:a.call(e))||e,c=dR(t,n,r,s,S,i,o);if(!e.getGlobalCache)return c;const l=e.getGlobalCache();if(!(void 0===l||Gs(t)||c.resolvedModule&&sT(c.resolvedModule.extension))){const{resolvedModule:n,failedLookupLocations:i,affectingLocations:o,resolutionDiagnostics:a}=sj(Fn.checkDefined(e.globalCacheResolutionModuleName)(t),e.projectName,r,s,l,S);if(n)return c.resolvedModule=n,c.failedLookupLocations=BL(c.failedLookupLocations,i),c.affectingLocations=BL(c.affectingLocations,o),c.resolutionDiagnostics=BL(c.resolutionDiagnostics,a),c}return c}function j(e,t,n){return{nameAndMode:UV,resolve:(r,i)=>R(r,e,n,t,i)}}function B({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:u,deferWatchingNonRelativeResolution:_,shouldRetryResolution:d,logChanges:f}){var p;const m=e.toPath(n),g=s.get(m)||s.set(m,nR()).get(m),h=[],v=f&&L(m),b=e.getCurrentProgram(),S=b&&b.getResolvedProjectReferenceToRedirect(n),k=S?!o||o.sourceFile.path!==S.sourceFile.path:!!o,T=nR();for(const o of t){const t=l.nameAndMode.getName(o),c=l.nameAndMode.getMode(o,i);let b=g.get(t,c);if(!T.has(t,c)&&(y||k||!b||b.isInvalidated||v&&!Gs(t)&&d(b))){const n=b;b=l.resolve(t,c),e.onDiscoveredSymlink&&QU(b)&&e.onDiscoveredSymlink(),g.set(t,c,b),z(t,b,m,u,_),n&&G(n,m,u),f&&r&&!C(n,b)&&(r.push(m),f=!1)}else{const r=(null==(p=e.getCompilerHost)?void 0:p.call(e))||e;if(AL(a,r)&&!T.has(t,c)){const e=u(b);NL(r,s===x?(null==e?void 0:e.resolvedFileName)?e.packageId?Ra.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ra.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ra.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?Ra.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ra.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ra.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&Df(e.packageId))}}Fn.assert(void 0!==b&&!b.isInvalidated),T.set(t,c,!0),h.push(b)}return null==c||c.forEach((e=>T.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i),!0))),g.size()!==T.size()&&g.forEach(((e,t,n)=>{T.has(t,n)||(G(e,m,u),g.delete(t,n))})),h;function C(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=u(e),r=u(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function J(e){return Zt(e,"/node_modules/@types")}function z(t,n,r,i,o){var a;if(n.refCount)n.refCount++,Fn.assertIsDefined(n.files);else{n.refCount=1,Fn.assert(!(null==(a=n.files)?void 0:a.size)),!o||Gs(t)?V(n):s.add(t,n);const r=i(n);if(r&&r.resolvedFileName){const t=e.toPath(r.resolvedFileName);let i=u.get(t);i||u.set(t,i=new Set),i.add(n)}}(n.files??(n.files=new Set)).add(r)}function $(t,n){const r=UU(t,e.toPath(t),A,P,F,v);if(r){const{dir:e,dirPath:t,nonRecursive:i}=r;t===P?(Fn.assert(i),n=!0):W(e,t,i)}return n}function V(e){Fn.assert(!!e.refCount);const{failedLookupLocations:t,affectingLocations:n,node10Result:r}=e;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length)&&!r)return;((null==t?void 0:t.length)||r)&&c.add(e);let i=!1;if(t)for(const e of t)i=$(e,i);r&&(i=$(r,i)),i&&W(A,P,!0),K(e,!(null==t?void 0:t.length)&&!r)}function K(e,t){Fn.assert(!!e.refCount);const{affectingLocations:n}=e;if(null==n?void 0:n.length){t&&l.add(e);for(const e of n)U(e,!0)}}function U(t,n){const r=D.get(t);if(r)return void(n?r.resolutions++:r.files++);let i=t;if(e.realpath&&(i=e.realpath(t),t!==i)){const e=D.get(i);if(e)return n?e.resolutions++:e.files++,e.paths.add(t),void D.set(t,e)}const o=new Set;o.add(i);let a=KU(e.toPath(i))?e.watchAffectingFileLocation(i,((t,n)=>{null==b||b.addOrDeleteFile(t,e.toPath(i),n);const r=S.getPackageJsonInfoCache().getInternalMap();o.forEach((t=>{s.resolutions&&(f??(f=new Set)).add(t),s.files&&(d??(d=new Set)).add(t),null==r||r.delete(e.toPath(t))})),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):tq;const s={watcher:a!==tq?{close:()=>{a.close(),a=tq}}:a,resolutions:n?1:0,files:n?0:1,paths:o};D.set(i,s),t!==i&&(D.set(t,s),o.add(t))}function q(t,n){const r=e.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)?t.forEach((e=>K(e,!0))):t.forEach(V)}function W(e,t,n){const r=E.get(t);r?(Fn.assert(!!n==!!r.nonRecursive),r.refCount++):E.set(t,{watcher:Y(e,t,n),refCount:1,nonRecursive:n})}function H(t,n){const r=UU(t,e.toPath(t),A,P,F,v);if(r){const{dirPath:e}=r;e===P?n=!0:X(e)}return n}function G(t,n,r){if(Fn.checkDefined(t.files).delete(n),t.refCount--,t.refCount)return;const i=r(t);if(i&&i.resolvedFileName){const n=e.toPath(i.resolvedFileName),r=u.get(n);(null==r?void 0:r.delete(t))&&!r.size&&u.delete(n)}const{failedLookupLocations:o,affectingLocations:a,node10Result:s}=t;if(c.delete(t)){let e=!1;if(o)for(const t of o)e=H(t,e);s&&(e=H(s,e)),e&&X(P)}else(null==a?void 0:a.length)&&l.delete(t);if(a)for(const e of a)D.get(e).resolutions--}function X(e){E.get(e).refCount--}function Y(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);b&&b.addOrDeleteFileOrDirectory(t,r),te(r,n===r)}),r?0:1)}function Q(e,t,n){const r=e.get(t);r&&(r.forEach((e=>G(e,t,n))),e.delete(t))}function Z(e){Q(x,e,O),Q(k,e,M)}function ee(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of Fn.checkDefined(e.files))(i??(i=new Set)).add(t),h=h||Zt(t,WV)}})),n}function te(t,n){if(n)(g||(g=new Set)).add(t);else{const n=jU(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=oa(t);if(J(t)||La(t)||J(r)||La(r))(p||(p=new Set)).add(t),(m||(m=new Set)).add(t);else{if(IV(e.getCurrentProgram(),t))return!1;if(Zo(t,".map"))return!1;(p||(p=new Set)).add(t);const n=SR(t,!0);n&&(m||(m=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ne(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(p||m||g)&&e.forEach(((t,n)=>oe(n)?e.delete(n):void 0))}function re(){var t;if(y)return d=void 0,ne(),(p||m||g||f)&&ee(C,ie),p=void 0,m=void 0,g=void 0,f=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{le(e.packageJsonLocations,(e=>d.has(e)))&&((i??(i=new Set)).add(e.path),n=!0)})),d=void 0),p||m||g||f?(n=ee(c,ie)||n,ne(),p=void 0,m=void 0,g=void 0,n=ee(l,ae)||n,f=void 0,n):n}function ie(t){var n;return!!ae(t)||!!(p||m||g)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>oe(e.toPath(t)))))||!!t.node10Result&&oe(e.toPath(t.node10Result)))}function oe(e){return(null==p?void 0:p.has(e))||N((null==m?void 0:m.keys())||[],(t=>!!fn(e,t)||void 0))||N((null==g?void 0:g.keys())||[],(t=>!(!(e.length>t.length&&fn(e,t))||!Ho(t)&&e[t.length]!==Bo)||void 0))}function ae(e){var t;return!!f&&(null==(t=e.affectingLocations)?void 0:t.some((e=>f.has(e))))}function se(){Xx(I,zx)}function ce(t,n){return function(t){return!!e.getCompilationSettings().typeRoots||zU(e.toPath(t))}(t)?e.watchTypeRootsDirectory(n,(r=>{const i=e.toPath(r);b&&b.addOrDeleteFileOrDirectory(r,i),h=!0,e.onChangedAutomaticTypeDirectiveNames();const o=HU(n,t,P,F,v,(e=>E.has(e)));o&&te(i,o===i)}),1):tq}}function QU(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var ZU,eq,tq,nq,rq,iq=S({"src/compiler/resolutionCache.ts"(){gH()}});function oq(e,t){const n=e===xo&&ZU?ZU:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:ln(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(sK(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(dK(r,n)+n.getNewLine()),r[0]=void 0}}function aq(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!B(eq,t.code)||(e.clearScreen(),0))}function sq(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function cq(e,t){return t?(t,n,r)=>{aq(e,t,r);let i=`[${lK(sq(e),"")}] `;i+=`${fK(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";aq(e,t,r)||(i+=n),i+=`${sq(e)} - `,i+=`${fK(t.messageText,e.newLine)}${function(e,t){return B(eq,e.code)?t+t:t}(t,n)}`,e.write(i)}}function lq(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>Fq(i,o,e);const s=_M(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function uq(e){return $(e,(e=>1===e.category))}function _q(e){return V(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=O(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=gs(n.file,n.start);return{fileName:t,line:e+1}}}))}function dq(e){return 1===e?Ra.Found_1_error_Watching_for_file_changes:Ra.Found_0_errors_Watching_for_file_changes}function fq(e,t){const n=lK(":"+e.line,"");return Go(e.fileName)&&Go(t)?Pa(t,e.fileName,!1)+n:e.fileName+n}function pq(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&fq(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[Ra.Found_1_error_in_0,a]:[Ra.Found_1_error]:0===o.length?[Ra.Found_0_errors,e]:1===o.length?[Ra.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[Ra.Found_0_errors_in_1_files,e,o.length];const c=MS(...s),l=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,$(e,(e=>e.fileName===t.fileName))])),o=i.reduce(((e,t)=>Math.max(e,t[1]||0)),0),a=Ra.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let u="";return u+=" ".repeat(l)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=i{t(e.fileName)}))}function hq(e,t){var n,r;const i=e.getFileIncludeReasons(),o=t=>Fa(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${Sq(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(` ${xq(e,n,o).messageText}`))),null==(r=yq(a,o))||r.forEach((e=>t(` ${e.messageText}`)))}function yq(e,t){var n;let r;if(e.path!==e.resolvedPath&&(r??(r=[])).push(RS(void 0,Ra.File_is_output_of_project_reference_source_0,Sq(e.originalFileName,t))),e.redirectInfo&&(r??(r=[])).push(RS(void 0,Ra.File_redirects_to_file_0,Sq(e.redirectInfo.redirectTarget,t))),om(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(r??(r=[])).push(RS(void 0,Ra.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,Sq(Be(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(r??(r=[])).push(RS(void 0,e.packageJsonScope.contents.packageJsonContent.type?Ra.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Ra.File_is_CommonJS_module_because_0_does_not_have_field_type,Sq(Be(e.packageJsonLocations),t))):(null==(n=e.packageJsonLocations)?void 0:n.length)&&(r??(r=[])).push(RS(void 0,Ra.File_is_CommonJS_module_because_package_json_was_not_found))}return r}function vq(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=oa(ga(r.fileName,e.getCurrentDirectory()));return O(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(ga(t,o))===i))}function bq(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=Zo(t,".json"),a=oa(ga(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames();return O(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!Zt(e,".json"))return!1;const n=Mk(e,a,"files");return!!n&&Bk(`(${n})$`,s).test(t)}))}function xq(e,t,n){var r,i;const o=e.getCompilerOptions();if(NK(t)){const r=PK((t=>e.getSourceFileByPath(t)),t),i=AK(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(Fn.assert(AK(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=AK(r)?r.packageId?Ra.Imported_via_0_from_file_1_with_packageId_2:Ra.Imported_via_0_from_file_1:r.text===od?r.packageId?Ra.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Ra.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?Ra.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Ra.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:Fn.assert(!r.packageId),o=Ra.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?Ra.Type_library_referenced_via_0_from_file_1_with_packageId_2:Ra.Type_library_referenced_via_0_from_file_1;break;case 7:Fn.assert(!r.packageId),o=Ra.Library_referenced_via_0_from_file_1;break;default:Fn.assertNever(t)}return RS(void 0,o,i,Sq(r.file,n),r.packageId&&Df(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return RS(void 0,Ra.Root_file_specified_for_compilation);const a=ga(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(vq(e,a))return RS(void 0,Ra.Part_of_files_list_in_tsconfig_json);const s=bq(e,a);return yt(s)?RS(void 0,Ra.Matched_by_include_pattern_0_in_1,s,Sq(o.configFile,n)):RS(void 0,s?Ra.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Ra.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=Fn.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return RS(void 0,Lv(o)?c?Ra.Output_from_referenced_project_0_included_because_1_specified:Ra.Source_from_referenced_project_0_included_because_1_specified:c?Ra.Output_from_referenced_project_0_included_because_module_is_specified_as_none:Ra.Source_from_referenced_project_0_included_because_module_is_specified_as_none,Sq(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return RS(void 0,...o.types?t.packageId?[Ra.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Df(t.packageId)]:[Ra.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[Ra.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Df(t.packageId)]:[Ra.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return RS(void 0,Ra.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=mf(fO.type,((e,t)=>e===HS(o)?t:void 0));return RS(void 0,...e?[Ra.Default_library_for_target_0,e]:[Ra.Default_library])}default:Fn.assertNever(t)}}function Sq(e,t){const n=yt(e)?e:e.fileName;return t?t(n):n}function kq(e,t,n,r,i,o,s,c){const l=!!e.getCompilerOptions().listFilesOnly,u=e.getConfigFileParsingDiagnostics().slice(),_=u.length;we(u,e.getSyntacticDiagnostics(void 0,o)),u.length===_&&(we(u,e.getOptionsDiagnostics(o)),l||(we(u,e.getGlobalDiagnostics(o)),u.length===_&&we(u,e.getSemanticDiagnostics(void 0,o))));const d=l?{emitSkipped:!0,diagnostics:a}:e.emit(void 0,i,o,s,c),{emittedFiles:f,diagnostics:p}=d;we(u,p);const m=Xs(u);if(m.forEach(t),n){const t=e.getCurrentDirectory();w(f,(e=>{const r=ga(e,t);n(`TSFILE: ${r}`)})),gq(e,n)}return r&&r(uq(m),_q(m)),{emitResult:d,diagnostics:m}}function Tq(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=kq(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}function Cq(e=xo,t){return{onWatchStatusChange:t||cq(e),watchFile:ut(e,e.watchFile)||nq,watchDirectory:ut(e,e.watchDirectory)||nq,setTimeout:ut(e,e.setTimeout)||St,clearTimeout:ut(e,e.clearTimeout)||St}}function wq(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):St,i=OV(e,n,r);return i.writeLog=r,i}function Eq(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:tK(((t,n)=>n?e.readFile(t,n):i.readFile(t)),t,void 0),getDefaultLibLocation:ut(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:nK(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:At((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:ln(r),getNewLine:()=>hx(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:ut(e,e.trace),directoryExists:ut(n,n.directoryExists),getDirectories:ut(n,n.getDirectories),realpath:ut(e,e.realpath),getEnvironmentVariable:ut(e,e.getEnvironmentVariable)||(()=>""),createHash:ut(e,e.createHash),readDirectory:ut(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit};return i}function Dq(e,t){if(t.match(KB)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!vs(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(UB)){t=t.substring(0,n);break}if(!o.match(qB))break;e=n}}return(e.createHash||ko)(t)}function Nq(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=Dq(e,r.text)),r}}function Aq(e,t){const n=At((()=>oa(ha(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:At((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>fa(n(),Ys(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,o)=>e.readDirectory(t,n,r,i,o),realpath:ut(e,e.realpath),getEnvironmentVariable:ut(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:ut(e,e.createHash),createProgram:t||MU,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:ut(e,e.now)}}function Pq(e=xo,t,n,r){const i=t=>e.write(t+e.newLine),o=Aq(e,t);return lt(o,Cq(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=hx(t);kq(e,n,i,(e=>o.onWatchStatusChange(MS(dq(e),e),r,t,e)))},o}function Fq(e,t,n){t(n),e.exit(1)}function Iq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||oq(i),l=Pq(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>Fq(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function Oq({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=Pq(i,o,a||oq(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function Mq(e){const t=e.system||xo,n=e.host||(e.host=jq(e.options,t)),r=Bq(e),i=Tq(r,e.reportDiagnostic||oq(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(pq(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}var Lq=S({"src/compiler/watch.ts"(){gH(),ZU=xo?{getCurrentDirectory:()=>xo.getCurrentDirectory(),getNewLine:()=>xo.newLine,getCanonicalFileName:ln(xo.useCaseSensitiveFileNames)}:void 0,eq=[Ra.Starting_compilation_in_watch_mode.code,Ra.File_change_detected_Starting_incremental_compilation.code],tq={close:St},nq=()=>tq,rq={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function Rq(e,n){const r=Y$(e);if(!r)return;let i;if(n.getBuildInfo)i=n.getBuildInfo(r,e.configFilePath);else{const e=n.readFile(r);if(!e)return;i=gV(r,e)}return i&&i.version===t&&i.program?AU(i,r,n):void 0}function jq(e,t=xo){const n=rK(e,void 0,t);return n.createHash=ut(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,Nq(n),iK(n,(e=>va(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function Bq({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||MU)(e,t,i=i||jq(t),Rq(t,i),n,r)}function Jq(e,t,n,r,i,o,a,s){return gt(e)?Oq({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):Iq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function zq(e){let t,n,r,i,o,a,s,c,l=e.extendedConfigCache,u=!1;const _=new Map;let d,f=!1;const p=e.useCaseSensitiveFileNames(),m=e.getCurrentDirectory(),{configFileName:g,optionsToExtend:h={},watchOptionsToExtend:y,extraFileExtensions:v,createProgram:b}=e;let x,S,{rootFiles:k,options:T,watchOptions:C,projectReferences:w}=e,E=!1,D=!1;const N=void 0===g?void 0:CV(e,m,p),A=N||e,P=BK(e,A);let F=W();g&&e.configFileParsingResult&&(ae(e.configFileParsingResult),F=W()),Q(Ra.Starting_compilation_in_watch_mode),g&&!e.configFileParsingResult&&(F=hx(h),Fn.assert(!k),oe(),F=W()),Fn.assert(T),Fn.assert(k);const{watchFile:I,watchDirectory:O,writeLog:M}=wq(e,T),L=ln(p);let R;M(`Current directory: ${m} CaseSensitiveFileNames: ${p}`),g&&(R=I(g,(function(){Fn.assert(!!g),n=2,ne()}),2e3,C,rq.ConfigFile));const j=Eq(e,(()=>T),A);Nq(j);const B=j.getSourceFile;j.getSourceFile=(e,...t)=>X(e,H(e),...t),j.getSourceFileByPath=X,j.getNewLine=()=>F,j.fileExists=function(e){const t=H(e);return!G(_.get(t))&&A.fileExists(e)},j.onReleaseOldSourceFile=function(e,t,n){const r=_.get(e.resolvedPath);void 0!==r&&(G(r)?(d||(d=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),_.delete(e.resolvedPath),n||J.removeResolutionsOfFile(e.path)))},j.onReleaseParsedCommandLine=function(e){var t;const n=H(e),r=null==s?void 0:s.get(n);r&&(s.delete(n),r.watchedDirectories&&Xx(r.watchedDirectories,LV),null==(t=r.watcher)||t.close(),EV(n,c))},j.toPath=H,j.getCompilationSettings=()=>T,j.useSourceOfProjectReferenceRedirect=ut(e,e.useSourceOfProjectReferenceRedirect),j.watchDirectoryOfFailedLookupLocation=(e,t,n)=>O(e,t,n,C,rq.FailedLookupLocations),j.watchAffectingFileLocation=(e,t)=>I(e,t,2e3,C,rq.AffectingFileLocation),j.watchTypeRootsDirectory=(e,t,n)=>O(e,t,n,C,rq.TypeRoots),j.getCachedDirectoryStructureHost=()=>N,j.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return J.invalidateResolutionsOfFailedLookupLocations();const t=ee();M("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(te,250,"timerToInvalidateFailedLookupResolutions")},j.onInvalidatedResolution=ne,j.onChangedAutomaticTypeDirectiveNames=ne,j.fileIsOpen=kt,j.getCurrentProgram=U,j.writeLog=M,j.getParsedCommandLine=se;const J=YU(j,g?oa(ga(g,m)):m,!1);j.resolveModuleNameLiterals=ut(e,e.resolveModuleNameLiterals),j.resolveModuleNames=ut(e,e.resolveModuleNames),j.resolveModuleNameLiterals||j.resolveModuleNames||(j.resolveModuleNameLiterals=J.resolveModuleNameLiterals.bind(J)),j.resolveTypeReferenceDirectiveReferences=ut(e,e.resolveTypeReferenceDirectiveReferences),j.resolveTypeReferenceDirectives=ut(e,e.resolveTypeReferenceDirectives),j.resolveTypeReferenceDirectiveReferences||j.resolveTypeReferenceDirectives||(j.resolveTypeReferenceDirectiveReferences=J.resolveTypeReferenceDirectiveReferences.bind(J)),j.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):J.resolveLibrary.bind(J),j.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ut(e,e.getModuleResolutionCache):()=>J.getModuleResolutionCache();const z=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?ut(e,e.hasInvalidatedResolutions)||Tt:kt,$=e.resolveLibrary?ut(e,e.hasInvalidatedLibResolutions)||Tt:kt;return t=Rq(T,j),q(),fe(),g&&me(H(g),T,C,rq.ExtendedConfigFile),g?{getCurrentProgram:K,getProgram:ie,close:V}:{getCurrentProgram:K,getProgram:ie,updateRootFileNames:function(e){Fn.assert(!g,"Cannot update root file names with config file watch mode"),k=e,ne()},close:V};function V(){ee(),J.clear(),Xx(_,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),R&&(R.close(),R=void 0),null==l||l.clear(),l=void 0,c&&(Xx(c,LV),c=void 0),i&&(Xx(i,LV),i=void 0),r&&(Xx(r,zx),r=void 0),s&&(Xx(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&Xx(e.watchedDirectories,LV),e.watchedDirectories=void 0})),s=void 0)}function K(){return t}function U(){return t&&t.getProgramOrUndefined()}function q(){M("Synchronizing program"),Fn.assert(T),Fn.assert(k),ee();const n=K();f&&(F=W(),n&&uf(n.getCompilerOptions(),T)&&J.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=J.createHasInvalidatedResolutions(z,$),{originalReadFile:a,originalFileExists:s,originalDirectoryExists:c,originalCreateDirectory:l,originalWriteFile:p,readFileWithCache:m}=iK(j,H);return FK(U(),k,T,(e=>function(e,t){const n=_.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?Dq(j,r):void 0}(e,m)),(e=>j.fileExists(e)),i,o,Z,se,w)?D&&(u&&Q(Ra.File_change_detected_Starting_incremental_compilation),t=b(void 0,void 0,j,t,S,w),D=!1):(u&&Q(Ra.File_change_detected_Starting_incremental_compilation),function(e,n){M("CreatingProgramWith::"),M(` roots: ${JSON.stringify(k)}`),M(` options: ${JSON.stringify(T)}`),w&&M(` projectReferences: ${JSON.stringify(w)}`);const i=f||!U();f=!1,D=!1,J.startCachingPerDirectoryResolution(),j.hasInvalidatedResolutions=e,j.hasInvalidatedLibResolutions=n,j.hasChangedAutomaticTypeDirectiveNames=Z;const o=U();if(t=b(k,T,j,t,S,w),J.finishCachingPerDirectoryResolution(t.getProgram(),o),AV(t.getProgram(),r||(r=new Map),_e),i&&J.updateTypeRootsWatch(),d){for(const e of d)r.has(e)||_.delete(e);d=void 0}}(i,o)),u=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),j.readFile=a,j.fileExists=s,j.directoryExists=c,j.createDirectory=l,j.writeFile=p,t}function W(){return hx(T||h)}function H(e){return va(e,m,L)}function G(e){return"boolean"==typeof e}function X(e,t,n,r,i){const o=_.get(t);if(G(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=B(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=ce(t,e,le,250,C,rq.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),_.set(t,!1));else if(i){const n=ce(t,e,le,250,C,rq.SourceFile);_.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else _.set(t,!1);return i}return o.sourceFile}function Y(e){const t=_.get(e);void 0!==t&&(G(t)?_.set(e,{version:!1}):t.version=!1)}function Q(t){e.onWatchStatusChange&&e.onWatchStatusChange(MS(t),F,T||h)}function Z(){return J.hasChangedAutomaticTypeDirectiveNames()}function ee(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function te(){a=void 0,J.invalidateResolutionsOfFailedLookupLocations()&&ne()}function ne(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),M("Scheduling update"),o=e.setTimeout(re,250,"timerToUpdateProgram"))}function re(){o=void 0,u=!0,ie()}function ie(){var e,t,r,i;switch(n){case 1:null==(e=fr)||e.logStartUpdateProgram("PartialConfigReload"),M("Reloading new file names and options"),Fn.assert(T),Fn.assert(g),n=0,k=lL(T.configFile.configFileSpecs,ga(oa(g),m),T,P,v),WM(k,ga(g,m),T.configFile.configFileSpecs,S,E)&&(D=!0),q();break;case 2:null==(t=fr)||t.logStartUpdateProgram("FullConfigReload"),Fn.assert(g),M(`Reloading config file: ${g}`),n=0,N&&N.clearCache(),oe(),f=!0,q(),fe(),me(H(g),T,C,rq.ExtendedConfigFile);break;default:null==(r=fr)||r.logStartUpdateProgram("SynchronizeProgram"),q()}return null==(i=fr)||i.logStopUpdateProgram("Done"),K()}function oe(){Fn.assert(g),ae(_M(g,h,P,l||(l=new Map),y,v))}function ae(e){k=e.fileNames,T=e.options,C=e.watchOptions,w=e.projectReferences,x=e.wildcardDirectories,S=IK(e).slice(),E=qM(e.raw),D=!0}function se(t){const n=H(t);let r=null==s?void 0:s.get(n);if(r){if(!r.reloadLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.reloadLevel&&!e.getParsedCommandLine){M("Reloading new file names and options"),Fn.assert(T);const e=lL(r.parsedCommandLine.options.configFile.configFileSpecs,ga(oa(t),m),T,P);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.reloadLevel=void 0,r.parsedCommandLine}}M(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=P.onUnRecoverableConfigFileDiagnostic;P.onUnRecoverableConfigFileDiagnostic=St;const n=_M(e,void 0,P,l||(l=new Map),y);return P.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.reloadLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),function(e,t,n){var r,i,o,a,c;n.watcher||(n.watcher=I(e,((n,r)=>{ue(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.reloadLevel=2),J.removeResolutionsFromProjectReferenceRedirects(t),ne()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||C,rq.ConfigFileOfReferencedProject)),(null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories)?PV(n.watchedDirectories||(n.watchedDirectories=new Map),new Map(Object.entries(null==(o=n.parsedCommandLine)?void 0:o.wildcardDirectories)),((r,i)=>{var o;return O(r,(n=>{const i=H(n);N&&N.addOrDeleteFileOrDirectory(n,i),Y(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(FV({watchedDirPath:H(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:m,useCaseSensitiveFileNames:p,writeLog:M,toPath:H})||2!==o.reloadLevel&&(o.reloadLevel=1,ne()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||C,rq.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(Xx(n.watchedDirectories,LV),n.watchedDirectories=void 0),me(t,null==(a=n.parsedCommandLine)?void 0:a.options,(null==(c=n.parsedCommandLine)?void 0:c.watchOptions)||C,rq.ExtendedConfigOfReferencedProject)}(t,n,r),i}function ce(e,t,n,r,i,o){return I(t,((t,r)=>n(t,r,e)),r,i,o)}function le(e,t,n){ue(e,n,t),2===t&&_.has(n)&&J.invalidateResolutionOfFile(n),Y(n),ne()}function ue(e,t,n){N&&N.addOrDeleteFile(e,t,n)}function _e(e){return(null==s?void 0:s.has(e))?tq:ce(e,e,de,500,C,rq.MissingFile)}function de(e,t,n){ue(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Y(n),ne())}function fe(){x?PV(i||(i=new Map),new Map(Object.entries(x)),pe):i&&Xx(i,LV)}function pe(e,t){return O(e,(t=>{Fn.assert(g),Fn.assert(T);const r=H(t);N&&N.addOrDeleteFileOrDirectory(t,r),Y(r),FV({watchedDirPath:H(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:g,extraFileExtensions:v,options:T,program:K()||k,currentDirectory:m,useCaseSensitiveFileNames:p,writeLog:M,toPath:H})||2!==n&&(n=1,ne())}),t,C,rq.WildcardDirectory)}function me(e,t,r,i){wV(e,t,c||(c=new Map),((e,t)=>I(e,((r,i)=>{var o;ue(e,t,i),l&&DV(l,t,H);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(g&&H(g)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.reloadLevel=2),J.removeResolutionsFromProjectReferenceRedirects(e)}ne()}))}),2e3,r,i)),H)}}var $q,Vq=S({"src/compiler/watchPublic.ts"(){gH()}});function Kq(e){return Zo(e,".json")?e:fa(e,"tsconfig.json")}var Uq,qq,Wq,Hq=S({"src/compiler/tsbuild.ts"(){gH(),$q=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))($q||{})}});function Gq(e,t){return function(e,t,n){const r=e.get(t);let i;return r||(i=new Map,e.set(t,i)),r||i}(e,t)}function Xq(e){return e.now?e.now():new Date}function Yq(e){return!!e&&!!e.buildOrder}function Qq(e){return Yq(e)?e.buildOrder:e}function Zq(e,t){return n=>{let r=t?`[${lK(sq(e),"")}] `:`${sq(e)} - `;r+=`${fK(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function eW(e,t,n,r){const i=Aq(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):Ct,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):St,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):St,i.reportDiagnostic=n||oq(e),i.reportSolutionBuilderStatus=r||Zq(e),i.now=ut(e,e.now),i}function tW(e=xo,t,n,r,i){const o=eW(e,t,n,r);return o.reportErrorSummary=i,o}function nW(e=xo,t,n,r,i){const o=eW(e,t,n,r);return lt(o,Cq(e,i)),o}function rW(e,t,n){return ZW(!1,e,t,n)}function iW(e,t,n,r){return ZW(!0,e,t,n,r)}function oW(e,t){return va(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function aW(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=oW(e,t);return n.set(t,i),i}function sW(e){return!!e.options}function cW(e,t){const n=e.configFileCache.get(t);return n&&sW(n)?n:void 0}function lW(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return sW(i)?i:void 0;let o;wr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:u}=e;let _;return u.getParsedCommandLine?(_=u.getParsedCommandLine(t),_||(o=MS(Ra.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,_=_M(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=St),r.set(n,_||o),wr("SolutionBuilder::afterConfigFileParsing"),Er("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),_}function uW(e,t){return Kq(pa(e.compilerHost.getCurrentDirectory(),t))}function _W(e,t){const n=new Map,r=new Map,i=[];let o,s;for(const e of t)c(e);return s?{buildOrder:o||a,circularDiagnostics:s}:o||a;function c(t,a){const l=aW(e,t);if(r.has(l))return;if(n.has(l))return void(a||(s||(s=[])).push(MS(Ra.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const u=lW(e,t,l);if(u&&u.projectReferences)for(const t of u.projectReferences)c(uW(e,t.path),a||t.circular);i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function dW(e){return e.buildOrder||function(e){const t=_W(e,e.rootNames.map((t=>uW(e,t))));e.resolvedConfigFilePaths.clear();const n=new Map(Qq(t).map((t=>[aW(e,t),!0]))),r={onDeleteValue:St};return Yx(e.configFileCache,n,r),Yx(e.projectStatus,n,r),Yx(e.builderPrograms,n,r),Yx(e.diagnostics,n,r),Yx(e.projectPendingBuild,n,r),Yx(e.projectErrorsReported,n,r),Yx(e.buildInfoCache,n,r),Yx(e.outputTimeStamps,n,r),e.watch&&(Yx(e.allWatchedConfigFiles,n,{onDeleteValue:zx}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),Yx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(LV)}),Yx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(zx)}),Yx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(zx)})),e.buildOrder=t}(e)}function fW(e,t,n){const r=t&&uW(e,t),i=dW(e);if(Yq(i))return i;if(r){const t=aW(e,r);if(-1===L(i,(n=>aW(e,n)===t)))return}const o=r?_W(e,[r]):i;return Fn.assert(!Yq(o)),Fn.assert(!n||void 0!==r),Fn.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function pW(e){e.cache&&mW(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:u,readFileWithCache:_}=iK(n,(t=>oW(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=_,t.getSourceFile=u,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function mW(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function gW(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function hW({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||re.projectPendingBuild.set(aW(e,t),0))),t&&t.throwIfCancellationRequested())}function vW(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function bW(e,t,n,r,i,o,s){let c,l,u,_=0===e?0:4;return 0===e?{kind:e,project:n,projectPath:r,buildOrder:s,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>f(wt),getProgram:()=>f((e=>e.getProgramOrUndefined())),getSourceFile:e=>f((t=>t.getSourceFile(e))),getSourceFiles:()=>p((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>p((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>p((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>p((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>p((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>p((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>p((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>f((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(e,r,i,o,a)=>e||o?f((s=>{var c,l;return s.emit(e,r,i,o,a||(null==(l=(c=t.host).getCustomTransformers)?void 0:l.call(c,n)))})):(k(2,i),5===_?b(r,i):3===_?v(r,i,a):void 0),done:d}:{kind:e,project:n,projectPath:r,buildOrder:s,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(e,t)=>4!==_?u:S(e,t),done:d};function d(n,i,o){return k(8,n,i,o),wr(0===e?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),vW(t,r)}function f(e){return k(0),c&&e(c)}function p(e){return f(e)||a}function m(){var e,i;if(Fn.assert(void 0===c),t.options.dry)return tH(t,Ra.A_non_dry_build_would_build_project_0,n),l=1,void(_=7);if(t.options.verbose&&tH(t,Ra.Building_project_0,n),0===o.fileNames.length)return iH(t,r,IK(o)),l=0,void(_=7);const{host:a,compilerHost:s}=t;t.projectCompilerOptions=o.options,null==(e=t.moduleResolutionCache)||e.update(o.options),null==(i=t.typeReferenceDirectiveResolutionCache)||i.update(o.options),c=a.createProgram(o.fileNames,o.options,s,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(e.force)return;return t.get(r)||Rq(i.options,n)}(t,r,o),IK(o),o.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(r,t.moduleResolutionCache&&q(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),(([e,n])=>[t.host.realpath&&n?oW(t,t.host.realpath(e)):e,n]))),t.builderPrograms.set(r,c)),_++}function g(e,n,i){e.length?({buildResult:l,step:_}=EW(t,r,c,o,e,n,i)):_++}function h(e){Fn.assertIsDefined(c),g([...c.getConfigFileParsingDiagnostics(),...c.getOptionsDiagnostics(e),...c.getGlobalDiagnostics(e),...c.getSyntacticDiagnostics(void 0,e)],8,"Syntactic")}function y(e){g(Fn.checkDefined(c).getSemanticDiagnostics(void 0,e),16,"Semantic")}function v(e,i,a){var s,u,d;Fn.assertIsDefined(c),Fn.assert(3===_);const f=c.saveEmitState();let p;const m=[],{emitResult:g}=kq(c,(e=>(p||(p=[])).push(e)),void 0,void 0,((e,t,n,r,i,o)=>m.push({name:e,text:t,writeByteOrderMark:n,data:o})),i,!1,a||(null==(u=(s=t.host).getCustomTransformers)?void 0:u.call(s,n)));if(p)return c.restoreEmitState(f),({buildResult:l,step:_}=EW(t,r,c,o,p,32,"Declaration file")),{emitSkipped:!0,diagnostics:g.diagnostics};const{host:h,compilerHost:y}=t,v=(null==(d=c.hasChangedEmitSignature)?void 0:d.call(c))?0:2,b=uv(),S=new Map,k=c.getCompilerOptions(),T=pk(k);let C,w;return m.forEach((({name:n,text:i,writeByteOrderMark:o,data:a})=>{const s=oW(t,n);S.set(oW(t,n),n),(null==a?void 0:a.buildInfo)&&FW(t,a.buildInfo,r,k,v);const c=(null==a?void 0:a.differsOnlyInMap)?Co(t.host,n):void 0;$v(e?{writeFile:e}:y,b,n,i,o),(null==a?void 0:a.differsOnlyInMap)?t.host.setModifiedTime(n,c):!T&&t.watch&&(C||(C=PW(t,r))).set(s,w||(w=Xq(t.host)))})),x(b,S,m.length?m[0].name:dV(o,!h.useCaseSensitiveFileNames()),v),g}function b(e,n){Fn.assertIsDefined(c),Fn.assert(5===_);const i=c.emitBuildInfo(((n,i,o,a,s,l)=>{(null==l?void 0:l.buildInfo)&&FW(t,l.buildInfo,r,c.getCompilerOptions(),2),e?e(n,i,o,a,s,l):t.compilerHost.writeFile(n,i,o,a,s,l)}),n);return i.diagnostics.length&&(rH(t,i.diagnostics),t.diagnostics.set(r,[...t.diagnostics.get(r),...i.diagnostics]),l&=64),i.emittedFiles&&t.write&&i.emittedFiles.forEach((e=>CW(t,o,e))),wW(t,c,o),_=7,i}function x(e,n,i,a){const s=e.getDiagnostics();return s.length?(({buildResult:l,step:_}=EW(t,r,c,o,s,64,"Emit")),s):(t.write&&n.forEach((e=>CW(t,o,e))),jW(t,o,r,Ra.Updating_unchanged_output_timestamps_of_project_0,n),t.diagnostics.delete(r),t.projectStatus.set(r,{type:1,oldestOutputFileName:i}),wW(t,c,o),_=7,l=a,s)}function S(a,c){var d,f,p,m;if(Fn.assert(1===e),t.options.dry)return tH(t,Ra.A_non_dry_build_would_update_output_of_project_0,n),l=1,void(_=7);t.options.verbose&&tH(t,Ra.Updating_output_of_project_0,n);const{compilerHost:g}=t;t.projectCompilerOptions=o.options,null==(f=(d=t.host).beforeEmitBundle)||f.call(d,o);const h=hV(o,g,(e=>{const n=uW(t,e.path);return lW(t,n,aW(t,n))}),c||(null==(m=(p=t.host).getCustomTransformers)?void 0:m.call(p,n)));if(yt(h))return tH(t,Ra.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,eH(t,h)),_=6,u=bW(0,t,n,r,i,o,s);Fn.assert(!!h.length);const y=uv(),v=new Map;let b=2;const S=t.buildInfoCache.get(r).buildInfo||void 0;return h.forEach((({name:e,text:n,writeByteOrderMark:i,data:s})=>{var c,l;v.set(oW(t,e),e),(null==s?void 0:s.buildInfo)&&((null==(c=s.buildInfo.program)?void 0:c.outSignature)!==(null==(l=null==S?void 0:S.program)?void 0:l.outSignature)&&(b&=-3),FW(t,s.buildInfo,r,o.options,b)),$v(a?{writeFile:a}:g,y,e,n,i)})),{emitSkipped:!1,diagnostics:x(y,v,h[0].name,b)}}function k(e,a,c,d){for(;_<=e&&_<8;){const e=_;switch(_){case 0:m();break;case 1:h(a);break;case 2:y(a);break;case 3:v(c,a,d);break;case 5:b(c,a);break;case 4:S(c,d);break;case 6:Fn.checkDefined(u).done(a,c,d),_=8;break;case 7:zW(t,n,r,i,o,s,Fn.checkDefined(l)),_++}Fn.assert(_>e)}}}function xW({options:e},t,n){return!(3===t.type&&!e.force&&0!==n.fileNames.length&&!IK(n).length&&pk(n.options))}function SW(e,t,n){if(!e.projectPendingBuild.size)return;if(Yq(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;or.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{JW(e,r,n),o=!1},done:()=>(o&&JW(e,r,n),wr("SolutionBuilder::Timestamps only updates"),vW(e,n))}}(e,t.project,t.projectPath,t.config,n)}function TW(e,t,n){const r=SW(e,t,n);return r?kW(e,r,t):r}function CW({write:e},t,n){e&&t.options.listEmittedFiles&&e(`TSFILE: ${n}`)}function wW(e,t,n){t?(e.write&&gq(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(n),e.projectCompilerOptions=e.baseCompilerOptions}function EW(e,t,n,r,i,o,a){const s=n&&!Lv(n.getCompilerOptions());return iH(e,t,i),e.projectStatus.set(t,{type:0,reason:`${a} errors`}),s?{buildResult:o,step:5}:(wW(e,n,r),{buildResult:o,step:7})}function DW(e){return!!e.watcher}function NW(e,t){const n=oW(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!DW(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=Co(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function AW(e,t,n,r,i,o,a){const s=oW(e,t),c=e.filesWatched.get(s);if(c&&DW(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=Fn.checkDefined(e.filesWatched.get(s));Fn.assert(DW(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=Fn.checkDefined(e.filesWatched.get(s));Fn.assert(DW(t)),1===t.callbacks.length?(e.filesWatched.delete(s),LV(t)):cn(t.callbacks,n)}}}function PW(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function FW(e,t,n,r,i){const o=Y$(r),a=IW(e,o,n),s=Xq(e.host);a?(a.buildInfo=t,a.modifiedTime=s,2&i||(a.latestChangedDtsTime=s)):e.buildInfoCache.set(n,{path:oW(e,o),buildInfo:t,modifiedTime:s,latestChangedDtsTime:2&i?void 0:s})}function IW(e,t,n){const r=oW(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function OW(e,t,n,r){const i=oW(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?gV(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||po}),s}function MW(e,t,n,r){if(nh&&(m=t,h=n),f&&v.add(oW(e,t))}if(f){p||(p=PU(f,u,l));for(const e of p.roots)if(!v.has(e))return{type:10,buildInfoFile:u,inputFile:e}}if(!u){const t=uV(n,!l.useCaseSensitiveFileNames()),i=PW(e,r);for(const n of t){const t=oW(e,n);let r=null==i?void 0:i.get(t);if(r||(r=Co(e.host,n),null==i||i.set(t,r)),r===po)return{type:4,missingOutputFileName:n};if(rMW(e,t,g,_)));return C||(w(e.lastCachedPackageJsonLookups.get(r)||a,(([t])=>MW(e,t,g,_)))||(k&&S?{type:3,outOfDateOutputFileName:_,newerProjectName:x}:{type:S?2:y?15:1,newestInputFileTime:h,newestInputFileName:m,oldestOutputFileName:_}))}(e,n,r);return wr("SolutionBuilder::afterUpToDateCheck"),Er("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function jW(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Y$(t.options);if(a)return(null==i?void 0:i.has(oW(e,a)))||(e.options.verbose&&tH(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=Xq(e.host)),IW(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:s}=e,c=uV(t,!s.useCaseSensitiveFileNames()),l=PW(e,n),u=l?new Set:void 0;if(!i||c.length!==i.size){let n=!!e.options.verbose;for(const a of c){const c=oW(e,a);(null==i?void 0:i.has(c))||(n&&(n=!1,tH(e,r,t.options.configFilePath)),s.setModifiedTime(a,o||(o=Xq(e.host))),l&&(l.set(c,o),u.add(c)))}}null==l||l.forEach(((e,t)=>{(null==i?void 0:i.has(t))||u.has(t)||l.delete(t)}))}function BW(e,t,n){if(!t.composite)return;const r=Fn.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&r.buildInfo.program&&r.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(ga(r.buildInfo.program.latestChangedDtsFile,oa(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function JW(e,t,n){if(e.options.dry)return tH(e,Ra.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);jW(e,t,n,Ra.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:dV(t,!e.host.useCaseSensitiveFileNames())})}function zW(e,t,n,r,i,o,a){if(!(124&a)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(aW(e,t))))?c?2:1:0}(e,t,n,r,i,o);return wr("SolutionBuilder::afterBuild"),Er("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function VW(e,t,n){wr("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=fW(e,t,n);if(!r)return 3;if(Yq(r))return rH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=aW(e,t),r=lW(e,t,n);if(void 0===r){oH(e,n);continue}const i=uV(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>oW(e,t))));for(const t of i)s.has(oW(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),KW(e,n,0)))}return a&&tH(e,Ra.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join("")),0}(e,t,n);return wr("SolutionBuilder::afterClean"),Er("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function KW(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,gW(e,t),hW(e,t,n),pW(e)}function UW(e,t,n){e.reportFileChangeDetected=!0,KW(e,t,n),qW(e,250,!0)}function qW(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(WW,t,"timerToBuildInvalidatedProject",e,n))}function WW(e,t,n){wr("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),nH(e,Ra.File_change_detected_Starting_incremental_compilation));let n=0;const r=dW(e),i=TW(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=SW(e,r,!1);if(!i)break;if(2!==i.kind&&(t||5===n))return void qW(e,100,!1);kW(e,i,r).done(),2!==i.kind&&n++}return mW(e),r}(t,n);wr("SolutionBuilder::afterBuild"),Er("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&aH(t,r)}function HW(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,AW(e,t,(()=>UW(e,n,2)),2e3,null==r?void 0:r.watchOptions,rq.ConfigFile,t))}function GW(e,t,n){wV(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>AW(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>UW(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,rq.ExtendedConfigFile)),(t=>oW(e,t)))}function XW(e,t,n,r){e.watch&&PV(Gq(e.allWatchedWildcardDirectories,n),new Map(Object.entries(r.wildcardDirectories)),((i,o)=>e.watchDirectory(i,(o=>{var a;FV({watchedDirPath:oW(e,i),fileOrDirectory:o,fileOrDirectoryPath:oW(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=cW(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>oW(e,t)})||UW(e,n,1)}),o,null==r?void 0:r.watchOptions,rq.WildcardDirectory,t)))}function YW(e,t,n,r){e.watch&&Qx(Gq(e.allWatchedInputFiles,n),nt(r.fileNames,(t=>oW(e,t))),{createNewValue:(i,o)=>AW(e,o,(()=>UW(e,n,0)),250,null==r?void 0:r.watchOptions,rq.SourceFile,t),onDeleteValue:zx})}function QW(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&Qx(Gq(e.allWatchedPackageJsonFiles,n),new Map(e.lastCachedPackageJsonLookups.get(n)),{createNewValue:(i,o)=>AW(e,i,(()=>UW(e,n,0)),2e3,null==r?void 0:r.watchOptions,rq.PackageJson,t),onDeleteValue:zx})}function ZW(e,t,n,r,i){const o=function(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return dO.forEach((n=>{We(e,n.name)&&(t[n.name]=e[n.name])})),t}(r),c=Eq(o,(()=>m.projectCompilerOptions));let l,u,_;Nq(c),c.getParsedCommandLine=e=>lW(m,e,aW(m,e)),c.resolveModuleNameLiterals=ut(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=ut(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=ut(o,o.resolveLibrary),c.resolveModuleNames=ut(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=ut(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=ut(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=sR(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>kK(e,t,n,r,i,o,l,bK),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(u=cR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>kK(e,t,n,r,i,o,u,SK)),c.resolveLibrary||(_=sR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>uR(e,t,n,o,_)),c.getBuildInfo=(e,t)=>OW(m,e,aW(m,t),void 0);const{watchFile:d,watchDirectory:f,writeLog:p}=wq(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:BK(o),write:ut(o,o.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:u,libraryResolutionCache:_,buildOrder:void 0,readFileWithCache:e=>o.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:d,watchDirectory:f,writeLog:p};return m}(e,t,n,r,i);return{build:(e,t,n,r)=>$W(o,e,t,n,r),clean:e=>VW(o,e),buildReferences:(e,t,n,r)=>$W(o,e,t,n,r,!0),cleanReferences:e=>VW(o,e,!0),getNextInvalidatedProject:e=>(yW(o,e),TW(o,dW(o),!1)),getBuildOrder:()=>dW(o),getUpToDateStatusOfProject:e=>{const t=uW(o,e),n=aW(o,t);return RW(o,lW(o,t,n),n)},invalidateProject:(e,t)=>KW(o,e,t||0),close:()=>function(e){Xx(e.allWatchedConfigFiles,zx),Xx(e.allWatchedExtendedConfigFiles,LV),Xx(e.allWatchedWildcardDirectories,(e=>Xx(e,LV))),Xx(e.allWatchedInputFiles,(e=>Xx(e,zx))),Xx(e.allWatchedPackageJsonFiles,(e=>Xx(e,zx)))}(o)}}function eH(e,t){return Fa(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function tH(e,t,...n){e.host.reportSolutionBuilderStatus(MS(t,...n))}function nH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,MS(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function rH({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function iH(e,t,n){rH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function oH(e,t){iH(e,t,[e.configFileCache.get(t)])}function aH(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];Yq(t)?(sH(e,t.buildOrder),rH(e,t.circularDiagnostics),n&&(i+=uq(t.circularDiagnostics)),n&&(o=[...o,..._q(t.circularDiagnostics)])):(t.forEach((t=>{const n=aW(e,t);e.projectErrorsReported.has(n)||rH(e,r.get(n)||a)})),n&&r.forEach((e=>i+=uq(e))),n&&r.forEach((e=>[...o,..._q(e)]))),e.watch?nH(e,dq(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function sH(e,t){e.options.verbose&&tH(e,Ra.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+eH(e,t))).join(""))}function cH(e,n,r){e.options.verbose&&function(e,n,r){switch(r.type){case 6:return tH(e,Ra.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,eH(e,n),eH(e,r.outOfDateOutputFileName),eH(e,r.newerInputFileName));case 7:return tH(e,Ra.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,eH(e,n),eH(e,r.outOfDateOutputFileName),eH(e,r.newerProjectName));case 4:return tH(e,Ra.Project_0_is_out_of_date_because_output_file_1_does_not_exist,eH(e,n),eH(e,r.missingOutputFileName));case 5:return tH(e,Ra.Project_0_is_out_of_date_because_there_was_error_reading_file_1,eH(e,n),eH(e,r.fileName));case 8:return tH(e,Ra.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,eH(e,n),eH(e,r.buildInfoFile));case 9:return tH(e,Ra.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,eH(e,n),eH(e,r.buildInfoFile));case 10:return tH(e,Ra.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,eH(e,n),eH(e,r.buildInfoFile),eH(e,r.inputFile));case 1:if(void 0!==r.newestInputFileTime)return tH(e,Ra.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,eH(e,n),eH(e,r.newestInputFileName||""),eH(e,r.oldestOutputFileName||""));break;case 3:return tH(e,Ra.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,eH(e,n),eH(e,r.newerProjectName));case 2:return tH(e,Ra.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,eH(e,n));case 15:return tH(e,Ra.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,eH(e,n));case 11:return tH(e,Ra.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,eH(e,n),eH(e,r.upstreamProjectName));case 12:return tH(e,r.upstreamProjectBlocked?Ra.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Ra.Project_0_can_t_be_built_because_its_dependency_1_has_errors,eH(e,n),eH(e,r.upstreamProjectName));case 0:return tH(e,Ra.Failed_to_parse_file_0_Colon_1,eH(e,n),r.reason);case 14:return tH(e,Ra.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,eH(e,n),r.version,t);case 17:tH(e,Ra.Project_0_is_being_forcibly_rebuilt,eH(e,n))}}(e,n,r)}var lH,uH,_H,dH,fH,pH,mH=S({"src/compiler/tsbuildPublic.ts"(){gH(),co(),Uq=new Date(-864e13),qq=new Date(864e13),Wq=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(Wq||{})}}),gH=S({"src/compiler/_namespaces/ts.ts"(){T(),Wn(),Hn(),lr(),Sr(),kr(),lo(),So(),Ko(),ja(),ns(),Hs(),of(),yC(),xC(),TC(),OC(),ZC(),bE(),wE(),jP(),eI(),hI(),HO(),DL(),pj(),Cj(),Ej(),PB(),HB(),fJ(),UJ(),tz(),az(),hz(),Sz(),Tz(),Ez(),Nz(),Pz(),Iz(),Lz(),jz(),Jz(),$z(),Kz(),Qz(),e$(),n$(),o$(),s$(),u$(),d$(),p$(),g$(),y$(),k$(),F$(),H$(),TV(),XV(),qK(),WK(),YK(),IU(),RU(),iq(),Lq(),Vq(),Hq(),mH(),yB(),co()}});function hH(t,n){return new Jn(He(n,`ts${e}`)||He(n,"latest")).compareTo(t.version)<=0}function yH(e){return dH.has(e)?"node":e}function vH(e,t){const n=dM(t,(t=>e.readFile(t)));return new Map(Object.entries(n.config))}function bH(e,t){var n;const r=dM(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function xH(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const u=new Map;n=te(n,(e=>{const t=ha(e);if(Wk(t))return t}));const _=[];a.include&&h(a.include,"Explicitly included types");const d=a.exclude||[];if(!l.types){const e=new Set(n.map(oa));e.add(r),e.forEach((e=>{y(e,"bower.json","bower_components",_),y(e,"package.json","node_modules",_)}))}a.disableFilenameBasedTypeAcquisition||function(e){const n=te(e,(e=>{if(!Wk(e))return;const t=rn(eT(Dt(aa(e))));return i.get(t)}));n.length&&h(n,"Inferred typings from file names"),le(e,(e=>Zo(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),g("react"))}(n),s&&h(pe(s.map(yH),Rt,Kt),"Inferred typings from unresolved imports"),o.forEach(((e,t)=>{const n=c.get(t);u.has(t)&&void 0===u.get(t)&&void 0!==n&&hH(e,n)&&u.set(t,e.typingLocation)}));for(const e of d)u.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);const f=[],p=[];u.forEach(((e,t)=>{void 0!==e?p.push(e):f.push(t)}));const m={cachedTypingPaths:p,newTypingNames:f,filesToWatch:_};return t&&t(`Result: ${JSON.stringify(m)}`),m;function g(e){u.has(e)||u.set(e,void 0)}function h(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),w(e,g)}function y(n,r,i,o){const a=fa(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=dM(a,(t=>e.readFile(t))).config,c=X([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ge),h(c,`Typing names in '${a}' dependencies`));const l=fa(n,i);if(o.push(l),!e.directoryExists(l))return;const _=[],d=c?c.map((e=>fa(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(aa(e)!==r)return!1;const t=la(ha(e)),n="@"===t[t.length-3][0];return n&&Dt(t[t.length-4])===i||!n&&Dt(t[t.length-3])===i}));t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=ha(n),i=dM(r,(t=>e.readFile(t))).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=ga(o,oa(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),u.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else _.push(i.name)}h(_," Found package names")}}function SH(e){return kH(e,!0)}function kH(e,t){if(!e)return 1;if(e.length>pH)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=kH(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=kH(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function TH(e,t){return"object"==typeof e?CH(t,e.result,e.name,e.isScopeName):CH(t,e,t,!1)}function CH(e,t,n,r){const i=r?"Scope":"Package";switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${pH} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return Fn.fail();default:Fn.assertNever(t)}}var wH=S({"src/jsTyping/jsTyping.ts"(){pG(),uH=(lH=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"]).map((e=>`node:${e}`)),_H=[...lH,...uH],dH=new Set(_H),fH=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(fH||{}),pH=214}}),EH={};k(EH,{NameValidationResult:()=>fH,discoverTypings:()=>xH,isTypingUpToDate:()=>hH,loadSafeList:()=>vH,loadTypesMap:()=>bH,nodeCoreModuleList:()=>_H,nodeCoreModules:()=>dH,nonRelativeModuleNameForTypingCache:()=>yH,prefixedNodeCoreModuleList:()=>uH,renderPackageNameValidationFailure:()=>TH,validatePackageName:()=>SH});var DH,NH,AH,PH,FH,IH,OH,MH,LH,RH=S({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){wH()}});function jH(e){return xo.args.indexOf(e)>=0}function BH(e){const t=xo.args.indexOf(e);return t>=0&&tNH,ActionPackageInstalled:()=>AH,ActionSet:()=>DH,ActionWatchTypingLocations:()=>MH,Arguments:()=>LH,EventBeginInstallTypes:()=>FH,EventEndInstallTypes:()=>IH,EventInitializationFailed:()=>OH,EventTypesRegistry:()=>PH,findArgument:()=>BH,hasArgument:()=>jH,nowString:()=>JH});var KH,UH,qH,WH,HH,GH,XH,YH,QH,ZH,eG,tG,nG,rG,iG,oG,aG,sG,cG,lG,uG,_G,dG,fG=S({"src/jsTyping/_namespaces/ts.server.ts"(){zH(),$H()}}),pG=S({"src/jsTyping/_namespaces/ts.ts"(){gH(),RH(),fG()}});function mG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var gG,hG,yG,vG,bG,xG,SG,kG,TG,CG=S({"src/services/types.ts"(){(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(KH||(KH={})),UH=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(UH||{}),qH=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(qH||{}),WH=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(WH||{}),HH={},GH=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(GH||{}),XH=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(XH||{}),YH=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(YH||{}),QH=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(QH||{}),ZH=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(ZH||{}),eG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(eG||{}),tG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(tG||{}),nG=mG("\n"),rG=(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[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(rG||{}),iG=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(iG||{}),oG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(oG||{}),aG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(aG||{}),sG=(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))(sG||{}),cG=(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.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(cG||{}),lG=(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.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",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.link="link",e.linkName="link name",e.linkText="link text",e))(lG||{}),uG=(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.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(uG||{}),_G=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",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))(_G||{}),dG=(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[e.bigintLiteral=25]="bigintLiteral",e))(dG||{})}});function wG(e){switch(e.kind){case 260:return Pg(e)&&fl(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return gp(e)||1===mj(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function EG(e){const t=(e=EX(e)).parent;return 312===e.kind?1:gA(t)||vA(t)||kA(t)||mA(t)||cA(t)||aA(t)&&e===t.name?7:DG(e)?function(e){const t=166===e.kind?e:sD(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):oy(e)?wG(t):bu(e)&&Dc(e,yn(GA,td,XA))?7:function(e){switch(ix(e)&&(e=e.parent),e.kind){case 110:return!xg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Tm(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:lD(t)?(Fn.assert(DP(t.parent)),2):VD(t)?3:1}function DG(e){for(;166===e.parent.kind;)e=e.parent;return Dg(e.parent)&&e.parent.moduleReference===e}function NG(e,t=!1,n=!1){return jG(e,eN,MG,t,n)}function AG(e,t=!1,n=!1){return jG(e,tN,MG,t,n)}function PG(e,t=!1,n=!1){return jG(e,t_,MG,t,n)}function FG(e,t=!1,n=!1){return jG(e,nN,LG,t,n)}function IG(e,t=!1,n=!1){return jG(e,_D,MG,t,n)}function OG(e,t=!1,n=!1){return jG(e,J_,RG,t,n)}function MG(e){return e.expression}function LG(e){return e.tag}function RG(e){return e.tagName}function jG(e,t,n,r,i){let o=r?JG(e):BG(e);return i&&(o=lF(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function BG(e){return HG(e)?e.parent:e}function JG(e){return HG(e)||GG(e)?e.parent:e}function zG(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function $G(e,t){return!!QD(e.expression)&&e.expression.name.text===t}function VG(e){var t;return qE(e)&&(null==(t=bt(e.parent,Vl))?void 0:t.label)===e}function KG(e){var t;return qE(e)&&(null==(t=bt(e.parent,UN))?void 0:t.label)===e}function UG(e){return KG(e)||VG(e)}function qG(e){var t;return(null==(t=bt(e.parent,K_))?void 0:t.tagName)===e}function WG(e){var t;return(null==(t=bt(e.parent,sD))?void 0:t.right)===e}function HG(e){var t;return(null==(t=bt(e.parent,QD))?void 0:t.name)===e}function GG(e){var t;return(null==(t=bt(e.parent,ZD))?void 0:t.argumentExpression)===e}function XG(e){var t;return(null==(t=bt(e.parent,nA))?void 0:t.name)===e}function YG(e){var t;return qE(e)&&(null==(t=bt(e.parent,ku))?void 0:t.name)===e}function QG(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return $c(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function ZG(e){return Cg(e.parent.parent)&&wg(e.parent.parent)===e}function eX(e){for(Eh(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function tX(e){switch(e.kind){case 312:return HI(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Zy(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return ku(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return vb(e,16476)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=nh(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=tX(i);return""===e?"const":e;case 3:case 5:return oN(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return cA(e.parent)?"alias":"";case 277:const o=tX(e.expression);return""===o?"const":o;default:return""}function t(e){return _m(e)?"const":dm(e)?"let":"var"}}function nX(e){switch(e.kind){case 110:return!0;case 80:return tb(e)&&169===e.parent.kind;default:return!1}}function rX(e,t){return ds(t)[t.getLineAndCharacterOfPosition(e).line]}function iX(e,t){return cX(e.pos,e.end,t)}function oX(e,t){return sX(e,t.pos)&&sX(e,t.end)}function aX(e,t){return e.pos<=t&&t<=e.end}function sX(e,t){return e.pos=n.end}function lX(e,t,n){return e.pos<=t&&e.end>=n}function uX(e,t,n){return dX(e.pos,e.end,t,n)}function _X(e,t,n,r){return dX(e.getStart(t),e.end,n,r)}function dX(e,t,n,r){return Math.max(e,n)e.kind===t))}function vX(e){const t=O(e.parent.getChildren(),(t=>MP(t)&&iX(t,e)));return Fn.assert(!t||B(t.getChildren(),e)),t}function bX(e){return 90===e.kind}function xX(e){return 86===e.kind}function SX(e){return 100===e.kind}function kX(e,t){if(16777216&e.flags)return;const n=tZ(e,t);if(n)return n;const r=function(e){let t;return Dc(e,(e=>(Ju(e)&&(t=e),!sD(e.parent)&&!Ju(e.parent)&&!Ru(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function TX(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(pA(e.importClause.namedBindings)){const t=Je(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(dA(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function CX(e,t){if(e.exportClause){if(yA(e.exportClause)){if(!Je(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(fA(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function wX(e,t){const{parent:n}=e;if(vu(e)&&(t||90!==e.kind)?nI(n)&&B(n.modifiers,e):86===e.kind?QN(n)||yN(e):100===e.kind?YN(n)||oN(e):120===e.kind?ZN(n):94===e.kind?tA(n):156===e.kind?eA(n):145===e.kind||144===e.kind?nA(n):102===e.kind?aA(n):139===e.kind?yD(n):153===e.kind&&vD(n)){const e=function(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(Jc(e))return e.name;if(QN(e)){const t=e.modifiers&&O(e.modifiers,bX);if(t)return t}if(yN(e)){const t=O(e.getChildren(),xX);if(t)return t}}(e);case 262:case 218:return function(e){if(Jc(e))return e.name;if(YN(e)){const t=O(e.modifiers,bX);if(t)return t}if(oN(e)){const t=O(e.getChildren(),SX);if(t)return t}}(e);case 176:return e}if(Jc(e))return e.name}(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&XN(n)&&1===n.declarations.length){const e=n.declarations[0];if(qE(e.name))return e.name}if(156===e.kind){if(cA(n)&&n.isTypeOnly){const e=TX(n.parent,t);if(e)return e}if(hA(n)&&n.isTypeOnly){const e=CX(n,t);if(e)return e}}if(130===e.kind){if(mA(n)&&n.propertyName||vA(n)&&n.propertyName||dA(n)||fA(n))return n.name;if(hA(n)&&n.exportClause&&fA(n.exportClause))return n.exportClause.name}if(102===e.kind&&sA(n)){const e=TX(n,t);if(e)return e}if(95===e.kind){if(hA(n)){const e=CX(n,t);if(e)return e}if(gA(n))return lF(n.expression)}if(149===e.kind&&kA(n))return n.expression;if(161===e.kind&&(sA(n)||hA(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&jA(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(lD(n)&&n.constraint&&TD(n.constraint))return n.constraint.typeName;if(LD(n)&&TD(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&RD(n))return n.typeParameter.name;if(103===e.kind&&lD(n)&&$D(n.parent))return n.name;if(143===e.kind&&JD(n)&&143===n.operator&&TD(n.type))return n.type.typeName;if(148===e.kind&&JD(n)&&148===n.operator&&ND(n.type)&&TD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&tN(n)||116===e.kind&&lN(n)||114===e.kind&&cN(n)||135===e.kind&&uN(n)||127===e.kind&&gN(n)||91===e.kind&&sN(n))&&n.expression)return lF(n.expression);if((103===e.kind||104===e.kind)&&fN(n)&&n.operatorToken===e)return lF(n.right);if(130===e.kind&&xN(n)&&TD(n.type))return n.type.typeName;if(103===e.kind&&jN(n)||165===e.kind&&BN(n))return lF(n.expression)}return e}function EX(e){return wX(e,!1)}function DX(e){return wX(e,!0)}function NX(e,t){return AX(e,t,(e=>By(e)||Sy(e.kind)||WE(e)))}function AX(e,t,n){return FX(e,t,!1,n,!1)}function PX(e,t){return FX(e,t,!0,void 0,!1)}function FX(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Ue(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(ct?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),ct)return!1;if(tn.getStart(e)&&t(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&ZX(r,n)?t(r):void 0))}(t)}function LX(e,t,n,r){const i=function i(o){if(RX(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Ue(a,e,((e,t)=>t),((t,n)=>e=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e=e||!ZX(n,t)||$X(n)){const e=BX(a,s,t,o.kind);return e?!r&&V_(e)&&e.getChildren(t).length?i(e):jX(e,t):void 0}return i(n)}}Fn.assert(void 0!==n||312===o.kind||1===o.kind||V_(o));const c=BX(a,a.length,t,o.kind);return c&&jX(c,t)}(n||t);return Fn.assert(!(i&&$X(i))),i}function RX(e){return Yl(e)&&!$X(e)}function jX(e,t){if(RX(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=BX(n,n.length,t,e.kind);return r&&jX(r,t)}function BX(e,t,n,r){for(let i=t-1;i>=0;i--)if($X(e[i]))0!==i||12!==r&&285!==r||Fn.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(ZX(e[i],n))return e[i]}function JX(e,t,n=LX(t,e)){if(n&&uu(n)){const r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function KX(e,t){const n=PX(e,t);return!!AE(n)||!(19!==n.kind||!OA(n.parent)||!TA(n.parent.parent))||!(30!==n.kind||!J_(n.parent)||!TA(n.parent.parent))}function UX(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(PX(e,t))}function qX(e,t,n){const r=ss(e.kind),i=ss(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)!!e.typeParameters&&e.typeParameters.length>=t))}function XX(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=LX(n.getFullStart(),t),n&&29===n.kind&&(n=LX(n.getFullStart(),t)),!n||!qE(n))return;if(!r)return oy(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=qX(n,19,t),!n)return;break;case 22:if(n=qX(n,21,t),!n)return;break;case 24:if(n=qX(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Ju(n))break;return}n=LX(n.getFullStart(),t)}}function YX(e,t,n){return fge.getRangeOfEnclosingComment(e,t,void 0,n)}function QX(e,t){return!!Dc(PX(e,t),cP)}function ZX(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function eY(e,t=0){const n=[],r=A_(e)?kc(e)&~t:0;return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),(32&r||gD(e))&&n.push("static"),256&r&&n.push("abstract"),1&r&&n.push("export"),8192&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function tY(e){return 183===e.kind||213===e.kind?e.typeArguments:ku(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function nY(e){return 2===e||3===e}function rY(e){return!(11!==e&&14!==e&&!nu(e))}function iY(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function oY(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(iY(n,t[0],t[1])||iY(n,t[1],t[0]))}function aY(e,t,n){return nu(e.kind)&&e.getStart(n){const n=bB(t);return!e[n]&&(e[n]=!0)}}function wY(e){return e.getText(0,e.getLength())}function EY(e,t){let n="";for(let r=0;r!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function PY(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function FY(e){return!!e.module||HS(e)>=2||!!e.noEmit}function IY(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ut(t,t.readFile),useCaseSensitiveFileNames:ut(t,t.useCaseSensitiveFileNames),getSymlinkCache:ut(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ut(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:ut(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:ut(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function OY(e,t){return{...IY(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function MY(e){return 2===e||e>=3&&e<=99||100===e}function LY(e,t,n,r){return e||t&&t.length?RY(e,t,n,r):void 0}function RY(e,t,n,r,i){return FC.createImportDeclaration(void 0,e||t?FC.createImportClause(!!i,e,t&&t.length?FC.createNamedImports(t):void 0):void 0,"string"==typeof n?jY(n,r):n,void 0)}function jY(e,t){return FC.createStringLiteral(e,0===t)}function BY(e,t){return Vg(e,t)?1:0}function JY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=e.imports&&O(e.imports,(e=>NE(e)&&!tv(e.parent)));return t?BY(t,e):1}}function zY(e){switch(e){case 0:return"'";case 1:return'"';default:return Fn.assertNever(e)}}function $Y(e){const t=VY(e);return void 0===t?void 0:Fc(t)}function VY(e){return"default"!==e.escapedName?e.escapedName:D(e.declarations,(e=>{const t=$c(e);return t&&80===t.kind?t.escapedText:void 0}))}function KY(e){return ed(e)&&(kA(e.parent)||sA(e.parent)||Lg(e.parent,!1)&&e.parent.arguments[0]===e||pm(e.parent)&&e.parent.arguments[0]===e)}function UY(e){return GD(e)&&WD(e.parent)&&qE(e.name)&&!e.propertyName}function qY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function WY(e,t,n){if(e)for(;e.parent;){if(UA(e.parent)||!HY(n,e.parent,t))return e;e=e.parent}}function HY(e,t,n){return ec(e,t.getStart(n))&&t.getEnd()<=Qs(e)}function GY(e,t){return nI(e)?O(e.modifiers,(e=>e.kind===t)):void 0}function XY(e,t,n,r,i){const o=243===(gt(n)?n[0]:n).kind?zg:Fp,a=V(t.statements,o);let s=gt(n)?yde.detectImportDeclarationSorting(n,i):3;const c=yde.getOrganizeImportsComparer(i,2===s),l=gt(n)?Fe(n,((e,t)=>yde.compareImportsOrRequireStatements(e,t,c))):[n];if(a.length)if(a&&(s=yde.detectImportDeclarationSorting(a,i))){const n=yde.getOrganizeImportsComparer(i,2===s);for(const r of l){const i=yde.getImportDeclarationInsertionIndex(a,r,n);if(0===i){const n=a[0]===t.statements[0]?{leadingTriviaOption:upe.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,a[0],r,!1,n)}else{const n=a[i-1];e.insertNodeAfter(t,n,r)}}}else{const n=je(a);n?e.insertNodesAfter(t,n,l):e.insertNodesAtTopOfFile(t,l,r)}else e.insertNodesAtTopOfFile(t,l,r)}function YY(e,t){return Fn.assert(e.isTypeOnly),xt(e.getChildAt(0,t),SY)}function QY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ZY(e,t){return e.fileName===t.fileName&&QY(e.textSpan,t.textSpan)}function eQ(e,t){if(e)for(let n=0;n!!uD(e)||!(GD(e)||WD(e)||HD(e))&&"quit"))}function aQ(e,t){return sQ(e,function(e){const t=e.flags;return 3&t?oQ(e)?13:9:4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}function sQ(e,t){return{text:e,kind:rG[t]}}function cQ(){return sQ(" ",16)}function lQ(e){return sQ(ss(e),5)}function uQ(e){return sQ(ss(e),15)}function _Q(e){return sQ(ss(e),12)}function dQ(e){return sQ(e,13)}function fQ(e){return sQ(e,14)}function pQ(e){const t=cs(e);return void 0===t?mQ(e):lQ(t)}function mQ(e){return sQ(e,17)}function gQ(e){return sQ(e,0)}function hQ(e){return sQ(e,18)}function yQ(e){return sQ(e,24)}function vQ(e,t){return{text:e,kind:rG[23],target:{fileName:Ff(t).fileName,textSpan:pY(t)}}}function bQ(e){return sQ(e,22)}function xQ(e,t){var n;const r=[bQ(`{@${YA(e)?"link":QA(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=function(e){let t=e.indexOf("://");if(0===t){for(;t"===e[n]&&t--,n++,!t)return n}return 0}(e.text),a=op(e.name)+e.text.slice(0,o),s=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t{e.writeType(t,n,17408|r,i)}))}function wQ(e,t,n,r,i=0){return TQ((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function EQ(e,t,n,r=0){return r|=25632,TQ((i=>{e.writeSignature(t,n,r,void 0,i)}))}function DQ(e,t){const n=t.getSourceFile();return TQ((t=>{W$().writeNode(4,e,n,t)}))}function NQ(e){return!!e.parent&&ou(e.parent)&&e.parent.propertyName===e}function AQ(e,t){return Vk(e,t.getScriptKind&&t.getScriptKind(e))}function PQ(e,t){let n=e;for(;FQ(n)||lf(n)&&n.links.target;)n=lf(n)&&n.links.target?n.links.target:Kx(n,t);return n}function FQ(e){return 0!=(2097152&e.flags)}function IQ(e,t){return xB(Kx(e,t))}function OQ(e,t){for(;hs(e.charCodeAt(t));)t+=1;return t}function MQ(e,t){for(;t>-1&&ys(e.charCodeAt(t));)t-=1;return t+1}function LQ(e,t=!0){const n=e&&jQ(e);return n&&!t&&zQ(n),n}function RQ(e,t,n){let r=n(e);return r?QC(r,e):r=jQ(e,n),r&&!t&&zQ(r),r}function jQ(e,t){const n=t?e=>RQ(e,!0,t):LQ,r=$B(e,n,P$,t?e=>e&&JQ(e,!0,t):e=>e&&BQ(e),n);return r===e?tI(NE(e)?QC(FC.createStringLiteralFromNode(e),e):EE(e)?QC(FC.createNumericLiteral(e.text,e.numericLiteralFlags),e):FC.cloneNode(e),e):(r.parent=void 0,r)}function BQ(e,t=!0){if(e){const n=FC.createNodeArray(e.map((e=>LQ(e,t))),e.hasTrailingComma);return tI(n,e),n}return e}function JQ(e,t,n){return FC.createNodeArray(e.map((e=>RQ(e,t,n))),e.hasTrailingComma)}function zQ(e){$Q(e),VQ(e)}function $Q(e){UQ(e,1024,qQ)}function VQ(e){UQ(e,2048,oS)}function KQ(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;ee))}function WQ(e,t){let n=e;for(let r=1;!Bf(t,n);r++)n=`${e}_${r}`;return n}function HQ(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){Fn.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=ZQ(a,pv(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return Fn.assert(r),Fn.assert(o>=0),o}function GQ(e,t,n,r,i){As(n.text,e.pos,QQ(t,n,r,i,hw))}function XQ(e,t,n,r,i){Ps(n.text,e.end,QQ(t,n,r,i,bw))}function YQ(e,t,n,r,i){Ps(n.text,e.pos,QQ(t,n,r,i,hw))}function QQ(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function ZQ(e,t){if(fn(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function eZ(e){return fN(e)&&28===e.operatorToken.kind||YD(e)||xN(e)&&YD(e.expression)}function tZ(e,t,n){const r=Zh(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:i,operatorToken:o,right:a}=r;return rZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 296:return aZ(r,t);default:return t.getContextualType(e,n)}}function nZ(e,t,n){const r=JY(e,t),i=JSON.stringify(n);return 0===r?`'${yv(i).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:i}function rZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function iZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function oZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function aZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function sZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:OY(n,r)});return o?s:void 0}function cZ(e){return 179===e||180===e||181===e||171===e||173===e}function lZ(e){return 262===e||176===e||174===e||177===e||178===e}function uZ(e){return 267===e}function _Z(e){return 243===e||244===e||246===e||251===e||252===e||253===e||257===e||259===e||172===e||265===e||272===e||271===e||278===e||270===e||277===e}function dZ(e,t,n){const r=Dc(t,(t=>t.end!==e?"quit":TG(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(cZ(e.kind)){if(n&&28===n.kind)return!1}else if(uZ(e.kind)){const n=Be(e.getChildren(t));if(n&&rA(n))return!1}else if(lZ(e.kind)){const n=Be(e.getChildren(t));if(n&&jm(n))return!1}else if(!_Z(e.kind))return!1;if(246===e.kind)return!0;const r=MX(e,Dc(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function fZ(e){let t=0,n=0;return zI(e,(function r(i){if(_Z(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(cZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:r&&28!==r.kind&&gs(e,r.getStart(e)).line!==gs(e,nm(e,r.end).start).line&&n++}return t+n>=5||zI(i,r)})),0===t&&n<=1||t/n>.2}function pZ(e,t){return vZ(e,e.getDirectories,t)||[]}function mZ(e,t,n,r,i){return vZ(e,e.readDirectory,t,n,r,i)||a}function gZ(e,t){return vZ(e,e.fileExists,t)}function hZ(e,t){return yZ((()=>gx(t,e)))||!1}function yZ(e){try{return e()}catch{return}}function vZ(e,t,...n){return yZ((()=>t&&t.apply(e,n)))}function bZ(e,t,n){const r=[];return Ma(e,(e=>{if(e===n)return!0;const i=fa(e,"package.json");gZ(t,i)&&r.push(i)})),r}function xZ(e,t){let n;return Ma(e,(e=>"node_modules"===e||(n=YV(e,(e=>gZ(t,e)),"package.json"),!!n||void 0))),n}function SZ(e,t){if(!t.fileExists)return[];const n=[];return Ma(oa(e),(e=>{const r=fa(e,"package.json");if(t.fileExists(r)){const e=kZ(r,t);e&&n.push(e)}})),n}function kZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=function(e){try{return JSON.parse(e)}catch{return}}(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function TZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||SZ(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=yv(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},allowsImportingSourceFile:function(e,t){if(!r.length)return!0;if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n)return a.set(e,!0),!0;const i=s(n);return a.set(e,i),i},allowsImportingSpecifier:function(e){return!(r.length&&!c(e))||(!(!Xo(e)&&!Wo(e))||s(e))}};function s(e){const t=u(e);for(const e of r)if(e.has(t)||e.has(ZR(t)))return!0;return!1}function c(t){return!!(Ng(e)&&EH.nodeCoreModules.has(t)&&(void 0===i&&(i=CZ(e)),i))}function l(r,i){if(!nn(r,"node_modules"))return;const o=nB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?Xo(o)||Wo(o)?void 0:u(o):void 0}function u(e){const t=la(tj(e)).slice(1);return fn(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function CZ(e){return le(e.imports,(({text:e})=>EH.nodeCoreModules.has(e)))}function wZ(e){return B(la(e),"node_modules")}function EZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function DZ(e,t){const n=Ue(t,pY(e),wt,Jt);if(n>=0){const r=t[n];return Fn.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),xt(r,EZ)}}function NZ(e,t){var n;let r=Ue(t,e.start,(e=>e.start),Bt);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=Qs(e);for(;;){const n=bt(t[r],EZ);if(!n||n.start>o)break;nc(e,n)&&i.push(n),r++}return i}function AZ({startPosition:e,endPosition:t}){return _c(e,void 0===t?e:t)}function PZ(e,t){return Dc(PX(e,t.start),(n=>n.getStart(e)Qs(t)?"quit":l_(n)&&QY(t,pY(n,e))))}function FZ(e,t,n=wt){return e?gt(e)?n(q(e,t)):t(e,0):void 0}function IZ(e){return gt(e)?Le(e):e}function OZ(e,t){if(LZ(e)){const n=RZ(e);if(n)return n;const r=ace.moduleSymbolToValidIdentifier(jZ(e),t,!1),i=ace.moduleSymbolToValidIdentifier(jZ(e),t,!0);return r===i?r:[r,i]}return e.name}function MZ(e,t,n){return LZ(e)?RZ(e)||ace.moduleSymbolToValidIdentifier(jZ(e),t,!!n):e.name}function LZ(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function RZ(e){return D(e.declarations,(e=>{var t,n,r;return gA(e)?null==(t=bt(lF(e.expression),qE))?void 0:t.text:vA(e)&&2097152===e.symbol.flags?null==(n=bt(e.propertyName,qE))?void 0:n.text:null==(r=bt($c(e),qE))?void 0:r.text}))}function jZ(e){var t;return Fn.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${Fn.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=Fn.formatSyntaxKind(e.kind),n=Pg(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${Fn.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}function BZ(e,t,n){const r=t.length;if(r+n>e.length)return!1;for(let i=0;inA(e)&&Sp(e))))}function VZ(e){return!!(8192&kc(e))}function KZ(e,t){return D(e.imports,(e=>{if(EH.nodeCoreModules.has(e.text))return fn(e.text,"node:")}))??t.usesUriStyleNodeCoreModules}function UZ(e){return"\n"===e?1:0}function qZ(e){return gt(e)?CS(DS(e[0]),e.slice(1)):DS(e)}function WZ({options:e},t){const n=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||n&&!fZ(t);return{...e,semicolons:r?"remove":"ignore"}}function HZ(e){return 2===e||3===e}function GZ(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function XZ(e,t){const n=new Set,r=new Set,i=new Set;for(const a of t)if(!RA(a)){const t=ny(a.expression);if(eu(t))switch(t.kind){case 15:case 11:n.add(t.text);break;case 9:r.add(parseInt(t.text));break;case 10:const e=kT(Zt(t.text,"n")?t.text.slice(0,-1):t.text);e&&i.add(ST(e))}else{const t=e.getSymbolAtLocation(a.expression);if(t&&t.valueDeclaration&&VA(t.valueDeclaration)){const n=e.getConstantValue(t.valueDeclaration);void 0!==n&&o(n)}}}return{addValue:o,hasValue:function(e){switch(typeof e){case"string":return n.has(e);case"number":return r.has(e);case"object":return i.has(ST(e))}}};function o(e){switch(typeof e){case"string":n.add(e);break;case"number":r.add(e)}}}function YZ(e,t,n,r){var i;if(!Wk("string"==typeof e?e:e.fileName))return!1;const o=t.getCompilerOptions(),a=GS(o),s="string"==typeof e?OK(va(e,n.getCurrentDirectory(),wv(n)),null==(i=t.getPackageJsonInfoCache)?void 0:i.call(t),n,o):e.impliedNodeFormat;if(99===s)return!1;if(1===s)return!0;if(o.verbatimModuleSyntax&&1===a)return!0;if(o.verbatimModuleSyntax&&XS(a))return!1;if("object"==typeof e){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return r}var QZ,ZZ,e0=S({"src/services/utilities.ts"(){hge(),gG=zs(99,!0),hG=(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))(hG||{}),yG=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(bG||{}),xG=function(){const e=10*ad;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(hs(n.charCodeAt(n.length-1))||t.push(sQ(" ",16)),t.push(sQ("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){i>e||(a(),i+=n.length,t.push(aQ(n,r)))},writeLine:function(){i>e||(i+=1,t.push(kQ()),n=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Nt,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=bv(r);e&&(i+=e.length,t.push(sQ(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(sQ(n,r)))}function c(){t=[],n=!0,r=0,i=0}}(),SG="\n",kG="anonymous function",TG=yn(cZ,lZ,uZ,_Z)}});function t0(e){let t=1;const n=_t(),r=new Map,i=new Map;let o;const s={isUsableByFile:e=>e===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),o=void 0},add:(e,a,c,l,u,_,d,f)=>{let p;if(e!==o&&(s.clear(),o=e),u){const t=YT(u.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(p=nj(tj(u.fileName.substring(r+1,o))),fn(e,u.path.substring(0,n))){const e=i.get(p),t=u.fileName.substring(0,r+1);e?n>e.indexOf(wL)&&i.set(p,t):i.set(p,t)}}}const m=1===_&&lx(a)||a,g=0===_||TY(m)?Fc(c):OZ(m,void 0),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=yv(l.name),b=t++,x=Kx(a,f),S=33554432&a.flags?void 0:a,k=33554432&l.flags?void 0:l;S&&k||r.set(b,[a,l]),n.add(function(e,t,n,r){const i=n||"";return`${e}|${xB(Kx(t,r))}|${i}`}(h,a,Gs(v)?void 0:v,f),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:u,moduleFileName:null==u?void 0:u.fileName,packageName:p,exportKind:_,targetFlags:x.flags,isFromPackageJson:d,symbol:S,moduleSymbol:k})},get:(e,t)=>{if(e!==o)return;const r=n.get(t);return null==r?void 0:r.map(c)},search:(t,r,a,s)=>{if(t===o)return mf(n,((t,n)=>{const{symbolName:o,ambientModuleName:l}=function(e){const t=e.substring(0,e.indexOf("|")),n=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===n?void 0:n}}(n),u=r&&t[0].capitalizedSymbolName||o;if(a(u,t[0].targetFlags)){const r=t.map(c).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&fn(t.moduleFileName,r))return!0;const o=i.get(n);return!o||fn(t.moduleFileName,o)}(n,t[r].packageName)));if(r.length){const e=s(r,u,!!l,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>!(l(e)&&l(t)||(o&&o!==t.path||n&&CZ(e)!==CZ(t)||!be(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!be(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>yp(e)&&e.name.text===i;if(n=L(e.statements,o,n+1),r=L(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(s.clear(),0):(o=t.path,1)))};return Fn.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function c(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:i,targetFlags:o,isFromPackageJson:s,moduleFileName:c}=t,[l,u]=r.get(n)||a;if(l&&u)return{symbol:l,moduleSymbol:u,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s};const _=(s?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||u||Fn.checkDefined(t.moduleFile?_.getMergedSymbol(t.moduleFile.symbol):_.tryFindAmbientModule(t.moduleName)),f=t.symbol||l||Fn.checkDefined(2===i?_.resolveExternalModuleSymbol(d):_.tryGetMemberInModuleExportsAndProperties(Fc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return r.set(n,[f,d]),{symbol:f,moduleSymbol:d,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s}}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function n0(e,t,n,r,i,o,a){var s;if(t===n)return!1;const c=null==a?void 0:a.get(t.path,n.path,r,{});if(void 0!==(null==c?void 0:c.isBlockedByPackageJsonDependencies))return!c.isBlockedByPackageJsonDependencies;const l=wv(o),u=null==(s=o.getGlobalTypingsCacheLocation)?void 0:s.call(o),_=!!nB.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r){const i=Ma(t,(e=>"node_modules"===aa(e)?e:void 0)),o=i&&oa(n(i));return void 0===o||fn(n(e),o)||!!r&&fn(n(r),o)}(t.fileName,r,l,u)}));if(i){const e=_&&i.allowsImportingSourceFile(n,o);return null==a||a.setBlockedByPackageJsonDependencies(t.path,n.path,r,{},!e),e}return _}function r0(e,t,n,r,i){var o,a;const s=Cv(t),c=n.autoImportFileExcludePatterns&&te(n.autoImportFileExcludePatterns,(e=>{const t=Mk(e,"","exclude");return t?Bk(t,s):void 0}));i0(e.getTypeChecker(),e.getSourceFiles(),c,((t,n)=>i(t,n,e,!1)));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=cr(),r=e.getTypeChecker();i0(l.getTypeChecker(),l.getSourceFiles(),c,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(cr()-n))}}function i0(e,t,n,r){var i;const o=n&&(e=>n.some((t=>t.test(e))));for(const t of e.getAmbientModules())nn(t.name,"*")||n&&(null==(i=t.declarations)?void 0:i.every((e=>o(e.getSourceFile().fileName))))||r(t,void 0);for(const n of t)om(n)&&!(null==o?void 0:o(n.fileName))&&r(e.getMergedSymbol(n.symbol),n)}function o0(e,t,n,r,i){var o,a,s,c,l;const u=cr();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const _=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||t0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(_.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),_;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const d=n.getCompilerOptions();let f=0;try{r0(n,t,r,!0,((t,n,r,o)=>{++f%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Map,s=r.getTypeChecker(),c=a0(t,s,d);c&&s0(c.symbol,s)&&_.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&s0(r,s)&&aS(a,i)&&_.add(e.path,r,i,t,n,0,o,s)}))}))}catch(e){throw _.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${cr()-u} ms`),_}function a0(e,t,n){const r=function(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const r=t.tryGetMemberInModuleExports("default",e);return r?{symbol:r,exportKind:1}:void 0}(e,t);if(!r)return;const{symbol:i,exportKind:o}=r,a=c0(i,t,n);return a&&{symbol:i,exportKind:o,...a}}function s0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Ky(e)||Uy(e))}function c0(e,t,n){const r=lx(e);if(r)return{resolvedSymbol:r,name:r.name};const i=(o=e).declarations&&D(o.declarations,(e=>{var t;return gA(e)?null==(t=bt(lF(e.expression),qE))?void 0:t.text:vA(e)?(Fn.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text):void 0}));var o;if(void 0!==i)return{resolvedSymbol:e,name:i};if(2097152&e.flags){const r=t.getImmediateAliasedSymbol(e);if(r&&r.parent)return c0(r,t,n)}return"default"!==e.escapedName&&"export="!==e.escapedName?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:MZ(e,n.target)}}var l0,u0=S({"src/services/exportInfoMap.ts"(){hge(),QZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(QZ||{}),ZZ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(ZZ||{})}});function _0(){const e=zs(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return Fn.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let u=0;const _=[];let d=0;do{i=e.scan(),Py(i)||(f(),o=i);const n=e.getTokenEnd();if(f0(e.getTokenStart(),n,l,m0(i),_),n>=t.length){const t=d0(e,i,je(a));void 0!==t&&(u=t)}}while(1!==i);function f(){switch(i){case 44:case 69:l0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=je(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():Fn.assertEqual(i,17,"Should have been a template middle.")):(Fn.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!Sy(i))break;(25===o||Sy(o)&&Sy(i)&&!function(e,t){if(!sY(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:u,spans:_}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:p0(a)}),i=t+o}const o=t.length-i;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}function d0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(0==(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(nu(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return Fn.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function f0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function p0(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function m0(e){if(Sy(e))return 3;if(function(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return nu(e)?6:2}}function g0(e,t,n,r,i){return x0(y0(e,t,n,r,i))}function h0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function y0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&ac(i,s.pos,s.getFullWidth())){if(h0(t,s.kind),qE(s)&&!Jf(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&v0(t,EG(s),e);r&&function(e,t,n){const r=t-e;Fn.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function v0(e,t,n){const r=e.getFlags();return 0==(2885600&r)?void 0:32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return le(e.declarations,(e=>nA(e)&&1===mj(e)))}(e)?14:void 0:2097152&r?v0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0}function b0(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function x0(e){Fn.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/im.exec(i);if(!o)return!1;if(!o[3]||!(o[3]in so))return!1;let a=e;u(a,o[1].length),a+=o[1].length,c(a,o[2].length,10),a+=o[2].length,c(a,o[3].length,21),a+=o[3].length;const s=o[4];let l=a;for(;;){const e=r.exec(s);if(!e)break;const t=a+e.index+e[1].length;t>l&&(u(l,t-l),l=t),c(l,e[2].length,22),l+=e[2].length,e[3].length&&(u(l,e[3].length),l+=e[3].length),c(l,e[4].length,5),l+=e[4].length,e[5].length&&(u(l,e[5].length),l+=e[5].length),c(l,e[6].length,24),l+=e[6].length}a+=o[4].length,a>l&&u(l,a-l),o[5]&&(c(a,o[5].length,10),a+=o[5].length);const _=e+n;return a<_&&u(a,_-a),!0}(r,i))return;u(r,i)}function u(e,t){c(e,t,1)}function _(e){for(const t of e.getChildren())g(t)}function d(e,t,n){let r;for(r=t;r=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Sy(e))return 3;if((30===e||32===e)&&t&&tY(t.parent))return 10;if(ky(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if(nu(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?Qv(t)?3:17:void 0}if(Jl(t.parent))return 3}return 2}}function g(n){if(n&&sc(r,i,n.pos,n.getFullWidth())){h0(e,n.kind);for(const e of n.getChildren(t))p(e)||g(e)}}}var T0,C0=S({"src/services/classifier.ts"(){hge(),l0=rt([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0))}}),w0=S({"src/services/documentHighlights.ts"(){hge(),(e=>{function t(e,t){return{fileName:t.fileName,textSpan:pY(e,t),kind:"none"}}function n(e){return qN(e)?[e]:WN(e)?_e(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):ku(e)?void 0:i(e,n)}function r(e){return Vl(e)?[e]:ku(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...ht(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return Dc(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!Dc(e.parent,(e=>UN(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return ku(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!B(n,t.kind)||(e.push(t),0))}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&246===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return w(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function l(e){const t=a(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return c(t);case 255:return u(t)}}function u(e){const t=[];return s(t,e.getFirstToken(),109),w(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),w(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function _(e,t){const n=[];return s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&s(n,yX(e,98,t),98),n}function d(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(jm(e)||312===e.kind)return e;if(WN(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return w(n(r),(e=>{i.push(yX(e,111,t))})),jm(r)&&wm(r,(e=>{i.push(yX(e,107,t))})),i}function f(e,t){const r=Hm(e);if(!r)return;const i=[];return wm(xt(r.body,AN),(e=>{i.push(yX(e,107,t))})),w(n(r.body),(e=>{i.push(yX(e,111,t))})),i}function p(e){const t=Hm(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),zI(t,(e=>{m(e,(e=>{uN(e)&&s(n,e.getFirstToken(),135)}))})),n}function m(e,t){t(e),ku(e)||Pu(e)||ZN(e)||nA(e)||eA(e)||Ju(e)||zI(e,(e=>m(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=NX(r,i);if(a.parent&&(wA(a.parent)&&a.parent.tagName===a||EA(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=Yue.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=it(a.map(Yue.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=ln(n.useCaseSensitiveFileNames());return Ze(ne(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(va(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=O(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,Fn.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return ON(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;ON(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!ON(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e=t.end;e--)if(!ys(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:_c(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,$N,f);case 111:return o(e.parent,qN,d);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,WN,_);case 109:return o(e.parent,KN,u);case 84:case 90:return RA(e.parent)||LA(e.parent)?o(e.parent.parent.parent,KN,u):void 0;case 83:case 88:return o(e.parent,Vl,l);case 99:case 117:case 92:return o(e.parent,(e=>d_(e,!0)),c);case 137:return i(hD,[137]);case 139:case 153:return i(Fu,[139,153]);case 135:return o(e.parent,uN,p);case 134:return a(p(e));case 127:return a(function(e){const t=Hm(e);if(!t)return;const n=[];return zI(t,(e=>{m(e,(e=>{gN(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:return;default:return gu(e.kind)&&(A_(e.parent)||PN(e.parent))?a((r=e.kind,te(function(e,t){const n=e.parent;switch(n.kind){case 268:case 312:case 241:case 296:case 297:return 256&t&&QN(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...Pu(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(92&t){const e=O(n.members,hD);if(e)return[...r,...e.parameters]}else if(256&t)return[...r,n];return r;case 210:return;default:Fn.assertNever(n,"Invalid container kind.")}}(e.parent,jb(r)),(e=>GY(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return te(null==(i=bt(e,w_))?void 0:i.symbol.declarations,(e=>t(e)?O(e.getChildren(n),(e=>B(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(T0||(T0={}))}});function E0(e){return!!e.sourceFile}function D0(e,t){return N0(e,t)}function N0(e,t="",n){const r=new Map,i=ln(!!e);function o(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function a(e,t,n,r,i,o,a,s){return l(e,t,n,r,i,o,!0,a,s)}function s(e,t,n,r,i,a,s,c){return l(e,t,o(n),r,i,a,!1,s,c)}function c(e,t){const n=E0(e)?e:e.get(Fn.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return Fn.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function l(e,t,i,a,s,l,u,_,d){var f,p,m,g;_=Vk(e,_);const h=o(i),y=i===h?void 0:i,v=6===_?100:HS(h),b="object"==typeof d?d:{languageVersion:v,impliedNodeFormat:y&&OK(t,null==(g=null==(m=null==(p=null==(f=y.getCompilerHost)?void 0:f.call(y))?void 0:p.getModuleResolutionCache)?void 0:m.call(p))?void 0:g.getPackageJsonInfoCache(),y,h),setExternalModuleIndicator:WS(h)};b.languageVersion=v;const x=r.size,S=P0(a,b.impliedNodeFormat),k=ie(r,S,(()=>new Map));if(Br){r.size>x&&Br.instant(Br.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:h.configFilePath,key:S});const e=!QI(t)&&mf(r,((e,n)=>n!==S&&e.has(t)&&n));e&&Br.instant(Br.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:S})}const T=k.get(t);let C=T&&c(T,_);if(!C&&n){const e=n.getDocument(S,t);e&&(Fn.assert(u),C={sourceFile:e,languageServiceRefCount:0},w())}if(C)C.sourceFile.version!==l&&(C.sourceFile=I7(C.sourceFile,s,l,s.getChangeRange(C.sourceFile.scriptSnapshot)),n&&n.setDocument(S,t,C.sourceFile)),u&&C.languageServiceRefCount++;else{const r=F7(e,s,b,l,!1,_);n&&n.setDocument(S,t,r),C={sourceFile:r,languageServiceRefCount:1},w()}return Fn.assert(0!==C.languageServiceRefCount),C.sourceFile;function w(){if(T)if(E0(T)){const e=new Map;e.set(T.sourceFile.scriptKind,T),e.set(_,C),k.set(t,e)}else T.set(_,C);else k.set(t,C)}}function u(e,t,n,i){const o=Fn.checkDefined(r.get(P0(t,i))),a=o.get(e),s=c(a,n);s.languageServiceRefCount--,Fn.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(E0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,N(a.values(),wt))))}return{acquireDocument:function(e,n,r,s,c,l){return a(e,va(e,t,i),n,A0(o(n)),r,s,c,l)},acquireDocumentWithKey:a,updateDocument:function(e,n,r,a,c,l){return s(e,va(e,t,i),n,A0(o(n)),r,a,c,l)},updateDocumentWithKey:s,releaseDocument:function(e,n,r,o){return u(va(e,t,i),A0(n),r,o)},releaseDocumentWithKey:u,getKeyForCompilationSettings:A0,getDocumentRegistryBucketKeyWithMode:P0,reportStats:function(){const e=Ze(r.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=r.get(e),n=[];return t.forEach(((e,t)=>{E0(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount})))})),n.sort(((e,t)=>t.refCount-e.refCount)),{bucket:e,sourceFiles:n}}));return JSON.stringify(e,void 0,2)},getBuckets:()=>r}}function A0(e){return QL(e,xO)}function P0(e,t){return t?`${e}|${t}`:e}var F0=S({"src/services/documentRegistry.ts"(){hge()}});function I0(e,t,n,r,i,o,a){const s=Cv(r),c=ln(s),l=O0(t,n,c,a),u=O0(n,t,c,a);return upe.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=oa(s.fileName),l=Um(s);function u(e){const t=XD(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=_(e)||n;return n}function _(e){if(!NE(e))return!1;const r=M0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,B0(e,s),d(i)),!0)}function d(e){return Pa(c,e,!a)}l&&J0(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(u(e)||"include"!==n||!XD(e.initializer))return;const l=te(e.initializer.elements,(e=>NE(e)?e.text:void 0));if(0===l.length)return;const _=jk(c,[],l,a,o);return void(Bk(Fn.checkDefined(_.includeFilePattern),a).test(r)&&!Bk(Fn.checkDefined(_.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,Be(e.initializer.elements),FC.createStringLiteral(d(i))))}case"compilerOptions":return void J0(e.initializer,((e,t)=>{const n=aM(t);Fn.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?u(e):"paths"===t&&J0(e.initializer,(e=>{if(XD(e.initializer))for(const t of e.initializer.elements)_(t)}))}))}}))}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,u=oa(l),_=r(s.fileName),d=_||s.fileName,f=oa(d),p=void 0!==c||void 0!==_;j0(s,t,(e=>{if(!Xo(e))return;const t=M0(f,e),r=n(t);return void 0===r?void 0:Sa(Pa(u,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>gp(e))))return;const c=void 0!==_?R0(t,dR(t.text,d,e.getCompilerOptions(),i),n,a):L0(r,t,s,e,i,n);return void 0!==c&&(c.updated||p&&Xo(t.text))?nB.updateModuleSpecifier(e.getCompilerOptions(),s,o(l),c.newFileName,IY(e,i),t.text):void 0}))}}(e,i,l,u,r,c)}))}function O0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=Nk(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=Ia(e,t,r);return M0(oa(n),i)}(o.fileName,a,e,n):a}}function M0(e,t){return Sa(function(e,t){return ha(fa(e,t))}(e,t))}function L0(e,t,n,r,i,o){var a;if(e){const t=O(e.declarations,UA).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=hK(n,t);return R0(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?null==(a=n.resolvedModules)?void 0:a.get(t.text,e):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function R0(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=o(t.resolvedModule.resolvedFileName);if(e)return e}return w(t.failedLookupLocations,(function(e){const t=n(e);return t&&O(r,(e=>e.fileName===t))?i(e):void 0}))||Xo(e.text)&&w(t.failedLookupLocations,i)||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function i(e){return Zt(e,"/package.json")?void 0:o(e)}function o(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function j0(e,t,n,r){for(const r of e.referencedFiles||a){const i=n(r.fileName);void 0!==i&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(const n of e.imports){const i=r(n);void 0!==i&&i!==n.text&&t.replaceRangeWithText(e,B0(n,e),i)}}function B0(e,t){return yx(e.getStart(t)+1,e.end-1)}function J0(e,t){if(YD(e))for(const n of e.properties)JA(n)&&NE(n.name)&&t(n,n.name.text)}var z0,$0=S({"src/services/getEditsForFileRename.ts"(){hge()}});function V0(e,t){return{kind:e,isCaseSensitive:t}}function K0(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:r1(t=e.trim()),subWordTextChunks:n1(t)};var t}));if(!n.some((e=>!e.subWordTextChunks.length)))return{getFullMatch:(e,r)=>function(e,t,n,r){if(!W0(t,Be(n),r))return;if(n.length-1>e.length)return;let i;for(let t=n.length-2,o=e.length-1;t>=0;t-=1,o-=1)i=H0(i,W0(e[o],n[t],r));return i}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>W0(e,Be(n),t),patternContainsDots:n.length>1}}function U0(e,t){let n=t.get(e);return n||t.set(e,n=o1(e)),n}function q0(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(d1(t,((t,n)=>e1(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return V0(t.text.length===e.length?0:1,fn(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=U0(e,n);for(const n of i)if(X0(e,n,t.text,!0))return V0(2,X0(e,n,t.text,!1));if(t.text.length0)return V0(2,!0);if(t.characterSpans.length>0){const r=U0(e,n),i=!!Y0(e,r,t,!1)||!Y0(e,r,t,!0)&&void 0;if(void 0!==i)return V0(3,i)}}}function W0(e,t,n){if(d1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=q0(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=H0(i,q0(e,t,n));return i}function H0(e,t){return zt([e,t],G0)}function G0(e,t){return void 0===e?1:void 0===t?-1:Bt(e.kind,t.kind)||Xt(!e.isCaseSensitive,!t.isCaseSensitive)}function X0(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&_1(0,i.length,(o=>function(e,t,n){return n?e1(e)===e1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function Y0(e,t,n,r){const i=n.characterSpans;let o,a,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===t.length)return!1;let l=t[s],u=!1;for(;c=65&&e<=90)return!0;if(e<127||!as(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function Z0(e){if(e>=97&&e<=122)return!0;if(e<127||!as(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function e1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function t1(e){return e>=48&&e<=57}function n1(e){const t=[];let n=0,r=0;for(let o=0;o0&&(t.push(r1(e.substr(n,r))),r=0);var i;return r>0&&t.push(r1(e.substr(n,r))),t}function r1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:i1(e)}}function i1(e){return a1(e,!1)}function o1(e){return a1(e,!0)}function a1(e,t){const n=[];let r=0;for(let i=1;is1(e)&&95!==e),t,n)}function l1(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n)))}var f1=S({"src/services/patternMatcher.ts"(){hge(),z0=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(z0||{})}});function p1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function u(){return a=s,s=gG.scan(),19===s?c++:20===s&&c--,s}function _(){const e=gG.getTokenValue(),t=gG.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function d(){i.push(_()),f()}function f(){0===c&&(l=!0)}function p(){let e=gG.getToken();return 138===e&&(e=u(),144===e&&(e=u(),11===e&&(o||(o=[]),o.push({ref:_(),depth:c}))),!0)}function m(){if(25===a)return!1;let e=gG.getToken();if(102===e){if(e=u(),21===e){if(e=u(),11===e||15===e)return d(),!0}else{if(11===e)return d(),!0;if(156===e&&gG.lookAhead((()=>{const e=gG.scan();return 161!==e&&(42===e||19===e||80===e||Sy(e))}))&&(e=u()),80===e||Sy(e))if(e=u(),161===e){if(e=u(),11===e)return d(),!0}else if(64===e){if(h(!0))return!0}else{if(28!==e)return!0;e=u()}if(19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&d()))}else 42===e&&(e=u(),130===e&&(e=u(),(80===e||Sy(e))&&(e=u(),161===e&&(e=u(),11===e&&d()))))}return!0}return!1}function g(){let e=gG.getToken();if(95===e){if(f(),e=u(),156===e&&gG.lookAhead((()=>{const e=gG.scan();return 42===e||19===e}))&&(e=u()),19===e){for(e=u();20!==e&&1!==e;)e=u();20===e&&(e=u(),161===e&&(e=u(),11===e&&d()))}else if(42===e)e=u(),161===e&&(e=u(),11===e&&d());else if(102===e&&(e=u(),156===e&&gG.lookAhead((()=>{const e=gG.scan();return 80===e||Sy(e)}))&&(e=u()),(80===e||Sy(e))&&(e=u(),64===e&&h(!0))))return!0;return!0}return!1}function h(e,t=!1){let n=e?u():gG.getToken();return 149===n&&(n=u(),21===n&&(n=u(),(11===n||t&&15===n)&&d()),!0)}function y(){let e=gG.getToken();if(80===e&&"define"===gG.getTokenValue()){if(e=u(),21!==e)return!0;if(e=u(),11===e||15===e){if(e=u(),28!==e)return!0;e=u()}if(23!==e)return!0;for(e=u();24!==e&&1!==e;)11!==e&&15!==e||d(),e=u();return!0}return!1}if(t&&function(){for(gG.setText(e),u();1!==gG.getToken();){if(16===gG.getToken()){const e=[gG.getToken()];e:for(;C(e);){const t=gG.scan();switch(t){case 1:break e;case 102:m();break;case 16:e.push(t);break;case 19:C(e)&&e.push(t);break;case 20:C(e)&&(16===je(e)?18===gG.reScanTemplateToken(!1)&&e.pop():e.pop())}}u()}p()||m()||g()||n&&(h(!1,!0)||y())||u()}gG.setText(void 0)}(),ZI(r,e),eO(r,St),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(e=[]),e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var m1,g1=S({"src/services/preProcess.ts"(){hge()}});function h1(e){const t=ln(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!QI(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(r){if(QI(r.fileName))return;const i=s(r.fileName);if(!i)return;const o=e.getProgram();if(o.isSourceOfProjectReferenceRedirect(i.fileName))return;const c=Lv(o.getCompilerOptions()),l=c?eT(c)+".d.ts":Iv(r.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),t);if(void 0===l)return;const u=a(l,r.fileName).getGeneratedPosition(r);return u===r?void 0:u},toLineColumnOffset:function(e,t){return c(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()}};function o(e){return va(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let l;if(e.getDocumentPositionMapper)l=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=c(n);l=r&&y1({getSourceFileLike:c,getCanonicalFileName:t,log:t=>e.log(t)},n,XB(r.text,ds(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,l||WB),l||WB}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||function(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(n))return void r.set(n,!1);const a=e.readFile(n),s=!!a&&function(e,t){return{text:e,lineMap:void 0,getLineAndCharacterOfPosition(e){return fs(ds(this),e)}}}(a);return r.set(n,s),s||void 0}(t)}}function y1(e,t,n,r){let i=YB(n);if(i){const n=m1.exec(i);if(n){if(n[1]){const r=n[1];return v1(e,fx(xo,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&ga(i,oa(t));for(const n of o){const i=ga(n,oa(t)),o=r(i,a);if(yt(o))return v1(e,o,i);if(void 0!==o)return o||void 0}}function v1(e,t,n){const r=eJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(yt)))return uJ(e,r,n)}var b1,x1=S({"src/services/sourcemaps.ts"(){hge(),m1=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function S1(e,t,n){t.getSemanticDiagnostics(e,n);const r=[],i=t.getTypeChecker();var o;1!==e.impliedNodeFormat&&!ea(e.fileName,[".cts",".cjs"])&&e.commonJsModuleIndicator&&(PY(t)||FY(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&Lg(k1(e.initializer),!0)));case 244:{const{expression:t}=e;if(!fN(t))return Lg(t,!0);const n=nh(t);return 1===n||2===n}default:return!1}}))}(e)&&r.push(qp(fN(o=e.commonJsModuleIndicator)?o.left:o,Ra.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const a=Ng(e);if(b1.clear(),function t(n){if(a)(function(e,t){var n,r,i,o;if(oN(e)){if(GN(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}return!!YN(e)&&!!(null==(o=e.symbol.members)?void 0:o.size)})(n,i)&&r.push(qp(GN(n.parent)?n.parent.name:n,Ra.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(PN(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Lg(e,!0)&&r.push(qp(e,Ra.require_call_may_be_converted_to_an_import))}const t=ace.getJSDocTypedefNodes(n);for(const e of t)r.push(qp(e,Ra.JSDoc_typedef_may_be_converted_to_TypeScript_type));ace.parameterShouldGetTypeFromJSDoc(n)&&r.push(qp(n.name||n,Ra.JSDoc_types_may_be_moved_to_TypeScript_types))}F1(n)&&function(e,t,n){(function(e,t){return!Iy(e)&&e.body&&AN(e.body)&&function(e,t){return!!wm(e,(e=>w1(e,t)))}(e.body,t)&&C1(e,t)})(e,t)&&!b1.has(P1(e))&&n.push(qp(!e.name&&GN(e.parent)&&qE(e.parent.name)?e.parent.name:e,Ra.This_may_be_converted_to_an_async_function))}(n,i,r),n.forEachChild(t)}(e),ak(t.getCompilerOptions()))for(const n of e.imports){const i=T1(vh(n));if(!i)continue;const o=bf(e,n.text,hK(e,n)),a=o&&t.getSourceFile(o.resolvedFileName);a&&a.externalModuleIndicator&&!0!==a.externalModuleIndicator&&gA(a.externalModuleIndicator)&&a.externalModuleIndicator.isExportEquals&&r.push(qp(i,Ra.Import_may_be_converted_to_a_default_import))}return we(r,e.bindSuggestionDiagnostics),we(r,t.getSuggestionDiagnostics(e,n)),r.sort(((e,t)=>e.start-t.start))}function k1(e){return QD(e)?k1(e.expression):e}function T1(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&NE(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function C1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function w1(e,t){return $N(e)&&!!e.expression&&E1(e.expression,t)}function E1(e,t){if(!D1(e)||!N1(e)||!e.arguments.every((e=>A1(e,t))))return!1;let n=e.expression.expression;for(;D1(n)||QD(n);)if(eN(n)){if(!N1(n)||!n.arguments.every((e=>A1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function D1(e){return eN(e)&&($G(e,"then")||$G(e,"catch")||$G(e,"finally"))}function N1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length106===e.kind||qE(e)&&"undefined"===e.text)))}function A1(e,t){switch(e.kind){case 262:case 218:if(1&Fy(e))return!1;case 219:b1.set(P1(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||le(Kx(n,t).declarations,(e=>ku(e)||G_(e)&&!!e.initializer&&ku(e.initializer))))}default:return!1}}function P1(e){return`${e.pos.toString()}:${e.end.toString()}`}function F1(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var I1,O1,M1=S({"src/services/suggestionDiagnostics.ts"(){hge(),b1=new Map}});function L1(e,t){const n=[],r=t.compilerOptions?j1(t.compilerOptions,n):{},i={target:1,jsx:1};for(const e in i)We(i,e)&&void 0===r[e]&&(r[e]=i[e]);for(const e of kO)r.verbatimModuleSyntax&&I1.has(e.name)||(r[e.name]=e.transpileOptionValue);r.suppressOutputPathCheck=!0,r.allowNonTsExtensions=!0;const o=hx(r),a={getSourceFile:e=>e===ha(s)?c:void 0,writeFile:(e,t)=>{Zo(e,".map")?(Fn.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",e),u=t):(Fn.assertEqual(l,void 0,"Unexpected multiple outputs, file:",e),l=t)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:e=>e===s,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},s=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),c=UI(s,e,{languageVersion:HS(r),impliedNodeFormat:OK(va(s,"",a.getCanonicalFileName),void 0,a,r),setExternalModuleIndicator:WS(r)});let l,u;t.moduleName&&(c.moduleName=t.moduleName),t.renamedDependencies&&(c.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const _=LK([s],r,a);return t.reportDiagnostics&&(we(n,_.getSyntacticDiagnostics(c)),we(n,_.getOptionsDiagnostics())),_.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===l?Fn.fail("Output generation failed"):{outputText:l,diagnostics:n,sourceMapText:u}}function R1(e,t,n,r,i){const o=L1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return we(r,o.diagnostics),o.outputText}function j1(e,t){O1=O1||V(gO,(e=>"object"==typeof e.type&&!mf(e.type,(e=>"number"!=typeof e)))),e=cY(e);for(const n of O1){if(!We(e,n.name))continue;const r=e[n.name];yt(r)?e[n.name]=ZO(n,r,t):mf(n.type,(e=>e===r))||t.push(YO(n))}return e}var B1=S({"src/services/transpile.ts"(){hge(),I1=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function J1(e,t,n,r,i,o){const s=K0(r);if(!s)return a;const c=[];for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||r.getNamedDeclarations().forEach(((e,n)=>{z1(s,n,e,t,r.fileName,c)}));return c.sort(W1),(void 0===i?c:c.slice(0,i)).map(H1)}function z1(e,t,n,r,i,o){const a=e.getMatchForLastSegmentOfPattern(t);if(a)for(const s of n)if($1(s,r))if(e.patternContainsDots){const n=e.getFullMatch(q1(s),t);n&&o.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:s})}else o.push({name:t,fileName:i,matchKind:a.kind,isCaseSensitive:a.isCaseSensitive,declaration:s})}function $1(e,t){switch(e.kind){case 273:case 276:case 271:const n=t.getSymbolAtLocation(e.name),r=t.getAliasedSymbol(n);return n.escapedName!==r.escapedName;default:return!0}}function V1(e,t){const n=$c(e);return!!n&&(U1(n,t)||167===n.kind&&K1(n.expression,t))}function K1(e,t){return U1(e,t)||QD(e)&&(t.push(e.name.text),!0)&&K1(e.expression,t)}function U1(e,t){return By(e)&&(t.push(Jy(e)),!0)}function q1(e){const t=[],n=$c(e);if(n&&167===n.kind&&!K1(n.expression,t))return a;t.shift();let r=eX(e);for(;r;){if(!V1(r,t))return a;r=eX(r)}return t.reverse()}function W1(e,t){return Bt(e.matchKind,t.matchKind)||Ht(e.name,t.name)}function H1(e){const t=e.declaration,n=eX(t),r=n&&$c(n);return{name:e.name,kind:tX(t),kindModifiers:eY(t),matchKind:z0[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:pY(t),containerName:r?r.text:"",containerKind:r?tX(n):""}}var G1=S({"src/services/navigateTo.ts"(){hge()}}),X1={};k(X1,{getNavigateToItems:()=>J1});var Y1,Q1,Z1,e2,t2,n2,r2,i2,o2,a2,s2=S({"src/services/_namespaces/ts.NavigateTo.ts"(){G1()}});function c2(e,t){Z1=t,e2=e;try{return q(function(e){const t=[];return function e(n){if(function(e){if(e.children)return!0;switch(d2(e)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(d2(e.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}(n)&&(t.push(n),n.children))for(const t of n.children)e(t)}(e),t}(p2(e)),L2)}finally{u2()}}function l2(e,t){Z1=t,e2=e;try{return M2(p2(e))}finally{u2()}}function u2(){e2=void 0,Z1=void 0,t2=[],n2=void 0,o2=[]}function _2(e){return q2(e.getText(e2))}function d2(e){return e.node.kind}function f2(e,t){e.children?e.children.push(t):e.children=[t]}function p2(e){Fn.assert(!t2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};n2=t;for(const t of e.statements)C2(t);return x2(),Fn.assert(!n2&&!t2.length),t}function m2(e,t){f2(n2,g2(e,t))}function g2(e,t){return{node:e,name:t||(A_(e)||l_(e)?$c(e):void 0),additionalNodes:void 0,parent:n2,children:void 0,indent:n2.indent+1}}function h2(e){i2||(i2=new Map),i2.set(e,!0)}function y2(e){for(let t=0;t0;t--)b2(e,n[t]);return[n.length-1,n[0]]}function b2(e,t){const n=g2(e,t);f2(n2,n),t2.push(n2),r2.push(i2),i2=void 0,n2=n}function x2(){n2.children&&(w2(n2.children,n2),P2(n2.children)),n2=t2.pop(),i2=r2.pop()}function S2(e,t,n){b2(e,n),C2(t),x2()}function k2(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(b2(e),zI(e.initializer,C2),x2()):S2(e,e.initializer)}function T2(e){return!Ly(e)||226!==e.kind&&QD(e.name.expression)&&qE(e.name.expression.expression)&&"Symbol"===Ic(e.name.expression.expression)}function C2(e){if(Z1.throwIfCancellationRequested(),e&&!Yl(e))switch(e.kind){case 176:const t=e;S2(t,t.body);for(const e of t.parameters)hc(e,t)&&m2(e);break;case 174:case 177:case 178:case 173:T2(e)&&S2(e,e.body);break;case 172:T2(e)&&k2(e);break;case 171:T2(e)&&m2(e);break;case 273:const n=e;n.name&&m2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)m2(r);else for(const e of r.elements)m2(e);break;case 304:S2(e,e.name);break;case 305:const{expression:i}=e;qE(i)?m2(e,i):m2(e);break;case 208:case 303:case 260:{const t=e;$u(t.name)?C2(t.name):k2(t);break}case 262:const o=e.name;o&&qE(o)&&h2(o.text),S2(e,e.body);break;case 219:case 218:S2(e,e.body);break;case 266:b2(e);for(const t of e.members)z2(t)||m2(t);x2();break;case 263:case 231:case 264:b2(e);for(const t of e.members)C2(t);x2();break;case 267:S2(e,J2(e).body);break;case 277:{const t=e.expression,n=YD(t)||eN(t)?t:aN(t)||oN(t)?t.body:void 0;n?(b2(e),C2(n),x2()):m2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:m2(e);break;case 213:case 226:{const t=nh(e);switch(t){case 1:case 2:return void S2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return qE(i.expression)?(h2(i.expression.text),o=i.expression):[a,o]=v2(n,i.expression),6===t?YD(n.right)&&n.right.properties.length>0&&(b2(n,o),zI(n.right,C2),x2()):oN(n.right)||aN(n.right)?S2(e,n.right,o):(b2(n,o),S2(e,n.right,r.name),x2()),void y2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=v2(e,r);return b2(e,a),b2(e,tI(FC.createIdentifier(i.text),i)),C2(e.arguments[2]),x2(),x2(),void y2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(qE(r)&&"prototype"!==_h(n)&&i2&&i2.has(r.text))return void(oN(t.right)||aN(t.right)?S2(e,t.right,r):ah(n)&&(b2(t,r),S2(t.left,t.right,lh(n)),x2()));break}case 4:case 0:case 8:break;default:Fn.assertNever(t)}}default:W_(e)&&w(e.jsDoc,(e=>{w(e.tags,(e=>{Eh(e)&&m2(e)}))})),zI(e,C2)}}function w2(e,t){const n=new Map;K(e,((e,r)=>{const i=e.name||$c(e.node),o=i&&_2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(E2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!E2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}function E2(e,t,n,r){return!!function(e,t,n,r){function i(e){return oN(e)||YN(e)||GN(e)}const o=fN(t.node)||eN(t.node)?nh(t.node):0,a=fN(e.node)||eN(e.node)?nh(e.node):0;if(a2[o]&&a2[a]||i(e.node)&&a2[o]||i(t.node)&&a2[a]||QN(e.node)&&D2(e.node)&&a2[o]||QN(t.node)&&a2[a]||QN(e.node)&&D2(e.node)&&i(t.node)||QN(t.node)&&i(e.node)&&D2(e.node)){let o=e.additionalNodes&&je(e.additionalNodes)||e.node;if(!QN(e.node)&&!QN(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=g2(tI(FC.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?_e([r],t.children||[t]):_e(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=_e(e.children||[{...e}],t.children||[t]),e.children&&(w2(e.children,e),P2(e.children)));o=e.node=tI(FC.createClassDeclaration(void 0,e.name||FC.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=_e(e.children,t.children),e.children&&w2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?tI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(tI(FC.createClassDeclaration(void 0,e.name||FC.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!N2(e,n)||!N2(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return bb(e)===bb(t);case 267:return A2(e,t)&&B2(e)===B2(t);default:return!0}}(e.node,t.node,r)&&(o=t,(i=e).additionalNodes=i.additionalNodes||[],i.additionalNodes.push(o.node),o.additionalNodes&&i.additionalNodes.push(...o.additionalNodes),i.children=_e(i.children,o.children),i.children&&(w2(i.children,i),P2(i.children)),!0);var i,o}function D2(e){return!!(16&e.flags)}function N2(e,t){const n=rA(e.parent)?e.parent.parent:e.parent;return n===t.node||B(t.additionalNodes,n)}function A2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||A2(e.body,t.body)):e.body===t.body}function P2(e){e.sort(F2)}function F2(e,t){return Ht(I2(e.node),I2(t.node))||Bt(d2(e),d2(t))}function I2(e){if(267===e.kind)return j2(e);const t=$c(e);if(t&&xu(t)){const e=jy(t);return e&&Fc(e)}switch(e.kind){case 218:case 219:case 231:return K2(e);default:return}}function O2(e,t){if(267===e.kind)return q2(j2(e));if(t){const e=qE(t)?t.text:ZD(t)?`[${_2(t.argumentExpression)}]`:_2(t);if(e.length>0)return q2(e)}switch(e.kind){case 312:const t=e;return HI(t)?`"${pv(aa(eT(ha(t.fileName))))}"`:"";case 277:return gA(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 1024&Ib(e)?"default":K2(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function M2(e){return{text:O2(e.node,e.name),kind:tX(e.node),kindModifiers:V2(e.node),spans:R2(e),nameSpan:e.name&&$2(e.name),childItems:q(e.children,M2)}}function L2(e){return{text:O2(e.node,e.name),kind:tX(e.node),kindModifiers:V2(e.node),spans:R2(e),childItems:q(e.children,(function(e){return{text:O2(e.node,e.name),kind:tX(e.node),kindModifiers:eY(e.node),spans:R2(e),childItems:o2,indent:0,bolded:!1,grayed:!1}}))||o2,indent:e.indent,bolded:!1,grayed:!1}}function R2(e){const t=[$2(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push($2(n));return t}function j2(e){return gp(e)?op(e.name):B2(e)}function B2(e){const t=[Jy(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(Jy(e.name));return t.join(".")}function J2(e){return e.body&&nA(e.body)?J2(e.body):e}function z2(e){return!e.name||167===e.name.kind}function $2(e){return 312===e.kind?hY(e):pY(e,e2)}function V2(e){return e.parent&&260===e.parent.kind&&(e=e.parent),eY(e)}function K2(e){const{parent:t}=e;if(e.name&&vf(e.name)>0)return q2(Jp(e.name));if(GN(t))return q2(Jp(t.name));if(fN(t)&&64===t.operatorToken.kind)return _2(t.left).replace(Y1,"");if(JA(t))return _2(t.name);if(1024&Ib(e))return"default";if(Pu(e))return"";if(eN(t)){let e=U2(t.expression);if(void 0!==e)return e=q2(e),e.length>Q1?`${e} callback`:`${e}(${q2(te(t.arguments,(e=>ed(e)?e.getText(e2):void 0)).join(", "))}) callback`}return""}function U2(e){if(qE(e))return e.text;if(QD(e)){const t=U2(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function q2(e){return(e=e.length>Q1?e.substring(0,Q1)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var W2=S({"src/services/navigationBar.ts"(){hge(),Y1=/\s+/g,Q1=150,t2=[],r2=[],o2=[],a2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),H2={};k(H2,{getNavigationBarItems:()=>c2,getNavigationTree:()=>l2});var G2,X2=S({"src/services/_namespaces/ts.NavigationBar.ts"(){W2()}});function Y2(e,t){G2.set(e,t)}function Q2(e,t){return Ze(Q(G2.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>C6(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function Z2(e,t,n,r){const i=G2.get(t);return i&&i.getEditsForAction(e,n,r)}var e6,t6,n6,r6=S({"src/services/refactorProvider.ts"(){hge(),X8(),G2=new Map}});function i6(e,t=!0){const{file:n,program:r}=e,i=AZ(e),o=PX(n,i.start),a=o.parent&&1&Ib(o.parent)&&t?o.parent:WY(o,n,i);if(!a||!(UA(a.parent)||rA(a.parent)&&gp(a.parent.parent)))return{error:DS(Ra.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(UA(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&kp(n.valueDeclaration)?t.getMergedSymbol(n):n}(a.parent,s),l=Ib(a)||(gA(a)&&!a.isExportEquals?1025:0),u=!!(1024&l);if(!(1&l)||!u&&c.exports.has("default"))return{error:DS(Ra.This_file_already_has_a_default_export)};const _=e=>qE(e)&&s.getSymbolAtLocation(e)?void 0:{error:DS(Ra.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return _(e.name)||{exportNode:e,exportName:e.name,wasDefault:u,exportingModuleSymbol:c}}case 243:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=Le(e.declarationList.declarations);if(!t.initializer)return;return Fn.assert(!u,"Can't have a default flag here"),_(t.name)||{exportNode:e,exportName:t.name,wasDefault:u,exportingModuleSymbol:c}}case 277:{const e=a;if(e.isExportEquals)return;return _(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:u,exportingModuleSymbol:c}}default:return}}function o6(e,t){return FC.createImportSpecifier(!1,e===t?void 0:FC.createIdentifier(e),FC.createIdentifier(t))}function a6(e,t){return FC.createExportSpecifier(!1,e===t?void 0:FC.createIdentifier(e),FC.createIdentifier(t))}var s6,c6,l6=S({"src/services/refactors/convertExport.ts"(){hge(),X8(),e6="Convert export",t6={name:"Convert default export to named export",description:DS(Ra.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},n6={name:"Convert named export to default export",description:DS(Ra.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Y2(e6,{kinds:[t6.kind,n6.kind],getAvailableActions:function(e){const t=i6(e,"invoked"===e.triggerReason);if(!t)return a;if(!T6(t)){const e=t.wasDefault?t6:n6;return[{name:e6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:e6,description:DS(Ra.Convert_default_export_to_named_export),actions:[{...t6,notApplicableReason:t.error},{...n6,notApplicableReason:t.error}]}]:a},getEditsForAction:function(e,t){Fn.assert(t===t6.name||t===n6.name,"Unexpected action name");const n=i6(e);return Fn.assert(n&&!T6(n),"Expected applicable refactor info"),{edits:upe.ChangeTracker.with(e,(t=>function(e,t,n,r,i){!function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(gA(n)&&!n.isExportEquals){const t=n.expression,r=a6(t.text,t.text);i.replaceNode(e,n,FC.createExportDeclaration(void 0,!1,FC.createNamedExports([r])))}else i.delete(e,Fn.checkDefined(GY(n,90),"Should find a default keyword in modifier list"));else{const t=Fn.checkDefined(GY(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:i.insertNodeAfter(e,t,FC.createToken(90));break;case 243:const a=Le(n.declarationList.declarations);if(!Yue.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,FC.createExportDefault(Fn.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:i.deleteModifier(e,t),i.insertNodeAfter(e,n,FC.createExportDefault(FC.createIdentifier(r.text)));break;default:Fn.fail(`Unexpected exportNode kind ${n.kind}`)}}}(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=Fn.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");Yue.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 211:n.replaceNode(e,t,FC.createIdentifier(r));break;case 276:case 281:{const t=i;n.replaceNode(e,t,o6(r,t.name.text));break}case 273:{const o=i;Fn.assert(o.name===t,"Import clause name should match provided ref");const a=o6(r,t.text),{namedBindings:s}=o;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=NE(o.parent.moduleSpecifier)?BY(o.parent.moduleSpecifier,e):1,a=RY(void 0,[o6(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,FC.createNamedImports([a]));break}case 205:const o=i;n.replaceNode(e,i,FC.createImportTypeNode(o.argument,o.assertions,FC.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:Fn.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 211:n.replaceNode(e,t,FC.createIdentifier("default"));break;case 276:{const t=FC.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 281:n.replaceNode(e,r,a6("default",r.name.text));break;default:Fn.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(t,n,r,i)}(e.file,e.program,n,t,e.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})}});function u6(e,t=!0){const{file:n}=e,r=AZ(e),i=PX(n,r.start),o=t?Dc(i,sA):WY(i,n,r);if(!o||!sA(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=MX(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;return c?c.namedBindings?274===c.namedBindings.kind?{convertTo:0,import:c.namedBindings}:_6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:DS(Ra.Could_not_find_namespace_import_or_named_imports)}:{error:DS(Ra.Could_not_find_import_clause)}}function _6(e,t){return ak(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;return n!==t.resolveExternalModuleSymbol(n)}(t.parent.moduleSpecifier,e.getTypeChecker())}function d6(e){return QD(e)?e.name:e.right}function f6(e,t,n,r,i=_6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const l=s&&NE(s)?ace.moduleSpecifierToValidIdentifier(s.text,99):"module",u=r.elements.some((function(t){return!!Yue.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,67108863,!0);return!!t&&(!c.has(t)||vA(e.parent))}))}))?WQ(l,e):l,_=new Set;for(const t of r.elements){const r=(t.propertyName||t.name).text;Yue.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=FC.createPropertyAccessExpression(FC.createIdentifier(u),r);zA(i.parent)?n.replaceNode(e,i.parent,FC.createPropertyAssignment(i.text,o)):vA(i.parent)?_.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?FC.createIdentifier(u):FC.createNamespaceImport(FC.createIdentifier(u))),_.size){const t=Ze(_.values(),(e=>FC.createImportSpecifier(e.isTypeOnly,e.propertyName&&FC.createIdentifier(e.propertyName.text),FC.createIdentifier(e.name.text))));n.insertNodeAfter(e,r.parent.parent,p6(a,void 0,t))}}function p6(e,t,n){return FC.createImportDeclaration(void 0,FC.createImportClause(!1,t,n&&n.length?FC.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var m6,g6,h6,y6,v6=S({"src/services/refactors/convertImport.ts"(){hge(),X8(),s6="Convert import",c6={0:{name:"Convert namespace import to named imports",description:DS(Ra.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:DS(Ra.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:DS(Ra.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Y2(s6,{kinds:Ye(c6).map((e=>e.kind)),getAvailableActions:function(e){const t=u6(e,"invoked"===e.triggerReason);if(!t)return a;if(!T6(t)){const e=c6[t.convertTo];return[{name:s6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ye(c6).map((e=>({name:s6,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):a},getEditsForAction:function(e,t){Fn.assert(le(Ye(c6),(e=>e.name===t)),"Unexpected action name");const n=u6(e);return Fn.assert(n&&!T6(n),"Expected applicable refactor info"),{edits:upe.ChangeTracker.with(e,(t=>function(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;Yue.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(Zu(e.parent)){const r=d6(e.parent).text;t.resolveName(r,e,67108863,!0)&&s.set(r,!0),Fn.assert((QD(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const t of a){const r=d6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?WQ(r,e):r),n.replaceNode(e,t,FC.createIdentifier(i))}const l=[];c.forEach(((e,t)=>{l.push(FC.createImportSpecifier(!1,e===t?void 0:FC.createIdentifier(t),FC.createIdentifier(e)))}));const u=r.parent.parent;o&&!i?n.insertNodeAfter(e,u,p6(u,void 0,l)):n.replaceNode(e,u,p6(u,o?FC.createIdentifier(r.name.text):void 0,l))}(e,i,n,r.import,ak(t.getCompilerOptions())):f6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n))),renameFilename:void 0,renameLocation:void 0}}})}});function b6(e,t=!0){const{file:n,startPosition:r}=e,i=Ng(n),o=PX(n,r),s=yY(AZ(e)),c=s.pos===s.end&&t,l=Dc(o,(e=>e.parent&&Ju(e)&&!S6(s,e.parent,n)&&(c||_X(o,n,s.pos,s.end))));if(!l||!Ju(l))return{error:DS(Ra.Selection_is_not_a_valid_type_node)};const u=e.program.getTypeChecker(),_=function(e,t){return Dc(e,I_)||(t?Dc(e,cP):void 0)}(l,i);if(void 0===_)return{error:DS(Ra.No_type_could_be_extracted_from_this_type_node)};const d=function(e,t,n,r){const i=[];return function o(s){if(TD(s)){if(qE(s.typeName)){const o=s.typeName,c=e.resolveName(o.text,o,262144,!0);for(const e of(null==c?void 0:c.declarations)||a)if(lD(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&S6(e,t,r))return!0;if(S6(n,e,r)&&!S6(t,e,r)){Ee(i,e);break}}}}else if(RD(s)){const e=Dc(s,(e=>LD(e)&&S6(e.extendsType,s,r)));if(!e||!S6(t,e,r))return!0}else if(kD(s)||BD(s)){const e=Dc(s.parent,ku);if(e&&e.type&&S6(e.type,s,r)&&!S6(t,e,r))return!0}else if(ED(s))if(qE(s.exprName)){const i=e.resolveName(s.exprName.text,s.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&S6(n,i.valueDeclaration,r)&&!S6(t,i.valueDeclaration,r))return!0}else if(Qv(s.exprName.left)&&!S6(t,s.parent,r))return!0;return r&&AD(s)&&gs(r,s.pos).line===gs(r,s.end).line&&rw(s,1),zI(s,o)}(t)?void 0:i}(u,l,_,n);return d?{isJS:i,selection:l,enclosingNode:_,typeParameters:d,typeElements:x6(u,l)}:{error:DS(Ra.No_type_could_be_extracted_from_this_type_node)}}function x6(e,t){if(t){if(MD(t)){const n=[],r=new Map;for(const i of t.types){const t=x6(e,i);if(!t||!t.every((e=>e.name&&aS(r,NY(e.name)))))return;we(n,t)}return n}return jD(t)?x6(e,t.type):DD(t)?t.members:void 0}}function S6(e,t,n){return lX(e,Ts(n.text,t.pos),t.end)}var k6=S({"src/services/refactors/extractType.ts"(){hge(),X8(),m6="Extract type",g6={name:"Extract to type alias",description:DS(Ra.Extract_to_type_alias),kind:"refactor.extract.type"},h6={name:"Extract to interface",description:DS(Ra.Extract_to_interface),kind:"refactor.extract.interface"},y6={name:"Extract to typedef",description:DS(Ra.Extract_to_typedef),kind:"refactor.extract.typedef"},Y2(m6,{kinds:[g6.kind,h6.kind,y6.kind],getAvailableActions:function(e){const t=b6(e,"invoked"===e.triggerReason);return t?T6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:m6,description:DS(Ra.Extract_type),actions:[{...y6,notApplicableReason:t.error},{...g6,notApplicableReason:t.error},{...h6,notApplicableReason:t.error}]}]:a:[{name:m6,description:DS(Ra.Extract_type),actions:t.isJS?[y6]:ke([g6],t.typeElements&&h6)}]:a},getEditsForAction:function(e,t){const{file:n}=e,r=b6(e);Fn.assert(r&&!T6(r),"Expected to find a range to extract");const i=WQ("NewType",n),o=upe.ChangeTracker.with(e,(o=>{switch(t){case g6.name:return Fn.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,selection:o,typeParameters:a}=r,s=FC.createTypeAliasDeclaration(void 0,n,a.map((e=>FC.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),o);e.insertNodeBefore(t,i,Pw(s),!0),e.replaceNode(t,o,FC.createTypeReferenceNode(n,a.map((e=>FC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:upe.LeadingTriviaOption.Exclude,trailingTriviaOption:upe.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case y6.name:return Fn.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;const{enclosingNode:a,selection:s,typeParameters:c}=i;rw(s,7168);const l=FC.createJSDocTypedefTag(FC.createIdentifier("typedef"),FC.createJSDocTypeExpression(s),FC.createIdentifier(r)),u=[];w(c,(e=>{const t=Nl(e),n=FC.createTypeParameterDeclaration(void 0,e.name),r=FC.createJSDocTemplateTag(FC.createIdentifier("template"),t&&xt(t,HA),[n]);u.push(r)}));const _=FC.createJSDocComment(void 0,FC.createNodeArray(_e(u,[l])));if(cP(a)){const r=a.getStart(n),i=SQ(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),_,{suffix:i+i+n.text.slice(MQ(n.text,r-1),r)})}else e.insertNodeBefore(n,a,_,!0);e.replaceNode(n,s,FC.createTypeReferenceNode(r,c.map((e=>FC.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case h6.name:return Fn.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,selection:a,typeParameters:s,typeElements:c}=r,l=FC.createInterfaceDeclaration(void 0,n,s,void 0,c);tI(l,null==(i=c[0])?void 0:i.parent),e.insertNodeBefore(t,o,Pw(l),!0),e.replaceNode(t,a,FC.createTypeReferenceNode(n,s.map((e=>FC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:upe.LeadingTriviaOption.Exclude,trailingTriviaOption:upe.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:Fn.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:HQ(o,a,i,!1)}}})}});function T6(e){return void 0!==e.error}function C6(e,t){return!t||e.substr(0,t.length)===t}var w6,E6,D6,N6=S({"src/services/refactors/helpers.ts"(){}});function A6(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=NX(e,t),c=s.parent;if(qE(s)){if(Bx(c)&&Fm(c)&&qE(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:DS(Ra.Variables_with_multiple_declarations_cannot_be_inlined)};if(P6(c))return;const t=F6(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:DS(Ra.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!Bx(n)||!Fm(n)||!qE(n.name))return;if(P6(n))return;const r=F6(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:DS(Ra.Could_not_find_variable_to_inline)}}}function P6(e){return le(xt(e.parent.parent,PN).modifiers,HE)}function F6(e,t,n){const r=[],i=Yue.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!!Yue.isWriteAccessForReference(t)||!(!vA(t.parent)&&!gA(t.parent))||!!ED(t.parent)||!!tc(e,t.pos)||void r.push(t)));return 0===r.length||i?void 0:r}function I6(e,t){t=LQ(t);const{parent:n}=e;return l_(n)&&(ov(t){for(const t of a)e.replaceNode(n,t,I6(t,c));e.delete(n,s)}))}}})}});var j6,B6,J6,z6=S({"src/services/refactors/moveToNewFile.ts"(){hge(),X8(),O6="Move to a new file",M6=DS(Ra.Move_to_a_new_file),Y2(O6,{kinds:[(L6={name:O6,description:M6,kind:"refactor.move.newFile"}).kind],getAvailableActions:function(e){const t=p3(e);return e.preferences.allowTextChangesInNewFiles&&t?[{name:O6,description:M6,actions:[L6]}]:e.preferences.provideRefactorNotApplicableReason?[{name:O6,description:M6,actions:[{...L6,notApplicableReason:DS(Ra.Selection_is_not_a_valid_statement_or_statements)}]}]:a},getEditsForAction:function(e,t){Fn.assert(t===O6,"Wrong refactor invoked");const n=Fn.checkDefined(p3(e));return{edits:upe.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=g3(e,n.all,s),l=f3(e,t,a,i);r.createNewFile(e,l,function(e,t,n,r,i,o,a,s){const c=i.getTypeChecker(),l=En(e.statements,hm);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===t.oldImportsNeededByTargetFile.size)return U6(e,r.ranges,n),[...l,...r.all];const u=!YZ(a,i,o,!!e.commonJsModuleIndicator),_=JY(e,s),d=Z6(e,t.oldFileImportsFromTargetFile,a,i,o,u,_);d&&XY(n,e,d,!0,s),q6(e,r.all,n,t.unusedImportsFromOldFile,c),U6(e,r.ranges,n),W6(n,i,o,e,t.movedSymbols,a,_);const f=function(e,t,n,r,i,o,a,s,c){const l=[];for(const n of e.statements)Q6(n,(e=>{ke(l,l3(e,Y6(e),(e=>t.has(i.getSymbolAtLocation(e)))))}));let u;const _=[],d=CY();return n.forEach((t=>{if(t.declarations)for(const n of t.declarations){if(!x3(n))continue;const t=u3(n);if(!t)continue;const i=_3(n);d(i)&&d3(e,i,t,r,s),vb(n,1024)?u=t:_.push(t.text)}})),ke(l,e3(e,u,_,aa(e.fileName),o,a,s,c)),l}(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,n,c,i,o,u,_),p=n3(e,r.all,t.oldFileImportsFromTargetFile,u);return f.length&&p.length?[...l,...f,4,...p]:[...l,...f,...p]}(e,c,r,n,t,i,l,o)),K6(t,r,e.fileName,l,wv(i))}(e.file,e.program,n,t,e.host,e.preferences,e))),renameFilename:void 0,renameLocation:void 0}}})}});function $6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function V6(e,t,n,r,i,o,a,s,c){const l=o.getTypeChecker(),u=En(e.statements,hm);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===n.oldImportsNeededByTargetFile.size&&0===n.targetFileImportsFromOldFile.size&&"string"==typeof t)return U6(e,i.ranges,r),[...u,...i.all];const _="string"==typeof t?t:t.fileName,d=!YZ(_,o,a,!!e.commonJsModuleIndicator),f=JY(e,s),p=Z6(e,n.oldFileImportsFromTargetFile,_,o,a,d,f);p&&XY(r,e,p,!0,s),q6(e,i.all,r,n.unusedImportsFromOldFile,l),U6(e,i.ranges,r),W6(r,o,a,e,n.movedSymbols,_,f);const m=function(e,t,n,r,i,o,a,s,c,l,u){const _=[];if(u)n.forEach(((t,r)=>{try{u.addImportFromExportedSymbol(Kx(r,o),t)}catch{for(const t of e.statements)Q6(t,(e=>{ke(_,l3(e,FC.createStringLiteral(Y6(e).text),(e=>n.has(o.getSymbolAtLocation(e)))))}))}}));else{const r=a.getSourceFile(t);for(const t of e.statements)Q6(t,(t=>{var i,c;const u=Y6(t),d=null==(i=e.resolvedModules)?void 0:i.get(u.text,hK(e,u)),f=null==(c=null==d?void 0:d.resolvedModule)?void 0:c.resolvedFileName;if(f&&r){const e=Aj(a.getCompilerOptions(),r,r.path,f,IY(a,s));ke(_,l3(t,jY(e,l),(e=>n.has(o.getSymbolAtLocation(e)))))}else ke(_,l3(t,FC.createStringLiteral(Y6(t).text),(e=>n.has(o.getSymbolAtLocation(e)))))}))}const d=a.getSourceFile(t);let f;const p=[],m=CY();return r.forEach((t=>{if(t.declarations)for(const n of t.declarations){if(!x3(n))continue;const r=u3(n);if(!r)continue;const a=_3(n);m(a)&&d3(e,a,r,i,c),u&&o.isUnknownSymbol(t)?u.addImportFromExportedSymbol(Kx(t,o)):vb(n,1024)?f=r:p.push(r.text)}})),ke(_,e3(d||e,f,p,e.fileName,a,s,c,l))}(e,_,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,r,l,o,a,d,f,c),g=n3(e,i.all,n.oldFileImportsFromTargetFile,d);return"string"!=typeof t&&(t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)o3(e)&&vb(e,1)&&y3(e,(e=>{var t;const n=D(w_(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>hA(e)?e:vA(e)?bt(e.parent.parent,hA):void 0));n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))}));for(const[t,i]of Ze(o))if(t.exportClause&&yA(t.exportClause)&&C(t.exportClause.elements)){const o=t.exportClause.elements,s=V(o,(e=>void 0===O(Kx(e.symbol,n).declarations,(e=>x3(e)&&i.has(e)))));if(0===C(s)){e.deleteNode(r,t),a.add(t);continue}C(s)hA(e)&&!!e.moduleSpecifier&&!a.has(e)));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,g,t,i):r.insertNodesAtEndOfFile(t,g,!1),m.length>0&&XY(r,t,m,!0,s)),c&&c.writeFixes(r,f),m.length&&g.length?[...u,...m,4,...g]:[...u,...m,...g]}function K6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=ha(fa(n,"..",r)),s=Ia(o.fileName,a,i),c=o.statements[0]&&bt(o.statements[0].expression,YD),l=c&&O(c.properties,(e=>JA(e)&&NE(e.name)&&"files"===e.name.text));l&&XD(l.initializer)&&t.insertNodeInListAfter(o,Be(l.initializer.elements),FC.createStringLiteral(s),l.initializer.elements)}function U6(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}function q6(e,t,n,r,i){for(const o of e.statements)B(t,o)||Q6(o,(t=>i3(e,t,n,(e=>r.has(i.getSymbolAtLocation(e))))))}function W6(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)Q6(l,(u=>{if(s.getSymbolAtLocation(Y6(u))!==r.symbol)return;const _=e=>{const t=GD(e.parent)?qY(s,e.parent):Kx(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};i3(c,u,e,_);const d=pa(oa(r.path),o),f=Aj(t.getCompilerOptions(),c,c.path,d,IY(t,n)),p=l3(u,jY(f,a),_);p&&e.insertNodeAfter(c,l,p);const m=H6(u);m&&G6(e,c,s,i,f,m,u,a)}))}function H6(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return bt(e.name,qE);default:return Fn.assertNever(e,`Unexpected node kind ${e.kind}`)}}function G6(e,t,n,r,i,o,a,s){const c=ace.moduleSpecifierToValidIdentifier(i,99);let l=!1;const u=[];if(Yue.Core.eachSymbolReferenceInFile(o,n,t,(e=>{QD(e.parent)&&(l=l||!!n.resolveName(c,e,67108863,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&u.push(e))})),u.length){const n=l?WQ(c,t):c;for(const r of u)e.replaceNode(t,r,FC.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=FC.createIdentifier(t),o=jY(n,r);switch(e.kind){case 272:return FC.createImportDeclaration(void 0,FC.createImportClause(!1,void 0,FC.createNamespaceImport(i)),o,void 0);case 271:return FC.createImportEqualsDeclaration(void 0,!1,i,FC.createExternalModuleReference(o));case 260:return FC.createVariableDeclaration(i,void 0,void 0,X6(o));default:return Fn.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function X6(e){return FC.createCallExpression(FC.createIdentifier("require"),void 0,[e])}function Y6(e){return 272===e.kind?e.moduleSpecifier:271===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function Q6(e,t){if(sA(e))NE(e.moduleSpecifier)&&t(e);else if(aA(e))kA(e.moduleReference)&&ed(e.moduleReference.expression)&&t(e);else if(PN(e))for(const n of e.declarationList.declarations)n.initializer&&Lg(n.initializer,!0)&&t(n)}function Z6(e,t,n,r,i,o,a){let s;const c=[];return t.forEach((e=>{"default"===e.escapedName?s=FC.createIdentifier($Y(e)):c.push(e.name)})),e3(e,s,c,n,r,i,o,a)}function e3(e,t,n,r,i,o,a,s){const c=pa(oa(e.path),r),l=Aj(i.getCompilerOptions(),e,e.path,c,IY(i,o));if(a)return LY(t,n.map((e=>FC.createImportSpecifier(!1,void 0,FC.createIdentifier(e)))),l,s);{Fn.assert(!t,"No default import should exist");const e=n.map((e=>FC.createBindingElement(void 0,void 0,e)));return e.length?t3(FC.createObjectBindingPattern(e),void 0,X6(jY(l,s))):void 0}}function t3(e,t,n,r=2){return FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(e,void 0,t,n)],r))}function n3(e,t,n,r){return X(t,(t=>{if(o3(t)&&!r3(e,t,r)&&y3(t,(e=>{var t;return n.has(Fn.checkDefined(null==(t=bt(e,w_))?void 0:t.symbol))}))){const e=function(e,t){return t?[a3(e)]:function(e){return[e,...c3(e).map(s3)]}(e)}(LQ(t),r);if(e)return e}return LQ(t)}))}function r3(e,t,n,r){var i;return n?!IN(t)&&vb(t,1)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&c3(t).some((t=>e.symbol.exports.has(Pc(t))))}function i3(e,t,n,r){switch(t.kind){case 272:!function(e,t,n,r){if(!t.importClause)return;const{name:i,namedBindings:o}=t.importClause,a=!i||r(i),s=!o||(274===o.kind?r(o.name):0!==o.elements.length&&o.elements.every((e=>r(e.name))));if(a&&s)n.delete(e,t);else if(i&&a&&n.delete(e,i),o)if(s)n.replaceNode(e,t.importClause,FC.updateImportClause(t.importClause,t.importClause.isTypeOnly,i,void 0));else if(275===o.kind)for(const t of o.elements)r(t.name)&&n.delete(e,t)}(e,t,n,r);break;case 271:r(t.name)&&n.delete(e,t);break;case 260:!function(e,t,n,r){const{name:i}=t;switch(i.kind){case 80:r(i)&&(t.initializer&&Lg(t.initializer,!0)?n.delete(e,XN(t.parent)&&1===C(t.parent.declarations)?t.parent.parent:t):n.delete(e,i));break;case 207:break;case 206:if(i.elements.every((e=>qE(e.name)&&r(e.name))))n.delete(e,XN(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(const t of i.elements)qE(t.name)&&r(t.name)&&n.delete(e,t.name)}}(e,t,n,r);break;default:Fn.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function o3(e){return Fn.assert(UA(e.parent),"Node parent should be a SourceFile"),k3(e)||PN(e)}function a3(e){const t=nI(e)?_e([FC.createModifier(95)],Uc(e)):void 0;switch(e.kind){case 262:return FC.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=rI(e)?Kc(e):void 0;return FC.updateClassDeclaration(e,_e(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return FC.updateVariableStatement(e,t,e.declarationList);case 267:return FC.updateModuleDeclaration(e,t,e.name,e.body);case 266:return FC.updateEnumDeclaration(e,t,e.name,e.members);case 265:return FC.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return FC.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return FC.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return Fn.fail();default:return Fn.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function s3(e){return FC.createExpressionStatement(FC.createBinaryExpression(FC.createPropertyAccessExpression(FC.createIdentifier("exports"),FC.createIdentifier(e)),64,FC.createIdentifier(e)))}function c3(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return te(e.declarationList.declarations,(e=>qE(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return a;case 244:return Fn.fail("Can't export an ExpressionStatement");default:return Fn.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function l3(e,t,n){switch(e.kind){case 272:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?FC.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?FC.createImportDeclaration(void 0,FC.createImportClause(r.isTypeOnly,i,o),LQ(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!qE(e.name)||t(e.name)));return n.length?FC.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?t3(r,e.type,X6(t),e.parent.flags):void 0}default:return Fn.assertNever(e,`Unexpected import kind ${e.kind}`)}}function u3(e){return IN(e)?bt(e.expression.left.name,qE):bt(e.name,qE)}function _3(e){switch(e.kind){case 260:return e.parent.parent;case 208:return _3(xt(e.parent.parent,(e=>GN(e)||GD(e))));default:return e}}function d3(e,t,n,r,i){if(!r3(e,t,i,n))if(i)IN(t)||r.insertExportModifier(e,t);else{const n=c3(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(s3))}}function f3(e,t,n,r){const i=t.getTypeChecker(),o=p3(n);let a;if(o){a=g3(e,o.all,i);const t=oa(e.fileName),n=lT(e.fileName),l=fa(t,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=fa(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((s=a.oldFileImportsFromTargetFile,c=a.movedSymbols,gf(s,$Y)||gf(c,$Y)||"newFile"),n,t,r))+n;return l}var s,c;return""}function p3(e){const t=function(e){const{file:t}=e,n=yY(AZ(e)),{statements:r}=t;let i=L(r,(e=>e.end>n.pos));if(-1===i)return;const o=T3(t,r[i]);o&&(i=o.start);let a=L(r,(e=>e.end>=n.end),i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=T3(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return ue(i,m3,((e,t)=>{for(let r=e;r!!e.initializer&&Lg(e.initializer,!0)));default:return!1}}(e)&&!hm(e)}function g3(e,t,n){const r=new Set,i=new Map,o=new Set,a=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&le(r.declarations,v3)?r:void 0}(O(t,(e=>!!(2&e.transformFlags))));a&&i.set(a,!1);for(const e of t)y3(e,(e=>{r.add(Fn.checkDefined(IN(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));for(const a of t)h3(a,n,((t,n)=>{var a;if(t.declarations)for(const s of t.declarations)if(v3(s)){const e=i.get(t);i.set(t,(void 0===e||e)&&n)}else x3(s)&&(GN(a=s)?a.parent.parent.parent:a.parent)===e&&!r.has(t)&&o.add(t)}));const s=new Set(i.keys()),c=new Set;for(const i of e.statements)B(t,i)||(a&&2&i.transformFlags&&s.delete(a),h3(i,n,(e=>{r.has(e)&&c.add(e),s.delete(e)})));return{movedSymbols:r,targetFileImportsFromOldFile:o,oldFileImportsFromTargetFile:c,oldImportsNeededByTargetFile:i,unusedImportsFromOldFile:s}}function h3(e,t,n){e.forEachChild((function e(r){if(qE(r)&&!oy(r)){const e=t.getSymbolAtLocation(r);e&&n(e,wT(r))}else r.forEachChild(e)}))}function y3(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return D(e.declarationList.declarations,(e=>S3(e.name,t)));case 244:{const{expression:n}=e;return fN(n)&&1===nh(n)?t(e):void 0}}}function v3(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return b3(e);case 208:return GN(e.parent.parent)&&b3(e.parent.parent);default:return!1}}function b3(e){return UA(e.parent.parent.parent)&&!!e.initializer&&Lg(e.initializer,!0)}function x3(e){return k3(e)&&UA(e.parent)||GN(e)&&UA(e.parent.parent.parent)}function S3(e,t){switch(e.kind){case 80:return t(xt(e.parent,(e=>GN(e)||GD(e))));case 207:case 206:return D(e.elements,(e=>vN(e)?void 0:S3(e.name,t)));default:return Fn.assertNever(e,`Unexpected name kind ${e.kind}`)}}function k3(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function T3(e,t){if(Cu(t)){const n=t.symbol.declarations;if(void 0===n||C(n)<=1||!B(n,t))return;const r=n[0],i=n[C(n)-1],o=te(n,(t=>Ff(t)===e&&I_(t)?t:void 0)),a=L(e.statements,(e=>e.end>=i.end));return{toMove:o,start:L(e.statements,(e=>e.end>=r.end)),end:a}}}var C3,w3,E3,D3=S({"src/services/refactors/moveToFile.ts"(){tB(),hge(),r6(),j6="Move to file",B6=DS(Ra.Move_to_file),Y2(j6,{kinds:[(J6={name:"Move to file",description:B6,kind:"refactor.move.file"}).kind],getAvailableActions:function(e,t){const n=p3(e);return t?e.preferences.allowTextChangesInNewFiles&&n?[{name:j6,description:B6,actions:[J6]}]:e.preferences.provideRefactorNotApplicableReason?[{name:j6,description:B6,actions:[{...J6,notApplicableReason:DS(Ra.Selection_is_not_a_valid_statement_or_statements)}]}]:a:a},getEditsForAction:function(e,t,n){Fn.assert(t===j6,"Wrong refactor invoked");const r=Fn.checkDefined(p3(e)),{host:i,program:o}=e;Fn.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(Wk(a)||Hk(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return $6(DS(Ra.Cannot_move_statements_to_the_selected_file));const t=upe.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=g3(t,i.all,c);if(a.fileExists(n)){const c=Fn.checkDefined(r.getSourceFile(n));V6(t,c,l,o,i,r,a,s,ace.createImportAdder(c,e.program,e.preferences,e.host))}else o.createNewFile(t,n,V6(t,n,l,o,i,r,a,s)),K6(r,o,t.fileName,n,wv(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return $6(DS(Ra.Cannot_move_to_file_selected_file_is_invalid))}})}});function N3(e){const{file:t,startPosition:n,program:r}=e;return F3(t,n,r)?[{name:C3,description:w3,actions:[E3]}]:a}function A3(e){const{file:t,startPosition:n,program:r}=e,i=F3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 173:s=FC.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 174:s=FC.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 179:s=FC.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 176:s=FC.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 180:s=FC.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 262:s=FC.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return Fn.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s!==a)return{renameFilename:void 0,renameLocation:void 0,edits:upe.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return Cu(t)&&t.body&&(e=e.slice(0,e.length-1)),FC.createNodeArray([FC.createParameterDeclaration(void 0,FC.createToken(26),"args",void 0,FC.createUnionTypeNode(q(e,l)))])}function l(e){const t=q(e.parameters,u);return rw(FC.createTupleTypeNode(t),le(t,(e=>!!C(mw(e))))?0:1)}function u(e){Fn.assert(qE(e.name));const t=tI(FC.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||FC.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=D7(n);e.length&&gw(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}}function P3(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function F3(e,t,n){const r=Dc(PX(e,t),P3);if(!r)return;if(Cu(r)&&r.body&&aX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(C(a)<=1)return;if(!I(a,(t=>Ff(t)===e)))return;if(!P3(a[0]))return;const s=a[0].kind;if(!I(a,(e=>e.kind===s)))return;const c=a;if(le(c,(e=>!!e.typeParameters||le(e.parameters,(e=>!!e.modifiers||!qE(e.name))))))return;const l=te(c,(e=>i.getSignatureFromDeclaration(e)));if(C(l)!==C(a))return;const u=i.getReturnTypeOfSignature(l[0]);return I(l,(e=>i.getReturnTypeOfSignature(e)===u))?c:void 0}var I3,O3,M3,L3,R3=S({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){hge(),X8(),C3="Convert overload list to single signature",w3=DS(Ra.Convert_overload_list_to_single_signature),Y2(C3,{kinds:[(E3={name:C3,description:w3,kind:"refactor.rewrite.function.overloadList"}).kind],getEditsForAction:A3,getAvailableActions:N3})}});function j3(e){const{file:t,startPosition:n,triggerReason:r}=e,i=J3(t,n,"invoked"===r);return i?T6(i)?e.preferences.provideRefactorNotApplicableReason?[{name:I3,description:O3,actions:[{...M3,notApplicableReason:i.error},{...L3,notApplicableReason:i.error}]}]:a:[{name:I3,description:O3,actions:[i.addBraces?M3:L3]}]:a}function B3(e,t){const{file:n,startPosition:r}=e,i=J3(n,r);Fn.assert(i&&!T6(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===M3.name){const e=FC.createReturnStatement(o);c=FC.createBlock([e],!0),GQ(o,e,n,3,!0)}else if(t===L3.name&&a){const e=o||FC.createVoidZero();c=eZ(e)?FC.createParenthesizedExpression(e):e,YQ(a,c,n,3,!1),GQ(a,c,n,3,!1),XQ(a,c,n,3,!1)}else Fn.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:upe.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}}function J3(e,t,n=!0,r){const i=PX(e,t),o=Hm(i);if(!o)return{error:DS(Ra.Could_not_find_a_containing_arrow_function)};if(!aN(o))return{error:DS(Ra.Containing_function_is_not_an_arrow_function)};if(iX(o,i)&&(!iX(o.body,i)||n)){if(C6(M3.kind,r)&&l_(o.body))return{func:o,addBraces:!0,expression:o.body};if(C6(L3.kind,r)&&AN(o.body)&&1===o.body.statements.length){const e=Le(o.body.statements);if($N(e))return{func:o,addBraces:!1,expression:e.expression,returnStatement:e}}}}var z3,$3,V3,K3,U3,q3=S({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){hge(),X8(),I3="Add or remove braces in an arrow function",O3=DS(Ra.Add_or_remove_braces_in_an_arrow_function),M3={name:"Add braces to arrow function",description:DS(Ra.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},L3={name:"Remove braces from arrow function",description:DS(Ra.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Y2(I3,{kinds:[L3.kind],getEditsForAction:B3,getAvailableActions:j3})}}),W3={},H3=S({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){R3(),q3()}});function G3(e){const{file:t,startPosition:n,program:r,kind:i}=e,o=Q3(t,n,r);if(!o)return a;const{selectedVariableDeclaration:s,func:c}=o,l=[],u=[];if(C6(K3.kind,i)){const e=s||aN(c)&&GN(c.parent)?void 0:DS(Ra.Could_not_convert_to_named_function);e?u.push({...K3,notApplicableReason:e}):l.push(K3)}if(C6(V3.kind,i)){const e=!s&&aN(c)?void 0:DS(Ra.Could_not_convert_to_anonymous_function);e?u.push({...V3,notApplicableReason:e}):l.push(V3)}if(C6(U3.kind,i)){const e=oN(c)?void 0:DS(Ra.Could_not_convert_to_arrow_function);e?u.push({...U3,notApplicableReason:e}):l.push(U3)}return[{name:z3,description:$3,actions:0===l.length&&e.preferences.provideRefactorNotApplicableReason?u:l}]}function X3(e,t){const{file:n,startPosition:r,program:i}=e,o=Q3(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case V3.name:s.push(...function(e,t){const{file:n}=e,r=Z3(t.body),i=FC.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return upe.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case K3.name:const t=function(e){const t=e.parent;if(!GN(t)||!Fm(t))return;const n=t.parent,r=n.parent;return XN(n)&&PN(r)&&qE(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=Z3(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;$Q(s);const l=1&Sc(o)|Pb(t),u=FC.createModifiersFromModifierFlags(l),_=FC.createFunctionDeclaration(C(u)?u:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?upe.ChangeTracker.with(e,(e=>e.replaceNode(r,s,_))):upe.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,_)}))}(e,a,t));break;case U3.name:if(!oN(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements[0];let i;!function(e,t){return 1===e.statements.length&&$N(t)&&!!t.expression}(t.body,r)?i=t.body:(i=r.expression,zQ(i),KQ(r,i));const o=FC.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,FC.createToken(39),i);return upe.ChangeTracker.with(e,(e=>e.replaceNode(n,t,o)))}(e,a));break;default:return Fn.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}}function Y3(e){let t=!1;return e.forEachChild((function e(n){nX(n)?t=!0:Pu(n)||YN(n)||oN(n)||zI(n,e)})),t}function Q3(e,t,n){const r=PX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return GN(e)||XN(e)&&1===e.declarations.length}(n))return;const r=(GN(n)?n:Le(n.declarations)).initializer;return r&&(aN(r)||oN(r)&&!e4(e,t,r))?r:void 0}(e,i,r.parent);if(o&&!Y3(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=Hm(r);if(a&&(oN(a)||aN(a))&&!iX(a.body,r)&&!Y3(a.body)&&!i.containsArgumentsReference(a)){if(oN(a)&&e4(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function Z3(e){if(l_(e)){const t=FC.createReturnStatement(e),n=e.getSourceFile();return tI(t,e),zQ(t),YQ(e,t,n,void 0,!0),FC.createBlock([t],!0)}return e}function e4(e,t,n){return!!n.name&&Yue.Core.isSymbolReferencedInFile(n.name,t,e)}var t4,n4,r4,i4,o4=S({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){hge(),X8(),z3="Convert arrow function or function expression",$3=DS(Ra.Convert_arrow_function_or_function_expression),V3={name:"Convert to anonymous function",description:DS(Ra.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},K3={name:"Convert to named function",description:DS(Ra.Convert_to_named_function),kind:"refactor.rewrite.function.named"},U3={name:"Convert to arrow function",description:DS(Ra.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Y2(z3,{kinds:[V3.kind,K3.kind,U3.kind],getEditsForAction:X3,getAvailableActions:G3})}}),a4={},s4=S({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){o4()}});function c4(e){const{file:t,startPosition:n}=e;return Ng(t)?a:g4(t,n,e.program.getTypeChecker())?[{name:t4,description:r4,actions:[i4]}]:a}function l4(e,t){Fn.assert(t===t4,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=g4(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 262:return e.name?[e.name]:[Fn.checkDefined(GY(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=Fn.checkDefined(yX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return 231===e.parent.kind?[e.parent.parent.name,t]:[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return Fn.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=hD(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[Fn.checkDefined(GY(t,90),"Nameless class declaration should be a default export")];case 231:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=pe([...r,...i],Mt),a=t.getTypeChecker(),s=function(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=q(r,c),l=q(i,c),u=hD(e),_=q(r,(e=>u4(e,a)));for(const r of t){if(r.kind===Yue.EntryKind.Span){o.valid=!1;continue}if(B(_,c(r.node))){if(pD(d=r.node.parent)&&(ZN(d.parent)||DD(d.parent))){o.signature=r.node.parent;continue}const e=f4(r);if(e){o.functionCalls.push(e);continue}}const t=u4(r.node,a);if(t&&B(_,t)){const e=d4(r);if(e){o.declarations.push(e);continue}}if(B(s,c(r.node))||AG(r.node)){if(_4(r))continue;const e=d4(r);if(e){o.declarations.push(e);continue}const t=f4(r);if(t){o.functionCalls.push(t);continue}}if(u&&B(l,c(r.node))){if(_4(r))continue;const t=d4(r);if(t){o.declarations.push(t);continue}const i=p4(r);if(i){n.accessExpressions.push(i);continue}if(QN(e.parent)){const e=m4(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}var d;return o}(X(o,(e=>Yue.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))));return I(s.declarations,(e=>B(o,e)))||(s.valid=!1),s;function c(e){const t=a.getSymbolAtLocation(e);return t&&PQ(t,a)}}(s,i,o);if(c.valid){const t=upe.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=q(k4(i,t,n),(e=>LQ(e)));a&&l(a,q(k4(a,t,n),(e=>LQ(e)))),l(i,s);const c=he(o.functionCalls,((e,t)=>Bt(e.pos,t.pos)));for(const e of c)if(e.arguments&&e.arguments.length){const t=LQ(S4(i,e.arguments),!0);r.replaceNodeRange(Ff(e),Le(e.arguments),Be(e.arguments),t,{leadingTriviaOption:upe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:upe.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,Le(t.parameters),Be(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:upe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:upe.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}}function u4(e,t){const n=L7(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&$x(r)))return r}}function _4(e){const t=e.node;return mA(t.parent)||cA(t.parent)||aA(t.parent)||dA(t.parent)||vA(t.parent)||gA(t.parent)?t:void 0}function d4(e){if(A_(e.node.parent))return e.node}function f4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=bt(n,t_);if(e&&e.expression===t)return e;break;case 211:const r=bt(n,QD);if(r&&r.parent&&r.name===t){const e=bt(r.parent,t_);if(e&&e.expression===r)return e}break;case 212:const i=bt(n,ZD);if(i&&i.parent&&i.argumentExpression===t){const e=bt(i.parent,t_);if(e&&e.expression===i)return e}}}}function p4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=bt(n,QD);if(e&&e.expression===t)return e;break;case 212:const r=bt(n,ZD);if(r&&r.expression===t)return r}}}function m4(e){const t=e.node;if(2===EG(t)||Yb(t.parent))return t}function g4(e,t,n){const r=AX(e,t),i=Gm(r);if(!function(e){const t=Dc(e,$_);if(t){const e=Dc(t,(e=>!$_(e)));return!!e&&Cu(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){return b4(e)?e.length-1:e.length}(e)>=n4&&I(e,(e=>function(e,t){if(rd(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&qE(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return y4(e)&&h4(e,t);case 174:if(YD(e.parent)){const r=u4(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&h4(e,t)}return h4(e,t);case 176:return QN(e.parent)?y4(e.parent)&&h4(e,t):v4(e.parent.parent)&&h4(e,t);case 218:case 219:return v4(e.parent)}return!1}(i,n)&&iX(i,r))||i.body&&iX(i.body,r)?void 0:i}function h4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function y4(e){return!!e.name||!!GY(e,90)}function v4(e){return GN(e)&&_m(e)&&qE(e.name)&&!e.type}function b4(e){return e.length>0&&nX(e[0].name)}function x4(e){return b4(e)&&(e=FC.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function S4(e,t){const n=x4(e.parameters),r=rd(Be(n)),i=q(r?t.slice(0,n.length-1):t,((e,t)=>{const r=(i=T4(n[t]),qE(o=e)&&Jy(o)===i?FC.createShorthandPropertyAssignment(i):FC.createPropertyAssignment(i,o));var i,o;return zQ(r.name),JA(r)&&zQ(r.initializer),KQ(e,r),r}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=FC.createPropertyAssignment(T4(Be(n)),FC.createArrayLiteralExpression(e));i.push(r)}return FC.createObjectLiteralExpression(i,!1)}function k4(e,t,n){const r=t.getTypeChecker(),i=x4(e.parameters),o=q(i,(function(e){const t=FC.createBindingElement(void 0,void 0,T4(e),rd(e)&&_(e)?FC.createArrayLiteralExpression():e.initializer);return zQ(t),e.initializer&&t.initializer&&KQ(e.initializer,t.initializer),t})),a=FC.createObjectBindingPattern(o),s=function(e){const t=q(e,u);return iw(FC.createTypeLiteralNode(t),1)}(i);let c;I(i,_)&&(c=FC.createObjectLiteralExpression());const l=FC.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(b4(e.parameters)){const t=e.parameters[0],n=FC.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return zQ(n.name),KQ(t.name,n.name),t.type&&(zQ(n.type),KQ(t.type,n.type)),FC.createNodeArray([n,l])}return FC.createNodeArray([l]);function u(e){let i=e.type;var o;i||!e.initializer&&!rd(e)||(o=e,i=sZ(r.getTypeAtLocation(o),o,t,n));const a=FC.createPropertySignature(void 0,T4(e),_(e)?FC.createToken(58):e.questionToken,i);return zQ(a),KQ(e.name,a.name),e.type&&a.type&&KQ(e.type,a.type),a}function _(e){if(rd(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function T4(e){return Jy(e.name)}var C4,w4,E4,D4,N4,A4=S({"src/services/refactors/convertParamsToDestructuredObject.ts"(){hge(),X8(),t4="Convert parameters to destructured object",n4=1,r4=DS(Ra.Convert_parameters_to_destructured_object),Y2(t4,{kinds:[(i4={name:t4,description:r4,kind:"refactor.rewrite.parameters.toDestructured"}).kind],getEditsForAction:l4,getAvailableActions:c4})}}),P4={},F4=S({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){A4()}});function I4(e){const{file:t,startPosition:n}=e,r=R4(O4(t,n)),i={name:C4,description:w4,actions:[]};return fN(r)&&j4(r).isValidConcatenation?(i.actions.push(E4),[i]):e.preferences.provideRefactorNotApplicableReason?(i.actions.push({...E4,notApplicableReason:DS(Ra.Can_only_convert_string_concatenation)}),[i]):a}function O4(e,t){const n=PX(e,t),r=R4(n);return!j4(r).isValidConcatenation&&iN(r.parent)&&fN(r.parent.parent)?r.parent.parent:n}function M4(e,t){const{file:n,startPosition:r}=e,i=O4(n,r);return t===w4?{edits:L4(e,i)}:Fn.fail("invalid action")}function L4(e,t){const n=R4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=D4(t,n),i=N4(e,n,r),[o,a,s,c]=J4(0,e);if(o===e.length){const e=FC.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],u=FC.createTemplateHead(a,s);i(c,u);for(let t=o;t{z4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=B4(e.literal)+(r?s:"");return FC.createTemplateSpan(e.expression,u&&r?FC.createTemplateTail(i,o):FC.createTemplateMiddle(i,o))}));l.push(...e)}else{const e=u?FC.createTemplateTail(a,s):FC.createTemplateMiddle(a,s);i(c,e),l.push(FC.createTemplateSpan(n,e))}}return FC.createTemplateExpression(u,l)}(j4(n),r),o=Ls(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return upe.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return upe.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function R4(e){return Dc(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(fN(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function j4(e){const t=e=>{if(!fN(e))return{nodes:[e],operators:[],validOperators:!0,hasString:NE(e)||FE(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||NE(e.right)||mN(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}function B4(e){const t=IE(e)||OE(e)?-2:-1;return op(e).slice(1,t)}function J4(e,t){const n=[];let r="",i="";for(;e"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function z4(e){const t=e.getSourceFile();XQ(e,e.expression,t,3,!1),YQ(e.expression,e.expression,t,3,!1)}function $4(e){return iN(e)&&(z4(e),e=e.expression),e}var V4,K4,U4,q4=S({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){hge(),X8(),C4="Convert to template string",w4=DS(Ra.Convert_to_template_string),Y2(C4,{kinds:[(E4={name:C4,description:w4,kind:"refactor.rewrite.string"}).kind],getEditsForAction:M4,getAvailableActions:I4}),D4=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){const o=r.shift();XQ(e[o],i,t,3,!1),n(o,i)}}}}),W4={},H4=S({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){q4()}});function G4(e){const t=Z4(e,"invoked"===e.triggerReason);return t?T6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:V4,description:K4,actions:[{...U4,notApplicableReason:t.error}]}]:a:[{name:V4,description:K4,actions:[U4]}]:a}function X4(e,t){const n=Z4(e);Fn.assert(n&&!T6(n),"Expected applicable refactor info");const r=upe.ChangeTracker.with(e,(t=>function(e,t,n,r,i){const{finalExpression:o,occurrences:a,expression:s}=r,c=a[a.length-1],l=i8(t,o,a);l&&(QD(l)||ZD(l)||eN(l))&&(fN(s)?n.replaceNodeRange(e,c,o,l):pN(s)&&n.replaceNode(e,s,FC.createBinaryExpression(l,FC.createToken(61),s.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}function Y4(e){return fN(e)||pN(e)}function Q4(e){return Y4(e)||function(e){return IN(e)||$N(e)||PN(e)}(e)}function Z4(e,t=!0){const{file:n,program:r}=e,i=AZ(e),o=0===i.length;if(o&&!t)return;const a=PX(n,i.start),s=OX(n,i.start+i.length),c=_c(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(Q4(e)&&!Q4(e.parent))return e;e=e.parent}}(a):function(e,t){for(;e.parent;){if(Q4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(a,c),u=l&&Q4(l)?function(e){if(Y4(e))return e;if(PN(e)){const t=Ph(e),n=null==t?void 0:t.initializer;return n&&Y4(n)?n:void 0}return e.expression&&Y4(e.expression)?e.expression:void 0}(l):void 0;if(!u)return{error:DS(Ra.Could_not_find_convertible_access_expression)};const _=r.getTypeChecker();return pN(u)?function(e,t){const n=e.condition,r=r8(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:DS(Ra.Could_not_find_convertible_access_expression)};if((QD(n)||qE(n))&&t8(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(fN(n)){const t=e8(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:DS(Ra.Could_not_find_matching_access_expressions)}}}(u,_):function(e){if(56!==e.operatorToken.kind)return{error:DS(Ra.Can_only_convert_logical_AND_access_chains)};const t=r8(e.right);if(!t)return{error:DS(Ra.Could_not_find_convertible_access_expression)};const n=e8(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:DS(Ra.Could_not_find_matching_access_expressions)}}(u)}function e8(e,t){const n=[];for(;fN(t)&&56===t.operatorToken.kind;){const r=t8(ny(e),ny(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=t8(e,t);return r&&n.push(r),n.length>0?n:void 0}function t8(e,t){if(qE(t)||QD(t)||ZD(t))return function(e,t){for(;(eN(e)||QD(e)||ZD(e))&&n8(e)!==n8(t);)e=e.expression;for(;QD(e)&&QD(t)||ZD(e)&&ZD(t);){if(n8(e)!==n8(t))return!1;e=e.expression,t=t.expression}return qE(e)&&qE(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function n8(e){return qE(e)||Oy(e)?e.getText():QD(e)?n8(e.name):ZD(e)?n8(e.argumentExpression):void 0}function r8(e){return fN(e=ny(e))?r8(e.left):(QD(e)||ZD(e)||eN(e))&&!Ml(e)?e:void 0}function i8(e,t,n){if(QD(t)||ZD(t)||eN(t)){const r=i8(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),eN(t))return o?FC.createCallChain(r,FC.createToken(29),t.typeArguments,t.arguments):FC.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(QD(t))return o?FC.createPropertyAccessChain(r,FC.createToken(29),t.name):FC.createPropertyAccessChain(r,t.questionDotToken,t.name);if(ZD(t))return o?FC.createElementAccessChain(r,FC.createToken(29),t.argumentExpression):FC.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}var o8,a8,s8,c8,l8,u8=S({"src/services/refactors/convertToOptionalChainExpression.ts"(){hge(),X8(),V4="Convert to optional chain expression",K4=DS(Ra.Convert_to_optional_chain_expression),Y2(V4,{kinds:[(U4={name:V4,description:K4,kind:"refactor.rewrite.expression.optionalChain"}).kind],getEditsForAction:X4,getAvailableActions:G4})}}),_8={},d8=S({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){u8()}});function f8(e){const t=e.kind,n=m8(e.file,AZ(e),"invoked"===e.triggerReason),r=n.targetRange;if(void 0===r){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return a;const r=[];return C6(s8.kind,t)&&r.push({name:o8,description:s8.description,actions:[{...s8,notApplicableReason:p(n.errors)}]}),C6(a8.kind,t)&&r.push({name:o8,description:a8.description,actions:[{...a8,notApplicableReason:p(n.errors)}]}),r}const i=function(e,t){const{scopes:n,readsAndWrites:{functionErrorsPerScope:r,constantErrorsPerScope:i}}=y8(e,t),o=n.map(((e,t)=>{const n=function(e){return Cu(e)?"inner function":Pu(e)?"method":"function"}(e),o=function(e){return Pu(e)?"readonly field":"constant"}(e),a=Cu(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:kG;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:Fn.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):Pu(e)?function(e){return 263===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=CS(DS(Ra.Extract_to_0_in_1_scope),[n,"global"]),c=CS(DS(Ra.Extract_to_0_in_1_scope),[o,"global"])):0===a?(s=CS(DS(Ra.Extract_to_0_in_1_scope),[n,"module"]),c=CS(DS(Ra.Extract_to_0_in_1_scope),[o,"module"])):(s=CS(DS(Ra.Extract_to_0_in_1),[n,a]),c=CS(DS(Ra.Extract_to_0_in_1),[o,a])),0!==t||Pu(e)||(c=CS(DS(Ra.Extract_to_0_in_enclosing_scope),[o])),{functionExtraction:{description:s,errors:r[t]},constantExtraction:{description:c,errors:i[t]}}}));return o}(r,e);if(void 0===i)return a;const o=[],s=new Map;let c;const l=[],u=new Map;let _,d=0;for(const{functionExtraction:e,constantExtraction:n}of i){if(C6(s8.kind,t)){const t=e.description;0===e.errors.length?s.has(t)||(s.set(t,!0),o.push({description:t,name:`function_scope_${d}`,kind:s8.kind})):c||(c={description:t,name:`function_scope_${d}`,notApplicableReason:p(e.errors),kind:s8.kind})}if(C6(a8.kind,t)){const e=n.description;0===n.errors.length?u.has(e)||(u.set(e,!0),l.push({description:e,name:`constant_scope_${d}`,kind:a8.kind})):_||(_={description:e,name:`constant_scope_${d}`,notApplicableReason:p(n.errors),kind:a8.kind})}d++}const f=[];return o.length?f.push({name:o8,description:DS(Ra.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&c&&f.push({name:o8,description:DS(Ra.Extract_function),actions:[c]}),l.length?f.push({name:o8,description:DS(Ra.Extract_constant),actions:l}):e.preferences.provideRefactorNotApplicableReason&&_&&f.push({name:o8,description:DS(Ra.Extract_constant),actions:[_]}),f.length?f:a;function p(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function p8(e,t){const n=m8(e.file,AZ(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){const t=+r[1];return Fn.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,functionErrorsPerScope:s,exposedVariableDeclarations:c}}=y8(e,t);return Fn.assert(!s[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:r,substitutions:i},o,s,c){const l=c.program.getTypeChecker(),u=HS(c.program.getCompilerOptions()),_=ace.createImportAdder(c.file,c.program,c.preferences,c.host),d=t.getSourceFile(),f=WQ(Pu(t)?"newMethod":"newFunction",d),p=Pg(t),m=FC.createIdentifier(f);let g;const h=[],y=[];let v;n.forEach(((e,n)=>{let r;if(!p){let n=l.getTypeOfSymbolAtLocation(e.symbol,e.node);n=l.getBaseTypeOfLiteralType(n),r=ace.typeToAutoImportableTypeNode(l,_,n,t,u,1)}const i=FC.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(FC.createIdentifier(n))}));const b=Ze(r.values(),(e=>({type:e,declaration:v8(e,c.startPosition)}))).sort(b8),x=0===b.length?void 0:te(b,(({declaration:e})=>e)),S=void 0!==x?x.map((e=>FC.createTypeReferenceNode(e.name,void 0))):void 0;if(l_(e)&&!p){const n=l.getContextualType(e);g=l.typeToTypeNode(n,t,1)}const{body:k,returnValueProperty:T}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(AN(e)&&!o&&0===r.size)return{body:FC.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=FC.createNodeArray(AN(e)?e.statements.slice(0):[I_(e)?e:FC.createReturnStatement(ny(e))]);if(o||r.size){const l=IB(c,(function e(i){if(!s&&$N(i)&&o){const r=x8(t,n);return i.expression&&(a||(a="__return"),r.unshift(FC.createPropertyAssignment(a,FB(i.expression,e,l_)))),1===r.length?FC.createReturnStatement(r[0].name):FC.createReturnStatement(FC.createObjectLiteralExpression(r))}{const t=s;s=s||Cu(i)||Pu(i);const n=r.get(bB(i).toString()),o=n?LQ(n):$B(i,e,P$);return s=t,o}}),I_).slice();if(o&&!i&&I_(e)){const e=x8(t,n);1===e.length?l.push(FC.createReturnStatement(e[0].name)):l.push(FC.createReturnStatement(FC.createObjectLiteralExpression(e)))}return{body:FC.createBlock(l,!0),returnValueProperty:a}}return{body:FC.createBlock(c,!0),returnValueProperty:void 0}}(e,o,v,i,!!(1&s.facts));let C;zQ(k);const w=!!(16&s.facts);if(Pu(t)){const e=p?[]:[FC.createModifier(123)];32&s.facts&&e.push(FC.createModifier(126)),4&s.facts&&e.push(FC.createModifier(134)),C=FC.createMethodDeclaration(e.length?e:void 0,2&s.facts?FC.createToken(42):void 0,m,void 0,x,h,g,k)}else w&&h.unshift(FC.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(l.getTypeAtLocation(s.thisNode),t,1),void 0)),C=FC.createFunctionDeclaration(4&s.facts?[FC.createToken(134)]:void 0,2&s.facts?FC.createToken(42):void 0,m,x,h,g,k);const E=upe.ChangeTracker.fromContext(c),D=function(e,t){return O(function(e){if(Cu(e)){const t=e.body;if(AN(t))return t.statements}else{if(rA(e)||UA(e))return e.statements;if(Pu(e))return e.members}return a}(t),(t=>t.pos>=e&&Cu(t)&&!hD(t)))}((S8(s.range)?Be(s.range):s.range).end,t);D?E.insertNodeBefore(c.file,D,C,!0):E.insertNodeAtEndOfScope(c.file,t,C),_.writeFixes(E);const N=[],A=function(e,t,n){const r=FC.createIdentifier(n);if(Pu(e)){const n=32&t.facts?FC.createIdentifier(e.name.text):FC.createThis();return FC.createPropertyAccessExpression(n,r)}return r}(t,s,f);w&&y.unshift(FC.createIdentifier("this"));let P=FC.createCallExpression(w?FC.createPropertyAccessExpression(A,"call"):A,S,y);if(2&s.facts&&(P=FC.createYieldExpression(FC.createToken(42),P)),4&s.facts&&(P=FC.createAwaitExpression(P)),C8(e)&&(P=FC.createJsxExpression(void 0,P)),o.length&&!v)if(Fn.assert(!T,"Expected no returnValueProperty"),Fn.assert(!(1&s.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===o.length){const e=o[0];N.push(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(LQ(e.name),void 0,LQ(e.type),P)],e.parent.flags)))}else{const e=[],n=[];let r=o[0].parent.flags,i=!1;for(const a of o){e.push(FC.createBindingElement(void 0,void 0,LQ(a.name)));const o=l.typeToTypeNode(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(a)),t,1);n.push(FC.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?FC.createTypeLiteralNode(n):void 0;a&&rw(a,1),N.push(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(FC.createObjectBindingPattern(e),void 0,a,P)],r)))}else if(o.length||v){if(o.length)for(const e of o){let t=e.parent.flags;2&t&&(t=-3&t|1),N.push(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(e.symbol.name,void 0,M(e.type))],t)))}T&&N.push(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(T,void 0,M(g))],1)));const e=x8(o,v);T&&e.unshift(FC.createShorthandPropertyAssignment(T)),1===e.length?(Fn.assert(!T,"Shouldn't have returnValueProperty here"),N.push(FC.createExpressionStatement(FC.createAssignment(e[0].name,P))),1&s.facts&&N.push(FC.createReturnStatement())):(N.push(FC.createExpressionStatement(FC.createAssignment(FC.createObjectLiteralExpression(e),P))),T&&N.push(FC.createReturnStatement(FC.createIdentifier(T))))}else 1&s.facts?N.push(FC.createReturnStatement(P)):S8(s.range)?N.push(FC.createExpressionStatement(P)):N.push(P);S8(s.range)?E.replaceNodeRangeWithNodes(c.file,Le(s.range),Be(s.range),N):E.replaceNodeWithNodes(c.file,s.range,N);const F=E.getChanges(),I=(S8(s.range)?Le(s.range):s.range).getSourceFile().fileName;return{renameFilename:I,renameLocation:HQ(F,I,f,!1),edits:F};function M(e){if(void 0===e)return;const t=LQ(e);let n=t;for(;jD(n);)n=n.type;return OD(n)&&O(n.types,(e=>157===e.kind))?t:FC.createUnionTypeNode([t,FC.createKeywordTypeNode(157)])}}(i,r[n],o[n],c,e,t)}(n,e,t)}const i=/^constant_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return Fn.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=y8(e,t);return Fn.assert(!a[n].length,"The extraction went missing? How?"),Fn.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=!QD(e)||Pu(t)||o.resolveName(e.name.text,e,111551,!1)||WE(e.name)||Oc(e.name)?WQ(Pu(t)?"newProperty":"newLocal",a):e.name.text,c=Pg(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),u=function(e,t){return t.size?function e(n){const r=t.get(bB(n).toString());return r?LQ(r):$B(n,e,P$)}(e):e}(ny(e),n);({variableType:l,initializer:u}=function(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!oN(r)&&!aN(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=Je(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(FC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,aN(r))r=FC.updateArrowFunction(r,nI(e)?Uc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=Oe(s);if(!n||qE(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,FC.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1)))}}r=FC.updateFunctionExpression(r,nI(e)?Uc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}(l,u)),zQ(u);const _=upe.ChangeTracker.fromContext(i);if(Pu(t)){Fn.assert(!c,"Cannot extract to a JS class");const n=[];n.push(FC.createModifier(123)),32&r&&n.push(FC.createModifier(126)),n.push(FC.createModifier(148));const o=FC.createPropertyDeclaration(n,s,void 0,l,u);let a=FC.createPropertyAccessExpression(32&r?FC.createIdentifier(t.name.getText()):FC.createThis(),FC.createIdentifier(s));C8(e)&&(a=FC.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;Fn.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!fD(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?Fn.fail():r}(e.pos,t);_.insertNodeBefore(i.file,d,o,!0),_.replaceNode(i.file,e,a)}else{const n=FC.createVariableDeclaration(s,void 0,l,u),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(GN(e)&&e.initializer===n&&XN(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){_.insertNodeBefore(i.file,r,n);const t=FC.createIdentifier(s);_.replaceNode(i.file,e,t)}else if(244===e.parent.kind&&t===Dc(e,h8)){const t=FC.createVariableStatement(void 0,FC.createVariableDeclarationList([n],2));_.replaceNode(i.file,e.parent,t)}else{const r=FC.createVariableStatement(void 0,FC.createVariableDeclarationList([n],2)),o=function(e,t){let n;Fn.assert(!Pu(t));for(let r=e;r!==t;r=r.parent)h8(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(T8(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&LA(r)?(Fn.assert(KN(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):Fn.checkDefined(t,"prevStatement failed to get set")}Fn.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?_.insertNodeAtTopOfFile(i.file,r,!1):_.insertNodeBefore(i.file,o,r,!1),244===e.parent.kind)_.delete(i.file,e.parent);else{let t=FC.createIdentifier(s);C8(e)&&(t=FC.createJsxExpression(void 0,t)),_.replaceNode(i.file,e,t)}}}const d=_.getChanges(),f=e.getSourceFile().fileName;return{renameFilename:f,renameLocation:HQ(d,f,s,!0),edits:d}}(l_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}Fn.fail("Unrecognized action name")}function m8(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[IS(e,t.start,r,c8.cannotExtractEmpty)]};const i=0===r&&n,o=IX(e,t.start),a=OX(e,Qs(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return Dc(e,(e=>e.parent&&k8(e)&&!fN(e.parent)))}(o):WY(o,e,s),l=i?c:WY(a,e,s);let u,_=0;if(!c||!l)return{errors:[IS(e,t.start,r,c8.cannotExtractRange)]};if(16777216&c.flags)return{errors:[IS(e,t.start,r,c8.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[IS(e,t.start,r,c8.cannotExtractRange)]};if(c!==l){if(!T8(c.parent))return{errors:[IS(e,t.start,r,c8.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=p(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:_,thisNode:u}}:{errors:[IS(e,t.start,r,c8.cannotExtractRange)]}}if($N(c)&&!c.expression)return{errors:[IS(e,t.start,r,c8.cannotExtractRange)]};const d=function(e){if($N(e)){if(e.expression)return e.expression}else if(PN(e)||XN(e)){const t=PN(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(GN(e)&&e.initializer)return e.initializer;return e}(c),f=function(e){if(qE(IN(e)?e.expression:e))return[qp(e,c8.cannotExtractIdentifier)]}(d)||p(d);return f?{errors:f}:{targetRange:{range:g8(d),facts:_,thisNode:u}};function p(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",Fn.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),Fn.assert(!aT(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(I_(e)||xg(e)&&k8(e)||w8(e)))return[qp(e,c8.statementOrExpressionExpected)];if(33554432&e.flags)return[qp(e,c8.cannotExtractAmbientBlock)];const i=Xm(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){bb(n)&&(_|=32);break}if(169===n.kind){176===Hm(n).kind&&(_|=32);break}174===n.kind&&bb(n)&&(_|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(A_(n)&&vb(260===n.kind?n.parent.parent:n,1))return(o||(o=[])).push(qp(n,c8.cannotExtractExportedEntity)),!0;switch(n.kind){case 272:return(o||(o=[])).push(qp(n,c8.cannotExtractImport)),!0;case 277:return(o||(o=[])).push(qp(n,c8.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=Xm(n);if(void 0===e||e.pos=t.start+t.length)return(o||(o=[])).push(qp(n,c8.cannotExtractSuper)),!0}else _|=8,u=n;break;case 219:zI(n,(function e(t){if(nX(t))_|=8,u=n;else{if(Pu(t)||ku(t)&&!aN(t))return!1;zI(t,e)}}));case 263:case 262:UA(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(qp(n,c8.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:d_(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:_|=8,u=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),zI(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?B(a,e.escapedText)||(o||(o=[])).push(qp(n,c8.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(o||(o=[])).push(qp(n,c8.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:_|=4;break;case 229:_|=2;break;case 253:4&s?_|=1:(o||(o=[])).push(qp(n,c8.cannotExtractRangeContainingConditionalReturnStatement));break;default:zI(n,e)}s=r}(e),8&_){const t=eg(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(_|=16)}return o}}function g8(e){return I_(e)?[e]:xg(e)?IN(e.parent)?[e.parent]:e:w8(e)?e:void 0}function h8(e){return aN(e)?v_(e.body):Cu(e)||UA(e)||rA(e)||Pu(e)}function y8(e,t){const{file:n}=t,r=function(e){let t=S8(e.range)?Le(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Xm(t);if(e){const n=Dc(t,Cu);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=Dc(t,(e=>Cu(e))).parent),h8(t)&&(n.push(t),312===t.kind))return n}(e),i=function(e,t){return S8(e.range)?{pos:Le(e.range).getStart(t),end:Be(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],u=[],_=[],d=new Map,f=[];let p;const m=S8(e.range)?1===e.range.length&&IN(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=Le(t).getStart(),i=Be(t).end;g=IS(r,n,i-n,c8.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=qp(m,c8.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),Pu(e)&&Pg(e)&&t.push(qp(e,c8.cannotExtractToJSClass)),aN(e)&&!AN(e.body)&&t.push(qp(e,c8.cannotExtractToExpressionArrowFunction)),u.push(t)}const h=new Map,y=S8(e.range)?FC.createBlock(e.range):e.range,v=S8(e.range)?Le(e.range):e.range,b=!!Dc(v,(e=>Ap(e)&&0!==Dl(e).length));if(function o(a,d=1){b&&x(i.getTypeAtLocation(a));if(A_(a)&&a.symbol&&_.push(a),Hb(a))o(a.left,2),o(a.right);else if(s_(a))o(a.operand,2);else if(QD(a)||ZD(a))zI(a,o);else if(qE(a)){if(!a.parent)return;if(sD(a.parent)&&a!==a.parent.left)return;if(QD(a.parent)&&a!==a.parent.expression)return;!function(o,a,_){const d=function(o,a,_){const d=S(o);if(!d)return;const f=xB(d).toString(),p=h.get(f);if(p&&p>=a)return f;if(h.set(f,a),p){for(const e of s)e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o});return f}const m=d.getDeclarations(),g=m&&O(m,(e=>e.getSourceFile()===r));if(g&&!lX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=qp(o,c8.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of u)t.push(e)}for(let e=0;e0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n{s[n].typeParameterUsages.set(t,e)})),n++),Ap(r))for(const t of Dl(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}Fn.assert(n===t.length,"Should have iterated all scopes")}_.length&&zI(Np(t[0],t[0].parent)?t[0]:jp(t[0]),(function t(n){if(n===e.range||S8(e.range)&&e.range.indexOf(n)>=0)return;const r=qE(n)?S(n):i.getSymbolAtLocation(n);if(r){const e=O(_,(e=>e.symbol===r));if(e)if(GN(e)){const t=e.symbol.id.toString();d.has(t)||(f.push(e),d.set(t,!0))}else p=p||e}zI(n,t)}));for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=S8(e.range)?e.range[0]:e.range;u[n].push(qp(t,c8.cannotAccessVariablesFromNestedScopes))}16&e.facts&&Pu(t[n])&&l[n].push(qp(e.thisNode,c8.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&yb(e.symbol.valueDeclaration,64)&&(i=e.symbol.valueDeclaration))})),Fn.assert(S8(e.range)||0===f.length,"No variable declarations expected if something was extracted"),o&&!S8(e.range)){const t=qp(e.range,c8.cannotWriteInExpression);l[n].push(t),u[n].push(t)}else if(i&&n>0){const e=qp(i,c8.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),u[n].push(e)}else if(p){const e=qp(p,c8.cannotExtractExportedEntity);l[n].push(e),u[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:u,exposedVariableDeclarations:f};function x(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function S(e){return e.parent&&zA(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function k(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return FC.createIdentifier(e.name);const i=k(e.parent,t,n);return void 0!==i?n?FC.createQualifiedName(i,FC.createIdentifier(e.name)):FC.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,readsAndWrites:o}}function v8(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.posFC.createShorthandPropertyAssignment(e.symbol.name))),r=q(t,(e=>FC.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function S8(e){return gt(e)}function k8(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function T8(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function C8(e){return w8(e)||(TA(e)||CA(e)||DA(e))&&(TA(e.parent)||DA(e.parent))}function w8(e){return NE(e)&&e.parent&&PA(e.parent)}var E8=S({"src/services/refactors/extractSymbol.ts"(){hge(),X8(),o8="Extract Symbol",a8={name:"Extract Constant",description:DS(Ra.Extract_constant),kind:"refactor.extract.constant"},s8={name:"Extract Function",description:DS(Ra.Extract_function),kind:"refactor.extract.function"},Y2(o8,{kinds:[a8.kind,s8.kind],getEditsForAction:p8,getAvailableActions:f8}),(e=>{function t(e){return{message:e,code:0,category:3,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(c8||(c8={})),l8=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(l8||{})}}),D8={};k(D8,{Messages:()=>c8,RangeFacts:()=>l8,getRangeToExtract:()=>m8,getRefactorActionsToExtractSymbol:()=>f8,getRefactorEditsToExtractSymbol:()=>p8});var N8,A8,P8,F8,I8,O8,M8=S({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){E8()}}),L8=S({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){hge(),X8(),N8="Generate 'get' and 'set' accessors",A8=DS(Ra.Generate_get_and_set_accessors),Y2(N8,{kinds:[(P8={name:N8,description:A8,kind:"refactor.rewrite.property.generateAccessors"}).kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=ace.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);Fn.assert(n&&!T6(n),"Expected applicable refactor info");const r=ace.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(qE(o)?0:-1)+HQ(r,i,o.text,uD(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return a;const t=ace.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?T6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:N8,description:A8,actions:[{...P8,notApplicableReason:t.error}]}]:a:[{name:N8,description:A8,actions:[P8]}]:a}})}}),R8={},j8=S({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){L8()}});function B8(e){const t=z8(e);if(t&&!T6(t))return{renameFilename:void 0,renameLocation:void 0,edits:upe.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=yX(n,22,e),o=aN(n)&&void 0===i,a=o?Le(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,FC.createToken(21)),t.insertNodeAfter(e,a,FC.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}}function J8(e){const t=z8(e);return t?T6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:F8,description:I8,actions:[{...O8,notApplicableReason:t.error}]}]:a:[{name:F8,description:I8,actions:[O8]}]:a}function z8(e){if(Pg(e.file)||!C6(O8.kind,e.kind))return;const t=Dc(PX(e.file,e.startPosition),(e=>AN(e)||e.parent&&aN(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:DS(Ra.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker(),r=function(e,t){if(e.isImplementationOfOverload(t)){const n=e.getTypeAtLocation(t).getCallSignatures();if(n.length>1)return e.getUnionType(te(n,(e=>e.getReturnType())))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}(n,t);if(!r)return{error:DS(Ra.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1);return i?{declaration:t,returnTypeNode:i}:void 0}var $8=S({"src/services/refactors/inferFunctionReturnType.ts"(){hge(),X8(),F8="Infer function return type",I8=DS(Ra.Infer_function_return_type),Y2(F8,{kinds:[(O8={name:F8,description:I8,kind:"refactor.rewrite.function.returnType"}).kind],getEditsForAction:B8,getAvailableActions:J8})}}),V8={},K8=S({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){$8()}}),U8={};k(U8,{addExportToChanges:()=>d3,addExports:()=>n3,addNewFileToTsconfig:()=>K6,addOrRemoveBracesToArrowFunction:()=>W3,convertArrowFunctionOrFunctionExpression:()=>a4,convertParamsToDestructuredObject:()=>P4,convertStringOrTemplateLiteral:()=>W4,convertToOptionalChainExpression:()=>_8,createNewFileName:()=>f3,createOldFileImportsFromTargetFile:()=>Z6,deleteMovedStatements:()=>U6,deleteUnusedImports:()=>i3,deleteUnusedOldImports:()=>q6,doChangeNamedToNamespaceOrDefault:()=>f6,extractSymbol:()=>D8,filterImport:()=>l3,forEachImportInStatement:()=>Q6,generateGetAccessorAndSetAccessor:()=>R8,getApplicableRefactors:()=>Q2,getEditsForRefactor:()=>Z2,getStatementsToMove:()=>p3,getTopLevelDeclarationStatement:()=>_3,getUsageInfo:()=>g3,inferFunctionReturnType:()=>V8,isRefactorErrorInfo:()=>T6,isTopLevelDeclaration:()=>x3,makeImportOrRequire:()=>e3,moduleSpecifierFromImport:()=>Y6,nameOfTopLevelDeclaration:()=>u3,refactorKindBeginsWith:()=>C6,registerRefactor:()=>Y2,updateImportsInOtherFiles:()=>W6});var q8,W8,H8,G8,X8=S({"src/services/_namespaces/ts.refactor.ts"(){r6(),l6(),v6(),k6(),N6(),R6(),z6(),D3(),H3(),s4(),F4(),H4(),d8(),M8(),j8(),K8()}});function Y8(e,t,n,r){const i=Q8(e,t,n,r);Fn.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;ee(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;t7(e);)e=e.parent;return eN(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=Sc(s),o=Tc(s);32&r&&(a|=2),512&r&&(a|=4),0!==i&&2!==i&&(64&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){return GD(e)&&(e=e7(e)),GN(e)?(!UA(e.parent.parent.parent)||BA(e.parent))&&e.getSourceFile()===t:!!YN(e)&&(!UA(e.parent)&&e.getSourceFile()===t)}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}zI(c,s),a=l}(t)}(e,t,n,((e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),i}function e7(e){for(;;){if(!GD(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function t7(e){return sD(e.parent)&&e.parent.right===e||QD(e.parent)&&e.parent.name===e}var n7,r7,i7,o7,a7,s7,c7,l7,u7,_7,d7,f7,p7,m7,g7,h7,y7,v7=S({"src/services/classifier2020.ts"(){hge(),q8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(q8||{}),W8=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(W8||{}),H8=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(H8||{}),G8=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function b7(e,t,n,r){const i=Gl(e)?new r7(e,t,n):80===e?new s7(80,t,n):81===e?new c7(81,t,n):new a7(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}function x7(e,t,n,r){for(gG.resetTokenState(t);t"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function k7(e,t){if(!e)return a;let n=V_e.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(S7))){const r=new Set;for(const i of e){const e=C7(t,i,(e=>{var n;if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags():void 0}));e&&(n=[...e,...n])}}return n}function T7(e,t){if(!e)return a;let n=V_e.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(S7))){const r=new Set;for(const i of e){const e=C7(t,i,(e=>{if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(kQ(),n))}}return n}function C7(e,t,n){var r;const i=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=xb(t);return D(yy(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}function w7(e){let t=!0;for(const n in e)if(We(e,n)&&!E7(n)){t=!1;break}if(t)return e;const n={};for(const t in e)We(e,t)&&(n[E7(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]);return n}function E7(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function D7(e){return e?q(e,(e=>e.text)).join(""):""}function N7(){return{target:1,jsx:1}}function A7(){return ace.getSupportedErrorCodes()}function P7(e,t,n){e.version=n,e.scriptSnapshot=t}function F7(e,t,n,r,i,o){const a=UI(e,wY(t),n,i,o);return P7(a,t,r),a}function I7(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=Qs(r.span)!==e.text.length?e.text.substr(Qs(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=GI(e,o,r,i);return P7(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator};return F7(e.fileName,t,o,n,!0,e.scriptKind)}function O7(e,t=D0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var r;let i;i=void 0===n?0:"boolean"==typeof n?n?2:0:n;const o=new f7(e);let s,c,l=0;const u=e.getCancellationToken?new m7(e.getCancellationToken()):p7,_=e.getCurrentDirectory();function d(t){e.log&&e.log(t)}ES(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=Cv(e),p=ln(f),m=h1({useCaseSensitiveFileNames:()=>f,getCurrentDirectory:()=>_,getProgram:y,fileExists:ut(e,e.fileExists),readFile:ut(e,e.readFile),getDocumentPositionMapper:ut(e,e.getDocumentPositionMapper),getSourceFileLike:ut(e,e.getSourceFileLike),log:d});function g(e){const t=s.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=s.getSourceFiles().map((e=>e.fileName)),t}return t}function h(){var n,r,o;if(Fn.assert(2!==i),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(c===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;c=t}}const a=e.getTypeRootsVersion?e.getTypeRootsVersion():0;l!==a&&(d("TypeRoots version has changed; provide new program"),s=void 0,l=a);const g=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||kt,v=ut(e,e.hasInvalidatedLibResolutions)||kt,b=ut(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let S,k={getSourceFile:P,getSourceFileByPath:F,getCancellationToken:()=>u,getCanonicalFileName:p,useCaseSensitiveFileNames:()=>f,getNewLine:()=>hx(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:St,getCurrentDirectory:()=>_,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:ut(e,e.getSymlinkCache),realpath:ut(e,e.realpath),directoryExists:t=>gx(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(Fn.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:A,onReleaseParsedCommandLine:function(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&A(n.sourceFile,r)},hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:ut(e,e.trace),resolveModuleNames:ut(e,e.resolveModuleNames),getModuleResolutionCache:ut(e,e.getModuleResolutionCache),createHash:ut(e,e.createHash),resolveTypeReferenceDirectives:ut(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ut(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ut(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ut(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ut(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:N};const T=k.getSourceFile,{getSourceFileWithCache:C}=iK(k,(e=>va(e,_,p)),((...e)=>T.call(k,...e)));k.getSourceFile=C,null==(o=e.setCompilerHost)||o.call(e,k);const w={useCaseSensitiveFileNames:f,fileExists:e=>k.fileExists(e),readFile:e=>k.readFile(e),directoryExists:e=>k.directoryExists(e),getDirectories:e=>k.getDirectories(e),realpath:k.realpath,readDirectory:(...e)=>k.readDirectory(...e),trace:k.trace,getCurrentDirectory:k.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:St},E=t.getKeyForCompilationSettings(h);let D=new Set;return FK(s,g,h,((t,n)=>e.getScriptVersion(n)),(e=>k.fileExists(e)),y,v,b,N,x)?(k=void 0,S=void 0,void(D=void 0)):(s=LK({rootNames:g,options:h,host:k,oldProgram:s,projectReferences:x}),k=void 0,S=void 0,D=void 0,m.clearCache(),void s.getTypeChecker());function N(t){const n=va(t,_,p),r=null==S?void 0:S.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=P(e,100);return t?(t.path=va(e,_,p),t.resolvedPath=t.path,t.originalFileName=t.fileName,BM(t,w,ga(oa(e),_),void 0,ga(e,_))):void 0}(t);return(S||(S=new Map)).set(n,i||!1),i}function A(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function P(e,t,n,r){return F(e,va(e,_,p),t,0,r)}function F(n,r,i,o,a){Fn.assert(k,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=AQ(n,e),u=e.getScriptVersion(n);if(!a){const o=s&&s.getSourceFileByPath(r);if(o){if(l===o.scriptKind||D.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,E,c,u,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(s.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),D.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,E,c,u,l,i)}}function y(){if(2!==i)return h(),s;Fn.assert(void 0===s)}function v(){if(s){const e=t.getKeyForCompilationSettings(s.getCompilerOptions());w(s.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),s=void 0}}function b(e,t,n,r){h();const i=n&&n.use===Yue.FindReferencesUse.Rename?s.getSourceFiles().filter((e=>!s.isSourceFileDefaultLibrary(e))):s.getSourceFiles();return Yue.findReferenceOrRenameEntries(s,u,i,e,t,n,r)}const x=new Map(Object.entries({19:20,21:22,23:24,32:30}));function S(t){return Fn.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,va(n,_,p)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function k(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function T(e,t,n){const r=o.getCurrentSourceFile(e),i=[],{lineStarts:a,firstLine:s,lastLine:c}=k(r,t);let l=n||!1,u=Number.MAX_VALUE;const _=new Map,d=new RegExp(/\S/),f=UX(r,a[s]),p=f?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(a[e],r.getLineEndOfPosition(a[e])),i=d.exec(t);i&&(u=Math.min(u,i.index),_.set(e.toString(),i.index),t.substr(i.index,p.length)!==p&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&a[n]===t.end)continue;const o=_.get(n.toString());void 0!==o&&(f?i.push.apply(i,C(e,{pos:a[n]+u,end:r.getLineEndOfPosition(a[n])},l,f)):l?i.push({newText:p,span:{length:0,start:a[n]+u}}):r.text.substr(a[n]+o,p.length)===p&&i.push({newText:"",span:{length:p.length,start:a[n]+o}}))}return i}function C(e,t,n,r){var i;const a=o.getCurrentSourceFile(e),s=[],{text:c}=a;let l=!1,u=n||!1;const _=[];let{pos:d}=t;const f=void 0!==r?r:UX(a,d),p=f?"{/*":"/*",m=f?"*/}":"*/",g=f?"\\{\\/\\*":"\\/\\*",h=f?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=YX(a,d+(c.substr(d,p.length)===p?p.length:0));if(e)f&&(e.pos--,e.end++),_.push(e.pos),3===e.kind&&_.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);u=void 0!==n?n:u||!tQ(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(u||!l){2!==(null==(i=YX(a,t.pos))?void 0:i.kind)&&ge(_,t.pos,Bt),ge(_,t.end,Bt);const e=_[0];c.substr(e,p.length)!==p&&s.push({newText:p,span:{length:0,start:e}});for(let e=1;e<_.length-1;e++)c.substr(_[e]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:_[e]}}),c.substr(_[e],p.length)!==p&&s.push({newText:p,span:{length:0,start:_[e]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:_[_.length-1]}})}else for(const e of _){const t=e-m.length>0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:p.length,start:e-n}})}return s}function E({openingElement:e,closingElement:t,parent:n}){return!iO(e.tagName,t.tagName)||TA(n)&&iO(e.tagName,n.openingElement.tagName)&&E(n)}function D({closingFragment:e,parent:t}){return!!(262144&e.flags)||DA(t)&&D(t)}function N(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:y(),host:e,formatContext:fge.getFormatContext(i,e),cancellationToken:u,preferences:r,triggerReason:o,kind:a}}x.forEach(((e,t)=>x.set(e.toString(),Number(t))));const A={dispose:function(){v(),e=void 0},cleanupSemanticCache:v,getSyntacticDiagnostics:function(e){return h(),s.getSyntacticDiagnostics(g(e),u).slice()},getSemanticDiagnostics:function(e){h();const t=g(e),n=s.getSemanticDiagnostics(t,u);if(!dk(s.getCompilerOptions()))return n.slice();const r=s.getDeclarationDiagnostics(t,u);return[...n,...r]},getSuggestionDiagnostics:function(e){return h(),S1(g(e),s,u)},getCompilerOptionsDiagnostics:function(){return h(),[...s.getOptionsDiagnostics(u),...s.getGlobalDiagnostics(u)]},getSyntacticClassifications:function(e,t){return S0(u,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return h(),"2020"===(n||"original")?Y8(s,u,g(e),t):g0(s.getTypeChecker(),u,g(e),s.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return k0(u,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return h(),"original"===(n||"original")?y0(s.getTypeChecker(),u,g(e),s.getClassifiableNames(),t):Q8(s,u,g(e),t)},getCompletionsAtPosition:function(t,n,r=HH,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return h(),sue.getCompletionsAtPosition(e,s,d,g(t),n,o,r.triggerCharacter,r.triggerKind,u,i&&fge.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,a=HH,c){return h(),sue.getCompletionEntryDetails(s,d,g(t),n,{name:r,source:o,data:c},e,i&&fge.getFormatContext(i,e),a,u)},getCompletionEntrySymbol:function(t,n,r,i,o=HH){return h(),sue.getCompletionEntrySymbol(s,d,g(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=HH){h();const r=g(e);return lfe.getSignatureHelpItems(s,r,t,n,u)},getQuickInfoAtPosition:function(e,t){h();const n=g(e),r=NX(n,t);if(r===n)return;const i=s.getTypeChecker(),o=function(e){return tN(e.parent)&&e.pos===e.parent.pos?e.parent.expression:PD(e.parent)&&e.pos===e.parent.pos||mm(e.parent)&&e.parent.name===e||MA(e.parent)?e.parent:e}(r),a=function(e,t){const n=L7(e);if(n){const e=t.getContextualType(n.parent),r=e&&R7(n,t,e,!1);if(r&&1===r.length)return Le(r)}return t.getSymbolAtLocation(e)}(o,i);if(!a||i.isUnknownSymbol(a)){const e=function(e,t,n){switch(t.kind){case 80:return!UG(t)&&!qG(t)&&!Jl(t.parent);case 211:case 166:return!YX(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return mm(t);default:return!1}}(n,o,t)?i.getTypeAtLocation(o):void 0;return e&&{kind:"",kindModifiers:"",textSpan:pY(o,n),displayParts:i.runWithCancellationToken(u,(t=>CQ(t,e,eX(o)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:l,documentation:_,tags:d}=i.runWithCancellationToken(u,(e=>Ife.getSymbolDisplayPartsDocumentationAndSymbolKind(e,a,n,eX(o),o)));return{kind:c,kindModifiers:Ife.getSymbolModifiers(i,a),textSpan:pY(o,n),displayParts:l,documentation:_,tags:d}},getDefinitionAtPosition:function(e,t,n,r){return h(),g_e.getDefinitionAtPosition(s,g(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return h(),g_e.getDefinitionAndBoundSpan(s,g(e),t)},getImplementationAtPosition:function(e,t){return h(),Yue.getImplementationsAtPosition(s,u,s.getSourceFiles(),g(e),t)},getTypeDefinitionAtPosition:function(e,t){return h(),g_e.getTypeDefinitionAtPosition(s.getTypeChecker(),g(e),t)},getReferencesAtPosition:function(e,t){return h(),b(NX(g(e),t),t,{use:Yue.FindReferencesUse.References},Yue.toReferenceEntry)},findReferences:function(e,t){return h(),Yue.findReferencedSymbols(s,u,s.getSourceFiles(),g(e),t)},getFileReferences:function(e){return h(),Yue.Core.getReferencesForFileName(e,s,s.getSourceFiles()).map(Yue.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=ha(e);Fn.assert(n.some((e=>ha(e)===r))),h();const i=te(n,(e=>s.getSourceFile(e))),o=g(e);return T0.getDocumentHighlights(s,u,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=NX(r,t);if(i===r)return;switch(i.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let a=i;for(;;)if(HG(a)||WG(a))a=a.parent;else{if(!XG(a))break;if(267!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return _c(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return o5.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1){return h(),J1(n?[g(n)]:s.getSourceFiles(),s.getTypeChecker(),u,e,t,r)},getRenameInfo:function(e,t,n){return h(),jde.getRenameInfo(s,g(e),t,n||{})},getSmartSelectionRange:function(e,t){return Sfe.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){h();const o=g(e),a=DX(NX(o,t));if(jde.nodeIsEligibleForRename(a)){if(qE(a)&&(wA(a.parent)||EA(a.parent))&&vv(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=pY(e.tagName,o);return{fileName:o.fileName,textSpan:t,...Yue.toContextSpan(t,o,e.parent)}}))}{const e=JY(o,i??HH),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return b(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:Yue.FindReferencesUse.Rename},((t,n,r)=>Yue.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return c2(o.getCurrentSourceFile(e),u)},getNavigationTree:function(e){return l2(o.getCurrentSourceFile(e),u)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return Nde.collectElements(t,u)},getTodoComments:function(e,t){h();const n=g(e);u.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!nn(n.fileName,"/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+q(t,(e=>"("+e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")")).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){u.throwIfCancellationRequested();const e=3;Fn.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!YX(n,c))continue;let l;for(let n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const _=a[2];i.push({descriptor:l,message:_,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=AX(n,t),i=r.getStart(n)===t?x.get(r.kind.toString()):void 0,s=i&&yX(r.parent,i,n);return s?[pY(r,n),pY(s,n)].sort(((e,t)=>e.start-t.start)):a},getIndentationAtPosition:function(e,t,n){let r=cr();const i=w7(n),a=o.getCurrentSourceFile(e);d("getIndentationAtPosition: getCurrentSourceFile: "+(cr()-r)),r=cr();const s=fge.SmartIndenter.getIndentation(t,a,i);return d("getIndentationAtPosition: computeIndentation : "+(cr()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return fge.formatSelection(n,r,a,fge.getFormatContext(w7(i),e))},getFormattingEditsForDocument:function(t,n){return fge.formatDocument(o.getCurrentSourceFile(t),fge.getFormatContext(w7(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=fge.getFormatContext(w7(i),e);if(!YX(a,n))switch(r){case"{":return fge.formatOnOpeningCurly(n,a,s);case"}":return fge.formatOnClosingCurly(n,a,s);case";":return fge.formatOnSemicolon(n,a,s);case"\n":return fge.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?fge.getFormatContext(i,e).options:void 0;return V_e.getDocCommentTemplateAtPosition(SQ(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(JX(r,t))return!1;if(zX(r,t))return 123===n;if(VX(r,t))return!1;switch(n){case 39:case 34:case 96:return!YX(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=LX(t,n);if(!r)return;const i=32===r.kind&&wA(r.parent)?r.parent.parent:AE(r)&&TA(r.parent)?r.parent:void 0;if(i&&E(i))return{newText:``};const a=32===r.kind&&NA(r.parent)?r.parent.parent:AE(r)&&DA(r.parent)?r.parent:void 0;return a&&D(a)?{newText:""}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=LX(t,n);if(!r||312===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(DA(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(Pf(e)||Pf(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=Dc(r.parent,(e=>!(!wA(e)&&!EA(e))));if(!e)return;Fn.assert(wA(e)||EA(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),u=a.tagName.end;if(!(s<=t&&t<=c||l<=t&&t<=u))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:u-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=o.getCurrentSourceFile(e),i=fge.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:hY(i)},getCodeFixesAtPosition:function(t,n,r,i,o,a=HH){h();const c=g(t),l=_c(n,r),_=fge.getFormatContext(o,e);return X(pe(i,Mt,Bt),(t=>(u.throwIfCancellationRequested(),ace.getFixes({errorCode:t,sourceFile:c,span:l,program:s,host:e,cancellationToken:u,formatContext:_,preferences:a}))))},getCombinedCodeFix:function(t,n,r,i=HH){h(),Fn.assert("file"===t.type);const o=g(t.fileName),a=fge.getFormatContext(r,e);return ace.getAllFixes({fixId:n,sourceFile:o,program:s,host:e,cancellationToken:u,formatContext:a,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return gt(n)?Promise.all(n.map((e=>S(e)))):S(n)},organizeImports:function(t,n,r=HH){h(),Fn.assert("file"===t.type);const i=g(t.fileName),o=fge.getFormatContext(n,e),a=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return yde.organizeImports(i,o,e,s,r,a)},getEditsForFileRename:function(t,n,r,i=HH){return I0(y(),t,n,e,fge.getFormatContext(r,e),i,m)},getEmitOutput:function(t,n,r){h();const i=g(t),o=e.getCustomTransformers&&e.getCustomTransformers();return HK(s,i,!!n,u,o,r)},getNonBoundSourceFile:function(e){return o.getCurrentSourceFile(e)},getProgram:y,getCurrentProgram:()=>s,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=s.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return Fn.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=rQ(t,m,ut(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(Fn.assertIsDefined(r),n.has(t)||Yue.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=rQ(t,m,ut(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=s.getSourceFile(e.fileName);if(!t)return;const n=NX(t,e.textSpan.start);return Yue.Core.getAdjustedNode(n,{use:Yue.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=HH,r,i,o){h();const a=g(e);return U8.getApplicableRefactors(N(a,t,n,HH,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=HH,a){h();const s=g(e);return U8.getEditsForRefactor(N(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=HH){h();const i=g(t),o=Fn.checkDefined(s.getSourceFiles()),a=lT(t),c=te(o,(e=>(null==s?void 0:s.isSourceFileFromExternalLibrary(i))||i===g(e.fileName)||".ts"===a&&".d.ts"===lT(e.fileName)||".d.ts"===a&&fn(aa(e.fileName),"lib.")&&".d.ts"===lT(e.fileName)||a!==lT(e.fileName)?void 0:e.fileName));return{newFileName:f3(i,s,N(i,n,r,HH),e),files:c}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:m.toLineColumnOffset(e,t)},getSourceMapper:()=>m,clearSourceMapperCache:()=>m.clearCache(),prepareCallHierarchy:function(e,t){h();const n=T5.resolveCallHierarchyDeclaration(s,NX(g(e),t));return n&&FZ(n,(e=>T5.createCallHierarchyItem(s,e)))},provideCallHierarchyIncomingCalls:function(e,t){h();const n=g(e),r=IZ(T5.resolveCallHierarchyDeclaration(s,0===t?n:NX(n,t)));return r?T5.getIncomingCalls(s,r,u):[]},provideCallHierarchyOutgoingCalls:function(e,t){h();const n=g(e),r=IZ(T5.resolveCallHierarchyDeclaration(s,0===t?n:NX(n,t)));return r?T5.getOutgoingCalls(s,r):[]},toggleLineComment:T,toggleMultilineComment:C,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=k(n,t);return r===i&&t.pos!==t.end?C(e,t,!0):T(e,t,!0)},uncommentSelection:function(e,t){const n=o.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:a}=t;i===a&&(a+=UX(n,i)?2:1);for(let t=i;t<=a;t++){const i=YX(n,t);if(i){switch(i.kind){case 2:r.push.apply(r,T(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push.apply(r,C(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=HH){h();const i=g(t);return k_e.provideInlayHints(function(t,n,r){return{file:t,program:y(),host:e,span:n,preferences:r,cancellationToken:u}}(i,n,r))},getSupportedCodeFixes:A7};switch(i){case 0:break;case 1:h7.forEach((e=>A[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:y7.forEach((e=>A[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:Fn.assertNever(i)}return A}function M7(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(qE(n)&&!qG(n)&&n.escapedText||Oy(n)&&function(e){return oy(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||sy(e)}(n)){const e=zy(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(WE(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(zI(n,e),W_(n))for(const t of n.jsDoc)zI(t,e)}))}(e),e.nameTable}function L7(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return Y_(e.parent.parent)?e.parent.parent:void 0;case 80:return!Y_(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}}(e);return t&&(YD(t.parent)||FA(t.parent))?t:void 0}function R7(e,t,n,r){const i=NY(e.name);if(!i)return a;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:a}const o=te(n.types,(n=>(YD(e.parent)||FA(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(n,e.parent)?void 0:n.getProperty(i)));if(r&&(0===o.length||o.length===n.types.length)){const e=n.getProperty(i);if(e)return[e]}return 0===o.length?te(n.types,(e=>e.getProperty(i))):o}function j7(e){if(xo)return fa(oa(ha(xo.getExecutingFilePath())),Ys(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var B7=S({"src/services/services.ts"(){hge(),s2(),X2(),X8(),C0(),v7(),n7="0.8",r7=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){Fn.assert(!aT(this.pos)&&!aT(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Ff(this)}getStart(e,t){return this.assertHasRealPosition(),ep(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(e,t){if(!Gl(e.kind))return a;const n=[];if(V_(e))return e.forEachChild((e=>{n.push(e)})),n;gG.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{x7(n,r,t.pos,e),n.push(t),r=t.end};return w(e.jsDoc,i),r=e.pos,e.forEachChild(i,(t=>{x7(n,r,t.pos,e),n.push(function(e,t){const n=b7(358,e.pos,e.end,t);n._children=[];let r=e.pos;for(const i of e)x7(n._children,r,i.pos,t),n._children.push(i),r=i.end;return x7(n._children,r,e.end,t),n}(t,e)),r=t.end})),x7(n,r,e.end,e),gG.setText(void 0),n}(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=O(t,(e=>e.kind<316||e.kind>357));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=je(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return zI(this,e,t)}},i7=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Ff(this)}getStart(e,t){return ep(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||a}getFirstToken(){}getLastToken(){}forEachChild(){}},o7=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Mc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=a,!this.declarations&&lf(this)&&this.links.target&&lf(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=T7([t],e)}else this.documentationComment=T7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(q_(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=T7(V(this.declarations,q_),t)),C(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(U_(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=T7(V(this.declarations,U_),t)),C(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return void 0===this.tags&&(this.tags=k7(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(q_(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=k7(V(this.declarations,q_),t)),C(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(U_(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=k7(V(this.declarations,U_),t)),C(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},a7=class extends i7{constructor(e,t,n){super(t,n),this.kind=e}},(s7=class extends i7{constructor(e,t,n){super(t,n),this.kind=80}get text(){return Ic(this)}}).prototype.kind=80,(c7=class extends i7{constructor(e,t,n){super(t,n),this.kind=81}get text(){return Ic(this)}}).prototype.kind=81,l7=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&tS(this))}isClass(){return!!(1&tS(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&tS(this))return this.checker.getTypeArguments(this)}},u7=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&XT(t.type)){const e=t.type.getConstraint();if(e)return this.checker.getIndexType(e)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=T7(xn(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=k7(xn(this.declaration),this.checker))}},_7=class extends r7{constructor(e,t,n){super(e,t,n),this.kind=312}update(e,t){return GI(this,e,t)}getLineAndCharacterOfPosition(e){return gs(this,e)}getLineStarts(){return ds(this)}getPositionOfLineAndCharacter(e,t,n){return _s(ds(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=_t();return this.forEachChild((function r(i){switch(i.kind){case 262:case 218:case 174:case 173:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);return n||e.set(t,n=[]),n}(a),n=je(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}zI(i,r);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(i),zI(i,r);break;case 169:if(!vb(i,16476))break;case 260:case 208:{const e=i;if($u(e.name)){zI(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(i);break;case 278:const s=i;s.exportClause&&(yA(s.exportClause)?w(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(274===c.namedBindings.kind?t(c.namedBindings):w(c.namedBindings.elements,r)));break;case 226:0!==nh(i)&&t(i);default:zI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=zc(e);return t&&(cD(t)&&QD(t.expression)?t.expression.name.text:xu(t)?NY(t):void 0)}}},d7=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return gs(this,e)}},f7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const u=AQ(e,this.host),_=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e)d=F7(e,l,{languageVersion:99,impliedNodeFormat:OK(va(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||wv(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:WS(this.host.getCompilationSettings())},_,!0,u);else if(this.currentFileVersion!==_){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=I7(this.currentSourceFile,l,_,e)}return d&&(this.currentFileVersion=_,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}},p7={isCancellationRequested:kt,throwIfCancellationRequested:St},m7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Br)||e.instant(Br.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Qr}},g7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=cr();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Br)||e.instant(Br.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Qr}},h7=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],y7=[...h7,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],TS({getNodeConstructor:()=>r7,getTokenConstructor:()=>a7,getIdentifierConstructor:()=>s7,getPrivateIdentifierConstructor:()=>c7,getSourceFileConstructor:()=>_7,getSymbolConstructor:()=>o7,getTypeConstructor:()=>l7,getSignatureConstructor:()=>u7,getSourceMapSourceConstructor:()=>d7})}});function J7(e,t,n){const r=[];n=j1(n,r);const i=gt(e)?e:[e],o=z$(void 0,void 0,FC,n,i,t,!0);return o.diagnostics=_e(o.diagnostics,r),o}var z7,$7,V7,K7,U7,q7,W7,H7,G7,X7=S({"src/services/transform.ts"(){hge()}});function Y7(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function Q7(e,t,n,r){return Z7(e,t,!0,n,r)}function Z7(e,t,n,r,i){try{const o=function(e,t,n,r){let i;r&&(e.log(t),i=cr());const o=n();if(r){const n=cr();if(e.log(`${t} completed in ${n-i} msec`),yt(o)){let t=o;t.length>128&&(t=t.substring(0,128)+"..."),e.log(` result.length=${t.length}, result='${JSON.stringify(t)}'`)}}return o}(e,t,r,i);return n?JSON.stringify({result:o}):o}catch(n){return n instanceof Qr?JSON.stringify({canceled:!0}):(Y7(e,n),n.description=t,JSON.stringify({error:n}))}}function e5(e,t){return e.map((e=>function(e,t){return{message:fK(e.messageText,t),start:e.start,length:e.length,category:uo(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}(e,t)))}function t5(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var n5=S({"src/services/shims.ts"(){hge(),z7=function(){return this}(),$7=class{constructor(e){this.scriptSnapshotShim=e}getText(e,t){return this.scriptSnapshotShim.getText(e,t)}getLength(){return this.scriptSnapshotShim.getLength()}getChangeRange(e){const t=e,n=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===n)return null;const r=JSON.parse(n);return pc(uc(r.span.start,r.span.length),r.newLength)}dispose(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()}},V7=class{constructor(e){this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=(e,t)=>{const n=JSON.parse(this.shimHost.getModuleResolutionsForFile(t));return q(e,(e=>{const t=He(n,e);return t?{resolvedFileName:t,extension:lT(t),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=e=>this.shimHost.directoryExists(e)),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=(e,t)=>{const n=JSON.parse(this.shimHost.getTypeReferenceDirectiveResolutionsForFile(t));return q(e,(e=>He(n,yt(e)?e:Dt(e.fileName))))})}log(e){this.loggingEnabled&&this.shimHost.log(e)}trace(e){this.tracingEnabled&&this.shimHost.trace(e)}error(e){this.shimHost.error(e)}getProjectVersion(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()}getTypeRootsVersion(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0}useCaseSensitiveFileNames(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()}getCompilationSettings(){const e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");const t=JSON.parse(e);return t.allowNonTsExtensions=!0,t}getScriptFileNames(){const e=this.shimHost.getScriptFileNames();return JSON.parse(e)}getScriptSnapshot(e){const t=this.shimHost.getScriptSnapshot(e);return t&&new $7(t)}getScriptKind(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0}getScriptVersion(e){return this.shimHost.getScriptVersion(e)}getLocalizedDiagnosticMessages(){const 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}}getCancellationToken(){const e=this.shimHost.getCancellationToken();return new g7(e)}getCurrentDirectory(){return this.shimHost.getCurrentDirectory()}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}getDefaultLibFileName(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))}readDirectory(e,t,n,r,i){const o=jk(e,n,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}readFile(e,t){return this.shimHost.readFile(e,t)}fileExists(e){return this.shimHost.fileExists(e)}},K7=class{constructor(e){this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=e=>this.shimHost.directoryExists(e):this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=e=>this.shimHost.realpath(e):this.realpath=void 0}readDirectory(e,t,n,r,i){const o=jk(e,n,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}fileExists(e){return this.shimHost.fileExists(e)}readFile(e){return this.shimHost.readFile(e)}getDirectories(e){return JSON.parse(this.shimHost.getDirectories(e))}},U7=class{constructor(e){this.factory=e,e.registerShim(this)}dispose(e){this.factory.unregisterShim(this)}},q7=class extends U7{constructor(e,t,n){super(e),this.host=t,this.languageService=n,this.logPerformance=!1,this.logger=this.host}forwardJSONCall(e,t){return Q7(this.logger,e,t,this.logPerformance)}dispose(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,z7&&z7.CollectGarbage&&(z7.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,super.dispose(e)}refresh(e){this.forwardJSONCall(`refresh(${e})`,(()=>null))}cleanupSemanticCache(){this.forwardJSONCall("cleanupSemanticCache()",(()=>(this.languageService.cleanupSemanticCache(),null)))}realizeDiagnostics(e){return e5(e,SQ(this.host,void 0))}getSyntacticClassifications(e,t,n){return this.forwardJSONCall(`getSyntacticClassifications('${e}', ${t}, ${n})`,(()=>this.languageService.getSyntacticClassifications(e,uc(t,n))))}getSemanticClassifications(e,t,n){return this.forwardJSONCall(`getSemanticClassifications('${e}', ${t}, ${n})`,(()=>this.languageService.getSemanticClassifications(e,uc(t,n))))}getEncodedSyntacticClassifications(e,t,n){return this.forwardJSONCall(`getEncodedSyntacticClassifications('${e}', ${t}, ${n})`,(()=>t5(this.languageService.getEncodedSyntacticClassifications(e,uc(t,n)))))}getEncodedSemanticClassifications(e,t,n){return this.forwardJSONCall(`getEncodedSemanticClassifications('${e}', ${t}, ${n})`,(()=>t5(this.languageService.getEncodedSemanticClassifications(e,uc(t,n)))))}getSyntacticDiagnostics(e){return this.forwardJSONCall(`getSyntacticDiagnostics('${e}')`,(()=>{const t=this.languageService.getSyntacticDiagnostics(e);return this.realizeDiagnostics(t)}))}getSemanticDiagnostics(e){return this.forwardJSONCall(`getSemanticDiagnostics('${e}')`,(()=>{const t=this.languageService.getSemanticDiagnostics(e);return this.realizeDiagnostics(t)}))}getSuggestionDiagnostics(e){return this.forwardJSONCall(`getSuggestionDiagnostics('${e}')`,(()=>this.realizeDiagnostics(this.languageService.getSuggestionDiagnostics(e))))}getCompilerOptionsDiagnostics(){return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(()=>{const e=this.languageService.getCompilerOptionsDiagnostics();return this.realizeDiagnostics(e)}))}getQuickInfoAtPosition(e,t){return this.forwardJSONCall(`getQuickInfoAtPosition('${e}', ${t})`,(()=>this.languageService.getQuickInfoAtPosition(e,t)))}getNameOrDottedNameSpan(e,t,n){return this.forwardJSONCall(`getNameOrDottedNameSpan('${e}', ${t}, ${n})`,(()=>this.languageService.getNameOrDottedNameSpan(e,t,n)))}getBreakpointStatementAtPosition(e,t){return this.forwardJSONCall(`getBreakpointStatementAtPosition('${e}', ${t})`,(()=>this.languageService.getBreakpointStatementAtPosition(e,t)))}getSignatureHelpItems(e,t,n){return this.forwardJSONCall(`getSignatureHelpItems('${e}', ${t})`,(()=>this.languageService.getSignatureHelpItems(e,t,n)))}getDefinitionAtPosition(e,t){return this.forwardJSONCall(`getDefinitionAtPosition('${e}', ${t})`,(()=>this.languageService.getDefinitionAtPosition(e,t)))}getDefinitionAndBoundSpan(e,t){return this.forwardJSONCall(`getDefinitionAndBoundSpan('${e}', ${t})`,(()=>this.languageService.getDefinitionAndBoundSpan(e,t)))}getTypeDefinitionAtPosition(e,t){return this.forwardJSONCall(`getTypeDefinitionAtPosition('${e}', ${t})`,(()=>this.languageService.getTypeDefinitionAtPosition(e,t)))}getImplementationAtPosition(e,t){return this.forwardJSONCall(`getImplementationAtPosition('${e}', ${t})`,(()=>this.languageService.getImplementationAtPosition(e,t)))}getRenameInfo(e,t,n){return this.forwardJSONCall(`getRenameInfo('${e}', ${t})`,(()=>this.languageService.getRenameInfo(e,t,n)))}getSmartSelectionRange(e,t){return this.forwardJSONCall(`getSmartSelectionRange('${e}', ${t})`,(()=>this.languageService.getSmartSelectionRange(e,t)))}findRenameLocations(e,t,n,r,i){return this.forwardJSONCall(`findRenameLocations('${e}', ${t}, ${n}, ${r})`,(()=>this.languageService.findRenameLocations(e,t,n,r,i)))}getBraceMatchingAtPosition(e,t){return this.forwardJSONCall(`getBraceMatchingAtPosition('${e}', ${t})`,(()=>this.languageService.getBraceMatchingAtPosition(e,t)))}isValidBraceCompletionAtPosition(e,t,n){return this.forwardJSONCall(`isValidBraceCompletionAtPosition('${e}', ${t}, ${n})`,(()=>this.languageService.isValidBraceCompletionAtPosition(e,t,n)))}getSpanOfEnclosingComment(e,t,n){return this.forwardJSONCall(`getSpanOfEnclosingComment('${e}', ${t})`,(()=>this.languageService.getSpanOfEnclosingComment(e,t,n)))}getIndentationAtPosition(e,t,n){return this.forwardJSONCall(`getIndentationAtPosition('${e}', ${t})`,(()=>{const r=JSON.parse(n);return this.languageService.getIndentationAtPosition(e,t,r)}))}getReferencesAtPosition(e,t){return this.forwardJSONCall(`getReferencesAtPosition('${e}', ${t})`,(()=>this.languageService.getReferencesAtPosition(e,t)))}findReferences(e,t){return this.forwardJSONCall(`findReferences('${e}', ${t})`,(()=>this.languageService.findReferences(e,t)))}getFileReferences(e){return this.forwardJSONCall(`getFileReferences('${e})`,(()=>this.languageService.getFileReferences(e)))}getDocumentHighlights(e,t,n){return this.forwardJSONCall(`getDocumentHighlights('${e}', ${t})`,(()=>{const r=this.languageService.getDocumentHighlights(e,t,JSON.parse(n)),i=Dt(_a(e));return V(r,(e=>Dt(_a(e.fileName))===i))}))}getCompletionsAtPosition(e,t,n,r){return this.forwardJSONCall(`getCompletionsAtPosition('${e}', ${t}, ${n}, ${r})`,(()=>this.languageService.getCompletionsAtPosition(e,t,n,r)))}getCompletionEntryDetails(e,t,n,r,i,o,a){return this.forwardJSONCall(`getCompletionEntryDetails('${e}', ${t}, '${n}')`,(()=>{const s=void 0===r?void 0:JSON.parse(r);return this.languageService.getCompletionEntryDetails(e,t,n,s,i,o,a)}))}getFormattingEditsForRange(e,t,n,r){return this.forwardJSONCall(`getFormattingEditsForRange('${e}', ${t}, ${n})`,(()=>{const i=JSON.parse(r);return this.languageService.getFormattingEditsForRange(e,t,n,i)}))}getFormattingEditsForDocument(e,t){return this.forwardJSONCall(`getFormattingEditsForDocument('${e}')`,(()=>{const n=JSON.parse(t);return this.languageService.getFormattingEditsForDocument(e,n)}))}getFormattingEditsAfterKeystroke(e,t,n,r){return this.forwardJSONCall(`getFormattingEditsAfterKeystroke('${e}', ${t}, '${n}')`,(()=>{const i=JSON.parse(r);return this.languageService.getFormattingEditsAfterKeystroke(e,t,n,i)}))}getDocCommentTemplateAtPosition(e,t,n,r){return this.forwardJSONCall(`getDocCommentTemplateAtPosition('${e}', ${t})`,(()=>this.languageService.getDocCommentTemplateAtPosition(e,t,n,r)))}getNavigateToItems(e,t,n){return this.forwardJSONCall(`getNavigateToItems('${e}', ${t}, ${n})`,(()=>this.languageService.getNavigateToItems(e,t,n)))}getNavigationBarItems(e){return this.forwardJSONCall(`getNavigationBarItems('${e}')`,(()=>this.languageService.getNavigationBarItems(e)))}getNavigationTree(e){return this.forwardJSONCall(`getNavigationTree('${e}')`,(()=>this.languageService.getNavigationTree(e)))}getOutliningSpans(e){return this.forwardJSONCall(`getOutliningSpans('${e}')`,(()=>this.languageService.getOutliningSpans(e)))}getTodoComments(e,t){return this.forwardJSONCall(`getTodoComments('${e}')`,(()=>this.languageService.getTodoComments(e,JSON.parse(t))))}prepareCallHierarchy(e,t){return this.forwardJSONCall(`prepareCallHierarchy('${e}', ${t})`,(()=>this.languageService.prepareCallHierarchy(e,t)))}provideCallHierarchyIncomingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyIncomingCalls('${e}', ${t})`,(()=>this.languageService.provideCallHierarchyIncomingCalls(e,t)))}provideCallHierarchyOutgoingCalls(e,t){return this.forwardJSONCall(`provideCallHierarchyOutgoingCalls('${e}', ${t})`,(()=>this.languageService.provideCallHierarchyOutgoingCalls(e,t)))}provideInlayHints(e,t,n){return this.forwardJSONCall(`provideInlayHints('${e}', '${JSON.stringify(t)}', ${JSON.stringify(n)})`,(()=>this.languageService.provideInlayHints(e,t,n)))}getEmitOutput(e){return this.forwardJSONCall(`getEmitOutput('${e}')`,(()=>{const{diagnostics:t,...n}=this.languageService.getEmitOutput(e);return{...n,diagnostics:this.realizeDiagnostics(t)}}))}getEmitOutputObject(e){return Z7(this.logger,`getEmitOutput('${e}')`,!1,(()=>this.languageService.getEmitOutput(e)),this.logPerformance)}toggleLineComment(e,t){return this.forwardJSONCall(`toggleLineComment('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.toggleLineComment(e,t)))}toggleMultilineComment(e,t){return this.forwardJSONCall(`toggleMultilineComment('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.toggleMultilineComment(e,t)))}commentSelection(e,t){return this.forwardJSONCall(`commentSelection('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.commentSelection(e,t)))}uncommentSelection(e,t){return this.forwardJSONCall(`uncommentSelection('${e}', '${JSON.stringify(t)}')`,(()=>this.languageService.uncommentSelection(e,t)))}},W7=class extends U7{constructor(e,t){super(e),this.logger=t,this.logPerformance=!1,this.classifier=_0()}getEncodedLexicalClassifications(e,t,n=!1){return Q7(this.logger,"getEncodedLexicalClassifications",(()=>t5(this.classifier.getEncodedLexicalClassifications(e,t,n))),this.logPerformance)}getClassificationsForLine(e,t,n=!1){const r=this.classifier.getClassificationsForLine(e,t,n);let i="";for(const e of r.entries)i+=e.length+"\n",i+=e.classification+"\n";return i+=r.finalLexState,i}},H7=class extends U7{constructor(e,t,n){super(e),this.logger=t,this.host=n,this.logPerformance=!1}forwardJSONCall(e,t){return Q7(this.logger,e,t,this.logPerformance)}resolveModuleName(e,t,n){return this.forwardJSONCall(`resolveModuleName('${e}')`,(()=>{const r=JSON.parse(n),i=dR(t,_a(e),r,this.host);let o=i.resolvedModule?i.resolvedModule.resolvedFileName:void 0;return i.resolvedModule&&".ts"!==i.resolvedModule.extension&&".tsx"!==i.resolvedModule.extension&&".d.ts"!==i.resolvedModule.extension&&(o=void 0),{resolvedFileName:o,failedLookupLocations:i.failedLookupLocations,affectingLocations:i.affectingLocations}}))}resolveTypeReferenceDirective(e,t,n){return this.forwardJSONCall(`resolveTypeReferenceDirective(${e})`,(()=>{const r=JSON.parse(n),i=qL(t,_a(e),r,this.host);return{resolvedFileName:i.resolvedTypeReferenceDirective?i.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!i.resolvedTypeReferenceDirective||i.resolvedTypeReferenceDirective.primary,failedLookupLocations:i.failedLookupLocations}}))}getPreProcessedFileInfo(e,t){return this.forwardJSONCall(`getPreProcessedFileInfo('${e}')`,(()=>{const e=p1(wY(t),!0,!0);return{referencedFiles:this.convertFileReferences(e.referencedFiles),importedFiles:this.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:this.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:this.convertFileReferences(e.libReferenceDirectives)}}))}getAutomaticTypeDirectiveNames(e){return this.forwardJSONCall(`getAutomaticTypeDirectiveNames('${e}')`,(()=>XL(JSON.parse(e),this.host)))}convertFileReferences(e){if(!e)return;const t=[];for(const n of e)t.push({path:_a(n.fileName),position:n.pos,length:n.end-n.pos});return t}getTSConfigFileInfo(e,t){return this.forwardJSONCall(`getTSConfigFileInfo('${e}')`,(()=>{const n=WI(e,wY(t)),r=_a(e),i=BM(n,this.host,oa(r),{},r);return{options:i.options,typeAcquisition:i.typeAcquisition,files:i.fileNames,raw:i.raw,errors:e5([...n.parseDiagnostics,...i.errors],"\r\n")}}))}getDefaultCompilationSettings(){return this.forwardJSONCall("getDefaultCompilationSettings()",(()=>({target:1,jsx:1})))}discoverTypings(e){const t=ln(!1);return this.forwardJSONCall("discoverTypings()",(()=>{const n=JSON.parse(e);return void 0===this.safeList&&(this.safeList=EH.loadSafeList(this.host,va(n.safeListPath,n.safeListPath,t))),EH.discoverTypings(this.host,(e=>this.logger.log(e)),n.fileNames,va(n.projectRootPath,n.projectRootPath,t),this.safeList,n.packageNameToTypingLocation,n.typeAcquisition,n.unresolvedImports,n.typesRegistry,HH)}))}},G7=class{constructor(){this._shims=[]}getServicesVersion(){return n7}createLanguageServiceShim(e){try{void 0===this.documentRegistry&&(this.documentRegistry=D0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));const t=O7(new V7(e),this.documentRegistry,!1);return new q7(this,e,t)}catch(t){throw Y7(e,t),t}}createClassifierShim(e){try{return new W7(this,e)}catch(t){throw Y7(e,t),t}}createCoreServicesShim(e){try{const t=new K7(e);return new H7(this,e,t)}catch(t){throw Y7(e,t),t}}close(){U(this._shims),this.documentRegistry=void 0}registerShim(e){this._shims.push(e)}unregisterShim(e){for(let t=0;tr){const t=LX(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=rI(t)?M(t.modifiers,_D):void 0;return _c(r?Ts(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,MX(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(LX(t.pos,e))}function c(t){return l(MX(t,t.parent,e))}function l(t){if(t){const{parent:u}=t;switch(t.kind){case 243:return _(t.declarationList.declarations[0]);case 260:case 172:case 171:return _(t);case 169:return function e(t){if($u(t.name))return m(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||vb(e,12)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return Fn.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(e.body)return d(e)?i(e):l(e.body)}(t);case 241:if(jm(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();return d(e.parent)?a(e.parent,t):l(t)}(t);case 268:return f(t);case 299:return f(t.block);case 244:return i(t.expression);case 253:return i(t.getChildAt(0),t.expression);case 247:return o(t,t.expression);case 246:return l(t.statement);case 259:return i(t.getChildAt(0));case 245:return o(t,t.expression);case 256:return l(t.statement);case 252:case 251:return i(t.getChildAt(0),t.label);case 248:return(r=t).initializer?p(r):r.condition?i(r.condition):r.incrementor?i(r.incrementor):void 0;case 249:return o(t,t.expression);case 250:return p(t);case 255:return o(t,t.expression);case 296:case 297:return l(t.statements[0]);case 258:return f(t.tryBlock);case 257:case 277:return i(t,t.expression);case 271:return i(t,t.moduleReference);case 272:case 278:return i(t,t.moduleSpecifier);case 267:if(1!==mj(t))return;case 263:case 266:case 306:case 208:return i(t);case 254:return l(t.statement);case 170:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o0)return l(t.declarations[0])}}function m(e){const t=w(e.elements,(e=>232!==e.kind?e:void 0));return t?l(t):208===e.parent.kind?i(e.parent):u(e.parent)}function g(e){Fn.assert(207!==e.kind&&206!==e.kind);const t=w(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?l(t):i(226===e.parent.kind?e.parent:e)}}}var i5=S({"src/services/breakpoints.ts"(){hge()}}),o5={};k(o5,{spanInSourceFileAtLocation:()=>r5});var a5=S({"src/services/_namespaces/ts.BreakpointResolver.ts"(){i5()}});function s5(e){return(oN(e)||aN(e)||yN(e))&&GN(e.parent)&&e===e.parent.initializer&&qE(e.parent.name)&&!!(2&Tc(e.parent))}function c5(e){return UA(e)||nA(e)||YN(e)||oN(e)||QN(e)||yN(e)||gD(e)||mD(e)||pD(e)||yD(e)||vD(e)}function l5(e){return UA(e)||nA(e)&&qE(e.name)||YN(e)||QN(e)||gD(e)||mD(e)||pD(e)||yD(e)||vD(e)||function(e){return(oN(e)||yN(e))&&Jc(e)}(e)||s5(e)}function u5(e){return UA(e)?e:Jc(e)?e.name:s5(e)?e.parent.name:Fn.checkDefined(e.modifiers&&O(e.modifiers,_5))}function _5(e){return 90===e.kind}function d5(e,t){const n=u5(t);return n&&e.getSymbolAtLocation(n)}function f5(e,t){if(t.body)return t;if(hD(t))return Wv(t.parent);if(YN(t)||mD(t)){const n=d5(e,t);return n&&n.valueDeclaration&&Cu(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function p5(e,t){const n=d5(e,t);let r;if(n&&n.declarations){const e=fe(n.declarations),t=q(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>Kt(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=q(e,(e=>n.declarations[e]));let o;for(const e of i)l5(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=ke(r,e)),o=e)}return r}function m5(e,t){return gD(t)?t:Cu(t)?f5(e,t)??p5(e,t)??t:p5(e,t)??t}function g5(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(l5(t))return m5(n,t);if(c5(t)){const e=Dc(t,l5);return e&&m5(n,e)}if(oy(t)){if(l5(t.parent))return m5(n,t.parent);if(c5(t.parent)){const e=Dc(t.parent,l5);return e&&m5(n,e)}return GN(t.parent)&&t.parent.initializer&&s5(t.parent.initializer)?t.parent.initializer:void 0}if(hD(t))return l5(t.parent)?t.parent:void 0;if(126!==t.kind||!gD(t.parent)){if(GN(t)&&t.initializer&&s5(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function h5(e,t){const n=t.getSourceFile(),r=function(e,t){if(UA(t))return{text:t.fileName,pos:0,end:0};if((YN(t)||QN(t))&&!Jc(t)){const e=t.modifiers&&O(t.modifiers,_5);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(gD(t)){const n=Ts(t.getSourceFile().text,Sx(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=s5(t)?t.parent.name:Fn.checkDefined($c(t),"Expected call hierarchy item to have a name");let r=qE(n)?Ic(n):Oy(n)?n.text:cD(n)&&Oy(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=W$();r=yf((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n;if(s5(e))return rA(e.parent.parent.parent.parent)&&qE(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(t=Vc(e.parent))?void 0:t.getText():null==(n=$c(e.parent))?void 0:n.getText();case 262:case 263:case 267:if(rA(e.parent)&&qE(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=tX(t),a=eY(t),s=_c(Ts(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=_c(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function y5(e){return void 0!==e}function v5(e){if(e.kind===Yue.EntryKind.Node){const{node:t}=e;if(PG(t,!0,!0)||FG(t,!0,!0)||IG(t,!0,!0)||OG(t,!0,!0)||HG(t)||GG(t)){const e=t.getSourceFile();return{declaration:Dc(t,l5)||e,range:gY(t,e)}}}}function b5(e){return bB(e.declaration)}function x5(e,t,n){if(UA(t)||nA(t)||gD(t))return[];const r=u5(t),i=V(Yue.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:Yue.FindReferencesUse.References},v5),y5);return i?ot(i,b5,(t=>function(e,t){return{from:h5(e,t[0].declaration),fromSpans:q(t,(e=>hY(e.range)))}}(e,t))):[]}function S5(e,t){return 33554432&t.flags||pD(t)?[]:ot(function(e,t){const n=[],r=function(e,t){function n(n){const r=nN(n)?n.tag:J_(n)?n.tagName:lS(n)||gD(n)?n:n.expression,i=g5(e,r);if(i){const e=gY(r,n.getSourceFile());if(gt(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(l5(t)){if(Pu(t))for(const n of t.members)n.name&&cD(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void w(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),zI(t,e)}Tm(t)||zI(t,e)}}}(e,n);switch(t.kind){case 312:!function(e,t){w(e.statements,t)}(t,r);break;case 267:!function(e,t){!vb(e,2)&&e.body&&rA(e.body)&&w(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=f5(e,t);r&&(w(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){w(e.modifiers,t);const n=gy(e);n&&t(n.expression);for(const n of e.members)nI(n)&&w(n.modifiers,t),fD(n)?t(n.initializer):hD(n)&&n.body?(w(n.parameters,t),t(n.body)):gD(n)&&t(n)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:Fn.assertNever(t)}return n}(e,t),b5,(t=>function(e,t){return{to:h5(e,t[0].declaration),fromSpans:q(t,(e=>hY(e.range)))}}(e,t)))}var k5=S({"src/services/callHierarchy.ts"(){hge()}}),T5={};k(T5,{createCallHierarchyItem:()=>h5,getIncomingCalls:()=>x5,getOutgoingCalls:()=>S5,resolveCallHierarchyDeclaration:()=>g5});var C5=S({"src/services/_namespaces/ts.CallHierarchy.ts"(){k5()}}),w5={};k(w5,{TokenEncodingConsts:()=>q8,TokenModifier:()=>H8,TokenType:()=>W8,getEncodedSemanticClassifications:()=>Q8,getSemanticClassifications:()=>Y8});var E5=S({"src/services/_namespaces/ts.classifier.v2020.ts"(){v7()}}),D5={};k(D5,{v2020:()=>w5});var N5,A5,P5,F5=S({"src/services/_namespaces/ts.classifier.ts"(){E5()}});function I5(e,t,n){return L5(e,qZ(n),t,void 0,void 0)}function O5(e,t,n,r,i,o){return L5(e,qZ(n),t,r,qZ(i),o)}function M5(e,t,n,r,i,o){return L5(e,qZ(n),t,r,i&&qZ(i),o)}function L5(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function R5(e){for(const t of e.errorCodes)P5=void 0,N5.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)Fn.assert(!A5.has(t)),A5.set(t,e)}function j5(){return P5??(P5=Ze(N5.keys()))}function B5(e){const t=U5(e);return X(N5.get(String(e.errorCode)),(n=>q(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(B(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function J5(e){return A5.get(xt(e.fixId,yt)).getAllCodeActions(e)}function z5(e,t){return{changes:e,commands:t}}function $5(e,t){return{fileName:e,textChanges:t}}function V5(e,t,n){const r=[];return z5(upe.ChangeTracker.with(e,(i=>K5(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function K5(e,t,n){for(const r of U5(e))B(t,r.code)&&n(r)}function U5({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...S1(t,e,n)]}var q5,W5,H5=S({"src/services/codeFixProvider.ts"(){hge(),N5=_t(),A5=new Map}});function G5(e,t,n){const r=xN(n)?FC.createAsExpression(n.expression,FC.createKeywordTypeNode(159)):FC.createTypeAssertion(FC.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function X5(e,t){if(!Pg(e))return Dc(PX(e,t),(e=>xN(e)||rN(e)))}var Y5,Q5,Z5=S({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){hge(),mce(),q5="addConvertToUnknownForNonOverlappingTypes",R5({errorCodes:W5=[Ra.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],getCodeActions:function(e){const t=X5(e.sourceFile,e.span.start);if(void 0===t)return;const n=upe.ChangeTracker.with(e,(n=>G5(n,e.sourceFile,t)));return[O5(q5,n,Ra.Add_unknown_conversion_for_non_overlapping_types,q5,Ra.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[q5],getAllCodeActions:e=>V5(e,W5,((e,t)=>{const n=X5(t.file,t.start);n&&G5(e,t.file,n)}))})}}),e9=S({"src/services/codefixes/addEmptyExportDeclaration.ts"(){hge(),mce(),R5({errorCodes:[Ra.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,Ra.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,Ra.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(e){const{sourceFile:t}=e;return[I5("addEmptyExportDeclaration",upe.ChangeTracker.with(e,(e=>{const n=FC.createExportDeclaration(void 0,!1,FC.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),Ra.Add_export_to_make_this_file_into_a_module)]}})}});function t9(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(bB(n)))return;null==r||r.add(bB(n));const i=FC.updateModifiers(LQ(n,!0),FC.createNodeArray(FC.createModifiersFromModifierFlags(512|Ib(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return O5(Y5,i,Ra.Add_async_modifier_to_containing_function,Y5,Ra.Add_all_missing_async_modifiers)}function n9(e,t){if(t)return Dc(PX(e,t.start),(n=>n.getStart(e)Qs(t)?"quit":(aN(n)||mD(n)||oN(n)||YN(n))&&QY(t,pY(n,e))))}var r9,i9,o9,a9,s9=S({"src/services/codefixes/addMissingAsync.ts"(){hge(),mce(),Y5="addMissingAsync",Q5=[Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ra.Type_0_is_not_assignable_to_type_1.code,Ra.Type_0_is_not_comparable_to_type_1.code],R5({fixIds:[Y5],errorCodes:Q5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=O(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>vt(n)&&vt(r)&&QY({start:n,length:r},e)&&o===t&&!!i&&le(i,(e=>e.code===Ra.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=n9(t,a&&a.relatedInformation&&O(a.relatedInformation,(e=>e.code===Ra.Did_you_mean_to_mark_this_function_as_async.code)));if(s)return[t9(e,s,(t=>upe.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return V5(e,Q5,((r,i)=>{const o=i.relatedInformation&&O(i.relatedInformation,(e=>e.code===Ra.Did_you_mean_to_mark_this_function_as_async.code)),a=n9(t,o);if(a)return t9(e,a,(e=>(e(r),[])),n)}))}})}});function c9(e,t,n,r,i){const o=PZ(e,n);return o&&function(e,t,n,r,i){return le(i.getTypeChecker().getDiagnostics(e,r),(({start:e,length:r,relatedInformation:i,code:o})=>vt(e)&&vt(r)&&QY({start:e,length:r},n)&&o===t&&!!i&&le(i,(e=>e.code===Ra.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&d9(o)?o:void 0}function l9(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(QD(e.parent)&&qE(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(qE(e))return{identifiers:[e],isCompleteFix:!0};if(fN(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!qE(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=bt(o.valueDeclaration,GN),l=c&&bt(c.name,qE),u=xy(c,243);if(!c||!u||c.type||!c.initializer||u.getSourceFile()!==t||vb(u,1)||!l||!d9(c.initializer)){s=!1;continue}const _=r.getSemanticDiagnostics(t,n);Yue.Core.eachSymbolReferenceInFile(l,i,t,(n=>e!==n&&!_9(n,_,t,i)))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l)return I5("addMissingAwaitToInitializer",i((e=>{w(l.initializers,(({expression:t})=>f9(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&f9(e,n,a,r,t,o)})),1===l.initializers.length?[Ra.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:Ra.Add_await_to_initializers)}function u9(e,t,n,r,i,o){const a=i((i=>f9(i,n,e.sourceFile,r,t,o)));return O5(r9,a,Ra.Add_await,r9,Ra.Fix_all_expressions_possibly_missing_await)}function _9(e,t,n,r){const i=QD(e.parent)?e.parent.name:fN(e.parent)?e.parent:e,o=O(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&B(a9,o.code)||1&r.getTypeAtLocation(i).flags}function d9(e){return 65536&e.kind||!!Dc(e,(e=>e.parent&&aN(e.parent)&&e.parent.body===e||AN(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function f9(e,t,n,r,i,o){if(BN(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,FC.updateForOfStatement(t,FC.createToken(135),t.initializer,t.expression,t.statement))}}if(fN(i))for(const t of[i.left,i.right]){if(o&&qE(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(xB(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?FC.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===i9&&QD(i.parent)){if(o&&qE(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(xB(e)))return}e.replaceNode(n,i.parent.expression,FC.createParenthesizedExpression(FC.createAwaitExpression(i.parent.expression))),p9(e,i.parent.expression,n)}else if(B(o9,t)&&t_(i.parent)){if(o&&qE(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(xB(e)))return}e.replaceNode(n,i,FC.createParenthesizedExpression(FC.createAwaitExpression(i))),p9(e,i,n)}else{if(o&&GN(i.parent)&&qE(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!oe(o,xB(e)))return}e.replaceNode(n,i,FC.createAwaitExpression(i))}}function p9(e,t,n){const r=LX(t.pos,n);r&&dZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}var m9,g9,h9=S({"src/services/codefixes/addMissingAwait.ts"(){hge(),mce(),r9="addMissingAwait",i9=Ra.Property_0_does_not_exist_on_type_1.code,o9=[Ra.This_expression_is_not_callable.code,Ra.This_expression_is_not_constructable.code],a9=[Ra.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,Ra.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Ra.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Ra.Operator_0_cannot_be_applied_to_type_1.code,Ra.Operator_0_cannot_be_applied_to_types_1_and_2.code,Ra.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,Ra.This_condition_will_always_return_true_since_this_0_is_always_defined.code,Ra.Type_0_is_not_an_array_type.code,Ra.Type_0_is_not_an_array_type_or_a_string_type.code,Ra.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,Ra.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Ra.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Ra.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Ra.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,i9,...o9],R5({fixIds:[r9],errorCodes:a9,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=c9(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>upe.ChangeTracker.with(e,t);return xe([l9(e,a,n,s,c),u9(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return V5(e,a9,((a,s)=>{const c=c9(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return l9(e,c,s.code,i,l,o)||u9(e,c,s.code,i,l,o)}))}})}});function y9(e,t,n,r,i){const o=PX(t,n),a=Dc(o,(e=>h_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return v9(e,a,t,i);const s=o.parent;if(fN(s)&&64===s.operatorToken.kind&&IN(s.parent))return v9(e,o,t,i);if(XD(s)){const n=r.getTypeChecker();if(!I(s.elements,(e=>function(e,t){const n=qE(e)?e:Hb(e,!0)&&qE(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return v9(e,s,t,i)}const c=Dc(o,(e=>!!IN(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!b9(c,r.getTypeChecker()))return;return v9(e,c,t,i)}}function v9(e,t,n,r){r&&!oe(r,t)||e.insertModifierBefore(n,87,t)}function b9(e,t){return!!fN(e)&&(28===e.operatorToken.kind?I([e.left,e.right],(e=>b9(e,t))):64===e.operatorToken.kind&&qE(e.left)&&!t.getSymbolAtLocation(e.left))}var x9,S9,k9=S({"src/services/codefixes/addMissingConst.ts"(){hge(),mce(),m9="addMissingConst",R5({errorCodes:g9=[Ra.Cannot_find_name_0.code,Ra.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>y9(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[O5(m9,t,Ra.Add_const_to_unresolved_variable,m9,Ra.Add_const_to_all_unresolved_variables)]},fixIds:[m9],getAllCodeActions:e=>{const t=new Set;return V5(e,g9,((n,r)=>y9(n,r.file,r.start,e.program,t)))}})}});function T9(e,t,n,r){const i=PX(t,n);if(!qE(i))return;const o=i.parent;172!==o.kind||r&&!oe(r,o)||e.insertModifierBefore(t,138,o)}var C9,w9,E9=S({"src/services/codefixes/addMissingDeclareProperty.ts"(){hge(),mce(),x9="addMissingDeclareProperty",R5({errorCodes:S9=[Ra.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>T9(t,e.sourceFile,e.span.start)));if(t.length>0)return[O5(x9,t,Ra.Prefix_with_declare,x9,Ra.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[x9],getAllCodeActions:e=>{const t=new Set;return V5(e,S9,((e,n)=>T9(e,n.file,n.start,t)))}})}});function D9(e,t,n){const r=Dc(PX(t,n),_D);Fn.assert(!!r,"Expected position to be owned by a decorator.");const i=FC.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}var N9,A9,P9=S({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){hge(),mce(),C9="addMissingInvocationForDecorator",R5({errorCodes:w9=[Ra._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>D9(t,e.sourceFile,e.span.start)));return[O5(C9,t,Ra.Call_decorator_expression,C9,Ra.Add_to_all_uncalled_decorators)]},fixIds:[C9],getAllCodeActions:e=>V5(e,w9,((e,t)=>D9(e,t.file,t.start)))})}});function F9(e,t,n){const r=PX(t,n),i=r.parent;if(!uD(i))return Fn.fail("Tried to add a parameter name to a non-parameter: "+Fn.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);Fn.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),Fn.assert(o>-1,"Parameter not found in parent parameter list.");const a=FC.createTypeReferenceNode(i.name,void 0),s=FC.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken?FC.createArrayTypeNode(a):a,i.initializer);e.replaceNode(t,i,s)}var I9,O9=S({"src/services/codefixes/addNameToNamelessParameter.ts"(){hge(),mce(),N9="addNameToNamelessParameter",R5({errorCodes:A9=[Ra.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>F9(t,e.sourceFile,e.span.start)));return[O5(N9,t,Ra.Add_parameter_name,N9,Ra.Add_names_to_all_parameters_without_names)]},fixIds:[N9],getAllCodeActions:e=>V5(e,A9,((e,t)=>F9(e,t.file,t.start)))})}});function M9(e,t,n){var r,i;const o=L9(PZ(e,t),n);if(!o)return a;const{source:s,target:c}=o,l=function(e,t,n){return QD(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(s,c,n)?n.getTypeAtLocation(c.expression):n.getTypeAtLocation(c);return(null==(i=null==(r=l.symbol)?void 0:r.declarations)?void 0:i.some((e=>Ff(e).fileName.match(/\.d\.ts$/))))?a:n.getExactOptionalProperties(l)}function L9(e,t){var n;if(e){if(fN(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(GN(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(eN(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!Du(n.valueDeclaration.kind))return;if(!l_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(qE(i))return{source:e,target:i}}else if(JA(e.parent)&&qE(e.parent.name)||zA(e.parent)){const r=L9(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:JA(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}var R9,j9,B9=S({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){hge(),mce(),I9="addOptionalPropertyUndefined",R5({errorCodes:[Ra.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,Ra.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=M9(e.sourceFile,e.span,t);if(!n.length)return;const r=upe.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(dD(t)||fD(t))&&t.type){const n=FC.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],FC.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[I5(I9,r,Ra.Add_undefined_to_optional_property_type)]},fixIds:[I9]})}});function J9(e,t){const n=PX(e,t);return bt(uD(n.parent)?n.parent.parent:n.parent,z9)}function z9(e){return function(e){return Cu(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&$9(e)}function $9(e){return Cu(e)?e.parameters.some($9)||!e.type&&!!bl(e):!e.type&&!!vl(e)}function V9(e,t,n){if(Cu(n)&&(bl(n)||n.parameters.some((e=>!!vl(e))))){if(!n.typeParameters){const r=ab(n);r.length&&e.insertTypeParameters(t,n,r)}const r=aN(n)&&!yX(n,21,t);r&&e.insertNodeBefore(t,Le(n.parameters),FC.createToken(21));for(const r of n.parameters)if(!r.type){const n=vl(r);n&&e.tryInsertTypeAnnotation(t,r,FB(n,K9,Ju))}if(r&&e.insertNodeAfter(t,Be(n.parameters),FC.createToken(22)),!n.type){const r=bl(n);r&&e.tryInsertTypeAnnotation(t,n,FB(r,K9,Ju))}}else{const r=Fn.checkDefined(vl(n),"A JSDocType for this declaration should exist");Fn.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,FB(r,K9,Ju))}}function K9(e){switch(e.kind){case 319:case 320:return FC.createTypeReferenceNode("any",a);case 323:return function(e){return FC.createUnionTypeNode([FB(e.type,K9,Ju),FC.createTypeReferenceNode("undefined",a)])}(e);case 322:return K9(e.type);case 321:return function(e){return FC.createUnionTypeNode([FB(e.type,K9,Ju),FC.createTypeReferenceNode("null",a)])}(e);case 325:return function(e){return FC.createArrayTypeNode(FB(e.type,K9,Ju))}(e);case 324:return function(e){return FC.createFunctionTypeNode(a,e.parameters.map(U9),e.type??FC.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(qE(e.typeName)){if(Mg(e))return function(e){const t=FC.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,FC.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=FC.createTypeLiteralNode([FC.createIndexSignature(void 0,[t],e.typeArguments[1])]);return rw(n,1),n}(e);let r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}t=FC.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?IB(e.typeArguments,K9,Ju):FC.createNodeArray([FC.createTypeReferenceNode("any",a)])}return FC.createTypeReferenceNode(t,n)}(e);case 329:return function(e){const t=FC.createTypeLiteralNode(q(e.jsDocPropertyTags,(e=>FC.createPropertySignature(void 0,qE(e.name)?e.name:e.name.right,tC(e)?FC.createToken(58):void 0,e.typeExpression&&FB(e.typeExpression.type,K9,Ju)||FC.createKeywordTypeNode(133)))));return rw(t,1),t}(e);default:const t=$B(e,K9,P$);return rw(t,1),t}}function U9(e){const t=e.parent.parameters.indexOf(e),n=325===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?FC.createToken(26):e.dotDotDotToken;return FC.createParameterDeclaration(e.modifiers,i,r,e.questionToken,FB(e.type,K9,Ju),e.initializer)}var q9,W9,H9=S({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){hge(),mce(),R9="annotateWithTypeFromJSDoc",R5({errorCodes:j9=[Ra.JSDoc_types_may_be_moved_to_TypeScript_types.code],getCodeActions(e){const t=J9(e.sourceFile,e.span.start);if(!t)return;const n=upe.ChangeTracker.with(e,(n=>V9(n,e.sourceFile,t)));return[O5(R9,n,Ra.Annotate_with_type_from_JSDoc,R9,Ra.Annotate_everything_with_types_from_JSDoc)]},fixIds:[R9],getAllCodeActions:e=>V5(e,j9,((e,t)=>{const n=J9(t.file,t.start);n&&V9(e,t.file,n)}))})}});function G9(e,t,n,r,i,o){const a=r.getSymbolAtLocation(PX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(YN(s)||oN(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(FC.createConstructorDeclaration(void 0,e.parameters,e.body));const n=X9(e,95);return FC.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(GN(s)){const n=function(e){const t=e.initializer;if(!t||!oN(t)||!qE(e.name))return;const n=c(e.symbol);t.body&&n.unshift(FC.createConstructorDeclaration(void 0,t.parameters,t.body));const r=X9(e.parent.parent,95);return FC.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;XN(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];1===e.declarations.length&&QD(t)&&fN(t.parent)&&64===t.parent.operatorToken.kind&&YD(t.parent.right)&&a(t.parent.right.symbol,void 0,r)}else a(e,[FC.createToken(126)],r)})),n.members&&n.members.forEach(((i,o)=>{var s,c,l,u;if("constructor"===o&&i.valueDeclaration){const r=null==(u=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:u.parent;r&&fN(r)&&YD(r.right)&&le(r.right.properties,Y9)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(_=l,!(lS(u=s)?QD(u)&&Y9(u)||ku(_):I(u.properties,(e=>!!(mD(e)||Pl(e)||JA(e)&&oN(e.initializer)&&e.name||Y9(e))))))return;var u,_;if(le(a,(e=>{const t=$c(e);return!(!t||!qE(t)||Ic(t)!==Mc(n))})))return;const d=c.parent&&244===c.parent.kind?c.parent:c;if(e.delete(t,d),l)if(lS(s)&&(oN(l)||aN(l))){const e=JY(t,i),n=function(e,t,n){if(QD(e))return e.name;const r=e.argumentExpression;return EE(r)?r:ed(r)?Js(r.text,HS(t))?FC.createIdentifier(r.text):FE(r)?FC.createStringLiteral(r.text,0===n):r:void 0}(s,o,e);n&&f(a,l,n)}else{if(!YD(l)){if(Ng(t))return;if(!QD(s))return;const e=FC.createPropertyDeclaration(r,s.name,void 0,void 0,l);return GQ(c.parent,e,t),void a.push(e)}w(l.properties,(e=>{(mD(e)||Pl(e))&&a.push(e),JA(e)&&oN(e.initializer)&&f(a,e.initializer,e.name),Y9(e)}))}else a.push(FC.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return oN(n)?function(e,n,i){const o=_e(r,X9(n,134)),a=FC.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return GQ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=241===o.kind?o:FC.createBlock([FC.createReturnStatement(o)]);const s=_e(r,X9(n,134)),l=FC.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);GQ(c,l,t),e.push(l)}(e,n,i)}}}}function X9(e,t){return nI(e)?V(e.modifiers,(e=>e.kind===t)):void 0}function Y9(e){return!!e.name&&!(!qE(e.name)||"constructor"!==e.name.text)}var Q9,Z9,eee,tee=S({"src/services/codefixes/convertFunctionToEs6Class.ts"(){hge(),mce(),q9="convertFunctionToEs6Class",R5({errorCodes:W9=[Ra.This_constructor_function_may_be_converted_to_a_class_declaration.code],getCodeActions(e){const t=upe.ChangeTracker.with(e,(t=>G9(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[O5(q9,t,Ra.Convert_function_to_an_ES2015_class,q9,Ra.Convert_all_constructor_functions_to_classes)]},fixIds:[q9],getAllCodeActions:e=>V5(e,W9,((t,n)=>G9(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})}});function nee(e,t,n,r){const i=PX(t,n);let o;if(o=qE(i)&&GN(i.parent)&&i.parent.initializer&&Cu(i.parent.initializer)?i.parent.initializer:bt(Hm(PX(t,n)),F1),!o)return;const s=new Map,c=Pg(o),l=function(e,t){if(!e.body)return new Set;const n=new Set;return zI(e.body,(function e(r){ree(r,t,"then")?(n.add(bB(r)),w(r.arguments,e)):ree(r,t,"catch")||ree(r,t,"finally")?(n.add(bB(r)),zI(r,e)):aee(r,t)?n.add(bB(r)):zI(r,e)})),n}(o,r),u=function(e,t,n){const r=new Map,i=_t();return zI(e,(function e(o){if(!qE(o))return void zI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=vee(t.getTypeAtLocation(o),t),s=xB(a).toString();if(!e||uD(o.parent)||Cu(o.parent)||n.has(s)){if(o.parent&&(uD(o.parent)||GN(o.parent)||GD(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=see(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=LQ(o);n.set(s,kee(t)),i.add(e,a)}}}else{const t=Oe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&uD(t.valueDeclaration)&&bt(t.valueDeclaration.name,qE)||FC.createUniqueName("result",16),o=see(r,i);n.set(s,o),i.add(r.text,a)}}})),RQ(e,!0,(e=>{if(GD(e)&&qE(e.name)&&WD(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(xB(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return FC.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(qE(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(xB(n)));if(i)return FC.createIdentifier(i.text)}}))}(o,r,s);if(!C1(u,r))return;const _=u.body&&AN(u.body)?function(e,t){const n=[];return wm(e,(e=>{w1(e,t)&&n.push(e)})),n}(u.body,r):a,d={checker:r,synthNamesMap:s,setOfExpressionsToReturn:l,isInJSFile:c};if(!_.length)return;const f=Ts(t.text,Sx(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const n of _)if(zI(n,(function r(i){if(eN(i)){const r=uee(i,i,d,!1);if(cee())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!ku(i)&&(zI(i,r),cee()))return!0})),cee())return}function ree(e,t,n){if(!eN(e))return!1;const r=$G(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function iee(e,t){return 0!=(4&tS(e))&&e.target===t}function oee(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(iee(r,n.getPromiseType())||iee(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return u(e.typeArguments,0);if(t===u(e.arguments,0))return u(e.typeArguments,0);if(t===u(e.arguments,1))return u(e.typeArguments,1)}}function aee(e,t){return!!l_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function see(e,t){const n=(t.get(e.text)||a).length;return kee(0===n?e:FC.createIdentifier(e.text+"_"+n))}function cee(){return!eee}function lee(){return eee=!1,a}function uee(e,t,n,r,i){if(ree(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||_ee(r,t))return pee(e,n,r,i,o);if(n&&!_ee(r,n))return lee();const a=xee(t,r),s=uee(e.expression.expression,e.expression.expression,r,!0,a);if(cee())return lee();const c=hee(t,i,o,a,e,r);return cee()?lee():_e(s,c)}(t,u(t.arguments,0),u(t.arguments,1),n,r,i);if(ree(t,n.checker,"catch"))return pee(t,u(t.arguments,0),n,r,i);if(ree(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||_ee(n,t))return uee(e,e.expression.expression,n,r,i);const o=dee(e,n,i),a=uee(e,e.expression.expression,n,!0,o);if(cee())return lee();const s=hee(t,r,void 0,void 0,e,n);if(cee())return lee();const c=FC.createBlock(a),l=FC.createBlock(s);return fee(e,n,FC.createTryStatement(c,void 0,l),o,i)}(t,u(t.arguments,0),n,r,i);if(QD(t))return uee(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(Fn.assertNode(Ec(t).parent,QD),function(e,t,n,r,i){if(Nee(e,n)){let e=LQ(t);return r&&(e=FC.createAwaitExpression(e)),[FC.createReturnStatement(e)]}return mee(i,FC.createAwaitExpression(t),void 0)}(e,t,n,r,i)):lee()}function _ee({checker:e},t){if(106===t.kind)return!0;if(qE(t)&&!_u(t)&&"undefined"===Ic(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function dee(e,t,n){let r;return n&&!Nee(e,t)&&(Dee(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,kee(FC.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=kee(FC.createUniqueName("result",16),n.types),Eee(r)),r}function fee(e,t,n,r,i){const o=[];let a;if(r&&!Nee(e,t)){a=LQ(Eee(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[FC.createVariableDeclaration(a,void 0,i)],c=FC.createVariableStatement(void 0,FC.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(LQ(wee(i)),void 0,void 0,a)],2))),o}function pee(e,t,n,r,i){if(!t||_ee(n,t))return uee(e,e.expression.expression,n,r,i);const o=xee(t,n),a=dee(e,n,i),s=uee(e,e.expression.expression,n,!0,a);if(cee())return lee();const c=hee(t,r,a,o,e,n);if(cee())return lee();const l=FC.createBlock(s),u=FC.createCatchClause(o&&LQ(Cee(o)),FC.createBlock(c));return fee(e,n,FC.createTryStatement(l,u,void 0),a,i)}function mee(e,t,n){return!e||See(e)?[FC.createExpressionStatement(t)]:Dee(e)&&e.hasBeenDeclared?[FC.createExpressionStatement(FC.createAssignment(LQ(Tee(e)),t))]:[FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(LQ(Cee(e)),void 0,n,t)],2))]}function gee(e,t){if(t&&e){const n=FC.createUniqueName("result",16);return[...mee(kee(n),e,t),FC.createReturnStatement(n)]}return[FC.createReturnStatement(e)]}function hee(e,t,n,r,i,o){var s;switch(e.kind){case 106:break;case 211:case 80:if(!r)break;const c=FC.createCallExpression(LQ(e),void 0,Dee(r)?[Tee(r)]:[]);if(Nee(i,o))return gee(c,oee(i,e,o.checker));const l=o.checker.getTypeAtLocation(e),u=o.checker.getSignaturesOfType(l,0);if(!u.length)return lee();const _=u[0].getReturnType(),d=mee(n,FC.createAwaitExpression(c),oee(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(_)||_),d;case 218:case 219:{const r=e.body,c=null==(s=vee(o.checker.getTypeAtLocation(e),o.checker))?void 0:s.getReturnType();if(AN(r)){let a=[],s=!1;for(const l of r.statements)if($N(l))if(s=!0,w1(l,o.checker))a=a.concat(bee(o,l,t,n));else{const t=c&&l.expression?yee(o.checker,c,l.expression):l.expression;a.push(...gee(t,oee(i,e,o.checker)))}else{if(t&&wm(l,Tt))return lee();a.push(l)}return Nee(i,o)?a.map((e=>LQ(e))):function(e,t,n,r){const i=[];for(const r of e)if($N(r)){if(r.expression){const e=aee(r.expression,n.checker)?FC.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(FC.createExpressionStatement(e)):Dee(t)&&t.hasBeenDeclared?i.push(FC.createExpressionStatement(FC.createAssignment(Tee(t),e))):i.push(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(Cee(t),void 0,void 0,e)],2)))}}else i.push(LQ(r));return r||void 0===t||i.push(FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration(Cee(t),void 0,void 0,FC.createIdentifier("undefined"))],2))),i}(a,n,o,s)}{const s=E1(r,o.checker)?bee(o,FC.createReturnStatement(r),t,n):a;if(s.length>0)return s;if(c){const t=yee(o.checker,c,r);if(Nee(i,o))return gee(t,oee(i,e,o.checker));{const e=mee(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(c)||c),e}}return lee()}}default:return lee()}return a}function yee(e,t,n){const r=LQ(n);return e.getPromisedTypeOfPromise(t)?FC.createAwaitExpression(r):r}function vee(e,t){return je(t.getSignaturesOfType(e,0))}function bee(e,t,n,r){let i=[];return zI(t,(function t(o){if(eN(o)){const t=uee(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else ku(o)||zI(o,t)})),i}function xee(e,t){const n=[];let r;if(Cu(e)?e.parameters.length>0&&(r=function e(t){if(qE(t))return i(t);return function(e,t=a,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,X(t.elements,(t=>vN(t)?[]:[e(t.name)])))}(e.parameters[0].name)):qE(e)?r=i(e):QD(e)&&qE(e.name)&&(r=i(e.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(e){var r;const i=function(e){var n;return(null==(n=bt(e,w_))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);return i&&t.synthNamesMap.get(xB(i).toString())||kee(e,n)}}function See(e){return!e||(Dee(e)?!e.identifier.text:I(e.elements,See))}function kee(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function Tee(e){return e.hasBeenReferenced=!0,e.identifier}function Cee(e){return Dee(e)?Eee(e):wee(e)}function wee(e){for(const t of e.elements)Cee(t);return e.bindingPattern}function Eee(e){return e.hasBeenDeclared=!0,e.identifier}function Dee(e){return 0===e.kind}function Nee(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(bB(e.original))}var Aee=S({"src/services/codefixes/convertToAsyncFunction.ts"(){hge(),mce(),Q9="convertToAsyncFunction",Z9=[Ra.This_may_be_converted_to_an_async_function.code],eee=!0,R5({errorCodes:Z9,getCodeActions(e){eee=!0;const t=upe.ChangeTracker.with(e,(t=>nee(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return eee?[O5(Q9,t,Ra.Convert_to_async_function,Q9,Ra.Convert_all_to_async_functions)]:[]},fixIds:[Q9],getAllCodeActions:e=>V5(e,Z9,((t,n)=>nee(t,n.file,n.start,e.program.getTypeChecker())))})}});function Pee(e,t,n,r){for(const i of e.imports){const o=bf(e,i.text,hK(e,i));if(!o||o.resolvedFileName!==t.fileName)continue;const a=vh(i);switch(a.kind){case 271:n.replaceNode(e,a,RY(a.name,void 0,i,r));break;case 213:Lg(a,!1)&&n.replaceNode(e,a,FC.createPropertyAccessExpression(LQ(a),"default"))}}}function Fee(e,t){e.forEachChild((function n(r){if(QD(r)&&Sj(e,r.expression)&&qE(r.name)){const{parent:e}=r;t(r,fN(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function Iee(e,t,n,r,i,o,a,c,l){switch(t.kind){case 243:return Oee(e,t,r,n,i,o,l),!1;case 244:{const{expression:i}=t;switch(i.kind){case 213:return Lg(i,!0)&&r.replaceNode(e,t,RY(void 0,void 0,i.arguments[0],l)),!1;case 226:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:c}=n;if(!QD(a))return!1;if(Sj(e,a)){if(!Sj(e,c)){const i=YD(c)?function(e,t){const n=ee(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return qE(e.name)?function(e,t,n){const r=[FC.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return i()}case 219:return zee(e,r,t,n);case 231:return function(e,t,n,r){return FC.createClassDeclaration(_e(t,BQ(n.modifiers)),e,BQ(n.typeParameters),BQ(n.heritageClauses),Ree(n.members,r))}(e,r,t,n);default:return i()}function i(){return Kee(r,FC.createIdentifier(e),Ree(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return qE(e.name)?zee(e.name.text,[FC.createToken(95)],e,t):void 0;default:Fn.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(c,o):Lg(c,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:s;return i.has("export=")?[[Lee(n)],!0]:i.has("default")?i.size>1?[[Mee(n),Lee(n)],!0]:[[Lee(n)],!0]:[[Mee(n)],!1]}(c.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,yx(a.getStart(e),c.pos),"export default"),!0)}r.delete(e,n.parent)}else Sj(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[Kee(void 0,o,t.right),Uee([FC.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(oN(t)||aN(t)||yN(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,yX(e,25,r),[FC.createToken(95),FC.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},FC.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=yX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,i);return!1}(e,n,i,r,a,c)}}}default:return!1}}function Oee(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=q(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(Sj(e,l))return c=!0,qee([]);if(Lg(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 206:{const n=ee(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!qE(e.propertyName)||!qE(e.name)?void 0:Vee(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return qee([RY(void 0,n,t,o)])}case 207:{const n=jee(une(t.text,i),r);return qee([RY(FC.createIdentifier(n),void 0,t,o),Kee(void 0,LQ(e),FC.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(QD(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,FC.createIdentifier(e))}else{Fn.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=jee(e,r),a.set(e,n)),(s??(s=new Map)).set(i,FC.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Ze(W(a.entries(),(([e,t])=>FC.createImportSpecifier(!1,e===t?void 0:FC.createIdentifier(e),FC.createIdentifier(t)))));return l||(c=!0),qee([RY(c?LQ(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return Fn.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(QD(l)&&Lg(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 206:case 207:{const o=jee(t,r);return qee([$ee(o,t,n,i),Kee(void 0,e,FC.createIdentifier(o))])}case 80:return qee([$ee(e.text,t,n,i)]);default:return Fn.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return qee([FC.createVariableStatement(void 0,FC.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,X(l,(e=>e.newImports))),w(l,(e=>{e.useSitesToUnqualify&&hf(e.useSitesToUnqualify,r??(r=new Map))})),r}}function Mee(e){return Uee(void 0,e)}function Lee(e){return Uee([FC.createExportSpecifier(!1,void 0,"default")],e)}function Ree(e,t){return t&&le(Ze(t.keys()),(t=>iX(e,t)))?gt(e)?JQ(e,!0,n):RQ(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function jee(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function Bee(e){const t=_t();return Jee(e,(e=>t.add(e.text,e))),t}function Jee(e,t){qE(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>Jee(e,t)))}function zee(e,t,n,r){return FC.createFunctionDeclaration(_e(t,BQ(n.modifiers)),LQ(n.asteriskToken),e,BQ(n.typeParameters),BQ(n.parameters),LQ(n.type),FC.converters.convertToFunctionBlock(Ree(n.body,r)))}function $ee(e,t,n,r){return"default"===t?RY(FC.createIdentifier(e),void 0,n,r):RY(void 0,[Vee(t,e)],n,r)}function Vee(e,t){return FC.createImportSpecifier(!1,void 0!==e&&e!==t?FC.createIdentifier(e):void 0,FC.createIdentifier(t))}function Kee(e,t,n){return FC.createVariableStatement(e,FC.createVariableDeclarationList([FC.createVariableDeclaration(t,void 0,void 0,n)],2))}function Uee(e,t){return FC.createExportDeclaration(void 0,!1,e&&FC.createNamedExports(e),void 0===t?void 0:FC.createStringLiteral(t))}function qee(e,t){return{newImports:e,useSitesToUnqualify:t}}var Wee,Hee,Gee=S({"src/services/codefixes/convertToEsModule.ts"(){hge(),mce(),R5({errorCodes:[Ra.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[I5("convertToEsModule",upe.ChangeTracker.with(e,(e=>{if(function(e,t,n,r,i){const o={original:Bee(e),additional:new Set},a=function(e,t,n){const r=new Map;return Fee(e,(e=>{const{text:i}=e.name;r.has(i)||!Ay(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,jee(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){Fee(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,FC.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of V(e.statements,PN)){const c=Oee(e,a,n,t,o,r,i);c&&hf(c,s??(s=new Map))}for(const l of V(e.statements,(e=>!PN(e)))){const u=Iee(e,l,t,n,o,r,a,s,i);c=c||u}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}(t,n.getTypeChecker(),e,HS(n.getCompilerOptions()),JY(t,r)))for(const i of n.getSourceFiles())Pee(i,t,e,JY(i,r))})),Ra.Convert_to_ES_module)]}})}});function Xee(e,t){const n=Dc(PX(e,t),sD);return Fn.assert(!!n,"Expected position to be owned by a qualified name."),qE(n.left)?n:void 0}function Yee(e,t,n){const r=n.right.text,i=FC.createIndexedAccessTypeNode(FC.createTypeReferenceNode(n.left,void 0),FC.createLiteralTypeNode(FC.createStringLiteral(r)));e.replaceNode(t,n,i)}var Qee,Zee,ete=S({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){hge(),mce(),Wee="correctQualifiedNameToIndexedAccessType",R5({errorCodes:Hee=[Ra.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],getCodeActions(e){const t=Xee(e.sourceFile,e.span.start);if(!t)return;const n=upe.ChangeTracker.with(e,(n=>Yee(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[O5(Wee,n,[Ra.Rewrite_as_the_indexed_access_type_0,r],Wee,Ra.Rewrite_all_as_indexed_access_types)]},fixIds:[Wee],getAllCodeActions:e=>V5(e,Hee,((e,t)=>{const n=Xee(t.file,t.start);n&&Yee(e,t.file,n)}))})}});function tte(e,t){return bt(PX(t,e.start).parent,vA)}function nte(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=NZ(pY(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return V(n.elements,(t=>{var n;return t===e||(null==(n=DZ(t,r))?void 0:n.code)===Qee[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=FC.updateExportDeclaration(i,i.modifiers,!1,FC.updateNamedExports(r,V(r.elements,(e=>!B(o,e)))),i.moduleSpecifier,void 0),a=FC.createExportDeclaration(void 0,!0,FC.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:upe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:upe.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}var rte,ite,ote=S({"src/services/codefixes/convertToTypeOnlyExport.ts"(){hge(),mce(),R5({errorCodes:Qee=[Ra.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>nte(t,tte(e.span,e.sourceFile),e)));if(t.length)return[O5(Zee,t,Ra.Convert_to_type_only_export,Zee,Ra.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[Zee="convertToTypeOnlyExport"],getAllCodeActions:function(e){const t=new Map;return V5(e,Qee,((n,r)=>{const i=tte(r,e.sourceFile);i&&aS(t,bB(i.parent.parent))&&nte(n,i,e)}))}})}});function ate(e,t){const{parent:n}=PX(e,t);return mA(n)||sA(n)&&n.importClause?n:void 0}function ste(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r)if(Yue.Core.eachSymbolReferenceInFile(e.name,i,t,(e=>!wT(e))))return!1;return!0}function cte(e,t,n){var r;if(mA(n))e.replaceNode(t,n,FC.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[FC.createImportDeclaration(BQ(n.modifiers,!0),FC.createImportClause(!0,LQ(i.name,!0),void 0),LQ(n.moduleSpecifier,!0),LQ(n.assertClause,!0)),FC.createImportDeclaration(BQ(n.modifiers,!0),FC.createImportClause(!0,void 0,LQ(i.namedBindings,!0)),LQ(n.moduleSpecifier,!0),LQ(n.assertClause,!0))]);else{const o=275===(null==(r=i.namedBindings)?void 0:r.kind)?FC.updateNamedImports(i.namedBindings,H(i.namedBindings.elements,(e=>FC.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=FC.updateImportDeclaration(n,n.modifiers,FC.updateImportClause(i,!0,i.name,o),n.moduleSpecifier,n.assertClause);e.replaceNode(t,n,a)}}}var lte,ute,_te=S({"src/services/codefixes/convertToTypeOnlyImport.ts"(){hge(),mce(),R5({errorCodes:rte=[Ra.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,Ra._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],getCodeActions:function(e){var t;const n=ate(e.sourceFile,e.span.start);if(n){const r=upe.ChangeTracker.with(e,(t=>cte(t,e.sourceFile,n))),i=276===n.kind&&ste(n,e.sourceFile,e.program)?upe.ChangeTracker.with(e,(t=>cte(t,e.sourceFile,n.parent.parent.parent))):void 0,o=O5(ite,r,276===n.kind?[Ra.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:Ra.Use_import_type,ite,Ra.Fix_all_with_type_only_imports);return le(i)?[I5(ite,i,Ra.Use_import_type),o]:[o]}},fixIds:[ite="convertToTypeOnlyImport"],getAllCodeActions:function(e){const t=new Set;return V5(e,rte,((n,r)=>{const i=ate(r.file,r.start);272!==(null==i?void 0:i.kind)||t.has(i)?276===(null==i?void 0:i.kind)&&!t.has(i.parent.parent.parent)&&ste(i,r.file,e.program)?(cte(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):276===(null==i?void 0:i.kind)&&cte(n,r.file,i):(cte(n,r.file,i),t.add(i))}))}})}});function dte(e,t,n,r,i=!1){if(!NP(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();return r?329===n.kind?function(e,t){const n=pte(t);if(le(n))return FC.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n):316===n.kind?function(e,t){const n=LQ(t.type);if(n)return FC.createTypeAliasDeclaration(void 0,FC.createIdentifier(e),void 0,n)}(r,n):void 0:void 0}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd()));return{leftSibling:r>0?t.getChildAt(r-1):void 0,rightSibling:r0;e--)if(!/[*/\s]/g.test(r.substring(e-1,e)))return t+e;return n}function pte(e){const t=e.jsDocPropertyTags;if(le(t))return te(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&lP(r)){const e=pte(r);o=FC.createTypeLiteralNode(e)}else r&&(o=LQ(r));if(o&&n){const e=i?FC.createToken(58):void 0;return FC.createPropertySignature(void 0,n,e,o)}}))}function mte(e){return W_(e)?X(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>NP(e)))})):[]}var gte,hte,yte=S({"src/services/codefixes/convertTypedefToType.ts"(){hge(),mce(),lte="convertTypedefToType",ute=[Ra.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],R5({fixIds:[lte],errorCodes:ute,getCodeActions(e){const t=SQ(e.host,e.formatContext.options),n=PX(e.sourceFile,e.span.start);if(!n)return;const r=upe.ChangeTracker.with(e,(r=>dte(r,n,e.sourceFile,t)));return r.length>0?[O5(lte,r,Ra.Convert_typedef_to_TypeScript_type,lte,Ra.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>V5(e,ute,((t,n)=>{const r=SQ(e.host,e.formatContext.options),i=PX(n.file,n.start);i&&dte(t,i,n.file,r,!0)}))})}});function vte(e,t){const n=PX(e,t);if(qE(n)){const t=xt(n.parent.parent,dD),r=n.getText(e);return{container:xt(t.parent,DD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function bte(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,FC.createMappedTypeNode(void 0,FC.createTypeParameterDeclaration(void 0,o,FC.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}var xte,Ste,kte=S({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){hge(),mce(),gte="convertLiteralTypeToMappedType",R5({errorCodes:hte=[Ra._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=vte(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=upe.ChangeTracker.with(e,(e=>bte(e,t,r)));return[O5(gte,a,[Ra.Convert_0_to_1_in_0,o,i],gte,Ra.Convert_all_type_literals_to_mapped_type)]},fixIds:[gte],getAllCodeActions:e=>V5(e,hte,((e,t)=>{const n=vte(t.file,t.start);n&&bte(e,t.file,n)}))})}});function Tte(e,t){return Fn.checkDefined(Xm(PX(e,t)),"There should be a containing class")}function Cte(e){return!(e.valueDeclaration&&8&Pb(e.valueDeclaration))}function wte(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=my(e);if(!n)return cf();const r=t.getTypeAtLocation(n);return cf(t.getPropertiesOfType(r).filter(Cte))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(hn(Cte,(e=>!s.has(e.escapedName)))),u=a.getTypeAtLocation(r),_=O(r.members,(e=>hD(e)));u.getNumberIndexType()||f(c,1),u.getStringIndexType()||f(c,0);const d=Pte(n,e.program,o,e.host);function f(t,i){const o=a.getIndexInfoOfType(t,i);o&&p(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,_ae(e)))}function p(e,t,n){_?i.insertNodeAfter(e,_,n):i.insertMemberAtStart(e,t,n)}uae(r,l,n,e,o,d,(e=>p(n,r,e))),d.writeFixes(i)}var Ete,Dte,Nte,Ate=S({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){hge(),mce(),R5({errorCodes:xte=[Ra.Class_0_incorrectly_implements_interface_1.code,Ra.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Tte(t,n.start);return te(hy(r),(n=>{const i=upe.ChangeTracker.with(e,(i=>wte(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:O5(Ste,i,[Ra.Implement_interface_0,n.getText(t)],Ste,Ra.Implement_all_unimplemented_interfaces)}))},fixIds:[Ste="fixClassIncorrectlyImplementsInterface"],getAllCodeActions(e){const t=new Map;return V5(e,xte,((n,r)=>{const i=Tte(r.file,r.start);if(aS(t,bB(i)))for(const t of hy(i))wte(e,t,r.file,i,n,e.preferences)}))}})}});function Pte(e,t,n,r,i){return Fte(e,t,!1,n,r,i)}function Fte(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,u=new Map;return{addImportFromDiagnostic:function(e,t){const r=Ute(t,e.code,e.start,n);r&&r.length&&_(Le(r))},addImportFromExportedSymbol:function(n,s){const c=Fn.checkDefined(n.parent),l=MZ(n,HS(a)),u=t.getTypeChecker(),d=u.getMergedSymbol(Kx(n,u)),f=jte(e,d,l,c,!1,t,i,r,o),p=Vte(e,t),m=Lte(e,Fn.checkDefined(f),t,void 0,!!s,p,i,r);m&&_({fix:m,symbolName:l,errorIdentifierText:void 0})},writeFixes:function(t,n){let i,o;i=0===e.imports.length&&void 0!==n?n:JY(e,r);for(const n of s)tne(t,e,n);for(const n of c)nne(t,e,n,i);l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{ene(t,e,n,i,Ze(o.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),r)})),u.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:r},s)=>{const c=(e?ane:one)(s.slice(2),i,t,n&&Ze(n.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),r,a);o=Te(o,c)})),o&&XY(t,e,o,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||u.size>0}};function _(e){var t,n;const{fix:r,symbolName:i}=e;switch(r.kind){case 0:s.push(r);break;case 1:c.push(r);break;case 2:{const{importClauseOrBindingPattern:e,importKind:n,addAsTypeOnly:a}=r,s=String(bB(e));let c=l.get(s);if(c||l.set(s,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===n){const e=null==c?void 0:c.namedImports.get(i);c.namedImports.set(i,o(e,a))}else Fn.assert(void 0===c.defaultImport||c.defaultImport.name===i,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:i,addAsTypeOnly:o(null==(t=c.defaultImport)?void 0:t.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:s,addAsTypeOnly:c}=r,l=function(e,t,n,r){const i=a(e,!0),o=a(e,!1),s=u.get(i),c=u.get(o),l={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?s||(u.set(i,l),l):1===r&&(s||c)?s||c:c||(u.set(o,l),l)}(e,t,s,c);switch(Fn.assert(l.useRequire===s,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:Fn.assert(void 0===l.defaultImport||l.defaultImport.name===i,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:i,addAsTypeOnly:o(null==(n=l.defaultImport)?void 0:n.addAsTypeOnly,c)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(i);l.namedImports.set(i,o(e,c));break;case 3:case 2:Fn.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:i,addAsTypeOnly:c}}break}case 4:break;default:Fn.assertNever(r,`fix wasn't never - got kind ${r.kind}`)}function o(e,t){return Math.max(e??0,t)}function a(e,t){return`${t?1:0}|${e}`}}}function Ite(e,t,n,r){const i=TZ(e,r,n),o=$te(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:u,computedWithoutCacheCount:_}=Jte(a,s,c,!1,t,e,n,r,o,l),d=qte(u,e,t,i,n);return d&&{...d,computedWithoutCacheCount:_}}}}function Ote(e,t,n,r,i,o,a,s,c,l,u,_){const d=s.getCompilerOptions();let f;n?(f=o0(r,a,s,u,_).get(r.path,n),Fn.assertIsDefined(f,"Some exportInfo should match the specified exportMapKey")):(f=Yo(yv(t.name))?[Bte(e,i,t,s,a)]:jte(r,e,i,t,o,s,a,u,_),Fn.assertIsDefined(f,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=Vte(r,s),m=wT(PX(r,l)),g=Fn.checkDefined(Lte(r,f,s,l,m,p,a,u));return{moduleSpecifier:g.moduleSpecifier,codeAction:Rte(Qte({host:a,formatContext:c,preferences:u},r,i,g,!1,d,u))}}function Mte(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=ze(Yte(e,n.getTypeChecker(),t,a)),c=Xte(e,t,s,n),l=s!==t.text;return c&&Rte(Qte({host:r,formatContext:i,preferences:o},e,s,c,l,a,o))}function Lte(e,t,n,r,i,o,a,s){const c=TZ(e,s,a);return qte(Jte(t,r,i,o,n,e,a,s).fixes,e,n,c,a)}function Rte({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function jte(e,t,n,r,i,o,a,s,c){const l=Kte(o,a);return o0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{if(Kx(e[0].symbol,l(e[0].isFromPackageJson))===t&&e.some((e=>e.moduleSymbol===r||e.symbol.parent===r)))return e}))}function Bte(e,t,n,r,i){var o,a;const s=r.getCompilerOptions(),c=u(r.getTypeChecker(),!1);if(c)return c;const l=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return Fn.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(r,i){const o=a0(n,r,s);if(o&&Kx(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:Kx(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&Kx(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Kx(e,r).flags,isFromPackageJson:i}:void 0}}function Jte(e,t,n,r,i,o,s,c,l=$te(i.getTypeChecker(),o,i.getCompilerOptions()),u){const _=i.getTypeChecker(),d=X(e,l.getImportsForExportInfo),f=void 0!==t&&function(e,t){return D(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 260:return null==(t=bt(e.name,qE))?void 0:t.text;case 271:return e.name.text;case 272:return null==(r=bt(null==(n=e.importClause)?void 0:n.namedBindings,dA))?void 0:r.name.text;default:return Fn.assertNever(e)}}(e),o=i&&(null==(r=yh(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifier:o}:void 0}))}(d,t),p=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=au(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||271===e.kind)return;if(260===e.kind)return 0!==i&&1!==i||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!ed(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const u=zte(t,!1,o,a,n,r);return 1===i&&(c||2===u&&l)||0===i&&274===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:u}}}(d,n,_,i.getCompilerOptions());if(p)return{computedWithoutCacheCount:0,fixes:[...f?[f]:a,p]};const{fixes:m,computedWithoutCacheCount:g=0}=function(e,t,n,r,i,o,a,s,c,l){const u=D(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=yh(e))?void 0:c.text;if(l)return{kind:3,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:zte(i,!0,n,r,a,s),useRequire:o}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return u?{fixes:[u]}:function(e,t,n,r,i,o,a,s,c){const l=Ng(t),u=e.getCompilerOptions(),_=IY(e,a),d=Kte(e,a),f=MY(YS(u)),p=c?e=>({moduleSpecifiers:nB.tryGetModuleSpecifiersFromCache(e,t,_,s),computedWithoutCache:!1}):(e,n)=>nB.getModuleSpecifiersWithCacheInfo(e,n,u,t,_,s);let m=0;const g=X(o,((e,o)=>{const a=d(e.isFromPackageJson),{computedWithoutCache:s,moduleSpecifiers:c}=p(e.moduleSymbol,a),_=!!(111551&e.targetFlags),g=zte(r,!0,e.symbol,e.targetFlags,a,u);return m+=s?1:0,te(c,(r=>{var s;if(f&&xR(r))return;if(!_&&l&&void 0!==n)return{kind:1,moduleSpecifier:r,usagePosition:n,exportInfo:e,isReExport:o>0};const c=Gte(t,e.exportKind,u);let d;if(void 0!==n&&3===c&&0===e.exportKind){const t=a.resolveExternalModuleSymbol(e.moduleSymbol);let r;t!==e.moduleSymbol&&(r=null==(s=c0(t,a,u))?void 0:s.name),r||(r=lne(e.moduleSymbol,HS(u),!1)),d={namespacePrefix:r,usagePosition:n}}return{kind:3,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:g,exportInfo:e,isReExport:o>0,qualification:d}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,i,o,t,n,r,s,c,u);return{computedWithoutCacheCount:g,fixes:[...f?[f]:a,...m]}}function zte(e,t,n,r,i,o){return e?t&&2===o.importsNotUsedAsValues?2:!tk(o)||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function $te(e,t,n){let r;for(const n of t.imports){const t=vh(n);if(Rg(t.parent)){const i=e.resolveExternalModuleName(n);i&&(r||(r=_t())).add(xB(i),t.parent)}else if(272===t.kind||271===t.kind){const i=e.getSymbolAtLocation(n);i&&(r||(r=_t())).add(xB(i),t)}}return{getImportsForExportInfo:({moduleSymbol:e,exportKind:i,targetFlags:o,symbol:s})=>{if(!(111551&o)&&Ng(t))return a;const c=null==r?void 0:r.get(xB(e));if(!c)return a;const l=Gte(t,i,n);return c.map((e=>({declaration:e,importKind:l,symbol:s,targetFlags:o})))}}}function Vte(e,t){if(!Ng(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return GS(n)<5;if(1===e.impliedNodeFormat)return!0;if(99===e.impliedNodeFormat)return!1;for(const n of t.getSourceFiles())if(n!==e&&Ng(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function Kte(e,t){return Pt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function Ute(e,t,n,r){const i=PX(e.sourceFile,n);let o;if(t===Ra._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=qE(e)?t.getSymbolAtLocation(e):void 0;if(rS(n))return n;const{parent:r}=e;if(J_(r)&&r.tagName===e||NA(r)){const n=t.resolveName(t.getJsxNamespace(r),J_(r)?e:r,111551,!1);if(rS(n))return n}}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name;return Jte([{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],void 0,!1,Vte(e,t),t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=bt(i,qE))?void 0:t.text}}))}(e,i);else{if(!qE(i))return;if(t===Ra._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=ze(Yte(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=Xte(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=function({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return X(Yte(e,s,o,c),(s=>{if("default"===s)return;const c=wT(o),l=Vte(e,t),u=function(e,t,n,r,i,o,a,s,c){var l;const u=_t(),_=TZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),f=Pt((e=>IY(e?s.getPackageJsonAutoImportProvider():o,s)));function p(e,t,n,r,o,a){const s=f(a);if(t&&n0(o,i,t,c,_,s,d)||!t&&_.allowsImportingAmbientModule(e,s)){const i=o.getTypeChecker();u.add(IQ(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:Kx(n,i).flags,isFromPackageJson:a})}}return r0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),u=a0(i,c,l);u&&(u.name===e||lne(i,HS(l),t)===e)&&cne(u.resolvedSymbol,n)&&p(i,o,u.symbol,u.exportKind,a,s);const _=c.tryGetMemberInModuleExportsAndProperties(e,i);_&&cne(_,n)&&p(i,o,_,0,a,s)})),u}(s,bg(o),EG(o),n,e,t,a,r,i);return Ze(Q(u.values(),(n=>Jte(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}(e,i,r)}const a=TZ(e.sourceFile,e.preferences,e.host);return o&&function(e,t,n,r,i){const o=e=>va(e,i.getCurrentDirectory(),wv(i));return Ae(e,((e,i)=>Xt(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||Bt(e.fix.kind,i.fix.kind)||Wte(e.fix,i.fix,t,n,r.allowsImportingSpecifier,o)))}(o,e.sourceFile,e.program,a,e.host)}function qte(e,t,n,r,i){if(le(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,o)=>-1===Wte(o,e,t,n,r.allowsImportingSpecifier,(e=>va(e,i.getCurrentDirectory(),wv(i))))?o:e))}function Wte(e,t,n,r,i,o){return 0!==e.kind&&0!==t.kind?Xt(i(t.moduleSpecifier),i(e.moduleSpecifier))||function(e,t,n,r){return fn(e,"node:")&&!fn(t,"node:")?KZ(n,r)?-1:1:fn(t,"node:")&&!fn(e,"node:")?KZ(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Xt(Hte(e,n,r.getCompilerOptions(),o),Hte(t,n,r.getCompilerOptions(),o))||Zk(e.moduleSpecifier,t.moduleSpecifier):0}function Hte(e,t,n,r){var i;if(e.isReExport&&(null==(i=e.exportInfo)?void 0:i.moduleFileName)&&2===YS(n)&&"index"===aa(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0)){const n=r(oa(e.exportInfo.moduleFileName));return fn(t.path,n)}return!1}function Gte(e,t,n,r){if(n.verbatimModuleSyntax&&(1===GS(n)||1===e.impliedNodeFormat))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=ak(t),i=Pg(e);if(!i&&GS(t)>=5)return r?1:2;if(i)return HI(e)||n?r?1:2:3;for(const t of e.statements)if(aA(t)&&!Jf(t.moduleReference))return 3;return r?1:3}(e,n,!!r);case 3:return function(e,t,n){if(ak(t))return 1;const r=GS(t);switch(r){case 2:case 1:case 3:return Pg(e)&&(HI(e)||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return 99===e.impliedNodeFormat?2:3;default:return Fn.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);default:return Fn.assertNever(t)}}function Xte(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&Ff(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Yte(e,t,n,r){const i=n.parent;if((J_(i)||EA(i))&&i.tagName===n&&HZ(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(vv(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||le(r.declarations,cu)&&!(111551&r.flags)}(r,n,t))return vv(n.text)||t.resolveName(n.text,n,111551,!1)?[r]:[n.text,r]}return[n.text]}function Qte(e,t,n,r,i,o,s){let c;const l=upe.ChangeTracker.with(e,(e=>{c=function(e,t,n,r,i,o,s){const c=JY(t,s);switch(r.kind){case 0:return tne(e,t,r),[Ra.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return nne(e,t,r,c),[Ra.Change_0_to_1,n,rne(r.moduleSpecifier,c)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:c,addAsTypeOnly:l,moduleSpecifier:u}=r;ene(e,t,o,1===c?{name:n,addAsTypeOnly:l}:void 0,0===c?[{name:n,addAsTypeOnly:l}]:a,s);const _=yv(u);return i?[Ra.Import_0_from_1,n,_]:[Ra.Update_import_from_0,_]}case 3:{const{importKind:a,moduleSpecifier:l,addAsTypeOnly:u,useRequire:_,qualification:d}=r;return XY(e,t,(_?ane:one)(l,c,1===a?{name:n,addAsTypeOnly:u}:void 0,0===a?[{name:n,addAsTypeOnly:u}]:void 0,2===a||3===a?{importKind:a,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:u}:void 0,o),!0,s),d&&tne(e,t,d),i?[Ra.Import_0_from_1,n,l]:[Ra.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:i}=r,a=function(e,t,n,r,i){const o=tk(n);switch(t.kind){case 276:if(t.isTypeOnly){const n=yde.detectImportSpecifierSorting(t.parent.elements,i);if(t.parent.elements.length>1&&n){e.delete(r,t);const o=FC.updateImportSpecifier(t,!1,t.propertyName,t.name),a=yde.getOrganizeImportsComparer(i,2===n),s=yde.getImportSpecifierInsertionIndex(t.parent.elements,o,a);e.insertImportSpecifierAtIndex(r,o,t.parent,s)}else e.deleteRange(r,t.getFirstToken());return t}return Fn.assert(t.parent.parent.isTypeOnly),a(t.parent.parent),t.parent.parent;case 273:return a(t),t;case 274:return a(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:Fn.failBadSyntaxKind(t)}function a(a){if(e.delete(r,YY(a,r)),!n.allowImportingTsExtensions){const t=yh(a.parent),i=t&&bf(r,t.text,hK(r,t));if(null==i?void 0:i.resolvedUsingTsExtension){const i=ka(t.text,tV(t.text,n));e.replaceNode(r,t,FC.createStringLiteral(i))}}if(o){const n=bt(a.namedBindings,pA);if(n&&n.elements.length>1){yde.detectImportSpecifierSorting(n.elements,i)&&276===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,i,o,t,s);return 276===a.kind?[Ra.Remove_type_from_import_of_0_from_1,n,Zte(a.parent.parent)]:[Ra.Remove_type_from_import_declaration_from_0,Zte(a)]}default:return Fn.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,s)}));return O5(Ete,l,c,Dte,Ra.Add_all_missing_imports)}function Zte(e){var t,n;return 271===e.kind?(null==(n=bt(null==(t=bt(e.moduleReference,kA))?void 0:t.expression,ed))?void 0:n.text)||e.moduleReference.getText():xt(e.parent.moduleSpecifier,NE).text}function ene(e,t,n,r,i,o){var a;if(206===n.kind){r&&l(n,r.name,"default");for(const e of i)l(n,e.name,void 0);return}const s=n.isTypeOnly&&le([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),c=n.namedBindings&&(null==(a=bt(n.namedBindings,pA))?void 0:a.elements);if(r&&(Fn.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),FC.createIdentifier(r.name),{suffix:", "})),i.length){let r;if("boolean"==typeof o.organizeImportsIgnoreCase)r=o.organizeImportsIgnoreCase;else if(c){const e=yde.detectImportSpecifierSorting(c,o);3!==e&&(r=2===e)}void 0===r&&(r=2===yde.detectSorting(t,o));const a=yde.getOrganizeImportsComparer(o,r),l=Fe(i.map((e=>FC.createImportSpecifier((!n.isTypeOnly||s)&&ine(e),void 0,FC.createIdentifier(e.name)))),((e,t)=>yde.compareImportOrExportSpecifiers(e,t,a))),u=(null==c?void 0:c.length)&&yde.detectImportSpecifierSorting(c,o);if(!u||r&&1===u){if(null==c?void 0:c.length)for(const n of l)e.insertNodeInListAfter(t,Be(c),n,c);else if(l.length){const r=FC.createNamedImports(l);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,Fn.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}else for(const r of l){const i=s&&!r.isTypeOnly?0:yde.getImportSpecifierInsertionIndex(c,r,a);e.insertImportSpecifierAtIndex(t,r,n.namedBindings,i)}}if(s&&(e.delete(t,YY(n,t)),c))for(const n of c)e.insertModifierBefore(t,156,n);function l(n,r,i){const o=FC.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,Be(n.elements),o):e.replaceNode(t,n,FC.createObjectBindingPattern([o]))}}function tne(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function nne(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,rne(n,i))}function rne(e,t){const n=zY(t);return`import(${n}${e}${n}).`}function ine({addAsTypeOnly:e}){return 2===e}function one(e,t,n,r,i,o){const a=jY(e,t);let s;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||ine(n))&&I(r,ine)||o.verbatimModuleSyntax&&4!==(null==n?void 0:n.addAsTypeOnly)&&!le(r,(e=>4===e.addAsTypeOnly));s=Te(s,RY(n&&FC.createIdentifier(n.name),null==r?void 0:r.map((({addAsTypeOnly:e,name:t})=>FC.createImportSpecifier(!i&&2===e,void 0,FC.createIdentifier(t)))),e,t,i))}return i&&(s=Te(s,3===i.importKind?FC.createImportEqualsDeclaration(void 0,ine(i),FC.createIdentifier(i.name),FC.createExternalModuleReference(a)):FC.createImportDeclaration(void 0,FC.createImportClause(ine(i),void 0,FC.createNamespaceImport(FC.createIdentifier(i.name))),a,void 0))),Fn.checkDefined(s)}function ane(e,t,n,r,i){const o=jY(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e})=>FC.createBindingElement(void 0,void 0,e))))||[];n&&e.unshift(FC.createBindingElement(void 0,"default",n.name)),a=Te(a,sne(FC.createObjectBindingPattern(e),o))}return i&&(a=Te(a,sne(i.name,o))),Fn.checkDefined(a)}function sne(e,t){return FC.createVariableStatement(void 0,FC.createVariableDeclarationList([FC.createVariableDeclaration("string"==typeof e?FC.createIdentifier(e):e,void 0,void 0,FC.createCallExpression(FC.createIdentifier("require"),void 0,[t]))],2))}function cne({declarations:e},t){return le(e,(e=>!!(wG(e)&t)))}function lne(e,t,n){return une(eT(yv(e.name)),t,n)}function une(e,t,n){const r=aa(en(e,"/index"));let i="",o=!0;const a=r.charCodeAt(0);js(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;eQte(e,r,i,t,i!==a,o.getCompilerOptions(),n)))},fixIds:[Dte],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=Fte(t,n,!0,r,i,o);return K5(e,Nte,(t=>a.addImportFromDiagnostic(t,e))),z5(upe.ChangeTracker.with(e,a.writeFixes))}})}});function pne(e,t,n){const r=O(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=O(r.relatedInformation,(e=>e.code===Ra.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=Aae(i.file,uc(i.start,i.length));if(void 0!==o&&(qE(o)&&lD(o.parent)&&(o=o.parent),lD(o))){if($D(o.parent))return;const r=PX(t,n.start);return{constraint:(a=e.getTypeChecker(),(Ju((s=r).parent)?a.getTypeArgumentConstraint(s.parent):(l_(s)?a.getContextualType(s):void 0)||a.getTypeAtLocation(s))||function(e){const[t,n]=fK(e,"\n",0).match(/`extends (.*)`/)||[];return n}(i.messageText)),declaration:o,token:r}}var a,s}function mne(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(yt(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=HS(t.getCompilerOptions()),l=_ae({program:t,host:r}),u=Pte(i,t,n,r),_=gae(c,u,s,void 0,o,void 0,l);_&&(e.replaceNode(i,a,FC.updateTypeParameterDeclaration(a,void 0,a.name,_,a.default)),u.writeFixes(e))}}var gne,hne,yne,vne,bne,xne=S({"src/services/codefixes/fixAddMissingConstraint.ts"(){hge(),mce(),_ne="addMissingConstraint",R5({errorCodes:dne=[Ra.Type_0_is_not_comparable_to_type_1.code,Ra.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Ra.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Ra.Type_0_is_not_assignable_to_type_1.code,Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Ra.Property_0_is_incompatible_with_index_signature.code,Ra.Property_0_in_type_1_is_not_assignable_to_type_2.code,Ra.Type_0_does_not_satisfy_the_constraint_1.code],getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=pne(r,t,n);if(void 0===a)return;const s=upe.ChangeTracker.with(e,(e=>mne(e,r,i,o,t,a)));return[O5(_ne,s,Ra.Add_extends_constraint,_ne,Ra.Add_extends_constraint_to_all_type_parameters)]},fixIds:[_ne],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Map;return z5(upe.ChangeTracker.with(e,(o=>{K5(e,dne,(e=>{const a=pne(t,e.file,uc(e.start,e.length));if(a&&aS(i,bB(a.declaration)))return mne(o,t,n,r,e.file,a)}))})))}})}});function Sne(e,t,n,r){switch(n){case Ra.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case Ra.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case Ra.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case Ra.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case Ra.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const r=Tne(t,n);if(Ng(t))return void e.addJSDocTags(t,r,[FC.createJSDocOverrideTag(FC.createIdentifier("override"))]);const i=r.modifiers||a,o=O(i,eD),s=O(i,tD),c=O(i,(e=>sY(e.kind))),l=M(i,_D),u=s?s.end:o?o.end:c?c.end:l?Ts(t.text,l.end):r.getStart(t),_=c||o||s?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,u,164,_)}(e,t.sourceFile,r);case Ra.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case Ra.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=Tne(t,n);if(Ng(t))return void e.filterJSDocTags(t,r,vn(vP));const i=O(r.modifiers,nD);Fn.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:Fn.fail("Unexpected error code: "+n)}}function kne(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return hc(e,e.parent);default:return!1}}function Tne(e,t){const n=Dc(PX(e,t),(e=>Pu(e)?"quit":kne(e)));return Fn.assert(n&&kne(n)),n}var Cne,wne,Ene=S({"src/services/codefixes/fixOverrideModifier.ts"(){hge(),mce(),gne="fixOverrideModifier",hne="fixAddOverrideModifier",yne="fixRemoveOverrideModifier",vne=[Ra.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,Ra.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,Ra.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,Ra.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,Ra.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,Ra.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,Ra.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],bne={[Ra.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Ra.Add_override_modifier,fixId:hne,fixAllDescriptions:Ra.Add_all_missing_override_modifiers},[Ra.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Ra.Add_override_modifier,fixId:hne,fixAllDescriptions:Ra.Add_all_missing_override_modifiers},[Ra.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Ra.Remove_override_modifier,fixId:yne,fixAllDescriptions:Ra.Remove_all_unnecessary_override_modifiers},[Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Ra.Remove_override_modifier,fixId:yne,fixAllDescriptions:Ra.Remove_override_modifier},[Ra.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:Ra.Add_override_modifier,fixId:hne,fixAllDescriptions:Ra.Add_all_missing_override_modifiers},[Ra.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Ra.Add_override_modifier,fixId:hne,fixAllDescriptions:Ra.Add_all_missing_override_modifiers},[Ra.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:Ra.Add_override_modifier,fixId:hne,fixAllDescriptions:Ra.Remove_all_unnecessary_override_modifiers},[Ra.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Ra.Remove_override_modifier,fixId:yne,fixAllDescriptions:Ra.Remove_all_unnecessary_override_modifiers},[Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Ra.Remove_override_modifier,fixId:yne,fixAllDescriptions:Ra.Remove_all_unnecessary_override_modifiers}},R5({errorCodes:vne,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=bne[t];if(!r)return a;const{descriptions:i,fixId:o,fixAllDescriptions:s}=r,c=upe.ChangeTracker.with(e,(r=>Sne(r,e,t,n.start)));return[M5(gne,c,i,o,s)]},fixIds:[gne,hne,yne],getAllCodeActions:e=>V5(e,vne,((t,n)=>{const{code:r,start:i}=n,o=bne[r];o&&o.fixId===e.fixId&&Sne(t,e,r,i)}))})}});function Dne(e,t,n,r){const i=JY(t,r),o=FC.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,Fl(n)?FC.createElementAccessChain(n.expression,n.questionDotToken,o):FC.createElementAccessExpression(n.expression,o))}function Nne(e,t){return xt(PX(e,t).parent,QD)}var Ane,Pne,Fne=S({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){hge(),mce(),Cne="fixNoPropertyAccessFromIndexSignature",R5({errorCodes:wne=[Ra.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],fixIds:[Cne],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=Nne(t,n.start),o=upe.ChangeTracker.with(e,(t=>Dne(t,e.sourceFile,i,r)));return[O5(Cne,o,[Ra.Use_element_access_for_0,i.name.text],Cne,Ra.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>V5(e,wne,((t,n)=>Dne(t,n.file,Nne(n.file,n.start),e.preferences)))})}});function Ine(e,t,n,r){const i=PX(t,n);if(!nX(i))return;const o=eg(i,!1,!1);if((YN(o)||oN(o))&&!UA(eg(o,!1,!1))){const n=Fn.checkDefined(yX(o,100,t)),{name:i}=o,a=Fn.checkDefined(o.body);if(oN(o)){if(i&&Yue.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[Ra.Convert_function_expression_0_to_arrow_function,i?i.text:kG]}return e.replaceNode(t,n,FC.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[Ra.Convert_function_declaration_0_to_arrow_function,i.text]}}var One,Mne,Lne=S({"src/services/codefixes/fixImplicitThis.ts"(){hge(),mce(),Ane="fixImplicitThis",R5({errorCodes:Pne=[Ra.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=upe.ChangeTracker.with(e,(e=>{i=Ine(e,t,r.start,n.getTypeChecker())}));return i?[O5(Ane,o,i,Ane,Ra.Fix_all_implicit_this_errors)]:a},fixIds:[Ane],getAllCodeActions:e=>V5(e,Pne,((t,n)=>{Ine(t,n.file,n.start,e.program.getTypeChecker())}))})}});function Rne(e,t,n){var r;const i=PX(e,t);if(qE(i)){const t=Dc(i,sA);if(void 0===t)return;const o=NE(t.moduleSpecifier)?t.moduleSpecifier.text:void 0;if(void 0===o)return;const a=bf(e,o,void 0);if(void 0===a)return;const s=n.getSourceFile(a.resolvedFileName);if(void 0===s||GZ(n,s))return;const c=null==(r=bt(s.symbol.valueDeclaration,E_))?void 0:r.locals;if(void 0===c)return;const l=c.get(i.escapedText);if(void 0===l)return;const u=function(e){if(void 0===e.valueDeclaration)return Oe(e.declarations);const t=e.valueDeclaration,n=GN(t)?bt(t.parent.parent,PN):void 0;return n&&1===C(n.declarationList.declarations)?n:t}(l);if(void 0===u)return;return{exportName:{node:i,isTypeOnly:ZT(u)},node:u,moduleSourceFile:s,moduleSpecifier:o}}}function jne(e,t,n,r,i){C(r)&&(i?Jne(e,t,n,i,r):zne(e,t,n,r))}function Bne(e,t){return M(e.statements,(e=>hA(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function Jne(e,t,n,r,i){const o=r.exportClause&&yA(r.exportClause)?r.exportClause.elements:FC.createNodeArray([]),a=!(r.isTypeOnly||!ek(t.getCompilerOptions())&&!O(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,FC.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,FC.createNamedExports(FC.createNodeArray([...o,...$ne(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.assertClause))}function zne(e,t,n,r){e.insertNodeAtEndOfScope(n,n,FC.createExportDeclaration(void 0,!1,FC.createNamedExports($ne(r,ek(t.getCompilerOptions()))),void 0,void 0))}function $ne(e,t){return FC.createNodeArray(q(e,(e=>FC.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}var Vne,Kne,Une,qne=S({"src/services/codefixes/fixImportNonExportedMember.ts"(){hge(),mce(),One="fixImportNonExportedMember",R5({errorCodes:Mne=[Ra.Module_0_declares_1_locally_but_it_is_not_exported.code],fixIds:[One],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Rne(t,n.start,r);if(void 0===i)return;const o=upe.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=Bne(i,n.isTypeOnly);o?Jne(e,t,i,o,[n]):eC(r)?e.insertExportModifier(i,r):zne(e,t,i,[n])}(e,r,i)));return[O5(One,o,[Ra.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],One,Ra.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return z5(upe.ChangeTracker.with(e,(n=>{const r=new Map;K5(e,Mne,(e=>{const i=Rne(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===Bne(s,o.isTypeOnly)&&eC(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=Bne(r,!0);i&&i.isTypeOnly?(jne(n,t,r,e.typeOnlyExports,i),jne(n,t,r,e.exports,Bne(r,!1))):jne(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}})}}),Wne=S({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){hge(),mce(),Vne="fixIncorrectNamedTupleSyntax",R5({errorCodes:[Ra.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,Ra.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return Dc(PX(e,t),(e=>202===e.kind))}(t,n.start),i=upe.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?i=!0:191===r.kind&&(o=!0),r=r.type;const a=FC.updateNamedTupleMember(n,n.dotDotDotToken||(o?FC.createToken(26):void 0),n.name,n.questionToken||(i?FC.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[O5(Vne,i,Ra.Move_labeled_tuple_element_modifiers_to_labels,Vne,Ra.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Vne]})}});function Hne(e,t,n,r){const i=PX(e,t),o=i.parent;if((r===Ra.No_overload_matches_this_call.code||r===Ra.Type_0_is_not_assignable_to_type_1.code)&&!PA(o))return;const a=n.program.getTypeChecker();let s;if(QD(o)&&o.name===i){Fn.assert(Al(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(fN(o)&&103===o.operatorToken.kind&&o.left===i&&WE(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(sD(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(mA(o)&&o.name===i){Fn.assertNode(i,qE,"Expected an identifier for spelling (import)");const t=function(e,t,n){if(!n||!ed(n.moduleSpecifier))return;const r=bf(e,n.moduleSpecifier.text,hK(e,n.moduleSpecifier));return r?t.program.getSourceFile(r.resolvedFileName):void 0}(e,n,Dc(i,sA));t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(PA(o)&&o.name===i){Fn.assertNode(i,qE,"Expected an identifier for JSX attribute");const e=Dc(i,J_),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(vb(o,16384)&&Au(o)&&o.name===i){const e=Dc(i,Pu),t=e?my(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(op(i),n))}else{const e=EG(i),t=op(i);Fn.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function Gne(e,t,n,r,i){const o=Mc(r);if(!Js(o,i)&&QD(n.parent)){const i=r.valueDeclaration;i&&Jc(i)&&WE(i.name)?e.replaceNode(t,n,FC.createIdentifier(o)):e.replaceNode(t,n.parent,FC.createElementAccessExpression(n.parent.expression,FC.createStringLiteral(o)))}else e.replaceNode(t,n,FC.createIdentifier(o))}var Xne,Yne,Qne,Zne,ere,tre=S({"src/services/codefixes/fixSpelling.ts"(){hge(),mce(),Kne="fixSpelling",R5({errorCodes:Une=[Ra.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Ra.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Ra.Cannot_find_name_0_Did_you_mean_1.code,Ra.Could_not_find_name_0_Did_you_mean_1.code,Ra.Cannot_find_namespace_0_Did_you_mean_1.code,Ra.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Ra.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Ra._0_has_no_exported_member_named_1_Did_you_mean_2.code,Ra.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Ra.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Ra.No_overload_matches_this_call.code,Ra.Type_0_is_not_assignable_to_type_1.code],getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=Hne(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=HS(e.host.getCompilationSettings());return[O5("spelling",upe.ChangeTracker.with(e,(e=>Gne(e,t,i,o,a))),[Ra.Change_spelling_to_0,Mc(o)],Kne,Ra.Fix_all_detected_spelling_errors)]},fixIds:[Kne],getAllCodeActions:e=>V5(e,Une,((t,n)=>{const r=Hne(n.file,n.start,e,n.code),i=HS(e.host.getCompilationSettings());r&&Gne(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))})}});function nre(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=cf([r]);return e.createAnonymousType(void 0,i,[],[],[])}function rre(e,t,n,r){if(!t.body||!AN(t.body)||1!==C(t.body.statements))return;const i=Le(t.body.statements);if(IN(i)&&ire(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(UN(i)&&IN(i.statement)){const o=FC.createObjectLiteralExpression([FC.createPropertyAssignment(i.label,i.statement.expression)]);if(ire(e,t,nre(e,i.label,i.statement.expression),n,r))return aN(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(AN(i)&&1===C(i.statements)){const o=Le(i.statements);if(UN(o)&&IN(o.statement)){const a=FC.createObjectLiteralExpression([FC.createPropertyAssignment(o.label,o.statement.expression)]);if(ire(e,t,nre(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function ire(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){vb(t,512)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,cf(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function ore(e,t,n,r){const i=PX(t,n);if(!i.parent)return;const o=Dc(i.parent,Cu);switch(r){case Ra.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&iX(o.type,i)))return;return rre(e,o,e.getTypeFromTypeNode(o.type),!1);case Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!eN(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return rre(e,o,n,!0);case Ra.Type_0_is_not_assignable_to_type_1.code:if(!oy(i)||!Am(i.parent)&&!PA(i.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(OA(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}(i.parent);if(!r||!Cu(r)||!r.body)return;return rre(e,r,e.getTypeAtLocation(i.parent),!0)}}function are(e,t,n,r){zQ(n);const i=fZ(t);e.replaceNode(t,r,FC.createReturnStatement(n),{leadingTriviaOption:upe.LeadingTriviaOption.Exclude,trailingTriviaOption:upe.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function sre(e,t,n,r,i,o){const a=o||eZ(r)?FC.createParenthesizedExpression(r):r;zQ(i),KQ(i,a),e.replaceNode(t,n.body,a)}function cre(e,t,n,r){e.replaceNode(t,n.body,FC.createParenthesizedExpression(r))}function lre(e,t,n){const r=upe.ChangeTracker.with(e,(r=>are(r,e.sourceFile,t,n)));return O5(Xne,r,Ra.Add_a_return_statement,Yne,Ra.Add_all_missing_return_statement)}function ure(e,t,n){const r=upe.ChangeTracker.with(e,(r=>cre(r,e.sourceFile,t,n)));return O5(Xne,r,Ra.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Zne,Ra.Wrap_all_object_literal_with_parentheses)}var _re,dre,fre,pre,mre,gre=S({"src/services/codefixes/returnValueCorrect.ts"(){hge(),mce(),Xne="returnValueCorrect",Yne="fixAddReturnStatement",Qne="fixRemoveBracesFromArrowFunctionBody",Zne="fixWrapTheBlockWithParen",R5({errorCodes:ere=[Ra.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,Ra.Type_0_is_not_assignable_to_type_1.code,Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],fixIds:[Yne,Qne,Zne],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=ore(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?ke([lre(e,o.expression,o.statement)],aN(o.declaration)?function(e,t,n,r){const i=upe.ChangeTracker.with(e,(i=>sre(i,e.sourceFile,t,n,r,!1)));return O5(Xne,i,Ra.Remove_braces_from_arrow_function_body,Qne,Ra.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[ure(e,o.declaration,o.expression)]},getAllCodeActions:e=>V5(e,ere,((t,n)=>{const r=ore(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Yne:are(t,n.file,r.expression,r.statement);break;case Qne:if(!aN(r.declaration))return;sre(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case Zne:if(!aN(r.declaration))return;cre(t,n.file,r.declaration,r.expression);break;default:Fn.fail(JSON.stringify(e.fixId))}}))})}});function hre(e,t,n,r,i){var o;const s=PX(e,t),c=s.parent;if(n===Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==s.kind||!YD(c)||!eN(c.parent))return;const e=L(c.parent.arguments,(e=>e===c));if(e<0)return;const t=r.getResolvedSignature(c.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&uD(n)&&qE(n.name)))return;const i=Ze(r.getUnmatchedProperties(r.getTypeAtLocation(c),r.getParameterType(t,e),!1,!1));if(!C(i))return;return{kind:3,token:n.name,properties:i,parentDeclaration:c}}if(!Al(s))return;if(qE(s)&&G_(c)&&c.initializer&&YD(c.initializer)){const e=r.getContextualType(s)||r.getTypeAtLocation(s),t=Ze(r.getUnmatchedProperties(r.getTypeAtLocation(c.initializer),e,!1,!1));if(!C(t))return;return{kind:3,token:s,properties:t,parentDeclaration:c.initializer}}if(qE(s)&&J_(s.parent)){const e=function(e,t,n){const r=e.getContextualType(n.attributes);if(void 0===r)return a;const i=r.getProperties();if(!C(i))return a;const o=new Set;for(const t of n.attributes.properties)if(PA(t)&&o.add(uC(t.name)),IA(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return V(i,(e=>Js(e.name,t,1)&&!(16777216&e.flags||48&$x(e)||o.has(e.escapedName))))}(r,HS(i.getCompilerOptions()),s.parent);if(!C(e))return;return{kind:4,token:s,attributes:e,parentDeclaration:s.parent}}if(qE(s)){const t=null==(o=r.getContextualType(s))?void 0:o.getNonNullableType();if(t&&16&tS(t)){const n=Oe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:s,signature:n,sourceFile:e,parentDeclaration:Are(s)}}if(eN(c)&&c.expression===s)return{kind:2,token:s,call:c,sourceFile:e,modifierFlags:0,parentDeclaration:Are(s)}}if(!QD(c))return;const l=DY(r.getTypeAtLocation(c.expression)),u=l.symbol;if(!u||!u.declarations)return;if(qE(s)&&eN(c.parent)){const t=O(u.declarations,nA),n=null==t?void 0:t.getSourceFile();if(t&&n&&!GZ(i,n))return{kind:2,token:s,call:c.parent,sourceFile:e,modifierFlags:1,parentDeclaration:t};const r=O(u.declarations,UA);if(e.commonJsModuleIndicator)return;if(r&&!GZ(i,r))return{kind:2,token:s,call:c.parent,sourceFile:r,modifierFlags:1,parentDeclaration:r}}const _=O(u.declarations,Pu);if(!_&&WE(s))return;const d=_||O(u.declarations,(e=>ZN(e)||DD(e)));if(d&&!GZ(i,d.getSourceFile())){const e=!DD(d)&&(l.target||l)!==r.getDeclaredTypeOfSymbol(u);if(e&&(WE(s)||ZN(d)))return;const t=d.getSourceFile(),n=DD(d)?0:(e?32:0)|(JZ(s.text)?8:0),i=Ng(t);return{kind:0,token:s,call:bt(c.parent,eN),modifierFlags:n,parentDeclaration:d,declSourceFile:t,isJSFile:i}}const f=O(u.declarations,tA);return!f||1056&l.flags||WE(s)||GZ(i,f.getSourceFile())?void 0:{kind:1,token:s,parentDeclaration:f}}function yre(e,t,n,r,i){const o=r.text;if(i){if(231===n.kind)return;const r=n.name.getText(),i=vre(FC.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(WE(r)){const r=FC.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=Sre(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=Wv(n);if(!r)return;const i=vre(FC.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function vre(e,t){return FC.createExpressionStatement(FC.createAssignment(FC.createPropertyAccessExpression(e,t),Nre()))}function bre(e,t,n){let r;if(226===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1):void 0}return r||FC.createKeywordTypeNode(133)}function xre(e,t,n,r,i,o){const a=o?FC.createNodeArray(FC.createModifiersFromModifierFlags(o)):void 0,s=Pu(n)?FC.createPropertyDeclaration(a,r,void 0,i,void 0):FC.createPropertySignature(void 0,r,void 0,i),c=Sre(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function Sre(e){let t;for(const n of e.members){if(!fD(n))break;t=n}return t}function kre(e,t,n,r,i,o,a){const s=Pte(a,e.program,e.preferences,e.host),c=pae(Pu(o)?174:173,e,s,n,r,i,o),l=function(e,t){if(DD(e))return;const n=Dc(t,(e=>mD(e)||hD(e)));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function Tre(e,t,{token:n,parentDeclaration:r}){const i=le(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=FC.createEnumMember(n,i?FC.createStringLiteral(n.text):void 0);e.replaceNode(r.getSourceFile(),r,FC.updateEnumDeclaration(r,r.modifiers,r.name,_e(r.members,xn(o))),{leadingTriviaOption:upe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:upe.TrailingTriviaOption.Exclude})}function Cre(e,t,n){const r=JY(t.sourceFile,t.preferences),i=Pte(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?pae(262,t,i,n.call,Ic(n.token),n.modifierFlags,n.parentDeclaration):fae(262,t,r,n.signature,Sae(Ra.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&Fn.fail("fixMissingFunctionDeclaration codefix got unexpected error."),$N(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function wre(e,t,n){const r=Pte(t.sourceFile,t.program,t.preferences,t.host),i=JY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=le(a.properties,IA),c=q(n.attributes,(e=>{const a=Dre(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=FC.createIdentifier(e.name),c=FC.createJsxAttribute(s,FC.createJsxExpression(void 0,a));return OT(s,c),c})),l=FC.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),u={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,u),r.writeFixes(e)}function Ere(e,t,n){const r=Pte(t.sourceFile,t.program,t.preferences,t.host),i=JY(t.sourceFile,t.preferences),o=HS(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=q(n.properties,(e=>{const s=Dre(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return FC.createPropertyAssignment(function(e,t,n,r){if(lf(e)){const t=r.symbolToNode(e,111551,void 0,1073741824);if(t&&cD(t))return t}return GT(e.name,t,0===n)}(e,o,i,a),s)})),c={leadingTriviaOption:upe.LeadingTriviaOption.Exclude,trailingTriviaOption:upe.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,FC.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function Dre(e,t,n,r,i,o){if(3&i.flags)return Nre();if(134217732&i.flags)return FC.createStringLiteral("",0===r);if(8&i.flags)return FC.createNumericLiteral(0);if(64&i.flags)return FC.createBigIntLiteral("0n");if(16&i.flags)return FC.createFalse();if(1056&i.flags){const e=i.symbol.exports?Me(i.symbol.exports.values()):i.symbol,n=t.symbolToExpression(i.symbol.parent?i.symbol.parent:i.symbol,111551,void 0,void 0);return void 0===e||void 0===n?FC.createNumericLiteral(0):FC.createPropertyAccessExpression(n,t.symbolToString(e))}if(256&i.flags)return FC.createNumericLiteral(i.value);if(2048&i.flags)return FC.createBigIntLiteral(i.value);if(128&i.flags)return FC.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?FC.createFalse():FC.createTrue();if(65536&i.flags)return FC.createNull();if(1048576&i.flags)return D(i.types,(i=>Dre(e,t,n,r,i,o)))??Nre();if(t.isArrayLikeType(i))return FC.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&tS(e)||e.symbol&&bt(Je(e.symbol.declarations),DD))}(i)){const a=q(t.getPropertiesOfType(i),(i=>{const a=Dre(e,t,n,r,t.getTypeOfSymbol(i),o);return FC.createPropertyAssignment(i.name,a)}));return FC.createObjectLiteralExpression(a,!0)}if(16&tS(i)){if(void 0===O(i.symbol.declarations||a,yn(CD,pD,mD)))return Nre();const s=t.getSignaturesOfType(i,0);return void 0===s?Nre():fae(218,e,r,s[0],Sae(Ra.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??Nre()}if(1&tS(i)){const e=eS(i.symbol);if(void 0===e||kb(e))return Nre();const t=Wv(e);return t&&C(t.parameters)?Nre():FC.createNewExpression(FC.createIdentifier(i.symbol.name),void 0,void 0)}return Nre()}function Nre(){return FC.createIdentifier("undefined")}function Are(e){if(Dc(e,OA)){const t=Dc(e.parent,$N);if(t)return t}return Ff(e)}var Pre,Fre,Ire=S({"src/services/codefixes/fixAddMissingMember.ts"(){hge(),mce(),_re="fixMissingMember",dre="fixMissingProperties",fre="fixMissingAttributes",pre="fixMissingFunctionDeclaration",R5({errorCodes:mre=[Ra.Property_0_does_not_exist_on_type_1.code,Ra.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Ra.Property_0_is_missing_in_type_1_but_required_in_type_2.code,Ra.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,Ra.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ra.Cannot_find_name_0.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=hre(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=upe.ChangeTracker.with(e,(t=>Ere(t,e,n)));return[O5(dre,t,Ra.Add_missing_properties,dre,Ra.Add_all_missing_properties)]}if(4===n.kind){const t=upe.ChangeTracker.with(e,(t=>wre(t,e,n)));return[O5(fre,t,Ra.Add_missing_attributes,fre,Ra.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=upe.ChangeTracker.with(e,(t=>Cre(t,e,n)));return[O5(pre,t,[Ra.Add_missing_function_declaration_0,n.token.text],pre,Ra.Add_all_missing_function_declarations)]}if(1===n.kind){const t=upe.ChangeTracker.with(e,(t=>Tre(t,e.program.getTypeChecker(),n)));return[O5(_re,t,[Ra.Add_missing_enum_member_0,n.token.text],_re,Ra.Add_all_missing_members)]}return _e(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>upe.ChangeTracker.with(e,(i=>kre(e,i,a,o,t,n,r))),l=[O5(_re,c(32&i),[32&i?Ra.Declare_static_method_0:Ra.Declare_method_0,s],_re,Ra.Add_all_missing_members)];return 8&i&&l.unshift(I5(_re,c(8),[Ra.Declare_private_method_0,s])),l}(e,n),function(e,t){return t.isJSFile?xn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(ZN(t)||DD(t))return;const o=upe.ChangeTracker.with(e,(e=>yre(e,n,t,i,!!(32&r))));if(0===o.length)return;const a=32&r?Ra.Initialize_static_property_0:WE(i)?Ra.Declare_a_private_field_named_0:Ra.Initialize_property_0_in_the_constructor;return O5(_re,o,[a,i.text],_re,Ra.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=32&r,s=bre(e.program.getTypeChecker(),t,i),c=r=>upe.ChangeTracker.with(e,(e=>xre(e,n,t,o,s,r))),l=[O5(_re,c(32&r),[a?Ra.Declare_static_property_0:Ra.Declare_property_0,o],_re,Ra.Add_all_missing_members)];return a||WE(i)||(8&r&&l.unshift(I5(_re,c(8),[Ra.Declare_private_property_0,o])),l.push(function(e,t,n,r,i){const o=FC.createKeywordTypeNode(154),a=FC.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=FC.createIndexSignature(void 0,[a],i),c=upe.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return I5(_re,c,[Ra.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s))),l}(e,t)}(e,n))}},fixIds:[_re,pre,dre,fre],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Map,o=new Map;return z5(upe.ChangeTracker.with(e,(t=>{K5(e,mre,(a=>{const s=hre(a.file,a.start,a.code,r,e.program);if(s&&aS(i,bB(s.parentDeclaration)+"#"+s.token.text))if(n!==pre||2!==s.kind&&5!==s.kind){if(n===dre&&3===s.kind)Ere(t,e,s);else if(n===fre&&4===s.kind)wre(t,e,s);else if(1===s.kind&&Tre(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=ie(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else Cre(t,e,s)})),o.forEach(((n,i)=>{const a=DD(i)?void 0:Bae(i,r);for(const i of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===i.token.text))})))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:u,isJSFile:_}=i;if(u&&!WE(l))kre(e,t,u,l,32&c,n,s);else if(!_||ZN(n)||DD(n)){const e=bre(r,n,l);xre(t,s,n,l.text,e,32&c)}else yre(t,s,n,l,!!(32&c))}}))})))}})}});function Ore(e,t,n){const r=xt(function(e,t){let n=PX(e,t.start);const r=Qs(t);for(;n.endOre(e,t,n)));return[O5(Pre,r,Ra.Add_missing_new_operator_to_call,Pre,Ra.Add_missing_new_operator_to_all_calls)]},fixIds:[Pre],getAllCodeActions:e=>V5(e,Fre,((t,n)=>Ore(t,e.sourceFile,n)))})}});function Bre(e,t){return{type:"install package",file:e,packageName:t}}function Jre(e,t){const n=bt(PX(e,t),NE);if(!n)return;const r=n.text,{packageName:i}=JR(r);return Gs(i)?void 0:i}function zre(e,t,n){var r;return n===Lre?EH.nodeCoreModules.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?ZR(e):void 0}var $re,Vre,Kre=S({"src/services/codefixes/fixCannotFindModule.ts"(){hge(),mce(),Mre="installTypesPackage",Lre=Ra.Cannot_find_module_0_or_its_corresponding_type_declarations.code,R5({errorCodes:Rre=[Lre,Ra.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r}}=e,i=Jre(n,r);if(void 0===i)return;const o=zre(i,t,e.errorCode);return void 0===o?[]:[O5("fixCannotFindModule",[],[Ra.Install_0,o],Mre,Ra.Install_all_missing_types_packages,Bre(n.fileName,o))]},fixIds:[Mre],getAllCodeActions:e=>V5(e,Rre,((t,n,r)=>{const i=Jre(n.file,n.start);if(void 0!==i)switch(e.fixId){case Mre:{const t=zre(i,e.host,n.code);t&&r.push(Bre(n.file.fileName,t));break}default:Fn.fail(`Bad fixId: ${e.fixId}`)}}))})}});function Ure(e,t){return xt(PX(e,t).parent,Pu)}function qre(e,t,n,r,i){const o=my(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(Wre),l=Pte(t,n.program,i,n.host);uae(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function Wre(e){const t=Ib(Le(e.getDeclarations()));return!(8&t||!(256&t))}var Hre,Gre,Xre=S({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){hge(),mce(),R5({errorCodes:$re=[Ra.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=upe.ChangeTracker.with(e,(r=>qre(Ure(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[O5(Vre,r,Ra.Implement_inherited_abstract_class,Vre,Ra.Implement_all_inherited_abstract_classes)]},fixIds:[Vre="fixClassDoesntImplementInheritedAbstractMember"],getAllCodeActions:function(e){const t=new Map;return V5(e,$re,((n,r)=>{const i=Ure(r.file,r.start);aS(t,bB(i))&&qre(i,e.sourceFile,e,n,e.preferences)}))}})}});function Yre(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function Qre(e,t){const n=PX(e,t);if(110!==n.kind)return;const r=Hm(n),i=Zre(r.body);return i&&!i.expression.arguments.some((e=>QD(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function Zre(e){return IN(e)&&fm(e.expression)?e:ku(e)?void 0:zI(e,Zre)}var eie,tie,nie=S({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){hge(),mce(),Hre="classSuperMustPrecedeThisAccess",R5({errorCodes:Gre=[Ra.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Qre(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=upe.ChangeTracker.with(e,(e=>Yre(e,t,i,o)));return[O5(Hre,a,Ra.Make_super_call_the_first_statement_in_the_constructor,Hre,Ra.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Hre],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return V5(e,Gre,((e,r)=>{const i=Qre(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;aS(n,bB(o.parent))&&Yre(e,t,o,a)}))}})}});function rie(e,t){const n=PX(e,t);return Fn.assert(hD(n.parent),"token should be at the constructor declaration"),n.parent}function iie(e,t,n){const r=FC.createExpressionStatement(FC.createCallExpression(FC.createSuper(),void 0,a));e.insertNodeAtConstructorStart(t,n,r)}var oie,aie,sie=S({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){hge(),mce(),eie="constructorForDerivedNeedSuperCall",R5({errorCodes:tie=[Ra.Constructors_for_derived_classes_must_contain_a_super_call.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=rie(t,n.start),i=upe.ChangeTracker.with(e,(e=>iie(e,t,r)));return[O5(eie,i,Ra.Add_missing_super_call,eie,Ra.Add_all_missing_super_calls)]},fixIds:[eie],getAllCodeActions:e=>V5(e,tie,((t,n)=>iie(t,e.sourceFile,rie(n.file,n.start))))})}});function cie(e,t){Tae(e,t,"jsx",FC.createStringLiteral("react"))}var lie,uie,_ie=S({"src/services/codefixes/fixEnableJsxFlag.ts"(){hge(),mce(),oie="fixEnableJsxFlag",R5({errorCodes:aie=[Ra.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=upe.ChangeTracker.with(e,(e=>cie(e,t)));return[I5(oie,n,Ra.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[oie],getAllCodeActions:e=>V5(e,aie,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&cie(t,n)}))})}});function die(e,t,n){const r=O(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=O(r.relatedInformation,(e=>e.code===Ra.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=Aae(i.file,uc(i.start,i.length));return void 0!==o&&l_(o)&&fN(o.parent)?{suggestion:pie(i.messageText),expression:o.parent,arg:o}:void 0}function fie(e,t,n,r){const i=FC.createCallExpression(FC.createPropertyAccessExpression(FC.createIdentifier("Number"),FC.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?FC.createPrefixUnaryExpression(54,i):i)}function pie(e){const[t,n]=fK(e,"\n",0).match(/'(.*)'/)||[];return n}var mie,gie,hie=S({"src/services/codefixes/fixNaNEquality.ts"(){hge(),mce(),lie="fixNaNEquality",R5({errorCodes:uie=[Ra.This_condition_will_always_return_0.code],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=die(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=upe.ChangeTracker.with(e,(e=>fie(e,t,s,a)));return[O5(lie,c,[Ra.Use_0,o],lie,Ra.Use_Number_isNaN_in_all_conditions)]},fixIds:[lie],getAllCodeActions:e=>V5(e,uie,((t,n)=>{const r=die(e.program,n.file,uc(n.start,n.length));r&&fie(t,n.file,r.arg,r.expression)}))})}}),yie=S({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){hge(),mce(),R5({errorCodes:[Ra.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,Ra.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,Ra.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=GS(t);if(i>=5&&i<99){const t=upe.ChangeTracker.with(e,(e=>{Tae(e,n,"module",FC.createStringLiteral("esnext"))}));r.push(I5("fixModuleOption",t,[Ra.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=HS(t);if(o<4||o>99){const t=upe.ChangeTracker.with(e,(e=>{if(!Um(n))return;const t=[["target",FC.createStringLiteral("es2017")]];1===i&&t.push(["module",FC.createStringLiteral("commonjs")]),kae(e,n,t)}));r.push(I5("fixTargetOption",t,[Ra.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}})}});function vie(e,t,n){e.replaceNode(t,n,FC.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function bie(e,t){return xt(PX(e,t).parent,zA)}var xie,Sie,kie=S({"src/services/codefixes/fixPropertyAssignment.ts"(){hge(),mce(),mie="fixPropertyAssignment",R5({errorCodes:gie=[Ra.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],fixIds:[mie],getCodeActions(e){const{sourceFile:t,span:n}=e,r=bie(t,n.start),i=upe.ChangeTracker.with(e,(t=>vie(t,e.sourceFile,r)));return[O5(mie,i,[Ra.Change_0_to_1,"=",":"],mie,[Ra.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>V5(e,gie,((e,t)=>vie(e,t.file,bie(t.file,t.start))))})}});function Tie(e,t){const n=Xm(PX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function Cie(e,t,n,r){if(e.replaceNode(t,n,FC.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},FC.createToken(28));const o=t.text;let a=n.end;for(;aCie(e,t,r,i)));return[O5(xie,o,Ra.Change_extends_to_implements,xie,Ra.Change_all_extended_interfaces_to_implements)]},fixIds:[xie],getAllCodeActions:e=>V5(e,Sie,((e,t)=>{const n=Tie(t.file,t.start);n&&Cie(e,t.file,n.extendsToken,n.heritageClauses)}))})}});function Aie(e,t,n){const r=PX(e,t);if(qE(r)||WE(r))return{node:r,className:n===Eie?Xm(r).name.text:void 0}}function Pie(e,t,{node:n,className:r}){zQ(n),e.replaceNode(t,n,FC.createPropertyAccessExpression(r?FC.createIdentifier(r):FC.createThis(),n))}var Fie,Iie,Oie,Mie,Lie=S({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){hge(),mce(),wie="forgottenThisPropertyAccess",Eie=Ra.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,R5({errorCodes:Die=[Ra.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Ra.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Eie],getCodeActions(e){const{sourceFile:t}=e,n=Aie(t,e.span.start,e.errorCode);if(!n)return;const r=upe.ChangeTracker.with(e,(e=>Pie(e,t,n)));return[O5(wie,r,[Ra.Add_0_to_unresolved_variable,n.className||"this"],wie,Ra.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[wie],getAllCodeActions:e=>V5(e,Die,((t,n)=>{const r=Aie(n.file,n.start,n.code);r&&Pie(t,e.sourceFile,r)}))})}});function Rie(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return We(Mie,e)}(o))return;const a=i?Mie[o]:`{${nZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var jie,Bie,Jie,zie=S({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){hge(),mce(),Fie="fixInvalidJsxCharacters_expression",Iie="fixInvalidJsxCharacters_htmlEntity",R5({errorCodes:Oie=[Ra.Unexpected_token_Did_you_mean_or_gt.code,Ra.Unexpected_token_Did_you_mean_or_rbrace.code],fixIds:[Fie,Iie],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=upe.ChangeTracker.with(e,(e=>Rie(e,n,t,r.start,!1))),o=upe.ChangeTracker.with(e,(e=>Rie(e,n,t,r.start,!0)));return[O5(Fie,i,Ra.Wrap_invalid_character_in_an_expression_container,Fie,Ra.Wrap_all_invalid_characters_in_an_expression_container),O5(Iie,o,Ra.Convert_invalid_character_to_its_html_entity_code,Iie,Ra.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>V5(e,Oie,((t,n)=>Rie(t,e.preferences,n.file,n.start,e.fixId===Iie)))}),Mie={">":">","}":"}"}}});function $ie(e,t){const n=PX(e,t);if(n.parent&&TP(n.parent)&&qE(n.parent.name)){const e=n.parent,t=Vh(e),r=zh(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}var Vie,Kie,Uie,qie,Wie,Hie,Gie,Xie=S({"src/services/codefixes/fixUnmatchedParameter.ts"(){hge(),mce(),jie="deleteUnmatchedParameter",Bie="renameUnmatchedParameter",Jie=[Ra.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],R5({fixIds:[jie,Bie],errorCodes:Jie,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=$ie(t,n.start);if(i)return ke(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=upe.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return O5(jie,i,[Ra.Delete_unused_param_tag_0,t.getText(e.sourceFile)],jie,Ra.Delete_all_unused_param_tags)}(e,i)),ke(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!C(r.parameters))return;const o=e.sourceFile,a=Sl(r),s=new Set;for(const e of a)TP(e)&&qE(e.name)&&s.add(e.name.escapedText);const c=D(r.parameters,(e=>qE(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const l=FC.updateJSDocParameterTag(i,i.tagName,FC.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),u=upe.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,q(a,(e=>e===i?l:e)))));return I5(Bie,u,[Ra.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return z5(upe.ChangeTracker.with(e,(n=>{K5(e,Jie,(({file:e,start:n})=>{const r=$ie(e,n);r&&t.set(r.signature,ke(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===jie){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}})}}),Yie=S({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){hge(),mce(),Vie="fixUnreferenceableDecoratorMetadata",R5({errorCodes:[Ra.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{const t=function(e,t,n){const r=bt(PX(e,n),qE);if(!r||183!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return O((null==i?void 0:i.declarations)||a,yn(cA,mA,aA))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=upe.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){U8.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=upe.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=273===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();Th(i,(e=>{if(111551&Kx(e.symbol,o).flags)return!0}))||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program)));let i;return n.length&&(i=ke(i,I5(Vie,n,Ra.Convert_named_imports_to_namespace_import))),r.length&&(i=ke(i,I5(Vie,r,Ra.Use_import_type))),i},fixIds:[Vie]})}});function Qie(e,t,n){e.replaceNode(t,n.parent,FC.createKeywordTypeNode(159))}function Zie(e,t){return O5(Kie,e,t,qie,Ra.Delete_all_unused_declarations)}function eoe(e,t,n){e.delete(t,Fn.checkDefined(xt(n.parent,Pp).typeParameters,"The type parameter to delete should exist"))}function toe(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function noe(e){return 102===e.kind?bt(e.parent,sA):void 0}function roe(e,t){return XN(t.parent)&&Le(t.parent.getChildren(e))===t}function ioe(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function ooe(e,t,n,r){t!==Ra.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=xt(r.parent,RD).typeParameter.name),qE(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,FC.createIdentifier(`_${r.text}`)),uD(r.parent)&&Wc(r.parent).forEach((t=>{qE(t.name)&&e.replaceNode(n,t.name,FC.createIdentifier(`_${t.name.text}`))}))))}function aoe(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(uD(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 174:case 176:const c=s.parameters.indexOf(n),l=mD(s)?s.name:s,u=Yue.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(u)for(const e of u)for(const t of e.references)if(t.kind===Yue.EntryKind.Node){const e=iD(t.node)&&eN(t.node.parent)&&t.node.parent.arguments.length>c,r=QD(t.node.parent)&&iD(t.node.parent.expression)&&eN(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(mD(t.node.parent)||pD(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!Yue.Core.eachSymbolReferenceInFile(n,e,t,(e=>qE(e)&&eN(e.parent)&&e.parent.arguments.indexOf(e)>=0))}(e,t,s.name)||coe(s,n,a);case 218:case 219:return coe(s,n,a);case 178:return!1;case 177:return!0;default:return Fn.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!qE(n.name)||Yue.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)vu(r)&&e.deleteModifier(t,r);else!n.initializer&&soe(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&qE(e)&&Yue.Core.isSymbolReferencedInFile(e,r,n))){const r=cA(c)?e:cD(c)?c.parent:c;Fn.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),qE(t)&&Yue.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;QD(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&(fN((r=t).parent)&&r.parent.left===r||(dN(r.parent)||_N(r.parent))&&r.parent.operand===r)&&IN(r.parent.parent)&&n.delete(e,t.parent.parent)}))}function soe(e,t,n){const r=e.parent.parameters.indexOf(e);return!Yue.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function coe(e,t,n){const r=e.parameters,i=r.indexOf(t);return Fn.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>qE(e.name)&&!e.symbol.isReferenced)):i===r.length-1}var loe,uoe,_oe=S({"src/services/codefixes/fixUnusedIdentifier.ts"(){hge(),mce(),Kie="unusedIdentifier",Uie="unusedIdentifier_prefix",qie="unusedIdentifier_delete",Wie="unusedIdentifier_deleteImports",Hie="unusedIdentifier_infer",R5({errorCodes:Gie=[Ra._0_is_declared_but_its_value_is_never_read.code,Ra._0_is_declared_but_never_used.code,Ra.Property_0_is_declared_but_its_value_is_never_read.code,Ra.All_imports_in_import_declaration_are_unused.code,Ra.All_destructured_elements_are_unused.code,Ra.All_variables_are_unused.code,Ra.All_type_parameters_are_unused.code],getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=PX(n,e.span.start);if(DP(s))return[Zie(upe.ChangeTracker.with(e,(e=>e.delete(n,s))),Ra.Remove_template_tag)];if(30===s.kind)return[Zie(upe.ChangeTracker.with(e,(e=>eoe(e,n,s))),Ra.Remove_type_parameters)];const c=noe(s);if(c){const t=upe.ChangeTracker.with(e,(e=>e.delete(n,c)));return[O5(Kie,t,[Ra.Remove_import_from_0,iS(c)],Wie,Ra.Delete_all_unused_imports)]}if(toe(s)){const t=upe.ChangeTracker.with(e,(e=>aoe(n,s,e,o,a,r,i,!1)));if(t.length)return[O5(Kie,t,[Ra.Remove_unused_declaration_for_Colon_0,s.getText(n)],Wie,Ra.Delete_all_unused_imports)]}if(WD(s.parent)||HD(s.parent)){if(uD(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?Ra.Remove_unused_declarations_for_Colon_0:Ra.Remove_unused_declaration_for_Colon_0,q(t,(e=>e.getText(n))).join(", ")];return[Zie(upe.ChangeTracker.with(e,(e=>function(e,t,n){w(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[Zie(upe.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(GN(r)&&r.initializer&&e_(r.initializer))if(XN(r.parent)&&C(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:SQ(e.host,e.formatContext.options)+n.text.slice(MQ(n.text,o-1),o),suffix:fZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),Ra.Remove_unused_destructuring_declaration)]}if(roe(n,s))return[Zie(upe.ChangeTracker.with(e,(e=>ioe(e,n,s.parent))),Ra.Remove_variable_statement)];const l=[];if(140===s.kind){const t=upe.ChangeTracker.with(e,(e=>Qie(e,n,s))),r=xt(s.parent,RD).typeParameter.name.text;l.push(O5(Kie,t,[Ra.Replace_infer_0_with_unknown,r],Hie,Ra.Replace_all_unused_infer_with_unknown))}else{const t=upe.ChangeTracker.with(e,(e=>aoe(n,s,e,o,a,r,i,!1)));if(t.length){const e=cD(s.parent)?s.parent:s;l.push(Zie(t,[Ra.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const u=upe.ChangeTracker.with(e,(e=>ooe(e,t,n,s)));return u.length&&l.push(O5(Kie,u,[Ra.Prefix_0_with_an_underscore,s.getText(n)],Uie,Ra.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[Uie,qie,Wie,Hie],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return V5(e,Gie,((a,s)=>{const c=PX(t,s.start);switch(e.fixId){case Uie:ooe(a,s.code,t,c);break;case Wie:{const e=noe(c);e?a.delete(t,e):toe(c)&&aoe(t,c,a,i,o,n,r,!0);break}case qie:if(140===c.kind||toe(c))break;if(DP(c))a.delete(t,c);else if(30===c.kind)eoe(a,t,c);else if(WD(c.parent)){if(c.parent.parent.initializer)break;uD(c.parent.parent)&&!soe(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(HD(c.parent.parent)&&c.parent.parent.parent.initializer)break;roe(t,c)?ioe(a,t,c.parent):aoe(t,c,a,i,o,n,r,!0)}break;case Hie:140===c.kind&&Qie(a,t,c);break;default:Fn.fail(JSON.stringify(e.fixId))}}))}})}});function doe(e,t,n,r,i){const o=PX(t,n),s=Dc(o,I_);if(s.getStart(t)!==o.getStart(t)){const e=JSON.stringify({statementKind:Fn.formatSyntaxKind(s.kind),tokenKind:Fn.formatSyntaxKind(o.kind),errorCode:i,start:n,length:r});Fn.fail("Token and statement should start at the same point. "+e)}const c=(AN(s.parent)?s.parent:s).parent;if(!AN(s.parent)||s===Le(s.parent.statements))switch(c.kind){case 245:if(c.elseStatement){if(AN(s.parent))break;return void e.replaceNode(t,s,FC.createBlock(a))}case 247:case 248:return void e.delete(t,c)}if(AN(s.parent)){const i=n+r,o=Fn.checkDefined(function(e,t){let n;for(const t of e){if(!(t.posdoe(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[O5(loe,t,Ra.Remove_unreachable_code,loe,Ra.Remove_all_unreachable_code)]},fixIds:[loe],getAllCodeActions:e=>V5(e,uoe,((e,t)=>doe(e,t.file,t.start,t.length,t.code)))})}});function goe(e,t,n){const r=PX(t,n),i=xt(r.parent,UN),o=r.getStart(t),a=i.statement.getStart(t),s=Ix(o,a,t)?a:Ts(t.text,yX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}var hoe,yoe,voe,boe=S({"src/services/codefixes/fixUnusedLabel.ts"(){hge(),mce(),foe="fixUnusedLabel",R5({errorCodes:poe=[Ra.Unused_label.code],getCodeActions(e){const t=upe.ChangeTracker.with(e,(t=>goe(t,e.sourceFile,e.span.start)));return[O5(foe,t,Ra.Remove_unused_label,foe,Ra.Remove_all_unused_labels)]},fixIds:[foe],getAllCodeActions:e=>V5(e,poe,((e,t)=>goe(e,t.file,t.start)))})}});function xoe(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function Soe(e,t,n){const r=Dc(PX(e,t),koe),i=r&&r.type;return i&&{typeNode:i,type:Toe(n,i)}}function koe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function Toe(e,t){if(nP(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(ke([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Coe,woe,Eoe=S({"src/services/codefixes/fixJSDocTypes.ts"(){hge(),mce(),hoe="fixJSDocTypes_plain",yoe="fixJSDocTypes_nullable",R5({errorCodes:voe=[Ra.JSDoc_types_can_only_be_used_inside_documentation_comments.code,Ra._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,Ra._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=Soe(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,hoe,Ra.Change_all_jsdoc_style_types_to_TypeScript)];return 321===i.kind&&s.push(c(o,yoe,Ra.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return O5("jdocTypes",upe.ChangeTracker.with(e,(e=>xoe(e,t,i,r,n))),[Ra.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[hoe,yoe],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return V5(e,voe,((e,n)=>{const o=Soe(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=321===a.kind&&t===yoe?i.getNullableType(s,32768):s;xoe(e,r,a,c,i)}))}})}});function Doe(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Noe(e,t){const n=PX(e,t);if(QD(n.parent)){let e=n.parent;for(;QD(e.parent);)e=e.parent;return e.name}if(qE(n))return n}var Aoe,Poe,Foe=S({"src/services/codefixes/fixMissingCallParentheses.ts"(){hge(),mce(),Coe="fixMissingCallParentheses",R5({errorCodes:woe=[Ra.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],fixIds:[Coe],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Noe(t,n.start);if(!r)return;const i=upe.ChangeTracker.with(e,(t=>Doe(t,e.sourceFile,r)));return[O5(Coe,i,Ra.Add_missing_call_parentheses,Coe,Ra.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>V5(e,woe,((e,t)=>{const n=Noe(t.file,t.start);n&&Doe(e,t.file,n)}))})}});function Ioe(e,t){const n=Hm(PX(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=yX(n,100,e);break;case 219:r=yX(n,n.typeParameters?30:21,e)||Le(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:GN(i.parent)&&i.parent.type&&CD(i.parent.type)?i.parent.type.type:void 0)};var i}function Ooe(e,t,{insertBefore:n,returnType:r}){if(r){const n=_g(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,FC.createTypeReferenceNode("Promise",FC.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}var Moe,Loe,Roe=S({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){hge(),mce(),Aoe="fixAwaitInSyncFunction",R5({errorCodes:Poe=[Ra.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ra.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ra.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ra.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Ioe(t,n.start);if(!r)return;const i=upe.ChangeTracker.with(e,(e=>Ooe(e,t,r)));return[O5(Aoe,i,Ra.Add_async_modifier_to_containing_function,Aoe,Ra.Add_all_missing_async_modifiers)]},fixIds:[Aoe],getAllCodeActions:function(e){const t=new Map;return V5(e,Poe,((n,r)=>{const i=Ioe(r.file,r.start);i&&aS(t,bB(i.insertBefore))&&Ooe(n,e.sourceFile,i)}))}})}});function joe(e,t,n,r,i){let o,a;if(r===Ra._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===Ra._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=PX(e,t).parent;Fn.assert(Fu(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;Fn.assert(Pu(s),"erroneous accessors should only be inside classes");const c=Je(Bae(s,n));if(!c)return[];const l=Fc(Kp(r.name)),u=n.getPropertyOfType(n.getTypeAtLocation(c),l);if(!u||!u.valueDeclaration)return[];o=u.valueDeclaration.pos,a=u.valueDeclaration.end,e=Ff(u.valueDeclaration)}else Fn.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return Fae(e,i.program,o,a,i,Ra.Generate_get_and_set_accessors.message)}var Boe,Joe,zoe=S({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){hge(),mce(),R5({errorCodes:Moe=[Ra._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,Ra._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],getCodeActions(e){const t=joe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[O5(Loe,t,Ra.Generate_get_and_set_accessors,Loe,Ra.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Loe="fixPropertyOverrideAccessor"],getAllCodeActions:e=>V5(e,Moe,((t,n)=>{const r=joe(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))})}});function $oe(e,t){switch(e){case Ra.Parameter_0_implicitly_has_an_1_type.code:case Ra.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return vD(Hm(t))?Ra.Infer_type_of_0_from_usage:Ra.Infer_parameter_types_from_usage;case Ra.Rest_parameter_0_implicitly_has_an_any_type.code:case Ra.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Ra.Infer_parameter_types_from_usage;case Ra.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return Ra.Infer_this_type_of_0_from_usage;default:return Ra.Infer_type_of_0_from_usage}}function Voe(e,t,n,r,i,o,a,s,c){if(!hu(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,u=Pte(t,i,c,s);switch(r=function(e){switch(e){case Ra.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return Ra.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case Ra.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ra.Variable_0_implicitly_has_an_1_type.code;case Ra.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ra.Parameter_0_implicitly_has_an_1_type.code;case Ra.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Ra.Rest_parameter_0_implicitly_has_an_any_type.code;case Ra.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return Ra.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case Ra._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return Ra._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case Ra.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return Ra.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case Ra.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ra.Member_0_implicitly_has_an_1_type.code}return e}(r)){case Ra.Member_0_implicitly_has_an_1_type.code:case Ra.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(GN(l)&&a(l)||fD(l)||dD(l))return Koe(e,u,t,l,i,s,o),u.writeFixes(e),l;if(QD(l)){const n=sZ(Goe(l.name,i,o),l,i,s);if(n){const r=FC.createJSDocTypeTag(void 0,FC.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,xt(l.parent.parent,IN),[r])}return u.writeFixes(e),l}return;case Ra.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&GN(t.valueDeclaration)&&a(t.valueDeclaration)?(Koe(e,u,Ff(t.valueDeclaration),t.valueDeclaration,i,s,o),u.writeFixes(e),t.valueDeclaration):void 0}}const _=Hm(n);if(void 0===_)return;let d;switch(r){case Ra.Parameter_0_implicitly_has_an_1_type.code:if(vD(_)){Uoe(e,u,t,_,i,s,o),d=_;break}case Ra.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(_)){const n=xt(l,uD);!function(e,t,n,r,i,o,a,s){if(!qE(r.name))return;const c=function(e,t,n,r){const i=Xoe(e,t,n,r);return i&&Yoe(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:qE(e.name)?Goe(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(Fn.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Pg(i))Woe(e,n,c,o,a);else{const r=aN(i)&&!yX(i,21,n);r&&e.insertNodeBefore(n,Le(i.parameters),FC.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||qoe(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,Be(i.parameters),FC.createToken(22))}}(e,u,t,n,_,i,s,o),d=n}break;case Ra.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case Ra._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:yD(_)&&qE(_.name)&&(qoe(e,u,t,_,Goe(_.name,i,o),i,s),d=_);break;case Ra.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:vD(_)&&(Uoe(e,u,t,_,i,s,o),d=_);break;case Ra.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:upe.isThisTypeAnnotatable(_)&&a(_)&&(function(e,t,n,r,i,o){const a=Xoe(n,t,r,o);if(!a||!a.length)return;const s=sZ(Yoe(r,a,o).thisParameter(),n,r,i);s&&(Pg(n)?function(e,t,n,r){e.addJSDocTags(t,n,[FC.createJSDocThisTag(void 0,FC.createJSDocTypeExpression(r))])}(e,t,n,s):e.tryInsertThisTypeAnnotation(t,n,s))}(e,t,_,i,s,o),d=_);break;default:return Fn.fail(String(r))}return u.writeFixes(e),d}function Koe(e,t,n,r,i,o,a){qE(r.name)&&qoe(e,t,n,r,Goe(r.name,i,a),i,o)}function Uoe(e,t,n,r,i,o,a){const s=Oe(r.parameters);if(s&&qE(r.name)&&qE(s.name)){let c=Goe(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=Goe(s.name,i,a)),Pg(r)?Woe(e,n,[{declaration:s,type:c}],i,o):qoe(e,t,n,s,c,i,o)}}function qoe(e,t,n,r,i,o,a){const s=sZ(i,r,o,a);if(s)if(Pg(n)&&171!==r.kind){const t=GN(r)?bt(r.parent.parent,PN):r;if(!t)return;const i=FC.createJSDocTypeExpression(s),o=yD(r)?FC.createJSDocReturnTag(void 0,i,void 0):FC.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=Eae(e,o);return!(!a||!r.tryInsertTypeAnnotation(n,t,a.typeNode))&&(w(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0)})(s,r,n,e,t,HS(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function Woe(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=te(n,(e=>{const t=e.declaration;if(t.initializer||vl(t)||!qE(t.name))return;const n=e.type&&sZ(e.type,t,r,i);return n?(rw(FC.cloneNode(t.name),7168),{name:FC.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}):void 0}));if(a.length)if(aN(o)||oN(o)){const n=aN(o)&&!yX(o,21,t);n&&e.insertNodeBefore(t,Le(o.parameters),FC.createToken(21)),w(a,(({typeNode:n,param:r})=>{const i=FC.createJSDocTypeTag(void 0,FC.createJSDocTypeExpression(n)),o=FC.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,Be(o.parameters),FC.createToken(22))}else{const n=q(a,(({name:e,typeNode:t,isOptional:n})=>FC.createJSDocParameterTag(void 0,e,!!n,FC.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function Hoe(e,t,n){return te(Yue.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==Yue.EntryKind.Span?bt(e.node,qE):void 0))}function Goe(e,t,n){return Yoe(t,Hoe(e,t,n),n).single()}function Xoe(e,t,n,r){let i;switch(e.kind){case 176:i=yX(e,137,t);break;case 219:case 218:const n=e.parent;i=(GN(n)||fD(n))&&qE(n.name)?n.name:e.name;break;case 262:case 174:case 173:i=e.name}if(i)return Hoe(i,n,r)}function Yoe(e,t,n){const r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},o=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:function(){return d(c(t))},parameters:function(i){if(0===t.length||!i.parameters)return;const o={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const e of t)n.throwIfCancellationRequested(),l(e,o);const a=[...o.constructs||[],...o.calls||[]];return i.parameters.map(((t,o)=>{const s=[],l=rd(t);let u=!1;for(const e of a)if(e.argumentTypes.length<=o)u=Pg(i),s.push(r.getUndefinedType());else if(l)for(let t=o;t{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const n=new Map;return t.forEach(((e,t)=>{n.set(t,s(e))})),{isNumber:e.some((e=>e.isNumber)),isString:e.some((e=>e.isString)),isNumberOrString:e.some((e=>e.isNumberOrString)),candidateTypes:X(e,(e=>e.candidateTypes)),properties:n,calls:X(e,(e=>e.calls)),constructs:X(e,(e=>e.constructs)),numberIndex:w(e,(e=>e.numberIndex)),stringIndex:w(e,(e=>e.stringIndex)),candidateThisTypes:X(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){const t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};for(const r of e)n.throwIfCancellationRequested(),l(r,t);return f(t)}function l(e,t){for(;ix(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){h(t,eN(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 226:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const i=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&i.flags?h(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?h(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:h(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||260!==e.parent.parent.kind&&!Hb(e.parent.parent,!0)||h(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){h(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214:e.parent.expression===e?function(e,t){const n={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(r.getTypeAtLocation(t));l(e,n.return_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):u(e,t);break;case 211:!function(e,t){const n=Pc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,r),t.properties.set(n,r)}(e.parent,t);break;case 212:!function(e,t,n){if(t!==e.argumentExpression){const t=r.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,i),296&t.flags?n.numberIndex=i:n.stringIndex=i}else n.isNumberOrString=!0}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=GN(e.parent.parent)?e.parent.parent:e.parent;y(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){y(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{const{name:n,initializer:i}=e.parent;if(e===n){i&&h(t,r.getTypeAtLocation(i));break}}default:return u(e,t)}}function u(e,t){xg(e)&&h(t,r.getContextualType(e))}function _(e){return d(f(e))}function d(e){if(!e.length)return r.getAnyType();const t=r.getUnionType([r.getStringType(),r.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(Fn.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&tS(e)),low:e=>!!(16&tS(e))}]);const i=n.filter((e=>16&tS(e)));return i.length&&(n=n.filter((e=>!(16&tS(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],i=[],o=[];let a=!1,s=!1;const c=_t();for(const l of e){for(const e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));const e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),a=a||e.isReadonly);const u=r.getIndexInfoOfType(l,1);u&&(o.push(u.type),s=s||u.isReadonly)}const l=ce(c,((t,n)=>{const i=n.lengthr.getBaseTypeOfLiteralType(e))),u=(null==(s=e.calls)?void 0:s.length)?p(e):void 0;return u&&l?c.push(r.getUnionType([u,...l],2)):(u&&c.push(u),C(l)&&c.push(...l)),c.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=o.filter((t=>function(e,t){return!!t.properties&&!mf(t.properties,((t,n)=>{const i=r.getTypeOfPropertyOfType(e,n);return!i||(t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,(o=t.calls,r.createAnonymousType(void 0,cf(),[g(o)],a,a))):!r.isTypeAssignableTo(i,_(t)));var o}))}(t,e)));return 0function(e,t){if(!(4&tS(e)&&t.properties))return e;const n=e.target,o=Je(n.typeParameters);if(!o)return e;const a=[];return t.properties.forEach(((e,t)=>{const i=r.getTypeOfPropertyOfType(n,t);Fn.assert(!!i,"generic should have all the properties of its reference."),a.push(...m(i,_(e),o))})),i[e.symbol.escapedName](d(a))}(t,e))):[]}(e)),c}function p(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const i=r.createSymbol(4,n);i.links.type=_(e),t.set(n,i)}));const n=e.calls?[g(e.calls)]:[],i=e.constructs?[g(e.constructs)]:[],o=e.stringIndex?[r.createIndexInfo(r.getStringType(),_(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,o)}function m(e,t,n){if(e===n)return[t];if(3145728&e.flags)return X(e.types,(e=>m(e,t,n)));if(4&tS(e)&&4&tS(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;ee.argumentTypes.length)));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[i]))&&(n.flags|=16777216),t.push(n)}const i=_(s(e.map((e=>e.return_))));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function y(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}var Qoe,Zoe,eae=S({"src/services/codefixes/inferFromUsage.ts"(){hge(),mce(),Boe="inferFromUsage",R5({errorCodes:Joe=[Ra.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,Ra.Variable_0_implicitly_has_an_1_type.code,Ra.Parameter_0_implicitly_has_an_1_type.code,Ra.Rest_parameter_0_implicitly_has_an_any_type.code,Ra.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,Ra._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,Ra.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,Ra.Member_0_implicitly_has_an_1_type.code,Ra.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,Ra.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Ra.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Ra.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,Ra.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,Ra._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,Ra.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,Ra.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Ra.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=PX(t,r);let l;const u=upe.ChangeTracker.with(e,(e=>{l=Voe(e,t,c,i,n,o,Tt,a,s)})),_=l&&$c(l);return _&&0!==u.length?[O5(Boe,u,[$oe(i,c),op(_)],Boe,Ra.Infer_all_types_from_usage)]:void 0},fixIds:[Boe],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=CY();return V5(e,Joe,((e,s)=>{Voe(e,t,PX(s.file,s.start),s.code,n,r,a,i,o)}))}})}});function tae(e,t,n){if(Pg(e))return;const r=Dc(PX(e,n),Cu),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function nae(e,t,n,r){e.replaceNode(t,n,FC.createTypeReferenceNode("Promise",[r]))}var rae,iae,oae,aae=S({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){hge(),mce(),Qoe="fixReturnTypeInAsyncFunction",R5({errorCodes:Zoe=[Ra.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],fixIds:[Qoe],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=tae(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,u=upe.ChangeTracker.with(e,(e=>nae(e,t,a,c)));return[O5(Qoe,u,[Ra.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],Qoe,Ra.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>V5(e,Zoe,((t,n)=>{const r=tae(n.file,e.program.getTypeChecker(),n.start);r&&nae(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))})}});function sae(e,t,n,r){const{line:i}=gs(t,n);r&&!oe(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}var cae,lae=S({"src/services/codefixes/disableJsDiagnostics.ts"(){hge(),mce(),rae="disableJsDiagnostics",iae="disableJsDiagnostics",R5({errorCodes:oae=te(Object.keys(Ra),(e=>{const t=Ra[e];return 1===t.category?t.code:void 0})),getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Pg(t)||!dT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":SQ(i,o.options),s=[I5(rae,[$5(t.fileName,[bY(t.checkJsDirective?_c(t.checkJsDirective.pos,t.checkJsDirective.end):uc(0,0),`// @ts-nocheck${a}`)])],Ra.Disable_checking_for_this_file)];return upe.isValidLocationToAddComment(t,r.start)&&s.unshift(O5(rae,upe.ChangeTracker.with(e,(e=>sae(e,t,r.start))),Ra.Ignore_this_error_message,iae,Ra.Add_ts_ignore_to_all_error_messages)),s},fixIds:[iae],getAllCodeActions:e=>{const t=new Set;return V5(e,oae,((e,n)=>{upe.isValidLocationToAddComment(n.file,n.start)&&sae(e,n.file,n.start,t)}))}})}});function uae(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||dae(c,e,n,r,i,o,a,void 0)}function _ae(e){return{trackSymbol:()=>!1,moduleResolverHost:OY(e.program,e.host)}}function dae(e,t,n,r,i,o,s,c,l=3,u=!1){const _=e.getDeclarations(),d=Oe(_),f=r.program.getTypeChecker(),p=HS(r.program.getCompilerOptions()),m=(null==d?void 0:d.kind)??171,g=function(e,t){if(262144&$x(e)){const t=e.links.nameType;if(t&&gC(t))return FC.createIdentifier(Fc(hC(t)))}return LQ($c(t),!1)}(e,d),h=d?Pb(d):0;let y=32&h;y|=4&h?4:16&h?16:0,d&&Iu(d)&&(y|=128);const v=function(){let e;return y&&(e=Te(e,FC.createModifiersFromModifierFlags(y))),r.program.getCompilerOptions().noImplicitOverride&&d&&kb(d)&&(e=ke(e,FC.createToken(164))),e&&FC.createNodeArray(e)}(),b=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),x=!!(16777216&e.flags),S=!!(33554432&t.flags)||u,k=JY(n,i);switch(m){case 171:case 172:const n=0===k?268435456:void 0;let i=f.typeToTypeNode(b,t,n,_ae(r));if(o){const e=Eae(i,p);e&&(i=e.typeNode,Nae(o,e.symbols))}s(FC.createPropertyDeclaration(v,d?w(g):e.getName(),x&&2&l?FC.createToken(58):void 0,i,void 0));break;case 177:case 178:{Fn.assertIsDefined(_);let e=f.typeToTypeNode(b,t,void 0,_ae(r));const n=nb(_,d),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=Eae(e,p);t&&(e=t.typeNode,Nae(o,t.symbols))}for(const t of i)if(yD(t))s(FC.createGetAccessorDeclaration(v,w(g),a,D(e),E(c,k,S)));else{Fn.assertNode(t,vD,"The counterpart to a getter should be a setter");const n=Hv(t),r=n&&qE(n.name)?Ic(n.name):void 0;s(FC.createSetAccessorDeclaration(v,w(g),bae(1,[r],[D(e)],1,!1),E(c,k,S)))}break}case 173:case 174:Fn.assertIsDefined(_);const u=b.isUnion()?X(b.types,(e=>e.getCallSignatures())):b.getCallSignatures();if(!le(u))break;if(1===_.length){Fn.assert(1===u.length,"One declaration implies one signature");const e=u[0];T(k,e,v,w(g),E(c,k,S));break}for(const e of u)T(k,e,v,w(g));if(!S)if(_.length>u.length){const e=f.getSignatureFromDeclaration(_[_.length-1]);T(k,e,v,w(g),E(c,k))}else Fn.assert(_.length===u.length,"Declarations and signatures should match count"),s(function(e,t,n,r,i,o,a,s,c){let l=r[0],u=r[0].minArgumentCount,_=!1;for(const e of r)u=Math.min(e.minArgumentCount,u),DB(e)&&(_=!0),e.parameters.length>=l.parameters.length&&(!DB(e)||DB(l))&&(l=e);const d=l.parameters.length-(DB(l)?1:0),f=l.parameters.map((e=>e.name)),p=bae(d,f,void 0,u,!1);if(_){const e=FC.createParameterDeclaration(void 0,FC.createToken(26),f[d]||"rest",d>=u?FC.createToken(58):void 0,FC.createArrayTypeNode(FC.createKeywordTypeNode(159)),void 0);p.push(e)}return function(e,t,n,r,i,o,a,s){return FC.createMethodDeclaration(e,void 0,t,n?FC.createToken(58):void 0,void 0,i,o,s||xae(a))}(a,i,o,0,p,function(e,t,n,r){if(C(e)){const i=t.getUnionType(q(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,_ae(n))}}(r,e,t,n),s,c)}(f,r,t,u,w(g),x&&!!(1&l),v,k,c))}function T(e,n,i,a,c){const u=fae(174,r,e,n,c,a,i,x&&!!(1&l),t,o);u&&s(u)}function w(e){return qE(e)&&"constructor"===e.escapedText?FC.createComputedPropertyName(FC.createStringLiteral(Ic(e),0===k)):LQ(e,!1)}function E(e,t,n){return n?void 0:LQ(e,!1)||xae(t)}function D(e){return LQ(e,!1)}}function fae(e,t,n,r,i,o,a,s,c,l){const u=t.program,_=u.getTypeChecker(),d=HS(u.getCompilerOptions()),f=Pg(c),p=524545|(0===n?268435456:0),m=_.signatureToSignatureDeclaration(r,e,c,p,_ae(t));if(!m)return;let g=f?void 0:m.typeParameters,h=m.parameters,y=f?void 0:m.type;if(l){if(g){const e=H(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=Eae(t,d);e&&(t=e.typeNode,Nae(l,e.symbols))}if(n){const e=Eae(n,d);e&&(n=e.typeNode,Nae(l,e.symbols))}return FC.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=tI(FC.createNodeArray(e,g.hasTrailingComma),g))}const e=H(h,(e=>{let t=f?void 0:e.type;if(t){const e=Eae(t,d);e&&(t=e.typeNode,Nae(l,e.symbols))}return FC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,f?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=tI(FC.createNodeArray(e,h.hasTrailingComma),h)),y){const e=Eae(y,d);e&&(y=e.typeNode,Nae(l,e.symbols))}}const v=s?FC.createToken(58):void 0,b=m.asteriskToken;return oN(m)?FC.updateFunctionExpression(m,a,m.asteriskToken,bt(o,qE),g,h,y,i??m.body):aN(m)?FC.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):mD(m)?FC.updateMethodDeclaration(m,a,b,o??FC.createIdentifier(""),v,g,h,y,i):YN(m)?FC.updateFunctionDeclaration(m,a,m.asteriskToken,bt(o,qE),g,h,y,i??m.body):void 0}function pae(e,t,n,r,i,o,a){const s=JY(t.sourceFile,t.preferences),c=HS(t.program.getCompilerOptions()),l=_ae(t),u=t.program.getTypeChecker(),_=Pg(a),{typeArguments:d,arguments:f,parent:p}=r,m=_?void 0:u.getContextualType(r),g=q(f,(e=>qE(e)?e.text:QD(e)&&qE(e.name)?e.name.text:void 0)),h=_?[]:q(f,(e=>u.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=yae(u,n,h,a,c,1,l),b=o?FC.createNodeArray(FC.createModifiersFromModifierFlags(o)):void 0,x=gN(p)?FC.createToken(42):void 0,S=_?void 0:function(e,t,n){const r=new Set(t.map((e=>e[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size{var t;return FC.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(u,v,d),k=bae(f.length,g,y,void 0,_),T=_||void 0===m?void 0:u.typeToTypeNode(m,a,void 0,l);switch(e){case 174:return FC.createMethodDeclaration(b,x,i,void 0,S,k,T,xae(s));case 173:return FC.createMethodSignature(b,i,void 0,S,k,void 0===T?FC.createKeywordTypeNode(159):T);case 262:return Fn.assert("string"==typeof i||qE(i),"Unexpected name"),FC.createFunctionDeclaration(b,x,i,S,k,T,Sae(Ra.Function_not_implemented.message,s));default:Fn.fail("Unexpected kind")}}function mae(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function gae(e,t,n,r,i,o,a){let s=e.typeToTypeNode(n,r,o,a);if(s&&KD(s)){const e=Eae(s,i);e&&(Nae(t,e.symbols),s=e.typeNode)}return LQ(s)}function hae(e){return e.isUnionOrIntersection()?e.types.some(hae):262144&e.flags}function yae(e,t,n,r,i,o,a){const s=[],c=new Map;for(let u=0;u=r?FC.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||FC.createKeywordTypeNode(159),void 0);o.push(l)}return o}function xae(e){return Sae(Ra.Method_not_implemented.message,e)}function Sae(e,t){return FC.createBlock([FC.createThrowStatement(FC.createNewExpression(FC.createIdentifier("Error"),void 0,[FC.createStringLiteral(e,0===t)]))],!0)}function kae(e,t,n){const r=Um(t);if(!r)return;const i=wae(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,Cae("compilerOptions",FC.createObjectLiteralExpression(n.map((([e,t])=>Cae(e,t))),!0)));const o=i.initializer;if(YD(o))for(const[r,i]of n){const n=wae(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,Cae(r,i)):e.replaceNode(t,n.initializer,i)}}function Tae(e,t,n,r){kae(e,t,[[n,r]])}function Cae(e,t){return FC.createPropertyAssignment(FC.createStringLiteral(e),t)}function wae(e,t){return O(e.properties,(e=>JA(e)&&!!e.name&&NE(e.name)&&e.name.text===t))}function Eae(e,t){let n;const r=FB(e,(function e(r){if(gm(r)&&r.qualifier){const i=Zb(r.qualifier),o=MZ(i.symbol,t),a=o!==i.text?Dae(r.qualifier,FC.createIdentifier(o)):r.qualifier;n=ke(n,i.symbol);const s=IB(r.typeArguments,e,Ju);return FC.createTypeReferenceNode(a,s)}return $B(r,e,P$)}),Ju);if(n&&r)return{typeNode:r,symbols:n}}function Dae(e,t){return 80===e.kind?t:FC.createQualifiedName(Dae(e.left,t),e.right)}function Nae(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function Aae(e,t){const n=Qs(t);let r=PX(e,t.start);for(;r.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(cae||{})}});function Fae(e,t,n,r,i,o){const a=Lae(e,t,n,r);if(!a||U8.isRefactorErrorInfo(a))return;const s=upe.ChangeTracker.fromContext(i),{isStatic:c,isReadonly:l,fieldName:u,accessorName:_,originalName:d,type:f,container:p,declaration:m}=a;let g,h;if(zQ(u),zQ(_),zQ(m),zQ(p),Pu(p)){const t=Pb(m);if(Ng(e)){const e=FC.createModifiersFromModifierFlags(t);g=e,h=e}else g=FC.createModifiersFromModifierFlags(function(e){return e&=-65,16&(e&=-9)||(e|=4),e}(t)),h=FC.createModifiersFromModifierFlags(function(e){return e&=-5,8|(e&=-17)}(t));rI(m)&&(h=_e(Kc(m),h))}!function(e,t,n,r,i,o){fD(n)?function(e,t,n,r,i,o){const a=FC.updatePropertyDeclaration(n,o,i,n.questionToken||n.exclamationToken,r,n.initializer);e.replaceNode(t,n,a)}(e,t,n,r,i,o):JA(n)?function(e,t,n,r){let i=FC.updatePropertyAssignment(n,r,n.initializer);(i.modifiers||i.questionToken||i.exclamationToken)&&(i===n&&(i=FC.cloneNode(i)),i.modifiers=void 0,i.questionToken=void 0,i.exclamationToken=void 0),e.replacePropertyAssignment(t,n,i)}(e,t,n,i):e.replaceNode(t,n,FC.updateParameterDeclaration(n,o,n.dotDotDotToken,xt(i,qE),n.questionToken,n.type,n.initializer))}(s,e,m,f,u,h);const y=function(e,t,n,r,i,o){return FC.createGetAccessorDeclaration(r,t,[],n,FC.createBlock([FC.createReturnStatement(Mae(e,i,o))],!0))}(u,_,f,g,c,p);if(zQ(y),Rae(s,e,y,m,p),l){const t=Wv(p);t&&function(e,t,n,r,i){n.body&&n.body.forEachChild((function n(o){ZD(o)&&110===o.expression.kind&&NE(o.argumentExpression)&&o.argumentExpression.text===i&&Wx(o)&&e.replaceNode(t,o.argumentExpression,FC.createStringLiteral(r)),QD(o)&&110===o.expression.kind&&o.name.text===i&&Wx(o)&&e.replaceNode(t,o.name,FC.createIdentifier(r)),ku(o)||Pu(o)||o.forEachChild(n)}))}(s,e,t,u.text,d)}else{const t=function(e,t,n,r,i,o){return FC.createSetAccessorDeclaration(r,t,[FC.createParameterDeclaration(void 0,void 0,FC.createIdentifier("value"),void 0,n)],FC.createBlock([FC.createExpressionStatement(FC.createAssignment(Mae(e,i,o),FC.createIdentifier("value")))],!0))}(u,_,f,g,c,p);zQ(t),Rae(s,e,t,m,p)}return s.getChanges()}function Iae(e){return hc(e,e.parent)||fD(e)||JA(e)}function Oae(e,t){return qE(t)?FC.createIdentifier(e):FC.createStringLiteral(e)}function Mae(e,t,n){const r=t?n.name:FC.createThis();return qE(e)?FC.createPropertyAccessExpression(r,e):FC.createElementAccessExpression(r,FC.createStringLiteralFromNode(e))}function Lae(e,t,n,r,i=!0){const o=n===r&&i,a=Dc(PX(e,n).parent,Iae);if(!a||!_X(a.name,e,n,r)&&!o)return{error:DS(Ra.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return qE(e)||NE(e)}(a.name))return{error:DS(Ra.Name_is_not_valid)};if(124!=(126975&Pb(a)|124))return{error:DS(Ra.Can_only_convert_property_with_modifier)};const s=a.name.text,c=JZ(s),l=Oae(c?s:WQ(`_${s}`,e),a.name),u=Oae(c?WQ(s.substring(1),e):s,a.name);return{isStatic:xb(a),isReadonly:wb(a),type:jae(a,t),container:169===a.kind?a.parent.parent:a.parent,originalName:a.name.text,declaration:a,fieldName:l,accessorName:u,renameAccessor:c}}function Rae(e,t,n,r,i){hc(r,r.parent)?e.insertMemberAtStart(t,i,n):JA(r)?e.insertNodeAfterComma(t,r,n):e.insertNodeAfter(t,r,n)}function jae(e,t){const n=ib(e);if(fD(e)&&n&&e.questionToken){const e=t.getTypeChecker(),r=e.getTypeFromTypeNode(n);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=OD(n)?n.types:[n];return FC.createUnionTypeNode([...e,FC.createKeywordTypeNode(157)])}}return n}function Bae(e,t){const n=[];for(;e;){const r=gy(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;const o=2097152&i.flags?t.getAliasedSymbol(i):i,a=o.declarations&&O(o.declarations,Pu);if(!a)break;n.push(a),e=a}return n}var Jae,zae=S({"src/services/codefixes/generateAccessors.ts"(){hge()}});function $ae(e,t,n,r){const i=upe.ChangeTracker.with(e,(e=>e.replaceNode(t,n,r)));return I5(Jae,i,[Ra.Replace_import_with_0,i[0].textChanges[0].newText])}function Vae(e){const t=e.sourceFile,n=Ra.This_expression_is_not_callable.code===e.errorCode?213:214,r=Dc(PX(t,e.span.start),(e=>e.kind===n));return r?Uae(e,r.expression):[]}function Kae(e){const t=Dc(PX(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?Uae(e,t):[]}function Uae(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&lf(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(pm(i)||we(r,function(e,t){const n=Ff(t),r=Sh(t),i=e.program.getCompilerOptions(),o=[];return o.push($ae(e,n,t,RY(r.name,void 0,t.moduleSpecifier,JY(n,e.preferences)))),1===GS(i)&&o.push($ae(e,n,t,FC.createImportEqualsDeclaration(void 0,!1,r.name,FC.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),l_(t)&&(!Jc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=upe.ChangeTracker.with(e,(e=>e.replaceNode(n,t,FC.createPropertyAccessExpression(t,"default"),{})));r.push(I5(Jae,i,Ra.Use_synthetic_default_member))}return r}var qae,Wae,Hae,Gae,Xae,Yae=S({"src/services/codefixes/fixInvalidImportSyntax.ts"(){hge(),mce(),Jae="invalidImportSyntax",R5({errorCodes:[Ra.This_expression_is_not_callable.code,Ra.This_expression_is_not_constructable.code],getCodeActions:Vae}),R5({errorCodes:[Ra.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ra.Type_0_does_not_satisfy_the_constraint_1.code,Ra.Type_0_is_not_assignable_to_type_1.code,Ra.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Ra.Type_predicate_0_is_not_assignable_to_1.code,Ra.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,Ra._0_index_type_1_is_not_assignable_to_2_index_type_3.code,Ra.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,Ra.Property_0_in_type_1_is_not_assignable_to_type_2.code,Ra.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,Ra.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Kae})}});function Qae(e,t){const n=PX(e,t);if(qE(n)&&fD(n.parent)){const e=rb(n.parent);if(e)return{type:e,prop:n.parent,isJs:Pg(n.parent)}}}function Zae(e,t,n){zQ(n);const r=FC.updatePropertyDeclaration(n,n.modifiers,n.name,FC.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function ese(e,t,n){const r=FC.createKeywordTypeNode(157),i=OD(n.type)?n.type.types.concat(r):[n.type,r],o=FC.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[FC.createJSDocTypeTag(void 0,FC.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function tse(e,t,n,r){zQ(n);const i=FC.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function nse(e,t){return rse(e,e.getTypeFromTypeNode(t.type))}function rse(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?FC.createFalse():FC.createTrue();if(t.isStringLiteral())return FC.createStringLiteral(t.value);if(t.isNumberLiteral())return FC.createNumericLiteral(t.value);if(2048&t.flags)return FC.createBigIntLiteral(t.value);if(t.isUnion())return D(t.types,(t=>rse(e,t)));if(t.isClass()){const e=eS(t.symbol);if(!e||vb(e,256))return;const n=Wv(e);if(n&&n.parameters.length)return;return FC.createNewExpression(FC.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?FC.createArrayLiteralExpression():void 0}var ise,ose,ase=S({"src/services/codefixes/fixStrictClassInitialization.ts"(){hge(),mce(),qae="strictClassInitialization",Wae="addMissingPropertyDefiniteAssignmentAssertions",Hae="addMissingPropertyUndefinedType",Gae="addMissingPropertyInitializer",R5({errorCodes:Xae=[Ra.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],getCodeActions:function(e){const t=Qae(e.sourceFile,e.span.start);if(!t)return;const n=[];return ke(n,function(e,t){const n=upe.ChangeTracker.with(e,(n=>ese(n,e.sourceFile,t)));return O5(qae,n,[Ra.Add_undefined_type_to_property_0,t.prop.name.getText()],Hae,Ra.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),ke(n,function(e,t){if(t.isJs)return;const n=upe.ChangeTracker.with(e,(n=>Zae(n,e.sourceFile,t.prop)));return O5(qae,n,[Ra.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],Wae,Ra.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),ke(n,function(e,t){if(t.isJs)return;const n=nse(e.program.getTypeChecker(),t.prop);if(!n)return;const r=upe.ChangeTracker.with(e,(r=>tse(r,e.sourceFile,t.prop,n)));return O5(qae,r,[Ra.Add_initializer_to_property_0,t.prop.name.getText()],Gae,Ra.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[Wae,Hae,Gae],getAllCodeActions:e=>V5(e,Xae,((t,n)=>{const r=Qae(n.file,n.start);if(r)switch(e.fixId){case Wae:Zae(t,n.file,r.prop);break;case Hae:ese(t,n.file,r);break;case Gae:const i=nse(e.program.getTypeChecker(),r.prop);if(!i)return;tse(t,n.file,r.prop,i);break;default:Fn.fail(JSON.stringify(e.fixId))}}))})}});function sse(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,required:s}=n;e.replaceNode(t,a,i&&!r?FC.createImportEqualsDeclaration(void 0,!1,i,FC.createExternalModuleReference(s)):FC.createImportDeclaration(void 0,FC.createImportClause(!1,i,o),s,void 0))}function cse(e,t,n){const{parent:r}=PX(e,n);Lg(r,!0)||Fn.failBadSyntaxKind(r);const i=xt(r.parent,GN),o=bt(i.name,qE),a=WD(i.name)?function(e){const t=[];for(const n of e.elements){if(!qE(n.name)||n.initializer)return;t.push(FC.createImportSpecifier(!1,bt(n.propertyName,qE),n.name))}if(t.length)return FC.createNamedImports(t)}(i.name):void 0;if(o||a)return{allowSyntheticDefaults:ak(t.getCompilerOptions()),defaultImportName:o,namedImports:a,statement:xt(i.parent.parent,PN),required:Le(r.arguments)}}var lse,use,_se=S({"src/services/codefixes/requireInTs.ts"(){hge(),mce(),ise="requireInTs",R5({errorCodes:ose=[Ra.require_call_may_be_converted_to_an_import.code],getCodeActions(e){const t=cse(e.sourceFile,e.program,e.span.start);if(!t)return;const n=upe.ChangeTracker.with(e,(n=>sse(n,e.sourceFile,t)));return[O5(ise,n,Ra.Convert_require_to_import,ise,Ra.Convert_all_require_to_import)]},fixIds:[ise],getAllCodeActions:e=>V5(e,ose,((t,n)=>{const r=cse(n.file,e.program,n.start);r&&sse(t,e.sourceFile,r)}))})}});function dse(e,t){const n=PX(e,t);if(!qE(n))return;const{parent:r}=n;if(aA(r)&&kA(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(dA(r)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function fse(e,t,n,r){e.replaceNode(t,n.importNode,RY(n.name,void 0,n.moduleSpecifier,JY(t,r)))}var pse,mse,gse=S({"src/services/codefixes/useDefaultImport.ts"(){hge(),mce(),lse="useDefaultImport",R5({errorCodes:use=[Ra.Import_may_be_converted_to_a_default_import.code],getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=dse(t,n);if(!r)return;const i=upe.ChangeTracker.with(e,(n=>fse(n,t,r,e.preferences)));return[O5(lse,i,Ra.Convert_to_default_import,lse,Ra.Convert_all_to_default_imports)]},fixIds:[lse],getAllCodeActions:e=>V5(e,use,((t,n)=>{const r=dse(n.file,n.start);r&&fse(t,n.file,r,e.preferences)}))})}});function hse(e,t,n){const r=bt(PX(t,n.start),EE);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,FC.createBigIntLiteral(i))}var yse,vse,bse=S({"src/services/codefixes/useBigintLiteral.ts"(){hge(),mce(),pse="useBigintLiteral",R5({errorCodes:mse=[Ra.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>hse(t,e.sourceFile,e.span)));if(t.length>0)return[O5(pse,t,Ra.Convert_to_a_bigint_numeric_literal,pse,Ra.Convert_all_to_bigint_numeric_literals)]},fixIds:[pse],getAllCodeActions:e=>V5(e,mse,((e,t)=>hse(e,t.file,t)))})}});function xse(e,t){const n=PX(e,t);return Fn.assert(102===n.kind,"This token should be an ImportKeyword"),Fn.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Sse(e,t,n){const r=FC.updateImportTypeNode(n,n.argument,n.assertions,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}var kse,Tse,Cse=S({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){hge(),mce(),yse="fixAddModuleReferTypeMissingTypeof",R5({errorCodes:vse=[Ra.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=xse(t,n.start),i=upe.ChangeTracker.with(e,(e=>Sse(e,t,r)));return[O5(yse,i,Ra.Add_missing_typeof,yse,Ra.Add_missing_typeof)]},fixIds:[yse],getAllCodeActions:e=>V5(e,vse,((t,n)=>Sse(t,e.sourceFile,xse(n.file,n.start))))})}});function wse(e,t){let n=PX(e,t).parent.parent;if((fN(n)||(n=n.parent,fN(n)))&&Jf(n.operatorToken))return n}function Ese(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(fN(n)&&Jf(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),R_(n.right))return t.push(n.right),t;if(fN(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,FC.createJsxFragment(FC.createJsxOpeningFragment(),r,FC.createJsxJsxClosingFragment()))}var Dse,Nse,Ase=S({"src/services/codefixes/wrapJsxInFragment.ts"(){hge(),mce(),kse="wrapJsxInFragment",R5({errorCodes:Tse=[Ra.JSX_expressions_must_have_one_parent_element.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=wse(t,n.start);if(!r)return;const i=upe.ChangeTracker.with(e,(e=>Ese(e,t,r)));return[O5(kse,i,Ra.Wrap_in_JSX_fragment,kse,Ra.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[kse],getAllCodeActions:e=>V5(e,Tse,((t,n)=>{const r=wse(e.sourceFile,n.start);r&&Ese(t,e.sourceFile,r)}))})}});function Pse(e,t){const n=bt(PX(e,t).parent.parent,SD);if(!n)return;const r=ZN(n.parent)?n.parent:bt(n.parent.parent,eA);return r?{indexSignature:n,container:r}:void 0}function Fse(e,t,{indexSignature:n,container:r}){const i=(ZN(r)?r.members:r.type.members).filter((e=>!SD(e))),o=Le(n.parameters),s=FC.createTypeParameterDeclaration(void 0,xt(o.name,qE),o.type),c=FC.createMappedTypeNode(wb(n)?FC.createModifier(148):void 0,s,void 0,n.questionToken,n.type,void 0),l=FC.createIntersectionTypeNode([...yy(r),c,...i.length?[FC.createTypeLiteralNode(i)]:a]);var u,_;e.replaceNode(t,r,(u=r,_=l,FC.createTypeAliasDeclaration(u.modifiers,u.name,u.typeParameters,_)))}var Ise,Ose,Mse,Lse=S({"src/services/codefixes/convertToMappedObjectType.ts"(){hge(),mce(),Dse="fixConvertToMappedObjectType",R5({errorCodes:Nse=[Ra.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Pse(t,n.start);if(!r)return;const i=upe.ChangeTracker.with(e,(e=>Fse(e,t,r))),o=Ic(r.container.name);return[O5(Dse,i,[Ra.Convert_0_to_mapped_object_type,o],Dse,[Ra.Convert_0_to_mapped_object_type,o])]},fixIds:[Dse],getAllCodeActions:e=>V5(e,Nse,((e,t)=>{const n=Pse(t.file,t.start);n&&Fse(e,t.file,n)}))})}}),Rse=S({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){hge(),mce(),Ise="removeAccidentalCallParentheses",R5({errorCodes:[Ra.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=Dc(PX(e.sourceFile,e.span.start),eN);if(!t)return;const n=upe.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[I5(Ise,n,Ra.Remove_parentheses)]},fixIds:[Ise]})}});function jse(e,t,n){const r=bt(PX(t,n.start),(e=>135===e.kind)),i=r&&bt(r.parent,uN);if(!i)return;let o=i;if(iN(i.parent)&&qE(mS(i.expression,!1))){const e=LX(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}e.replaceNode(t,o,i.expression)}var Bse,Jse,zse=S({"src/services/codefixes/removeUnnecessaryAwait.ts"(){hge(),mce(),Ose="removeUnnecessaryAwait",R5({errorCodes:Mse=[Ra.await_has_no_effect_on_the_type_of_this_expression.code],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>jse(t,e.sourceFile,e.span)));if(t.length>0)return[O5(Ose,t,Ra.Remove_unnecessary_await,Ose,Ra.Remove_all_unnecessary_uses_of_await)]},fixIds:[Ose],getAllCodeActions:e=>V5(e,Mse,((e,t)=>jse(e,t.file,t)))})}});function $se(e,t){return Dc(PX(e,t.start),sA)}function Vse(e,t,n){if(!t)return;const r=Fn.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,FC.updateImportDeclaration(t,t.modifiers,FC.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.assertClause)),e.insertNodeAfter(n.sourceFile,t,FC.createImportDeclaration(void 0,FC.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.assertClause))}var Kse,Use,qse=S({"src/services/codefixes/splitTypeOnlyImport.ts"(){hge(),mce(),R5({errorCodes:Bse=[Ra.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],fixIds:[Jse="splitTypeOnlyImport"],getCodeActions:function(e){const t=upe.ChangeTracker.with(e,(t=>Vse(t,$se(e.sourceFile,e.span),e)));if(t.length)return[O5(Jse,t,Ra.Split_into_two_separate_import_declarations,Jse,Ra.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>V5(e,Bse,((t,n)=>{Vse(t,$se(e.sourceFile,n),e)}))})}});function Wse(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(PX(e,t));if(void 0===i)return;const o=bt(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,XN);if(void 0===o)return;const a=yX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function Hse(e,t,n){e.replaceNode(t,n,FC.createToken(121))}var Gse,Xse,Yse,Qse=S({"src/services/codefixes/convertConstToLet.ts"(){hge(),mce(),Kse="fixConvertConstToLet",R5({errorCodes:Use=[Ra.Cannot_assign_to_0_because_it_is_a_constant.code],getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=Wse(t,n.start,r);if(void 0===i)return;const o=upe.ChangeTracker.with(e,(e=>Hse(e,t,i.token)));return[M5(Kse,o,Ra.Convert_const_to_let,Kse,Ra.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return z5(upe.ChangeTracker.with(e,(r=>{K5(e,Use,(e=>{const i=Wse(e.file,e.start,t);if(i&&aS(n,xB(i.symbol)))return Hse(r,e.file,i.token)}))})))},fixIds:[Kse]})}});function Zse(e,t,n){const r=PX(e,t);return 27===r.kind&&r.parent&&(YD(r.parent)||XD(r.parent))?{node:r}:void 0}function ece(e,t,{node:n}){const r=FC.createToken(28);e.replaceNode(t,n,r)}var tce,nce,rce=S({"src/services/codefixes/fixExpectedComma.ts"(){hge(),mce(),Gse="fixExpectedComma",Xse=Ra._0_expected.code,R5({errorCodes:Yse=[Xse],getCodeActions(e){const{sourceFile:t}=e,n=Zse(t,e.span.start,e.errorCode);if(!n)return;const r=upe.ChangeTracker.with(e,(e=>ece(e,t,n)));return[O5(Gse,r,[Ra.Change_0_to_1,";",","],Gse,[Ra.Change_0_to_1,";",","])]},fixIds:[Gse],getAllCodeActions:e=>V5(e,Yse,((t,n)=>{const r=Zse(n.file,n.start,n.code);r&&ece(t,e.sourceFile,r)}))})}});function ice(e,t,n,r,i){const o=PX(t,n.start);if(!qE(o)||!eN(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!uD(c)||!tN(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Pg(e))return e.typeArguments;if(iN(e.parent)){const n=null==(t=yl(e.parent))?void 0:t.typeExpression.type;if(n&&TD(n)&&qE(n.typeName)&&"Promise"===Ic(n.typeName))return n.typeArguments}}(c.parent.parent);if(le(l)){const n=l[0],r=!OD(n)&&!jD(n)&&jD(FC.createUnionTypeNode([n,FC.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Pg(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,Ts(t.text,c.parent.parent.pos),"/** @type {Promise} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"")}}var oce=S({"src/services/codefixes/fixAddVoidToPromise.ts"(){hge(),mce(),tce="addVoidToPromise",R5({errorCodes:nce=[Ra.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,Ra.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],fixIds:[tce],getCodeActions(e){const t=upe.ChangeTracker.with(e,(t=>ice(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[O5("addVoidToPromise",t,Ra.Add_void_to_Promise_resolved_without_a_value,tce,Ra.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>V5(e,nce,((t,n)=>ice(t,n.file,n,e.program,new Set)))})}}),ace={};k(ace,{PreserveOptionalFlags:()=>cae,addNewNodeForMemberSymbol:()=>dae,codeFixAll:()=>V5,createCodeFixAction:()=>O5,createCodeFixActionMaybeFixAll:()=>M5,createCodeFixActionWithoutFixAll:()=>I5,createCombinedCodeActions:()=>z5,createFileTextChanges:()=>$5,createImportAdder:()=>Pte,createImportSpecifierResolver:()=>Ite,createJsonPropertyAssignment:()=>Cae,createMissingMemberNodes:()=>uae,createSignatureDeclarationFromCallExpression:()=>pae,createSignatureDeclarationFromSignature:()=>fae,createStubbedBody:()=>Sae,eachDiagnostic:()=>K5,findAncestorMatchingSpan:()=>Aae,findJsonProperty:()=>wae,generateAccessorFromProperty:()=>Fae,getAccessorConvertiblePropertyAtPosition:()=>Lae,getAllFixes:()=>J5,getAllSupers:()=>Bae,getArgumentTypesAndTypeParameters:()=>yae,getFixes:()=>B5,getImportCompletionAction:()=>Ote,getImportKind:()=>Gte,getJSDocTypedefNodes:()=>mte,getNoopSymbolTrackerWithResolver:()=>_ae,getPromoteTypeOnlyCompletionAction:()=>Mte,getSupportedErrorCodes:()=>j5,importFixName:()=>Ete,importSymbols:()=>Nae,moduleSpecifierToValidIdentifier:()=>une,moduleSymbolToValidIdentifier:()=>lne,parameterShouldGetTypeFromJSDoc:()=>z9,registerCodeFix:()=>R5,setJsonCompilerOptionValue:()=>Tae,setJsonCompilerOptionValues:()=>kae,tryGetAutoImportableReferenceFromTypeNode:()=>Eae,typeToAutoImportableTypeNode:()=>gae});var sce,cce,lce,uce,_ce,dce,fce,pce,mce=S({"src/services/_namespaces/ts.codefix.ts"(){H5(),Z5(),e9(),s9(),h9(),k9(),E9(),P9(),O9(),B9(),H9(),tee(),Aee(),Gee(),ete(),ote(),_te(),yte(),kte(),Ate(),fne(),xne(),Ene(),Fne(),Lne(),qne(),Wne(),tre(),gre(),Ire(),jre(),Kre(),Xre(),nie(),sie(),_ie(),hie(),yie(),kie(),Nie(),Lie(),zie(),Xie(),Yie(),_oe(),moe(),boe(),Eoe(),Foe(),Roe(),zoe(),eae(),aae(),lae(),Pae(),zae(),Yae(),ase(),_se(),gse(),bse(),Cse(),Ase(),Lse(),Rse(),zse(),qse(),Qse(),rce(),oce()}});function gce(e){return!!(e&&4&e.kind)}function hce(e){return!(!e||32!==e.kind)}function yce(e){return(gce(e)||hce(e))&&!!e.isFromPackageJson}function vce(e){return!!(e&&64&e.kind)}function bce(e){return!!(e&&128&e.kind)}function xce(e){return!!(e&&512&e.kind)}function Sce(e,t,n,r,i,o,a,s,c){var l,u,_;const d=cr(),f=a||sk(YS(r.getCompilerOptions()));let p=!1,m=0,g=0,h=0,y=0;const v=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&m++,t||"failed"}const r=f||o.allowIncompleteCompletions&&gp,resolvedAny:()=>g>0,resolvedBeyondLimit:()=>g>sce}),b=y?` (${(h/y*100).toFixed(1)}% hit rate)`:"";return null==(l=t.log)||l.call(t,`${e}: resolved ${g} module specifiers, plus ${m} ambient and ${h} from cache${b}`),null==(u=t.log)||u.call(t,`${e}: response is ${p?"incomplete":"complete"}`),null==(_=t.log)||_.call(t,`${e}: ${cr()-d}`),v}function kce(e,t,n,r,i,o,a,s,c,l,u=!1){var _;const{previousToken:d}=nle(i,r);if(a&&!JX(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&iZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&WE(n)&&!!Xm(n);case"<":return!!n&&30===n.kind&&(!fN(n.parent)||gle(n.parent));case"/":return!!n&&(ed(n)?!!bh(n):44===n.kind&&EA(n.parent));case" ":return!!n&&oD(n)&&312===n.parent.kind;default:return Fn.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const f=t.getCompilerOptions(),p=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(_=e.getIncompleteCompletionsCache)?void 0:_.call(e):void 0;if(m&&3===s&&d&&qE(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=NX(t,s),u=n.text.toLowerCase(),_=o0(t,i,r,o,a),d=Sce("continuePreviousIncompleteResponse",i,ace.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,wT(n),(e=>{const n=te(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||Cce(n.data))return n;if(!wle(n.name,u))return;const{origin:a}=Fn.checkDefined(rle(n.name,n.data,r,i)),s=_.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Gs(yv(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=$ce(l),n.source=qce(l),n.sourceDisplay=[mQ(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Pce(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=oue.getStringLiteralCompletions(r,i,d,f,e,t,n,o,u);if(g)return g;if(d&&Vl(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!ku(r);){if(UN(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:lce.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(d.parent);const h=tle(t,n,r,f,i,o,void 0,e,l,c);var y;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:u,contextToken:_,completionKind:d,isInSnippetScope:f,isNewIdentifierLocation:p,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:S,isRightOfOpenTag:k,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:E,hasUnresolvedAutoImports:D}=o;let N=o.literals;const A=n.getTypeChecker();if(1===VS(e.scriptKind)){const t=function(e,t){const n=Dc(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!yX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:pY(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:lce.LocationPriority}]}}}(m,e);if(t)return t}const P=Dc(_,LA);if(P&&(aD(_)||iy(_,P.expression))){const e=XZ(A,P.parent.clauses);N=N.filter((t=>!e.hasValue(t))),u.forEach(((t,n)=>{if(t.valueDeclaration&&VA(t.valueDeclaration)){const r=A.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const F=[],I=Fce(e,r);if(I&&!p&&(!u||0===u.length)&&0===h)return;const O=Wce(u,F,void 0,_,m,c,e,t,n,HS(r),i,d,a,r,s,x,g,S,b,C,v,y,E,S,k,l);if(0!==h)for(const t of ole(h,!w&&Ng(e)))(x&&xY(cs(t.name))||!O.has(t.name))&&(O.add(t.name),ge(F,t,Tce,!0));for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(sA(i)||hA(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:ss(132),kind:"keyword",kindModifiers:"",sortText:lce.GlobalsOrKeywords})}return n}(_,c))O.has(e.name)||(O.add(e.name),ge(F,e,Tce,!0));for(const t of N){const n=jce(e,a,t);O.add(n.name),ge(F,n,Tce,!0)}let M;if(I||function(e,t,n,r,i){M7(e).forEach(((e,o)=>{if(e===t)return;const a=Fc(o);!n.has(a)&&Js(a,r)&&(n.add(a),ge(i,{name:a,kind:"warning",kindModifiers:"",sortText:lce.JavascriptIdentifiers,isFromUncheckedFile:!0},Tce))}))}(e,m.pos,O,HS(r),F),a.includeCompletionsWithInsertText&&_&&!k&&!T&&(M=Dc(_,iA))){const i=Ice(M,e,a,r,t,n,s);i&&F.push(i.entry)}return{flags:o.flags,isGlobalCompletion:f,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:Lce(d),isNewIdentifierLocation:p,optionalReplacementSpan:Pce(m),entries:F}}(r,e,t,f,n,h,o,l,i,u);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return wce([...V_e.getJSDocTagNameCompletions(),...Ece(r,i,p,f,o,!0)]);case 2:return wce([...V_e.getJSDocTagCompletions(),...Ece(r,i,p,f,o,!1)]);case 3:return wce(V_e.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:h.isNewIdentifierLocation,entries:y.slice()};default:return Fn.assertNever(h)}}function Tce(e,t){var n,r;let i=Ht(e.sortText,t.sortText);return 0===i&&(i=Ht(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=Zk(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function Cce(e){return!!(null==e?void 0:e.moduleSpecifier)}function wce(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function Ece(e,t,n,r,i,o){const a=PX(e,t);if(!K_(a)&&!cP(a))return[];const s=cP(a)?a:a.parent;if(!cP(s))return[];const c=s.parent;if(!ku(c))return[];const l=Ng(e),u=i.includeCompletionsWithSnippetText||void 0,_=$(s.tags,(e=>TP(e)&&e.getEnd()<=t));return te(c.parameters,(e=>{if(!Wc(e).length){if(qE(e.name)){const t={tabstop:1},a=e.name.text;let s=Nce(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=u?Nce(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:lce.LocationPriority,insertText:u?c:void 0,isSnippet:u}}if(e.parent.parameters.indexOf(e)===_){const t=`param${_}`,a=Dce(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=u?Dce(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(hx(r)+"* "),d=null==s?void 0:s.join(hx(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:lce.LocationPriority,insertText:u?d:void 0,isSnippet:u}}}}))}function Dce(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Nce(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(WD(t)&&!r){const _={tabstop:l.tabstop},d=Nce(e,n,r,i,!0,o,a,s,c,_);let f=[];for(const n of t.elements){const t=u(e,n,_);if(!t){f=void 0;break}f.push(...t)}if(f)return l.tabstop=_.tabstop,[d,...f]}return[Nce(e,n,r,i,!1,o,a,s,c,l)]}function u(e,t,n){if(!t.propertyName&&qE(t.name)||qE(t.name)){const r=t.propertyName?Vp(t.propertyName):t.name.text;if(!r)return;return[Nce(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Vp(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Nce(e,t,n,r,i,o,a,s,c,l){if(o&&Fn.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();return n.includes("\n")||n.length>80?`[${e}]`:`[${e}=${n}]`}(e,t)),o&&(e=WT(e)),r){let r="*";if(i)Fn.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===JY(n,c)?268435456:0,l=a.typeToTypeNode(e,Dc(t,ku),i);if(l){const e=o?zce({removeComments:!0,module:s.module,target:s.target}):yV({removeComments:!0,module:s.module,target:s.target});rw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Ace(e,t,n){return{kind:4,keywordCompletions:ole(e,t),isNewIdentifierLocation:n}}function Pce(e){return 80===(null==e?void 0:e.kind)?pY(e):void 0}function Fce(e,t){return!Ng(e)||!!dT(e,t)}function Ice(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&I(l.types,(e=>e.isLiteral()))){const u=XZ(c,s),_=HS(r),d=JY(t,n),f=ace.createImportAdder(t,o,n,i),p=[];for(const t of l.types)if(1024&t.flags){Fn.assert(t.symbol,"An enum member type should have a symbol"),Fn.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(u.hasValue(n))continue;u.addValue(n)}const r=ace.typeToAutoImportableTypeNode(c,f,t,e,_);if(!r)return;const i=Oce(r,_,d);if(!i)return;p.push(i)}else if(!u.hasValue(t.value))switch(typeof t.value){case"object":p.push(t.value.negative?FC.createPrefixUnaryExpression(41,FC.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):FC.createBigIntLiteral(t.value));break;case"number":p.push(t.value<0?FC.createPrefixUnaryExpression(41,FC.createNumericLiteral(-t.value)):FC.createNumericLiteral(t.value));break;case"string":p.push(FC.createStringLiteral(t.value,0===d))}if(0===p.length)return;const m=q(p,(e=>FC.createCaseClause(e,[]))),g=SQ(i,null==a?void 0:a.options),h=zce({removeComments:!0,module:r.module,target:r.target,newLine:UZ(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=q(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:lce.GlobalsOrKeywords,insertText:v,hasAction:f.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:f}}}function Oce(e,t,n){switch(e.kind){case 183:return Mce(e.typeName,t,n);case 199:const r=Oce(e.objectType,t,n),i=Oce(e.indexType,t,n);return r&&i&&FC.createElementAccessExpression(r,i);case 201:const o=e.literal;switch(o.kind){case 11:return FC.createStringLiteral(o.text,0===n);case 9:return FC.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 196:const a=Oce(e.type,t,n);return a&&(qE(a)?a:FC.createParenthesizedExpression(a));case 186:return Mce(e.exprName,t,n);case 205:Fn.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Mce(e,t,n){if(qE(e))return e;const r=Fc(e.right.escapedText);return nC(r,t)?FC.createPropertyAccessExpression(Mce(e.left,t,n),r):FC.createElementAccessExpression(Mce(e.left,t,n),FC.createStringLiteral(r,0===n))}function Lce(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Rce(e,t,n){return"object"==typeof n?ST(n)+"n":yt(n)?nZ(e,t,n):JSON.stringify(n)}function jce(e,t,n){return{name:Rce(e,t,n),kind:"string",kindModifiers:"",sortText:lce.LocationPriority}}function Bce(e,t,n,r,i,o,a,s,c,l,u,_,d,f,p,m,g,h,y,v,b,x,S,k){var T,C;let w,E,D,N,A,P,F,M=fY(n),L=qce(_);const R=c.getTypeChecker(),j=_&&function(e){return!!(16&e.kind)}(_),B=_&&function(e){return!!(2&e.kind)}(_)||u;if(_&&function(e){return!!(1&e.kind)}(_))w=u?`this${j?"?.":""}[${Kce(a,y,l)}]`:`this${j?"?.":"."}${l}`;else if((B||j)&&f){w=B?u?`[${Kce(a,y,l)}]`:`[${l}]`:l,(j||f.questionDotToken)&&(w=`?.${w}`);const e=yX(f,25,a)||yX(f,29,a);if(!e)return;const t=fn(l,f.name.text)?f.name.end:e.end;M=_c(e.getStart(a),t)}if(p&&(void 0===w&&(w=l),w=`{${w}}`,"boolean"!=typeof p&&(M=pY(p,a))),_&&function(e){return!!(8&e.kind)}(_)&&f){void 0===w&&(w=l);const e=LX(f.pos,a);let t="";e&&dZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${f.expression.getText()})`,w=u?`${t}${w}`:`${t}${j?"?.":"."}${w}`,M=_c((bt(f.parent,uN)?f.parent:f.expression).getStart(a),f.end)}if(hce(_)&&(A=[mQ(_.moduleSpecifier)],m&&(({insertText:w,replacementSpan:M}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=WT(nZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,u=a.includeCompletionsWithSnippetText?"$1":"",_=ace.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,f=t.isTopLevelTypeOnly?` ${ss(156)} `:" ",p=d?`${ss(156)} `:"",m=r?";":"";switch(_){case 3:return{replacementSpan:s,insertText:`import${f}${WT(e)}${u} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${f}${WT(e)}${u} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${f}* as ${WT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${f}{ ${p}${WT(e)}${u} } from ${c}${m}`}}}(l,m,_,g,a,h,y)),N=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==_?void 0:_.kind)&&(P=!0),0===v&&r&&28!==(null==(T=LX(r.pos,a,r))?void 0:T.kind)&&(mD(r.parent.parent)||yD(r.parent.parent)||vD(r.parent.parent)||$A(r.parent)||(null==(C=Dc(r.parent,JA))?void 0:C.getLastToken(a))===r||zA(r.parent)&&gs(a,r.getEnd()).line!==gs(a,o).line)&&(L="ObjectLiteralMemberWithComma/",P=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===v&&function(e,t,n){if(Pg(t))return!1;return!!(106500&e.flags)&&(Pu(t)||t.parent&&t.parent.parent&&Au(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&Pu(t.parent.parent)||t.parent&&MP(t)&&Pu(t.parent))}(e,i,a)){let t;const n=Jce(s,c,h,y,l,e,i,o,r,b);if(!n)return;({insertText:w,filterText:E,isSnippet:N,importAdder:t}=n),(null==t?void 0:t.hasFixes())&&(P=!0,L="ClassMemberSnippet/")}if(_&&bce(_)&&(({insertText:w,isSnippet:N,labelDetails:F}=_),y.useLabelDetailsInCompletionEntries||(l+=F.detail,F=void 0),L="ObjectLiteralMethodSnippet/",t=lce.SortBelow(t)),x&&!S&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!PA(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=R.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&O(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&I(n.types,(e=>!!(402686084&e.flags||oY(e))))?(w=`${WT(l)}=${nZ(a,y,"$1")}`,N=!0):t=!0),t&&(w=`${WT(l)}={$1}`,N=!0)}if(void 0!==w&&!y.includeCompletionsWithInsertText)return;(gce(_)||hce(_))&&(D=$ce(_),P=!m);const J=Dc(i,dS);if(275===(null==J?void 0:J.kind)){const e=cs(l);J&&e&&(135===e||wy(e))&&(w=`${l} as ${l}_`)}return{name:l,kind:Ife.getSymbolKind(R,e,i),kindModifiers:Ife.getSymbolModifiers(R,e),sortText:t,source:L,hasAction:!!P||void 0,isRecommended:Uce(e,d,R)||void 0,insertText:w,filterText:E,replacementSpan:M,sourceDisplay:A,labelDetails:F,isSnippet:N,isPackageJsonImport:yce(_)||void 0,isImportStatementCompletion:!!m||void 0,data:D,...k?{symbol:e}:void 0}}function Jce(e,t,n,r,i,o,a,s,c,l){const u=Dc(a,Pu);if(!u)return;let _,d=i;const f=i,p=t.getTypeChecker(),m=a.getSourceFile(),g=zce({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:UZ(SQ(e,null==l?void 0:l.options))}),h=ace.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){_=!0;const e=FC.createEmptyStatement();y=FC.createBlock([e],!0),Aw(e,{kind:0,order:0})}else y=FC.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:S}=function(e,t,n){if(!e||gs(t,n).line>gs(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(fD(e.parent)&&e.parent.modifiers&&(o|=126975&Rb(e.parent.modifiers),r=e.parent.modifiers.filter(_D)||[],a.pos=Math.min(a.pos,e.parent.modifiers.pos)),i=function(e){if(vu(e))return e.kind;if(qE(e)){const t=Oc(e);if(t&&gu(t))return t}}(e)){const t=jb(i);o&t||(o|=t,a.pos=Math.min(a.pos,e.pos))}return{modifiers:o,decorators:r,range:a.pos!==n?a:void 0}}(c,m,s),k=256&b&&256&u.modifierFlagsCache;let T=[];if(ace.addNewNodeForMemberSymbol(o,u,m,{program:t,host:e},r,h,(e=>{let t=0;k&&(t|=256),Au(e)&&1===p.getMemberOverrideModifierStatus(u,e,o)&&(t|=16384),T.length||(v=e.modifierFlagsCache|t),e=FC.updateModifiers(e,v),T.push(e)}),y,ace.PreserveOptionalFlags.Property,!!k),T.length){const e=8192&o.flags;let t=16388|v;t|=e?512:66;const n=b&t;if(b&~t)return;if(16&v&&4&n&&(v&=-17),0===n||4&n||(v&=-5),v|=n,T=T.map((e=>FC.updateModifiers(e,v))),null==S?void 0:S.length){const e=T[T.length-1];rI(e)&&(T[T.length-1]=FC.updateModifierLike(e,S.concat(Uc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,FC.createNodeArray(T),m,l):g.printSnippetList(r,FC.createNodeArray(T),m)}return{insertText:d,filterText:f,isSnippet:_,importAdder:h,eraseRange:x}}function zce(e){let t;const n=upe.createWriter(hx(e)),r=yV(e,n),i={...n,write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?upe.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return gs(this,e)}},s=WZ(i,r),c=X(n,(e=>{const t=upe.assignPositionsToNode(e);return fge.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),l=t?Fe(_e(c,t),((e,t)=>Jt(e.span,t.span))):c;return upe.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?upe.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return gs(this,e)}},a=WZ(i,r),c=upe.assignPositionsToNode(n),l=fge.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),u=t?Fe(_e(l,t),((e,t)=>Jt(e.span,t.span))):l;return upe.applyChanges(o.text,u)}};function o(e,r){const i=WT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=ke(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function $ce(e){const t=e.fileName?void 0:yv(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;return hce(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:yv(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function Vce(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;return Cce(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function Kce(e,t,n){return/^\d+$/.test(n)?n:nZ(e,t,n)}function Uce(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function qce(e){return gce(e)?yv(e.moduleSymbol.name):hce(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function Wce(e,t,n,r,i,o,a,s,c,l,u,_,d,f,p,m,g,h,y,v,b,x,S,k,T,C=!1){const w=cr(),E=function(e,t){if(!e)return;const n=Dc(e,(e=>jm(e)||kle(e)||$u(e)?"quit":(uD(e)||lD(e))&&!SD(e.parent))),r=Dc(t,(e=>jm(e)||kle(e)||$u(e)?"quit":GN(e)));return n||r}(r,i),D=fZ(a),N=c.getTypeChecker(),A=new Map;for(let u=0;ue.getSourceFile()===i.getSourceFile())));A.set(F,L),ge(t,M,Tce,!0)}return u("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(cr()-w)),{has:e=>A.has(e),add:e=>A.set(e,!0)};function P(e,t){var n;let r=e.flags;if(!UA(i)){if(gA(i.parent))return!0;if(bt(E,GN)&&e.valueDeclaration===E)return!1;const o=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(E&&o&&(lD(E)&&lD(o)||uD(E)&&uD(o))){const e=o.pos,t=uD(E)?E.parent.parameters:RD(E.parent)?void 0:E.parent.typeParameters;if(e>=E.pos&&t&&eRce(n,a,e)===i.name));return void 0!==y?{type:"literal",literal:y}:D(l,((e,t)=>{const n=f[t],r=ile(e,HS(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||qce(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:_,origin:n,contextToken:p,previousToken:m,isJsxInitializer:g,isTypeOnlyLocation:h}:void 0}))||{type:"none"}}function Gce(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),u=e.getCompilerOptions(),{name:_,source:d,data:f}=i,{previousToken:p,contextToken:m}=nle(r,n);if(JX(n,r,p))return oue.getStringLiteralCompletionDetails(_,n,r,p,l,u,o,c,s);const g=Hce(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return V_e.getJSDocTagNameCompletionDetails(_);case 2:return V_e.getJSDocTagCompletionDetails(_);case 3:return V_e.getJSDocParameterNameCompletionDetails(_);case 4:return le(e.keywordCompletions,(e=>e.name===_))?Xce(_,"keyword",5):void 0;default:return Fn.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:p,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,u,_,d,f,p,m){if((null==f?void 0:f.moduleSpecifier)&&u&&hle(n||u,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[mQ(f.moduleSpecifier)]};if("ClassMemberSnippet/"===p){const{importAdder:r,eraseRange:u}=Jce(a,o,s,d,e,i,t,l,n,_);if(r||u)return{sourceDisplay:void 0,codeActions:[{changes:upe.ChangeTracker.with({host:a,formatContext:_,preferences:d},(e=>{r&&r.writeFixes(e),u&&e.deleteRange(c,u)})),description:qZ([Ra.Includes_imports_of_types_referenced_by_0,e])}]}}if(vce(r)){const e=ace.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,_,d);return Fn.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===p&&n){const t=upe.ChangeTracker.with({host:a,formatContext:_,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:qZ([Ra.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!gce(r)&&!hce(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(Kx(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&J_(n.parent),{moduleSpecifier:b,codeAction:x}=ace.getImportCompletionAction(y,h,null==f?void 0:f.exportMapKey,c,e,v,a,o,_,u&&qE(u)?u.getStart(c):l,d,m);return Fn.assert(!(null==f?void 0:f.moduleSpecifier)||b===f.moduleSpecifier),{sourceDisplay:[mQ(b)],codeActions:[x]}}(_,i,p,m,t,e,o,u,n,r,h,a,s,f,d,c);return Yce(t,xce(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return Xce(Rce(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const{entry:t,importAdder:r}=Ice(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(r.hasFixes()){const e=upe.ChangeTracker.with({host:o,formatContext:a,preferences:s},r.writeFixes);return{name:t.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:e,description:qZ([Ra.Includes_imports_of_types_referenced_by_0,_])}]}}return{name:t.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return pce().some((e=>e.name===_))?Xce(_,"keyword",5):void 0;default:Fn.assertNever(g)}}function Xce(e,t,n){return Qce(e,"",t,[sQ(e,n)])}function Yce(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:u,tags:_}=n.runWithCancellationToken(o,(t=>Ife.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return Qce(t,Ife.getSymbolModifiers(n,e),u,c,l,_,a,s)}function Qce(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function Zce(e,t,n,r,i,o,a){const s=Hce(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}function ele(e,t,n){const r=n.getAccessibleSymbolChain(e,t,67108863,!1);return r?Le(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>312===e.kind)))}(e.parent)?e:ele(e.parent,t,n))}function tle(e,t,n,r,i,o,a,s,c,l){const u=e.getTypeChecker(),_=Fce(n,r);let d=cr(),f=PX(n,i);t("getCompletionData: Get current token: "+(cr()-d)),d=cr();const p=YX(n,i,f);t("getCompletionData: Is inside comment: "+(cr()-d));let m=!1,g=!1;if(p){if(QX(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=rX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return Dc(e,(e=>!(!K_(e)||!aX(e,t))||!!cP(e)&&"quit"))}(f,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};const t=function(e){if(function(e){switch(e.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!e.constraint;default:return!1}}(e)){const t=DP(e)?e.constraint:e.typeExpression;return t&&316===t.kind?t:void 0}if(_P(e)||FP(e))return e.class}(e);if(t&&(f=PX(n,i),f&&(oy(f)||355===f.parent.kind&&f.parent.name===f)||(m=ge(t))),!m&&TP(e)&&(Jf(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}if(!m)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=cr();const h=!m&&Ng(n),y=nle(i,n),v=y.previousToken;let b=y.contextToken;t("getCompletionData: Get previous token: "+(cr()-d));let x,S,k=f,T=!1,C=!1,E=!1,N=!1,A=!1,P=!1,F=NX(n,i),I=0,M=!1,L=0;if(b){const e=hle(b,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(R=e.keywordCompletion,{name:ss(R),kind:"keyword",kindModifiers:"",sortText:lce.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};I=function(e){if(156===e)return 8;Fn.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(L|=2,S=e,M=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=cr(),o=function(e){return(PE(e)||uu(e))&&(sX(e,i)||i===e.end&&(!!e.isUnterminated||PE(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(o=e).parent.kind&&!HX(o,n,u)||243===r||266===r||de(r)||264===r||207===r||265===r||Pu(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||de(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||Du(r);case 126:return 172===r&&!Pu(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!hD(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!mle(e);case 80:if(276===r&&e===t.name&&"type"===e.text)return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return 276!==r;case 42:return ku(e.parent)&&!mD(e.parent)}var o;if(cle(ule(e))&&mle(e))return!1;if(ce(e)&&(!qE(e)||hu(ule(e))||ge(e)))return!1;switch(ule(e)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return fD(e.parent)}if(Dc(e.parent,Pu)&&e===v&&ue(e,i))return!1;const a=xy(e.parent,172);if(a&&e!==v&&Pu(v.parent.parent)&&i<=v.end){if(ue(e,v.end))return!1;if(64!==e.kind&&(IJ(a)||H_(a)))return!0}return oy(e)&&!zA(e.parent)&&!PA(e.parent)&&!((Pu(e.parent)||ZN(e.parent)||lD(e.parent))&&(e!==v||i>v.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(F===e.parent&&(286===F.kind||285===F.kind))return!1;if(286===e.parent.kind)return 286!==F.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||DE(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(cr()-r)),o}(b))return t("Returning an empty list because completion was requested in an invalid position."),I?Ace(I,h,se()):void 0;let r=b.parent;if(25===b.kind||29===b.kind)switch(T=25===b.kind,C=29===b.kind,r.kind){case 211:if(x=r,k=x.expression,Jf(fS(x))||(eN(k)||ku(k))&&k.end===b.pos&&k.getChildCount(n)&&22!==Be(k.getChildren(n)).kind)return;break;case 166:k=r.left;break;case 267:k=r.name;break;case 205:k=r;break;case 236:k=r.getFirstToken(n),Fn.assert(102===k.kind||105===k.kind);break;default:return}else if(!S){if(r&&211===r.kind&&(b=r,r=r.parent),f.parent===F)switch(f.kind){case 32:284!==f.parent.kind&&286!==f.parent.kind||(F=f);break;case 44:285===f.parent.kind&&(F=f)}switch(r.kind){case 287:44===b.kind&&(N=!0,F=b);break;case 226:if(!gle(r))break;case 285:case 284:case 286:P=!0,30===b.kind&&(E=!0,F=b);break;case 294:case 293:(20===v.kind||80===v.kind&&291===v.parent.kind)&&(P=!0);break;case 291:if(r.initializer===v&&v.endIY(t?s.getPackageJsonAutoImportProvider():e,s)));if(T||C)!function(){J=2;const e=gm(k),t=e&&!k.isTypeOf||Tm(k.parent)||HX(b,n,u),r=DG(k);if(bu(k)||e||QD(k)){const n=nA(k.parent);n&&(M=!0);let i=u.getSymbolAtLocation(k);if(i&&(i=Kx(i,u),1920&i.flags)){const a=u.getExportsOfModule(i);Fn.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>u.isValidPropertyAccess(e?k:k.parent,t.name),c=e=>Tle(e,u),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===k.parent)))}:r?e=>c(e)||s(e):t||m?c:s;for(const e of a)l(e)&&K.push(e);if(!t&&!m&&i.declarations&&i.declarations.some((e=>312!==e.kind&&267!==e.kind&&266!==e.kind))){let e=u.getTypeOfSymbolAtLocation(i,k).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=T&&!C&&!1!==o.includeAutomaticOptionalChainCompletions;(n||C)&&(e=e.getNonNullableType(),n&&(t=!0))}ne(e,!!(65536&k.flags),t)}return}}if(!t||Zv(k)){u.tryGetThisTypeAt(k,!1);let e=u.getTypeAtLocation(k).getNonOptionalType();if(t)ne(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=T&&!C&&!1!==o.includeAutomaticOptionalChainCompletions;(n||C)&&(e=e.getNonNullableType(),n&&(t=!0))}ne(e,!!(65536&k.flags),t)}}}();else if(E)K=u.getJsxIntrinsicTagNamesAt(F),Fn.assertEachIsDefined(K,"getJsxIntrinsicTagNames() should all be defined"),oe(),J=1,I=0;else if(N){const e=b.parent.parent.openingElement.tagName,t=u.getSymbolAtLocation(e);t&&(K=[t]),J=1,I=0}else if(!oe())return I?Ace(I,h,M):void 0;t("getCompletionData: Semantic work: "+(cr()-j));const Q=v&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return tZ(e,r);case 64:switch(i.kind){case 260:return r.getContextualType(i.initializer);case 226:return r.getTypeAtLocation(i.left);case 291:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=bt(i,LA);return o?aZ(o,r):void 0;case 19:return!OA(i)||TA(i.parent)||DA(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=lfe.getArgumentInfoForCompletions(e,t,n);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex+(28===e.kind?1:0)):rZ(e.kind)&&fN(i)&&rZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(v,i,n,u),Z=bt(v,ed)||P?[]:te(Q&&(Q.isUnion()?Q.types:[Q]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)),ee=v&&Q&&function(e,t,n){return D(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!Zx(r)?ele(r,e,n):void 0}))}(v,Q,u);return{kind:0,symbols:K,completionKind:J,isInSnippetScope:g,propertyAccessToConvert:x,isNewIdentifierLocation:M,location:F,keywordFilters:I,literals:Z,symbolToOriginInfoMap:U,recommendedCompletion:ee,previousToken:v,contextToken:b,isJsxInitializer:A,insideJsDocTagTypeExpression:m,symbolToSortTextMap:q,isTypeOnlyLocation:H,isJsxIdentifierExpected:P,isRightOfOpenTag:E,isRightOfDotOrQuestionDot:T||C,importStatementCompletion:S,hasUnresolvedAutoImports:$,flags:L};function ne(e,t,n){M=!!e.getStringIndexType(),C&&le(e.getCallSignatures())&&(M=!0);const r=205===k.kind?k:k.parent;if(_)for(const t of e.getApparentProperties())u.isValidPropertyAccessForCompletions(r,e,t)&&re(t,!1,n);else K.push(...V(fle(e,u),(t=>u.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=u.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())u.isValidPropertyAccessForCompletions(r,t,e)&&re(e,!0,n)}}function re(t,r,a){var c;const l=D(t.declarations,(e=>bt($c(e),cD)));if(l){const r=ie(l.expression),a=r&&u.getSymbolAtLocation(r),p=a&&ele(a,b,u),m=p&&xB(p);if(m&&aS(W,m)){const t=K.length;K.push(p);const r=p.parent;if(r&&TY(r)&&u.tryGetMemberInModuleExportsAndProperties(p.name,r)===p){const a=Gs(yv(r.name))?null==(c=If(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(B||(B=ace.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:p,targetFlags:Kx(p,u).flags}],i,wT(F))||{};if(l){const e={kind:f(6),moduleSymbol:r,isDefaultExport:!1,symbolName:p.name,exportName:p.name,fileName:a,moduleSpecifier:l};U[t]=e}}else U[t]={kind:f(2)}}else if(o.includeCompletionsWithInsertText){if(m&&W.has(m))return;d(t),_(t),K.push(t)}}else d(t),_(t),K.push(t);function _(e){(function(e){return!!(e.valueDeclaration&&32&Pb(e.valueDeclaration)&&Pu(e.valueDeclaration.parent))})(e)&&(q[xB(e)]=lce.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&aS(W,xB(e))?U[K.length]={kind:f(8)}:a&&(U[K.length]={kind:16}))}function f(e){return a?16|e:e}}function ie(e){return qE(e)?e:QD(e)?ie(e.expression):void 0}function oe(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(DD(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&DD(t.parent))return t.parent}}(b);if(!e)return 0;const t=(MD(e.parent)?e.parent:void 0)||e,n=ple(t,u);if(!n)return 0;const r=u.getTypeFromTypeNode(t),i=fle(n,u),o=fle(r,u),a=new Set;return o.forEach((e=>a.add(e.escapedName))),K=_e(K,V(i,(e=>!a.has(e.escapedName)))),J=0,M=!0,1}()||function(){const t=K.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if(YD(i)||WD(i))return i;break;case 42:return mD(i)?bt(i.parent,YD):void 0;case 134:return bt(i.parent,YD);case 80:if("async"===e.text&&zA(e.parent))return e.parent.parent;{if(YD(e.parent.parent)&&($A(e.parent)||zA(e.parent)&&gs(n,e.getEnd()).line!==gs(n,t).line))return e.parent.parent;const r=Dc(i,JA);if((null==r?void 0:r.getLastToken(n))===e&&YD(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(mD(i.parent)||yD(i.parent)||vD(i.parent))&&YD(i.parent.parent))return i.parent.parent;if($A(i)&&YD(i.parent))return i.parent;const o=Dc(i,JA);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&YD(o.parent))return o.parent}}}(b,i,n);if(!a)return 0;let l,_;if(J=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=Zh(e.parent);return fN(r)&&64===r.operatorToken.kind&&e===r.left?t.getTypeAtLocation(r):l_(r)?t.getContextualType(r):void 0}(a,u);if(void 0===e)return 67108864&a.flags?2:(z=!0,0);const t=u.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(M=!!n||!!r,l=_le(e,t,a,u),_=a.properties,0===l.length&&!r)return z=!0,0}else{Fn.assert(206===a.kind),M=!1;const e=Zy(a.parent);if(!Am(e))return Fn.fail("Root declaration is not variable-like.");let t=G_(e)||!!rb(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(l_(e.parent)?t=!!u.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=l_(e.parent.parent)&&!!u.getContextualType(e.parent.parent))),t){const e=u.getTypeAtLocation(a);if(!e)return 2;l=u.getPropertiesOfType(e).filter((t=>u.isPropertyAccessible(a,!1,!1,e,t))),_=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(303!==e.kind&&304!==e.kind&&208!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind&&305!==e.kind)continue;if(ge(e))continue;let t;if($A(e))fe(e,n);else if(GD(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=$c(e);t=n&&By(n)?zy(n):void 0}void 0!==t&&r.add(t)}const i=e.filter((e=>!r.has(e.escapedName)));return me(n,i),i}(l,Fn.checkDefined(_));K=_e(K,n),pe(),210===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t{if(!(8196&t.flags))return;const n=ile(t,HS(r),void 0,0,!1);if(!n)return;const{name:i}=n,a=function(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const u=n.getSourceFile(),_=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=LQ($c(c),!1),u=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),_=33554432|(0===JY(n,o)?268435456:0);switch(c.kind){case 171:case 172:case 173:case 174:{let e=1048576&u.flags&&u.types.length<10?s.getUnionType(u.types,2):u;if(1048576&e.flags){const t=V(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,_,ace.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!CD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=FC.createEmptyStatement();a=FC.createBlock([e],!0),Aw(e,{kind:0,order:0})}else a=FC.createBlock([],!0);const c=n.parameters.map((e=>FC.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return FC.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,u,r,i,a);if(!_)return;const d=zce({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:UZ(SQ(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,FC.createNodeArray([_],!0),u,s):d.printSnippetList(80,FC.createNodeArray([_],!0),u);const f=yV({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),p=FC.createMethodSignature(void 0,"",_.questionToken,_.typeParameters,_.parameters,_.type);return{isSnippet:c,insertText:l,labelDetails:{detail:f.printNode(4,p,u)}}}(t,i,f,e,s,r,o,c);if(!a)return;const l={kind:128,...a};L|=32,U[K.length]=l,K.push(t)})))}var d,f;return 1}()||(S?(M=!0,ae(),1):0)||function(){if(!b)return 0;const e=19===b.kind||28===b.kind?bt(b.parent,dS):kY(b)?bt(b.parent.parent,dS):void 0;if(!e)return 0;kY(b)||(I=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return M=!0,275===e.kind?2:0;const n=u.getSymbolAtLocation(t);if(!n)return M=!0,2;J=3,M=!1;const r=u.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!ge(e))).map((e=>(e.propertyName||e.name).escapedText))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));return K=_e(K,o),o.length||(I=0),1}()||function(){var e;const t=!b||19!==b.kind&&28!==b.kind?void 0:bt(b.parent,yA);if(!t)return 0;const n=Dc(t,yn(UA,nA));return J=5,M=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;K.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&(q[xB(e)]=lce.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return hD(e.parent)?e.parent:void 0;default:if(ce(e))return t.parent}}}(b)?(J=5,M=!0,I=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 358:return bt(n.parent,sS);case 1:const t=bt(je(xt(n.parent,UA).statements),sS);if(t&&!yX(t,20,e))return t;break;case 81:if(bt(n.parent,fD))return Dc(n,Pu);break;case 80:if(Oc(n))return;if(fD(n.parent)&&n.parent.initializer===n)return;if(mle(n))return Dc(n,sS)}if(t){if(137===n.kind||qE(t)&&fD(t.parent)&&Pu(n))return Dc(t,Pu);switch(t.kind){case 64:return;case 27:case 20:return mle(n)&&n.parent.name===n?n.parent.parent:bt(n,sS);case 19:case 28:return bt(t.parent,sS);default:if(sS(n)){if(gs(e,t.getEnd()).line!==gs(e,r).line)return n;const i=Pu(t.parent.parent)?cle:sle;return i(t.kind)||42===t.kind||qE(t)&&i(Oc(t)??0)?t.parent.parent:void 0}return}}}(n,b,F,i);if(!e)return 0;if(J=3,M=!0,I=42===b.kind?0:Pu(e)?2:3,!Pu(e))return 1;const t=27===b.kind?b.parent.parent:b.parent;let r=Au(t)?Pb(t):0;if(80===b.kind&&!ge(b))switch(b.getText()){case"private":r|=8;break;case"static":r|=32;break;case"override":r|=16384}if(gD(t)&&(r|=32),!(8&r)){const t=X(Pu(e)&&16384&r?xn(my(e)):yy(e),(t=>{const n=u.getTypeAtLocation(t);return 32&r?(null==n?void 0:n.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(n.symbol,e)):n&&u.getPropertiesOfType(n)}));K=_e(K,function(e,t,n){const r=new Set;for(const e of t){if(172!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind)continue;if(ge(e))continue;if(yb(e,8))continue;if(bb(e)!==!!(32&n))continue;const t=jy(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||8&Vx(e)||e.valueDeclaration&&pu(e.valueDeclaration))))}(t,e.members,r)),w(K,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&Au(n)&&n.name&&cD(n.name)){const n={kind:512,symbolName:u.symbolToString(e)};U[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=LX(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===t.kind)return t.parent.parent}}}(b),t=e&&u.getContextualType(e.attributes);if(!t)return 0;const r=e&&u.getContextualType(e.attributes,4);return K=_e(K,function(e,t){const n=new Set,r=new Set;for(const e of t)ge(e)||(291===e.kind?n.add(uC(e.name)):IA(e)&&fe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return me(r,i),i}(_le(t,r,e.attributes,u),e.attributes.properties)),pe(),J=3,M=!1,1}()||(function(){I=function(e){if(e){let t;const n=Dc(e.parent,(e=>Pu(e)?"quit":!(!Cu(e)||t!==e.body)||(t=e,!1)));return n&&n}}(b)?5:1,J=1,M=se(),v!==b&&Fn.assert(!!v,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=v!==b?v.getStart():i,t=function(e,t,n){let r=e;for(;r&&!fX(r,t,n);)r=r.parent;return r}(b,e,n)||n;g=function(e){switch(e.kind){case 312:case 228:case 294:case 241:return!0;default:return I_(e)}}(t);const r=2887656|(H?0:111551),a=v&&!wT(v);K=_e(K,u.getSymbolsInScope(t,r)),Fn.assertEachIsDefined(K,"getSymbolsInScope() should all be defined");for(let e=0;ee.getSourceFile()===n))||(q[xB(t)]=lce.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&O(t.declarations,au);if(n){const t={kind:64,declaration:n};U[e]=t}}}if(o.includeCompletionsWithInsertText&&312!==t.kind){const e=u.tryGetThisTypeAt(t,!1,Pu(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!(!o||n.getTypeOfSymbolAtLocation(o,t)!==e)}(e,n,u))for(const t of fle(e,u))U[K.length]={kind:1},K.push(t),q[xB(t)]=lce.SuggestedClassMembers}ae(),H&&(I=b&&u_(b.parent)?6:7)}(),1);return 1===t}function ae(){var t,r;if(!(S||!z&&o.includeCompletionsForModuleExports&&(n.externalModuleIndicator||n.commonJsModuleIndicator||FY(e.getCompilerOptions())||AY(e))))return;if(Fn.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;L|=1;const c=v===b&&S?"":v&&qE(v)?v.text.toLowerCase():"",u=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),_=o0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),f=a?void 0:TZ(n,o,s);function p(t){const r=bt(t.moduleSymbol.valueDeclaration,UA);if(!r){const r=yv(t.moduleSymbol.name);return(!EH.nodeCoreModules.has(r)||fn(r,"node:")===KZ(n,e))&&(!f||f.allowsImportingAmbientModule(t.moduleSymbol,Y(t.isFromPackageJson)))}return n0(t.isFromPackageJson?d:e,n,r,o,f,Y(t.isFromPackageJson),u)}Sce("collectAutoImports",s,B||(B=ace.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!S,wT(F),(e=>{_.search(n.path,E,((e,t)=>{if(!Js(e,HS(s.getCompilationSettings())))return!1;if(!a&&Dy(e))return!1;if(!(H||S||111551&t))return!1;if(H&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!E||!(n<65||n>90))&&(!!a||wle(e,c))}),((t,n,r,i)=>{if(a&&!le(t,(e=>a.source===yv(e.moduleSymbol.name))))return;if(!(t=V(t,p)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=xB(e);q[n]!==lce.GlobalsOrKeywords&&(U[K.length]=t,q[n]=S?lce.LocationPriority:lce.AutoImportSuggestions,K.push(e))}(l&&lx(c.symbol)||c.symbol,{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":c.symbol.name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),$=e.skippedAny(),L|=e.resolvedAny()?8:0,L|=e.resolvedBeyondLimit()?16:0}))}function se(){if(b){const e=b.parent.kind,t=ule(b);switch(t){case 28:return 213===e||176===e||214===e||209===e||226===e||184===e||210===e;case 21:return 213===e||176===e||214===e||217===e||196===e;case 23:return 209===e||181===e||167===e;case 144:case 145:case 102:return!0;case 25:return 267===e;case 19:return 263===e||210===e;case 64:return 260===e||226===e;case 16:return 228===e;case 17:return 239===e;case 134:return 174===e||304===e;case 42:return 174===e}if(cle(t))return!0}return!1}function ce(e){return!!e.parent&&uD(e.parent)&&hD(e.parent.parent)&&(hu(e.kind)||oy(e))}function ue(e,t){return 64!==e.kind&&(27===e.kind||!Ix(e.end,t,n))}function de(e){return Du(e)&&176!==e}function fe(e,t){const n=e.expression,r=u.getSymbolAtLocation(n),i=r&&u.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function pe(){K.forEach((e=>{if(16777216&e.flags){const t=xB(e);q[t]=q[t]??lce.OptionalMember}}))}function me(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(q[xB(n)]=lce.MemberDeclaredBySpreadAssignment)}function ge(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function nle(e,t){const n=LX(e,t);return n&&e<=n.end&&(Al(n)||Sy(n.kind))?{contextToken:LX(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function rle(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(Fn.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);return s?(s="default"===t.exportName&&lx(s)||s,{symbol:s,origin:Vce(t,e,a)}):void 0}function ile(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return gce(e)||hce(e)||xce(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&$g(o.charCodeAt(0))||Ky(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(Js(o,t,i?1:0)||e.valueDeclaration&&pu(e.valueDeclaration))return a;switch(r){case 3:return xce(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:Fn.assertNever(r)}}function ole(e,t){if(!t)return ale(e);const n=e+8+1;return fce[n]||(fce[n]=ale(e).filter((e=>!function(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}(cs(e.name)))))}function ale(e){return fce[e]||(fce[e]=pce().filter((t=>{const n=cs(t.name);switch(e){case 0:return!1;case 1:return lle(n)||138===n||144===n||156===n||145===n||128===n||xY(n)&&157!==n;case 5:return lle(n);case 2:return cle(n);case 3:return sle(n);case 4:return hu(n);case 6:return xY(n)||87===n;case 7:return xY(n);case 8:return 156===n;default:return Fn.assertNever(e)}})))}function sle(e){return 148===e}function cle(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return yu(e)}}function lle(e){return 134===e||135===e||130===e||152===e||156===e||!Cy(e)&&!cle(e)}function ule(e){return qE(e)?Oc(e)??0:e.kind}function _le(e,t,n,r){const i=t&&t!==e,o=!i||3&t.flags?e:r.getUnionType([e,t]),a=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(V(e.types,(e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&dle(e.getApparentProperties()))))):e.getApparentProperties()}(o,n,r);return o.isClass()&&dle(a)?[]:i?V(a,(function(e){return!C(e.declarations)||le(e.declarations,(e=>e.parent!==n))})):a}function dle(e){return le(e,(e=>!!(24&Vx(e))))}function fle(e,t){return e.isUnion()?Fn.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):Fn.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function ple(e,t){if(!e)return;if(Ju(e)&&Q_(e.parent))return t.getTypeArgumentConstraint(e);const n=ple(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function mle(e){return e.parent&&ju(e.parent)&&sS(e.parent.parent)}function gle({left:e}){return Jf(e)}function hle(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(aA(n)){const r=n.getLastToken(t);return qE(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Sle(n.moduleReference)?n:void 0)}if(ble(n,e)&&xle(n.parent))return n;if(!pA(n)&&!dA(n))return oD(e)&&UA(n)?(o=156,e):oD(e)&&sA(n)?(o=156,Sle(n.moduleSpecifier)?n:void 0):void 0;if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),xle(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=bt(s,sA))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=bt(s,aA))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&ble(s,e),replacementSpan:yle(s)}}function yle(e){var t;if(!e)return;const n=Dc(e,yn(sA,aA))??e,r=n.getSourceFile();if(Cx(n,r))return pY(n,r);Fn.assert(102!==n.kind&&276!==n.kind);const i=272===n.kind?vle(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Cx(o,r)?hY(o):void 0}function vle(e){var t;return O(null==(t=bt(e,pA))?void 0:t.elements,(t=>{var n;return!t.propertyName&&Dy(t.name.text)&&28!==(null==(n=LX(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function ble(e,t){return mA(e)&&(e.isTypeOnly||t===e.name&&kY(t))}function xle(e){if(!Sle(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(pA(e)){const t=vle(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Sle(e){var t;return!!Jf(e)||!(null==(t=bt(kA(e)?e.expression:e,ed))?void 0:t.text)}function kle(e){return e.parent&&aN(e.parent)&&(e.parent.body===e||39===e.kind)}function Tle(e,t,n=new Map){return r(e)||r(Kx(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&aS(n,xB(e))&&t.getExportsOfModule(e).some((e=>Tle(e,t,n)))}}function Cle(e,t){const n=Kx(e,t).declarations;return!!C(n)&&I(n,VZ)}function wle(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let s=0;s"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},uce=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(uce||{}),_ce=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(_ce||{}),dce=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(dce||{}),fce=[],pce=At((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:ss(t),kind:"keyword",kindModifiers:"",sortText:lce.GlobalsOrKeywords});return e}))}});function Ple(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||Ele[n.kind]t>=e.pos&&t<=e.end));if(!a)return;const s=e.text.slice(a.pos,t),c=Dle.exec(s);if(!c)return;const[,l,u,_]=c,d=oa(e.path),f="path"===u?Wle(_,d,Ule(n,0,e),r,!0,e.path):"types"===u?nue(r,n,d,Qle(_),Ule(n,1,e)):Fn.fail();return Vle(_,a.pos+l.length,Ze(f.values()))}(e,t,r,i);return n&&Ole(n)}if(JX(e,t,n)){if(!n||!ed(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const u=mY(t);switch(e.kind){case 0:return Ole(e.paths);case 1:{const _=[];return Wce(e.symbols,_,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:u,entries:_}}case 2:{const n=e.types.map((e=>({name:e.value,kindModifiers:"",kind:"string",sortText:lce.LocationPriority,replacementSpan:fY(t)})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:u,entries:n}}default:return Fn.assertNever(e)}}(Lle(e,n,t,o.getTypeChecker(),r,i,s),n,e,i,o,a,r,s,t,c)}}function Ile(e,t,n,r,i,o,a,s,c){if(!r||!ed(r))return;const l=Lle(t,r,n,i,o,a,c);return l&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=O(n.paths,(t=>t.name===e));return t&&Qce(e,Mle(t.extension),t.kind,[mQ(e)])}case 1:{const a=O(n.symbols,(t=>t.name===e));return a&&Yce(a,a.name,i,r,t,o)}case 2:return O(n.types,(t=>t.value===e))?Qce(e,"","string",[mQ(e)]):void 0;default:return Fn.assertNever(n)}}(e,r,l,t,i,s)}function Ole(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:Mle(r),sortText:lce.LocationPriority,replacementSpan:n})))}}function Mle(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return Fn.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return Fn.assertNever(e)}}function Lle(e,t,n,r,i,o,a){const s=Rle(t.parent);switch(s.kind){case 201:{const c=Rle(s.parent);return 205===c.kind?{kind:0,paths:Kle(e,t,i,o,r,a)}:function e(t){switch(t.kind){case 233:case 183:{const e=Dc(s,(e=>e.parent===t));return e?{kind:2,types:Jle(r.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:o,objectType:a}=t;if(!aX(o,n))return;return Ble(r.getTypeFromTypeNode(a));case 192:{const n=e(Rle(t.parent));if(!n)return;const r=(i=s,te(t.types,(e=>e!==i&&VD(e)&&NE(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!B(r,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!B(r,e.value))),isNewIdentifier:!1}}default:return}var i}(c)}case 303:return YD(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;return{kind:1,symbols:_le(n,e.getContextualType(t,4),t,e),hasIndexSignature:oZ(n)}}(r,s.parent):c()||c(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===ny(n)?Ble(r.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return eN(e.parent)&&Oe(e.parent.arguments)===e&&qE(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!pm(s)){const i=lfe.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e);return i&&(jle(i.invocation,t,i,r)||jle(i.invocation,t,i,r,0))||c(0)}case 272:case 278:case 283:return{kind:0,paths:Kle(e,t,i,o,r,a)};case 296:const l=XZ(r,s.parent.clauses),u=c();if(!u)return;return{kind:2,types:u.types.filter((e=>!l.hasValue(e.value))),isNewIdentifier:!1};default:return c()||c(0)}function c(e=4){const n=Jle(tZ(t,r,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function Rle(e){switch(e.kind){case 196:return Qh(e);case 217:return Zh(e);default:return e}}function jle(e,t,n,r,i=32){let o=!1;const a=new Map,s=[],c=J_(e)?Fn.checkDefined(Dc(t.parent,PA)):t;r.getResolvedSignatureForStringLiteralCompletions(e,c,s,i);const l=X(s,(t=>{if(!DB(t)&&n.argumentCount>t.parameters.length)return;let i=t.getTypeParameterAtPosition(n.argumentIndex);if(J_(e)){const e=r.getTypeOfPropertyOfType(i,_C(c.name));e&&(i=e)}return o=o||!!(4&i.flags),Jle(i,a)}));return C(l)?{kind:2,types:l,isNewIdentifier:o}:void 0}function Ble(e){return e&&{kind:1,symbols:V(e.getApparentProperties(),(e=>!(e.valueDeclaration&&pu(e.valueDeclaration)))),hasIndexSignature:oZ(e)}}function Jle(e,t=new Map){return e?(e=DY(e)).isUnion()?X(e.types,(e=>Jle(e,t))):!e.isStringLiteral()||1024&e.flags||!aS(t,e.value)?a:[e]:a}function zle(e,t,n){return{name:e,kind:t,extension:n}}function $le(e){return zle(e,"directory",void 0)}function Vle(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(Bo),e.lastIndexOf(Jo)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||Js(e.substr(r,i),99)?void 0:uc(t+r,i)}(e,t),i=0===e.length?void 0:uc(t,e.length);return n.map((({name:e,kind:t,extension:n})=>-1!==Math.max(e.indexOf(Bo),e.indexOf(Jo))?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function Kle(e,t,n,r,i,o){return Vle(t.text,t.getStart(e)+1,function(e,t,n,r,i,o){const s=_a(t.text),c=ed(t)?hK(e,t):void 0,l=e.path,u=oa(l),_=Ule(n,1,e,i,o,c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(s)||!n.baseUrl&&!n.paths&&(Wo(s)||qo(s))?function(e,t,n,r,i,o){return n.rootDirs?function(e,t,n,r,i,o,a){return X(function(e,t,n,r){const i=D(e=e.map((e=>ha(Wo(e)?e:fa(t,e)))),(e=>Da(e,n,t,r)?n.substr(e.length):void 0));return pe([...e.map((e=>fa(e,i))),n],Rt,Kt)}(e,i.project||o.getCurrentDirectory(),n,!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames())),(e=>Ze(Wle(t,e,r,o,!0,a).values())))}(n.rootDirs,e,t,o,n,r,i):Ze(Wle(e,t,o,r,!0,i).values())}(s,u,n,r,l,_):function(e,t,n,r,i,o,s){const{baseUrl:c,paths:l}=r,u=Ple(),_=YS(r);if(c){const t=ha(fa(i.getCurrentDirectory(),c));Wle(e,t,o,i,!1,void 0,u)}if(l){const t=Rv(r,i);Gle(u,e,t,o,i,l)}const d=Qle(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>yv(e.name))).filter((t=>fn(t,e)&&t.indexOf("*")<0));if(void 0!==t){const e=xa(t);return r.map((t=>pn(t,e)))}return r}(e,d,s))u.add(zle(t,"external module name",void 0));if(nue(i,r,t,d,o,u),MY(_)){let s=!1;if(void 0===d)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return a;const n=[];for(const r of bZ(t,e)){const t=mx(r,e);for(const e of Nle){const r=t[e];if(r)for(const e in r)We(r,e)&&!fn(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=zle(e,"external module name",void 0);u.has(t.name)||(s=!0,u.add(t))}if(!s){let a=t=>{const n=fa(t,"node_modules");hZ(i,n)&&Wle(e,n,o,i,!1,void 0,u)};if(d&&lk(r)){const t=a;a=a=>{const s=la(e);s.shift();let c=s.shift();if(!c)return t(a);if(fn(c,"@")){const e=s.shift();if(!e)return t(a);c=fa(c,e)}const l=fa(a,"node_modules",c),_=fa(l,"package.json");if(gZ(i,_)){const t=mx(_,i).exports;if(t){if("object"!=typeof t||null===t)return;const a=Ge(t),c=s.join("/")+(s.length&&ta(e)?"/":""),_=HL(r,99===n);return void Xle(u,c,l,o,i,a,(e=>xn(Yle(t[e],_))),VR)}}return t(a)}}Ma(t,a)}}return Ze(u.values())}(s,u,c,n,r,_,i)}(e,t,n,r,i,o))}function Ule(e,t,n,r,i,o){return{extensionsToSearch:G(qle(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function qle(e,t){const n=t?te(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...Uk(e),n];return MY(YS(e))?qk(e,r):r}function Wle(e,t,n,r,i,o,a=Ple()){var s;void 0===e&&(e=""),ta(e=_a(e))||(e=oa(e)),""===e&&(e="."+Bo);const c=pa(t,e=xa(e)),l=ta(c)?c:oa(c);if(!i){const e=xZ(l,r);if(e){const t=mx(e,r).typesVersions;if("object"==typeof t){const i=null==(s=$L(t))?void 0:s.paths;if(i){const t=oa(e);if(Gle(a,c.slice(xa(t).length),t,n,r,i))return a}}}}const u=!(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames());if(!hZ(r,l))return a;const _=mZ(r,l,n.extensionsToSearch,void 0,["./*"]);if(_)for(let e of _){if(e=ha(e),o&&0===Ea(e,o,t,u))continue;const{name:i,extension:s}=Hle(aa(e),r.getCompilationSettings(),n);a.add(zle(i,"script",s))}const d=pZ(r,l);if(d)for(const e of d){const t=aa(ha(e));"@types"!==t&&a.add($le(t))}return a}function Hle(e,t,n){const r=nB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(r)return{name:r,extension:_T(r)};if(0===n.referenceKind)return{name:e,extension:_T(e)};const i=Xk(n.endingPreference,n.resolutionMode,t,n.importingSourceFile);if(3===i){if(ea(e,Zd))return{name:e,extension:_T(e)};const n=nB.tryGetJSExtensionForFile(e,t);return n?{name:rT(e,n),extension:n}:{name:e,extension:_T(e)}}if((0===i||1===i)&&ea(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:eT(e),extension:_T(e)};const o=nB.tryGetJSExtensionForFile(e,t);return o?{name:rT(e,o),extension:o}:{name:e,extension:_T(e)}}function Gle(e,t,n,r,i,o){return Xle(e,t,n,r,i,Ge(o),(e=>o[e]),((e,t)=>{const n=iT(e),r=iT(t),i="object"==typeof n?n.prefix.length:e.length;return Bt("object"==typeof r?r.prefix.length:t.length,i)}))}function Xle(e,t,n,r,i,o,a,s){let c,l=[];for(const e of o){if("."===e)continue;const o=e.replace(/^\.\//,""),u=a(e);if(u){const a=iT(o);if(!a)continue;const _="object"==typeof a&&gn(a,t);_&&(void 0===c||-1===s(e,c))&&(c=e,l=l.filter((e=>!e.matchedPattern))),"string"!=typeof a&&void 0!==c&&1===s(e,c)||l.push({matchedPattern:_,results:Zle(o,u,t,n,r,i).map((({name:e,kind:t,extension:n})=>zle(e,t,n)))})}}return l.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==c}function Yle(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!gt(e))for(const n in e)if("default"===n||t.indexOf(n)>-1||qR(t,n))return Yle(e[n],t)}function Qle(e){return rue(e)?ta(e)?e:oa(e):void 0}function Zle(e,t,n,r,i,o){if(!Zt(e,"*"))return nn(e,"*")?a:l(e,"script");const s=e.slice(0,e.length-1),c=mn(n,s);return void 0===c?"/"===e[e.length-2]?l(s,"directory"):X(t,(e=>{var t;return null==(t=eue("",r,e,i,o))?void 0:t.map((({name:e,...t})=>({name:s+e,...t})))})):X(t,(e=>eue(c,r,e,i,o)));function l(e,t){return fn(e,n)?[{name:ba(e),kind:t,extension:void 0}]:a}}function eue(e,t,n,r,i){if(!i.readDirectory)return;const o=iT(n);if(void 0===o||yt(o))return;const s=pa(o.prefix),c=ta(o.prefix)?s:oa(s),l=ta(o.prefix)?"":aa(s),u=rue(e),_=u?ta(e)?e:oa(e):void 0,d=u?fa(c,l+_):c,f=ha(o.suffix),p=f&&Ov("_"+f),m=p?[rT(f,p),f]:[f],g=ha(fa(t,d)),h=u?g:xa(g)+l,y=f?m.map((e=>"**/*"+e)):["./*"];return[...te(mZ(i,g,r.extensionsToSearch,void 0,y),(e=>{const t=(n=e,D(m,(e=>{const t=(o=e,fn(r=ha(n),i=h)&&Zt(r,o)?r.slice(i.length,r.length-o.length):void 0);var r,i,o;return void 0===t?void 0:tue(t)})));var n;if(t){if(rue(t))return $le(la(tue(t))[1]);const{name:e,extension:n}=Hle(t,i.getCompilationSettings(),r);return zle(e,"script",n)}})),...f?a:te(pZ(i,g),(e=>"node_modules"===e?void 0:$le(e)))]}function tue(e){return e[0]===Bo?e.slice(1):e}function nue(e,t,n,r,i,o=Ple()){const s=new Map,c=yZ((()=>VL(t,e)))||a;for(const e of c)l(e);for(const t of bZ(n,e))l(fa(oa(t),"node_modules/@types"));return o;function l(n){if(hZ(e,n))for(const a of pZ(e,n)){const c=nj(a);if(!t.types||B(t.types,c))if(void 0===r)s.has(c)||(o.add(zle(c,"external module name",void 0)),s.set(c,!0));else{const t=fa(n,a),s=Nk(r,c,wv(e));void 0!==s&&Wle(s,t,i,e,!1,void 0,o)}}}}function rue(e){return nn(e,Bo)}var iue=S({"src/services/stringCompletions.ts"(){hge(),uue(),Ele={directory:0,script:1,"external module name":2},Dle=/^(\/\/\/\s*Ile,getStringLiteralCompletions:()=>Fle});var aue=S({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){iue()}}),sue={};k(sue,{CompletionKind:()=>dce,CompletionSource:()=>uce,SortText:()=>lce,StringCompletions:()=>oue,SymbolOriginInfoKind:()=>_ce,createCompletionDetails:()=>Qce,createCompletionDetailsForSymbol:()=>Yce,getCompletionEntriesFromSymbols:()=>Wce,getCompletionEntryDetails:()=>Gce,getCompletionEntrySymbol:()=>Zce,getCompletionsAtPosition:()=>kce,getPropertiesForObjectExpression:()=>_le,moduleSpecifierResolutionCacheAttemptLimit:()=>cce,moduleSpecifierResolutionLimit:()=>sce});var cue,lue,uue=S({"src/services/_namespaces/ts.Completions.ts"(){Ale(),aue()}});function _ue(e,t,n,r){const i=function(e,t,n){const r=new Map;for(const i of e)n&&n.throwIfCancellationRequested(),mue(i,((e,n)=>{const i=t.getSymbolAtLocation(n);if(i){const t=xB(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=CY(),c=CY(),l=[],u=!!r.globalExports,_=u?void 0:[];return function e(t){const n=m(t);if(n)for(const t of n)if(s(t))switch(a&&a.throwIfCancellationRequested(),t.kind){case 213:if(pm(t)){p(Dc(r=t,bue)||r.getSourceFile(),!!d(r,!0));break}if(!u){const e=t.parent;if(2===i&&260===e.kind){const{name:t}=e;if(80===t.kind){l.push(t);break}}}break;case 80:break;case 271:f(t,t.name,vb(t,1),!1);break;case 272:l.push(t);const n=t.importClause&&t.importClause.namedBindings;n&&274===n.kind?f(t,n.name,!1,!0):!u&&kh(t)&&p(vue(t));break;case 278:t.exportClause?280===t.exportClause.kind?p(vue(t),!0):l.push(t):e(yue(t,o));break;case 205:!u&&t.isTypeOf&&!t.qualifier&&d(t)&&p(t.getSourceFile(),!0),l.push(t);break;default:Fn.failBadSyntaxKind(t,"Unexpected import kind.")}var r}(r),{directImports:l,indirectUsers:function(){if(u)return e;if(r.declarations)for(const e of r.declarations)kp(e)&&t.has(e.getSourceFile().fileName)&&p(e);return _.map(Ff)}()};function d(e,t=!1){return Dc(e,(e=>t&&bue(e)?"quit":nI(e)&&le(e.modifiers,HE)))}function f(e,t,n,r){if(2===i)r||l.push(e);else if(!u){const r=vue(e);Fn.assert(312===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!pue(e,(e=>{if(!hA(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&yA(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?p(r,!0):p(r)}}function p(e,t=!1){if(Fn.assert(!u),!c(e))return;if(_.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;Fn.assert(!!(1536&n.flags));const r=m(n);if(r)for(const e of r)KD(e)||p(vue(e),!0)}function m(e){return n.get(xB(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...due(c,o,a.exportKind,n,s)}}}function due(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(271===e.kind)return void(xue(e)&&l(e.name));if(80===e.kind)return void l(e);if(205===e.kind){if(e.qualifier){const n=Zb(e.qualifier);n.escapedText===Mc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&yA(e.exportClause)&&u(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 274:l(c.name);break;case 275:0!==n&&1!==n||u(c);break;default:Fn.assertNever(c)}!o||1!==n&&2!==n||i&&o.escapedText!==VY(t)||s(o,r.getSymbolAtLocation(o))}function l(e){2!==n||i&&!_(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function u(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;_((o||e).escapedText)&&(o?(a.push(o),i&&e.escapedText!==t.escapedName||s(e,r.getSymbolAtLocation(e))):s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function _(e){return e===t.escapedName||0!==n&&"default"===e}}function fue(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(312===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectives().get(n.fileName,n.resolutionMode||a.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}mue(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(tv(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function pue(e,t){return w(312===e.kind?e.statements:e.body.statements,(e=>t(e)||bue(e)&&w(e.body&&e.body.statements,t)))}function mue(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(vh(n),n);else pue(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&NE(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;xue(n)&&t(n,n.moduleReference.expression);break}}}))}function gue(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&xue(t);case 276:return!t.propertyName;case 273:case 274:return Fn.assert(t.name===e),!0;case 208:return Pg(e)&&jg(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(vA(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(QD(n)&&th(n.expression)&&!WE(n.name))return t.getSymbolAtLocation(n);if(zA(n)&&fN(n.parent.parent)&&2===nh(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=Fn.checkDefined(e.valueDeclaration);return gA(i)?null==(n=bt(i.expression,w_))?void 0:n.symbol:fN(i)?null==(r=bt(i.right,w_))?void 0:r.symbol:UA(i)?i.symbol:void 0}(r,n),void 0===r))return;const i=VY(r);return void 0===i||"default"===i||i===t.escapedName?{kind:0,symbol:r}:void 0}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 211===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&fN(c)?u(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=GN(e)?e:GD(e)?bc(e):void 0;return n?e.name!==t||BA(n.parent)?void 0:PN(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&vb(i,1)){if(aA(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(fA(s))return o(t,0);if(gA(s))return l(s);if(gA(c))return l(c);if(fN(s))return u(s,!0);if(fN(c))return u(c,!0);if(NP(s)||pP(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function u(e,r){let i;switch(nh(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(uS(xt(e.left,lS))):t;return a&&o(a,i)}}function o(e,t){const r=hue(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return vb(e,1024)?1:0}}function hue(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return TY(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function yue(e,t){return t.getMergedSymbol(vue(e).symbol)}function vue(e){if(213===e.kind)return e.getSourceFile();const{parent:t}=e;return 312===t.kind?t:(Fn.assert(268===t.kind),xt(t.parent,bue))}function bue(e){return 267===e.kind&&11===e.name.kind}function xue(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var Sue,kue,Tue,Cue,wue=S({"src/services/importTracker.ts"(){hge(),cue=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(cue||{}),lue=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(lue||{})}});function Eue(e,t=1){return{kind:t,node:e.name||e,context:Nue(e)}}function Due(e){return e&&void 0===e.kind}function Nue(e){if(A_(e))return Aue(e);if(e.parent){if(!A_(e.parent)&&!gA(e.parent)){if(Pg(e)){const t=fN(e.parent)?e.parent:lS(e.parent)&&fN(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==nh(t))return Aue(t)}if(wA(e.parent)||EA(e.parent))return e.parent.parent;if(CA(e.parent)||UN(e.parent)||Vl(e.parent))return e.parent;if(ed(e)){const t=bh(e);if(t){const e=Dc(t,(e=>A_(e)||I_(e)||K_(e)));return A_(e)?Aue(e):e}}const t=Dc(e,cD);return t?Aue(t.parent):void 0}return e.parent.name===e||hD(e.parent)||gA(e.parent)||(ou(e.parent)||GD(e.parent))&&e.parent.propertyName===e||90===e.kind&&vb(e.parent,1025)?Aue(e.parent):void 0}}function Aue(e){if(e)switch(e.kind){case 260:return XN(e.parent)&&1===e.parent.declarations.length?PN(e.parent.parent)?e.parent.parent:h_(e.parent.parent)?Aue(e.parent.parent):e.parent:e;case 208:return Aue(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return IN(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return lY(e.parent)?Aue(Dc(e.parent,(e=>fN(e)||h_(e)))):e;default:return e}}function Pue(e,t,n){if(!n)return;const r=Due(n)?que(n.start,t,n.end):que(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}function Fue(e,t,n,r,i){const o=NX(r,i),a={use:1},s=Cue.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Cue.getAdjustedNode(o,a),u=function(e){return 90===e.kind||!!ay(e)||sy(e)||137===e.kind&&hD(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?te(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=Bue(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&Oe(r.declarations);return{...jue(s?$c(s)||s:n),name:a,kind:o,displayParts:i,context:Aue(s)}}case 1:{const{node:t}=e;return{...jue(t),name:t.text,kind:"label",displayParts:[sQ(t.text,17)]}}case 2:{const{node:t}=e,n=ss(t.kind);return{...jue(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&Ife.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),eX(n),n).displayParts||[mQ("this")];return{...jue(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...jue(t),name:t.text,kind:"var",displayParts:[sQ(op(t),8)]}}case 5:return{textSpan:hY(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[sQ(`"${e.reference.fileName}"`,8)]};default:return Fn.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...Pue(o,i,l)}}(e,t,o))),references:n.map((e=>function(e,t){const n=zue(e);return t?{...n,isDefinition:0!==e.kind&&Gue(e.node,t)}:n}(e,u)))})):void 0}function Iue(e,t,n,r,i){const o=NX(r,i);let a;const s=Oue(e,t,n,o,i);if(211===o.parent.kind||208===o.parent.kind||212===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=pt(s),i=new Map;for(;!r.isEmpty();){const o=r.dequeue();if(!aS(i,bB(o.node)))continue;a=ke(a,o);const s=Oue(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return q(a,(e=>function(e,t){const n=$ue(e);if(0!==e.kind){const{node:r}=e;return{...n,...Kue(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function Oue(e,t,n,r,i){if(312===r.kind)return;const o=e.getTypeChecker();if(304===r.parent.kind){const e=[];return Cue.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(Eue(t)))),e}if(108===r.kind||sg(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[Eue(e.valueDeclaration)]}return Lue(i,r,e,n,t,{implementations:!0,use:1})}function Mue(e,t,n,r,i,o,a){return q(Rue(Cue.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function Lue(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return Rue(Cue.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function Rue(e){return e&&X(e,(e=>e.references))}function jue(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:que(cD(e)?e.expression:e,t)}}function Bue(e,t,n){const r=Cue.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&Oe(e.declarations)||n,{displayParts:o,symbolKind:a}=Ife.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function Jue(e,t,n,r,i){return{...$ue(e),...r&&Vue(e,t,n,i)}}function zue(e){const t=$ue(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:Hue(r),isInString:2===n||void 0}}function $ue(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=que(e.node,t);return{textSpan:n,fileName:t.fileName,...Pue(n,t,e.context)}}}function Vue(e,t,n,r){if(0!==e.kind&&qE(t)){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=zA(o);if(s||UY(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return YD(n)&&fN(n.parent)&&th(n.parent.left)?e:t}return e}if(mA(o)&&!o.propertyName)return B((vA(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:HH;if(vA(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&EE(e.node)&&lS(e.node.parent)){const e=zY(r);return{prefixText:e,suffixText:e}}return HH}function Kue(e,t){const n=t.getSymbolAtLocation(A_(e)&&e.name?e.name:e);return n?Bue(n,t,e):210===e.kind?{kind:"interface",displayParts:[uQ(21),mQ("object literal"),uQ(22)]}:231===e.kind?{kind:"local class",displayParts:[uQ(21),mQ("anonymous local class"),uQ(22)]}:{kind:tX(e),displayParts:[]}}function Uue(e){const t=$ue(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=Hue(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function que(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return ed(e)&&i-r>2&&(Fn.assert(void 0===n),r+=1,i-=1),_c(r,i)}function Wue(e){return 0===e.kind?e.textSpan:que(e.node,e.node.getSourceFile())}function Hue(e){const t=ay(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!lY(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||BA(e.parent);case 173:case 171:case 355:case 348:return!1;default:return Fn.failBadSyntaxKind(e)}}(t)||90===e.kind||Wx(e)}function Gue(e,t){var n;if(!t)return!1;const r=ay(e)||(90===e.kind?e.parent:sy(e)||137===e.kind&&hD(e.parent)?e.parent.parent:void 0),i=r&&fN(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}var Xue=S({"src/services/findAllReferences.ts"(){hge(),Zue(),Sue=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(Sue||{}),kue=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(kue||{}),Tue=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Tue||{}),(e=>{function t(e,t){return 1===t.use?e=EX(e):2===t.use&&(e=DX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||a;for(const e of i)if(NK(e)){const t=n.getSourceFileByPath(e.file),i=PK(n.getSourceFileByPath,e);AK(i)&&(r=ke(r,{kind:0,fileName:t.fileName,textSpan:hY(i)}))}return r}function r(e,t,n){if(e.parent&&oA(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function i(e,t,n,r,i,a){const s=1536&e.flags&&e.declarations&&O(e.declarations,UA);if(!s)return;const l=e.exports.get("export="),_=c(t,e,!!l,n,a);if(!l||!a.has(s.fileName))return _;const d=t.getTypeChecker();return o(t,_,u(e=Kx(l,d),void 0,n,a,d,r,i))}function o(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=L(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=s(e,t),i=s(e,n);if(r!==i)return Bt(r,i);const o=Wue(t),a=Wue(n);return o.start!==a.start?Bt(o.start,a.start):Bt(o.length,a.length)}))}}else n=r;return n}function s(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function c(e,t,n,r,i){Fn.assert(!!t.valueDeclaration);const o=te(fue(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(VD(t)){const e=xt(t.parent,KD);if(n&&!e.qualifier)return}return Eue(e.literal)}return"implicit"===e.kind?Eue(e.literal.text!==od&&$I(e.referencingFile,(e=>2&e.transformFlags?TA(e)||CA(e)||DA(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile):{kind:0,fileName:e.referencingFile.fileName,textSpan:hY(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 312:break;case 267:i.has(e.getSourceFile().fileName)&&o.push(Eue(e.name));break;default:Fn.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const s=t.exports.get("export=");if(null==s?void 0:s.declarations)for(const e of s.declarations){const t=e.getSourceFile();if(i.has(t.fileName)){const n=fN(e)&&QD(e.left)?e.left.expression:gA(e)?Fn.checkDefined(yX(e,95,t)):$c(e)||e;o.push(Eue(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:a}function l(e){return 148===e.kind&&JD(e.parent)&&148===e.parent.operator}function u(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;return vA(i)&&r?A(t,e,i,n):D(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;Fn.fail(`Unexpected symbol at ${Fn.formatSyntaxKind(t.kind)}: ${Fn.formatSymbol(e)}`)}return DD(r.parent)&&OD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!W(a))||e,c=t?K(t,s):7,l=[],u=new m(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(Pu(e.parent))return Fn.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),d=W(a)&&s.declarations?O(s.declarations,vA):void 0;if(d)N(d.name,s,d,u.createSearch(t,e,void 0),u,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)P(t,s,u),g(t,s,{exportingModuleSymbol:s.parent,exportKind:1},u);else{const e=u.createSearch(t,s,void 0,{allSearchSymbols:t?J(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});_(s,u,e)}return l}function _(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(218===i.kind||231===i.kind))return i;if(!t)return;if(8196&n){const e=O(t,(e=>yb(e,8)||pu(e)));return e?xy(e,263):void 0}if(t.some(UY))return;const o=r&&!(262144&e.flags);if(o&&(!TY(r)||r.globalExports))return;let a;for(const e of t){const t=eX(e);if(a&&a!==t)return;if(!t||312===t.kind&&!om(t))return;if(a=t,oN(a)){let e;for(;e=jh(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)C(r,r.getSourceFile(),n,t,!(UA(r)&&!B(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),v(e,n,t)}let d;var f;function p(e){if(!(33555968&e.flags))return;const t=e.declarations&&O(e.declarations,(e=>!UA(e)&&!nA(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,s,_,d,f,p={},m=new Set(d.map((e=>e.fileName)))){var g,h,y;if(UA(s=t(s,p))){const t=g_e.getReferenceAtPosition(s,e,_);if(!(null==t?void 0:t.file))return;const r=_.getTypeChecker().getMergedSymbol(t.file.symbol);if(r)return c(_,r,!1,d,m);const i=_.getFileIncludeReasons();if(!i)return;return[{definition:{type:5,reference:t.reference,file:s},references:n(t.file,i,_)||a}]}if(!p.implementations){const e=function(e,t,n){if(xY(e.kind)){if(116===e.kind&&lN(e.parent))return;if(148===e.kind&&!l(e))return;return function(e,t,n,r){const i=X(e,(e=>(n.throwIfCancellationRequested(),te(x(e,ss(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return Eue(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?l:void 0)}if(mm(e.parent)&&e.parent.name===e)return function(e,t){const n=X(e,(e=>(t.throwIfCancellationRequested(),te(x(e,"meta",e),(e=>{const t=e.parent;if(mm(t))return Eue(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(eD(e)&&gD(e.parent))return[{definition:{type:2,node:e},references:[Eue(e)]}];if(VG(e)){const t=zG(e.parent,e.text);return t&&k(t.parent,t)}return KG(e)?k(e.parent,e):nX(e)?function(e,t,n){let r=eg(e,!1,!1),i=32;switch(r.kind){case 174:case 173:if(Bm(r)){i&=Ib(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:i&=Ib(r),r=r.parent;break;case 312:if(HI(r)||j(e))return;case 262:case 218:break;default:return}const o=X(312===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),x(e,"this",UA(r)?e:r).filter((e=>{if(!nX(e))return!1;const t=eg(e,!1,!1);if(!w_(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return Bm(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&w_(t.parent)&&r.symbol===t.parent.symbol&&bb(t)===!!i;case 312:return 312===t.kind&&!HI(t)&&!j(e)}}))))).map((e=>Eue(e)));return[{definition:{type:3,node:D(o,(e=>uD(e.node.parent)?e.node:void 0))||e},references:o}]}(e,t,n):108===e.kind?function(e){let t=ig(e,!1);if(!t)return;let n=32;switch(t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=Ib(t),t=t.parent;break;default:return}const r=te(x(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=ig(e,!1);return r&&bb(r)===!!n&&r.parent.symbol===t.symbol?Eue(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e):void 0}(s,d,f);if(e)return e}const v=_.getTypeChecker(),b=v.getSymbolAtLocation(hD(s)&&s.parent.name||s);if(!b){if(!p.implementations&&ed(s)){if(KY(s)){const e=_.getFileIncludeReasons(),t=null==(y=null==(h=null==(g=s.getSourceFile().resolvedModules)?void 0:g.get(s.text,hK(s.getSourceFile(),s)))?void 0:h.resolvedModule)?void 0:y.resolvedFileName,r=t?_.getSourceFile(t):void 0;if(r)return[{definition:{type:4,node:s},references:n(r,e,_)||a}]}return function(e,t,n,r){const i=kX(e,n),o=X(t,(t=>(r.throwIfCancellationRequested(),te(x(t,e.text),(r=>{if(ed(r)&&r.text===e.text){if(!i)return FE(r)&&!Cx(r,t)?void 0:Eue(r,2);{const e=kX(r,n);if(i!==n.getStringType()&&i===e)return Eue(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(s,d,v,f)}return}if("export="===b.escapedName)return c(_,b.parent,!1,d,m);const S=i(b,_,d,f,p,m);if(S&&!(33554432&b.flags))return S;const T=r(s,b,v),C=T&&i(T,_,d,f,p,m);return o(_,S,u(b,s,d,m,v,f,p),C)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,r,i=new Set(r.map((e=>e.fileName)))){var o,s;const l=null==(o=t.getSourceFile(e))?void 0:o.symbol;if(l)return(null==(s=c(t,l,!1,r,i)[0])?void 0:s.references)||a;const u=t.getFileIncludeReasons(),_=t.getSourceFile(e);return _&&u&&n(_,u,t)||a},(f=d||(d={}))[f.None=0]="None",f[f.Constructor=1]="Constructor",f[f.Class=2]="Class";class m{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=CY(),this.markSeenReExportRHS=CY(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=_ue(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=yv(Mc(lx(t)||p(t)||t)),allSearchSymbols:o=[t]}=r,a=Pc(i),s=this.options.implementations&&e?function(e,t,n){const r=HG(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=te(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>B(o,e)}}referenceAdder(e){const t=xB(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(Eue(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=bB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=oe(r,xB(e))||i;return i}}function g(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)h(t,r)&&e(t)}for(const[e,t]of i)T(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)v(e,i,r)}}function h(e,t){return!(!w(e,t)||2===t.options.use&&(!qE(e)||ou(e.parent)&&"default"===e.escapedText))}function y(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();T(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function v(e,t,n){void 0!==M7(e).get(t.escapedText)&&T(e,t,n)}function b(e,t,n,r,i=n){const o=hc(e.parent,e.parent.parent)?Le(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of x(n,o.name,i)){if(!qE(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||vA(a.parent)&&A(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function x(e,t,n=e){return te(S(e,t,n),(t=>{const n=NX(e,t);return n===e?void 0:n}))}function S(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&Bs(i.charCodeAt(s-1),99)||e!==o&&Bs(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function k(e,t){const n=e.getSourceFile(),r=t.text,i=te(x(n,r,e),(e=>e===t||VG(e)&&zG(e,r)===t?Eue(e):void 0));return[{definition:{type:1,node:t},references:i}]}function T(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),C(e,e,t,n,r)}function C(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of S(t,n.text,e))E(t,o,n,r,i)}function w(e,t){return!!(EG(e)&t.searchMeaning)}function E(e,t,n,r,i){const o=NX(e,t);if(!function(e,t){switch(e.kind){case 81:if(XA(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return(QG(n)||XG(e)||ZG(e)||eN(e.parent)&&rh(e.parent)&&e.parent.arguments[1]===e)&&n.text.length===t.length}case 9:return QG(e)&&e.text.length===t.length;case 90:return"default".length===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&JX(e,t)||r.options.findInComments&&_Y(e,t))&&r.addStringOrCommentReference(e.fileName,uc(t,n.text.length)));if(!w(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(mA(s)&&s.propertyName===o)return;if(vA(s))return Fn.assert(80===o.kind),void N(o,a,s,n,r,i);const c=function(e,t,n,r){const{checker:i}=r;return z(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&$(t)!==$(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&$x(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>R(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&P(o,c,r);break;case 1:!function(e,t,n,r){AG(e)&&P(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(Pu(e.parent))Fn.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=F(e);if(r&&r.declarations)for(const e of r.declarations){const r=yX(e,137,t);Fn.assert(176===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&q(e,110,(e=>{AG(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=qb(BG(e).parent);t&&(function(e,t){const n=F(e.symbol);if(n&&n.declarations)for(const e of n.declarations){Fn.assert(176===e.kind);const n=e.body;n&&q(n,108,(e=>{NG(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!F(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);_(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){P(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!Pu(r))return;Fn.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)Ou(e)&&bb(e)&&e.body&&e.body.forEachChild((function e(t){110===t.kind?i(t):ku(t)||Pu(t)||t.forEachChild(e)}))}(o,n,r);break;default:Fn.assertNever(r.specialSearchKind)}Pg(o)&&GD(o.parent)&&jg(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=gue(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?W(r.options)||y(o,r):g(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&$c(t);33554432&e||!o||!n.includes(i)||P(o,i,r)}(a,n,r)}function N(e,t,n,r,i,o,a){Fn.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,u=s.parent,_=A(e,t,n,i.checker);if(a||r.includes(_)){if(c?e===c?(u.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&P(l,Fn.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&"default"===l.escapedText||d(),!W(i.options)||a){const t="default"===e.escapedText||"default"===n.name.escapedText?1:0,r=Fn.checkDefined(n.symbol),o=hue(r,t,i.checker);o&&g(e,r,o,i)}if(1!==r.comingFrom&&u.moduleSpecifier&&!c&&!W(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&y(e,i)}}function d(){o&&P(e,_,i)}}function A(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return Fn.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function P(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(oy(e)&&(33554432&(r=e.parent).flags?!ZN(r)&&!eA(r):Am(r)?G_(r):Cu(r)?r.body:Pu(r)||C_(r)))return void t(e);var r;if(80!==e.kind)return;304===e.parent.kind&&U(e,n.checker,t);const i=I(e);if(i)return void t(i);const o=Dc(e,(e=>!sD(e.parent)&&!Ju(e.parent)&&!Ru(e.parent))),a=o.parent;if(H_(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(G_(a))s(a.initializer);else if(ku(a)&&a.body){const e=a.body;241===e.kind?wm(e,(e=>{e.expression&&s(e.expression)})):s(e)}else u_(a)&&s(a.expression);function s(e){M(e)&&t(e)}}(e,o,n):o(e,r)}function F(e){return e.members&&e.members.get("__constructor")}function I(e){return qE(e)||QD(e)?I(e.parent):bN(e)?bt(e.parent.parent,yn(Pu,ZN)):void 0}function M(e){switch(e.kind){case 217:return M(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function R(e,t,n,r){if(e===t)return!0;const i=xB(e)+","+xB(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>yy(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&R(i.symbol,t,n,r)}))));return n.set(i,a),a}function j(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function J(e,t,n,r,i,o){const a=[];return z(e,t,n,r,!(r&&i),((t,n,r)=>{r&&$(e)!==$(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function z(e,t,n,i,o,a,s){const c=L7(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&i)return a(e,void 0,void 0,3);const r=n.getContextualType(c.parent),o=r&&D(R7(c,n,r,!0),(e=>d(e,4)));if(o)return o;const s=function(e,t){return lY(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const u=e&&a(e,void 0,void 0,3);if(u)return u}const l=r(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const u=d(e);if(u)return u;if(e.valueDeclaration&&hc(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(xt(e.valueDeclaration,uD),e.name);return Fn.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const _=af(e,281);if(!i||_&&!_.propertyName){const e=_&&n.getExportSpecifierLocalTargetSymbol(_);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!i){let r;return r=o?UY(t.parent)?qY(n,t.parent):void 0:f(e,n),r&&d(r,4)}if(Fn.assert(i),o){const t=f(e,n);return t&&d(t,4)}function d(e,t){return D(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Map;return function e(o){if(96&o.flags&&aS(i,xB(o)))return D(o.declarations,(i=>D(yy(i),(i=>{const o=n.getTypeAtLocation(i),a=o&&o.symbol&&n.getPropertyOfType(o,t);return o&&a&&(D(n.getRootSymbols(a),r)||e(o.symbol))}))))}(e)}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function f(e,t){const n=af(e,208);if(n&&UY(n))return qY(t,n)}}function $(e){return!!e.valueDeclaration&&!!(32&Pb(e.valueDeclaration))}function K(e,t){let n=EG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=wG(e);t&n&&(n|=t)}}while(n!==e)}return n}function U(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&wG(e)&&n(e)}function q(e,t,n){zI(e,(e=>{e.kind===t&&n(e),q(e,t,n)}))}function W(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=_ue(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:l,indirectUsers:u,singleReferences:_}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of _)qE(e)&&KD(e.parent)&&s(e);for(const e of u)for(const n of x(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=le(null==e?void 0:e.declarations,(e=>!!bt(e,gA)));!qE(n)||ou(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return b(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=b,e.getTopMostDeclarationNamesInFile=function(e,t){return V(x(t,e),(e=>!!ay(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=eX(e),t++;return t}(t);return le(e.declarationNames)&&n!==e.depth?ne===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=K,e.getReferenceEntriesForShorthandPropertyAssignment=U})(Cue||(Cue={}))}}),Yue={};k(Yue,{Core:()=>Cue,DefinitionKind:()=>Sue,EntryKind:()=>kue,ExportKind:()=>cue,FindReferencesUse:()=>Tue,ImportExport:()=>lue,createImportTracker:()=>_ue,findModuleReferences:()=>fue,findReferenceOrRenameEntries:()=>Mue,findReferencedSymbols:()=>Fue,getContextNode:()=>Aue,getExportInfo:()=>hue,getImplementationsAtPosition:()=>Iue,getImportOrExportSymbol:()=>gue,getReferenceEntriesForNode:()=>Lue,getTextSpanOfEntry:()=>Wue,isContextWithStartAndEndNode:()=>Due,isDeclarationOfSymbol:()=>Gue,isWriteAccessForReference:()=>Hue,nodeEntry:()=>Eue,toContextSpan:()=>Pue,toHighlightSpan:()=>Uue,toReferenceEntry:()=>zue,toRenameLocation:()=>Jue});var Que,Zue=S({"src/services/_namespaces/ts.FindAllReferences.ts"(){wue(),Xue()}});function e_e(e,t,n,r,i){var o,s;const c=n_e(t,n,e),l=c&&[(u=c.reference.fileName,_=c.fileName,d=c.unverified,{fileName:_,textSpan:_c(0,0),kind:"script",name:u,containerName:void 0,containerKind:void 0,unverified:d})]||a;var u,_,d;if(null==c?void 0:c.file)return l;const f=NX(t,n);if(f===t)return;const{parent:p}=f,m=e.getTypeChecker();if(164===f.kind||qE(f)&&vP(p)&&p.tagName===f)return function(e,t){const n=Dc(t,Au);if(!n||!n.name)return;const r=Dc(n,Pu);if(!r)return;const i=my(r);if(!i)return;const o=ny(i.expression),a=yN(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Fc(Kp(n.name)),c=xb(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);return c?l_e(e,c,t):void 0}(m,f)||a;if(VG(f)){const e=zG(f.parent,f.text);return e?[__e(m,e,"label",f.text,void 0)]:void 0}if(107===f.kind){const e=Dc(f.parent,(e=>gD(e)?"quit":Cu(e)));return e?[f_e(m,e)]:void 0}if(135===f.kind){const e=Dc(f,(e=>Cu(e)));return e&&le(e.modifiers,(e=>134===e.kind))?[f_e(m,e)]:void 0}if(127===f.kind){const e=Dc(f,(e=>Cu(e)));return e&&e.asteriskToken?[f_e(m,e)]:void 0}if(eD(f)&&gD(f.parent)){const e=f.parent.parent,{symbol:t,failedAliasResolution:n}=c_e(e,m,i),r=V(e.members,gD),o=t?m.symbolToString(t,e):"",a=f.getSourceFile();return q(r,(e=>{let{pos:t}=Sx(e);return t=Ts(a.text,t),__e(m,e,"constructor","static {}",o,!1,n,{start:t,length:"static".length})}))}let{symbol:g,failedAliasResolution:h}=c_e(f,m,i),y=f;if(r&&h){const e=w([f,...(null==g?void 0:g.declarations)||a],(e=>Dc(e,Ip))),t=e&&yh(e);t&&(({symbol:g,failedAliasResolution:h}=c_e(t,m,i)),y=t)}if(!g&&KY(y)){const e=null==(s=null==(o=t.resolvedModules)?void 0:o.get(y.text,hK(t,y)))?void 0:s.resolvedModule;if(e)return[{name:y.text,fileName:e.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:uc(0,0),failedAliasResolution:h,isAmbient:QI(e.resolvedFileName),unverified:y!==f}]}if(!g)return _e(l,function(e,t){return te(t.getIndexInfosAtLocation(e),(e=>e.declaration&&f_e(t,e.declaration)))}(f,m));if(r&&I(g.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const v=function(e,t){const n=function(e){const t=Dc(e,(e=>!HG(e))),n=null==t?void 0:t.parent;return n&&e_(n)&&dg(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return bt(r&&r.declaration,(e=>ku(e)&&!CD(e)))}(m,f);if(v&&(!J_(f.parent)||!function(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}(v))){const e=f_e(m,v,h);if(m.getRootSymbols(g).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||Hb(t.parent)||!e_(t.parent)&&e===(null==(n=bt(t.parent,w_))?void 0:n.symbol)}(e,v))))return[e];{const t=l_e(m,g,f,h,v)||a;return 108===f.kind?[e,...t]:[...t,e]}}if(304===f.parent.kind){const e=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return _e((null==e?void 0:e.declarations)?e.declarations.map((t=>u_e(t,m,e,f,!1,h))):a,t_e(m,f))}if(xu(f)&&GD(p)&&WD(p.parent)&&f===(p.propertyName||p.name)){const e=NY(f),t=m.getTypeAtLocation(p.parent);return void 0===e?a:X(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&l_e(m,n,f)}))}const b=t_e(m,f);return _e(l,b.length?b:l_e(m,g,f,h))}function t_e(e,t){const n=L7(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return X(R7(n,e,r,!1),(n=>l_e(e,n,t)))}return a}function n_e(e,t,n){var r,i,o,a;const s=p_e(e.referencedFiles,t);if(s){const t=n.getSourceFileFromReference(e,s);return t&&{reference:s,fileName:t.fileName,file:t,unverified:!1}}const c=p_e(e.typeReferenceDirectives,t);if(c){const t=null==(r=n.getResolvedTypeReferenceDirectives().get(c.fileName,c.resolutionMode||e.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:c,fileName:i.fileName,file:i,unverified:!1}}const l=p_e(e.libReferenceDirectives,t);if(l){const e=n.getLibFileFromReference(l);return e&&{reference:l,fileName:e.fileName,file:e,unverified:!1}}if(null==(i=e.resolvedModules)?void 0:i.size()){const r=AX(e,t);if(KY(r)&&Gs(r.text)&&e.resolvedModules.has(r.text,hK(e,r))){const t=null==(a=null==(o=e.resolvedModules.get(r.text,hK(e,r)))?void 0:o.resolvedModule)?void 0:a.resolvedFileName,i=t||pa(oa(e.fileName),r.text);return{file:n.getSourceFile(i),fileName:i,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}function r_e(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!Que.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function i_e(e,t,n,r){var i,o;if(4&tS(t)&&function(e,t){const n=t.symbol.name;if(!Que.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return a_e(e.getTypeArguments(t)[0],e,n,r);if(r_e(e,t)&&t.aliasTypeArguments)return a_e(t.aliasTypeArguments[0],e,n,r);if(32&tS(t)&&t.target&&r_e(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&eA(a)&&TD(a.type)&&a.type.typeArguments)return a_e(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function o_e(e,t,n){const r=NX(t,n);if(r===t)return;if(mm(r.parent)&&r.parent.name===r)return a_e(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=c_e(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&GN(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(Le(e))}}(i,a,e),c=s&&a_e(s,e,r,o),[l,u]=c&&0!==c.length?[s,c]:[a,a_e(a,e,r,o)];return u.length?[...i_e(e,l,r,o),...u]:!(111551&i.flags)&&788968&i.flags?l_e(e,Kx(i,e),r,o):void 0}function a_e(e,t,n,r){return X(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&l_e(t,e.symbol,n,r)))}function s_e(e,t,n){const r=e_e(e,t,n);if(!r||0===r.length)return;const i=p_e(t.referencedFiles,n)||p_e(t.typeReferenceDirectives,n)||p_e(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:hY(i)};const o=NX(t,n);return{definitions:r,textSpan:uc(o.getStart(),o.getWidth())}}function c_e(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){return 80===e.kind&&(e.parent===t||274!==t.kind)}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function l_e(e,t,n,r,i){const o=V(t.declarations,(e=>e!==i)),a=V(o,(e=>!function(e){if(!Kg(e))return!1;const t=Dc(e,(e=>!!Hb(e)||!Kg(e)&&"quit"));return!!t&&5===nh(t)}(e))),s=le(a)?a:o;return function(){if(32&t.flags&&!(19&t.flags)&&(AG(n)||137===n.kind))return c((O(o,Pu)||Fn.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(PG(n)||YG(n)?c(o,!1):void 0)||q(s,(i=>u_e(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?hD:ku),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>u_e(r,e,t,n))):[u_e(Be(a),e,t,n,!1,r)]:void 0}}function u_e(e,t,n,r,i,o){const a=t.symbolToString(n),s=Ife.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return __e(t,e,s,a,c,i,o)}function __e(e,t,n,r,i,o,a,s){const c=t.getSourceFile();return s||(s=pY($c(t)||t,c)),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...Yue.toContextSpan(s,c,Yue.getContextNode(t)),isLocal:!d_e(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function d_e(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(G_(t.parent)&&t.parent.initializer===t)return d_e(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(yb(t,8))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return d_e(e,t.parent);default:return!1}}function f_e(e,t,n){return u_e(t,e,t.symbol,t,!1,n)}function p_e(e,t){return O(e,(e=>tc(e,t)))}var m_e=S({"src/services/goToDefinition.ts"(){hge(),Que=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),g_e={};k(g_e,{createDefinitionInfo:()=>u_e,findReferenceInPosition:()=>p_e,getDefinitionAndBoundSpan:()=>s_e,getDefinitionAtPosition:()=>e_e,getReferenceAtPosition:()=>n_e,getTypeDefinitionAtPosition:()=>o_e});var h_e,y_e,v_e=S({"src/services/_namespaces/ts.GoToDefinition.ts"(){m_e()}});function b_e(e){return"literals"===e.includeInlayParameterNameHints}function x_e(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=n.getTypeChecker(),l=[];return function e(n){if(n&&0!==n.getFullWidth()){switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:i.throwIfCancellationRequested()}if(ac(r,n.pos,n.getFullWidth())&&(!Ju(n)||bN(n)))return o.includeInlayVariableTypeHints&&GN(n)||o.includeInlayPropertyDeclarationTypeHints&&fD(n)?function(e){if(!e.initializer||$u(e.name)||GN(e)&&!y(e))return;if(rb(e))return;const t=c.getTypeAtLocation(e);if(d(t))return;const n=h(t);if(n){if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&&Lt(e.name.getText(),n))return;_(n,e.name.end)}}(n):o.includeInlayEnumMemberValueHints&&VA(n)?function(e){if(e.initializer)return;const t=c.getConstantValue(e);var n,r;void 0!==t&&(n=t.toString(),r=e.end,l.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}))}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(eN(n)||tN(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=[],r=c.getResolvedSignatureForSignatureHelp(e,n);if(!r||!n.length)return;let i=0;for(const e of t){const t=ny(e);if(b_e(o)&&!m(t))continue;let n=0;if(hN(t)){const e=c.getTypeAtLocation(t.expression);if(c.isTupleType(e)){const{elementFlags:t,fixedLength:r}=e.target;if(0===r)continue;const i=L(t,(e=>!(1&e)));(i<0?r:i)>0&&(n=i<0?r:i)}}const a=c.getParameterIdentifierInfoAtPosition(r,i);if(i+=n||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!o.includeInlayParameterNameHintsWhenArgumentMatchesName&&f(t,r)&&!i)continue;const s=Fc(r);if(p(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&Cu(n)&&$T(n)&&function(e){const t=c.getSignatureFromDeclaration(e);if(t)for(let n=0;nh_e?e.substr(0,h_e-"...".length)+"...":e}`,position:t,kind:"Type",whitespaceBefore:!0})}function d(e){return e.symbol&&1536&e.symbol.flags}function f(e,t){return qE(e)?e.text===t:!!QD(e)&&e.name.text===t}function p(e,n){if(!Js(n,s.target,VS(t.scriptKind)))return!1;const r=Ms(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=y_e(n);return le(r,(e=>i.test(a.substring(e.pos,e.end))))}function m(e){switch(e.kind){case 224:{const t=e.operand;return eu(t)||qE(t)&&VT(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||VT(t)}}return eu(e)}function g(e){const t=e.valueDeclaration;if(!t||!uD(t))return;const n=c.getTypeOfSymbolAtLocation(e,t);return d(n)?void 0:h(n)}function h(e){const n=U$();return yf((r=>{const i=c.typeToTypeNode(e,void 0,71286784);Fn.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}function y(e){if((Qy(e)||GN(e)&&_m(e))&&e.initializer){const t=ny(e.initializer);return!(m(t)||tN(t)||YD(t)||u_(t))}return!0}function v(e,t){const n=t.getSourceFile();return{text:e,span:pY(t,n),file:n.fileName}}}var S_e=S({"src/services/inlayHints.ts"(){hge(),h_e=30,y_e=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),k_e={};k(k_e,{provideInlayHints:()=>x_e});var T_e,C_e,w_e,E_e,D_e=S({"src/services/_namespaces/ts.InlayHints.ts"(){S_e()}});function N_e(e,t){const n=[];return eQ(e,(e=>{for(const r of function(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];default:return Mh(e)}}(e)){const i=cP(r)&&r.tags&&O(r.tags,(e=>334===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||cP(r)&&353!==e.kind&&345!==e.kind&&r.tags&&r.tags.some((e=>353===e.kind||345===e.kind))&&!r.tags.some((e=>348===e.kind||349===e.kind)))continue;let o=r.comment?F_e(r.comment,t):[];i&&i.comment&&(o=o.concat(F_e(i.comment,t))),B(n,o,A_e)||n.push(o)}})),G(F(n,[kQ()]))}function A_e(e,t){return J(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function P_e(e,t){const n=[];return eQ(e,(e=>{const r=Sl(e);if(!r.some((e=>353===e.kind||345===e.kind))||r.some((e=>348===e.kind||349===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:I_e(e,t)})})),n}function F_e(e,t){return"string"==typeof e?[mQ(e)]:X(e,(e=>328===e.kind?[mQ(e.text)]:xQ(e,t)))}function I_e(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 348:return dQ;case 355:return fQ;case 352:return hQ;case 353:case 345:return gQ;default:return mQ}}(r);switch(r){case 356:const r=e.typeExpression;return r?o(r):void 0===n?void 0:F_e(n,t);case 336:case 335:return o(e.class);case 352:const a=e,s=[];if(a.constraint&&s.push(mQ(a.constraint.getText())),C(a.typeParameters)){C(s)&&s.push(cQ());const e=a.typeParameters[a.typeParameters.length-1];w(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(uQ(28),cQ())}))}return n&&s.push(cQ(),...F_e(n,t)),s;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:c}=e;return c?o(c):void 0===n?void 0:F_e(n,t);default:return void 0===n?void 0:F_e(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[mQ(r),...F_e(n,t)]:[i(r),cQ(),...F_e(n,t)]:[mQ(r)];var r}}function O_e(){return C_e||(C_e=q(T_e,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:sue.SortText.LocationPriority}))))}function M_e(){return w_e||(w_e=q(T_e,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:sue.SortText.LocationPriority}))))}function L_e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[mQ(e)],documentation:a,tags:void 0,codeActions:void 0}}function R_e(e){if(!qE(e.name))return a;const t=e.name.text,n=e.parent,r=n.parent;return ku(r)?te(r.parameters,(r=>{if(!qE(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&TP(t)&&qE(t.name)&&t.name.escapedText===i))||void 0!==t&&!fn(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:sue.SortText.LocationPriority}})):[]}function j_e(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[mQ(e)],documentation:a,tags:void 0,codeActions:void 0}}function B_e(e,t,n,r){const i=PX(t,n),o=Dc(i,cP);if(o&&(void 0!==o.comment||C(o.tags)))return;const a=i.getStart(t);if(!o&&aJ_e(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:u}=s,_=je(W_(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t){const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(l||[],f,d,e):"")+(u?function(e,t){return`${e} * @returns${t}`}(d,e):""),m=C(Sl(c))>0;if(p&&!m){const t="/**"+e+d+" * ";return{newText:t+e+p+d+" */"+(a===n?e+d:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function J_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:z_e(n,t)};case 303:return J_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&CD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:z_e(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return O(e.members,hD)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:z_e(r,t)}:{commentOwner:e}}case 312:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return J_e(e.expression,t);case 226:{const n=e;return 0===nh(n)?"quit":ku(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:z_e(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(oN(r)||aN(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:z_e(r,t)}}}function z_e(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(CD(e)||aN(e)&&l_(e.body)||Cu(e)&&e.body&&AN(e.body)&&!!wm(e.body,(e=>e)))}var $_e=S({"src/services/jsDoc.ts"(){hge(),T_e=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],E_e=L_e}}),V_e={};k(V_e,{getDocCommentTemplateAtPosition:()=>B_e,getJSDocParameterNameCompletionDetails:()=>j_e,getJSDocParameterNameCompletions:()=>R_e,getJSDocTagCompletionDetails:()=>L_e,getJSDocTagCompletions:()=>M_e,getJSDocTagNameCompletionDetails:()=>E_e,getJSDocTagNameCompletions:()=>O_e,getJsDocCommentsFromDeclarations:()=>N_e,getJsDocTagsFromDeclarations:()=>P_e});var K_e,U_e=S({"src/services/_namespaces/ts.JsDoc.ts"(){$_e()}});function q_e(e,t,n,r,i,o){const a=upe.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,l="RemoveUnused"===o||"All"===o,u=W_e(e,e.statements.filter(sA)),_=function(e,t){return gde(e,"boolean"==typeof e.organizeImportsIgnoreCase?e.organizeImportsIgnoreCase:(null==t?void 0:t())??!1)}(i,s?()=>2===cde(u,i):void 0),d=t=>(l&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(dA(o))l(o.name)||(o=void 0);else{const e=o.elements.filter((e=>l(e.name)));e.lengthdde(e,t,_)))),t);u.forEach((e=>f(e,d))),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=C(n);let i=0,o=0;for(;iW_e(e,t)))}(e).forEach((e=>f(e,(e=>ede(e,_)))));for(const t of e.statements.filter(gp))t.body&&(W_e(e,t.body.statements.filter(sA)).forEach((e=>f(e,d))),"RemoveUnused"!==o&&f(t.body.statements.filter(hA),(e=>ede(e,_))));return a.getChanges();function f(r,i){if(0===C(r))return;rw(r[0],1024);const o=c?ot(r,(e=>X_e(e.moduleSpecifier))):[r],l=X(s?Fe(o,((e,t)=>ode(e[0].moduleSpecifier,t[0].moduleSpecifier,_))):o,(e=>X_e(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===l.length)a.deleteNodes(e,r,{leadingTriviaOption:upe.LeadingTriviaOption.Exclude,trailingTriviaOption:upe.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:upe.LeadingTriviaOption.Exclude,trailingTriviaOption:upe.TrailingTriviaOption.Include,suffix:SQ(n,t.options)};a.replaceNodeWithNodes(e,r[0],l,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:upe.TrailingTriviaOption.Include},o)}}}function W_e(e,t){const n=zs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&H_e(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function H_e(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function G_e(e,t){const n=NE(t)&&t.text;return yt(n)&&le(e.moduleAugmentations,(e=>NE(e)&&e.text===n))}function X_e(e){return void 0!==e&&ed(e)?e.text:void 0}function Y_e(e,t,n){return Q_e(e,mde(t),n)}function Q_e(e,t,n){if(0===e.length)return e;const{importWithoutClause:r,typeOnlyImports:i,regularImports:o}=function(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(dA(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}(e),s=[];r&&s.push(r);for(const e of[o,i]){const r=e===i,{defaultImports:o,namespaceImports:c,namedImports:l}=e;if(!r&&1===o.length&&1===c.length&&0===l.length){const e=o[0];s.push(tde(e,e.importClause.name,c[0].importClause.namedBindings));continue}const u=Fe(c,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const e of u)s.push(tde(e,void 0,e.importClause.namedBindings));const _=Oe(o),d=Oe(l),f=_??d;if(!f)continue;let p;const m=[];if(1===o.length)p=o[0].importClause.name;else for(const e of o)m.push(FC.createImportSpecifier(!1,FC.createIdentifier("default"),e.importClause.name));m.push(...pde(l));const g=FC.createNodeArray(nde(m,t),null==d?void 0:d.importClause.namedBindings.elements.hasTrailingComma),h=0===g.length?p?void 0:FC.createNamedImports(a):d?FC.updateNamedImports(d.importClause.namedBindings,g):FC.createNamedImports(g);n&&h&&(null==d?void 0:d.importClause.namedBindings)&&!Cx(d.importClause.namedBindings,n)&&rw(h,2),r&&p&&h?(s.push(tde(f,p,void 0)),s.push(tde(d??f,void 0,h))):s.push(tde(f,p,h))}return s}function Z_e(e,t){return ede(e,mde(t))}function ede(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),o=[];n&&o.push(n);for(const e of[r,i]){if(0===e.length)continue;const n=[];n.push(...X(e,(e=>e.exportClause&&yA(e.exportClause)?e.exportClause.elements:a)));const r=nde(n,t),i=e[0];o.push(FC.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(yA(i.exportClause)?FC.updateNamedExports(i.exportClause,r):FC.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.assertClause))}return o}function tde(e,t,n){return FC.updateImportDeclaration(e,e.modifiers,FC.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.assertClause)}function nde(e,t){return Fe(e,((e,n)=>rde(e,n,t)))}function rde(e,t,n){return Xt(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}function ide(e,t,n){return ode(e,t,mde(!!n))}function ode(e,t,n){const r=void 0===e?void 0:X_e(e),i=void 0===t?void 0:X_e(t);return Xt(void 0===r,void 0===i)||Xt(Gs(r),Gs(i))||n(r,i)}function ade(e){var t;switch(e.kind){case 271:return null==(t=bt(e.moduleReference,kA))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function sde(e,t){return cde(W_e(e,e.statements.filter(sA)),t)}function cde(e,t){const n=gde(t,!1),r=gde(t,!0);let i=3,o=!1;for(const a of e){if(a.length>1){const e=ve(a,(e=>{var t;return(null==(t=bt(e.moduleSpecifier,NE))?void 0:t.text)??""}),n,r);if(e&&(i&=e,o=!0),!i)return i}const e=O(a,(e=>{var t,n;return(null==(n=bt(null==(t=e.importClause)?void 0:t.namedBindings,pA))?void 0:n.elements.length)>1}));if(e){const n=K_e(e.importClause.namedBindings.elements,t);if(n&&(i&=n,o=!0),!i)return i}if(3!==i)return i}return o?0:i}function lde(e,t){return ve(e,(e=>X_e(ade(e))||""),gde(t,!1),gde(t,!0))}function ude(e,t,n){const r=Ke(e,t,wt,((e,t)=>dde(e,t,n)));return r<0?~r:r}function _de(e,t,n){const r=Ke(e,t,wt,((e,t)=>rde(e,t,n)));return r<0?~r:r}function dde(e,t,n){return ode(ade(e),ade(t),n)||function(e,t){return Bt(fde(e),fde(t))}(e,t)}function fde(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:274===(null==(t=e.importClause.namedBindings)?void 0:t.kind)?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function pde(e){return X(e,(e=>q(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&pA(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?FC.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function mde(e){return e?Vt:Kt}function gde(e,t){return"unicode"===(e.organizeImportsCollation??"ordinal")?function(e,t){const n=function(e){let t=e.organizeImportsLocale;"auto"===t&&(t=qt()),void 0===t&&(t="en");const n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}(t),r=t.organizeImportsCaseFirst??!1,i=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,a=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:r||"false",sensitivity:a,numeric:i}).compare}(t,e):mde(t)}var hde=S({"src/services/organizeImports.ts"(){hge(),K_e=It(((e,t)=>ye(e,((e,t)=>Xt(e.isTypeOnly,t.isTypeOnly)))?ve(e,(e=>e.name.text),gde(t,!1),gde(t,!0)):0),new class{has([e,t]){return!(this._lastPreferences!==t||!this._cache)&&this._cache.has(e)}get([e,t]){if(this._lastPreferences===t&&this._cache)return this._cache.get(e)}set([e,t],n){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,n)}})}}),yde={};k(yde,{coalesceExports:()=>Z_e,coalesceImports:()=>Y_e,compareImportOrExportSpecifiers:()=>rde,compareImportsOrRequireStatements:()=>dde,compareModuleSpecifiers:()=>ide,detectImportDeclarationSorting:()=>lde,detectImportSpecifierSorting:()=>K_e,detectSorting:()=>sde,getImportDeclarationInsertionIndex:()=>ude,getImportSpecifierInsertionIndex:()=>_de,getOrganizeImportsComparer:()=>gde,organizeImports:()=>q_e});var vde,bde=S({"src/services/_namespaces/ts.OrganizeImports.ts"(){hde()}});function xde(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i...")}(e);case 288:return function(e){const n=_c(e.openingFragment.getStart(t),e.closingFragment.getEnd());return Ede(n,"code",n,!1,"<>...")}(e);case 285:case 286:return function(e){if(0!==e.properties.length)return Cde(e.getStart(t),e.getEnd(),"code")}(e.attributes);case 228:case 15:return function(e){if(15!==e.kind||0!==e.text.length)return Cde(e.getStart(t),e.getEnd(),"code")}(e);case 207:return i(e,!1,!GD(e.parent),23);case 219:return function(e){if(AN(e.body)||iN(e.body)||Ix(e.body.getFullStart(),e.body.getEnd(),t))return;return Ede(_c(e.body.getFullStart(),e.body.getEnd()),"code",pY(e))}(e);case 213:return function(e){if(!e.arguments.length)return;const n=yX(e,21,t),r=yX(e,22,t);return n&&r&&!Ix(n.pos,r.pos,t)?wde(n,r,e,t,!1,!0):void 0}(e);case 217:return function(e){if(Ix(e.getStart(),e.getEnd(),t))return;return Ede(_c(e.getStart(),e.getEnd()),"code",pY(e))}(e);case 275:case 279:case 300:return function(e){if(!e.elements.length)return;const n=yX(e,19,t),r=yX(e,20,t);return n&&r&&!Ix(n.pos,r.pos,t)?wde(n,r,e,t,!1,!1):void 0}(e)}var n;function r(e,t=19){return i(e,!1,!XD(e.parent)&&!eN(e.parent),t)}function i(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=yX(e,o,t),c=yX(e,a,t);return s&&c&&wde(s,c,n,t,r,i)}}(i,e);a&&n.push(a),r--,eN(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):ON(i)&&i.elseStatement&&ON(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=Sde(e.text.substring(i,r));if(o&&!YX(e,i))if(o[1]){const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}else{const t=_c(e.text.indexOf("//",i),r);n.push(Ede(t,"region",t,!1,o[2]||"#region"))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start))}function Sde(e){return fn(e=v(e),"//")?(e=h(e.slice(2)),vde.exec(e)):null}function kde(e,t,n,r){const i=Ms(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:u}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(Sde(c.slice(t,u))){l(),s=0;break}0===s&&(o=t),a=u,s++;break;case 3:l(),r.push(Cde(t,u,"comment")),s=0;break;default:Fn.assertNever(e)}function l(){s>1&&r.push(Cde(o,a,"comment"))}l()}function Tde(e,t,n,r){AE(e)||kde(e.pos,t,n,r)}function Cde(e,t,n){return Ede(_c(e,t),n)}function wde(e,t,n,r,i=!1,o=!0){return Ede(_c(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",pY(n,r),i)}function Ede(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var Dde=S({"src/services/outliningElementsCollector.ts"(){hge(),vde=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Nde={};k(Nde,{collectElements:()=>xde});var Ade=S({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Dde()}});function Pde(e,t,n,r){const i=DX(NX(t,n));if(Lde(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(ed(e)){const r=kX(e,t);if(r&&(128&r.flags||1048576&r.flags&&I(r.types,(e=>!!(128&e.flags)))))return Ide(e.text,e.text,"string","",e,n)}else if(UG(e)){const t=op(e);return Ide(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&Zo(n.fileName,".d.ts")}(r,e))))return Ode(Ra.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(qE(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(ed(e)&&bh(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Gs(e.text))return Ode(Ra.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&O(n.declarations,UA);if(!r)return;const i=Zt(e.text,"/index")||Zt(e.text,"/index.js")?void 0:tn(eT(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:uc(e.getStart(t)+1+s,e.text.length-s)}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&O(t.declarations,(e=>mA(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=Fde(e.path);if(void 0===o)return le(i,(e=>wZ(e.getSourceFile().path)))?Ra.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=Fde(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Kt(o[n],t[n]))return Ra.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}(n,o,t,i);if(s)return Ode(s);const c=Ife.getSymbolKind(t,o,e),l=NQ(e)||Oy(e)&&167===e.parent.kind?yv(Jy(e)):void 0;return Ide(l||t.symbolToString(o),l||t.getFullyQualifiedName(o),c,Ife.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return Ode(Ra.You_cannot_rename_this_element)}function Fde(e){const t=la(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function Ide(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:Mde(i,o)}}function Ode(e){return{canRename:!1,localizedErrorMessage:DS(e)}}function Mde(e,t){let n=e.getStart(t),r=e.getWidth(t);return ed(e)&&(n+=1,r-=2),uc(n,r)}function Lde(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return QG(e);default:return!1}}var Rde=S({"src/services/rename.ts"(){hge()}}),jde={};k(jde,{getRenameInfo:()=>Pde,nodeIsEligibleForRename:()=>Lde});var Bde,Jde,zde=S({"src/services/_namespaces/ts.Rename.ts"(){Rde()}});function $de(e,t,n,r,i){const o=e.getTypeChecker(),a=OX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(JX(t,n,a)||YX(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!UA(o)&&(i||!AN(o));o=o.parent){Fn.assert(iX(o.parent,o),"Not a subspan",(()=>`Child: ${Fn.formatSyntaxKind(o.kind)}, parent: ${Fn.formatSyntaxKind(o.parent.kind)}`));const e=Wde(o,t,n,r);if(e)return e}}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const u=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!t_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return B(r,e);case 28:{const t=vX(e);return!!t&&B(r,t)}case 30:return Vde(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!Vde(i,r,qE(a)?a.parent:a))return;const s=GX(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:Le(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return Fn.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),u?o.runWithCancellationToken(i,(e=>0===u.kind?nfe(u.candidates,u.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(s)return{items:[rfe(e,s,a,tfe(r),o)],applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(u.symbol,l,t,e))):Ng(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=efe(e.invocation),i=QD(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:D(t.getSourceFiles(),(t=>D(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>nfe(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function Vde(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=LX(r,t,i,!0);if(e)return iX(n,e);i=i.parent}return Fn.fail("Could not find preceding token")}function Kde(e,t,n){const r=qde(e,t,n);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}}function Ude(e,t,n){const r=function(e,t){if(30===e.kind||21===e.kind)return{list:Zde(e.parent,e,t),argumentIndex:0};{const t=vX(e);return t&&{list:t,argumentIndex:Xde(t,e)}}}(e,n);if(!r)return;const{list:i,argumentIndex:o}=r,a=function(e,t){const n=e.getChildren();let r=$(n,(e=>28!==e.kind));return!t&&n.length>0&&28===Be(n).kind&&r++,r}(i,JX(n,t,e));0!==o&&Fn.assertLessThan(o,a);const s=function(e,t){const n=e.getFullStart();return uc(n,Ts(t.text,e.getEnd(),!1)-n)}(i,n);return{list:i,argumentIndex:o,argumentCount:a,argumentsSpan:s}}function qde(e,t,n){const{parent:r}=e;if(t_(r)){const i=r,o=Ude(e,t,n);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!r.typeArguments&&r.typeArguments.pos===a.pos,invocation:{kind:0,node:i},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(FE(e)&&nN(r))return aY(e,t,n)?Yde(r,0,n):void 0;if(IE(e)&&215===r.parent.kind){const i=r,o=i.parent;return Fn.assert(228===i.kind),Yde(o,aY(e,t,n)?0:1,n)}if(DN(r)&&nN(r.parent.parent)){const i=r,o=r.parent.parent;if(ME(e)&&!aY(e,t,n))return;const a=function(e,t,n,r){return Fn.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),ru(t)?aY(t,n,r)?0:e+2:e+1}(i.parent.templateSpans.indexOf(i),e,t,n);return Yde(o,a,n)}if(J_(r)){const e=r.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:r},argumentsSpan:uc(e,Ts(n.text,r.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=XX(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:_c(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function Wde(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return Dc(e.parent,(e=>!!uD(e)||!(GD(e)||WD(e)||HD(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 217:case 174:case 218:case 219:const o=Ude(e,n,t);if(!o)return;const{argumentIndex:a,argumentCount:s,argumentsSpan:c}=o,l=mD(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return l&&{contextualType:l,argumentIndex:a,argumentCount:s,argumentsSpan:c};case 226:{const t=Hde(i),n=r.getContextualType(t),o=21===e.kind?0:Gde(i)-1,a=Gde(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:pY(i)}}default:return}}(i,n,t,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,u=a.getNonNullableType(),_=u.symbol;if(void 0===_)return;const d=je(u.getCallSignatures());var f;return void 0!==d?{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:(f=_,"__type"===f.name&&D(f.declarations,(e=>{var t;return CD(e)?null==(t=bt(e.parent,w_))?void 0:t.symbol:void 0}))||f)},argumentsSpan:l,argumentIndex:s,argumentCount:c}:void 0}(e,t,n,r)||qde(e,t,n)}function Hde(e){return fN(e.parent)?Hde(e.parent):e}function Gde(e){return fN(e.left)?Gde(e.left)+1:2}function Xde(e,t){let n=0;for(const r of e.getChildren()){if(r===t)break;28!==r.kind&&n++}return n}function Yde(e,t,n){const r=FE(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&Fn.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:Qde(e,n),argumentIndex:t,argumentCount:r}}function Qde(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();return 228===n.kind&&0===Be(n.templateSpans).literal.getFullWidth()&&(i=Ts(t.text,i,!1)),uc(r,i-r)}function Zde(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return Fn.assert(i>=0&&r.length>i+1),r[i+1]}function efe(e){return 0===e.kind?dg(e.node):e.called}function tfe(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}function nfe(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:s},c,l,u){var _;const d=tfe(o),f=2===o.kind?o.symbol:l.getSymbolAtLocation(efe(o))||u&&(null==(_=t.declaration)?void 0:_.symbol),p=f?wQ(l,f,u?c:void 0,void 0):a,m=q(e,(e=>function(e,t,n,r,i,o){return q((n?ofe:afe)(e,r,i,o),(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...ife(e,i,r)],u=e.getDocumentationComment(r),_=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:Jde,parameters:o,documentation:u,tags:_}}))}(e,p,n,l,d,c)));0!==s&&Fn.assertLessThan(s,r);let g=0,h=0;for(let n=0;n1)){let e=0;for(const t of i){if(t.isVariadic||t.parameters.length>=r){g=h+e;break}e++}}h+=i.length}Fn.assert(-1!==g);const y={items:Y(m,wt),applicableSpan:i,selectedItemIndex:g,argumentIndex:s,argumentCount:r},v=y.items[g];if(v.isVariadic){const e=L(v.parameters,(e=>!!e.isRest));-1sfe(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,uQ(30)],suffixDisplayParts:[uQ(32)],separatorDisplayParts:Jde,parameters:s,documentation:c,tags:l}}function ife(e,t,n){return TQ((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function ofe(e,t,n,r){const i=(e.target||e).typeParameters,o=U$(),s=(i||a).map((e=>sfe(e,t,n,r,o))),c=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,Bde)]:[];return t.getExpandedParameters(e).map((e=>{const i=FC.createNodeArray([...c,...q(e,(e=>t.symbolToParameterDeclaration(e,n,Bde)))]),a=TQ((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:s,prefix:[uQ(30)],suffix:[uQ(32),...a]}}))}function afe(e,t,n,r){const i=U$(),o=TQ((o=>{if(e.typeParameters&&e.typeParameters.length){const a=FC.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,Bde))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=bt(e[e.length-1],lf))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=TQ((o=>{const a=t.symbolToParameterDeclaration(e,n,Bde);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=lf(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,uQ(21)],suffix:[uQ(22)]})))}function sfe(e,t,n,r,i){const o=TQ((o=>{const a=t.typeParameterToDeclaration(e,n,Bde);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var cfe=S({"src/services/signatureHelp.ts"(){hge(),Bde=70246400,Jde=[uQ(28),cQ()]}}),lfe={};k(lfe,{getArgumentInfoForCompletions:()=>Kde,getSignatureHelpItems:()=>$de});var ufe,_fe=S({"src/services/_namespaces/ts.SignatureHelp.ts"(){cfe()}});function dfe(e,t){var n,r;let i={textSpan:_c(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=pfe(o);if(!i.length)break;for(let c=0;ce)break e;const d=Je(Ls(t.text,u.end));if(d&&2===d.kind&&s(d.pos,d.end),ffe(t,e,u)){if(v_(u)&&Cu(o)&&!Ix(u.getStart(t),u.getEnd(),t)&&a(u.getStart(t),u.getEnd()),AN(u)||DN(u)||IE(u)||ME(u)||l&&IE(l)||XN(u)&&PN(o)||MP(u)&&XN(o)||GN(u)&&MP(o)&&1===i.length||HA(u)||uP(u)||lP(u)){o=u;break}DN(o)&&_&&iu(_)&&a(u.getFullStart()-"${".length,_.getStart()+"}".length);const e=MP(u)&&yfe(l)&&vfe(_)&&!Ix(l.getStart(),_.getStart(),t);let s=e?l.getEnd():u.getStart();const c=e?_.getStart():bfe(t,u);if(W_(u)&&(null==(n=u.jsDoc)?void 0:n.length)&&a(Le(u.jsDoc).getStart(),c),MP(u)){const e=u.getChildren()[0];e&&W_(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==u.pos&&(s=Math.min(s,Le(e.jsDoc).getStart()))}a(s,c),(NE(u)||n_(u))&&a(s+1,c-1),o=u;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=_c(t,n);(!i||!QY(r,i.textSpan)&&cc(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function ffe(e,t,n){return Fn.assert(n.pos<=t),tt===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,hfe(gfe(mfe(i,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(dD(e)){const n=mfe(e.getChildren(),(t=>t===e.name||B(e.modifiers,t))),r=327===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=gfe(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,hfe(i)]:i}if(uD(e)){const t=mfe(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return gfe(mfe(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return GD(e)?gfe(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function mfe(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(hfe(r)),r=void 0),n.push(i));return r&&n.push(hfe(r)),n}function gfe(e,t,n=!0){if(e.length<2)return e;const r=L(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=Be(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=xe([i.length?hfe(i):void 0,o,c.length?hfe(c):void 0]);return s?l.concat(a):l}function hfe(e){return Fn.assertGreaterThanOrEqual(e.length,1),PT(uI.createSyntaxList(e),e[0].pos,Be(e).end)}function yfe(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function vfe(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function bfe(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var xfe=S({"src/services/smartSelection.ts"(){hge(),ufe=yn(sA,aA)}}),Sfe={};k(Sfe,{getSmartSelectionRange:()=>dfe});var kfe,Tfe=S({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){xfe()}});function Cfe(e,t,n){const r=wfe(e,t,n);if(""!==r)return r;const i=Ux(t);return 32&i?af(t,231)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function wfe(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&Le(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&l_(n)||eb(n))return"parameter";const i=Ux(t);if(3&i)return oQ(t)?"parameter":t.valueDeclaration&&_m(t.valueDeclaration)?"const":t.valueDeclaration&&um(t.valueDeclaration)?"using":t.valueDeclaration&&lm(t.valueDeclaration)?"await using":w(t.declarations,dm)?"let":Pfe(t)?"local var":"var";if(16&i)return Pfe(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=w(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));return r||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function Efe(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=eY(t,C(n)&&VZ(t)&&le(n,(e=>!VZ(e)))?8192:0);if(r)return r.split(",")}return[]}function Dfe(e,t){if(!t)return"";const n=new Set(Efe(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&w(Efe(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Ze(n.values()).join(","):""}function Nfe(e,t,n,r,i,o,s,c){var l;const u=[];let _=[],d=[];const f=Ux(t);let p=1&s?wfe(e,t,i):"",m=!1;const g=110===i.kind&&Sg(i)||eb(i);let h,y,v=!1;if(110===i.kind&&!g)return{displayParts:[lQ(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==p||32&f||2097152&f){if("getter"===p||"setter"===p){const e=O(t.declarations,(e=>e.name===i));if(e)switch(e.kind){case 177:p="getter";break;case 178:p="setter";break;case 172:p="accessor";break;default:Fn.assertNever(e)}else p="property"}let n,a;if(o??(o=g?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&211===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(t_(i)?a=i:(NG(i)||AG(i)||i.parent&&(J_(i.parent)||nN(i.parent))&&ku(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=214===a.kind||eN(a)&&108===a.expression.kind,s=i?o.getConstructSignatures():o.getCallSignatures();if(!n||B(s,n.target)||B(s,n)||(n=s.length?s[0]:void 0),n){switch(i&&32&f?(p="constructor",C(o.symbol,p)):2097152&f?(p="alias",E(p),u.push(cQ()),i&&(4&n.flags&&(u.push(lQ(128)),u.push(cQ())),u.push(lQ(105)),u.push(cQ())),T(t)):C(t,p),p){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":u.push(uQ(59)),u.push(cQ()),16&tS(o)||!o.symbol||(we(u,wQ(e,o.symbol,r,void 0,5)),u.push(kQ())),i&&(4&n.flags&&(u.push(lQ(128)),u.push(cQ())),u.push(lQ(105)),u.push(cQ())),N(n,s,262144);break;default:N(n,s)}m=!0,v=s.length>1}}else if(YG(i)&&!(98304&f)||137===i.kind&&176===i.parent.kind){const r=i.parent;if(t.declarations&&O(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const i=176===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),176===r.kind?(p="constructor",C(o.symbol,p)):C(179!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,p),n&&N(n,i),m=!0,v=i.length>1}}}if(32&f&&!m&&!g&&(S(),af(t,231)?E("local class"):u.push(lQ(86)),u.push(cQ()),T(t),A(t,n)),64&f&&2&s&&(x(),u.push(lQ(120)),u.push(cQ()),T(t),A(t,n)),524288&f&&2&s&&(x(),u.push(lQ(156)),u.push(cQ()),T(t),A(t,n),u.push(cQ()),u.push(_Q(64)),u.push(cQ()),we(u,CQ(e,i.parent&&Jl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608))),384&f&&(x(),le(t.declarations,(e=>tA(e)&&sm(e)))&&(u.push(lQ(87)),u.push(cQ())),u.push(lQ(94)),u.push(cQ()),T(t)),1536&f&&!g){x();const e=af(t,267),n=e&&e.name&&80===e.name.kind;u.push(lQ(n?145:144)),u.push(cQ()),T(t)}if(262144&f&&2&s)if(x(),u.push(uQ(21)),u.push(mQ("type parameter")),u.push(uQ(22)),u.push(cQ()),T(t),t.parent)k(),T(t.parent,r),A(t.parent,r);else{const r=af(t,168);if(void 0===r)return Fn.fail();const i=r.parent;if(i)if(ku(i)){k();const t=e.getSignatureFromDeclaration(i);180===i.kind?(u.push(lQ(105)),u.push(cQ())):179!==i.kind&&i.name&&T(i.symbol),we(u,EQ(e,t,n,32))}else eA(i)&&(k(),u.push(lQ(156)),u.push(cQ()),T(i.symbol),A(i.symbol,n))}if(8&f){p="enum member",C(t,"enum member");const n=null==(l=t.declarations)?void 0:l[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(u.push(cQ()),u.push(_Q(64)),u.push(cQ()),u.push(sQ(dp(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(x(),!m||0===_.length&&0===d.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const r=n.declarations[0],i=$c(r);if(i&&!m){const a=hp(r)&&vb(r,2),c="default"!==t.name&&!a,l=Nfe(e,n,Ff(r),r,i,o,s,c?t:n);u.push(...l.displayParts),u.push(kQ()),h=l.documentation,y=l.tags}else h=n.getContextualDocumentationComment(r,e),y=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:u.push(lQ(95)),u.push(cQ()),u.push(lQ(145));break;case 277:u.push(lQ(95)),u.push(cQ()),u.push(lQ(t.declarations[0].isExportEquals?64:90));break;case 281:u.push(lQ(95));break;default:u.push(lQ(102))}u.push(cQ()),T(t),w(t.declarations,(t=>{if(271===t.kind){const n=t;if(Cg(n))u.push(cQ()),u.push(_Q(64)),u.push(cQ()),u.push(lQ(149)),u.push(uQ(21)),u.push(sQ(op(wg(n)),8)),u.push(uQ(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(u.push(cQ()),u.push(_Q(64)),u.push(cQ()),T(t,r))}return!0}}))}if(!m)if(""!==p){if(o)if(g?(x(),u.push(lQ(110))):C(t,p),"property"===p||"accessor"===p||"getter"===p||"setter"===p||"JSX attribute"===p||3&f||"local var"===p||"index"===p||"using"===p||"await using"===p||g){if(u.push(uQ(59)),u.push(cQ()),o.symbol&&262144&o.symbol.flags&&"index"!==p){const t=TQ((t=>{const n=e.typeParameterToDeclaration(o,r,kfe);b().writeNode(4,n,Ff(Ac(r)),t)}));we(u,t)}else we(u,CQ(e,o,r));if(lf(t)&&t.links.target&&lf(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;Fn.assertNode(e.name,qE),u.push(cQ()),u.push(uQ(21)),u.push(mQ(Ic(e.name))),u.push(uQ(22))}}else if(16&f||8192&f||16384&f||131072&f||98304&f||"method"===p){const e=o.getNonNullableType().getCallSignatures();e.length&&(N(e[0],e),v=e.length>1)}}else p=Cfe(e,t,i);if(0!==_.length||v||(_=t.getContextualDocumentationComment(r,e)),0===_.length&&4&f&&t.parent&&t.declarations&&w(t.parent.declarations,(e=>312===e.kind)))for(const n of t.declarations){if(!n.parent||226!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(_=t.getDocumentationComment(e),d=t.getJsDocTags(e),_.length>0))break}if(0===_.length&&qE(i)&&t.valueDeclaration&&GD(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent;if(qE(n.name)&&WD(r)){const t=Jy(n.name),i=e.getTypeAtLocation(r);_=D(i.isUnion()?i.types:[i],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||a}}return 0!==d.length||v||(d=t.getContextualJsDocTags(r,e)),0===_.length&&h&&(_=h),0===d.length&&y&&(d=y),{displayParts:u,documentation:_,symbolKind:p,tags:0===d.length?void 0:d};function b(){return U$()}function x(){u.length&&u.push(kQ()),S()}function S(){c&&(E("alias"),u.push(cQ()))}function k(){u.push(cQ()),u.push(lQ(103)),u.push(cQ())}function T(r,i){let o;c&&r===t&&(r=c),"index"===p&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=wQ(e,r.parent)),a.push(uQ(23)),o.forEach(((t,n)=>{a.push(...CQ(e,t.keyType)),n!==o.length-1&&(a.push(cQ()),a.push(uQ(52)),a.push(cQ()))})),a.push(uQ(24))):a=wQ(e,r,i||n,void 0,7),we(u,a),16777216&t.flags&&u.push(uQ(58))}function C(e,t){x(),t&&(E(t),e&&!le(e.declarations,(e=>aN(e)||(oN(e)||yN(e))&&!e.name))&&(u.push(cQ()),T(e)))}function E(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void u.push(pQ(e));default:return u.push(uQ(21)),u.push(pQ(e)),void u.push(uQ(22))}}function N(t,n,i=0){we(u,EQ(e,t,r,32|i)),n.length>1&&(u.push(cQ()),u.push(uQ(21)),u.push(_Q(40)),u.push(sQ((n.length-1).toString(),7)),u.push(cQ()),u.push(mQ(2===n.length?"overload":"overloads")),u.push(uQ(22))),_=t.getDocumentationComment(e),d=t.getJsDocTags(),n.length>1&&0===_.length&&0===d.length&&(_=n[0].getDocumentationComment(e),d=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function A(t,n){const r=TQ((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,kfe);b().writeList(53776,i,Ff(Ac(n)),r)}));we(u,r)}}function Afe(e,t,n,r,i,o=EG(i),a){return Nfe(e,t,n,r,i,void 0,o,a)}function Pfe(e){return!e.parent&&w(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!jm(t);t=t.parent)if(312===t.kind||268===t.kind)return!1;return!0}))}var Ffe=S({"src/services/symbolDisplay.ts"(){hge(),kfe=70246400}}),Ife={};k(Ife,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Afe,getSymbolKind:()=>Cfe,getSymbolModifiers:()=>Dfe});var Ofe,Mfe,Lfe,Rfe,jfe,Bfe,Jfe,zfe=S({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Ffe()}});function $fe(e){const t=e.__pos;return Fn.assert("number"==typeof t),t}function Vfe(e,t){Fn.assert("number"==typeof t),e.__pos=t}function Kfe(e){const t=e.__end;return Fn.assert("number"==typeof t),t}function Ufe(e,t){Fn.assert("number"==typeof t),e.__end=t}function qfe(e,t){return Ts(e,t,!1,!0)}function Wfe(e,t,n,r){return{pos:Hfe(e,t,r),end:Xfe(e,n,r)}}function Hfe(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=rX(n,e);return aX(t,r)?r:n}if(2===a){const n=km(t,e.text);if(null==n?void 0:n.length)return rX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=rX(s,e);if(rX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=Ms(e.text,s))?void 0:i[0])||(null==(o=Ls(e.text,s))?void 0:o[0]);if(t)return Ts(e.text,t.end,!0,!0)}const u=s>0?1:0;let _=Lf(Uv(e,l)+u,e);return _=qfe(e.text,_),Lf(Uv(e,_),e)}function Gfe(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=Ls(e.text,r);if(n){const r=Uv(e,t.end);for(const t of n){if(2===t.kind||Uv(e,t.pos)>r)break;if(Uv(e,t.end)>r)return Ts(e.text,t.end,!0,!0)}}}}function Xfe(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=_e(Ls(e.text,i),Ms(e.text,i));return(null==(r=null==t?void 0:t[t.length-1])?void 0:r.end)||i}const a=Gfe(e,t,n);if(a)return a;const s=Ts(e.text,i,!0);return s===i||2!==o&&!vs(e.text.charCodeAt(s-1))?i:s}function Yfe(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function Qfe(e){return oN(e)||YN(e)}function Zfe(e,t){return Ts(e.text,Hfe(e,t,{leadingTriviaOption:1}),!1,!0)}function epe(e,t,n,r){const i=Zfe(e,r);if(void 0===n||Ix(Xfe(e,t,{}),i,e))return i;const o=LX(r.getStart(e),e);if(Yfe(t,o)){const r=LX(t.getStart(e),e);if(Yfe(n,r)){const t=Ts(e.text,o.getEnd(),!0,!0);if(Ix(r.getStart(e),o.getStart(e),e))return vs(e.text.charCodeAt(t-1))?t-1:t;if(vs(e.text.charCodeAt(t)))return t}}return i}function tpe(e){return YD(e)?e.properties:e.members}function npe(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(Qs(r))}`}return e}function rpe(e){const t=$B(e,rpe,Bfe,ipe,rpe),n=tv(t)?t:Object.create(t);return PT(n,$fe(e),Kfe(e)),n}function ipe(e,t,n,r,i){const o=IB(e,t,n,r,i);if(!o)return o;Fn.assert(e);const a=o===e?FC.createNodeArray(o.slice(0)):o;return PT(a,$fe(e),Kfe(e)),a}function ope(e){let t=0;const n=kv(e);function r(e,r){if(r||!function(e){return Ts(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;hs(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&Vfe(e,t)},onAfterEmitNode:e=>{e&&Ufe(e,t)},onBeforeEmitNodeArray:e=>{e&&Vfe(e,t)},onAfterEmitNodeArray:e=>{e&&Ufe(e,t)},onBeforeEmitToken:e=>{e&&Vfe(e,t)},onAfterEmitToken:e=>{e&&Ufe(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function ape(e,t){return!(YX(e,t)||JX(e,t)||VX(e,t)||KX(e,t))}function spe(e,t,n,r={leadingTriviaOption:1}){const i=Hfe(t,n,r),o=Xfe(t,n,r);e.deleteRange(t,{pos:i,end:o})}function cpe(e,t,n,r){const i=Fn.checkDefined(fge.SmartIndenter.getContainingList(r,n)),o=sp(i,r);Fn.assert(-1!==o),1!==i.length?(Fn.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:Zfe(n,r),end:o===i.length-1?Xfe(n,r,{}):epe(n,r,i[o-1],i[o+1])})):spe(e,n,r)}var lpe=S({"src/services/textChanges.ts"(){hge(),Ofe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Ofe||{}),Mfe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Mfe||{}),Lfe={leadingTriviaOption:0,trailingTriviaOption:0},Rfe=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(SQ(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){Fn.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:yY(n.span)})}deleteRange(e,t){this.changes.push({kind:0,sourceFile:e,range:t})}delete(e,t){this.deletedNodes.push({sourceFile:e,node:t})}deleteNode(e,t,n={leadingTriviaOption:1}){this.deleteRange(e,Wfe(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=Hfe(e,i,n,r),o=Xfe(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!Gfe(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Ts(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=Hfe(e,t,r),o=Xfe(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=Hfe(e,t,r),o=void 0===n?e.text.length:Hfe(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=Lfe){this.replaceRange(e,Wfe(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=Lfe){this.replaceRange(e,Wfe(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=Lfe){this.replaceRangeWithNodes(e,Wfe(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,Wfe(e,t,t,Lfe),n)}replaceNodeRangeWithNodes(e,t,n,r,i=Lfe){this.replaceRangeWithNodes(e,Wfe(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=Lfe){return!!Gfe(e,t,n)}nextCommaToken(e,t){const n=MX(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,yx(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,yx(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){const r=function(e){let t;for(const n of e.statements){if(!hm(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=Rs(r);void 0!==i&&(n=i.length,c());const o=Ms(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Qf(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Yf(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),syt(e.comment)?FC.createJSDocText(e.comment):e.comment)),r=Je(t.jsDoc);return r&&Ix(r.pos,r.end,e)&&0===C(n)?void 0:FC.createNodeArray(F(n,FC.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),FC.createJSDocComment(this.createJSDocText(e,t),FC.createNodeArray(n)))}addJSDocTags(e,t,n){const r=Y(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const n=e,r=t;return qE(n.name)&&qE(r.name)&&n.name.escapedText===r.name.escapedText?FC.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 349:return FC.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return FC.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,V(Y(t.jsDoc,(e=>e.tags)),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,yx(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(ku(t)){if(r=yX(t,22,e),!r){if(!aN(t))return!1;r=Le(t.parameters)}}else r=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=yX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(yX(t,21,e)||Le(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return I_(e)||Au(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:GN(e)?{suffix:", "}:uD(e)?uD(t)?{suffix:", "}:{}:NE(e)&&sA(e.parent)||pA(e)?{suffix:", "}:mA(e)?{suffix:","+(n?this.newLineCharacter:" ")}:Fn.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=Oe(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=O(t.body.statements,(e=>IN(e)&&fm(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=je(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,FC.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=Hfe(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:vs(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,tpe(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of tpe(t)){if(wx(r,i,e))return;const t=i.getStart(e),o=fge.SmartIndenter.findFirstNonWhitespaceColumn(rX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return fge.SmartIndenter.findFirstNonWhitespaceColumn(rX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===tpe(t).length,i=aS(this.classesWithNodesInsertedAtStart,bB(t),{node:t,sourceFile:e}),o=YD(t)&&(!am(e)||!r);return{indentation:n,prefix:(YD(t)&&am(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":ZN(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:", "})}insertNodesAfter(e,t,n){const r=this.insertNodeAfterWorker(e,t,Le(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;return i=n,((dD(r=t)||fD(r))&&ju(i)&&167===i.name.kind||F_(r)&&F_(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,yx(t.end),FC.createToken(27)),Xfe(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&I_(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return Fn.assert(I_(e)||ju(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(Fn.assert(!t.name),219===t.kind){const r=yX(t,39,e),i=yX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[FC.createToken(100),FC.createIdentifier(n)],{joiner:" "}),spe(this,e,r)):(this.insertText(e,Le(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,FC.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[FC.createToken(19),FC.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[FC.createToken(27),FC.createToken(20)],{joiner:" "}))}else{const r=yX(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,FC.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!Ix(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=fge.SmartIndenter.getContainingList(t,e)){if(!r)return void Fn.fail("node is not a list element");const i=sp(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=PX(e,t.end);if(o&&Yfe(t,o)){const t=r[i+1],a=qfe(e.text,t.getFullStart()),s=`${ss(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=rX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=LX(t.pos,e);c=Yfe(t,n)?n.kind:28,l=rX(r[i-1].getStart(e),e)!==s}if(function(e,t){let n=t;for(;n{const[n,r]=function(e,t){const n=yX(e,19,t),r=yX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===tpe(e).length,o=Ix(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,yx(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&oX(e.node,n)))||(gt(n)?this.deleteRange(t,yT(t,n)):Jfe.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=fge.SmartIndenter.getContainingList(t,n);if(t!==Be(r))return;const i=R(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:Zfe(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=jfe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(jfe.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}},(e=>{function t(e,t,r,i){const o=X(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=UI("any file name",o,99,!0,e);return npe(o,fge.formatDocument(a,i))+r}function n(e,t,n){const r=ope(n);return yV({newLine:UZ(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:rpe(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return te(ot(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=Fe(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let e=0;e`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=te(a,(e=>{const a=hY(e.range),s=1===e.kind?Ff(Ec(e.node))??e.sourceFile:2===e.kind?Ff(Ec(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,u=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,u){const{node:_,text:d}=n(e,t,c);u&&u(_,d);const f=WZ(l,t),p=void 0!==o?o:fge.SmartIndenter.getIndentation(i,r,f,a===c||rX(i,t)===i);void 0===s&&(s=fge.SmartIndenter.shouldIndentChildNode(f,e)&&f.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return gs(this,e)}};return npe(d,fge.formatNodeGivenIndentation(_,m,t.languageVariant,p,s,{...l,options:f}))}(e,t,r,l,c,i,o,a),_=2===e.kind?e.nodes.map((e=>en(u(e),i))).join((null==(s=e.options)?void 0:s.joiner)||i):u(e.node),d=void 0!==c.indentation||rX(l,t)===l?_:_.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||Zt(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!BZ(s.text,c,a.start))return bY(a,c)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(Kk(e),n,r,i);return{fileName:e,textChanges:[bY(uc(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(jfe||(jfe={})),Bfe={...P$,factory:LC(1|P$.factory.flags,P$.factory.baseFactory)},(e=>{function t(e,t,n){if(n.parent.name){const r=Fn.checkDefined(PX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else spe(e,t,xy(n,272))}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 169:{const t=i.parent;aN(t)&&1===t.parameters.length&&!yX(t,21,r)?e.replaceNodeWithText(r,i,"()"):cpe(e,n,r,i);break}case 272:case 271:spe(e,r,i,{leadingTriviaOption:r.imports.length&&i===Le(r.imports).parent||i===O(r.statements,Fp)?0:W_(i)?2:3});break;case 208:const o=i.parent;207===o.kind&&i!==Be(o.elements)?spe(e,r,i):cpe(e,n,r,i);break;case 260:!function(e,t,n,r){const{parent:i}=r;if(299===i.kind)return void e.deleteNodeRange(n,yX(i,21,n),yX(i,22,n));if(1!==i.declarations.length)return void cpe(e,t,n,r);const o=i.parent;switch(o.kind){case 250:case 249:e.replaceNode(n,r,FC.createObjectLiteralExpression());break;case 248:spe(e,n,i);break;case 243:spe(e,n,o,{leadingTriviaOption:W_(o)?2:3});break;default:Fn.assertNever(o)}}(e,n,r,i);break;case 168:cpe(e,n,r,i);break;case 276:const a=i.parent;1===a.elements.length?t(e,r,a):cpe(e,n,r,i);break;case 274:t(e,r,i);break;case 27:spe(e,r,i,{trailingTriviaOption:0});break;case 100:spe(e,r,i,{leadingTriviaOption:0});break;case 263:case 262:spe(e,r,i,{leadingTriviaOption:W_(i)?2:3});break;default:i.parent?cA(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=PX(t,n.name.end);if(i&&28===i.kind){const n=Ts(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else spe(e,t,n.name)}else spe(e,t,n.parent)}(e,r,i.parent):eN(i.parent)&&B(i.parent.arguments,i)?cpe(e,n,r,i):spe(e,r,i):spe(e,r,i)}}})(Jfe||(Jfe={}))}}),upe={};k(upe,{ChangeTracker:()=>Rfe,LeadingTriviaOption:()=>Ofe,TrailingTriviaOption:()=>Mfe,applyChanges:()=>npe,assignPositionsToNode:()=>rpe,createWriter:()=>ope,deleteNode:()=>spe,isThisTypeAnnotatable:()=>Qfe,isValidLocationToAddComment:()=>ape});var _pe,dpe,fpe,ppe,mpe=S({"src/services/_namespaces/ts.textChanges.ts"(){lpe()}}),gpe=S({"src/services/formatting/formattingContext.ts"(){hge(),_pe=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(_pe||{}),dpe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=Fn.checkDefined(e),this.currentTokenParent=Fn.checkDefined(t),this.nextTokenSpan=Fn.checkDefined(n),this.nextTokenParent=Fn.checkDefined(r),this.contextNode=Fn.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){const t=yX(e,19,this.sourceFile),n=yX(e,20,this.sourceFile);return!(!t||!n)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}}}});function hpe(e,t,n,r,i){const o=1===t?ppe:fpe;o.setText(e),o.resetTokenState(n);let a,s,c,l,u,_=!0;const d=i({advance:function(){u=void 0,o.getTokenFullStart()!==n?_=!!s&&4===Be(s).kind:o.scan(),a=void 0,s=void 0;let e=o.getTokenFullStart();for(;ea,lastTrailingTriviaWasNewLine:()=>_,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,u=void 0,_=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,u=void 0,_=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==u?void 0:u.token.pos)??o.getTokenStart(),getStartPos:()=>(null==u?void 0:u.token.pos)??o.getTokenStart()});return u=void 0,o.setText(void 0),d;function f(){const e=u?u.token.kind:o.getToken();return 1!==e&&!Py(e)}function p(){return 1===(u?u.token.kind:o.getToken())}function m(e,t){return Yl(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var ype,vpe,bpe,xpe=S({"src/services/formatting/formattingScanner.ts"(){hge(),gge(),fpe=zs(99,!1,0),ppe=zs(99,!1,1)}}),Spe=S({"src/services/formatting/rule.ts"(){hge(),ype=a,vpe=(e=>(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(vpe||{}),bpe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(bpe||{})}});function kpe(){const e=[];for(let t=0;t<=165;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=Cpe([...e,3]),i=Cpe([...e,1]),o=Epe(83,165),a=Epe(30,79),s=[103,104,165,130,142,152],c=[80,...vG],l=r,u=Cpe([80,3,86,95,102]),_=Cpe([22,3,92,113,98,93]);return[Tpe("IgnoreBeforeComment",n,[2,3],ype,1),Tpe("IgnoreAfterLineComment",2,n,ype,1),Tpe("NotSpaceBeforeColon",n,59,[cme,Rpe,jpe],16),Tpe("SpaceAfterColon",59,n,[cme,Rpe],4),Tpe("NoSpaceBeforeQuestionMark",n,58,[cme,Rpe,jpe],16),Tpe("SpaceAfterQuestionMarkInConditionalOperator",58,n,[cme,Jpe],4),Tpe("NoSpaceAfterQuestionMark",58,n,[cme],16),Tpe("NoSpaceBeforeDot",n,[25,29],[cme,Ime],16),Tpe("NoSpaceAfterDot",[25,29],n,[cme],16),Tpe("NoSpaceBetweenImportParenInImportType",102,21,[cme,sme],16),Tpe("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[cme,Rpe],16),Tpe("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[cme],16),Tpe("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[cme],16),Tpe("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[cme,Ame],16),Tpe("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[cme,Ame],16),Tpe("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[cme,Lpe],4),Tpe("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[cme,Lpe],4),Tpe("SpaceAfterAddWhenFollowedByPreincrement",40,46,[cme,Lpe],4),Tpe("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[cme,Lpe],4),Tpe("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[cme,Lpe],4),Tpe("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[cme,Lpe],4),Tpe("NoSpaceAfterCloseBrace",20,[28,27],[cme],16),Tpe("NewLineBeforeCloseBraceInBlockContext",r,20,[Kpe],8),Tpe("SpaceAfterCloseBrace",20,t(22),[cme,Zpe],4),Tpe("SpaceBetweenCloseBraceAndElse",20,93,[cme],4),Tpe("SpaceBetweenCloseBraceAndWhile",20,117,[cme],4),Tpe("NoSpaceBetweenEmptyBraceBrackets",19,20,[cme,tme],16),Tpe("SpaceAfterConditionalClosingParen",22,23,[eme],4),Tpe("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Xpe],16),Tpe("SpaceAfterStarInGeneratorDeclaration",42,80,[Xpe],4),Tpe("SpaceAfterFunctionInFuncDecl",100,n,[Hpe],4),Tpe("NewLineAfterOpenBraceInBlockContext",19,n,[Kpe],8),Tpe("SpaceAfterGetSetInMember",[139,153],80,[Hpe],4),Tpe("NoSpaceBetweenYieldKeywordAndStar",127,42,[cme,Dme],16),Tpe("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[cme,Dme],4),Tpe("NoSpaceBetweenReturnAndSemicolon",107,27,[cme],16),Tpe("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[cme],4),Tpe("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[cme,yme],4),Tpe("NoSpaceBeforeOpenParenInFuncCall",n,21,[cme,nme,rme],16),Tpe("SpaceBeforeBinaryKeywordOperator",n,s,[cme,Lpe],4),Tpe("SpaceAfterBinaryKeywordOperator",s,n,[cme,Lpe],4),Tpe("SpaceAfterVoidOperator",116,n,[cme,Eme],4),Tpe("SpaceBetweenAsyncAndOpenParen",134,21,[ame,cme],4),Tpe("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[cme],4),Tpe("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[cme],16),Tpe("SpaceBeforeJsxAttribute",n,80,[dme,cme],4),Tpe("SpaceBeforeSlashInJsxOpeningElement",n,44,[pme,cme],4),Tpe("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[pme,cme],16),Tpe("NoSpaceBeforeEqualInJsxAttribute",n,64,[fme,cme],16),Tpe("NoSpaceAfterEqualInJsxAttribute",64,n,[fme,cme],16),Tpe("NoSpaceAfterModuleImport",[144,149],21,[cme],16),Tpe("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[cme],4),Tpe("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[cme],4),Tpe("SpaceAfterModuleName",11,19,[bme],4),Tpe("SpaceBeforeArrow",n,39,[cme],4),Tpe("SpaceAfterArrow",39,n,[cme],4),Tpe("NoSpaceAfterEllipsis",26,80,[cme],16),Tpe("NoSpaceAfterOptionalParameters",58,[22,28],[cme,Rpe],16),Tpe("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[cme,xme],16),Tpe("NoSpaceBeforeOpenAngularBracket",c,30,[cme,Tme],16),Tpe("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[cme,Tme],16),Tpe("NoSpaceAfterOpenAngularBracket",30,n,[cme,Tme],16),Tpe("NoSpaceBeforeCloseAngularBracket",n,32,[cme,Tme],16),Tpe("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[cme,Tme,Gpe,wme],16),Tpe("SpaceBeforeAt",[22,80],60,[cme],4),Tpe("NoSpaceAfterAt",60,n,[cme],16),Tpe("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[gme],4),Tpe("NoSpaceBeforeNonNullAssertionOperator",n,54,[cme,Nme],16),Tpe("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[cme,Sme],16),Tpe("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[cme],4),Tpe("SpaceAfterConstructor",137,21,[Npe("insertSpaceAfterConstructor"),cme],4),Tpe("NoSpaceAfterConstructor",137,21,[Ppe("insertSpaceAfterConstructor"),cme],16),Tpe("SpaceAfterComma",28,n,[Npe("insertSpaceAfterCommaDelimiter"),cme,ume,ime,ome],4),Tpe("NoSpaceAfterComma",28,n,[Ppe("insertSpaceAfterCommaDelimiter"),cme,ume],16),Tpe("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Npe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hpe],4),Tpe("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Ppe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Hpe],16),Tpe("SpaceAfterKeywordInControl",o,21,[Npe("insertSpaceAfterKeywordsInControlFlowStatements"),eme],4),Tpe("NoSpaceAfterKeywordInControl",o,21,[Ppe("insertSpaceAfterKeywordsInControlFlowStatements"),eme],16),Tpe("SpaceAfterOpenParen",21,n,[Npe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),cme],4),Tpe("SpaceBeforeCloseParen",n,22,[Npe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),cme],4),Tpe("SpaceBetweenOpenParens",21,21,[Npe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),cme],4),Tpe("NoSpaceBetweenParens",21,22,[cme],16),Tpe("NoSpaceAfterOpenParen",21,n,[Ppe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),cme],16),Tpe("NoSpaceBeforeCloseParen",n,22,[Ppe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),cme],16),Tpe("SpaceAfterOpenBracket",23,n,[Npe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),cme],4),Tpe("SpaceBeforeCloseBracket",n,24,[Npe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),cme],4),Tpe("NoSpaceBetweenBrackets",23,24,[cme],16),Tpe("NoSpaceAfterOpenBracket",23,n,[Ppe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),cme],16),Tpe("NoSpaceBeforeCloseBracket",n,24,[Ppe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),cme],16),Tpe("SpaceAfterOpenBrace",19,n,[Ipe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),$pe],4),Tpe("SpaceBeforeCloseBrace",n,20,[Ipe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),$pe],4),Tpe("NoSpaceBetweenEmptyBraceBrackets",19,20,[cme,tme],16),Tpe("NoSpaceAfterOpenBrace",19,n,[Ape("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),cme],16),Tpe("NoSpaceBeforeCloseBrace",n,20,[Ape("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),cme],16),Tpe("SpaceBetweenEmptyBraceBrackets",19,20,[Npe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Tpe("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ape("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),cme],16),Tpe("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Npe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),lme],4,1),Tpe("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Npe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cme],4),Tpe("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Ppe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),lme],16,1),Tpe("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Ppe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),cme],16),Tpe("SpaceAfterOpenBraceInJsxExpression",19,n,[Npe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),cme,_me],4),Tpe("SpaceBeforeCloseBraceInJsxExpression",n,20,[Npe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),cme,_me],4),Tpe("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Ppe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),cme,_me],16),Tpe("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Ppe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),cme,_me],16),Tpe("SpaceAfterSemicolonInFor",27,n,[Npe("insertSpaceAfterSemicolonInForStatements"),cme,Ope],4),Tpe("NoSpaceAfterSemicolonInFor",27,n,[Ppe("insertSpaceAfterSemicolonInForStatements"),cme,Ope],16),Tpe("SpaceBeforeBinaryOperator",n,a,[Npe("insertSpaceBeforeAndAfterBinaryOperators"),cme,Lpe],4),Tpe("SpaceAfterBinaryOperator",a,n,[Npe("insertSpaceBeforeAndAfterBinaryOperators"),cme,Lpe],4),Tpe("NoSpaceBeforeBinaryOperator",n,a,[Ppe("insertSpaceBeforeAndAfterBinaryOperators"),cme,Lpe],16),Tpe("NoSpaceAfterBinaryOperator",a,n,[Ppe("insertSpaceBeforeAndAfterBinaryOperators"),cme,Lpe],16),Tpe("SpaceBeforeOpenParenInFuncDecl",n,21,[Npe("insertSpaceBeforeFunctionParenthesis"),cme,Hpe],4),Tpe("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Ppe("insertSpaceBeforeFunctionParenthesis"),cme,Hpe],16),Tpe("NewLineBeforeOpenBraceInControl",_,19,[Npe("placeOpenBraceOnNewLineForControlBlocks"),eme,Vpe],8,1),Tpe("NewLineBeforeOpenBraceInFunction",l,19,[Npe("placeOpenBraceOnNewLineForFunctions"),Hpe,Vpe],8,1),Tpe("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",u,19,[Npe("placeOpenBraceOnNewLineForFunctions"),Ype,Vpe],8,1),Tpe("SpaceAfterTypeAssertion",32,n,[Npe("insertSpaceAfterTypeAssertion"),cme,Cme],4),Tpe("NoSpaceAfterTypeAssertion",32,n,[Ppe("insertSpaceAfterTypeAssertion"),cme,Cme],16),Tpe("SpaceBeforeTypeAnnotation",n,[58,59],[Npe("insertSpaceBeforeTypeAnnotation"),cme,Bpe],4),Tpe("NoSpaceBeforeTypeAnnotation",n,[58,59],[Ppe("insertSpaceBeforeTypeAnnotation"),cme,Bpe],16),Tpe("NoOptionalSemicolon",27,i,[Dpe("semicolons","remove"),Pme],32),Tpe("OptionalSemicolon",n,i,[Dpe("semicolons","insert"),Fme],64),Tpe("NoSpaceBeforeSemicolon",n,27,[cme],16),Tpe("SpaceBeforeOpenBraceInControl",_,19,[Fpe("placeOpenBraceOnNewLineForControlBlocks"),eme,vme,zpe],4,1),Tpe("SpaceBeforeOpenBraceInFunction",l,19,[Fpe("placeOpenBraceOnNewLineForFunctions"),Hpe,qpe,vme,zpe],4,1),Tpe("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",u,19,[Fpe("placeOpenBraceOnNewLineForFunctions"),Ype,vme,zpe],4,1),Tpe("NoSpaceBeforeComma",n,28,[cme],16),Tpe("NoSpaceBeforeOpenBracket",t(134,84),23,[cme],16),Tpe("NoSpaceAfterCloseBracket",24,n,[cme,mme],16),Tpe("SpaceAfterSemicolon",27,n,[cme],4),Tpe("SpaceBetweenForAndAwaitKeyword",99,135,[cme],4),Tpe("SpaceBetweenStatements",[22,92,93,84],n,[cme,ume,Mpe],4),Tpe("SpaceAfterTryCatchFinally",[113,85,98],19,[cme],4)]}function Tpe(e,t,n,r,i,o=0){return{leftTokenRange:wpe(t),rightTokenRange:wpe(n),rule:{debugName:e,context:r,action:i,flags:o}}}function Cpe(e){return{tokens:e,isSpecific:!0}}function wpe(e){return"number"==typeof e?Cpe([e]):gt(e)?Cpe(e):e}function Epe(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)B(n,i)||r.push(i);return Cpe(r)}function Dpe(e,t){return n=>n.options&&n.options[e]===t}function Npe(e){return t=>t.options&&We(t.options,e)&&!!t.options[e]}function Ape(e){return t=>t.options&&We(t.options,e)&&!t.options[e]}function Ppe(e){return t=>!t.options||!We(t.options,e)||!t.options[e]}function Fpe(e){return t=>!t.options||!We(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Ipe(e){return t=>!t.options||!We(t.options,e)||!!t.options[e]}function Ope(e){return 248===e.contextNode.kind}function Mpe(e){return!Ope(e)}function Lpe(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Rpe(e){return!Lpe(e)}function jpe(e){return!Bpe(e)}function Bpe(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||Du(t)}function Jpe(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function zpe(e){return e.TokensAreOnSameLine()||qpe(e)}function $pe(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return Upe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function Vpe(e){return qpe(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Kpe(e){return Upe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Upe(e){return Wpe(e.contextNode)}function qpe(e){return Wpe(e.nextTokenParent)}function Wpe(e){if(Qpe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Hpe(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function Gpe(e){return!Hpe(e)}function Xpe(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function Ype(e){return Qpe(e.contextNode)}function Qpe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function Zpe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function eme(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function tme(e){return 210===e.contextNode.kind}function nme(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function rme(e){return 28!==e.currentTokenSpan.kind}function ime(e){return 24!==e.nextTokenSpan.kind}function ome(e){return 22!==e.nextTokenSpan.kind}function ame(e){return 219===e.contextNode.kind}function sme(e){return 205===e.contextNode.kind}function cme(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function lme(e){return 12!==e.contextNode.kind}function ume(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function _me(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function dme(e){return 291===e.nextTokenParent.kind}function fme(e){return 291===e.contextNode.kind}function pme(e){return 285===e.contextNode.kind}function mme(e){return!Hpe(e)&&!qpe(e)}function gme(e){return e.TokensAreOnSameLine()&&Eb(e.contextNode)&&hme(e.currentTokenParent)&&!hme(e.nextTokenParent)}function hme(e){for(;e&&l_(e);)e=e.parent;return e&&170===e.kind}function yme(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function vme(e){return 2!==e.formattingRequestKind}function bme(e){return 267===e.contextNode.kind}function xme(e){return 187===e.contextNode.kind}function Sme(e){return 180===e.contextNode.kind}function kme(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Tme(e){return kme(e.currentTokenSpan,e.currentTokenParent)||kme(e.nextTokenSpan,e.nextTokenParent)}function Cme(e){return 216===e.contextNode.kind}function wme(e){return!Cme(e)}function Eme(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function Dme(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function Nme(e){return 235===e.contextNode.kind}function Ame(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function Pme(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Py(t)){const r=e.nextTokenParent===e.currentTokenParent?MX(e.currentTokenParent,Dc(e.currentTokenParent,(e=>!e.parent)),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?20===t||1===t:240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!dD(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:fD(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function Fme(e){return dZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function Ime(e){return!QD(e.contextNode)||!EE(e.contextNode.expression)||-1!==e.contextNode.expression.getText().indexOf(".")}var Ome,Mme,Lme,Rme,jme,Bme=S({"src/services/formatting/rules.ts"(){hge(),gge()}});function Jme(e,t){return{options:e,getRules:(void 0===Ome&&(Ome=function(e){const t=function(e){const t=new Array(Rme*Rme),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=$me(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),Vme(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[$me(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~zme(r);i.action&n&&I(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(kpe())),Ome),host:t}}function zme(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function $me(e,t){return Fn.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*Rme+t}function Vme(e,t,n,r,i){const o=3&t.action?n?0:jme.StopRulesAny:t.context!==ype?n?jme.ContextRulesSpecific:jme.ContextRulesAny:n?jme.NoContextRulesSpecific:jme.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=Mme)n+=e&Lme,e>>=Mme;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&Lme);return Fn.assert((n&Lme)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(Lme<Fn.formatSyntaxKind(n)}),r}function Gme(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=jf(r,t);for(;ys(t.text.charCodeAt(i));)i--;return vs(t.text.charCodeAt(i))&&i--,age({pos:Lf(r-1,t),end:i+1},t,n,2)}function Xme(e,t,n){return oge(nge(tge(e,27,t)),t,n,3)}function Yme(e,t,n){const r=tge(e,19,t);return r?age({pos:rX(nge(r.parent).getStart(t),t),end:e},t,n,4):[]}function Qme(e,t,n){return oge(nge(tge(e,20,t)),t,n,5)}function Zme(e,t){return age({pos:0,end:e.text.length},e,t,0)}function ege(e,t,n,r){return age({pos:rX(e,n),end:t},n,r,1)}function tge(e,t,n){const r=LX(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function nge(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!rge(t.parent,t);)t=t.parent;return t}function rge(e,t){switch(e.kind){case 263:case 264:return iX(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&iX(n.statements,t);case 312:case 241:case 268:return iX(e.statements,t);case 299:return iX(e.block.statements,t)}return!1}function ige(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return hpe(t.text,n,a.pos,a.end,(n=>sge(a,e,r,i,n,o,1,(e=>!1),t)))}function oge(e,t,n,r){return e?age({pos:rX(e.getStart(t),t),end:e.end},t,n,r):[]}function age(e,t,n,r){const i=function(e,t){return function n(r){const i=zI(r,(n=>cX(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return hpe(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=LX(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>sge(e,i,uge.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(uge.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>uX(t,e.start,e.start+e.length))).sort(((e,t)=>e.start-t.start));if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;const t=n[r];if(e.end<=t.start)return!1;if(dX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function sge(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,u){var _;const d=new dpe(u,c,o);let f,p,m,g,h,y=-1;const v=[];if(i.advance(),i.isOnToken()){const a=u.getLineAndCharacterOfPosition(t.getStart(u)).line;let s=a;Eb(t)&&(s=u.getLineAndCharacterOfPosition(tp(t,u)).line),function t(n,r,a,s,c,_){if(!uX(e,n.getStart(u),n.getEnd()))return;const d=x(n,a,c,_);let m=r;for(zI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(t=>{!function(t,r,a,s){Fn.assert(Ql(t)),Fn.assert(!tv(t));const c=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let l=s,_=a;if(!uX(e,t.pos,t.end))return void(t.endt.pos)break;if(e.token.kind===c){let t;if(_=u.getLineAndCharacterOfPosition(e.token.pos).line,v(e,r,s,r),-1!==y)t=y;else{const n=rX(e.token.pos,u);t=uge.findFirstNonWhitespaceColumn(n,e.token.pos,u,o)}l=x(r,a,t,o.indentSize)}else v(e,r,s,r)}let d=-1;for(let e=0;eMath.min(n.end,e.end))break;v(t,n,d,n)}function g(r,a,s,c,l,_,d,f){if(Fn.assert(!tv(r)),Jf(r)||$f(s,r))return a;const p=r.getStart(u),g=u.getLineAndCharacterOfPosition(p).line;let b=g;Eb(r)&&(b=u.getLineAndCharacterOfPosition(tp(r,u)).line);let x=-1;if(d&&iX(e,s)&&(x=function(e,t,n,r,i){if(uX(r,e,t)||lX(r,e,t)){if(-1!==i)return i}else{const t=u.getLineAndCharacterOfPosition(e).line,r=rX(e,u),i=uge.findFirstNonWhitespaceColumn(r,e,u,o);if(t!==n||e===i){const e=uge.getBaseIndentation(o);return e>i?e:i}}return-1}(p,r.end,l,e,a),-1!==x&&(a=x)),!uX(e,r.pos,r.end))return r.ende.end)return a;if(t.token.end>p){t.token.pos>p&&i.skipToStartOf(r);break}v(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(Yl(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return Fn.assert(e.token.end===r.end,"Token end is child end"),v(e,n,c,r),a}const S=170===r.kind?g:_,k=function(e,t,n,r,i,a){const s=uge.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===h?y:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===h?{indentation:y,delta:i.getDelta(e)}:uge.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,u)||uge.childIsUnindentedBranchOfConditionalExpression(r,e,t,u)||uge.argumentStartsOnSameLineAsPreviousArgument(r,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,S);return t(r,m,g,b,k.indentation,k.delta),m=n,f&&209===s.kind&&-1===a&&(a=k.indentation),a}function v(t,n,r,o,a){Fn.assert(iX(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&k(t.leadingTrivia,n,m,r);let _=0;const d=iX(e,t.token),g=u.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=p;if(_=T(t.token,g,n,m,r),!e)if(0===_){const e=i&&u.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===_}if(t.trailingTrivia&&(f=Be(t.trailingTrivia).end,k(t.trailingTrivia,n,m,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=S(t.leadingTrivia,i,n,(e=>w(e.pos,i,!1)))}-1!==e&&n&&(w(t.token.pos,e,1===_),h=g.line,y=e)}i.advance(),m=n}}(t,t,a,s,n,r)}const b=i.getCurrentLeadingTrivia();if(b){const r=uge.nodeWillIndentChild(o,t,void 0,u,!1)?n+o.indentSize:n;S(b,r,!0,(e=>{T(e,u.getLineAndCharacterOfPosition(e.pos),t,t,void 0),w(e.pos,r,!1)})),!1!==o.trimTrailingWhitespace&&function(t){let n=p?p.end:e.pos;for(const e of t)nY(e.kind)&&(n=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===f){const n=(null==(_=LX(e.end,u,t))?void 0:_.parent)||m;C(e,u.getLineAndCharacterOfPosition(e.pos).line,n,p,g,m,n,void 0)}}return v;function x(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==i.kind)return!1}return t!==n&&!(Eb(e)&&r===function(e){if(nI(e)){const t=O(e.modifiers,vu,L(e.modifiers,_D));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=$c(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{uge.shouldIndentChildNode(o,i,e,u)&&(n+=t?o.indentSize:-o.indentSize,r=uge.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return uge.nodeWillIndentChild(o,e,t,u,!0)?r:0}}function S(t,n,r,i){for(const o of t){const t=iX(e,o);switch(o.kind){case 3:t&&D(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function k(t,n,r,i){for(const o of t)nY(o.kind)&&iX(e,o)&&T(o,u.getLineAndCharacterOfPosition(o.pos),n,r,i)}function T(t,n,r,i,o){let a=0;return l(t)||(p?a=C(t,n.line,r,p,g,m,i,o):N(u.getLineAndCharacterOfPosition(e.pos).line,n.line)),p=t,f=t.end,m=r,g=n.line,a}function C(e,t,n,r,i,c,l,_){d.updateContext(r,c,e,n,l);const f=a(d);let p=!1!==d.options.trimTrailingWhitespace,m=0;return f?E(f,(a=>{if(m=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return F(t.end,r.pos-t.end),a?2:0;break;case 32:F(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!=i-n)return I(t.end,r.pos-t.end,SQ(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!=r.pos-t.end||32!==u.text.charCodeAt(t.end))return I(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,";"&&v.push(vY(c,0,";"))}var c;return 0}(a,r,i,e,t),_)switch(m){case 2:n.getStart(u)===e.pos&&_.recomputeIndentation(!1,l);break;case 1:n.getStart(u)===e.pos&&_.recomputeIndentation(!0,l);break;default:Fn.assert(0===m)}p=p&&!(16&a.action)&&1!==a.flags})):p=p&&1!==e.kind,t!==i&&p&&N(i,t,r),m}function w(e,t,n){const r=lge(t,o);if(n)I(e,0,r);else{const n=u.getLineAndCharacterOfPosition(e),i=Lf(n.line,u);(t!==function(e,t){let n=0;for(let r=0;r0){const e=lge(r,o);I(t,n.character,e)}else F(t,n.character)}}function N(e,t,n){for(let r=e;rt)continue;const i=A(e,t);-1!==i&&(Fn.assert(i===e||!ys(u.text.charCodeAt(i-1))),F(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&ys(u.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function P(e,t,n){N(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,n)}function F(e,t){t&&v.push(vY(e,t,""))}function I(e,t,n){(t||n)&&v.push(vY(e,t,n))}}function cge(e,t,n,r=PX(e,t)){const i=Dc(r,cP);if(i&&(r=i.parent),r.getStart(e)<=t&&tsX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function lge(e,t){if((!Kme||Kme.tabSize!==t.tabSize||Kme.indentSize!==t.indentSize)&&(Kme={tabSize:t.tabSize,indentSize:t.indentSize},Ume=qme=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return qme||(qme=[]),void 0===qme[r]?(n=EY(" ",t.indentSize*r),qme[r]=n):n=qme[r],i?n+EY(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return Ume||(Ume=[]),void 0===Ume[n]?Ume[n]=i=EY("\t",n):i=Ume[n],r?i+EY(" ",r):i}}var uge,_ge=S({"src/services/formatting/formatting.ts"(){hge(),gge()}}),dge=S({"src/services/formatting/smartIndenter.ts"(){hge(),gge(),(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var p;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=tn.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(p=f(e,s))?void 0:p[0];let r=g(e,s,l,!!n&&u(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=_(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=f(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return!A_(e)&&!F_(e)||312!==t.kind&&r?-1:y(n,i,o)}let s;var c;function l(e,t,n,r){const i=MX(e,t,r);return i?19===i.kind?1:20===i.kind&&n===u(i,r).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(e,t,n,r){return!(!eN(e)||!B(e.arguments,t))&&gs(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=yX(e,93,r);return Fn.assert(void 0!==t),u(t,r).line===n}return!1}function f(e,t){return e.parent&&p(e.getStart(t),e.getEnd(),e.parent,t)}function p(e,t,n,r){switch(n.kind){case 183:return i(n.typeArguments);case 210:return i(n.properties);case 209:case 275:case 279:case 206:case 207:return i(n.elements);case 187:return i(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return i(n.typeParameters)||i(n.parameters);case 177:return i(n.parameters);case 263:case 231:case 264:case 265:case 352:return i(n.typeParameters);case 214:case 213:return i(n.typeArguments)||i(n.arguments);case 261:return i(n.declarations)}function i(i){return i&&lX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e=0&&t=0;o--)if(28!==e[o].kind){if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=u(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;at.text.length)return r(n);if(0===n.indentStyle)return 0;const a=LX(e,t,void 0,!0),s=cge(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=gs(e,t).line-1,o=gs(e,r.pos).line;if(Fn.assert(o>=0),i<=o)return b(Lf(o,e),t,e,n);const a=Lf(i,e),{column:s,character:c}=v(a,t,e,n);return 0===s?s:42===e.text.charCodeAt(a+c)?s-1:s}(t,e,n,s);if(!a)return r(n);if(rY(a.kind)&&a.getStart(t)<=e&&e0&&hs(e.text.charCodeAt(r));)r--;return b(rX(r,e),r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=gX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const f=function(e,t,n){return t&&p(e,e,t,n)}(e,a.parent,t);if(f&&!iX(f,a)){const e=-1!==[218,219].indexOf(_.parent.kind)?0:n.indentSize;return m(f,t,n)+e}return function(e,t,n,o,a,s){let c,_=n;for(;_;){if(fX(_,t,e)&&S(s,_,c,e,!0)){const t=u(_,e),r=l(n,_,o,e);return i(_,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(_,e,s,!0);if(-1!==r)return r;c=_,_=_.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(pN(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=gs(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=u(e.whenTrue,r).line,o=gs(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(t_(e)){if(!e.arguments)return!1;const i=O(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===gs(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=f,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=b,e.nodeWillIndentChild=x,e.shouldIndentChildNode=S})(uge||(uge={}))}}),fge={};k(fge,{FormattingContext:()=>dpe,FormattingRequestKind:()=>_pe,RuleAction:()=>vpe,RuleFlags:()=>bpe,SmartIndenter:()=>uge,anyContext:()=>ype,createTextRangeWithKind:()=>Hme,formatDocument:()=>Zme,formatNodeGivenIndentation:()=>ige,formatOnClosingCurly:()=>Qme,formatOnEnter:()=>Gme,formatOnOpeningCurly:()=>Yme,formatOnSemicolon:()=>Xme,formatSelection:()=>ege,getAllRules:()=>kpe,getFormatContext:()=>Jme,getFormattingScanner:()=>hpe,getIndentationString:()=>lge,getRangeOfEnclosingComment:()=>cge});var pge,mge,gge=S({"src/services/_namespaces/ts.formatting.ts"(){gpe(),xpe(),Spe(),Bme(),Wme(),_ge(),dge()}}),hge=S({"src/services/_namespaces/ts.ts"(){gH(),pG(),CG(),e0(),u0(),C0(),w0(),F0(),$0(),f1(),g1(),x1(),M1(),B1(),B7(),X7(),n5(),a5(),C5(),F5(),mce(),uue(),Zue(),v_e(),D_e(),U_e(),s2(),X2(),bde(),Ade(),X8(),zde(),_fe(),Tfe(),zfe(),mpe(),gge()}});function yge(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${CS(i,[e],0)}`:"",o}function vge(e,n){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(function(e,n={}){const r="string"==typeof n.typeScriptVersion?new Jn(n.typeScriptVersion):n.typeScriptVersion??mge??(mge=new Jn(t)),i="string"==typeof n.errorAfter?new Jn(n.errorAfter):n.errorAfter,o="string"==typeof n.warnAfter?new Jn(n.warnAfter):n.warnAfter,a="string"==typeof n.since?new Jn(n.since):n.since??o,s=n.error||i&&r.compareTo(i)>=0,c=!o||r.compareTo(o)>=0;return s?function(e,t,n,r){const i=yge(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,i,a,n.message):c?function(e,t,n,r){let i=!1;return()=>{pge&&!i&&(Fn.log.warn(yge(e,!1,t,n,r)),i=!0)}}(e,i,a,n.message):St}((null==n?void 0:n.name)??Fn.getFunctionName(e),n),e)}var bge=S({"src/deprecatedCompat/deprecate.ts"(){Cge(),pge=!0}});function xge(e,t,n,r){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),r)for(const n of Object.keys(r)){const i=+n;!isNaN(i)&&We(t,`${i}`)&&(t[i]=vge(t[i],{...r[i],name:e}))}const i=function(e,t){return n=>{for(let r=0;We(e,`${r}`)&&We(t,`${r}`);r++)if((0,t[r])(n))return r}}(t,n);return o;function o(...e){const n=i(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function Sge(e){return{overload:t=>({bind:n=>({finish:()=>xge(e,t,n),deprecate:r=>({finish:()=>xge(e,t,n,r)})})})}}var kge=S({"src/deprecatedCompat/deprecations.ts"(){Cge(),bge()}}),Tge=S({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Cge(),bge(),kS((e=>{const t=e.getIdentifierConstructor();We(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:vge((function(){return Oc(this)}),{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),We(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:vge((function(){return!!(4096&this.flags)||void 0}),{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})}))}}),Cge=S({"src/deprecatedCompat/_namespaces/ts.ts"(){gH(),kge(),Tge()}}),wge={};k(wge,{ANONYMOUS:()=>kG,AccessFlags:()=>ki,AssertionLevel:()=>f,AssignmentDeclarationKind:()=>Ii,AssignmentKind:()=>gd,Associativity:()=>yd,BreakpointResolver:()=>o5,BuilderFileEmit:()=>GK,BuilderProgramKind:()=>XK,BuilderState:()=>UK,BundleFileSectionKind:()=>io,CallHierarchy:()=>T5,CharacterCodes:()=>Hi,CheckFlags:()=>gi,CheckMode:()=>_B,ClassificationType:()=>dG,ClassificationTypeNames:()=>_G,CommentDirectiveType:()=>Yr,Comparison:()=>o,CompletionInfoFlags:()=>iG,CompletionTriggerKind:()=>YH,Completions:()=>sue,ConfigFileProgramReloadLevel:()=>SV,ContainerFlags:()=>dj,ContextFlags:()=>ai,CoreServicesShimHostAdapter:()=>K7,Debug:()=>Fn,DiagnosticCategory:()=>Oi,Diagnostics:()=>Ra,DocumentHighlights:()=>T0,ElementFlags:()=>Si,EmitFlags:()=>Qi,EmitHint:()=>to,EmitOnly:()=>ti,EndOfLineState:()=>sG,EnumKind:()=>mi,ExitStatus:()=>ri,ExportKind:()=>ZZ,Extension:()=>Gi,ExternalEmitHelpers:()=>eo,FileIncludeKind:()=>Zr,FilePreprocessingDiagnosticsKind:()=>ei,FileSystemEntryKind:()=>bo,FileWatcherEventKind:()=>_o,FindAllReferences:()=>Yue,FlattenLevel:()=>KJ,FlowFlags:()=>Xr,ForegroundColorEscapeSequences:()=>RV,FunctionFlags:()=>hd,GeneratedIdentifierFlags:()=>Hr,GetLiteralTextFlags:()=>ld,GoToDefinition:()=>g_e,HighlightSpanKind:()=>ZH,IdentifierNameMap:()=>_J,IdentifierNameMultiMap:()=>dJ,ImportKind:()=>QZ,ImportsNotUsedAsValues:()=>$i,IndentStyle:()=>eG,IndexFlags:()=>Ti,IndexKind:()=>Di,InferenceFlags:()=>Pi,InferencePriority:()=>Ai,InlayHintKind:()=>QH,InlayHints:()=>k_e,InternalEmitFlags:()=>Zi,InternalSymbolName:()=>hi,InvalidatedProjectKind:()=>Wq,JsDoc:()=>V_e,JsTyping:()=>EH,JsxEmit:()=>zi,JsxFlags:()=>qr,JsxReferenceKind:()=>Ci,LanguageServiceMode:()=>WH,LanguageServiceShimHostAdapter:()=>V7,LanguageVariant:()=>qi,LexicalEnvironmentFlags:()=>ro,ListFormat:()=>oo,LogLevel:()=>Pn,MemberOverrideStatus:()=>ii,ModifierFlags:()=>Ur,ModuleDetectionKind:()=>Li,ModuleInstanceState:()=>_j,ModuleKind:()=>Ji,ModuleResolutionKind:()=>Mi,ModuleSpecifierEnding:()=>tf,NavigateTo:()=>X1,NavigationBar:()=>H2,NewLineKind:()=>Vi,NodeBuilderFlags:()=>si,NodeCheckFlags:()=>yi,NodeFactoryFlags:()=>EC,NodeFlags:()=>Kr,NodeResolutionFeatures:()=>CL,ObjectFlags:()=>bi,OperationCanceledException:()=>Qr,OperatorPrecedence:()=>vd,OrganizeImports:()=>yde,OrganizeImportsMode:()=>XH,OuterExpressionKinds:()=>no,OutliningElementsCollector:()=>Nde,OutliningSpanKind:()=>oG,OutputFileType:()=>aG,PackageJsonAutoImportPreference:()=>qH,PackageJsonDependencyGroup:()=>UH,PatternMatchKind:()=>z0,PollingInterval:()=>fo,PollingWatchKind:()=>Bi,PragmaKindFlags:()=>ao,PrivateIdentifierKind:()=>Jw,ProcessLevel:()=>gz,QuotePreference:()=>bG,RelationComparisonResult:()=>Wr,Rename:()=>jde,ScriptElementKind:()=>lG,ScriptElementKindModifier:()=>uG,ScriptKind:()=>Ki,ScriptSnapshot:()=>KH,ScriptTarget:()=>Ui,SemanticClassificationFormat:()=>GH,SemanticMeaning:()=>hG,SemicolonPreference:()=>tG,SignatureCheckMode:()=>dB,SignatureFlags:()=>Ei,SignatureHelp:()=>lfe,SignatureKind:()=>wi,SmartSelectionRange:()=>Sfe,SnippetKind:()=>Yi,SortKind:()=>l,StructureIsReused:()=>ni,SymbolAccessibility:()=>ui,SymbolDisplay:()=>Ife,SymbolDisplayPartKind:()=>rG,SymbolFlags:()=>pi,SymbolFormatFlags:()=>li,SyntaxKind:()=>Vr,SyntheticSymbolKind:()=>_i,Ternary:()=>Fi,ThrottledCancellationToken:()=>g7,TokenClass:()=>cG,TokenFlags:()=>Gr,TransformFlags:()=>Xi,TypeFacts:()=>lB,TypeFlags:()=>vi,TypeFormatFlags:()=>ci,TypeMapKind:()=>Ni,TypePredicateKind:()=>di,TypeReferenceSerializationKind:()=>fi,TypeScriptServicesFactory:()=>G7,UnionReduction:()=>oi,UpToDateStatusType:()=>$q,VarianceFlags:()=>xi,Version:()=>Jn,VersionRange:()=>zn,WatchDirectoryFlags:()=>Wi,WatchDirectoryKind:()=>ji,WatchFileKind:()=>Ri,WatchLogLevel:()=>kV,WatchType:()=>rq,accessPrivateIdentifier:()=>VJ,addDisposableResourceHelper:()=>mE,addEmitFlags:()=>iw,addEmitHelper:()=>Tw,addEmitHelpers:()=>Cw,addInternalEmitFlags:()=>aw,addNodeFactoryPatcher:()=>MC,addObjectAllocatorPatcher:()=>kS,addRange:()=>we,addRelatedInfo:()=>mT,addSyntheticLeadingComment:()=>hw,addSyntheticTrailingComment:()=>bw,addToSeen:()=>aS,advancedAsyncSuperHelper:()=>vE,affectsDeclarationPathOptionDeclarations:()=>vO,affectsEmitOptionDeclarations:()=>yO,allKeysStartWithDot:()=>zR,altDirectorySeparator:()=>Jo,and:()=>hn,append:()=>ke,appendIfUnique:()=>De,arrayFrom:()=>Ze,arrayIsEqualTo:()=>be,arrayIsHomogeneous:()=>DT,arrayIsSorted:()=>ye,arrayOf:()=>Qe,arrayReverseIterator:()=>Pe,arrayToMap:()=>nt,arrayToMultiMap:()=>it,arrayToNumericMap:()=>rt,arraysEqual:()=>J,assertType:()=>bn,assign:()=>et,assignHelper:()=>qw,asyncDelegator:()=>Gw,asyncGeneratorHelper:()=>Hw,asyncSuperHelper:()=>yE,asyncValues:()=>Xw,attachFileToDiagnostics:()=>FS,awaitHelper:()=>Ww,awaiterHelper:()=>Qw,base64decode:()=>fx,base64encode:()=>dx,binarySearch:()=>Ke,binarySearchKey:()=>Ue,bindSourceFile:()=>vj,breakIntoCharacterSpans:()=>i1,breakIntoWordSpans:()=>o1,buildLinkParts:()=>xQ,buildOpts:()=>CO,buildOverload:()=>Sge,bundlerModuleNameResolver:()=>mR,canBeConvertedToAsync:()=>F1,canHaveDecorators:()=>rI,canHaveExportModifier:()=>eC,canHaveFlowNode:()=>Ih,canHaveIllegalDecorators:()=>AF,canHaveIllegalModifiers:()=>PF,canHaveIllegalType:()=>DF,canHaveIllegalTypeParameters:()=>NF,canHaveJSDoc:()=>Oh,canHaveLocals:()=>E_,canHaveModifiers:()=>nI,canHaveSymbol:()=>w_,canJsonReportNoInputFiles:()=>qM,canProduceDiagnostics:()=>v$,canUsePropertyAccess:()=>nC,canWatchAffectingLocation:()=>KU,canWatchAtTypes:()=>zU,canWatchDirectoryOrFile:()=>JU,cartesianProduct:()=>kn,cast:()=>xt,chainBundle:()=>gJ,chainDiagnosticMessages:()=>RS,changeAnyExtension:()=>ka,changeCompilerHostLikeToUseCache:()=>iK,changeExtension:()=>rT,changesAffectModuleResolution:()=>uf,changesAffectingProgramStructure:()=>df,childIsDecorated:()=>gg,classElementOrClassElementParameterIsDecorated:()=>yg,classHasClassThisAssignment:()=>iz,classHasDeclaredOrExplicitlyAssignedName:()=>dz,classHasExplicitlyAssignedName:()=>_z,classOrConstructorParameterIsDecorated:()=>hg,classPrivateFieldGetHelper:()=>dE,classPrivateFieldInHelper:()=>pE,classPrivateFieldSetHelper:()=>fE,classicNameResolver:()=>ij,classifier:()=>D5,cleanExtendedConfigCache:()=>DV,clear:()=>U,clearMap:()=>Xx,clearSharedExtendedConfigFileWatcher:()=>EV,climbPastPropertyAccess:()=>BG,climbPastPropertyOrElementAccess:()=>JG,clone:()=>st,cloneCompilerOptions:()=>cY,closeFileWatcher:()=>zx,closeFileWatcherOf:()=>LV,codefix:()=>ace,collapseTextChangeRangesAcrossMultipleVersions:()=>mc,collectExternalModuleInfo:()=>bJ,combine:()=>Te,combinePaths:()=>fa,commentPragmas:()=>so,commonOptionsWithBuild:()=>dO,commonPackageFolders:()=>jd,compact:()=>xe,compareBooleans:()=>Xt,compareDataObjects:()=>Gx,compareDiagnostics:()=>JS,compareDiagnosticsSkipRelatedInformation:()=>zS,compareEmitHelpers:()=>SE,compareNumberOfDirectorySeparators:()=>Zk,comparePaths:()=>Ea,comparePathsCaseInsensitive:()=>wa,comparePathsCaseSensitive:()=>Ca,comparePatternKeys:()=>VR,compareProperties:()=>Gt,compareStringsCaseInsensitive:()=>$t,compareStringsCaseInsensitiveEslintCompatible:()=>Vt,compareStringsCaseSensitive:()=>Kt,compareStringsCaseSensitiveUI:()=>Ht,compareTextSpans:()=>Jt,compareValues:()=>Bt,compileOnSaveCommandLineOption:()=>oO,compilerOptionsAffectDeclarationPath:()=>xk,compilerOptionsAffectEmit:()=>bk,compilerOptionsAffectSemanticDiagnostics:()=>vk,compilerOptionsDidYouMeanDiagnostics:()=>AO,compilerOptionsIndicateEsModules:()=>FY,compose:()=>Ot,computeCommonSourceDirectoryOfFilenames:()=>ZV,computeLineAndCharacterOfPosition:()=>fs,computeLineOfPosition:()=>ps,computeLineStarts:()=>ls,computePositionOfLineAndCharacter:()=>_s,computeSignature:()=>TU,computeSignatureWithDiagnostics:()=>kU,computeSuggestionDiagnostics:()=>S1,concatenate:()=>_e,concatenateDiagnosticMessageChains:()=>jS,consumesNodeCoreModules:()=>CZ,contains:()=>B,containsIgnoredPath:()=>JT,containsObjectRestOrSpread:()=>ZF,containsParseError:()=>Pf,containsPath:()=>Da,convertCompilerOptionsForTelemetry:()=>bL,convertCompilerOptionsFromJson:()=>YM,convertJsonOption:()=>oL,convertToBase64:()=>_x,convertToJson:()=>kM,convertToObject:()=>SM,convertToOptionsWithAbsolutePaths:()=>LM,convertToRelativePath:()=>Fa,convertToTSConfig:()=>wM,convertTypeAcquisitionFromJson:()=>QM,copyComments:()=>KQ,copyEntries:()=>hf,copyLeadingComments:()=>GQ,copyProperties:()=>lt,copyTrailingAsLeadingComments:()=>YQ,copyTrailingComments:()=>XQ,couldStartTrivia:()=>ks,countWhere:()=>$,createAbstractBuilder:()=>LU,createAccessorPropertyBackingField:()=>WF,createAccessorPropertyGetRedirector:()=>HF,createAccessorPropertySetRedirector:()=>GF,createBaseNodeFactory:()=>vC,createBinaryExpressionTrampoline:()=>BF,createBindingHelper:()=>sE,createBuildInfo:()=>pV,createBuilderProgram:()=>CU,createBuilderProgramUsingProgramBuildInfo:()=>AU,createBuilderStatusReporter:()=>Zq,createCacheWithRedirects:()=>ZL,createCacheableExportInfoMap:()=>t0,createCachedDirectoryStructureHost:()=>CV,createClassNamedEvaluationHelperBlock:()=>lz,createClassThisAssignmentBlock:()=>nz,createClassifier:()=>_0,createCommentDirectivesMap:()=>Zf,createCompilerDiagnostic:()=>MS,createCompilerDiagnosticForInvalidCustomType:()=>YO,createCompilerDiagnosticFromMessageChain:()=>LS,createCompilerHost:()=>eK,createCompilerHostFromProgramHost:()=>Eq,createCompilerHostWorker:()=>rK,createDetachedDiagnostic:()=>NS,createDiagnosticCollection:()=>uv,createDiagnosticForFileFromMessageChain:()=>Zp,createDiagnosticForNode:()=>qp,createDiagnosticForNodeArray:()=>Wp,createDiagnosticForNodeArrayFromMessageChain:()=>Xp,createDiagnosticForNodeFromMessageChain:()=>Gp,createDiagnosticForNodeInSourceFile:()=>Hp,createDiagnosticForRange:()=>tm,createDiagnosticMessageChainFromDiagnostic:()=>em,createDiagnosticReporter:()=>oq,createDocumentPositionMapper:()=>uJ,createDocumentRegistry:()=>D0,createDocumentRegistryInternal:()=>N0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>MU,createEmitHelperFactory:()=>xE,createEmptyExports:()=>BP,createExpressionForJsxElement:()=>KP,createExpressionForJsxFragment:()=>UP,createExpressionForObjectLiteralElementLike:()=>XP,createExpressionForPropertyName:()=>GP,createExpressionFromEntityName:()=>HP,createExternalHelpersImportDeclarationIfNeeded:()=>mF,createFileDiagnostic:()=>IS,createFileDiagnosticFromMessageChain:()=>Qp,createForOfBindingStatement:()=>qP,createGetCanonicalFileName:()=>ln,createGetSourceFile:()=>tK,createGetSymbolAccessibilityDiagnosticForNode:()=>x$,createGetSymbolAccessibilityDiagnosticForNodeName:()=>b$,createGetSymbolWalker:()=>wj,createIncrementalCompilerHost:()=>jq,createIncrementalProgram:()=>Bq,createInputFiles:()=>HC,createInputFilesWithFilePaths:()=>GC,createInputFilesWithFileTexts:()=>XC,createJsxFactoryExpression:()=>VP,createLanguageService:()=>O7,createLanguageServiceSourceFile:()=>F7,createMemberAccessForPropertyName:()=>JP,createModeAwareCache:()=>nR,createModeAwareCacheKey:()=>tR,createModuleNotFoundChain:()=>wf,createModuleResolutionCache:()=>sR,createModuleResolutionLoader:()=>bK,createModuleSpecifierResolutionHost:()=>IY,createMultiMap:()=>_t,createNodeConverters:()=>CC,createNodeFactory:()=>LC,createOptionNameMap:()=>GO,createOverload:()=>xge,createPackageJsonImportFilter:()=>TZ,createPackageJsonInfo:()=>kZ,createParenthesizerRules:()=>SC,createPatternMatcher:()=>K0,createPrependNodes:()=>JK,createPrinter:()=>yV,createPrinterWithDefaults:()=>K$,createPrinterWithRemoveComments:()=>U$,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>q$,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>W$,createProgram:()=>LK,createProgramHost:()=>Aq,createPropertyNameNodeForIdentifierOrLiteral:()=>GT,createQueue:()=>pt,createRange:()=>yx,createRedirectedBuilderProgram:()=>FU,createResolutionCache:()=>YU,createRuntimeTypeSerializer:()=>Dz,createScanner:()=>zs,createSemanticDiagnosticsBuilderProgram:()=>OU,createSet:()=>mt,createSolutionBuilder:()=>rW,createSolutionBuilderHost:()=>tW,createSolutionBuilderWithWatch:()=>iW,createSolutionBuilderWithWatchHost:()=>nW,createSortedArray:()=>me,createSourceFile:()=>UI,createSourceMapGenerator:()=>GB,createSourceMapSource:()=>YC,createSuperAccessVariableStatement:()=>Mz,createSymbolTable:()=>cf,createSymlinkCache:()=>Ek,createSystemWatchFunctions:()=>Lo,createTextChange:()=>bY,createTextChangeFromStartLength:()=>vY,createTextChangeRange:()=>pc,createTextRangeFromNode:()=>gY,createTextRangeFromSpan:()=>yY,createTextSpan:()=>uc,createTextSpanFromBounds:()=>_c,createTextSpanFromNode:()=>pY,createTextSpanFromRange:()=>hY,createTextSpanFromStringLiteralLikeContent:()=>mY,createTextWriter:()=>kv,createTokenRange:()=>Tx,createTypeChecker:()=>kB,createTypeReferenceDirectiveResolutionCache:()=>cR,createTypeReferenceResolutionLoader:()=>SK,createUnparsedSourceFile:()=>WC,createWatchCompilerHost:()=>Jq,createWatchCompilerHostOfConfigFile:()=>Iq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Oq,createWatchFactory:()=>wq,createWatchHost:()=>Cq,createWatchProgram:()=>zq,createWatchStatusReporter:()=>cq,createWriteFileMeasuringIO:()=>nK,declarationNameToString:()=>Jp,decodeMappings:()=>tJ,decodedTextSpanIntersectsWith:()=>sc,decorateHelper:()=>zw,deduplicate:()=>pe,defaultIncludeSpec:()=>UO,defaultInitCompilerOptions:()=>NO,defaultMaximumTruncationLength:()=>ad,detectSortCaseSensitivity:()=>ve,diagnosticCategoryName:()=>uo,diagnosticToString:()=>qZ,directoryProbablyExists:()=>gx,directorySeparator:()=>Bo,displayPart:()=>sQ,displayPartsToString:()=>D7,disposeEmitNodes:()=>tw,disposeResourcesHelper:()=>gE,documentSpansEqual:()=>ZY,dumpTracingLegend:()=>$r,elementAt:()=>u,elideNodes:()=>VF,emitComments:()=>_b,emitDetachedComments:()=>db,emitFiles:()=>fV,emitFilesAndReportErrors:()=>kq,emitFilesAndReportErrorsAndGetExitStatus:()=>Tq,emitModuleKindIsNonNodeESM:()=>XS,emitNewLineBeforeLeadingCommentOfPosition:()=>ub,emitNewLineBeforeLeadingComments:()=>cb,emitNewLineBeforeLeadingCommentsOfPosition:()=>lb,emitSkippedWithNoDiagnostics:()=>GV,emitUsingBuildInfo:()=>hV,emptyArray:()=>a,emptyFileSystemEntries:()=>rf,emptyMap:()=>s,emptyOptions:()=>HH,emptySet:()=>c,endsWith:()=>Zt,ensurePathIsNonModuleName:()=>Sa,ensureScriptKind:()=>Vk,ensureTrailingDirectorySeparator:()=>xa,entityNameToString:()=>Up,enumerateInsertsAndDeletes:()=>Sn,equalOwnProperties:()=>tt,equateStringsCaseInsensitive:()=>Lt,equateStringsCaseSensitive:()=>Rt,equateValues:()=>Mt,esDecorateHelper:()=>Kw,escapeJsxAttributeString:()=>hv,escapeLeadingUnderscores:()=>Pc,escapeNonAsciiString:()=>mv,escapeSnippetText:()=>WT,escapeString:()=>pv,every:()=>I,expandPreOrPostfixIncrementOrDecrementExpression:()=>YP,explainFiles:()=>hq,explainIfFileIsRedirectAndImpliedFormat:()=>yq,exportAssignmentIsAlias:()=>dy,exportStarHelper:()=>_E,expressionResultIsUnused:()=>BT,extend:()=>ct,extendsHelper:()=>Zw,extensionFromPath:()=>lT,extensionIsTS:()=>sT,extensionsNotSupportingExtensionlessResolution:()=>ef,externalHelpersModuleNameText:()=>od,factory:()=>FC,fileExtensionIs:()=>Zo,fileExtensionIsOneOf:()=>ea,fileIncludeReasonToDiagnostics:()=>xq,fileShouldUseJavaScriptRequire:()=>YZ,filter:()=>V,filterMutate:()=>K,filterSemanticDiagnostics:()=>jK,find:()=>O,findAncestor:()=>Dc,findBestPatternMatch:()=>dn,findChildOfKind:()=>yX,findComputedPropertyNameCacheAssignment:()=>XF,findConfigFile:()=>YV,findContainingList:()=>vX,findDiagnosticForNode:()=>DZ,findFirstNonJsxWhitespaceToken:()=>IX,findIndex:()=>L,findLast:()=>M,findLastIndex:()=>R,findListItemInfo:()=>gX,findMap:()=>j,findModifier:()=>GY,findNextToken:()=>MX,findPackageJson:()=>xZ,findPackageJsons:()=>bZ,findPrecedingMatchingToken:()=>qX,findPrecedingToken:()=>LX,findSuperStatementIndexPath:()=>NJ,findTokenOnLeftOfPosition:()=>OX,findUseStrictPrologue:()=>nF,first:()=>Le,firstDefined:()=>D,firstDefinedIterator:()=>N,firstIterator:()=>Re,firstOrOnly:()=>IZ,firstOrUndefined:()=>Oe,firstOrUndefinedIterator:()=>Me,fixupCompilerOptions:()=>j1,flatMap:()=>X,flatMapIterator:()=>Q,flatMapToMutable:()=>Y,flatten:()=>G,flattenCommaList:()=>QF,flattenDestructuringAssignment:()=>qJ,flattenDestructuringBinding:()=>GJ,flattenDiagnosticMessageText:()=>fK,forEach:()=>w,forEachAncestor:()=>pf,forEachAncestorDirectory:()=>Ma,forEachChild:()=>zI,forEachChildRecursively:()=>$I,forEachEmittedFile:()=>X$,forEachEnclosingBlockScopeContainer:()=>Bp,forEachEntry:()=>mf,forEachExternalModuleToImportFrom:()=>r0,forEachImportClauseDeclaration:()=>Th,forEachKey:()=>gf,forEachLeadingCommentRange:()=>As,forEachNameInAccessChainWalkingLeft:()=>pS,forEachPropertyAssignment:()=>Vm,forEachResolvedProjectReference:()=>TK,forEachReturnStatement:()=>wm,forEachRight:()=>E,forEachTrailingCommentRange:()=>Ps,forEachTsConfigPropArray:()=>Wm,forEachUnique:()=>eQ,forEachYieldExpression:()=>Em,forSomeAncestorDirectory:()=>nS,formatColorAndReset:()=>lK,formatDiagnostic:()=>sK,formatDiagnostics:()=>aK,formatDiagnosticsWithColorAndContext:()=>dK,formatGeneratedName:()=>qF,formatGeneratedNamePart:()=>UF,formatLocation:()=>_K,formatMessage:()=>OS,formatStringFromArgs:()=>CS,formatting:()=>fge,fullTripleSlashAMDReferencePathRegEx:()=>fd,fullTripleSlashReferencePathRegEx:()=>ud,generateDjb2Hash:()=>ko,generateTSConfig:()=>MM,generatorHelper:()=>aE,getAdjustedReferenceLocation:()=>EX,getAdjustedRenameLocation:()=>DX,getAliasDeclarationFromName:()=>uy,getAllAccessorDeclarations:()=>nb,getAllDecoratorsOfClass:()=>LJ,getAllDecoratorsOfClassElement:()=>RJ,getAllJSDocTags:()=>Cl,getAllJSDocTagsOfKind:()=>wl,getAllKeys:()=>Xe,getAllProjectOutputs:()=>uV,getAllSuperTypeNodes:()=>yy,getAllUnscopedEmitHelpers:()=>TE,getAllowJSCompilerOption:()=>gk,getAllowSyntheticDefaultImports:()=>ak,getAncestor:()=>xy,getAnyExtensionFromPath:()=>ca,getAreDeclarationMapsEnabled:()=>ik,getAssignedExpandoInitializer:()=>Wg,getAssignedName:()=>Vc,getAssignedNameOfIdentifier:()=>sz,getAssignmentDeclarationKind:()=>nh,getAssignmentDeclarationPropertyAccessKind:()=>dh,getAssignmentTargetKind:()=>Wh,getAutomaticTypeDirectiveNames:()=>XL,getBaseFileName:()=>aa,getBinaryOperatorPrecedence:()=>cv,getBuildInfo:()=>gV,getBuildInfoFileVersionMap:()=>PU,getBuildInfoText:()=>mV,getBuildOrderFromAnyBuildOrder:()=>Qq,getBuilderCreationParameters:()=>xU,getBuilderFileEmit:()=>QK,getCheckFlags:()=>$x,getClassExtendsHeritageElement:()=>gy,getClassLikeDeclarationOfSymbol:()=>eS,getCombinedLocalAndExportSymbolFlags:()=>Ux,getCombinedModifierFlags:()=>Sc,getCombinedNodeFlags:()=>Tc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>kc,getCommentRange:()=>fw,getCommonSourceDirectory:()=>cV,getCommonSourceDirectoryOfConfig:()=>lV,getCompilerOptionValue:()=>Sk,getCompilerOptionsDiffValue:()=>IM,getConditions:()=>HL,getConfigFileParsingDiagnostics:()=>IK,getConstantValue:()=>Sw,getContainerFlags:()=>kj,getContainerNode:()=>eX,getContainingClass:()=>Xm,getContainingClassExcludingClassDecorators:()=>Zm,getContainingClassStaticBlock:()=>Ym,getContainingFunction:()=>Hm,getContainingFunctionDeclaration:()=>Gm,getContainingFunctionOrClassStaticBlock:()=>Qm,getContainingNodeArray:()=>zT,getContainingObjectLiteralElement:()=>L7,getContextualTypeFromParent:()=>tZ,getContextualTypeFromParentOrAncestorTypeNode:()=>kX,getCurrentTime:()=>Xq,getDeclarationDiagnostics:()=>T$,getDeclarationEmitExtensionForPath:()=>Ov,getDeclarationEmitOutputFilePath:()=>Fv,getDeclarationEmitOutputFilePathWorker:()=>Iv,getDeclarationFromName:()=>ay,getDeclarationModifierFlagsFromSymbol:()=>Vx,getDeclarationOfKind:()=>af,getDeclarationsOfKind:()=>sf,getDeclaredExpandoInitializer:()=>qg,getDecorators:()=>Kc,getDefaultCompilerOptions:()=>N7,getDefaultExportInfoWorker:()=>c0,getDefaultFormatCodeSettings:()=>mG,getDefaultLibFileName:()=>Ys,getDefaultLibFilePath:()=>j7,getDefaultLikeExportInfo:()=>a0,getDiagnosticText:()=>uM,getDiagnosticsWithinSpan:()=>NZ,getDirectoryPath:()=>oa,getDirectoryToWatchFailedLookupLocation:()=>UU,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>HU,getDocumentPositionMapper:()=>y1,getESModuleInterop:()=>ok,getEditsForFileRename:()=>I0,getEffectiveBaseTypeNode:()=>my,getEffectiveConstraintOfTypeParameter:()=>Nl,getEffectiveContainerForJSDocTemplateTag:()=>Jh,getEffectiveImplementsTypeNodes:()=>hy,getEffectiveInitializer:()=>Ug,getEffectiveJSDocHost:()=>$h,getEffectiveModifierFlags:()=>Pb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Fb,getEffectiveModifierFlagsNoCache:()=>Mb,getEffectiveReturnTypeNode:()=>ob,getEffectiveSetAccessorTypeAnnotationNode:()=>sb,getEffectiveTypeAnnotationNode:()=>rb,getEffectiveTypeParameterDeclarations:()=>Dl,getEffectiveTypeRoots:()=>VL,getElementOrPropertyAccessArgumentExpressionOrName:()=>uh,getElementOrPropertyAccessName:()=>_h,getElementsOfBindingOrAssignmentPattern:()=>wF,getEmitDeclarations:()=>dk,getEmitFlags:()=>cp,getEmitHelpers:()=>Ew,getEmitModuleDetectionKind:()=>QS,getEmitModuleKind:()=>GS,getEmitModuleResolutionKind:()=>YS,getEmitScriptTarget:()=>HS,getEmitStandardClassFields:()=>yk,getEnclosingBlockScopeContainer:()=>jp,getEnclosingContainer:()=>Rp,getEncodedSemanticClassifications:()=>y0,getEncodedSyntacticClassifications:()=>k0,getEndLinePosition:()=>jf,getEntityNameFromTypeNode:()=>_g,getEntrypointsFromPackageJsonInfo:()=>FR,getErrorCountForSummary:()=>uq,getErrorSpanForNode:()=>im,getErrorSummaryText:()=>pq,getEscapedTextOfIdentifierOrLiteral:()=>zy,getEscapedTextOfJsxAttributeName:()=>uC,getEscapedTextOfJsxNamespacedName:()=>fC,getExpandoInitializer:()=>Hg,getExportAssignmentExpression:()=>fy,getExportInfoMap:()=>o0,getExportNeedsImportStarHelper:()=>hJ,getExpressionAssociativity:()=>rv,getExpressionPrecedence:()=>ov,getExternalHelpersModuleName:()=>fF,getExternalModuleImportEqualsDeclarationExpression:()=>wg,getExternalModuleName:()=>xh,getExternalModuleNameFromDeclaration:()=>Nv,getExternalModuleNameFromPath:()=>Av,getExternalModuleNameLiteral:()=>yF,getExternalModuleRequireArgument:()=>Eg,getFallbackOptions:()=>MV,getFileEmitOutput:()=>HK,getFileMatcherPatterns:()=>jk,getFileNamesFromConfigSpecs:()=>lL,getFileWatcherEventKind:()=>Ao,getFilesInErrorForSummary:()=>_q,getFirstConstructorWithBody:()=>Wv,getFirstIdentifier:()=>Zb,getFirstNonSpaceCharacterPosition:()=>OQ,getFirstProjectOutput:()=>dV,getFixableErrorSpanExpression:()=>PZ,getFormatCodeSettingsForWriting:()=>WZ,getFullWidth:()=>vf,getFunctionFlags:()=>Fy,getHeritageClause:()=>by,getHostSignatureFromJSDoc:()=>zh,getIdentifierAutoGenerate:()=>Rw,getIdentifierGeneratedImportReference:()=>Bw,getIdentifierTypeArguments:()=>Mw,getImmediatelyInvokedFunctionExpression:()=>og,getImpliedNodeFormatForFile:()=>OK,getImpliedNodeFormatForFileWorker:()=>MK,getImportNeedsImportDefaultHelper:()=>vJ,getImportNeedsImportStarHelper:()=>yJ,getIndentSize:()=>xv,getIndentString:()=>bv,getInferredLibraryNameResolveFrom:()=>wK,getInitializedVariables:()=>jx,getInitializerOfBinaryExpression:()=>fh,getInitializerOfBindingOrAssignmentElement:()=>bF,getInterfaceBaseTypeNodes:()=>vy,getInternalEmitFlags:()=>lp,getInvokedExpression:()=>dg,getIsolatedModules:()=>ek,getJSDocAugmentsTag:()=>Zc,getJSDocClassTag:()=>tl,getJSDocCommentRanges:()=>km,getJSDocCommentsAndTags:()=>Mh,getJSDocDeprecatedTag:()=>_l,getJSDocDeprecatedTagNoCache:()=>dl,getJSDocEnumTag:()=>fl,getJSDocHost:()=>Vh,getJSDocImplementsTags:()=>el,getJSDocOverrideTagNoCache:()=>ul,getJSDocParameterTags:()=>Wc,getJSDocParameterTagsNoCache:()=>Hc,getJSDocPrivateTag:()=>il,getJSDocPrivateTagNoCache:()=>ol,getJSDocProtectedTag:()=>al,getJSDocProtectedTagNoCache:()=>sl,getJSDocPublicTag:()=>nl,getJSDocPublicTagNoCache:()=>rl,getJSDocReadonlyTag:()=>cl,getJSDocReadonlyTagNoCache:()=>ll,getJSDocReturnTag:()=>ml,getJSDocReturnType:()=>bl,getJSDocRoot:()=>Kh,getJSDocSatisfiesExpressionType:()=>cC,getJSDocSatisfiesTag:()=>hl,getJSDocTags:()=>Sl,getJSDocTagsNoCache:()=>kl,getJSDocTemplateTag:()=>gl,getJSDocThisTag:()=>pl,getJSDocType:()=>vl,getJSDocTypeAliasName:()=>EF,getJSDocTypeAssertionType:()=>sF,getJSDocTypeParameterDeclarations:()=>ab,getJSDocTypeParameterTags:()=>Xc,getJSDocTypeParameterTagsNoCache:()=>Yc,getJSDocTypeTag:()=>yl,getJSXImplicitImportBase:()=>Tk,getJSXRuntimeImport:()=>Ck,getJSXTransformEnabled:()=>kk,getKeyForCompilerOptions:()=>QL,getLanguageVariant:()=>VS,getLastChild:()=>oS,getLeadingCommentRanges:()=>Ms,getLeadingCommentRangesOfNode:()=>Sm,getLeftmostAccessExpression:()=>fS,getLeftmostExpression:()=>mS,getLineAndCharacterOfPosition:()=>gs,getLineInfo:()=>XB,getLineOfLocalPosition:()=>Uv,getLineOfLocalPositionFromLineMap:()=>qv,getLineStartPositionForPosition:()=>rX,getLineStarts:()=>ds,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Lx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Mx,getLinesBetweenPositions:()=>ms,getLinesBetweenRangeEndAndRangeStart:()=>Ax,getLinesBetweenRangeEndPositions:()=>Px,getLiteralText:()=>_p,getLocalNameForExternalImport:()=>hF,getLocalSymbolForExportDefault:()=>lx,getLocaleSpecificMessage:()=>DS,getLocaleTimeString:()=>sq,getMappedContextSpan:()=>iQ,getMappedDocumentSpan:()=>rQ,getMappedLocation:()=>nQ,getMatchedFileSpec:()=>vq,getMatchedIncludeSpec:()=>bq,getMeaningFromDeclaration:()=>wG,getMeaningFromLocation:()=>EG,getMembersOfDeclaration:()=>Nm,getModeForFileReference:()=>pK,getModeForResolutionAtIndex:()=>mK,getModeForUsageLocation:()=>hK,getModifiedTime:()=>Co,getModifiers:()=>Uc,getModuleInstanceState:()=>mj,getModuleNameStringLiteralAt:()=>KK,getModuleSpecifierEndingPreference:()=>Xk,getModuleSpecifierResolverHost:()=>OY,getNameForExportedSymbol:()=>MZ,getNameFromIndexInfo:()=>zp,getNameFromPropertyName:()=>NY,getNameOfAccessExpression:()=>uS,getNameOfCompilerOptionValue:()=>AM,getNameOfDeclaration:()=>$c,getNameOfExpando:()=>Xg,getNameOfJSDocTypedef:()=>Bc,getNameOrArgument:()=>lh,getNameTable:()=>M7,getNamesForExportedSymbol:()=>OZ,getNamespaceDeclarationNode:()=>Sh,getNewLineCharacter:()=>hx,getNewLineKind:()=>UZ,getNewLineOrDefaultFromHost:()=>SQ,getNewTargetContainer:()=>rg,getNextJSDocCommentLocation:()=>jh,getNodeForGeneratedName:()=>KF,getNodeId:()=>bB,getNodeKind:()=>tX,getNodeModifiers:()=>eY,getNodeModulePathParts:()=>YT,getNonAssignedNameOfDeclaration:()=>zc,getNonAssignmentOperatorForCompoundAssignment:()=>wJ,getNonAugmentationDeclaration:()=>Cp,getNonDecoratorTokenPosOfNode:()=>tp,getNormalizedAbsolutePath:()=>ga,getNormalizedAbsolutePathWithoutRoot:()=>ya,getNormalizedPathComponents:()=>ma,getObjectFlags:()=>tS,getOperator:()=>av,getOperatorAssociativity:()=>iv,getOperatorPrecedence:()=>sv,getOptionFromName:()=>aM,getOptionsForLibraryResolution:()=>lR,getOptionsNameMap:()=>XO,getOrCreateEmitNode:()=>ew,getOrCreateExternalHelpersModuleNameIfNeeded:()=>gF,getOrUpdate:()=>ie,getOriginalNode:()=>Ec,getOriginalNodeId:()=>pJ,getOriginalSourceFile:()=>nv,getOutputDeclarationFileName:()=>rV,getOutputExtension:()=>tV,getOutputFileNames:()=>_V,getOutputPathsFor:()=>Z$,getOutputPathsForBundle:()=>Q$,getOwnEmitOutputFilePath:()=>Pv,getOwnKeys:()=>Ge,getOwnValues:()=>Ye,getPackageJsonInfo:()=>RR,getPackageJsonTypesVersionsPaths:()=>$L,getPackageJsonsVisibleToFile:()=>SZ,getPackageNameFromTypesPackageName:()=>tj,getPackageScopeForPath:()=>MR,getParameterSymbolFromJSDoc:()=>Bh,getParameterTypeNode:()=>QT,getParentNodeInSpan:()=>WY,getParseTreeNode:()=>Ac,getParsedCommandLineOfConfigFile:()=>_M,getPathComponents:()=>la,getPathComponentsRelativeTo:()=>Aa,getPathFromPathComponents:()=>ua,getPathUpdater:()=>O0,getPathsBasePath:()=>Rv,getPatternFromSpec:()=>Mk,getPendingEmitKind:()=>ZK,getPositionOfLineAndCharacter:()=>us,getPossibleGenericSignatures:()=>GX,getPossibleOriginalInputExtensionForExtension:()=>Mv,getPossibleTypeArgumentsInfo:()=>XX,getPreEmitDiagnostics:()=>oK,getPrecedingNonSpaceCharacterPosition:()=>MQ,getPrivateIdentifier:()=>zJ,getProperties:()=>AJ,getProperty:()=>He,getPropertyArrayElementValue:()=>Km,getPropertyAssignmentAliasLikeExpression:()=>py,getPropertyNameForPropertyNameNode:()=>jy,getPropertyNameForUniqueESSymbol:()=>$y,getPropertyNameFromType:()=>hC,getPropertyNameOfBindingOrAssignmentElement:()=>kF,getPropertySymbolFromBindingElement:()=>qY,getPropertySymbolsFromContextualType:()=>R7,getQuoteFromPreference:()=>zY,getQuotePreference:()=>JY,getRangesWhere:()=>ue,getRefactorContextSpan:()=>AZ,getReferencedFileLocation:()=>PK,getRegexFromPattern:()=>Bk,getRegularExpressionForWildcard:()=>Fk,getRegularExpressionsForWildcards:()=>Ik,getRelativePathFromDirectory:()=>Pa,getRelativePathFromFile:()=>Ia,getRelativePathToDirectoryOrUrl:()=>Oa,getRenameLocation:()=>HQ,getReplacementSpanForContextToken:()=>fY,getResolutionDiagnostic:()=>$K,getResolutionModeOverrideForClause:()=>yK,getResolveJsonModule:()=>_k,getResolvePackageJsonExports:()=>lk,getResolvePackageJsonImports:()=>uk,getResolvedExternalModuleName:()=>Ev,getResolvedModule:()=>bf,getResolvedTypeReferenceDirective:()=>kf,getRestIndicatorOfBindingOrAssignmentElement:()=>SF,getRestParameterElementType:()=>Dm,getRightMostAssignedExpression:()=>Qg,getRootDeclaration:()=>Zy,getRootDirectoryOfResolutionCache:()=>GU,getRootLength:()=>ia,getRootPathSplitLength:()=>XU,getScriptKind:()=>AQ,getScriptKindFromFileName:()=>Kk,getScriptTargetFeatures:()=>up,getSelectedEffectiveModifierFlags:()=>Db,getSelectedSyntacticModifierFlags:()=>Nb,getSemanticClassifications:()=>g0,getSemanticJsxChildren:()=>lv,getSetAccessorTypeAnnotationNode:()=>Gv,getSetAccessorValueParameter:()=>Hv,getSetExternalModuleIndicator:()=>WS,getShebang:()=>Rs,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Ah,getSingleVariableOfVariableStatement:()=>Ph,getSnapshotText:()=>wY,getSnippetElement:()=>Nw,getSourceFileOfModule:()=>If,getSourceFileOfNode:()=>Ff,getSourceFilePathInNewDir:()=>Jv,getSourceFilePathInNewDirWorker:()=>zv,getSourceFileVersionAsHashFromText:()=>Dq,getSourceFilesToEmit:()=>jv,getSourceMapRange:()=>sw,getSourceMapper:()=>h1,getSourceTextOfNodeFromSourceFile:()=>np,getSpanOfTokenAtPosition:()=>nm,getSpellingSuggestion:()=>Yt,getStartPositionOfLine:()=>Lf,getStartPositionOfRange:()=>Ox,getStartsOnNewLine:()=>_w,getStaticPropertiesAndClassStaticBlock:()=>FJ,getStrictOptionValue:()=>mk,getStringComparer:()=>Ut,getSuperCallFromStatement:()=>EJ,getSuperContainer:()=>ig,getSupportedCodeFixes:()=>A7,getSupportedExtensions:()=>Uk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>qk,getSwitchedType:()=>aZ,getSymbolId:()=>xB,getSymbolNameForPrivateIdentifier:()=>Vy,getSymbolTarget:()=>PQ,getSyntacticClassifications:()=>S0,getSyntacticModifierFlags:()=>Ib,getSyntacticModifierFlagsNoCache:()=>Lb,getSynthesizedDeepClone:()=>LQ,getSynthesizedDeepCloneWithReplacements:()=>RQ,getSynthesizedDeepClones:()=>BQ,getSynthesizedDeepClonesWithReplacements:()=>JQ,getSyntheticLeadingComments:()=>mw,getSyntheticTrailingComments:()=>yw,getTargetLabel:()=>zG,getTargetOfBindingOrAssignmentElement:()=>xF,getTemporaryModuleResolutionState:()=>OR,getTextOfConstantValue:()=>dp,getTextOfIdentifierOrLiteral:()=>Jy,getTextOfJSDocComment:()=>El,getTextOfJsxAttributeName:()=>_C,getTextOfJsxNamespacedName:()=>pC,getTextOfNode:()=>op,getTextOfNodeFromSourceText:()=>ip,getTextOfPropertyName:()=>Kp,getThisContainer:()=>eg,getThisParameter:()=>Xv,getTokenAtPosition:()=>PX,getTokenPosOfNode:()=>ep,getTokenSourceMapRange:()=>lw,getTouchingPropertyName:()=>NX,getTouchingToken:()=>AX,getTrailingCommentRanges:()=>Ls,getTrailingSemicolonDeferringWriter:()=>Tv,getTransformFlagsSubtreeExclusions:()=>UC,getTransformers:()=>I$,getTsBuildInfoEmitOutputFilePath:()=>Y$,getTsConfigObjectLiteralExpression:()=>Um,getTsConfigPropArrayElementValue:()=>qm,getTypeAnnotationNode:()=>ib,getTypeArgumentOrTypeParameterList:()=>tY,getTypeKeywordOfTypeOnlyImport:()=>YY,getTypeNode:()=>Iw,getTypeNodeIfAccessible:()=>sZ,getTypeParameterFromJsDoc:()=>Uh,getTypeParameterOwner:()=>gc,getTypesPackageName:()=>ZR,getUILocale:()=>qt,getUniqueName:()=>WQ,getUniqueSymbolId:()=>IQ,getUseDefineForClassFields:()=>hk,getWatchErrorSummaryDiagnosticMessage:()=>dq,getWatchFactory:()=>OV,group:()=>ot,groupBy:()=>at,guessIndentation:()=>Z_,handleNoEmitOptions:()=>RK,hasAbstractModifier:()=>kb,hasAccessorModifier:()=>Cb,hasAmbientModifier:()=>Tb,hasChangesInResolutions:()=>Af,hasChildOfKind:()=>hX,hasContextSensitiveParameters:()=>$T,hasDecorators:()=>Eb,hasDocComment:()=>QX,hasDynamicName:()=>Ly,hasEffectiveModifier:()=>yb,hasEffectiveModifiers:()=>gb,hasEffectiveReadonlyModifier:()=>wb,hasExtension:()=>Qo,hasIndexSignature:()=>oZ,hasInitializer:()=>G_,hasInvalidEscape:()=>_v,hasJSDocNodes:()=>W_,hasJSDocParameterTags:()=>Qc,hasJSFileExtension:()=>Wk,hasJsonModuleEmitEnabled:()=>ZS,hasOnlyExpressionInitializer:()=>X_,hasOverrideModifier:()=>Sb,hasPossibleExternalModuleReference:()=>Mp,hasProperty:()=>We,hasPropertyAccessExpressionWithName:()=>$G,hasQuestionToken:()=>Ch,hasRecordedExternalHelpers:()=>pF,hasRestParameter:()=>nd,hasScopeMarker:()=>p_,hasStaticModifier:()=>xb,hasSyntacticModifier:()=>vb,hasSyntacticModifiers:()=>hb,hasTSFileExtension:()=>Hk,hasTabstop:()=>rC,hasTrailingDirectorySeparator:()=>ta,hasType:()=>H_,hasTypeArguments:()=>qh,hasZeroOrOneAsteriskCharacter:()=>wk,helperString:()=>kE,hostGetCanonicalFileName:()=>wv,hostUsesCaseSensitiveFileNames:()=>Cv,idText:()=>Ic,identifierIsThisKeyword:()=>tb,identifierToKeywordKind:()=>Oc,identity:()=>wt,identitySourceMapConsumer:()=>WB,ignoreSourceNewlines:()=>Pw,ignoredPaths:()=>yo,importDefaultHelper:()=>uE,importFromModuleSpecifier:()=>vh,importNameElisionDisabled:()=>tk,importStarHelper:()=>lE,indexOfAnyCharCode:()=>z,indexOfNode:()=>sp,indicesOf:()=>fe,inferredTypesContainingFile:()=>WV,injectClassNamedEvaluationHelperBlockIfMissing:()=>fz,injectClassThisAssignmentIfMissing:()=>oz,insertImports:()=>XY,insertLeadingStatement:()=>WP,insertSorted:()=>ge,insertStatementAfterCustomPrologue:()=>Xf,insertStatementAfterStandardPrologue:()=>Gf,insertStatementsAfterCustomPrologue:()=>Hf,insertStatementsAfterStandardPrologue:()=>Wf,intersperse:()=>F,intrinsicTagNameToString:()=>mC,introducesArgumentsExoticObject:()=>Lm,inverseJsxOptionMap:()=>sO,isAbstractConstructorSymbol:()=>Zx,isAbstractModifier:()=>tD,isAccessExpression:()=>lS,isAccessibilityModifier:()=>sY,isAccessor:()=>Fu,isAccessorModifier:()=>rD,isAliasSymbolDeclaration:()=>ly,isAliasableExpression:()=>_y,isAmbientModule:()=>gp,isAmbientPropertyDeclaration:()=>Dp,isAnonymousFunctionDefinition:()=>Hy,isAnyDirectorySeparator:()=>Uo,isAnyImportOrBareOrAccessedRequire:()=>Ip,isAnyImportOrReExport:()=>Lp,isAnyImportSyntax:()=>Fp,isAnySupportedFileExtension:()=>uT,isApplicableVersionedTypesKey:()=>qR,isArgumentExpressionOfElementAccess:()=>GG,isArray:()=>gt,isArrayBindingElement:()=>Ku,isArrayBindingOrAssignmentElement:()=>Yu,isArrayBindingOrAssignmentPattern:()=>Xu,isArrayBindingPattern:()=>HD,isArrayLiteralExpression:()=>XD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>lY,isArrayTypeNode:()=>ND,isArrowFunction:()=>aN,isAsExpression:()=>xN,isAssertClause:()=>uA,isAssertEntry:()=>_A,isAssertionExpression:()=>u_,isAssertionKey:()=>lu,isAssertsKeyword:()=>YE,isAssignmentDeclaration:()=>Kg,isAssignmentExpression:()=>Hb,isAssignmentOperator:()=>Ub,isAssignmentPattern:()=>Vu,isAssignmentTarget:()=>Hh,isAsteriskToken:()=>JE,isAsyncFunction:()=>Iy,isAsyncModifier:()=>XE,isAutoAccessorPropertyDeclaration:()=>Iu,isAwaitExpression:()=>uN,isAwaitKeyword:()=>QE,isBigIntLiteral:()=>DE,isBinaryExpression:()=>fN,isBinaryOperatorToken:()=>jF,isBindableObjectDefinePropertyCall:()=>rh,isBindableStaticAccessExpression:()=>ah,isBindableStaticElementAccessExpression:()=>sh,isBindableStaticNameExpression:()=>ch,isBindingElement:()=>GD,isBindingElementOfBareOrAccessedRequire:()=>Bg,isBindingName:()=>Su,isBindingOrAssignmentElement:()=>qu,isBindingOrAssignmentPattern:()=>Wu,isBindingPattern:()=>$u,isBlock:()=>AN,isBlockOrCatchScoped:()=>pp,isBlockScope:()=>Np,isBlockScopedContainerTopLevel:()=>xp,isBooleanLiteral:()=>wu,isBreakOrContinueStatement:()=>Vl,isBreakStatement:()=>zN,isBuildInfoFile:()=>G$,isBuilderProgram:()=>mq,isBundle:()=>qA,isBundleFileTextLike:()=>_S,isCallChain:()=>Ol,isCallExpression:()=>eN,isCallExpressionTarget:()=>NG,isCallLikeExpression:()=>e_,isCallOrNewExpression:()=>t_,isCallOrNewExpressionTarget:()=>PG,isCallSignatureDeclaration:()=>bD,isCallToHelper:()=>CE,isCaseBlock:()=>iA,isCaseClause:()=>LA,isCaseKeyword:()=>aD,isCaseOrDefaultClause:()=>z_,isCatchClause:()=>BA,isCatchClauseVariableDeclaration:()=>KT,isCatchClauseVariableDeclarationOrBindingElement:()=>mp,isCheckJsEnabledForFile:()=>dT,isChildOfNodeWithKind:()=>Cm,isCircularBuildOrder:()=>Yq,isClassDeclaration:()=>QN,isClassElement:()=>Au,isClassExpression:()=>yN,isClassLike:()=>Pu,isClassMemberModifier:()=>yu,isClassNamedEvaluationHelperBlock:()=>uz,isClassOrTypeElement:()=>ju,isClassStaticBlockDeclaration:()=>gD,isClassThisAssignmentBlock:()=>rz,isCollapsedRange:()=>kx,isColonToken:()=>VE,isCommaExpression:()=>iF,isCommaListExpression:()=>EN,isCommaSequence:()=>oF,isCommaToken:()=>RE,isComment:()=>nY,isCommonJsExportPropertyAssignment:()=>Om,isCommonJsExportedExpression:()=>Im,isCompoundAssignment:()=>CJ,isComputedNonLiteralName:()=>$p,isComputedPropertyName:()=>cD,isConciseBody:()=>y_,isConditionalExpression:()=>pN,isConditionalTypeNode:()=>LD,isConstTypeReference:()=>Jl,isConstructSignatureDeclaration:()=>xD,isConstructorDeclaration:()=>hD,isConstructorTypeNode:()=>wD,isContextualKeyword:()=>Cy,isContinueStatement:()=>JN,isCustomPrologue:()=>ym,isDebuggerStatement:()=>HN,isDeclaration:()=>A_,isDeclarationBindingElement:()=>Uu,isDeclarationFileName:()=>QI,isDeclarationName:()=>oy,isDeclarationNameOfEnumOrNamespace:()=>Rx,isDeclarationReadonly:()=>cm,isDeclarationStatement:()=>P_,isDeclarationWithTypeParameterChildren:()=>Pp,isDeclarationWithTypeParameters:()=>Ap,isDecorator:()=>_D,isDecoratorTarget:()=>IG,isDefaultClause:()=>RA,isDefaultImport:()=>kh,isDefaultModifier:()=>GE,isDefaultedExpandoInitializer:()=>Gg,isDeleteExpression:()=>sN,isDeleteTarget:()=>ry,isDeprecatedDeclaration:()=>VZ,isDestructuringAssignment:()=>Xb,isDiagnosticWithLocation:()=>EZ,isDiskPathRoot:()=>Ho,isDoStatement:()=>MN,isDocumentRegistryEntry:()=>E0,isDotDotDotToken:()=>LE,isDottedName:()=>ex,isDynamicName:()=>Ry,isESSymbolIdentifier:()=>qy,isEffectiveExternalModule:()=>wp,isEffectiveModuleDeclaration:()=>vp,isEffectiveStrictModeSourceFile:()=>Ep,isElementAccessChain:()=>Il,isElementAccessExpression:()=>ZD,isEmittedFileOfProgram:()=>IV,isEmptyArrayLiteral:()=>cx,isEmptyBindingElement:()=>vc,isEmptyBindingPattern:()=>yc,isEmptyObjectLiteral:()=>sx,isEmptyStatement:()=>FN,isEmptyStringLiteral:()=>vg,isEntityName:()=>bu,isEntityNameExpression:()=>Qb,isEnumConst:()=>sm,isEnumDeclaration:()=>tA,isEnumMember:()=>VA,isEqualityOperatorKind:()=>rZ,isEqualsGreaterThanToken:()=>UE,isExclamationToken:()=>zE,isExcludedFile:()=>uL,isExclusivelyTypeOnlyImportOrExport:()=>gK,isExportAssignment:()=>gA,isExportDeclaration:()=>hA,isExportModifier:()=>HE,isExportName:()=>eF,isExportNamespaceAsDefaultDeclaration:()=>rp,isExportOrDefaultModifier:()=>zF,isExportSpecifier:()=>vA,isExportsIdentifier:()=>Zg,isExportsOrModuleExportsOrAlias:()=>Sj,isExpression:()=>l_,isExpressionNode:()=>xg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>ZG,isExpressionOfOptionalChainRoot:()=>Rl,isExpressionStatement:()=>IN,isExpressionWithTypeArguments:()=>bN,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Yb,isExternalModule:()=>HI,isExternalModuleAugmentation:()=>kp,isExternalModuleImportEqualsDeclaration:()=>Cg,isExternalModuleIndicator:()=>g_,isExternalModuleNameRelative:()=>Gs,isExternalModuleReference:()=>kA,isExternalModuleSymbol:()=>TY,isExternalOrCommonJsModule:()=>om,isFileLevelReservedGeneratedIdentifier:()=>fu,isFileLevelUniqueName:()=>Bf,isFileProbablyExternalModule:()=>xI,isFirstDeclarationOfSymbolParameter:()=>oQ,isFixablePromiseHandler:()=>E1,isForInOrOfStatement:()=>h_,isForInStatement:()=>jN,isForInitializer:()=>b_,isForOfStatement:()=>BN,isForStatement:()=>RN,isFunctionBlock:()=>jm,isFunctionBody:()=>v_,isFunctionDeclaration:()=>YN,isFunctionExpression:()=>oN,isFunctionExpressionOrArrowFunction:()=>qT,isFunctionLike:()=>ku,isFunctionLikeDeclaration:()=>Cu,isFunctionLikeKind:()=>Du,isFunctionLikeOrClassStaticBlockDeclaration:()=>Tu,isFunctionOrConstructorTypeNode:()=>zu,isFunctionOrModuleBlock:()=>Nu,isFunctionSymbol:()=>hh,isFunctionTypeNode:()=>CD,isFutureReservedKeyword:()=>Ey,isGeneratedIdentifier:()=>_u,isGeneratedPrivateIdentifier:()=>du,isGetAccessor:()=>q_,isGetAccessorDeclaration:()=>yD,isGetOrSetAccessorDeclaration:()=>Pl,isGlobalDeclaration:()=>zZ,isGlobalScopeAugmentation:()=>Sp,isGrammarError:()=>$f,isHeritageClause:()=>jA,isHoistedFunction:()=>vm,isHoistedVariableStatement:()=>xm,isIdentifier:()=>qE,isIdentifierANonContextualKeyword:()=>Ay,isIdentifierName:()=>cy,isIdentifierOrThisTypeNode:()=>IF,isIdentifierPart:()=>Bs,isIdentifierStart:()=>js,isIdentifierText:()=>Js,isIdentifierTypePredicate:()=>zm,isIdentifierTypeReference:()=>ET,isIfStatement:()=>ON,isIgnoredFileFromWildCardWatching:()=>FV,isImplicitGlob:()=>Ok,isImportCall:()=>pm,isImportClause:()=>cA,isImportDeclaration:()=>sA,isImportEqualsDeclaration:()=>aA,isImportKeyword:()=>oD,isImportMeta:()=>mm,isImportOrExportSpecifier:()=>ou,isImportOrExportSpecifierName:()=>NQ,isImportSpecifier:()=>mA,isImportTypeAssertionContainer:()=>lA,isImportTypeNode:()=>KD,isImportableFile:()=>n0,isInComment:()=>YX,isInExpressionContext:()=>Sg,isInJSDoc:()=>Og,isInJSFile:()=>Pg,isInJSXText:()=>KX,isInJsonFile:()=>Fg,isInNonReferenceComment:()=>_Y,isInReferenceComment:()=>uY,isInRightSideOfInternalImportEqualsDeclaration:()=>DG,isInString:()=>JX,isInTemplateString:()=>VX,isInTopLevelContext:()=>ng,isInTypeQuery:()=>Zv,isIncrementalCompilation:()=>pk,isIndexSignatureDeclaration:()=>SD,isIndexedAccessTypeNode:()=>zD,isInferTypeNode:()=>RD,isInfinityOrNaNString:()=>VT,isInitializedProperty:()=>IJ,isInitializedVariable:()=>Bx,isInsideJsxElement:()=>UX,isInsideJsxElementOrAttribute:()=>zX,isInsideNodeModules:()=>wZ,isInsideTemplateLiteral:()=>aY,isInstantiatedModule:()=>SB,isInterfaceDeclaration:()=>ZN,isInternalDeclaration:()=>w$,isInternalModuleImportEqualsDeclaration:()=>Dg,isInternalName:()=>QP,isIntersectionTypeNode:()=>MD,isIntrinsicJsxName:()=>vv,isIterationStatement:()=>d_,isJSDoc:()=>cP,isJSDocAllType:()=>eP,isJSDocAugmentsTag:()=>_P,isJSDocAuthorTag:()=>dP,isJSDocCallbackTag:()=>pP,isJSDocClassTag:()=>fP,isJSDocCommentContainingNode:()=>V_,isJSDocConstructSignature:()=>wh,isJSDocDeprecatedTag:()=>xP,isJSDocEnumTag:()=>kP,isJSDocFunctionType:()=>oP,isJSDocImplementsTag:()=>FP,isJSDocIndexSignature:()=>Mg,isJSDocLikeText:()=>bI,isJSDocLink:()=>YA,isJSDocLinkCode:()=>QA,isJSDocLinkLike:()=>td,isJSDocLinkPlain:()=>ZA,isJSDocMemberName:()=>XA,isJSDocNameReference:()=>GA,isJSDocNamepathType:()=>sP,isJSDocNamespaceBody:()=>k_,isJSDocNode:()=>$_,isJSDocNonNullableType:()=>rP,isJSDocNullableType:()=>nP,isJSDocOptionalParameter:()=>iC,isJSDocOptionalType:()=>iP,isJSDocOverloadTag:()=>bP,isJSDocOverrideTag:()=>vP,isJSDocParameterTag:()=>TP,isJSDocPrivateTag:()=>gP,isJSDocPropertyLikeTag:()=>Wl,isJSDocPropertyTag:()=>PP,isJSDocProtectedTag:()=>hP,isJSDocPublicTag:()=>mP,isJSDocReadonlyTag:()=>yP,isJSDocReturnTag:()=>CP,isJSDocSatisfiesExpression:()=>sC,isJSDocSatisfiesTag:()=>IP,isJSDocSeeTag:()=>SP,isJSDocSignature:()=>uP,isJSDocTag:()=>K_,isJSDocTemplateTag:()=>DP,isJSDocThisTag:()=>wP,isJSDocThrowsTag:()=>OP,isJSDocTypeAlias:()=>Eh,isJSDocTypeAssertion:()=>aF,isJSDocTypeExpression:()=>HA,isJSDocTypeLiteral:()=>lP,isJSDocTypeTag:()=>EP,isJSDocTypedefTag:()=>NP,isJSDocUnknownTag:()=>AP,isJSDocUnknownType:()=>tP,isJSDocVariadicType:()=>aP,isJSXTagName:()=>bg,isJsonEqual:()=>bT,isJsonSourceFile:()=>am,isJsxAttribute:()=>PA,isJsxAttributeLike:()=>j_,isJsxAttributeName:()=>dC,isJsxAttributes:()=>FA,isJsxChild:()=>R_,isJsxClosingElement:()=>EA,isJsxClosingFragment:()=>AA,isJsxElement:()=>TA,isJsxExpression:()=>OA,isJsxFragment:()=>DA,isJsxNamespacedName:()=>MA,isJsxOpeningElement:()=>wA,isJsxOpeningFragment:()=>NA,isJsxOpeningLikeElement:()=>J_,isJsxOpeningLikeElementTagName:()=>OG,isJsxSelfClosingElement:()=>CA,isJsxSpreadAttribute:()=>IA,isJsxTagNameExpression:()=>L_,isJsxText:()=>AE,isJumpStatementTarget:()=>VG,isKeyword:()=>Sy,isKeywordOrPunctuation:()=>Ty,isKnownSymbol:()=>Ky,isLabelName:()=>UG,isLabelOfLabeledStatement:()=>KG,isLabeledStatement:()=>UN,isLateVisibilityPaintedStatement:()=>Op,isLeftHandSideExpression:()=>r_,isLeftHandSideOfAssignment:()=>Gb,isLet:()=>dm,isLineBreak:()=>vs,isLiteralComputedPropertyDeclarationName:()=>sy,isLiteralExpression:()=>eu,isLiteralExpressionOfObject:()=>tu,isLiteralImportTypeNode:()=>gm,isLiteralKind:()=>Zl,isLiteralLikeAccess:()=>ih,isLiteralLikeElementAccess:()=>oh,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>QG,isLiteralTypeLikeExpression:()=>RF,isLiteralTypeLiteral:()=>c_,isLiteralTypeNode:()=>VD,isLocalName:()=>ZP,isLogicalOperator:()=>Jb,isLogicalOrCoalescingAssignmentExpression:()=>$b,isLogicalOrCoalescingAssignmentOperator:()=>zb,isLogicalOrCoalescingBinaryExpression:()=>Kb,isLogicalOrCoalescingBinaryOperator:()=>Vb,isMappedTypeNode:()=>$D,isMemberName:()=>Al,isMetaProperty:()=>TN,isMethodDeclaration:()=>mD,isMethodOrAccessor:()=>Ou,isMethodSignature:()=>pD,isMinusToken:()=>BE,isMissingDeclaration:()=>bA,isModifier:()=>vu,isModifierKind:()=>gu,isModifierLike:()=>Lu,isModuleAugmentationExternal:()=>Tp,isModuleBlock:()=>rA,isModuleBody:()=>x_,isModuleDeclaration:()=>nA,isModuleExportsAccessExpression:()=>th,isModuleIdentifier:()=>eh,isModuleName:()=>LF,isModuleOrEnumDeclaration:()=>C_,isModuleReference:()=>M_,isModuleSpecifierLike:()=>KY,isModuleWithStringLiteralName:()=>hp,isNameOfFunctionDeclaration:()=>YG,isNameOfModuleDeclaration:()=>XG,isNamedClassElement:()=>Mu,isNamedDeclaration:()=>Jc,isNamedEvaluation:()=>Xy,isNamedEvaluationSource:()=>Gy,isNamedExportBindings:()=>Kl,isNamedExports:()=>yA,isNamedImportBindings:()=>T_,isNamedImports:()=>pA,isNamedImportsOrExports:()=>dS,isNamedTupleMember:()=>PD,isNamespaceBody:()=>S_,isNamespaceExport:()=>fA,isNamespaceExportDeclaration:()=>oA,isNamespaceImport:()=>dA,isNamespaceReexportDeclaration:()=>Tg,isNewExpression:()=>tN,isNewExpressionTarget:()=>AG,isNightly:()=>Sv,isNoSubstitutionTemplateLiteral:()=>FE,isNode:()=>Hl,isNodeArray:()=>Ql,isNodeArrayMultiLine:()=>Fx,isNodeDescendantOf:()=>iy,isNodeKind:()=>Gl,isNodeLikeSystem:()=>An,isNodeModulesDirectory:()=>La,isNodeWithPossibleHoistedDeclaration:()=>Gh,isNonContextualKeyword:()=>wy,isNonExportDefaultModifier:()=>$F,isNonGlobalAmbientModule:()=>yp,isNonGlobalDeclaration:()=>$Z,isNonNullAccess:()=>aC,isNonNullChain:()=>$l,isNonNullExpression:()=>kN,isNonStaticMethodOrAccessorWithPrivateName:()=>OJ,isNotEmittedOrPartiallyEmittedNode:()=>__,isNotEmittedStatement:()=>xA,isNullishCoalesce:()=>Bl,isNumber:()=>vt,isNumericLiteral:()=>EE,isNumericLiteralName:()=>HT,isObjectBindingElementWithoutPropertyName:()=>UY,isObjectBindingOrAssignmentElement:()=>Gu,isObjectBindingOrAssignmentPattern:()=>Hu,isObjectBindingPattern:()=>WD,isObjectLiteralElement:()=>Y_,isObjectLiteralElementLike:()=>Bu,isObjectLiteralExpression:()=>YD,isObjectLiteralMethod:()=>Bm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Jm,isObjectTypeDeclaration:()=>sS,isOctalDigit:()=>Ss,isOmittedExpression:()=>vN,isOptionalChain:()=>Ml,isOptionalChainRoot:()=>Ll,isOptionalDeclaration:()=>oC,isOptionalJSDocPropertyLikeTag:()=>tC,isOptionalTypeNode:()=>FD,isOuterExpression:()=>cF,isOutermostOptionalChain:()=>jl,isOverrideModifier:()=>nD,isPackedArrayLiteral:()=>jT,isParameter:()=>uD,isParameterDeclaration:()=>Qy,isParameterOrCatchClauseVariable:()=>UT,isParameterPropertyDeclaration:()=>hc,isParameterPropertyModifier:()=>hu,isParenthesizedExpression:()=>iN,isParenthesizedTypeNode:()=>jD,isParseTreeNode:()=>Nc,isPartOfTypeNode:()=>Tm,isPartOfTypeQuery:()=>kg,isPartiallyEmittedExpression:()=>wN,isPatternMatch:()=>gn,isPinnedComment:()=>Qf,isPlainJsFile:()=>Of,isPlusToken:()=>jE,isPossiblyTypeArgumentPosition:()=>HX,isPostfixUnaryExpression:()=>dN,isPrefixUnaryExpression:()=>_N,isPrivateIdentifier:()=>WE,isPrivateIdentifierClassElementDeclaration:()=>pu,isPrivateIdentifierPropertyAccessExpression:()=>mu,isPrivateIdentifierSymbol:()=>Uy,isProgramBundleEmitBuildInfo:()=>mU,isProgramUptoDate:()=>FK,isPrologueDirective:()=>hm,isPropertyAccessChain:()=>Fl,isPropertyAccessEntityNameExpression:()=>tx,isPropertyAccessExpression:()=>QD,isPropertyAccessOrQualifiedName:()=>Zu,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>Qu,isPropertyAssignment:()=>JA,isPropertyDeclaration:()=>fD,isPropertyName:()=>xu,isPropertyNameLiteral:()=>By,isPropertySignature:()=>dD,isProtoSetter:()=>Wy,isPrototypeAccess:()=>rx,isPrototypePropertyAssignment:()=>ph,isPunctuation:()=>ky,isPushOrUnshiftIdentifier:()=>Yy,isQualifiedName:()=>sD,isQuestionDotToken:()=>KE,isQuestionOrExclamationToken:()=>FF,isQuestionOrPlusOrMinusToken:()=>MF,isQuestionToken:()=>$E,isRawSourceMap:()=>ZB,isReadonlyKeyword:()=>ZE,isReadonlyKeywordOrPlusOrMinusToken:()=>OF,isRecognizedTripleSlashComment:()=>Yf,isReferenceFileLocation:()=>AK,isReferencedFile:()=>NK,isRegularExpressionLiteral:()=>PE,isRequireCall:()=>Lg,isRequireVariableStatement:()=>zg,isRestParameter:()=>rd,isRestTypeNode:()=>ID,isReturnStatement:()=>$N,isReturnStatementWithFixablePromiseHandler:()=>w1,isRightSideOfAccessExpression:()=>ox,isRightSideOfPropertyAccess:()=>HG,isRightSideOfQualifiedName:()=>WG,isRightSideOfQualifiedNameOrPropertyAccess:()=>ix,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>ax,isRootedDiskPath:()=>Wo,isSameEntityName:()=>Yg,isSatisfiesExpression:()=>SN,isScopeMarker:()=>f_,isSemicolonClassElement:()=>NN,isSetAccessor:()=>U_,isSetAccessorDeclaration:()=>vD,isShebangTrivia:()=>Es,isShorthandAmbientModuleSymbol:()=>bp,isShorthandPropertyAssignment:()=>zA,isSignedNumericLiteral:()=>My,isSimpleCopiableExpression:()=>kJ,isSimpleInlineableExpression:()=>TJ,isSingleOrDoubleQuote:()=>$g,isSourceFile:()=>UA,isSourceFileFromLibrary:()=>GZ,isSourceFileJS:()=>Ng,isSourceFileNotJS:()=>Ag,isSourceFileNotJson:()=>Ig,isSourceMapping:()=>rJ,isSpecialPropertyDeclaration:()=>mh,isSpreadAssignment:()=>$A,isSpreadElement:()=>hN,isStatement:()=>I_,isStatementButNotDeclaration:()=>F_,isStatementOrBlock:()=>O_,isStatementWithLocals:()=>Mf,isStatic:()=>bb,isStaticModifier:()=>eD,isString:()=>yt,isStringAKeyword:()=>Ny,isStringANonContextualKeyword:()=>Dy,isStringAndEmptyAnonymousObjectIntersection:()=>oY,isStringDoubleQuoted:()=>Vg,isStringLiteral:()=>NE,isStringLiteralLike:()=>ed,isStringLiteralOrJsxExpression:()=>B_,isStringLiteralOrTemplate:()=>iZ,isStringOrNumericLiteralLike:()=>Oy,isStringOrRegularExpressionOrTemplateLiteral:()=>rY,isStringTextContainingNode:()=>uu,isSuperCall:()=>fm,isSuperKeyword:()=>iD,isSuperOrSuperProperty:()=>ag,isSuperProperty:()=>sg,isSupportedSourceFileName:()=>Yk,isSwitchStatement:()=>KN,isSyntaxList:()=>MP,isSyntheticExpression:()=>CN,isSyntheticReference:()=>SA,isTagName:()=>qG,isTaggedTemplateExpression:()=>nN,isTaggedTemplateTag:()=>FG,isTemplateExpression:()=>mN,isTemplateHead:()=>IE,isTemplateLiteral:()=>n_,isTemplateLiteralKind:()=>nu,isTemplateLiteralToken:()=>ru,isTemplateLiteralTypeNode:()=>qD,isTemplateLiteralTypeSpan:()=>UD,isTemplateMiddle:()=>OE,isTemplateMiddleOrTemplateTail:()=>iu,isTemplateSpan:()=>DN,isTemplateTail:()=>ME,isTextWhiteSpaceLike:()=>tQ,isThis:()=>nX,isThisContainerOrFunctionBlock:()=>tg,isThisIdentifier:()=>Qv,isThisInTypeQuery:()=>eb,isThisInitializedDeclaration:()=>lg,isThisInitializedObjectBindingExpression:()=>ug,isThisProperty:()=>cg,isThisTypeNode:()=>BD,isThisTypeParameter:()=>XT,isThisTypePredicate:()=>$m,isThrowStatement:()=>qN,isToken:()=>Yl,isTokenKind:()=>Xl,isTraceEnabled:()=>AL,isTransientSymbol:()=>lf,isTrivia:()=>Py,isTryStatement:()=>WN,isTupleTypeNode:()=>AD,isTypeAlias:()=>Dh,isTypeAliasDeclaration:()=>eA,isTypeAssertionExpression:()=>rN,isTypeDeclaration:()=>ZT,isTypeElement:()=>Ru,isTypeKeyword:()=>xY,isTypeKeywordToken:()=>SY,isTypeKeywordTokenOrIdentifier:()=>kY,isTypeLiteralNode:()=>DD,isTypeNode:()=>Ju,isTypeNodeKind:()=>cS,isTypeOfExpression:()=>cN,isTypeOnlyExportDeclaration:()=>su,isTypeOnlyImportDeclaration:()=>au,isTypeOnlyImportOrExportDeclaration:()=>cu,isTypeOperatorNode:()=>JD,isTypeParameterDeclaration:()=>lD,isTypePredicateNode:()=>kD,isTypeQueryNode:()=>ED,isTypeReferenceNode:()=>TD,isTypeReferenceType:()=>Q_,isTypeUsableAsPropertyName:()=>gC,isUMDExportSymbol:()=>rS,isUnaryExpression:()=>o_,isUnaryExpressionWithWrite:()=>s_,isUnicodeIdentifierStart:()=>as,isUnionTypeNode:()=>OD,isUnparsedNode:()=>ql,isUnparsedPrepend:()=>KA,isUnparsedSource:()=>WA,isUnparsedTextLike:()=>Ul,isUrl:()=>qo,isValidBigIntString:()=>CT,isValidESSymbolDeclaration:()=>Mm,isValidTypeOnlyAliasUseSite:()=>wT,isValueSignatureDeclaration:()=>Xh,isVarAwaitUsing:()=>lm,isVarConst:()=>_m,isVarUsing:()=>um,isVariableDeclaration:()=>GN,isVariableDeclarationInVariableStatement:()=>Fm,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jg,isVariableDeclarationInitializedToRequire:()=>Rg,isVariableDeclarationList:()=>XN,isVariableLike:()=>Am,isVariableLikeOrAccessor:()=>Pm,isVariableStatement:()=>PN,isVoidExpression:()=>lN,isWatchSet:()=>Jx,isWhileStatement:()=>LN,isWhiteSpaceLike:()=>hs,isWhiteSpaceSingleLine:()=>ys,isWithStatement:()=>VN,isWriteAccess:()=>Wx,isWriteOnlyAccess:()=>qx,isYieldExpression:()=>gN,jsxModeNeedsExplicitImport:()=>HZ,keywordPart:()=>lQ,last:()=>Be,lastOrUndefined:()=>je,length:()=>C,libMap:()=>uO,libs:()=>lO,lineBreakPart:()=>kQ,linkNamePart:()=>vQ,linkPart:()=>bQ,linkTextPart:()=>yQ,listFiles:()=>gq,loadModuleFromGlobalCache:()=>sj,loadWithModeAwareCache:()=>kK,makeIdentifierFromModuleName:()=>fp,makeImport:()=>RY,makeImportIfNecessary:()=>LY,makeStringLiteral:()=>jY,mangleScopedPackageName:()=>ej,map:()=>q,mapAllOrFail:()=>ee,mapDefined:()=>te,mapDefinedEntries:()=>re,mapDefinedIterator:()=>ne,mapEntries:()=>ce,mapIterator:()=>W,mapOneOrMany:()=>FZ,mapToDisplayParts:()=>TQ,matchFiles:()=>Jk,matchPatternOrExact:()=>fT,matchedText:()=>_n,matchesExclude:()=>dL,maybeBind:()=>ut,maybeSetLocalizedDiagnosticMessages:()=>ES,memoize:()=>At,memoizeCached:()=>It,memoizeOne:()=>Pt,memoizeWeak:()=>Ft,metadataHelper:()=>$w,min:()=>zt,minAndMax:()=>gT,missingFileModifiedTime:()=>po,modifierToFlag:()=>jb,modifiersToFlags:()=>Rb,moduleOptionDeclaration:()=>pO,moduleResolutionIsEqualTo:()=>Cf,moduleResolutionNameAndModeGetter:()=>UV,moduleResolutionOptionDeclarations:()=>bO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>sk,moduleResolutionUsesNodeModules:()=>MY,moduleSpecifiers:()=>nB,moveEmitHelpers:()=>Dw,moveRangeEnd:()=>vx,moveRangePastDecorators:()=>xx,moveRangePastModifiers:()=>Sx,moveRangePos:()=>bx,moveSyntheticComments:()=>xw,mutateMap:()=>Qx,mutateMapSkippingNewValues:()=>Yx,needsParentheses:()=>eZ,needsScopeMarker:()=>m_,newCaseClauseTracker:()=>XZ,newPrivateEnvironment:()=>JJ,noEmitNotification:()=>J$,noEmitSubstitution:()=>B$,noTransformers:()=>A$,noTruncationMaximumTruncationLength:()=>sd,nodeCanBeDecorated:()=>fg,nodeHasName:()=>jc,nodeIsDecorated:()=>pg,nodeIsMissing:()=>Jf,nodeIsPresent:()=>zf,nodeIsSynthesized:()=>tv,nodeModuleNameResolver:()=>gR,nodeModulesPathPart:()=>wL,nodeNextJsonConfigResolver:()=>hR,nodeOrChildIsDecorated:()=>mg,nodeOverlapsWithStartEnd:()=>_X,nodePosToString:()=>Rf,nodeSeenTracker:()=>CY,nodeStartsNewLexicalEnvironment:()=>ev,nodeToDisplayParts:()=>DQ,noop:()=>St,noopFileWatcher:()=>tq,normalizePath:()=>ha,normalizeSlashes:()=>_a,not:()=>vn,notImplemented:()=>Nt,notImplementedResolver:()=>V$,nullNodeConverters:()=>kC,nullParenthesizerRules:()=>bC,nullTransformationContext:()=>P$,objectAllocator:()=>Id,operatorPart:()=>_Q,optionDeclarations:()=>gO,optionMapToObject:()=>EM,optionsAffectingProgramStructure:()=>SO,optionsForBuild:()=>TO,optionsForWatch:()=>_O,optionsHaveChanges:()=>ff,optionsHaveModuleResolutionChanges:()=>_f,or:()=>yn,orderedRemoveItem:()=>on,orderedRemoveItemAt:()=>an,outFile:()=>Lv,packageIdToPackageName:()=>Ef,packageIdToString:()=>Df,padLeft:()=>Cn,padRight:()=>wn,paramHelper:()=>Vw,parameterIsThisKeyword:()=>Yv,parameterNamePart:()=>dQ,parseBaseNodeFactory:()=>lI,parseBigInt:()=>kT,parseBuildCommand:()=>lM,parseCommandLine:()=>oM,parseCommandLineWorker:()=>rM,parseConfigFileTextToJson:()=>fM,parseConfigFileWithSystem:()=>lq,parseConfigHostFromCompilerHostLike:()=>BK,parseCustomTypeOption:()=>ZO,parseIsolatedEntityName:()=>qI,parseIsolatedJSDocComment:()=>XI,parseJSDocTypeExpressionForTests:()=>YI,parseJsonConfigFileContent:()=>jM,parseJsonSourceFileConfigFileContent:()=>BM,parseJsonText:()=>WI,parseListTypeOption:()=>eM,parseNodeFactory:()=>uI,parseNodeModuleFromPath:()=>SR,parsePackageName:()=>JR,parsePseudoBigInt:()=>xT,parseValidBigInt:()=>TT,patchWriteFileEnsuringDirectory:()=>Ro,pathContainsNodeModules:()=>xR,pathIsAbsolute:()=>Go,pathIsBareSpecifier:()=>Yo,pathIsRelative:()=>Xo,patternText:()=>un,perfLogger:()=>fr,performIncrementalCompilation:()=>Mq,performance:()=>jr,plainJSErrors:()=>HV,positionBelongsToNode:()=>fX,positionIsASICandidate:()=>dZ,positionIsSynthesized:()=>aT,positionsAreOnSameLine:()=>Ix,preProcessFile:()=>p1,probablyUsesSemicolons:()=>fZ,processCommentPragmas:()=>ZI,processPragmasIntoFields:()=>eO,processTaggedTemplateExpression:()=>yz,programContainsEsModules:()=>PY,programContainsModules:()=>AY,projectReferenceIsEqualTo:()=>Tf,propKeyHelper:()=>rE,propertyNamePart:()=>fQ,pseudoBigIntToString:()=>ST,punctuationPart:()=>uQ,pushIfUnique:()=>Ee,quote:()=>nZ,quotePreferenceFromString:()=>BY,rangeContainsPosition:()=>aX,rangeContainsPositionExclusive:()=>sX,rangeContainsRange:()=>iX,rangeContainsRangeExclusive:()=>oX,rangeContainsStartEnd:()=>lX,rangeEndIsOnSameLineAsRangeStart:()=>Nx,rangeEndPositionsAreOnSameLine:()=>Ex,rangeEquals:()=>Ie,rangeIsOnSingleLine:()=>Cx,rangeOfNode:()=>hT,rangeOfTypeParameters:()=>yT,rangeOverlapsWithStartEnd:()=>uX,rangeStartIsOnSameLineAsRangeEnd:()=>Dx,rangeStartPositionsAreOnSameLine:()=>wx,readBuilderProgram:()=>Rq,readConfigFile:()=>dM,readHelper:()=>tE,readJson:()=>mx,readJsonConfigFile:()=>pM,readJsonOrUndefined:()=>px,realizeDiagnostics:()=>e5,reduceEachLeadingCommentRange:()=>Fs,reduceEachTrailingCommentRange:()=>Is,reduceLeft:()=>qe,reduceLeftIterator:()=>A,reducePathComponents:()=>da,refactor:()=>U8,regExpEscape:()=>Ak,relativeComplement:()=>Se,removeAllComments:()=>nw,removeEmitHelper:()=>ww,removeExtension:()=>nT,removeFileExtension:()=>eT,removeIgnoredPath:()=>jU,removeMinAndVersionNumbers:()=>rn,removeOptionality:()=>WX,removePrefix:()=>pn,removeSuffix:()=>en,removeTrailingDirectorySeparator:()=>ba,repeatString:()=>EY,replaceElement:()=>Ve,resolutionExtensionIsTSOrJson:()=>cT,resolveConfigFileProjectName:()=>Kq,resolveJSModule:()=>pR,resolveLibrary:()=>uR,resolveModuleName:()=>dR,resolveModuleNameFromCache:()=>_R,resolvePackageNameToPackageJson:()=>GL,resolvePath:()=>pa,resolveProjectReferencePath:()=>zK,resolveTripleslashReference:()=>QV,resolveTypeReferenceDirective:()=>qL,resolvingEmptyArray:()=>id,restHelper:()=>Yw,returnFalse:()=>kt,returnNoopFileWatcher:()=>nq,returnTrue:()=>Tt,returnUndefined:()=>Ct,returnsPromise:()=>C1,runInitializersHelper:()=>Uw,sameFlatMap:()=>Z,sameMap:()=>H,sameMapping:()=>nJ,scanShebangTrivia:()=>Ds,scanTokenAtPosition:()=>rm,scanner:()=>gG,screenStartingMessageCodes:()=>eq,semanticDiagnosticsOptionDeclarations:()=>hO,serializeCompilerOptions:()=>PM,server:()=>VH,servicesVersion:()=>n7,setCommentRange:()=>pw,setConfigFileInOptions:()=>JM,setConstantValue:()=>kw,setEachParent:()=>MT,setEmitFlags:()=>rw,setFunctionNameHelper:()=>iE,setGetSourceFileAsHashVersioned:()=>Nq,setIdentifierAutoGenerate:()=>Lw,setIdentifierGeneratedImportReference:()=>jw,setIdentifierTypeArguments:()=>Ow,setInternalEmitFlags:()=>ow,setLocalizedDiagnosticMessages:()=>wS,setModuleDefaultHelper:()=>cE,setNodeFlags:()=>IT,setObjectAllocator:()=>TS,setOriginalNode:()=>QC,setParent:()=>OT,setParentRecursive:()=>LT,setPrivateIdentifier:()=>$J,setResolvedModule:()=>xf,setResolvedTypeReferenceDirective:()=>Sf,setSnippetElement:()=>Aw,setSourceMapRange:()=>cw,setStackTraceLimit:()=>To,setStartsOnNewLine:()=>dw,setSyntheticLeadingComments:()=>gw,setSyntheticTrailingComments:()=>vw,setSys:()=>jo,setSysLog:()=>Fo,setTextRange:()=>tI,setTextRangeEnd:()=>AT,setTextRangePos:()=>NT,setTextRangePosEnd:()=>PT,setTextRangePosWidth:()=>FT,setTokenSourceMapRange:()=>uw,setTypeNode:()=>Fw,setUILocale:()=>Wt,setValueDeclaration:()=>gh,shouldAllowImportingTsExtension:()=>aj,shouldPreserveConstEnums:()=>fk,shouldResolveJsRequire:()=>ck,shouldUseUriStyleNodeCoreModules:()=>KZ,showModuleSpecifier:()=>iS,signatureHasLiteralTypes:()=>NB,signatureHasRestParameter:()=>DB,signatureToDisplayParts:()=>EQ,single:()=>ze,singleElementArray:()=>xn,singleIterator:()=>ae,singleOrMany:()=>$e,singleOrUndefined:()=>Je,skipAlias:()=>Kx,skipAssertions:()=>_F,skipConstraint:()=>DY,skipOuterExpressions:()=>lF,skipParentheses:()=>ny,skipPartiallyEmittedExpressions:()=>zl,skipTrivia:()=>Ts,skipTypeChecking:()=>vT,skipTypeParentheses:()=>ty,skipWhile:()=>Dn,sliceAfter:()=>pT,some:()=>le,sort:()=>Ae,sortAndDeduplicate:()=>he,sortAndDeduplicateDiagnostics:()=>Xs,sourceFileAffectingCompilerOptions:()=>xO,sourceFileMayBeEmitted:()=>Bv,sourceMapCommentRegExp:()=>UB,sourceMapCommentRegExpDontCareLineStart:()=>KB,spacePart:()=>cQ,spanMap:()=>se,spreadArrayHelper:()=>nE,stableSort:()=>Fe,startEndContainsRange:()=>cX,startEndOverlapsWithStartEnd:()=>dX,startOnNewLine:()=>dF,startTracing:()=>zr,startsWith:()=>fn,startsWithDirectory:()=>Na,startsWithUnderscore:()=>JZ,startsWithUseStrict:()=>rF,stringContains:()=>nn,stringContainsAt:()=>BZ,stringToToken:()=>cs,stripQuotes:()=>yv,supportedDeclarationExtensions:()=>Qd,supportedJSExtensions:()=>Hd,supportedJSExtensionsFlat:()=>Gd,supportedLocaleDirectories:()=>qs,supportedTSExtensions:()=>Kd,supportedTSExtensionsFlat:()=>Ud,supportedTSImplementationExtensions:()=>Zd,suppressLeadingAndTrailingTrivia:()=>zQ,suppressLeadingTrivia:()=>$Q,suppressTrailingTrivia:()=>VQ,symbolEscapedNameNoDefault:()=>VY,symbolName:()=>Mc,symbolNameNoDefault:()=>$Y,symbolPart:()=>aQ,symbolToDisplayParts:()=>wQ,syntaxMayBeASICandidate:()=>TG,syntaxRequiresTrailingSemicolonOrASI:()=>_Z,sys:()=>xo,sysLog:()=>Po,tagNamesAreEquivalent:()=>iO,takeWhile:()=>En,targetOptionDeclaration:()=>fO,templateObjectHelper:()=>eE,testFormatSettings:()=>nG,textChangeRangeIsUnchanged:()=>fc,textChangeRangeNewSpan:()=>dc,textChanges:()=>upe,textOrKeywordPart:()=>pQ,textPart:()=>mQ,textRangeContainsPositionInclusive:()=>tc,textSpanContainsPosition:()=>ec,textSpanContainsTextSpan:()=>nc,textSpanEnd:()=>Qs,textSpanIntersection:()=>lc,textSpanIntersectsWith:()=>ac,textSpanIntersectsWithPosition:()=>cc,textSpanIntersectsWithTextSpan:()=>oc,textSpanIsEmpty:()=>Zs,textSpanOverlap:()=>ic,textSpanOverlapsWith:()=>rc,textSpansEqual:()=>QY,textToKeywordObj:()=>Ja,timestamp:()=>cr,toArray:()=>ht,toBuilderFileEmit:()=>DU,toBuilderStateFileInfoForMultiEmit:()=>EU,toEditorSettings:()=>w7,toFileNameLowerCase:()=>Dt,toLowerCase:()=>Et,toPath:()=>va,toProgramEmitPending:()=>NU,tokenIsIdentifierOrKeyword:()=>rs,tokenIsIdentifierOrKeywordOrGreaterThan:()=>is,tokenToString:()=>ss,trace:()=>NL,tracing:()=>Br,tracingEnabled:()=>Jr,transform:()=>J7,transformClassFields:()=>Cz,transformDeclarations:()=>E$,transformECMAScriptModule:()=>m$,transformES2015:()=>i$,transformES2016:()=>t$,transformES2017:()=>Oz,transformES2018:()=>Rz,transformES2019:()=>Bz,transformES2020:()=>zz,transformES2021:()=>Vz,transformES5:()=>a$,transformESDecorators:()=>Fz,transformESNext:()=>Uz,transformGenerators:()=>c$,transformJsx:()=>Zz,transformLegacyDecorators:()=>Az,transformModule:()=>_$,transformNamedEvaluation:()=>mz,transformNodeModule:()=>h$,transformNodes:()=>z$,transformSystemModule:()=>f$,transformTypeScript:()=>kz,transpile:()=>R1,transpileModule:()=>L1,transpileOptionValueCompilerOptions:()=>kO,trimString:()=>h,trimStringEnd:()=>y,trimStringStart:()=>v,tryAddToSet:()=>oe,tryAndIgnoreErrors:()=>yZ,tryCast:()=>bt,tryDirectoryExists:()=>hZ,tryExtractTSExtension:()=>ux,tryFileExists:()=>gZ,tryGetClassExtendingExpressionWithTypeArguments:()=>qb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Wb,tryGetDirectories:()=>pZ,tryGetExtensionFromPath:()=>_T,tryGetImportFromModuleSpecifier:()=>bh,tryGetJSDocSatisfiesTypeNode:()=>lC,tryGetModuleNameFromFile:()=>vF,tryGetModuleSpecifierFromDeclaration:()=>yh,tryGetNativePerformanceHooks:()=>_r,tryGetPropertyAccessOrIdentifierToString:()=>nx,tryGetPropertyNameOfBindingOrAssignmentElement:()=>TF,tryGetSourceMappingURL:()=>YB,tryGetTextOfPropertyName:()=>Vp,tryIOAndConsumeErrors:()=>vZ,tryParsePattern:()=>iT,tryParsePatterns:()=>oT,tryParseRawSourceMap:()=>eJ,tryReadDirectory:()=>mZ,tryReadFile:()=>mM,tryRemoveDirectoryPrefix:()=>Nk,tryRemoveExtension:()=>tT,tryRemovePrefix:()=>mn,tryRemoveSuffix:()=>tn,typeAcquisitionDeclarations:()=>wO,typeAliasNamePart:()=>gQ,typeDirectiveIsEqualTo:()=>Nf,typeKeywords:()=>vG,typeParameterNamePart:()=>hQ,typeReferenceResolutionNameAndModeGetter:()=>qV,typeToDisplayParts:()=>CQ,unchangedPollThresholds:()=>ho,unchangedTextChangeRange:()=>Us,unescapeLeadingUnderscores:()=>Fc,unmangleScopedPackageName:()=>nj,unorderedRemoveItem:()=>cn,unorderedRemoveItemAt:()=>sn,unreachableCodeIsError:()=>nk,unusedLabelIsError:()=>rk,unwrapInnermostStatementOfLabel:()=>Rm,updateErrorForNoInputFiles:()=>WM,updateLanguageServiceSourceFile:()=>I7,updateMissingFilePathsWatch:()=>AV,updatePackageJsonWatch:()=>NV,updateResolutionField:()=>BL,updateSharedExtendedConfigFileWatcher:()=>wV,updateSourceFile:()=>GI,updateWatchingWildcardDirectories:()=>PV,usesExtensionsOnImports:()=>Gk,usingSingleLineStringWriter:()=>yf,utf16EncodeAsString:()=>Ks,validateLocaleAndSetLanguage:()=>wc,valuesHelper:()=>oE,version:()=>t,versionMajorMinor:()=>e,visitArray:()=>OB,visitCommaListElements:()=>zB,visitEachChild:()=>$B,visitFunctionBody:()=>BB,visitIterationBody:()=>JB,visitLexicalEnvironment:()=>LB,visitNode:()=>FB,visitNodes:()=>IB,visitParameterList:()=>RB,walkUpBindingElementsAndPatterns:()=>bc,walkUpLexicalEnvironments:()=>BJ,walkUpOuterExpressions:()=>uF,walkUpParenthesizedExpressions:()=>Zh,walkUpParenthesizedTypes:()=>Qh,walkUpParenthesizedTypesAndGetParentAndChild:()=>ey,whitespaceOrMapCommentRegExp:()=>qB,writeCommentRange:()=>fb,writeFile:()=>$v,writeFileEnsuringDirectories:()=>Kv,zipToModeAwareCache:()=>rR,zipWith:()=>P});var Ege,Dge,Nge=S({"src/typescript/_namespaces/ts.ts"(){gH(),pG(),hge(),Cge()}});return(Ege={"src/typescript/typescript.ts"(e,t){Nge(),Nge(),"undefined"!=typeof console&&(Fn.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}}),t.exports=wge}},function(){return Dge||(0,Ege[x(Ege)[0]])((Dge={exports:{}}).exports,Dge),Dge.exports})()})();e.exports&&(e.exports=o)},8911:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=8911,e.exports=t},2266:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.COMPILER_VERSION=void 0,i(n(6581),t);var o=n(6258);Object.defineProperty(t,"COMPILER_VERSION",{enumerable:!0,get:function(){return o.COMPILER_VERSION}}),n(7696)},7696:function(e,t,n){"use strict";var r,i,o,a,s,c,l,u,_,d,f,p,m,g,h,y,v=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const b=v(n(651)),x=()=>{},S=async()=>{};null!==(r=b.default.copy)&&void 0!==r||(b.default.copy=S),null!==(i=b.default.copySync)&&void 0!==i||(b.default.copySync=x),null!==(o=b.default.existsSync)&&void 0!==o||(b.default.existsSync=()=>!1),null!==(a=b.default.outputFile)&&void 0!==a||(b.default.outputFile=S),null!==(s=b.default.outputFileSync)&&void 0!==s||(b.default.outputFileSync=x),null!==(c=b.default.pathExists)&&void 0!==c||(b.default.pathExists=async()=>!1),null!==(l=b.default.pathExistsSync)&&void 0!==l||(b.default.pathExistsSync=()=>!1),null!==(u=b.default.readdir)&&void 0!==u||(b.default.readdir=async()=>[]),null!==(_=b.default.readdirSync)&&void 0!==_||(b.default.readdirSync=()=>[]),null!==(d=b.default.readFileSync)&&void 0!==d||(b.default.readFileSync=()=>Buffer.from("")),null!==(f=b.default.readJson)&&void 0!==f||(b.default.readJson=S),null!==(p=b.default.readJSONSync)&&void 0!==p||(b.default.readJSONSync=x),null!==(m=b.default.realpathSync)&&void 0!==m||(b.default.realpathSync=e=>e),null!==(g=b.default.removeSync)&&void 0!==g||(b.default.removeSync=x),null!==(h=b.default.stat)&&void 0!==h||(b.default.stat=()=>({})),null!==(y=b.default.statSync)&&void 0!==y||(b.default.statSync=()=>({}))},440:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualFileSystem=t.pathJoin=t.PATH_SEP=void 0;const r=n(2287),i=n(2991);function o(...e){let n=e[0];for(let r=1;re.length>0))}writeFile(e,t){const n=this.getPathParts(e),o=n.pop();let a=this.root;for(const e of n){const t=(0,i.getOrSetDefault)(a.children,e,(()=>({name:e,children:new Map})));(0,r.assert)("children"in t),a=t}a.children.set(o,{name:o,content:t})}get(e){const t=this.getPathParts(e),n=t.pop();let r=this.root;for(const e of t){const t=r.children.get(e);if(!t)return;if(!("children"in t))return;r=t}return r.children.get(n)}readFile(e){const t=this.get(e);if(t&&"content"in t)return t.content}fileExists(e){const t=this.get(e);return void 0!==t&&"content"in t}directoryExists(e){const t=this.get(e);return void 0!==t&&"children"in t}getDirectories(e){const t=new Array,n=this.get(e);if(n&&"children"in n)for(const[r,i]of n.children)"children"in i&&t.push(o(e,r));return t}getFilePaths(){const e=new Array,t=(n,r="")=>{for(const[i,o]of n.children)"children"in o?t(o,`${r}/${i}`):e.push(`${r}/${i}`)};return t(this.root),e}}},1614:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualProject=void 0;const i=n(9861),o=n(1979),a=n(440),s=n(9665),c=n(2179),l=n(421),u=n(6258),_=n(7783),d=n(2287),f=n(7856),p=n(3115),m=n(4502),g=n(4567),h=r(n(2137)),y=a.PATH_SEP,v=(0,a.pathJoin)(y,"src"),b=(0,a.pathJoin)(y,"out"),x=(0,a.pathJoin)(v,"playground.tsx"),S=(0,a.pathJoin)(y,u.NODE_MODULES),k=(0,a.pathJoin)(S,u.RBXTS_SCOPE),T=(0,a.pathJoin)(y,"include");t.VirtualProject=class{constructor(){this.nodeModulesPathMapping=new Map,this.data={isPackage:!1,nodeModulesPath:S,projectOptions:Object.assign({},u.DEFAULT_PROJECT_OPTIONS,{rojo:"",type:u.ProjectType.Model,optimizedLoops:!0}),projectPath:y,rojoConfigPath:void 0,tsConfigPath:""},this.compilerOptions={allowSyntheticDefaultImports:!0,downlevelIteration:!0,noLib:!0,strict:!0,target:h.default.ScriptTarget.ESNext,module:h.default.ModuleKind.CommonJS,moduleResolution:h.default.ModuleResolutionKind.Node10,moduleDetection:h.default.ModuleDetectionKind.Force,typeRoots:[k],resolveJsonModule:!0,experimentalDecorators:!0,rootDir:v,outDir:b,jsx:h.default.JsxEmit.React,jsxFactory:"Roact.createElement",jsxFragmentFactory:"Roact.createFragment"},(0,s.validateCompilerOptions)(this.compilerOptions,this.data.nodeModulesPath),this.vfs=new a.VirtualFileSystem;this.compilerHost=h.default.createCompilerHostWorker(this.compilerOptions,void 0,{getExecutingFilePath:()=>"/index.js",getCurrentDirectory:()=>"/"}),this.compilerHost.readFile=e=>this.vfs.readFile(e),this.compilerHost.fileExists=e=>this.vfs.fileExists(e),this.compilerHost.directoryExists=e=>this.vfs.directoryExists(e),this.compilerHost.getDirectories=e=>this.vfs.getDirectories(e),this.compilerHost.useCaseSensitiveFileNames=()=>!0,this.compilerHost.getCurrentDirectory=()=>a.PATH_SEP,this.rojoResolver=o.RojoResolver.fromTree(y,{$path:b,include:{$path:T,node_modules:{$className:"Folder","@rbxts":{$path:k}}}}),this.pkgRojoResolvers=this.compilerOptions.typeRoots.map(o.RojoResolver.synthetic)}compileSource(e){this.vfs.writeFile(x,e);const t=this.vfs.getFilePaths().filter((e=>e.endsWith(h.default.Extension.Ts)||e.endsWith(h.default.Extension.Tsx)||e.endsWith(h.default.Extension.Dts)));this.program=h.default.createProgram(t,this.compilerOptions,this.compilerHost,this.program),this.typeChecker=this.program.getTypeChecker();const n=(0,g.createTransformServices)(this.program,this.typeChecker,this.data),r=new l.PathTranslator(v,b,void 0,!1),o=this.program.getSourceFile(x);(0,d.assert)(o);const a=new Array;if(a.push(...h.default.getPreEmitDiagnostics(this.program,o)),a.push(...(0,c.getCustomPreEmitDiagnostics)(this.data,o)),(0,f.hasErrors)(a))throw new _.DiagnosticError(a);const s=new p.MultiTransformState,u=this.data.projectOptions.type,y=new p.TransformState(this.program,this.data,n,r,s,this.compilerOptions,this.rojoResolver,this.pkgRojoResolvers,this.nodeModulesPathMapping,new Map,void 0,this.typeChecker,u,o),S=(0,p.transformSourceFile)(y,o);if(a.push(...m.DiagnosticService.flush()),(0,f.hasErrors)(a))throw new _.DiagnosticError(a);return(0,i.renderAST)(S)}setMapping(e,t){this.nodeModulesPathMapping.set(e,t)}}},4141:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.cleanup=void 0;const i=r(n(651)),o=r(n(6470)),a=n(3710);function s(e,t){if(i.default.pathExistsSync(t))for(const n of i.default.readdirSync(t)){const r=o.default.join(t,n);if(i.default.statSync(r).isDirectory()){if(".git"===n)continue;s(e,r)}(0,a.tryRemoveOutput)(e,r)}}t.cleanup=function(e){const t=e.outDir;i.default.pathExistsSync(t)&&s(e,t)}},648:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createProgramFactory=void 0;const i=r(n(651)),o=n(1627),a=n(6258),s=n(2287),c=r(n(2137));t.createProgramFactory=function(e,t){return(n,r=t,l=function(e,t){var n;const r=c.default.createIncrementalCompilerHost(t);let o="";o+=`version=${a.COMPILER_VERSION},`,o+=`type=${String(e.projectOptions.type)},`,o+=`isPackage=${String(e.isPackage)},`,o+=`plugins=${JSON.stringify(null!==(n=t.plugins)&&void 0!==n?n:[])},`,e.rojoConfigPath&&i.default.existsSync(e.rojoConfigPath)&&(o+=i.default.readFileSync(e.rojoConfigPath).toString()),(0,s.assert)(r.createHash);const l=r.createHash;return r.createHash=e=>l(o+e),r}(e,t),u=c.default.readBuilderProgram(t,(0,o.createReadBuildProgramHost)()))=>c.default.createEmitAndSemanticDiagnosticsBuilderProgram(n,r,l,u)}},2230:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createProjectData=void 0;const i=n(1979),o=r(n(651)),a=r(n(6470)),s=n(761),c=n(6258),l=n(3333),u=r(n(2137)),_=/^@[a-z0-9-]*\//;t.createProjectData=function(e,t){var n;const r=a.default.dirname(e),d=u.default.findPackageJson(r,u.default.sys);if(!d)throw new l.ProjectError("Unable to find package.json");let f=!1;try{const e=JSON.parse(o.default.readFileSync(d).toString());f=_.test(null!==(n=e.name)&&void 0!==n?n:"")}catch(e){}t.includePath=a.default.resolve(t.includePath||a.default.join(r,"include"));const p=a.default.join(a.default.dirname(d),c.NODE_MODULES);let m;if(t.rojo)m=a.default.resolve(t.rojo);else{const{path:e,warnings:t}=i.RojoResolver.findRojoConfigFilePath(r);m=e;for(const e of t)s.LogService.warn(e)}return{tsConfigPath:e,isPackage:f,nodeModulesPath:p,projectOptions:t,projectPath:r,rojoConfigPath:m}}},6020:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProjectProgram=void 0;const r=n(648),i=n(5607);t.createProjectProgram=function(e,t){const{fileNames:n,options:o}=(0,i.getParsedCommandLine)(e);return(0,r.createProgramFactory)(e,o)(n,o,t)}},5607:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedCommandLine=void 0;const i=r(n(651)),o=n(9665),a=n(7783),s=n(3333),c=r(n(2137));t.getParsedCommandLine=function(e){const t=c.default.getParsedCommandLineOfConfigFile(e.tsConfigPath,{},{fileExists:c.default.sys.fileExists,getCurrentDirectory:c.default.sys.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:e=>{throw new a.DiagnosticError([e])},readDirectory:c.default.sys.readDirectory,readFile:c.default.sys.readFile,useCaseSensitiveFileNames:c.default.sys.useCaseSensitiveFileNames});if(void 0===t)throw new s.ProjectError("Unable to load TS program!");if(t.errors.length>0)throw new a.DiagnosticError(t.errors);return(globalThis.RBXTSC_DEV||void 0!==i.default.url())&&(t.options.incremental=!1,t.options.tsBuildInfoFile=void 0),(0,o.validateCompilerOptions)(t.options,e.nodeModulesPath),t}},3710:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.tryRemoveOutput=void 0;const i=r(n(651)),o=n(761),a=n(6258);t.tryRemoveOutput=function(e,t){(function(e,t){if(t.endsWith(a.DTS_EXT)&&!e.declaration)return!0;for(const n of e.getInputPaths(t))if(i.default.pathExistsSync(n))return!1;return e.buildInfoOutputPath!==t})(e,t)&&(i.default.removeSync(t),o.LogService.writeLineIfVerbose(`remove ${t}`))}},9665:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateCompilerOptions=void 0;const i=r(n(1391)),o=r(n(6470)),a=n(6258),s=n(3333),c=r(n(2137)),l=(c.default.ScriptTarget.ESNext,c.default.ModuleKind.CommonJS),u=c.default.ModuleDetectionKind.Force,_=c.default.ModuleResolutionKind.Node10;function d(e){return i.default.yellow(e)}t.validateCompilerOptions=function(e,t){const n=new Array;true!==e.noLib&&n.push(`${d('"noLib"')} must be ${d("true")}`),true!==e.strict&&n.push(`${d('"strict"')} must be ${d("true")}`),e.target,e.module!==l&&n.push(`${d('"module"')} must be ${d("commonjs")}`),e.moduleDetection!==u&&n.push(`${d('"moduleDetection"')} must be ${d('"force"')}`),e.moduleResolution!==_&&n.push(`${d('"moduleResolution"')} must be ${d('"Node"')}`),true!==e.allowSyntheticDefaultImports&&n.push(`${d('"allowSyntheticDefaultImports"')} must be ${d("true")}`);const r=o.default.join(t,a.RBXTS_SCOPE);if(void 0!==e.typeRoots&&function(e,t){const n=o.default.resolve(e);for(const e of t)if(o.default.resolve(e)===n)return!0;return!1}(r,e.typeRoots)||n.push(`${d('"typeRoots"')} must contain ${d(r)}`),void 0===e.rootDir&&void 0===e.rootDirs&&n.push(`${d('"rootDir"')} or ${d('"rootDirs"')} must be defined`),void 0===e.outDir&&n.push(`${d('"outDir"')} must be defined`),n.length>0)throw new s.ProjectError(['Invalid "tsconfig.json" configuration!',"https://roblox-ts.com/docs/quick-start#project-folder-setup",n.map((e=>`- ${e}\n`)).join("")].join("\n"))}},6581:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1614),t),i(n(4141),t),i(n(2230),t),i(n(6020),t)},8405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileUsesCommentDirectives=void 0;const r=n(7370);t.fileUsesCommentDirectives=function(e,t){var n;if(e.projectOptions.allowCommentDirectives)return[];const i=new Array;for(const e of null!==(n=t.commentDirectives)&&void 0!==n?n:[])i.push(r.errors.noCommentDirectives({sourceFile:t,range:e.range}));const o=t.pragmas.get("ts-nocheck");if(o)for(const e of Array.isArray(o)?o:[o])i.push(r.errors.noCommentDirectives({sourceFile:t,range:e.range}));return i}},1627:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createReadBuildProgramHost=void 0;const i=r(n(2137));t.createReadBuildProgramHost=function(){return{getCurrentDirectory:i.default.sys.getCurrentDirectory,readFile:i.default.sys.readFile,useCaseSensitiveFileNames:()=>i.default.sys.useCaseSensitiveFileNames}}},2179:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomPreEmitDiagnostics=void 0;const r=[n(8405).fileUsesCommentDirectives];t.getCustomPreEmitDiagnostics=function(e,t){const n=new Array;for(const i of r)n.push(...i(e,t));return n}},1164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lazy=void 0,t.Lazy=class{constructor(e){this.getValue=e,this.isInitialized=!1}get(){return this.isInitialized||(this.isInitialized=!0,this.value=this.getValue()),this.value}set(e){this.isInitialized=!0,this.value=e}}},761:function(e,t,n){"use strict";var r=n(4155),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;const o=i(n(1391));class a{static write(e){this.partial=!e.endsWith("\n"),r.stdout.write(e)}static writeLine(...e){this.partial&&this.write("\n");for(const t of e)this.write(t+"\n")}static writeLineIfVerbose(...e){this.verbose&&this.writeLine(...e)}static warn(e){this.writeLine(`${o.default.yellow("Compiler Warning:")} ${e}`)}}t.LogService=a,a.verbose=!1,a.partial=!1},421:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PathTranslator=void 0;const i=r(n(6470)),o=n(6258),a=n(2287);class s{constructor(e,t,n){this.dirName=e,this.fileName=t,this.exts=n}static from(e){const t=i.default.dirname(e),n=e.slice(t.length+i.default.sep.length).split("."),r=n.shift(),o=n.map((e=>"."+e));return(0,a.assert)(void 0!==r),new s(t,r,o)}extsPeek(e=0){return this.exts[this.exts.length-(e+1)]}join(){return i.default.join(this.dirName,[this.fileName,...this.exts].join(""))}}t.PathTranslator=class{constructor(e,t,n,r){this.rootDir=e,this.outDir=t,this.buildInfoOutputPath=n,this.declaration=r}makeRelativeFactory(e=this.rootDir,t=this.outDir){return n=>i.default.join(t,i.default.relative(e,n.join()))}getOutputPath(e){const t=this.makeRelativeFactory(),n=s.from(e);return n.extsPeek()!==o.TS_EXT&&n.extsPeek()!==o.TSX_EXT||n.extsPeek(1)===o.D_EXT||(n.exts.pop(),n.fileName===o.INDEX_NAME&&(n.fileName=o.INIT_NAME),n.exts.push(o.LUA_EXT)),t(n)}getOutputDeclarationPath(e){const t=this.makeRelativeFactory(),n=s.from(e);return n.extsPeek()!==o.TS_EXT&&n.extsPeek()!==o.TSX_EXT||n.extsPeek(1)===o.D_EXT||(n.exts.pop(),n.exts.push(o.DTS_EXT)),t(n)}getOutputTransformedPath(e){const t=this.makeRelativeFactory(),n=s.from(e);return n.extsPeek(1)===o.D_EXT?n.exts.splice(n.exts.length-2,0,o.TRANSFORMED_EXT):n.exts.splice(n.exts.length-1,0,o.TRANSFORMED_EXT),t(n)}getInputPaths(e){const t=this.makeRelativeFactory(this.outDir,this.rootDir),n=new Array,r=s.from(e);if(r.extsPeek()===o.LUA_EXT&&r.fileName!==o.INDEX_NAME){if(r.exts.pop(),r.exts.push(o.TS_EXT),n.push(t(r)),r.exts.pop(),r.exts.push(o.TSX_EXT),n.push(t(r)),r.exts.pop(),r.fileName===o.INIT_NAME){const e=r.fileName;r.fileName=o.INDEX_NAME,r.exts.push(o.TS_EXT),n.push(t(r)),r.exts.pop(),r.exts.push(o.TSX_EXT),n.push(t(r)),r.exts.pop(),r.fileName=e}r.exts.push(o.LUA_EXT)}if(this.declaration&&(r.extsPeek()===o.TS_EXT||r.extsPeek()===o.TSX_EXT)&&r.extsPeek(1)===o.D_EXT){const e=r.exts.pop();(0,a.assert)(e),r.exts.pop(),r.exts.push(o.TS_EXT),n.push(t(r)),r.exts.pop(),r.exts.push(o.TSX_EXT),n.push(t(r)),r.exts.pop(),r.exts.push(o.D_EXT),r.exts.push(e)}return n.push(t(r)),n}getImportPath(e,t=!1){const n=this.makeRelativeFactory(),r=s.from(e);return r.extsPeek()!==o.TS_EXT&&r.extsPeek()!==o.TSX_EXT||(r.exts.pop(),r.extsPeek()===o.D_EXT&&r.exts.pop(),r.fileName===o.INDEX_NAME&&(r.fileName=o.INIT_NAME),r.exts.push(o.LUA_EXT)),t?r.join():n(r)}}},6258:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PROJECT_OPTIONS=t.ProjectType=t.PARENT_FIELD=t.FILENAME_WARNINGS=t.MODULE_SUBEXT=t.CLIENT_SUBEXT=t.SERVER_SUBEXT=t.INIT_NAME=t.INDEX_NAME=t.JSON_EXT=t.LUA_EXT=t.TRANSFORMED_EXT=t.DTS_EXT=t.D_EXT=t.TSX_EXT=t.TS_EXT=t.RBXTS_SCOPE=t.NODE_MODULES=t.COMPILER_VERSION=t.INCLUDE_PATH=t.PACKAGE_ROOT=void 0;const i=r(n(6470));t.PACKAGE_ROOT=i.default.join("/","..",".."),t.INCLUDE_PATH=i.default.join(t.PACKAGE_ROOT,"include"),t.COMPILER_VERSION=n(5402).version,t.NODE_MODULES="node_modules",t.RBXTS_SCOPE="@rbxts",t.TS_EXT=".ts",t.TSX_EXT=".tsx",t.D_EXT=".d",t.DTS_EXT=t.D_EXT+t.TS_EXT,t.TRANSFORMED_EXT=".transformed",t.LUA_EXT=".lua",t.JSON_EXT=".json",t.INDEX_NAME="index",t.INIT_NAME="init",t.SERVER_SUBEXT=".server",t.CLIENT_SUBEXT=".client",t.MODULE_SUBEXT="",t.FILENAME_WARNINGS=new Map;for(const e of[t.SERVER_SUBEXT,t.CLIENT_SUBEXT,t.MODULE_SUBEXT])for(const n of[t.TS_EXT,t.TSX_EXT,t.DTS_EXT])t.FILENAME_WARNINGS.set(t.INIT_NAME+e+n,t.INDEX_NAME+e+n);var o;t.PARENT_FIELD="Parent",function(e){e.Game="game",e.Model="model",e.Package="package"}(o||(t.ProjectType=o={})),t.DEFAULT_PROJECT_OPTIONS={includePath:"",rojo:void 0,type:void 0,watch:!1,usePolling:!1,verbose:!1,noInclude:!1,logTruthyChanges:!1,writeOnlyChanged:!1,writeTransformedFiles:!1,optimizedLoops:!1,allowCommentDirectives:!1}},7370:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.warnings=t.errors=t.getDiagnosticId=void 0;const i=r(n(1391)),o=n(8597),a=n(9889),s=r(n(2137));function c(e){return"Suggestion: "+i.default.yellow(e)}function l(e){return"More information: "+i.default.grey(`https://github.com/roblox-ts/roblox-ts/issues/${e}`)}let u=0;function _(e,...t){return d(e,void 0,...t)}function d(e,t,...n){const r=(i,...a)=>(s.default.DiagnosticCategory.Error,t&&n.push(...t(...a)),(0,o.createDiagnosticWithLocation)(r.id,n.filter((e=>!1!==e)).join("\n"),e,i));return r.id=u++,r}function f(e,...t){return(0,a.createTextDiagnostic)(t.filter((e=>!1!==e)).join("\n"),e)}function p(...e){return _(s.default.DiagnosticCategory.Error,...e)}function m(e,...t){return d(s.default.DiagnosticCategory.Error,e,...t)}function g(...e){return f(s.default.DiagnosticCategory.Error,...e)}function h(...e){return _(s.default.DiagnosticCategory.Warning,...e)}t.getDiagnosticId=function(e){return e.id},t.errors={noInvalidIdentifier:p("Invalid Luau identifier!","Luau identifiers must start with a letter and only contain letters, numbers, and underscores.","Reserved Luau keywords cannot be used as identifiers."),noReservedIdentifier:p("Cannot use identifier reserved for compiler internal usage."),noReservedClassFields:p("Cannot use class field reserved for compiler internal usage."),noClassMetamethods:p("Metamethods cannot be used in class definitions!"),noForInStatement:p("for-in loop statements are not supported!"),noLabeledStatement:p("labels are not supported!"),noDebuggerStatement:p("`debugger` is not supported!"),noNullLiteral:p("`null` is not supported!",c("Use `undefined` instead.")),noPrivateIdentifier:p("Private identifiers are not supported!"),noTypeOfExpression:p("`typeof` operator is not supported!",c("Use `typeIs(value, type)` or `typeOf(value)` instead.")),noRegex:p("Regular expressions are not supported!"),noBigInt:p("BigInt literals are not supported!"),noAny:p("Using values of type `any` is not supported!",c("Use `unknown` instead.")),noVar:p("`var` keyword is not supported!",c("Use `let` or `const` instead.")),noGetterSetter:p("Getters and Setters are not supported!",l(457)),noAutoAccessorModifiers:p("Getters and Setters are not supported!","The `accessor` keyword requires generating get/set accessors",l(457)),noEqualsEquals:p("operator `==` is not supported!",c("Use `===` instead.")),noExclamationEquals:p("operator `!=` is not supported!",c("Use `!==` instead.")),noEnumMerging:p("Enum merging is not supported!"),noNamespaceMerging:p("Namespace merging is not supported!"),noSpreadDestructuring:p("Operator `...` is not supported for destructuring!"),noFunctionExpressionName:p("Function expression names are not supported!"),noPrecedingSpreadElement:p("Spread element must come last in a list of arguments!"),noLuaTupleDestructureAssignmentExpression:p("Cannot destructure LuaTuple expression outside of an ExpressionStatement!"),noExportAssignmentLet:p("Cannot use `export =` on a `let` variable!",c("Use `const` instead.")),noGlobalThis:p("`globalThis` is not supported!"),noArguments:p("`arguments` is not supported!"),noPrototype:p("`prototype` is not supported!"),noSuperProperty:p("super properties are not supported!"),noRobloxSymbolInstanceof:p("The `instanceof` operator can only be used on roblox-ts classes!",c('Use `typeIs(myThing, "TypeToCheck") instead')),noNonNumberStringRelationOperator:p("Relation operators can only be used on number or string types!"),noInstanceMethodCollisions:p("Static methods cannot use the same name as instance methods!"),noStaticMethodCollisions:p("Instance methods cannot use the same name as static methods!"),noUnaryPlus:p("Unary `+` is not supported!",c("Use `tonumber(x)` instead.")),noNonNumberUnaryMinus:p("Unary `-` is only supported for number types!"),noAwaitForOf:p("`await` is not supported in for-of loops!"),noAsyncGeneratorFunctions:p("Async generator functions are not supported!"),noNonStringModuleSpecifier:p("Module specifiers must be a string literal."),noIterableIteration:p("Iterating on Iterable is not supported! You must use a more specific type."),noLuaTupleInTemplateExpression:p("Can't use LuaTuple in a template literal expression!",c("Did you mean to add `[0]`?")),noMixedTypeCall:p("Attempted to call a function with mixed types! All definitions must either be a method or a callback."),noIndexWithoutCall:p("Cannot index a method without calling it!",c("Use the form `() => a.b()` instead of `a.b`.")),noCommentDirectives:p("Usage of `@ts-ignore`, `@ts-expect-error`, and `@ts-nocheck` are not supported!","roblox-ts needs type and symbol info to compile correctly.",c("Consider using type assertions or `declare` statements.")),noOptionalMacroCall:p("Macro methods can not be optionally called!",c("Macros always exist. Use a normal call.")),noConstructorMacroWithoutNew:p("Cannot index a constructor macro without using the `new` operator!"),noMacroExtends:p("Cannot extend from a macro class!"),noMacroUnion:p("Macro cannot be applied to a union type!"),noMacroObjectSpread:p("Macro classes cannot be used in an object spread!",c("Did you mean to use an array spread? `[ ...exp ]`")),noVarArgsMacroSpread:p("Macros which use variadric arguments do not support spread expressions!",l(1149)),noRangeMacroOutsideForOf:p("$range() macro is only valid as an expression of a for-of loop!"),noTupleMacroOutsideReturn:p("$tuple() macro is only valid as an expression of a return statement!"),noModuleSpecifierFile:p("Could not find file for import. Did you forget to `npm install`?"),noInvalidModule:p("You can only use npm scopes that are listed in your typeRoots."),noUnscopedModule:p("You cannot use modules directly under node_modules."),noNonModuleImport:p("Cannot import a non-ModuleScript!"),noIsolatedImport:p("Attempted to import a file inside of an isolated container from outside!"),noServerImport:p("Cannot import a server file from a shared or client location!",c("Move the file you want to import to a shared location.")),invalidJsxFactory:p("compilerOptions.jsxFactory must be `Roact.createElement`!"),invalidJsxFragmentFactory:p("compilerOptions.jsxFragmentFactory must be `Roact.createFragment`!"),noRoactInheritance:p("Composition is preferred over inheritance with Roact components.","More info: https://reactjs.org/docs/composition-vs-inheritance.html"),noSuperPropertyCallRoactComponent:p("`super` is not supported inside Roact components!"),missingSuperConstructorRoactComponent:p("`super(props)` must be the first statement of the constructor in a Roact component!"),noJsxText:p("JSX text is not supported!"),expectedMethodGotFunction:p("Attempted to assign non-method where method was expected."),expectedFunctionGotMethod:p("Attempted to assign method where non-method was expected."),noRojoData:m(((e,t)=>[`Could not find Rojo data. There is no $path in your Rojo config that covers ${e}`,t&&c("Did you forget to add a custom npm scope to your default.project.json?")])),noPackageImportWithoutScope:m(((e,t)=>["Imported package Roblox path is missing an npm scope!",`Package path: ${e}`,`Roblox path: ${t.join(".")}`,c('You might need to update your "node_modules" in default.project.json to match:\n"node_modules": {\n\t"$className": "Folder",\n\t"@rbxts": {\n\t\t"$path": "node_modules/@rbxts"\n\t}\n}')])),incorrectFileName:(e,t,n)=>g(`Incorrect file name: \`${e}\`!`,`Full path: ${n}`,c(`Change \`${e}\` to \`${t}\`.`)),rojoPathInSrc:(e,t)=>g("Invalid Rojo configuration. $path fields should be relative to out directory.",c(`Change the value of $path from "${e}" to "${t}".`))},t.warnings={truthyChange:e=>h(`Value will be checked against ${e}`),stringOffsetChange:e=>h(`String macros no longer offset inputs: ${e}`),transformerNotFound:(e,t)=>function(...e){return f(s.default.DiagnosticCategory.Warning,...e)}(`Transformer \`${e}\` was not found!`,"More info: "+t,c("Did you forget to install the package?")),runtimeLibUsedInReplicatedFirst:h("This statement would generate a call to the runtime library. The runtime library should not be used from ReplicatedFirst.")}},7783:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticError=void 0;const r=n(779),i=n(8301);class o extends r.LoggableError{constructor(e){super(),this.diagnostics=e}toString(){return(0,i.formatDiagnostics)(this.diagnostics)}}t.DiagnosticError=o},779:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggableError=void 0;const r=n(761);t.LoggableError=class{constructor(){}log(){r.LogService.writeLine(this.toString())}}},3333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProjectError=void 0;const r=n(7783),i=n(9889);class o extends r.DiagnosticError{constructor(e){super([(0,i.createTextDiagnostic)(e)])}}t.ProjectError=o},2287:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(`Assertion Failed! ${null!=t?t:""}\nThis is a compiler bug! Please submit a bug report here:\nhttps://github.com/roblox-ts/roblox-ts/issues`)}},5568:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.assertNever=void 0;const i=r(n(2137));t.assertNever=function(e,t){throw new Error(`Exhaustiveness Assertion Failed! ${t}, value was ${i.default.isNode(e)?e.kind:e}\nThis is usually caused by a TypeScript version mismatch.\nMake sure that all TS versions in your project are the same.\nYou can check the list of installed versions with \`npm list typescript\``)}},8597:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDiagnosticWithLocation=void 0,t.createDiagnosticWithLocation=function(e,t,n,r){const i=" roblox-ts";return"kind"in r?{category:n,code:i,messageText:t,diagnosticType:0,id:e,file:r.getSourceFile(),start:r.getStart(),length:r.getWidth()}:{category:n,code:i,messageText:t,diagnosticType:0,id:e,file:r.sourceFile,start:r.range.pos,length:r.range.end}}},9889:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createTextDiagnostic=void 0;const i=r(n(2137));t.createTextDiagnostic=function(e,t=i.default.DiagnosticCategory.Error){return{category:t,code:" roblox-ts",file:void 0,messageText:e,start:void 0,length:void 0}}},2532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findLastIndex=void 0,t.findLastIndex=function(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return n;return-1}},8301:function(e,t,n){"use strict";var r=n(4155),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatDiagnostics=void 0;const o=n(7435),a=i(n(2137));t.formatDiagnostics=function(e){return a.default.formatDiagnosticsWithColorAndContext(e,{getCurrentDirectory:()=>r.cwd(),getCanonicalFileName:e=>e,getNewLine:()=>o.EOL})}},4998:function(e,t,n){"use strict";var r,i,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCanonicalFileName=void 0;const a=o(n(2137));t.getCanonicalFileName=a.default.createGetCanonicalFileName(null===(i=null===(r=a.default.sys)||void 0===r?void 0:r.useCaseSensitiveFileNames)||void 0===i||i)},2991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOrSetDefault=void 0,t.getOrSetDefault=function(e,t,n){let r=e.get(t);return void 0===r&&(r=n(),e.set(t,r)),r}},7856:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hasErrors=void 0;const i=r(n(2137));t.hasErrors=function(e){return e.some((e=>e.category===i.default.DiagnosticCategory.Error))}},2420:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isPathDescendantOf=void 0;const i=r(n(6470));t.isPathDescendantOf=function(e,t){return t===e||!i.default.relative(t,e).startsWith("..")}},4482:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.realPathExistsSync=void 0;const i=r(n(651));t.realPathExistsSync=function(e){if(i.default.pathExistsSync(e))return i.default.realpathSync(e)}},4502:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticService=void 0;const r=n(7856);class i{static addSingleDiagnostic(e){this.singleDiagnostics.has(e.code)||(this.singleDiagnostics.add(e.code),this.addDiagnostic(e))}static addDiagnostic(e){this.diagnostics.push(e)}static addDiagnostics(e){this.diagnostics.push(...e)}static addDiagnosticWithCache(e,t,n){n.has(e)||(n.add(e),this.addDiagnostic(t))}static flush(){const e=this.diagnostics;return this.diagnostics=[],this.singleDiagnostics.clear(),e}static hasErrors(){return(0,r.hasErrors)(this.diagnostics)}}t.DiagnosticService=i,i.diagnostics=new Array,i.singleDiagnostics=new Set},1677:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MacroManager=t.NOMINAL_LUA_TUPLE_NAME=t.SYMBOL_NAMES=void 0;const i=n(3333),o=n(2287),a=n(6662),s=n(8221),c=n(8503),l=n(153),u=n(6219),_=r(n(2137));function d(e,t){return e.getTypeAtLocation((0,u.skipUpwards)(t))}t.SYMBOL_NAMES={globalThis:"globalThis",ArrayConstructor:"ArrayConstructor",SetConstructor:"SetConstructor",MapConstructor:"MapConstructor",WeakSetConstructor:"WeakSetConstructor",WeakMapConstructor:"WeakMapConstructor",ReadonlyMapConstructor:"ReadonlyMapConstructor",ReadonlySetConstructor:"ReadonlySetConstructor",Array:"Array",Generator:"Generator",IterableFunction:"IterableFunction",LuaTuple:"LuaTuple",Map:"Map",Object:"Object",ReadonlyArray:"ReadonlyArray",ReadonlyMap:"ReadonlyMap",ReadonlySet:"ReadonlySet",ReadVoxelsArray:"ReadVoxelsArray",Set:"Set",String:"String",TemplateStringsArray:"TemplateStringsArray",WeakMap:"WeakMap",WeakSet:"WeakSet",Iterable:"Iterable",$range:"$range",$tuple:"$tuple"},t.NOMINAL_LUA_TUPLE_NAME="_nominal_LuaTuple";const f=new Set([t.SYMBOL_NAMES.ReadonlyArray,t.SYMBOL_NAMES.Array,t.SYMBOL_NAMES.ReadonlyMap,t.SYMBOL_NAMES.WeakMap,t.SYMBOL_NAMES.Map,t.SYMBOL_NAMES.ReadonlySet,t.SYMBOL_NAMES.WeakSet,t.SYMBOL_NAMES.Set,t.SYMBOL_NAMES.String]);function p(e,t){var n;for(const r of null!==(n=e.declarations)&&void 0!==n?n:[])if(t(r))return r;throw new i.ProjectError("")}function m(e,t,n){const r=e.resolveName(t,void 0,n,!1);if(r)return r;throw new i.ProjectError(`MacroManager could not find symbol for ${t}\nYou may need to update your @rbxts/compiler-types!`)}function g(e){for(const t of e.members)if(_.default.isConstructSignatureDeclaration(t))return(0,o.assert)(t.symbol),t.symbol;throw new i.ProjectError(`MacroManager could not find constructor for ${e.name.text}\nYou may need to update your @rbxts/compiler-types!`)}t.MacroManager=class{constructor(e){var n,r,u;this.symbols=new Map,this.identifierMacros=new Map,this.callMacros=new Map,this.constructorMacros=new Map,this.propertyCallMacros=new Map;for(const[t,n]of Object.entries(c.IDENTIFIER_MACROS)){const r=m(e,t,_.default.SymbolFlags.Variable);this.identifierMacros.set(r,n)}for(const[t,n]of Object.entries(a.CALL_MACROS)){const r=m(e,t,_.default.SymbolFlags.Function);this.callMacros.set(r,n)}for(const[t,n]of Object.entries(s.CONSTRUCTOR_MACROS)){const r=g(p(m(e,t,_.default.SymbolFlags.Interface),_.default.isInterfaceDeclaration));this.constructorMacros.set(r,n)}for(const[t,r]of Object.entries(l.PROPERTY_CALL_MACROS)){const a=m(e,t,_.default.SymbolFlags.Interface),s=new Map;for(const t of null!==(n=a.declarations)&&void 0!==n?n:[])if(_.default.isInterfaceDeclaration(t))for(const n of t.members)if(_.default.isMethodSignature(n)&&_.default.isIdentifier(n.name)){const t=d(e,n).symbol;(0,o.assert)(t),s.set(n.name.text,t)}for(const[e,n]of Object.entries(r)){const r=s.get(e);if(!r)throw new i.ProjectError(`MacroManager could not find method for ${t}.${e}\nYou may need to update your @rbxts/compiler-types!`);this.propertyCallMacros.set(r,n)}}for(const n of Object.values(t.SYMBOL_NAMES)){const t=e.resolveName(n,void 0,_.default.SymbolFlags.All,!1);if(!t)throw new i.ProjectError(`MacroManager could not find symbol for ${n}\nYou may need to update your @rbxts/compiler-types!`);this.symbols.set(n,t)}const f=null===(u=null===(r=this.symbols.get(t.SYMBOL_NAMES.LuaTuple))||void 0===r?void 0:r.declarations)||void 0===u?void 0:u.find((e=>_.default.isTypeAliasDeclaration(e)));if(f){const n=e.getTypeAtLocation(f).getProperty(t.NOMINAL_LUA_TUPLE_NAME);n&&this.symbols.set(t.NOMINAL_LUA_TUPLE_NAME,n)}}getSymbolOrThrow(e){const t=this.symbols.get(e);return(0,o.assert)(t),t}isMacroOnlyClass(e){return this.symbols.get(e.name)===e&&f.has(e.name)}getIdentifierMacro(e){return this.identifierMacros.get(e)}getCallMacro(e){return this.callMacros.get(e)}getConstructorMacro(e){return this.constructorMacros.get(e)}getPropertyCallMacro(e){const t=this.propertyCallMacros.get(e);return!t&&e.parent&&this.symbols.get(e.parent.name)===e.parent&&this.isMacroOnlyClass(e.parent)&&(0,o.assert)(!1,`Macro ${e.parent.name}.${e.name}() is not implemented!`),t}}},8570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTransformState=void 0,t.MultiTransformState=class{constructor(){this.isMethodCache=new Map,this.isDefinedAsLetCache=new Map,this.isReportedByNoAnyCache=new Set,this.isReportedByMultipleDefinitionsCache=new Set,this.getModuleExportsCache=new Map,this.getModuleExportsAliasMapCache=new Map}}},3506:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RoactSymbolManager=t.ROACT_SYMBOL_NAMES=void 0;const i=r(n(651)),o=r(n(6470)),a=n(6258),s=n(2287),c=n(4482),l=n(8368),u=r(n(2137));t.ROACT_SYMBOL_NAMES={Component:"Component",PureComponent:"PureComponent",Fragment:"Fragment",Element:"Element"};class _{constructor(e,n){var r,i,o,a;this.symbols=new Map,this.jsxIntrinsicNameMap=new Map;const c=null===(i=null===(r=n.locals)||void 0===r?void 0:r.get(u.default.escapeLeadingUnderscores("Roact")))||void 0===i?void 0:i.valueDeclaration;(0,s.assert)(c);const _=c.symbol.exports;(0,s.assert)(_);for(const n of Object.values(t.ROACT_SYMBOL_NAMES)){const t=_.get(u.default.escapeLeadingUnderscores(n));(0,s.assert)(t),this.symbols.set(n,u.default.skipAlias(t,e))}for(const t of e.getJsxIntrinsicTagNamesAt(n)){(0,s.assert)(t.valueDeclaration&&u.default.isPropertySignature(t.valueDeclaration)),(0,s.assert)(t.valueDeclaration.type&&u.default.isTypeReferenceNode(t.valueDeclaration.type));const n=null===(o=t.valueDeclaration.type.typeArguments)||void 0===o?void 0:o[0].getText();(0,s.assert)(n),this.jsxIntrinsicNameMap.set(u.default.skipAlias(t,e),n)}const d=_.get(u.default.escapeLeadingUnderscores("JsxInstance"));(0,s.assert)(d);const f=null===(a=d.declarations)||void 0===a?void 0:a[0];(0,s.assert)(f);const p=e.getTypeAtLocation(f),m=e.getPropertyOfType(p,l.CHANGE_ATTRIBUTE_NAME);(0,s.assert)(m),this.symbols.set(l.CHANGE_ATTRIBUTE_NAME,u.default.skipAlias(m,e));const g=e.getPropertyOfType(p,l.EVENT_ATTRIBUTE_NAME);(0,s.assert)(g),this.symbols.set(l.EVENT_ATTRIBUTE_NAME,u.default.skipAlias(g,e))}static create(e,t,n){var r,s;const l=o.default.join(e.nodeModulesPath,a.RBXTS_SCOPE,"roact"),u=(0,c.realPathExistsSync)(o.default.join(l,"package.json"));if(void 0!==u){const e=i.default.readJsonSync(u),a=(0,c.realPathExistsSync)(o.default.join(l,null!==(s=null!==(r=e.types)&&void 0!==r?r:e.typings)&&void 0!==s?s:"index.d.ts"));if(void 0!==a){const e=t.getSourceFile(a);if(e)return new _(n,e)}}const d=o.default.join(e.nodeModulesPath,a.RBXTS_SCOPE,"roact","src","index.d.ts"),f=t.getSourceFile(d);if(f)return new _(n,f)}getSymbolOrThrow(e){const t=this.symbols.get(e);return(0,s.assert)(t,`Could not find symbol for ${e}`),t}getIntrinsicElementClassNameFromSymbol(e){return this.jsxIntrinsicNameMap.get(e)}}t.RoactSymbolManager=_},7196:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TransformState=void 0;const s=o(n(9861)),c=n(1979),l=a(n(6470)),u=n(6258),_=n(7370),d=n(2287),f=n(2991),p=n(4502),m=n(8446),g=n(4160),h=n(6219),y=n(2161),v=a(n(2137));t.TransformState=class{debugRender(e){const t=new s.RenderState;return(0,s.solveTempIds)(t,e),(0,s.render)(t,e)}debugRenderList(e){const t=new s.RenderState;return(0,s.solveTempIds)(t,e),(0,s.renderStatements)(t,e)}constructor(e,t,n,r,i,o,a,s,c,l,u,_,d,f){this.program=e,this.data=t,this.services=n,this.pathTranslator=r,this.multiTransformState=i,this.compilerOptions=o,this.rojoResolver=a,this.pkgRojoResolvers=s,this.nodeModulesPathMapping=c,this.reverseSymlinkMap=l,this.runtimeLibRbxPath=u,this.typeChecker=_,this.projectType=d,this.hasExportEquals=!1,this.hasExportFrom=!1,this.classIdentifierMap=new Map,this.tryUsesStack=new Array,this.prereqStatementsStack=new Array,this.hoistsByStatement=new Map,this.isHoisted=new Map,this.getTypeCache=new Map,this.usesRuntimeLib=!1,this.moduleIdBySymbol=new Map,this.symbolToIdMap=new Map,this.classElementToObjectKeyMap=new Map,this.sourceFileText=f.getFullText(),this.resolver=_.getEmitResolver(f);const p=this.pathTranslator.getOutputPath(f.fileName),m=this.rojoResolver.getRbxPathFromFilePath(p);this.isInReplicatedFirst=void 0!==m&&"ReplicatedFirst"===m[0]}pushTryUsesStack(){const e={usesReturn:!1,usesBreak:!1,usesContinue:!1};return this.tryUsesStack.push(e),e}markTryUses(e){0!==this.tryUsesStack.length&&(this.tryUsesStack[this.tryUsesStack.length-1][e]=!0)}popTryUsesStack(){this.tryUsesStack.pop()}prereq(e){s.default.list.push(this.prereqStatementsStack[this.prereqStatementsStack.length-1],e)}prereqList(e){s.default.list.pushList(this.prereqStatementsStack[this.prereqStatementsStack.length-1],e)}pushPrereqStatementsStack(){const e=s.default.list.make();return this.prereqStatementsStack.push(e),e}popPrereqStatementsStack(){const e=this.prereqStatementsStack.pop();return(0,d.assert)(e),e}getLeadingComments(e){var t;const n=null!==(t=v.default.getLeadingCommentRanges(this.sourceFileText,e.pos))&&void 0!==t?t:[];return s.default.list.make(...n.map((e=>s.default.comment(this.sourceFileText.substring(e.pos+2,e.kind===v.default.SyntaxKind.SingleLineCommentTrivia?e.end:e.end-2)))))}capturePrereqs(e){return this.pushPrereqStatementsStack(),e(),this.popPrereqStatementsStack()}capture(e){let t;const n=this.capturePrereqs((()=>t=e()));return[t,n]}noPrereqs(e){let t;const n=this.capturePrereqs((()=>t=e()));return(0,d.assert)(s.default.list.isEmpty(n)),t}getType(e){return(0,f.getOrSetDefault)(this.getTypeCache,e,(()=>this.typeChecker.getTypeAtLocation((0,h.skipUpwards)(e))))}TS(e,t){return this.usesRuntimeLib=!0,this.projectType===u.ProjectType.Game&&this.isInReplicatedFirst&&p.DiagnosticService.addDiagnostic(_.warnings.runtimeLibUsedInReplicatedFirst(e)),s.default.property(s.default.globals.TS,t)}createRuntimeLibImport(e){if(this.runtimeLibRbxPath){if(this.projectType===u.ProjectType.Game){const e=this.runtimeLibRbxPath[0];(0,d.assert)(e);let t=(0,m.createGetService)(e);for(let e=1;ee===c.RbxPathParent?u.PARENT_FIELD:e)))])}):(p.DiagnosticService.addDiagnostic(_.errors.noRojoData(e,l.default.relative(this.data.projectPath,t),!1)),s.default.create(s.default.SyntaxKind.VariableDeclaration,{left:s.default.globals.TS,right:s.default.none()}))}}return s.default.create(s.default.SyntaxKind.VariableDeclaration,{left:s.default.globals.TS,right:s.default.create(s.default.SyntaxKind.ComputedIndexExpression,{expression:s.default.globals._G,index:s.default.globals.script})})}pushToVar(e,t){const n=s.default.tempId(t||e&&(0,y.valueToIdStr)(e));return this.prereq(s.default.create(s.default.SyntaxKind.VariableDeclaration,{left:n,right:e})),n}pushToVarIfComplex(e,t){return s.default.isSimple(e)?e:this.pushToVar(e,t)}pushToVarIfNonId(e,t){return s.default.isAnyIdentifier(e)?e:this.pushToVar(e,t)}getModuleExports(e){return(0,f.getOrSetDefault)(this.multiTransformState.getModuleExportsCache,e,(()=>this.typeChecker.getExportsOfModule(e)))}getModuleExportsAliasMap(e){return(0,f.getOrSetDefault)(this.multiTransformState.getModuleExportsAliasMapCache,e,(()=>{var t;const n=new Map;for(const r of this.getModuleExports(e)){const e=v.default.skipAlias(r,this.typeChecker),i=null===(t=r.getDeclarations())||void 0===t?void 0:t[0];i&&v.default.isExportSpecifier(i)?n.set(e,i.name.text):n.set(e,r.name)}return n}))}getModuleSymbolFromNode(e){const t=(0,h.getModuleAncestor)(e),n=this.typeChecker.getSymbolAtLocation(v.default.isSourceFile(t)?t:t.name);return(0,d.assert)(n),n}getModuleIdFromSymbol(e){const t=this.moduleIdBySymbol.get(e);return(0,d.assert)(t),t}setModuleIdBySymbol(e,t){this.moduleIdBySymbol.set(e,t)}getModuleIdFromNode(e){const t=this.getModuleSymbolFromNode(e);return this.getModuleIdFromSymbol(t)}getModuleIdPropertyAccess(e){if(e.valueDeclaration){const t=this.getModuleSymbolFromNode(e.valueDeclaration),n=this.getModuleExportsAliasMap(t).get(e);if(n)return s.default.property(this.getModuleIdFromSymbol(t),n)}}guessVirtualPath(e){const t=e;for(;;){const n=l.default.dirname(e);if(e===n)break;e=n;const r=this.reverseSymlinkMap.get(e);if(r)return l.default.join(r,l.default.relative(e,t))}return t}setClassElementObjectKey(e,t){(0,d.assert)(!this.classElementToObjectKeyMap.has(e)),this.classElementToObjectKeyMap.set(e,t)}getClassElementObjectKey(e){return this.classElementToObjectKeyMap.get(e)}}},3115:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSourceFile=void 0,i(n(1677),t),i(n(8570),t),i(n(3506),t),i(n(7196),t);var o=n(8228);Object.defineProperty(t,"transformSourceFile",{enumerable:!0,get:function(){return o.transformSourceFile}})},6662:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CALL_MACROS=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(6453),c=n(3842),l=n(410),u=new Set(["nil","boolean","string","number","table","userdata","function","thread","vector"]);t.CALL_MACROS={assert:(e,t,n,r)=>(r[0]=(0,l.createTruthinessChecks)(e,r[0],t.arguments[0]),i.default.call(i.default.globals.assert,r)),typeOf:(e,t,n,r)=>i.default.call(i.default.globals.typeof,r),typeIs:(e,t,n,r)=>{const[o,a]=r,s=i.default.isStringLiteral(a)&&u.has(a.value)?i.default.globals.type:i.default.globals.typeof;return i.default.binary(i.default.call(s,[o]),"==",a)},classIs:(e,t,n,r)=>{const[o,a]=r;return i.default.binary(i.default.property((0,s.convertToIndexableExpression)(o),"ClassName"),"==",a)},identity:(e,t,n,r)=>r[0],$range:(e,t)=>(a.DiagnosticService.addDiagnostic(o.errors.noRangeMacroOutsideForOf(t.expression)),i.default.none()),$tuple:(e,t)=>(a.DiagnosticService.addDiagnostic(o.errors.noTupleMacroOutsideReturn(t)),i.default.none()),$getModuleTree:(e,t)=>{const n=(0,c.getImportParts)(e,t.getSourceFile(),t.arguments[0]);return i.default.array([n.shift(),i.default.array(n)])}}},8221:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CONSTRUCTOR_MACROS=void 0;const i=r(n(9861)),o=n(2287),a=n(6671),s=n(7034),c=r(n(2137));function l(e,t,n){return i.default.call(i.default.globals.setmetatable,[n(e,t),i.default.map([[i.default.strings.__mode,i.default.strings.k]])])}const u=(e,t)=>{if(!t.arguments||0===t.arguments.length)return i.default.set();const n=t.arguments[0];if(c.default.isArrayLiteralExpression(n)&&!n.elements.some(c.default.isSpreadElement))return i.default.set((0,s.ensureTransformOrder)(e,n.elements));{const t=e.pushToVar(i.default.set(),"set"),r=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(i.default.tempId(),r),expression:(0,a.transformExpression)(e,n),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:r}),operator:"=",right:i.default.bool(!0)}))})),t}},_=(e,t)=>{if(!t.arguments||0===t.arguments.length)return i.default.map();const n=t.arguments[0],r=(0,a.transformExpression)(e,n);if(i.default.isArray(r)&&i.default.list.every(r.members,(e=>i.default.isArray(e)))){const e=i.default.list.toArray(r.members).map((e=>((0,o.assert)(i.default.isArray(e)&&i.default.list.isNonEmpty(e.members)),[e.members.head.value,e.members.head.next.value])));return i.default.map(e)}{const t=e.pushToVar(i.default.map(),"map"),n=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(i.default.tempId(),n),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:i.default.number(1)})}),operator:"=",right:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:i.default.number(2)})}))})),t}};t.CONSTRUCTOR_MACROS={ArrayConstructor:(e,t)=>{if(t.arguments&&t.arguments.length>0){const n=(0,s.ensureTransformOrder)(e,t.arguments);return i.default.call(i.default.globals.table.create,n)}return i.default.array()},SetConstructor:u,MapConstructor:_,WeakSetConstructor:(e,t)=>l(e,t,u),WeakMapConstructor:(e,t)=>l(e,t,_),ReadonlyMapConstructor:_,ReadonlySetConstructor:u}},8503:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IDENTIFIER_MACROS=void 0,t.IDENTIFIER_MACROS={Promise:(e,t)=>e.TS(t,"Promise")}},153:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PROPERTY_CALL_MACROS=void 0;const i=r(n(9861)),o=n(2287),a=n(6453),s=n(6409),c=n(9582),l=n(1915),u=n(2161),_=r(n(2137));function d(e){return(t,n,r,o)=>{let a=o[0];return i.default.isSimple(a)||(a=i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:a})),i.default.binary(r,e,a)}}const f=new Map([["+","add"],["-","sub"],["*","mul"],["/","div"]]);function p(...e){const t={};for(const n of e){const e=f.get(n);(0,o.assert)(e),t[e]=d(n)}return t}function m(e){return(t,n,r,o)=>i.default.call(e,[r,...o])}const g={size:(e,t,n)=>i.default.unary("#",n),byte:m(i.default.globals.string.byte),find:m(i.default.globals.string.find),format:m(i.default.globals.string.format),gmatch:m(i.default.globals.string.gmatch),gsub:m(i.default.globals.string.gsub),lower:m(i.default.globals.string.lower),match:m(i.default.globals.string.match),rep:m(i.default.globals.string.rep),reverse:m(i.default.globals.string.reverse),split:m(i.default.globals.string.split),sub:m(i.default.globals.string.sub),upper:m(i.default.globals.string.upper)};function h(e,t){return(n,r,o,a)=>{o=n.pushToVarIfComplex(o,"exp");const s=n.pushToVar(i.default.bool(t),"result"),c=n.pushToVarIfNonId(a[0],"callback"),l=i.default.tempId("k"),u=i.default.tempId("v"),_=i.default.call(c,e(l,u,o));return n.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(l,u),expression:o,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:t?i.default.unary("not",_):_,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"=",right:i.default.bool(!t)}),i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}))})),s}}const y={size:(e,t,n)=>i.default.unary("#",n)},v={isEmpty:(e,t,n)=>i.default.binary(i.default.unary("#",n),"==",i.default.number(0)),join:(e,t,n,r)=>{r=function(e,t,n){for(let r=0;r{const o=[n,(0,c.offset)(r[0],1),(0,c.offset)(r[1],1),(0,c.offset)(r[2],1)];return r[3]&&o.push(r[3]),i.default.call(i.default.globals.table.move,o)},includes:(e,t,n,r)=>{const o=[n,r[0]];return r[1]&&o.push((0,c.offset)(r[1],1)),i.default.binary(i.default.call(i.default.globals.table.find,o),"~=",i.default.nil())},indexOf:(e,t,n,r)=>{const o=[n,r[0]];return r.length>1&&o.push((0,c.offset)(r[1],1)),(0,c.offset)(i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(i.default.globals.table.find,o),operator:"or",right:i.default.number(0)}),-1)},every:(b=(e,t,n)=>[t,(0,c.offset)(e,-1),n],h(b,!0)),some:h(((e,t,n)=>[t,(0,c.offset)(e,-1),n]),!1),forEach:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVarIfNonId(r[0],"callback"),a=i.default.tempId("k"),l=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(a,l),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(o,[l,(0,c.offset)(a,-1),n])}))})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil()},map:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVar(i.default.call(i.default.globals.table.create,[i.default.unary("#",n)]),"newValue"),a=e.pushToVarIfNonId(r[0],"callback"),s=i.default.tempId("k"),l=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s,l),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:o,index:s}),operator:"=",right:i.default.call(a,[l,(0,c.offset)(s,-1),n])}))})),o},mapFiltered:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVar(i.default.array(),"newValue"),a=e.pushToVarIfNonId(r[0],"callback"),s=e.pushToVar(i.default.number(0),"length"),l=i.default.tempId("k"),u=i.default.tempId("v"),_=i.default.tempId("result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(l,u),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:_,right:i.default.call(a,[u,(0,c.offset)(l,-1),n])}),i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(_,"~=",i.default.nil()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:o,index:s}),operator:"=",right:_})),elseBody:i.default.list.make()}))})),o},filterUndefined:(e,t,n)=>{n=e.pushToVarIfComplex(n,"exp");const r=e.pushToVar(i.default.number(0),"length"),o=i.default.tempId("i");e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(o),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(o,">",r),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:o})),elseBody:i.default.list.make()}))}));const s=e.pushToVar(i.default.array(),"result"),c=e.pushToVar(i.default.number(0),"resultLength"),l=i.default.tempId("i"),u=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.NumericForStatement,{id:l,start:i.default.number(1),end:r,step:void 0,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:u,right:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:l})}),i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(u,"~=",i.default.nil()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:c,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:s,index:c}),operator:"=",right:u})),elseBody:i.default.list.make()}))})),s},filter:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVar(i.default.array(),"newValue"),a=e.pushToVarIfNonId(r[0],"callback"),s=e.pushToVar(i.default.number(0),"length"),l=i.default.tempId("k"),u=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(l,u),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(a,[u,(0,c.offset)(l,-1),n]),operator:"==",right:i.default.bool(!0)}),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:o,index:s}),operator:"=",right:u})),elseBody:i.default.list.make()}))})),o},reduce:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");let o=i.default.number(1);const s=i.default.unary("#",n),l=i.default.unary("#",n);let u;r.length<2?(e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(l,"==",i.default.number(0)),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.error,[i.default.string("Attempted to call `ReadonlyArray.reduce()` on an empty array without an initialValue.")])})),elseBody:i.default.list.make()})),u=e.pushToVar(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:o}),"result"),o=(0,c.offset)(o,1)):u=e.pushToVar(r[1],"result");const _=e.pushToVar(r[0],"callback"),d=i.default.tempId("i");return e.prereq(i.default.create(i.default.SyntaxKind.NumericForStatement,{id:d,start:o,end:s,step:void 0,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:i.default.call(_,[u,i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:d}),(0,c.offset)(d,-1),n])}))})),u},find:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVarIfNonId(r[0],"callback"),a=i.default.tempId("i"),s=i.default.tempId("v"),l=e.pushToVar(void 0,"result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{expression:n,ids:i.default.list.make(a,s),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(o,[s,(0,c.offset)(a,-1),n]),operator:"==",right:i.default.bool(!0)}),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:l,operator:"=",right:s}),i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}))})),l},findIndex:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVarIfNonId(r[0],"callback"),a=i.default.tempId("i"),s=i.default.tempId("v"),l=e.pushToVar(i.default.number(-1),"result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{expression:n,ids:i.default.list.make(a,s),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.call(o,[s,(0,c.offset)(a,-1),n]),operator:"==",right:i.default.bool(!0)}),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:l,operator:"=",right:(0,c.offset)(a,-1)}),i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}))})),l}};var b;const x={push:(e,t,n,r)=>{for(let t=0;t{n=e.pushToVarIfComplex(n,"exp");let r=i.default.unary("#",n);const o=!(0,s.isUsedAsStatement)(t);let c;return o&&(r=e.pushToVar(r,"length"),c=e.pushToVar(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:r}),"result")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:r}),operator:"=",right:i.default.nil()})),o?c:i.default.none()},shift:(e,t,n)=>i.default.call(i.default.globals.table.remove,[n,i.default.number(1)]),unshift:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");for(let t=r.length-1;t>=0;t--){const o=r[t];e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.insert,[n,i.default.number(1),o])}))}return(0,s.isUsedAsStatement)(t)?i.default.none():i.default.unary("#",n)},insert:(e,t,n,r)=>i.default.call(i.default.globals.table.insert,[n,(0,c.offset)(r[0],1),r[1]]),remove:(e,t,n,r)=>i.default.call(i.default.globals.table.remove,[n,(0,c.offset)(r[0],1)]),unorderedRemove:(e,t,n,r)=>{const o=e.pushToVarIfComplex((0,c.offset)(r[0],1),"index");n=e.pushToVarIfComplex(n,"exp");const l=e.pushToVar(i.default.unary("#",n),"length"),u=!(0,s.isUsedAsStatement)(t),_=e.pushToVar(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:o}),"value");return e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(_,"~=",i.default.nil()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:o}),operator:"=",right:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:l})}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:l}),operator:"=",right:i.default.nil()})),elseBody:i.default.list.make()})),u?_:i.default.none()},sort:(e,t,n,r)=>{const o=!(0,s.isUsedAsStatement)(t);return o&&(n=e.pushToVarIfComplex(n,"exp")),r.unshift(n),e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.sort,r)})),o?n:i.default.none()},clear:(e,t,n)=>(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.clear,[n])})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil())},S={isEmpty:(e,t,n)=>i.default.binary(i.default.call(i.default.globals.next,[n]),"==",i.default.nil()),size:(e,t,n)=>{const r=e.pushToVar(i.default.number(0),"size");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(i.default.tempId()),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(1)}))})),r},has:(e,t,n,r)=>{const o=i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:r[0]});return i.default.binary(o,"~=",i.default.nil())}},k={delete:(e,t,n,r)=>{const o=e.pushToVarIfComplex(r[0],"value"),c=!(0,s.isUsedAsStatement)(t);let l;return c&&(l=e.pushToVar(i.default.create(i.default.SyntaxKind.BinaryExpression,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:o}),operator:"~=",right:i.default.nil()}),"valueExisted")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:o}),operator:"=",right:i.default.nil()})),c?l:i.default.none()},clear:(e,t,n)=>(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.clear,[n])})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil())},T={...S,forEach:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVarIfNonId(r[0],"callback"),a=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(a),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(o,[a,a,n])}))})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil()}},C={...k,add:(e,t,n,r)=>{const o=!(0,s.isUsedAsStatement)(t);return o&&(n=e.pushToVarIfComplex(n,"exp")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:r[0]}),operator:"=",right:i.default.bool(!0)})),o?n:i.default.none()}},w={...S,forEach:(e,t,n,r)=>{n=e.pushToVarIfComplex(n,"exp");const o=e.pushToVarIfNonId(r[0],"callback"),a=i.default.tempId("k"),c=i.default.tempId("v");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(a,c),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(o,[c,a,n])}))})),(0,s.isUsedAsStatement)(t)?i.default.none():i.default.nil()},get:(e,t,n,r)=>i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:r[0]})},E={...k,set:(e,t,n,r)=>{const[o,c]=r,l=!(0,s.isUsedAsStatement)(t);return l&&(n=e.pushToVarIfComplex(n,"exp")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,a.convertToIndexableExpression)(n),index:o}),operator:"=",right:c})),l?n:i.default.none()}},D={then:(e,t,n,r)=>i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:(0,a.convertToIndexableExpression)(n),name:"andThen",args:i.default.list.make(...r)})};function N(e,t){return(n,r,o,a)=>{const[s,c]=n.capture((()=>t(n,r,o,a)));let l=i.default.list.size(c);if(l>0){const t=function(e,t){if(i.default.list.isNonEmpty(e)){const n=e.head.value;if(i.default.isVariableDeclaration(n)&&!i.default.list.isList(n.left)&&i.default.isTemporaryIdentifier(n.left)&&n.right===t)return!0}return!1}(c,o);let n;t&&(n=i.default.list.shift(c),l--),l>1?(i.default.list.unshift(c,(u=e,i.default.comment(` ▼ ${u} ▼`))),t&&n&&i.default.list.unshift(c,n),i.default.list.push(c,function(e){return i.default.comment(` ▲ ${e} ▲`)}(e))):t&&n&&i.default.list.unshift(c,n)}var u;return n.prereqList(c),s}}t.PROPERTY_CALL_MACROS={CFrame:p("+","-","*"),UDim:p("+","-"),UDim2:p("+","-"),Vector2:p("+","-","*","/"),Vector2int16:p("+","-","*","/"),Vector3:p("+","-","*","/"),Vector3int16:p("+","-","*","/"),String:g,ArrayLike:y,ReadonlyArray:v,Array:x,ReadonlySet:T,Set:C,ReadonlyMap:w,Map:E,Promise:D};for(const[e,n]of Object.entries(t.PROPERTY_CALL_MACROS))for(const[t,r]of Object.entries(n))n[t]=N(`${e}.${t}`,r)},7598:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformArrayAssignmentPattern=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(2865),l=n(1782),u=n(7010),_=n(3550),d=n(2036),f=n(6219),p=r(n(2137));t.transformArrayAssignmentPattern=function e(t,n,r){let m=0;const g=new Array,h=(0,_.getAccessorForBindingType)(t,n,t.typeChecker.getTypeOfAssignmentPattern(n));for(let _ of n.elements){if(p.default.isOmittedExpression(_))h(t,r,m,g,!0);else if(p.default.isSpreadElement(_))s.DiagnosticService.addDiagnostic(o.errors.noSpreadDestructuring(_));else{let n;p.default.isBinaryExpression(_)&&(n=(0,f.skipDownwards)(_.right),_=(0,f.skipDownwards)(_.left));const o=h(t,r,m,g,!1);if(p.default.isIdentifier(_)||p.default.isElementAccessExpression(_)||p.default.isPropertyAccessExpression(_)){const e=(0,u.transformWritableExpression)(t,_,void 0!==n);t.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:e,operator:"=",right:o})),n&&t.prereq((0,l.transformInitializer)(t,e,n))}else if(p.default.isArrayLiteralExpression(_)){const r=t.pushToVar(o,"binding");n&&t.prereq((0,l.transformInitializer)(t,r,n)),e(t,_,r)}else if(p.default.isObjectLiteralExpression(_)){const e=t.pushToVar(o,"binding");n&&t.prereq((0,l.transformInitializer)(t,e,n)),(0,c.transformObjectAssignmentPattern)(t,_,e)}else(0,a.assert)(!1,`transformArrayAssignmentPattern invalid element: ${(0,d.getKindName)(_.kind)}`)}m++}}},2396:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformArrayBindingPattern=void 0;const i=n(7370),o=n(4502),a=n(5235),s=n(8007),c=n(1782),l=n(3550),u=n(3972),_=r(n(2137));t.transformArrayBindingPattern=function e(t,n,r){(0,u.validateNotAnyType)(t,n);let d=0;const f=new Array,p=(0,l.getAccessorForBindingType)(t,n,t.getType(n));for(const l of n.elements){if(_.default.isOmittedExpression(l))p(t,r,d,f,!0);else{if(l.dotDotDotToken)return void o.DiagnosticService.addDiagnostic(i.errors.noSpreadDestructuring(l));const n=l.name,u=p(t,r,d,f,!1);if(_.default.isIdentifier(n)){const e=(0,s.transformVariable)(t,n,u);l.initializer&&t.prereq((0,c.transformInitializer)(t,e,l.initializer))}else{const r=t.pushToVar(u,"binding");l.initializer&&t.prereq((0,c.transformInitializer)(t,r,l.initializer)),_.default.isArrayBindingPattern(n)?e(t,n,r):(0,a.transformObjectBindingPattern)(t,n,r)}}d++}}},1822:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBindingName=void 0;const i=r(n(9861)),o=n(2396),a=n(5235),s=n(6848),c=r(n(2137));t.transformBindingName=function(e,t,n){let r;return c.default.isIdentifier(t)?r=(0,s.transformIdentifierDefined)(e,t):(r=i.default.tempId("binding"),i.default.list.pushList(n,e.capturePrereqs((()=>{c.default.isArrayBindingPattern(t)?(0,o.transformArrayBindingPattern)(e,t,r):(0,a.transformObjectBindingPattern)(e,t,r)})))),r}},2865:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformObjectAssignmentPattern=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(7598),l=n(1782),u=n(7010),_=n(529),d=n(2036),f=n(6219),p=r(n(2137));t.transformObjectAssignmentPattern=function e(t,n,r){for(const m of n.properties)if(p.default.isShorthandPropertyAssignment(m)){const e=m.name,o=(0,_.objectAccessor)(t,r,t.typeChecker.getTypeOfAssignmentPattern(n),e),s=(0,u.transformWritableExpression)(t,e,void 0!==m.objectAssignmentInitializer);t.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:s,operator:"=",right:o})),(0,a.assert)(i.default.isAnyIdentifier(s)),m.objectAssignmentInitializer&&t.prereq((0,l.transformInitializer)(t,s,m.objectAssignmentInitializer))}else{if(p.default.isSpreadAssignment(m))return void s.DiagnosticService.addDiagnostic(o.errors.noSpreadDestructuring(m));if(p.default.isPropertyAssignment(m)){const o=m.name;let s,g=m.initializer;p.default.isBinaryExpression(m.initializer)&&(s=(0,f.skipDownwards)(m.initializer.right),g=(0,f.skipDownwards)(m.initializer.left));const h=(0,_.objectAccessor)(t,r,t.typeChecker.getTypeOfAssignmentPattern(n),o);if(p.default.isIdentifier(g)||p.default.isElementAccessExpression(g)||p.default.isPropertyAccessExpression(g)){const e=(0,u.transformWritableExpression)(t,g,void 0!==s);t.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:e,operator:"=",right:h})),s&&t.prereq((0,l.transformInitializer)(t,e,s))}else if(p.default.isArrayLiteralExpression(g)){const e=t.pushToVar(h,"binding");s&&t.prereq((0,l.transformInitializer)(t,e,s)),(0,a.assert)(p.default.isIdentifier(o)),(0,c.transformArrayAssignmentPattern)(t,g,e)}else if(p.default.isObjectLiteralExpression(g)){const n=t.pushToVar(h,"binding");s&&t.prereq((0,l.transformInitializer)(t,n,s)),e(t,g,n)}else(0,a.assert)(!1,`transformObjectAssignmentPattern invalid initializer: ${(0,d.getKindName)(g.kind)}`)}else(0,a.assert)(!1,`transformObjectAssignmentPattern invalid property: ${(0,d.getKindName)(m.kind)}`)}}},5235:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformObjectBindingPattern=void 0;const i=n(7370),o=n(2287),a=n(4502),s=n(2396),c=n(8007),l=n(1782),u=n(529),_=n(3972),d=r(n(2137));t.transformObjectBindingPattern=function e(t,n,r){(0,_.validateNotAnyType)(t,n);for(const _ of n.elements){if(_.dotDotDotToken)return void a.DiagnosticService.addDiagnostic(i.errors.noSpreadDestructuring(_));const f=_.name,p=_.propertyName;if(d.default.isIdentifier(f)){const e=(0,u.objectAccessor)(t,r,t.getType(n),null!=p?p:f),i=(0,c.transformVariable)(t,f,e);_.initializer&&t.prereq((0,l.transformInitializer)(t,i,_.initializer))}else{(0,o.assert)(p);const i=(0,u.objectAccessor)(t,r,t.getType(n),p),a=t.pushToVar(i,"binding");_.initializer&&t.prereq((0,l.transformInitializer)(t,a,_.initializer)),d.default.isArrayBindingPattern(f)?(0,s.transformArrayBindingPattern)(t,f,a):e(t,f,a)}}}},7759:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassConstructor=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(6671),c=n(6848),l=n(7937),u=n(5671),_=n(8043),d=n(8966),f=n(9655),p=n(1441),m=r(n(2137));t.transformClassConstructor=function(e,t,n,r){var g;const h=i.default.list.make();let y=r?(0,p.getStatements)(r.body):[];const v=(0,d.extendsRoactComponent)(e,t);let b=v,x=i.default.list.make(),S=!1;if(r){const{statements:t,parameters:n,hasDotDotDot:o}=(0,l.transformParameters)(e,r);i.default.list.pushList(h,t),x=n,S=o}else!v&&(0,f.getExtendsNode)(t)&&(S=!0,i.default.list.push(h,i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.property(i.default.globals.super,"constructor"),[i.default.globals.self,i.default.create(i.default.SyntaxKind.VarArgsLiteral,{})])})));function k(){if(!b&&(b=!0,y.length>0)){const t=y[0];m.default.isExpressionStatement(t)&&m.default.isSuperCall(t.expression)&&i.default.list.pushList(h,(0,_.transformStatementList)(e,null==r?void 0:r.body,[t]))}}for(const t of null!==(g=null==r?void 0:r.parameters)&&void 0!==g?g:[])if(m.default.isParameterPropertyDeclaration(t,t.parent)){k();const n=(0,c.transformIdentifierDefined)(e,t.name);i.default.list.push(h,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(i.default.globals.self,n.name),operator:"=",right:n}))}for(const n of t.members)if(m.default.isPropertyDeclaration(n)&&!m.default.hasStaticModifier(n)){k();const r=n.name;if(m.default.isPrivateIdentifier(r)){a.DiagnosticService.addDiagnostic(o.errors.noPrivateIdentifier(t));continue}const c=n.initializer;if(!c)continue;const[l,_]=e.capture((()=>(0,u.transformPropertyName)(e,r)));i.default.list.pushList(h,_);const[d,f]=e.capture((()=>(0,s.transformExpression)(e,c)));i.default.list.pushList(h,f),i.default.list.push(h,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:i.default.globals.self,index:l}),operator:"=",right:d}))}if(b&&y.length>0){const e=y[0];m.default.isExpressionStatement(e)&&m.default.isSuperCall(e.expression)&&(y=y.slice(1))}return i.default.list.pushList(h,(0,_.transformStatementList)(e,null==r?void 0:r.body,y)),i.default.list.make(i.default.create(i.default.SyntaxKind.MethodDeclaration,{expression:n,name:v?"init":"constructor",statements:h,parameters:x,hasDotDotDot:S}))}},5082:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassLikeDeclaration=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(3115),c=n(4502),l=n(7759),u=n(4541),_=n(5616),d=n(6671),f=n(6848),p=n(2852),m=n(8111),g=n(6453),h=n(8966),y=n(9655),v=n(2036),b=n(9525),x=n(837),S=n(4735),k=r(n(2137)),T="toString";t.transformClassLikeDeclaration=function(e,t){const n=k.default.isClassExpression(t),r=i.default.list.make(),C=!!k.default.getSelectedSyntacticModifierFlags(t,k.default.ModifierFlags.ExportDefault);t.name&&(0,x.validateIdentifier)(e,t.name);const w=n&&void 0!==t.name;let E,D;E=w?i.default.tempId("class"):t.name?(0,f.transformIdentifierDefined)(e,t.name):C?i.default.id("default"):i.default.tempId("class"),D=w?t.name?(0,f.transformIdentifierDefined)(e,t.name):i.default.tempId("class"):E,e.classIdentifierMap.set(t,D),function(e,t){if(t.name){const n=e.typeChecker.getSymbolAtLocation(t.name);return(0,a.assert)(n),!0===e.isHoisted.get(n)}return!1}(e,t)||i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:E,right:void 0})),function(e,t){const n=(0,y.getExtendsNode)(t);if(n){const t=(0,b.getOriginalSymbolOfNode)(e.typeChecker,n.expression);if(t)return t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.ArrayConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.SetConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.MapConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.WeakSetConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.WeakMapConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.ReadonlyMapConstructor)||t===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.ReadonlySetConstructor)}return!1}(e,t)&&c.DiagnosticService.addDiagnostic(o.errors.noMacroExtends(t));const N=(0,h.extendsRoactComponent)(e,t),A=i.default.list.make();N?i.default.list.pushList(A,function(e,t,n,r){const o=(0,y.getExtendsNode)(t);(0,a.assert)(o);const s=i.default.list.make(),[c,l]=e.capture((()=>(0,d.transformExpression)(e,o.expression)));i.default.list.pushList(s,l);const u=i.default.isIdentifier(n)?n.name:"Anonymous",_=i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:(0,g.convertToIndexableExpression)(c),name:"extend",args:i.default.list.make(i.default.string(u))});return r&&t.name?i.default.list.push(s,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:(0,f.transformIdentifierDefined)(e,t.name),right:_})):i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:_})),s}(e,t,D,n)):i.default.list.pushList(A,function(e,t,n,r){const a=!!k.default.getSelectedSyntacticModifierFlags(t,k.default.ModifierFlags.Abstract),s=i.default.list.make(),l=(0,y.getExtendsNode)(t);if(a&&!l)i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:i.default.mixedTable()}));else{const a=i.default.list.make();if(i.default.list.push(a,i.default.create(i.default.SyntaxKind.MapField,{index:i.default.strings.__tostring,value:(u=i.default.isTemporaryIdentifier(n)?"Anonymous":n.name,i.default.create(i.default.SyntaxKind.FunctionExpression,{statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.string(u)})),parameters:i.default.list.make(),hasDotDotDot:!1}))})),l){const n=function(e,t){if(k.default.isClassLike(t))return t;const n=e.typeChecker.getSymbolAtLocation(t);return n&&n.valueDeclaration&&k.default.isClassLike(n.valueDeclaration)?n.valueDeclaration:void 0}(e,l.expression);n&&(0,h.extendsRoactComponent)(e,n)&&c.DiagnosticService.addDiagnostic(o.errors.noRoactInheritance(t));const[r,u]=e.capture((()=>(0,d.transformExpression)(e,l.expression))),_=i.default.id("super");i.default.list.pushList(s,u),i.default.list.push(s,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:_,right:r})),i.default.list.push(a,i.default.create(i.default.SyntaxKind.MapField,{index:i.default.strings.__index,value:_}))}const _=i.default.call(i.default.globals.setmetatable,[i.default.map(),i.default.create(i.default.SyntaxKind.Map,{fields:a})]);r&&t.name?i.default.list.push(s,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:(0,f.transformIdentifierDefined)(e,t.name),right:_})):i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:_})),i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(n,"__index"),operator:"=",right:n}))}var u;if(!a){const e=i.default.list.make();i.default.list.push(e,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.globals.self,right:i.default.call(i.default.globals.setmetatable,[i.default.map(),n])})),i.default.list.push(e,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.binary(i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:i.default.globals.self,name:"constructor",args:i.default.list.make(i.default.create(i.default.SyntaxKind.VarArgsLiteral,{}))}),"or",i.default.globals.self)})),i.default.list.push(s,i.default.create(i.default.SyntaxKind.FunctionDeclaration,{name:i.default.property(n,"new"),parameters:i.default.list.make(),hasDotDotDot:!0,statements:e,localize:!1}))}return s}(e,t,D,n)),i.default.list.pushList(A,(0,l.transformClassConstructor)(e,t,D,function(e){return e.members.find((e=>k.default.isConstructorDeclaration(e)&&void 0!==e.body))}(t)));for(const e of t.members)if((k.default.isPropertyDeclaration(e)||k.default.isMethodDeclaration(e))&&(k.default.isIdentifier(e.name)||k.default.isStringLiteral(e.name))&&(i.default.isReservedClassField(e.name.text)||N&&i.default.isReservedRoactClassField(e.name.text))&&c.DiagnosticService.addDiagnostic(o.errors.noReservedClassFields(e.name)),k.default.isAutoAccessorPropertyDeclaration(e)){const t=k.default.getModifiers(e).find((e=>e.kind===k.default.SyntaxKind.AccessorKeyword));c.DiagnosticService.addDiagnostic(o.errors.noAutoAccessorModifiers(t))}const P=new Array,F=new Array;for(const n of t.members)if((0,S.validateMethodAssignment)(e,n),!(k.default.isConstructorDeclaration(n)||k.default.isIndexSignatureDeclaration(n)||k.default.isSemicolonClassElement(n)))if(k.default.isMethodDeclaration(n))P.push(n);else if(k.default.isPropertyDeclaration(n)){if(!k.default.hasStaticModifier(n))continue;F.push(n)}else k.default.isAccessor(n)?c.DiagnosticService.addDiagnostic(o.errors.noGetterSetter(n)):k.default.isClassStaticBlockDeclaration(n)?F.push(n):(0,a.assert)(!1,`ClassMember kind not implemented: ${(0,v.getKindName)(n.kind)}`);const I=e.typeChecker.getTypeOfSymbolAtLocation(t.symbol,t),O=e.typeChecker.getDeclaredTypeOfSymbol(t.symbol);for(const t of P)(k.default.isIdentifier(t.name)||k.default.isStringLiteral(t.name))&&(i.default.isMetamethod(t.name.text)&&c.DiagnosticService.addDiagnostic(o.errors.noClassMetamethods(t.name)),k.default.getSelectedSyntacticModifierFlags(t,k.default.ModifierFlags.Static)?void 0!==O.getProperty(t.name.text)&&c.DiagnosticService.addDiagnostic(o.errors.noInstanceMethodCollisions(t)):void 0!==I.getProperty(t.name.text)&&c.DiagnosticService.addDiagnostic(o.errors.noStaticMethodCollisions(t))),i.default.list.pushList(A,(0,m.transformMethodDeclaration)(e,t,{name:"name",value:D}));const M=O.getProperty(T);M&&M.flags&k.default.SymbolFlags.Method&&i.default.list.push(A,i.default.create(i.default.SyntaxKind.MethodDeclaration,{expression:D,name:"__tostring",hasDotDotDot:!1,parameters:i.default.list.make(),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:i.default.globals.self,name:T,args:i.default.list.make()})}))}));for(const t of F)k.default.isClassStaticBlockDeclaration(t)?i.default.list.pushList(A,(0,p.transformBlock)(e,t.body)):i.default.list.pushList(A,(0,_.transformPropertyDeclaration)(e,t,D));return w&&i.default.list.push(A,i.default.create(i.default.SyntaxKind.Assignment,{left:E,operator:"=",right:D})),i.default.list.pushList(A,(0,u.transformDecorators)(e,t,E)),i.default.list.push(r,i.default.create(i.default.SyntaxKind.DoStatement,{statements:A})),{statements:r,name:E}}},4541:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformDecorators=void 0;const i=r(n(9861)),o=n(2287),a=n(6671),s=n(5671),c=n(6453),l=r(n(2137));function u(e,t,n){const r=i.default.list.make(),u=i.default.list.make(),_=l.default.getDecorators(t),d=void 0!==_&&_.length>1,f=t.name;if(!f||l.default.isPrivateIdentifier(f))return r;for(const p of null!=_?_:[]){let _,[m,g]=e.capture((()=>(0,a.transformExpression)(e,p.expression)));if(i.default.list.pushList(r,g),d&&!i.default.isSimple(m)){const e=i.default.tempId("decorator");i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:e,right:m})),m=e}if((l.default.isMethodDeclaration(t)||l.default.isPropertyDeclaration(t))&&(_=e.getClassElementObjectKey(t),!_)){(0,o.assert)(!l.default.isBindingPattern(f));const t=e.capturePrereqs((()=>_=(0,s.transformPropertyName)(e,f)));i.default.list.pushList(r,t)}i.default.list.unshiftList(u,n((0,c.convertToIndexableExpression)(m),_))}return i.default.list.pushList(r,u),r}function _(e,t,n){return u(e,t,((e,t)=>{(0,o.assert)(t);const r=i.default.list.make(),a=i.default.tempId("descriptor");return i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:a,right:i.default.call(e,[n,t,i.default.map([[i.default.string("value"),i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:t})]])])})),i.default.list.push(r,i.default.create(i.default.SyntaxKind.IfStatement,{condition:a,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:t}),operator:"=",right:i.default.property(a,"value")})),elseBody:i.default.list.make()})),r}))}function d(e,t,n){return u(e,t,((e,t)=>((0,o.assert)(t),i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(e,[n,t])})))))}function f(e,t,n){const r=i.default.list.make();for(let o=0;oi.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(e,[n,i.default.string(s.text),i.default.number(o)])})))))}return r}t.transformDecorators=function(e,t,n){const r=i.default.list.make();for(const o of t.members)l.default.getSelectedSyntacticModifierFlags(o,l.default.ModifierFlags.Static)||(l.default.isMethodDeclaration(o)?(i.default.list.pushList(r,_(e,o,n)),i.default.list.pushList(r,f(e,o,n))):l.default.isPropertyDeclaration(o)&&i.default.list.pushList(r,d(e,o,n)));for(const o of t.members)l.default.getSelectedSyntacticModifierFlags(o,l.default.ModifierFlags.Static)&&(l.default.isMethodDeclaration(o)?(i.default.list.pushList(r,_(e,o,n)),i.default.list.pushList(r,f(e,o,n))):l.default.isPropertyDeclaration(o)&&i.default.list.pushList(r,d(e,o,n)));for(const o of t.members)l.default.isConstructorDeclaration(o)&&i.default.list.pushList(r,f(e,o,n));return i.default.list.pushList(r,function(e,t,n){return u(e,t,(e=>i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:i.default.binary(i.default.call(e,[n]),"or",n)}))))}(e,t,n)),r}},5616:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropertyDeclaration=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(6671),c=n(5671),l=r(n(2137));t.transformPropertyDeclaration=function(e,t,n){return l.default.hasStaticModifier(t)?l.default.isPrivateIdentifier(t.name)?(a.DiagnosticService.addDiagnostic(o.errors.noPrivateIdentifier(t)),i.default.list.make()):t.initializer?i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:(0,c.transformPropertyName)(e,t.name)}),operator:"=",right:(0,s.transformExpression)(e,t.initializer)})):i.default.list.make():i.default.list.make()}},250:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformArrayLiteralExpression=void 0;const i=r(n(9861)),o=n(2287),a=n(6671),s=n(7034),c=n(3901),l=n(274),u=r(n(2137));t.transformArrayLiteralExpression=function(e,t){if(!t.elements.find((e=>u.default.isSpreadElement(e))))return i.default.array((0,s.ensureTransformOrder)(e,t.elements));const n=(0,l.createArrayPointer)("array"),r=i.default.tempId("length");let _=!1,d=0;function f(){const t=i.default.unary("#",n.value);_?e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:t})):(e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:t})),_=!0),d=0}for(let s=0;s(0,a.transformExpression)(e,_)));i.default.isArray(n.value)&&!i.default.list.isEmpty(o)&&((0,l.disableArrayInline)(e,n),f()),i.default.isArray(n.value)?i.default.list.push(n.value.members,t):(e.prereqList(o),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n.value,index:i.default.binary(r,"+",i.default.number(d+1))}),operator:"=",right:t}))),d++}}return n.value}},7075:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformAwaitExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(6219);t.transformAwaitExpression=function(e,t){return i.default.call(e.TS(t,"await"),[(0,o.transformExpression)(e,(0,a.skipDownwards)(t.expression))])}},8e3:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBinaryExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(7598),l=n(2865),u=n(6671),_=n(1782),d=n(5741),f=n(5260),p=n(7010),m=n(6614),g=n(6453),h=n(3262),y=n(7034),v=n(2036),b=n(2824),x=n(6409),S=n(6219),k=n(1915),T=n(3972),C=r(n(2137));function w(e,t,n){const r=i.default.list.make(),u=i.default.list.make(),d=i.default.list.make(),f=e.capturePrereqs((()=>{for(let n of t.elements)if(C.default.isOmittedExpression(n))i.default.list.push(u,i.default.tempId());else if(C.default.isSpreadElement(n))s.DiagnosticService.addDiagnostic(o.errors.noSpreadDestructuring(n));else{let t;if(C.default.isBinaryExpression(n)&&(t=(0,S.skipDownwards)(n.right),n=(0,S.skipDownwards)(n.left)),C.default.isIdentifier(n)||C.default.isElementAccessExpression(n)||C.default.isPropertyAccessExpression(n)){const[r,o]=e.capture((()=>(0,p.transformWritableExpression)(e,n,!0)));i.default.list.pushList(d,o),i.default.list.push(u,r),t&&e.prereq((0,_.transformInitializer)(e,r,t))}else if(C.default.isArrayLiteralExpression(n)){const o=i.default.tempId("binding");i.default.list.push(r,o),i.default.list.push(u,o),t&&e.prereq((0,_.transformInitializer)(e,o,t)),(0,c.transformArrayAssignmentPattern)(e,n,o)}else if(C.default.isObjectLiteralExpression(n)){const o=i.default.tempId("binding");i.default.list.push(r,o),i.default.list.push(u,o),t&&e.prereq((0,_.transformInitializer)(e,o,t)),(0,l.transformObjectAssignmentPattern)(e,n,o)}else(0,a.assert)(!1,`transformOptimizedArrayAssignmentPattern invalid element: ${(0,v.getKindName)(n.kind)}`)}}));i.default.list.isEmpty(r)||e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:void 0})),e.prereqList(d),(0,a.assert)(!i.default.list.isEmpty(u)),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:n})),e.prereqList(f)}t.transformBinaryExpression=function(e,t){const n=t.operatorToken.kind;if((0,T.validateNotAnyType)(e,t.left),(0,T.validateNotAnyType)(e,t.right),n===C.default.SyntaxKind.EqualsEqualsToken)return s.DiagnosticService.addDiagnostic(o.errors.noEqualsEquals(t)),i.default.none();if(n===C.default.SyntaxKind.ExclamationEqualsToken)return s.DiagnosticService.addDiagnostic(o.errors.noExclamationEquals(t)),i.default.none();if(n===C.default.SyntaxKind.AmpersandAmpersandToken||n===C.default.SyntaxKind.BarBarToken||n===C.default.SyntaxKind.QuestionQuestionToken)return(0,d.transformLogical)(e,t);if(C.default.isLogicalOrCoalescingAssignmentExpression(t))return(0,f.transformLogicalOrCoalescingAssignmentExpression)(e,t);if(C.default.isAssignmentOperator(n)){if(C.default.isArrayLiteralExpression(t.left)){const n=(0,u.transformExpression)(e,t.right);if(0===t.left.elements.length)return(0,x.isUsedAsStatement)(t)&&i.default.isArray(n)&&i.default.list.isEmpty(n.members)?i.default.none():n;if(i.default.isCall(n)&&(0,k.isLuaTupleType)(e)(e.getType(t.right)))return w(e,t.left,n),(0,x.isUsedAsStatement)(t)||s.DiagnosticService.addDiagnostic(o.errors.noLuaTupleDestructureAssignmentExpression(t)),i.default.none();if(i.default.isArray(n)&&!i.default.list.isEmpty(n.members)&&(0,x.isUsedAsStatement)(t))return w(e,t.left,n.members),i.default.none();const r=e.pushToVar(n,"binding");return(0,c.transformArrayAssignmentPattern)(e,t.left,r),r}if(C.default.isObjectLiteralExpression(t.left)){const n=(0,u.transformExpression)(e,t.right);if(0===t.left.properties.length)return(0,x.isUsedAsStatement)(t)&&i.default.isMap(n)&&i.default.list.isEmpty(n.fields)?i.default.none():n;const r=e.pushToVar(n,"binding");return(0,l.transformObjectAssignmentPattern)(e,t.left,r),r}const r=e.getType(t.left),a=e.getType(t.right),_=(0,m.getSimpleAssignmentOperator)(r,n,a),{writable:d,readable:f,value:g}=(0,p.transformWritableAssignment)(e,t.left,t.right,!0,void 0===_);return void 0!==_?(0,m.createAssignmentExpression)(e,d,_,"..="!==_||(0,k.isDefinitelyType)(a,k.isStringType)?g:i.default.call(i.default.globals.tostring,[g])):(0,m.createCompoundAssignmentExpression)(e,t,d,r,f,n,g,a)}const[r,a]=(0,y.ensureTransformOrder)(e,[t.left,t.right]);if(n===C.default.SyntaxKind.InKeyword)return i.default.binary(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,g.convertToIndexableExpression)(a),index:r}),"~=",i.default.nil());if(n===C.default.SyntaxKind.InstanceOfKeyword){const n=(0,k.getFirstDefinedSymbol)(e,e.getType(t.right));return(0,b.isSymbolFromRobloxTypes)(e,n)&&s.DiagnosticService.addDiagnostic(o.errors.noRobloxSymbolInstanceof(t.right)),i.default.call(e.TS(t,"instanceof"),[r,a])}const _=e.getType(t.left),v=e.getType(t.right);return n!==C.default.SyntaxKind.LessThanToken&&n!==C.default.SyntaxKind.LessThanEqualsToken&&n!==C.default.SyntaxKind.GreaterThanToken&&n!==C.default.SyntaxKind.GreaterThanEqualsToken||((0,k.isDefinitelyType)(_,k.isStringType)||(0,k.isDefinitelyType)(_,k.isNumberType))&&((0,k.isDefinitelyType)(v,k.isStringType)||(0,k.isDefinitelyType)(_,k.isNumberType))||s.DiagnosticService.addDiagnostic(o.errors.noNonNumberStringRelationOperator(t)),(0,h.createBinaryFromOperator)(e,t,r,_,n,a,v)}},2157:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformFalseKeyword=t.transformTrueKeyword=void 0;const i=r(n(9861));t.transformTrueKeyword=function(){return i.default.create(i.default.SyntaxKind.TrueLiteral,{})},t.transformFalseKeyword=function(){return i.default.create(i.default.SyntaxKind.FalseLiteral,{})}},4698:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformCallExpression=t.transformElementCallExpressionInner=t.transformPropertyCallExpressionInner=t.transformCallExpressionInner=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(6671),c=n(7637),l=n(8087),u=n(8576),_=n(6453),d=n(7034),f=n(5708),p=n(3968),m=n(833),g=n(2824),h=n(1915),y=n(3972),v=n(2161),b=n(1511),x=r(n(2137));function S(e,t,n,r,s){let c;const l=t.capturePrereqs((()=>{c=(0,d.ensureTransformOrder)(t,s);const e=s[s.length-1];if(e&&x.default.isSpreadElement(e)){const r=t.typeChecker.getSignaturesOfType(t.getType(n.expression),x.default.SignatureKind.Call)[0],s=r.parameters[r.parameters.length-1].valueDeclaration;if(s&&x.default.isParameter(s)&&s.dotDotDotToken)return void a.DiagnosticService.addDiagnostic(o.errors.noVarArgsMacroSpread(e));const l=r.minArgumentCount,u=c.pop(),_=i.default.list.make();for(let e=c.length;e(0,d.ensureTransformOrder)(e,r)));k(e,l,u,r),!i.default.list.isEmpty(m)&&(0,f.expressionMightMutate)(e,n,t.expression)&&(n=e.pushToVar(n,"fn")),e.prereqList(m);const g=i.default.call((0,_.convertToIndexableExpression)(n),u);return(0,b.wrapReturnIfLuaTuple)(e,t,g)},t.transformPropertyCallExpressionInner=function(e,t,n,r,s,c){if((0,y.validateNotAnyType)(e,t.expression),x.default.isSuperProperty(n))return(0,p.isInsideRoactComponent)(e,t)&&a.DiagnosticService.addDiagnostic(o.errors.noSuperPropertyCallRoactComponent(t)),i.default.call(i.default.property((0,_.convertToIndexableExpression)(r),n.name.text),[i.default.globals.self,...(0,d.ensureTransformOrder)(e,t.arguments)]);const l=e.typeChecker.getNonOptionalType(e.getType(t.expression)),u=(0,h.getFirstDefinedSymbol)(e,l);if(u){const n=e.services.macroManager.getPropertyCallMacro(u);if(n)return S(n,e,t,r,c)}const[g,v]=e.capture((()=>(0,d.ensureTransformOrder)(e,c)));let T;return k(e,u,g,c),!i.default.list.isEmpty(v)&&(0,f.expressionMightMutate)(e,r,t.expression)&&(r=e.pushToVar(r,"fn")),e.prereqList(v),(0,m.isMethod)(e,n)?i.default.isValidIdentifier(s)?T=i.default.create(i.default.SyntaxKind.MethodCallExpression,{name:s,expression:(0,_.convertToIndexableExpression)(r),args:i.default.list.make(...g)}):(r=e.pushToVarIfComplex(r,"fn"),g.unshift(r),T=i.default.call(i.default.property((0,_.convertToIndexableExpression)(r),s),g)):T=i.default.call(i.default.property((0,_.convertToIndexableExpression)(r),s),g),(0,b.wrapReturnIfLuaTuple)(e,t,T)},t.transformElementCallExpressionInner=function(e,t,n,r,c,l){if((0,y.validateNotAnyType)(e,t.expression),x.default.isSuperProperty(n))return(0,p.isInsideRoactComponent)(e,t)&&a.DiagnosticService.addDiagnostic(o.errors.noSuperPropertyCallRoactComponent(t)),i.default.call(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,_.convertToIndexableExpression)(r),index:(0,s.transformExpression)(e,n.argumentExpression)}),[i.default.globals.self,...(0,d.ensureTransformOrder)(e,t.arguments)]);const g=e.typeChecker.getNonOptionalType(e.getType(t.expression)),v=(0,h.getFirstDefinedSymbol)(e,g);if(v){const n=e.services.macroManager.getPropertyCallMacro(v);if(n)return S(n,e,t,r,l)}const[[T,...C],w]=e.capture((()=>(0,d.ensureTransformOrder)(e,[c,...l])));k(e,v,C,l),!i.default.list.isEmpty(w)&&(0,f.expressionMightMutate)(e,r,t.expression)&&(r=e.pushToVar(r,"fn")),e.prereqList(w),(0,m.isMethod)(e,n)&&(r=e.pushToVarIfComplex(r,"fn"),C.unshift(r));const E=i.default.call(i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,_.convertToIndexableExpression)(r),index:(0,u.addOneIfArrayType)(e,e.typeChecker.getNonOptionalType(e.getType(n.expression)),T)}),C);return(0,b.wrapReturnIfLuaTuple)(e,t,E)},t.transformCallExpression=function(e,t){return(0,l.transformOptionalChain)(e,t)}},9365:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassExpression=void 0;const r=n(5082);t.transformClassExpression=function(e,t){const{statements:n,name:i}=(0,r.transformClassLikeDeclaration)(e,t);return e.prereqList(n),i}},1392:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformConditionalExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(410),s=n(6409),c=n(6837);t.transformConditionalExpression=function(e,t){const n=(0,o.transformExpression)(e,t.condition),[r,l]=e.capture((()=>(0,o.transformExpression)(e,t.whenTrue))),[u,_]=e.capture((()=>(0,o.transformExpression)(e,t.whenFalse)));if((0,s.isUsedAsStatement)(t))return i.default.list.pushList(l,(0,c.wrapExpressionStatement)(r)),i.default.list.pushList(_,(0,c.wrapExpressionStatement)(u)),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,a.createTruthinessChecks)(e,n,t.condition),statements:l,elseBody:_})),i.default.none();if(i.default.list.isEmpty(l)&&i.default.list.isEmpty(_))return i.default.create(i.default.SyntaxKind.IfExpression,{condition:(0,a.createTruthinessChecks)(e,n,t.condition),expression:r,alternative:u});const d=i.default.tempId("result");return e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:d,right:void 0})),i.default.list.push(l,i.default.create(i.default.SyntaxKind.Assignment,{left:d,operator:"=",right:r})),i.default.list.push(_,i.default.create(i.default.SyntaxKind.Assignment,{left:d,operator:"=",right:u})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,a.createTruthinessChecks)(e,n,t.condition),statements:l,elseBody:_})),d}},7484:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformDeleteExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(6409);t.transformDeleteExpression=function(e,t){return(0,o.transformExpression)(e,t.expression),(0,a.isUsedAsStatement)(t)?i.default.none():i.default.bool(!0)}},8010:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformElementAccessExpression=t.transformElementAccessExpressionInner=void 0;const i=r(n(9861)),o=n(6671),a=n(8087),s=n(5949),c=n(8576),l=n(6453),u=n(835),_=n(9582),d=n(6219),f=n(1915),p=n(3972),m=r(n(2137));t.transformElementAccessExpressionInner=function(e,t,n,r){(0,p.validateNotAnyType)(e,t.expression),(0,p.validateNotAnyType)(e,t.argumentExpression);const a=e.typeChecker.getNonOptionalType(e.getType(t.expression));(0,s.addIndexDiagnostics)(e,t,a);const[u,g]=e.capture((()=>(0,o.transformExpression)(e,r)));return i.default.list.isEmpty(g)||((0,f.isLuaTupleType)(e)(a)&&(n=i.default.array([n])),n=e.pushToVar(n,"exp"),e.prereqList(g)),i.default.isCall(n)&&(0,f.isLuaTupleType)(e)(a)?(i.default.isNumberLiteral(u)&&0===Number(u.value)||(n=i.default.call(i.default.globals.select,[(0,_.offset)(u,1),n])),i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:n})):m.default.isDeleteExpression((0,d.skipUpwards)(t).parent)?(e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,l.convertToIndexableExpression)(n),index:(0,c.addOneIfArrayType)(e,a,u)}),operator:"=",right:i.default.nil()})),i.default.none()):i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,l.convertToIndexableExpression)(n),index:(0,c.addOneIfArrayType)(e,a,u)})},t.transformElementAccessExpression=function(e,t){return(0,u.getConstantValueLiteral)(e,t)||(0,a.transformOptionalChain)(e,t)}},6671:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(250),l=n(7075),u=n(8e3),_=n(2157),d=n(4698),f=n(9365),p=n(1392),m=n(7484),g=n(8010),h=n(8998),y=n(6848),v=n(8279),b=n(650),x=n(1406),S=n(7517),k=n(2572),T=n(2578),C=n(4104),w=n(6484),E=n(8685),D=n(9760),N=n(7480),A=n(4379),P=n(8946),F=n(8141),I=n(8652),O=n(2772),M=n(1471),L=n(1475),R=n(7895),j=n(2036),B=r(n(2137)),J=()=>i.default.none(),z=e=>(t,n)=>(s.DiagnosticService.addDiagnostic(e(n)),J()),$=new Map([[B.default.SyntaxKind.BigIntLiteral,z(o.errors.noBigInt)],[B.default.SyntaxKind.NullKeyword,z(o.errors.noNullLiteral)],[B.default.SyntaxKind.PrivateIdentifier,z(o.errors.noPrivateIdentifier)],[B.default.SyntaxKind.RegularExpressionLiteral,z(o.errors.noRegex)],[B.default.SyntaxKind.TypeOfExpression,z(o.errors.noTypeOfExpression)],[B.default.SyntaxKind.ImportKeyword,J],[B.default.SyntaxKind.ArrayLiteralExpression,c.transformArrayLiteralExpression],[B.default.SyntaxKind.ArrowFunction,h.transformFunctionExpression],[B.default.SyntaxKind.AsExpression,O.transformTypeExpression],[B.default.SyntaxKind.AwaitExpression,l.transformAwaitExpression],[B.default.SyntaxKind.BinaryExpression,u.transformBinaryExpression],[B.default.SyntaxKind.CallExpression,d.transformCallExpression],[B.default.SyntaxKind.ClassExpression,f.transformClassExpression],[B.default.SyntaxKind.ConditionalExpression,p.transformConditionalExpression],[B.default.SyntaxKind.DeleteExpression,m.transformDeleteExpression],[B.default.SyntaxKind.ElementAccessExpression,g.transformElementAccessExpression],[B.default.SyntaxKind.ExpressionWithTypeArguments,O.transformTypeExpression],[B.default.SyntaxKind.FalseKeyword,_.transformFalseKeyword],[B.default.SyntaxKind.FunctionExpression,h.transformFunctionExpression],[B.default.SyntaxKind.Identifier,y.transformIdentifier],[B.default.SyntaxKind.JsxElement,v.transformJsxElement],[B.default.SyntaxKind.JsxFragment,b.transformJsxFragment],[B.default.SyntaxKind.JsxSelfClosingElement,x.transformJsxSelfClosingElement],[B.default.SyntaxKind.NewExpression,S.transformNewExpression],[B.default.SyntaxKind.NonNullExpression,O.transformTypeExpression],[B.default.SyntaxKind.NoSubstitutionTemplateLiteral,N.transformStringLiteral],[B.default.SyntaxKind.NumericLiteral,k.transformNumericLiteral],[B.default.SyntaxKind.ObjectLiteralExpression,T.transformObjectLiteralExpression],[B.default.SyntaxKind.OmittedExpression,C.transformOmittedExpression],[B.default.SyntaxKind.ParenthesizedExpression,w.transformParenthesizedExpression],[B.default.SyntaxKind.PostfixUnaryExpression,M.transformPostfixUnaryExpression],[B.default.SyntaxKind.PrefixUnaryExpression,M.transformPrefixUnaryExpression],[B.default.SyntaxKind.PropertyAccessExpression,E.transformPropertyAccessExpression],[B.default.SyntaxKind.SatisfiesExpression,O.transformTypeExpression],[B.default.SyntaxKind.SpreadElement,D.transformSpreadElement],[B.default.SyntaxKind.StringLiteral,N.transformStringLiteral],[B.default.SyntaxKind.SuperKeyword,A.transformSuperKeyword],[B.default.SyntaxKind.TaggedTemplateExpression,P.transformTaggedTemplateExpression],[B.default.SyntaxKind.TemplateExpression,F.transformTemplateExpression],[B.default.SyntaxKind.ThisKeyword,I.transformThisExpression],[B.default.SyntaxKind.TrueKeyword,_.transformTrueKeyword],[B.default.SyntaxKind.TypeAssertionExpression,O.transformTypeExpression],[B.default.SyntaxKind.VoidExpression,L.transformVoidExpression],[B.default.SyntaxKind.YieldExpression,R.transformYieldExpression]]);t.transformExpression=function(e,t){const n=$.get(t.kind);if(n)return n(e,t);(0,a.assert)(!1,`Unknown expression: ${(0,j.getKindName)(t.kind)}`)}},8998:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformFunctionExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(5807),c=n(7937),l=n(8043),u=n(6442),_=r(n(2137));t.transformFunctionExpression=function(e,t){t.name&&a.DiagnosticService.addDiagnostic(o.errors.noFunctionExpressionName(t.name));let{statements:n,parameters:r,hasDotDotDot:d}=(0,c.transformParameters)(e,t);const f=t.body;if(_.default.isFunctionBody(f))i.default.list.pushList(n,(0,l.transformStatementList)(e,f,f.statements));else{const[t,r]=e.capture((()=>(0,s.transformReturnStatementInner)(e,f)));i.default.list.pushList(n,r),i.default.list.pushList(n,t)}const p=!!_.default.getSelectedSyntacticModifierFlags(t,_.default.ModifierFlags.Async);t.asteriskToken&&(p&&a.DiagnosticService.addDiagnostic(o.errors.noAsyncGeneratorFunctions(t)),n=(0,u.wrapStatementsAsGenerator)(e,t,n));let m=i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:d,parameters:r,statements:n});return p&&(m=i.default.call(e.TS(t,"async"),[m])),m}},6848:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformIdentifier=t.transformIdentifierDefined=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(2991),c=n(3115),l=n(4502),u=n(226),_=n(3527),d=n(6219),f=n(1915),p=r(n(2137));function m(e,t){const n=p.default.isShorthandPropertyAssignment(t.parent)?e.typeChecker.getShorthandAssignmentValueSymbol(t.parent):e.typeChecker.getSymbolAtLocation(t);(0,a.assert)(n);return e.symbolToIdMap.get(n)||i.default.create(i.default.SyntaxKind.Identifier,{name:t.text})}t.transformIdentifierDefined=m,t.transformIdentifier=function(e,t){const n=p.default.isShorthandPropertyAssignment(t.parent)?e.typeChecker.getShorthandAssignmentValueSymbol(t.parent):e.typeChecker.getSymbolAtLocation(t);if((0,a.assert)(n),e.typeChecker.isUndefinedSymbol(n))return i.default.nil();e.typeChecker.isArgumentsSymbol(n)?l.DiagnosticService.addDiagnostic(o.errors.noArguments(t)):n===e.services.macroManager.getSymbolOrThrow(c.SYMBOL_NAMES.globalThis)&&l.DiagnosticService.addDiagnostic(o.errors.noGlobalThis(t));const r=e.services.macroManager.getIdentifierMacro(n);if(r)return r(e,t);const g=(0,f.getFirstConstructSymbol)(e,t);g&&e.services.macroManager.getConstructorMacro(g)&&l.DiagnosticService.addDiagnostic(o.errors.noConstructorMacroWithoutNew(t));const h=(0,d.skipUpwards)(t).parent;if((!p.default.isCallExpression(h)||(0,d.skipDownwards)(h.expression)!=t)&&e.services.macroManager.getCallMacro(n))return l.DiagnosticService.addDiagnostic(o.errors.noIndexWithoutCall(t)),i.default.none();if(n.valueDeclaration&&n.valueDeclaration.getSourceFile()===t.getSourceFile()&&void 0===(0,d.getAncestor)(n.valueDeclaration,(e=>p.default.isModuleDeclaration(e)&&!(0,u.isNamespace)(e)))){const t=e.getModuleIdPropertyAccess(n);if(t&&(0,_.isSymbolMutable)(e,n))return t}return function(e,t,n){var r;if(void 0!==e.isHoisted.get(n))return;const i=null!==(r=n.valueDeclaration)&&void 0!==r?r:function(e){var t;for(const n of null!==(t=e.declarations)&&void 0!==t?t:[])if((0,d.getAncestor)(n,p.default.isAnyImportSyntax))return n}(n);if(!i||(0,d.getAncestor)(i,p.default.isParameter)||p.default.isShorthandPropertyAssignment(i))return;if(p.default.isClassLike(i)&&(0,d.isAncestorOf)(i,t))return;const o=(0,d.getAncestor)(i,p.default.isStatement);if(!o||p.default.isForStatement(o)||p.default.isForOfStatement(o)||p.default.isTryStatement(o))return;const a=o.parent;if(!a||!(0,u.isBlockLike)(a))return;const c=function(e,t){for(;t.parent&&t.parent!==e;)t=t.parent;return t.parent?t:void 0}(a,t);if(!c||!p.default.isStatement(c))return;const l=a.statements.indexOf(o),_=a.statements.indexOf(c);_>l||_===l&&(p.default.isFunctionDeclaration(o)&&!p.default.getSelectedSyntacticModifierFlags(o,p.default.ModifierFlags.Async)||p.default.isClassDeclaration(o)||p.default.isVariableStatement(o)&&(0,d.getAncestor)(t,(e=>p.default.isStatement(e)||p.default.isFunctionLikeDeclaration(e)))===o)||((0,s.getOrSetDefault)(e.hoistsByStatement,c,(()=>new Array)).push(t),e.isHoisted.set(n,!0))}(e,t,n),m(e,t)}},7637:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformImportExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(3842),c=r(n(2137));t.transformImportExpression=function(e,t){const n=t.arguments[0];if(!n||!c.default.isStringLiteral(n))return a.DiagnosticService.addDiagnostic(o.errors.noNonStringModuleSpecifier(t)),i.default.none();const r=(0,s.createImportExpression)(e,t.getSourceFile(),n),l=i.default.id("resolve");return i.default.call(i.default.property(e.TS(t,"Promise"),"new"),[i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:!1,parameters:i.default.list.make(l),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(l,[r])}))})])}},8279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxElement=void 0;const r=n(4487);t.transformJsxElement=function(e,t){return(0,r.transformJsx)(e,t,t.openingElement.tagName,t.openingElement.attributes,t.children)}},650:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxFragment=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(3340),c=n(9693),l=n(274);t.transformJsxFragment=function(e,t){if("Roact.createFragment"!==e.compilerOptions.jsxFragmentFactory)return a.DiagnosticService.addSingleDiagnostic(o.errors.invalidJsxFragmentFactory(t)),i.default.none();const n=(0,l.createMixedTablePointer)("children");(0,s.transformJsxChildren)(e,t.children,(0,l.createMapPointer)("attributes"),n);const r=new Array;return!i.default.isAnyIdentifier(n.value)&&i.default.list.isEmpty(n.value.fields)||r.push(n.value),i.default.call((0,c.createRoactIndex)("createFragment"),r)}},1406:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxSelfClosingElement=void 0;const r=n(4487);t.transformJsxSelfClosingElement=function(e,t){return(0,r.transformJsx)(e,t,t.tagName,t.attributes,[])}},7517:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformNewExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(6453),s=n(7034),c=n(1915),l=n(3972);t.transformNewExpression=function(e,t){(0,l.validateNotAnyType)(e,t.expression);const n=(0,c.getFirstConstructSymbol)(e,t.expression);if(n){const r=e.services.macroManager.getConstructorMacro(n);if(r)return r(e,t)}const r=(0,a.convertToIndexableExpression)((0,o.transformExpression)(e,t.expression)),u=t.arguments?(0,s.ensureTransformOrder)(e,t.arguments):[];return i.default.call(i.default.property(r,"new"),u)}},2572:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformNumericLiteral=void 0;const i=r(n(9861));t.transformNumericLiteral=function(e,t){return i.default.create(i.default.SyntaxKind.NumberLiteral,{value:t.getText()})}},2578:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformObjectLiteralExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(6671),c=n(8111),l=n(5671),u=n(7850),_=n(274),d=n(1915),f=n(4735),p=r(n(2137));function m(e,t,n,r){let[o,a]=e.capture((()=>(0,l.transformPropertyName)(e,n)));const[c,u]=e.capture((()=>(0,s.transformExpression)(e,r)));i.default.list.isEmpty(a)&&i.default.list.isEmpty(u)||((0,_.disableMapInline)(e,t),e.prereqList(a),o=e.pushToVar(o,"left")),e.prereqList(u),(0,_.assignToMapPointer)(e,t,o,c)}function g(e,t,n){const r=e.typeChecker.getNonOptionalType(e.getType(n.expression)),c=(0,d.getFirstDefinedSymbol)(e,r);c&&e.services.macroManager.isMacroOnlyClass(c)&&a.DiagnosticService.addDiagnostic(o.errors.noMacroObjectSpread(n)),(0,_.disableMapInline)(e,t);let l=(0,s.transformExpression)(e,n.expression);const f=e.getType(n.expression),p=(0,d.isPossiblyType)(f,d.isUndefinedType),m=!(0,d.isDefinitelyType)(f,d.isObjectType);(p||m)&&(l=e.pushToVarIfComplex(l,"spread"));const g=i.default.tempId("k"),h=i.default.tempId("v");let y=i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(g,h),expression:l,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t.value,index:g}),operator:"=",right:h}))});m?y=i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,u.createTypeCheck)(l,i.default.strings.table),statements:i.default.list.make(y),elseBody:i.default.list.make()}):p&&(y=i.default.create(i.default.SyntaxKind.IfStatement,{condition:l,statements:i.default.list.make(y),elseBody:i.default.list.make()})),e.prereq(y)}t.transformObjectLiteralExpression=function(e,t){const n=(0,_.createMapPointer)("object");for(const r of t.properties)if((0,f.validateMethodAssignment)(e,r),p.default.isPropertyAssignment(r)){if(p.default.isPrivateIdentifier(r.name)){a.DiagnosticService.addDiagnostic(o.errors.noPrivateIdentifier(r.name));continue}m(e,n,r.name,r.initializer)}else p.default.isShorthandPropertyAssignment(r)?m(e,n,r.name,r.name):p.default.isSpreadAssignment(r)?g(e,n,r):p.default.isMethodDeclaration(r)?e.prereqList((0,c.transformMethodDeclaration)(e,r,n)):a.DiagnosticService.addDiagnostic(o.errors.noGetterSetter(r));return n.value}},4104:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformOmittedExpression=void 0;const i=r(n(9861));t.transformOmittedExpression=function(){return i.default.nil()}},6484:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformParenthesizedExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(6219);t.transformParenthesizedExpression=function(e,t){const n=(0,o.transformExpression)(e,(0,a.skipDownwards)(t.expression));return i.default.isSimple(n)?n:i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:n})}},8685:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropertyAccessExpression=t.transformPropertyAccessExpressionInner=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(8087),c=n(5949),l=n(6453),u=n(835),_=n(6219),d=n(3972),f=r(n(2137));t.transformPropertyAccessExpressionInner=function(e,t,n,r){return(0,d.validateNotAnyType)(e,t.expression),(0,c.addIndexDiagnostics)(e,t,e.typeChecker.getNonOptionalType(e.getType(t))),f.default.isDeleteExpression((0,_.skipUpwards)(t).parent)?(e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property((0,l.convertToIndexableExpression)(n),r),operator:"=",right:i.default.nil()})),i.default.none()):i.default.property((0,l.convertToIndexableExpression)(n),r)},t.transformPropertyAccessExpression=function(e,t){f.default.isSuperProperty(t)&&a.DiagnosticService.addDiagnostic(o.errors.noSuperProperty(t));return(0,u.getConstantValueLiteral)(e,t)||(0,s.transformOptionalChain)(e,t)}},9760:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSpreadElement=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6671),l=n(3901),u=n(1915),_=n(3972),d=r(n(2137));t.transformSpreadElement=function(e,t){(0,_.validateNotAnyType)(e,t.expression),(0,a.assert)(!d.default.isArrayLiteralExpression(t.parent)&&t.parent.arguments),t.parent.arguments[t.parent.arguments.length-1]!==t&&s.DiagnosticService.addDiagnostic(o.errors.noPrecedingSpreadElement(t));const n=(0,c.transformExpression)(e,t.expression),r=e.getType(t.expression);if((0,u.isDefinitelyType)(r,(0,u.isArrayType)(e)))return i.default.call(i.default.globals.unpack,[n]);{const o=(0,l.getAddIterableToArrayBuilder)(e,t.expression,r),a=e.pushToVar(i.default.array(),"array"),s=e.pushToVar(i.default.number(0),"length");return e.prereqList(o(e,n,a,s,0,!1)),i.default.call(i.default.globals.unpack,[a])}}},7480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformStringLiteral=void 0;const r=n(4397);t.transformStringLiteral=function(e,t){return(0,r.createStringFromLiteral)(t)}},4379:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSuperKeyword=void 0;const i=r(n(9861));t.transformSuperKeyword=function(){return i.default.globals.super}},8946:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformTaggedTemplateExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(6453),s=n(7034),c=r(n(2137));t.transformTaggedTemplateExpression=function(e,t){const n=(0,o.transformExpression)(e,t.tag);if(c.default.isTemplateExpression(t.template)){const r=new Array;r.push(i.default.string(t.template.head.text));for(const e of t.template.templateSpans)r.push(i.default.string(e.literal.text));const o=(0,s.ensureTransformOrder)(e,t.template.templateSpans.map((e=>e.expression)));return i.default.call((0,a.convertToIndexableExpression)(n),[i.default.array(r),...o])}return i.default.call((0,a.convertToIndexableExpression)(n),[i.default.array([i.default.string(t.template.text)])])}},8141:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformTemplateExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(4397),l=n(7034),u=n(4160),_=n(1915),d=r(n(2137));t.transformTemplateExpression=function(e,t){(0,a.assert)(t.templateSpans.length>0);const n=new Array;t.head.text.length>0&&n.push((0,c.createStringFromLiteral)(t.head));const r=(0,l.ensureTransformOrder)(e,t.templateSpans.map((e=>e.expression)));for(let a=0;a0&&n.push((0,c.createStringFromLiteral)(l.literal))}return(0,u.binaryExpressionChain)(n,"..")}},8652:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformThisExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(3115),s=n(4502),c=r(n(2137));t.transformThisExpression=function(e,t){const n=e.typeChecker.getSymbolAtLocation(t);if(n===e.services.macroManager.getSymbolOrThrow(a.SYMBOL_NAMES.globalThis)&&s.DiagnosticService.addDiagnostic(o.errors.noGlobalThis(t)),n){const n=c.default.getThisContainer(t,!1,!1);if((c.default.hasStaticModifier(n)||c.default.isClassStaticBlockDeclaration(n))&&!c.default.isMethodDeclaration(n)&&c.default.isClassLike(n.parent)){const t=e.classIdentifierMap.get(n.parent);if(t)return t}}return i.default.globals.self}},2772:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformTypeExpression=void 0;const r=n(6671);t.transformTypeExpression=function(e,t){return(0,r.transformExpression)(e,t.expression)}},1471:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPrefixUnaryExpression=t.transformPostfixUnaryExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(5568),s=n(4502),c=n(6671),l=n(7010),u=n(410),_=n(1915),d=n(3972),f=r(n(2137));t.transformPostfixUnaryExpression=function(e,t){(0,d.validateNotAnyType)(e,t.operand);const n=(0,l.transformWritableExpression)(e,t.operand,!0),r=i.default.tempId("original");return e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:n})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:t.operator===f.default.SyntaxKind.PlusPlusToken?"+=":t.operator===f.default.SyntaxKind.MinusMinusToken?"-=":(0,a.assertNever)(t.operator,"transformPostfixUnaryExpression"),right:i.default.number(1)})),r},t.transformPrefixUnaryExpression=function(e,t){if((0,d.validateNotAnyType)(e,t.operand),t.operator===f.default.SyntaxKind.PlusPlusToken||t.operator===f.default.SyntaxKind.MinusMinusToken){const n=(0,l.transformWritableExpression)(e,t.operand,!0),r=t.operator===f.default.SyntaxKind.PlusPlusToken?"+=":"-=";return e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:r,right:i.default.number(1)})),n}if(t.operator===f.default.SyntaxKind.PlusToken)return s.DiagnosticService.addDiagnostic(o.errors.noUnaryPlus(t)),(0,c.transformExpression)(e,t.operand);if(t.operator===f.default.SyntaxKind.MinusToken)return(0,_.isDefinitelyType)(e.getType(t.operand),_.isNumberType)||s.DiagnosticService.addDiagnostic(o.errors.noNonNumberUnaryMinus(t)),i.default.unary("-",(0,c.transformExpression)(e,t.operand));if(t.operator===f.default.SyntaxKind.ExclamationToken){const n=(0,u.createTruthinessChecks)(e,(0,c.transformExpression)(e,t.operand),t.operand);return i.default.unary("not",n)}return t.operator===f.default.SyntaxKind.TildeToken?i.default.call(i.default.property(i.default.globals.bit32,"bnot"),[(0,c.transformExpression)(e,t.operand)]):(0,a.assertNever)(t.operator,"transformPrefixUnaryExpression")}},1475:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformVoidExpression=void 0;const i=r(n(9861)),o=n(7858),a=n(6219);t.transformVoidExpression=function(e,t){return e.prereqList((0,o.transformExpressionStatementInner)(e,(0,a.skipDownwards)(t.expression))),i.default.create(i.default.SyntaxKind.NilLiteral,{})}},7895:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformYieldExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(6453);t.transformYieldExpression=function(e,t){if(!t.expression)return i.default.call(i.default.globals.coroutine.yield,[]);const n=(0,o.transformExpression)(e,t.expression);if(t.asteriskToken){const t=i.default.tempId("result");return e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(t),expression:i.default.property((0,a.convertToIndexableExpression)(n),"next"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.property(t,"done"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}),i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.coroutine.yield,[i.default.property(t,"value")])}))})),i.default.none()}return i.default.call(i.default.globals.coroutine.yield,[n])}},4487:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsx=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(3506),c=n(6671),l=n(1472),u=n(3340),_=n(1974),d=n(9693),f=n(7472),p=n(274),m=r(n(2137));t.transformJsx=function(e,t,n,r,g){if("Roact.createElement"!==e.compilerOptions.jsxFactory)return a.DiagnosticService.addSingleDiagnostic(o.errors.invalidJsxFactory(t)),i.default.none();const h=e.services.roactSymbolManager&&e.typeChecker.getSymbolAtLocation(n)===e.services.roactSymbolManager.getSymbolOrThrow(s.ROACT_SYMBOL_NAMES.Fragment),y=h?i.default.none():(0,_.transformJsxTagName)(e,n),v=(0,p.createMapPointer)("attributes"),b=(0,p.createMixedTablePointer)("children");(0,l.transformJsxAttributes)(e,r,v),(0,u.transformJsxChildren)(e,g,v,b);const x=new Array;h||x.push(y);const S=i.default.isAnyIdentifier(v.value)||!i.default.list.isEmpty(v.value.fields),k=i.default.isAnyIdentifier(b.value)||!i.default.list.isEmpty(b.value.fields);h||!S&&!k||x.push(v.value),k&&x.push(b.value);let T=i.default.call(h?(0,d.createRoactIndex)("createFragment"):(0,d.createRoactIndex)("createElement"),x);if(!m.default.isJsxElement(t.parent)){const n=(0,f.getKeyAttributeInitializer)(t);if(n){const[t,r]=e.capture((()=>(0,c.transformExpression)(e,n)));e.prereqList(r),T=i.default.call((0,d.createRoactIndex)("createFragment"),[i.default.map([[t,T]])])}}return T}},1472:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxAttributes=void 0;const i=r(n(9861)),o=n(2287),a=n(6671),s=n(8368),c=n(9693),l=n(5794),u=n(274),_=n(1915),d=r(n(2137));function f(e,t){return t&&d.default.isJsxExpression(t)&&(t=t.expression),t?e.capture((()=>(0,a.transformExpression)(e,t))):[i.default.bool(!0),i.default.list.make()]}function p(e,t,n,r){const o=(0,_.isPossiblyType)(r,_.isUndefinedType);o&&(n=e.pushToVarIfComplex(n,"attribute"));const a=i.default.tempId("k"),s=i.default.tempId("v");let c=i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(a,s),expression:n,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:a}),operator:"=",right:s}))});return o&&(c=i.default.create(i.default.SyntaxKind.IfStatement,{condition:n,statements:i.default.list.make(c),elseBody:i.default.list.make()})),c}function m(e,t,n){const r=(0,l.getAttributeNameText)(t.name);if(r===s.KEY_ATTRIBUTE_NAME)return;if(function(e,t){(0,o.assert)(e.services.roactSymbolManager);const n=e.typeChecker.getContextualType(t.parent);if(n){const r=n.getProperty((0,l.getAttributeNameText)(t.name));if(r){const t=d.default.getSymbolTarget(r,e.typeChecker);if(t===e.services.roactSymbolManager.getSymbolOrThrow(s.EVENT_ATTRIBUTE_NAME)||t===e.services.roactSymbolManager.getSymbolOrThrow(s.CHANGE_ATTRIBUTE_NAME))return!0}}return!1}(e,t))return void function(e,t,n){(0,o.assert)(t.initializer&&d.default.isJsxExpression(t.initializer)&&t.initializer.expression);const r=t.initializer.expression;if(d.default.isObjectLiteralExpression(r)&&function(e){for(const t of e.properties)if(!d.default.isPropertyAssignment(t)||!d.default.isIdentifier(t.name))return!1;return!0}(r))for(const a of r.properties){(0,o.assert)(d.default.isPropertyAssignment(a)&&d.default.isIdentifier(a.name));const[r,s]=f(e,a.initializer);i.default.list.isEmpty(s)||(0,u.disableMapInline)(e,n),e.prereqList(s),(0,u.assignToMapPointer)(e,n,(0,c.createRoactIndex)((0,l.getAttributeNameText)(t.name),a.name.text),r)}else{(0,u.disableMapInline)(e,n);const o=(0,a.transformExpression)(e,r),s=i.default.tempId("k"),_=i.default.tempId("v");e.prereq(i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s,_),expression:o,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n.value,index:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,c.createRoactIndex)((0,l.getAttributeNameText)(t.name)),index:s})}),operator:"=",right:_}))}))}}(e,t,n);const[_,p]=f(e,t.initializer);i.default.list.isEmpty(p)||((0,u.disableMapInline)(e,n),e.prereqList(p));const m=r===s.REF_ATTRIBUTE_NAME?(0,c.createRoactIndex)(s.REF_ATTRIBUTE_NAME):i.default.string(r);(0,u.assignToMapPointer)(e,n,m,_)}t.transformJsxAttributes=function(e,t,n){for(const r of t.properties)if(d.default.isJsxAttribute(r))m(e,r,n);else{(0,u.disableMapInline)(e,n);const t=(0,a.transformExpression)(e,r.expression);e.prereq(p(e,n.value,t,e.getType(r.expression)))}}},3340:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxChildren=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6671),l=n(7850),u=n(7472),_=n(9582),d=n(274),f=n(1915),p=n(6837),m=r(n(2137));function g(e,t,n,r){return i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:e,index:i.default.binary(t,"+",n)}),operator:"=",right:r})}function h(e,t,n){return i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:e,index:t}),operator:"=",right:n})}function y(e,t,n,r){const o=i.default.tempId("k"),a=i.default.tempId("v");return i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(o,a),expression:r,statements:i.default.list.make(g(e,(0,_.offset)(n,t),o,a))})}function v(e,t,n,r,o,s){const c=(0,f.isPossiblyType)(s,f.isUndefinedType,(0,f.isBooleanLiteralType)(e,!1)),u=(0,f.isPossiblyType)(s,(0,f.isBooleanLiteralType)(e,!0)),d=(0,f.isPossiblyType)(s,(0,f.isRoactElementType)(e));let m=!1;const v=(0,f.isPossiblyType)(s,(t=>{if((0,f.isMapType)(e)(t)){if(!m){const n=(0,f.getTypeArguments)(e,t);(0,f.isPossiblyType)(n[0],f.isNumberType)&&(m=!0)}return!0}return!1})),b=m||(0,f.isPossiblyType)(s,(0,f.isArrayType)(e)),x=function(e,t,n,r,i){let o=0;return n&&(o+=1),(r||i)&&(o+=1,n&&(o+=3)),(e||t)&&(n||r||i)&&(o+=1),o}(c,u,d,b,v);let S;if(x>1&&(o=e.pushToVarIfNonId(o,"child")),d&&(S=g(t,r,i.default.number(n+1),o)),b||v){let e;if(e=b&&v?function(e,t,n,r){const o=i.default.tempId("k"),a=i.default.tempId("v");return i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(o,a),expression:r,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,l.createTypeCheck)(o,i.default.strings.number),statements:i.default.list.make(g(e,(0,_.offset)(n,t),o,a)),elseBody:i.default.list.make(h(e,o,a))}))})}(t,n,r,o):b?y(t,n,r,o):function(e,t){const n=i.default.tempId("k"),r=i.default.tempId("v");return i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(n,r),expression:t,statements:i.default.list.make(h(e,n,r))})}(t,o),d){(0,a.assert)(i.default.isAnyIdentifier(o));const t=i.default.binary(i.default.property(o,"elements"),"~=",i.default.nil()),n=i.default.binary(i.default.property(o,"props"),"~=",i.default.nil()),r=i.default.binary(i.default.property(o,"component"),"~=",i.default.nil()),s=i.default.binary(n,"and",r),c=i.default.binary(t,"or",s);S=i.default.create(i.default.SyntaxKind.IfStatement,{condition:c,statements:i.default.list.make(S),elseBody:i.default.list.make(e)})}else S=e}if(c||u)if(d||b||v){let e;e=u?(0,l.createTypeCheck)(o,i.default.strings.table):o,S=i.default.create(i.default.SyntaxKind.IfStatement,{condition:e,statements:i.default.list.make(S),elseBody:i.default.list.make()})}else e.prereqList((0,p.wrapExpressionStatement)(o));return(0,a.assert)(S),S}t.transformJsxChildren=function(e,t,n,r){const l=i.default.tempId("length");let _,p=!1,h=0;function b(){const t=i.default.unary("#",r.value);p?e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:l,operator:"=",right:t})):(e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:l,right:t})),p=!0),h=0}function x(){i.default.isMixedTable(r.value)&&(i.default.isMap(n.value)&&!i.default.list.isEmpty(n.value.fields)&&(0,d.disableMapInline)(e,n),(0,d.disableMixedTableInline)(e,r),b())}for(_=t.length-1;_>=0;_--){const e=t[_];if(!m.default.isJsxText(e)||!e.containsOnlyTriviaWhiteSpaces)break}for(let n=0;n(0,c.transformExpression)(e,t)));if(i.default.list.isEmpty(s)||(e.prereqList(s),x()),p.dotDotDotToken)x(),(0,a.assert)(i.default.isAnyIdentifier(r.value)),e.prereq(y(r.value,h,l,o));else{const n=e.getType(t);(0,f.isDefinitelyType)(n,(0,f.isRoactElementType)(e))?(i.default.isMixedTable(r.value)?i.default.list.push(r.value.fields,o):e.prereq(g(r.value,l,i.default.number(h+1),o)),h++):(x(),(0,a.assert)(i.default.isAnyIdentifier(r.value)),e.prereq(v(e,r.value,h,l,o,n)))}!i.default.isMixedTable(r.value)&&n<_&&b()}}else{const[t,n]=e.capture((()=>(0,c.transformExpression)(e,p)));i.default.list.isEmpty(n)||x(),e.prereqList(n);const o=!m.default.isJsxFragment(p)&&(0,u.getKeyAttributeInitializer)(p);if(o){const[n,a]=e.capture((()=>(0,c.transformExpression)(e,o)));i.default.list.isEmpty(a)||x(),e.prereqList(a),(0,d.assignToMixedTablePointer)(e,r,n,t)}else i.default.isMixedTable(r.value)?i.default.list.push(r.value.fields,t):e.prereq(g(r.value,l,i.default.number(h+1),t)),h++}}}},1974:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformJsxTagName=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6671),l=n(6453),u=n(5794),_=r(n(2137));t.transformJsxTagName=function(e,t){const[n,r]=e.capture((()=>function(e,t){if(_.default.isIdentifier(t)){const n=e.typeChecker.getSymbolAtLocation(t);if(n){(0,a.assert)(e.services.roactSymbolManager);const t=e.services.roactSymbolManager.getIntrinsicElementClassNameFromSymbol(n);if(void 0!==t)return i.default.string(t)}}return _.default.isPropertyAccessExpression(t)?(_.default.isPrivateIdentifier(t.name)&&s.DiagnosticService.addDiagnostic(o.errors.noPrivateIdentifier(t.name)),i.default.property((0,l.convertToIndexableExpression)((0,c.transformExpression)(e,t.expression)),t.name.text)):_.default.isJsxNamespacedName(t)?i.default.string((0,u.getAttributeNameText)(t)):(0,c.transformExpression)(e,t)}(e,t)));let d=n;return i.default.list.isEmpty(r)||(e.prereqList(r),d=e.pushToVarIfComplex(d,"tagName")),d}},2852:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBlock=void 0;const i=r(n(9861)),o=n(8043);t.transformBlock=function(e,t){return i.default.list.make(i.default.create(i.default.SyntaxKind.DoStatement,{statements:(0,o.transformStatementList)(e,t,t.statements)}))}},3489:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformBreakStatement=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(965);t.transformBreakStatement=function(e,t){return t.label?(a.DiagnosticService.addDiagnostic(o.errors.noLabeledStatement(t.label)),i.default.list.make()):(0,s.isBreakBlockedByTryStatement)(t)?(e.markTryUses("usesBreak"),i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:e.TS(t,"TRY_BREAK")}))):i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{}))}},9015:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformClassDeclaration=void 0;const r=n(5082);t.transformClassDeclaration=function(e,t){return(0,r.transformClassLikeDeclaration)(e,t).statements}},254:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformContinueStatement=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(965);t.transformContinueStatement=function(e,t){return t.label?(a.DiagnosticService.addDiagnostic(o.errors.noLabeledStatement(t.label)),i.default.list.make()):(0,s.isBreakBlockedByTryStatement)(t)?(e.markTryUses("usesContinue"),i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:e.TS(t,"TRY_CONTINUE")}))):i.default.list.make(i.default.create(i.default.SyntaxKind.ContinueStatement,{}))}},299:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformDoStatement=void 0;const i=r(n(9861)),o=n(6671),a=n(8043),s=n(410),c=n(1441),l=r(n(2137));t.transformDoStatement=function(e,{expression:t,statement:n}){const r=(0,a.transformStatementList)(e,n,(0,c.getStatements)(n));let u=!0;l.default.isPrefixUnaryExpression(t)&&t.operator===l.default.SyntaxKind.ExclamationToken&&(t=t.operand,u=!1);const[_,d]=e.capture((()=>(0,s.createTruthinessChecks)(e,(0,o.transformExpression)(e,t),t))),f=i.default.list.make();return i.default.list.push(f,i.default.create(i.default.SyntaxKind.DoStatement,{statements:r})),i.default.list.pushList(f,d),i.default.list.make(i.default.create(i.default.SyntaxKind.RepeatStatement,{statements:f,condition:u?i.default.unary("not",_):_}))}},9915:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformEnumDeclaration=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6671),l=n(6848),u=n(5671),_=n(5708),d=n(1871),f=n(837),p=r(n(2137));t.transformEnumDeclaration=function(e,t){if(p.default.getSelectedSyntacticModifierFlags(t,p.default.ModifierFlags.Const)&&!0!==e.compilerOptions.preserveConstEnums)return i.default.list.make();const n=e.typeChecker.getSymbolAtLocation(t.name);if(n&&(0,d.hasMultipleDefinitions)(n,(e=>p.default.isEnumDeclaration(e)&&!p.default.getSelectedSyntacticModifierFlags(e,p.default.ModifierFlags.Const))))return s.DiagnosticService.addDiagnosticWithCache(n,o.errors.noEnumMerging(t),e.multiTransformState.isReportedByMultipleDefinitionsCache),i.default.list.make();(0,f.validateIdentifier)(e,t.name);const r=(0,l.transformIdentifierDefined)(e,t.name),m=e.capturePrereqs((()=>{const n=e.pushToVar(i.default.map(),"inverse");e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:i.default.call(i.default.globals.setmetatable,[i.default.map(),i.default.map([[i.default.strings.__index,n]])])}));for(const o of t.members){const t=(0,u.transformPropertyName)(e,o.name),s=(0,_.expressionMightMutate)(e,t,p.default.isComputedPropertyName(o.name)?o.name.expression:o.name)?e.pushToVar(t):t,l=e.typeChecker.getConstantValue(o);let d;"string"==typeof l?d=i.default.string(l):"number"==typeof l?d=i.default.number(l):((0,a.assert)(o.initializer),d=e.pushToVarIfComplex((0,c.transformExpression)(e,o.initializer),"value")),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:r,index:s}),operator:"=",right:d})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:d}),operator:"=",right:s}))}})),g=i.default.list.make(i.default.create(i.default.SyntaxKind.DoStatement,{statements:m}));return n&&!0!==e.isHoisted.get(n)&&i.default.list.unshift(g,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:void 0})),g}},6602:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExportAssignment=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(6671),c=n(3527),l=n(1205),u=r(n(2137));t.transformExportAssignment=function(e,t){const n=e.typeChecker.getSymbolAtLocation(t.expression);return n&&(0,c.isSymbolMutable)(e,n)&&a.DiagnosticService.addDiagnostic(o.errors.noExportAssignmentLet(t)),n&&!(0,l.isSymbolOfValue)(u.default.skipAlias(n,e.typeChecker))?i.default.list.make():t.isExportEquals?function(e,t){e.hasExportEquals=!0;const n=t.getSourceFile();return n.statements[n.statements.length-1]===t?i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:(0,s.transformExpression)(e,t.expression)})):i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:e.getModuleIdFromNode(t),right:(0,s.transformExpression)(e,t.expression)}))}(e,t):function(e,t){const n=i.default.list.make(),[r,o]=e.capture((()=>(0,s.transformExpression)(e,t.expression)));return i.default.list.pushList(n,o),i.default.list.push(n,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.id("default"),right:r})),n}(e,t)}},9337:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExportDeclaration=void 0;const i=r(n(9861)),o=n(2287),a=n(6073),s=n(3842),c=n(1205),l=r(n(2137));function u(e,t){if(t.isTypeOnly)return!1;if(e.resolver.isReferencedAliasDeclaration(t))return!0;const n=e.typeChecker.getSymbolAtLocation(t.name);return!(!n||!(0,c.isSymbolOfValue)(l.default.skipAlias(n,e.typeChecker)))}t.transformExportDeclaration=function(e,t){return t.isTypeOnly?i.default.list.make():t.moduleSpecifier?function(e,t){var n;(0,o.assert)(t.moduleSpecifier&&l.default.isStringLiteral(t.moduleSpecifier));const r=i.default.list.make();let c;const _=t.exportClause,d=function(e,t){let n=0;if(t&&l.default.isNamedExports(t))for(const r of t.elements)u(e,r)&&n++;else n++;return n}(e,_);if(1===d)c=(0,s.createImportExpression)(e,t.getSourceFile(),t.moduleSpecifier);else if(d>1){const n=t.moduleSpecifier.text.split("/");c=i.default.tempId((0,a.cleanModuleName)(n[n.length-1])),i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:c,right:(0,s.createImportExpression)(e,t.getSourceFile(),t.moduleSpecifier)}))}if(!c)return r;const f=e.getModuleIdFromNode(t);if(_)if(l.default.isNamedExports(_))for(const t of _.elements)u(e,t)&&i.default.list.push(r,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(f,t.name.text),operator:"=",right:i.default.property(c,(null!==(n=t.propertyName)&&void 0!==n?n:t.name).text)}));else i.default.list.push(r,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(f,_.name.text),operator:"=",right:c}));else{const e=i.default.tempId("k"),t=i.default.tempId("v");i.default.list.push(r,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(e,t),expression:i.default.binary(c,"or",i.default.map()),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:f,index:e}),operator:"=",right:t}))}))}return e.hasExportFrom=!0,r}(e,t):i.default.list.make()}},7858:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformExpressionStatement=t.transformExpressionStatementInner=void 0;const i=r(n(9861)),o=n(6671),a=n(5260),s=n(7010),c=n(226),l=n(6614),u=n(6219),_=n(1915),d=n(6837),f=r(n(2137));function p(e,t){if(f.default.isBinaryExpression(t)){const n=t.operatorToken.kind;if(f.default.isLogicalOrCoalescingAssignmentExpression(t))return(0,a.transformLogicalOrCoalescingAssignmentExpressionStatement)(e,t);if(f.default.isAssignmentOperator(n)&&!f.default.isArrayLiteralExpression(t.left)&&!f.default.isObjectLiteralExpression(t.left)){const r=e.getType(t.left),o=e.getType(t.right),a=(0,l.getSimpleAssignmentOperator)(r,n,o),{writable:c,readable:u,value:d}=(0,s.transformWritableAssignment)(e,t.left,t.right,void 0===a,void 0===a);return void 0!==a?i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:c,operator:a,right:"..="!==a||(0,_.isDefinitelyType)(o,_.isStringType)?d:i.default.call(i.default.globals.tostring,[d])})):i.default.list.make((0,l.createCompoundAssignmentStatement)(e,t,c,r,u,n,d,o))}}else if((f.default.isPrefixUnaryExpression(t)||f.default.isPostfixUnaryExpression(t))&&(0,c.isUnaryAssignmentOperator)(t.operator))return i.default.list.make(function(e,t){const n=(0,s.transformWritableExpression)(e,t.operand,!1),r=t.operator===f.default.SyntaxKind.PlusPlusToken?"+=":"-=";return i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:r,right:i.default.number(1)})}(e,t));return(0,d.wrapExpressionStatement)((0,o.transformExpression)(e,t))}t.transformExpressionStatementInner=p,t.transformExpressionStatement=function(e,t){return p(e,(0,u.skipDownwards)(t.expression))}},5869:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformForOfStatement=t.transformForOfRangeMacro=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(3115),c=n(4502),l=n(7598),u=n(1822),_=n(2865),d=n(6671),f=n(1782),p=n(8043),m=n(7010),g=n(6453),h=n(7034),y=n(2036),v=n(1441),b=n(6219),x=n(1915),S=n(837),k=n(2161),T=r(n(2137));function C(e){return(t,n,r,o)=>{const a=i.default.list.make(),s=i.default.list.make(),c=e(t,r,o,a,s);return i.default.list.unshiftList(n,s),i.default.list.make(i.default.create(i.default.SyntaxKind.ForStatement,{ids:a,expression:c,statements:n}))}}function w(e,t,n,r){if(T.default.isArrayLiteralExpression(t)){const[o,a]=e.capture((()=>{const n=e.pushToVar(r,"binding");return(0,l.transformArrayAssignmentPattern)(e,t,n),n}));return i.default.list.pushList(n,a),o}if(T.default.isObjectLiteralExpression(t)){const[o,a]=e.capture((()=>{const n=e.pushToVar(r,"binding");return(0,_.transformObjectAssignmentPattern)(e,t,n),n}));return i.default.list.pushList(n,a),o}{const o=(0,m.transformWritableExpression)(e,t,!1);i.default.list.push(n,i.default.create(i.default.SyntaxKind.Assignment,{left:o,operator:"=",right:r}))}}function E(e,t,n){if(T.default.isVariableDeclarationList(t))return(0,u.transformBindingName)(e,t.declarations[0].name,n);if(T.default.isArrayLiteralExpression(t)){const r=i.default.tempId("binding");return i.default.list.pushList(n,e.capturePrereqs((()=>(0,l.transformArrayAssignmentPattern)(e,t,r)))),r}if(T.default.isObjectLiteralExpression(t)){const r=i.default.tempId("binding");return i.default.list.pushList(n,e.capturePrereqs((()=>(0,_.transformObjectAssignmentPattern)(e,t,r)))),r}{const r=i.default.tempId("v"),o=(0,m.transformWritableExpression)(e,t,!1);return i.default.list.push(n,i.default.create(i.default.SyntaxKind.Assignment,{left:o,operator:"=",right:r})),r}}const D=C(((e,t,n,r,o)=>(i.default.list.push(r,i.default.tempId()),i.default.list.push(r,E(e,t,o)),n))),N=C(((e,t,n,r,o)=>(i.default.list.push(r,E(e,t,o)),n)));function A(e,t,n,r){for(const a of t.elements)if(T.default.isOmittedExpression(a))i.default.list.push(n,i.default.tempId());else if(T.default.isSpreadElement(a))c.DiagnosticService.addDiagnostic(o.errors.noSpreadDestructuring(a));else{const t=(0,u.transformBindingName)(e,a.name,r);a.initializer&&i.default.list.push(r,(0,f.transformInitializer)(e,t,a.initializer)),i.default.list.push(n,t)}}function P(e,t,n,r){i.default.list.pushList(r,e.capturePrereqs((()=>{for(let r of t.elements)if(T.default.isOmittedExpression(r))i.default.list.push(n,i.default.tempId());else if(T.default.isSpreadElement(r))c.DiagnosticService.addDiagnostic(o.errors.noSpreadDestructuring(r));else{let t;T.default.isBinaryExpression(r)&&(t=(0,b.skipDownwards)(r.right),r=(0,b.skipDownwards)(r.left));const o=i.default.tempId("binding");if(T.default.isIdentifier(r)||T.default.isElementAccessExpression(r)||T.default.isPropertyAccessExpression(r)){const n=(0,m.transformWritableExpression)(e,r,void 0!==t);e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:o})),t&&e.prereq((0,f.transformInitializer)(e,n,t))}else T.default.isArrayLiteralExpression(r)?(t&&e.prereq((0,f.transformInitializer)(e,o,t)),(0,l.transformArrayAssignmentPattern)(e,r,o)):T.default.isObjectLiteralExpression(r)?(t&&e.prereq((0,f.transformInitializer)(e,o,t)),(0,_.transformObjectAssignmentPattern)(e,r,o)):(0,a.assert)(!1,`transformInLineArrayAssignmentPattern invalid element: ${(0,y.getKindName)(r.kind)}`);i.default.list.push(n,o)}})))}const F=C(((e,t,n,r,o)=>{if(T.default.isVariableDeclarationList(t)){const i=t.declarations[0].name;if(T.default.isArrayBindingPattern(i))return A(e,i,r,o),n}else if(T.default.isArrayLiteralExpression(t))return P(e,t,r,o),n;const a=i.default.tempId("k"),s=i.default.tempId("v");if(i.default.list.push(r,a),i.default.list.push(r,s),T.default.isVariableDeclarationList(t)){const n=i.default.list.make();i.default.list.push(o,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:E(e,t,n),right:i.default.array([a,s])})),i.default.list.pushList(o,n)}else w(e,t,o,i.default.array([a,s]));return n})),I=C(((e,t,n,r,o)=>(i.default.list.push(r,E(e,t,o)),i.default.call(i.default.globals.string.gmatch,[n,i.default.globals.utf8.charpattern])))),O=C(((e,t,n,r,o)=>(i.default.list.push(r,E(e,t,o)),n)));function M(e,t,n,r){const o=i.default.list.make(),a=i.default.list.make();return T.default.isArrayBindingPattern(t)?A(e,t,o,a):P(e,t,o,a),i.default.list.unshiftList(n,a),i.default.list.make(i.default.create(i.default.SyntaxKind.ForStatement,{ids:o,expression:r,statements:n}))}const L=C(((e,t,n,r,o)=>{const a=i.default.tempId("result");if(i.default.list.push(r,a),i.default.list.push(o,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.property(a,"done"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),T.default.isVariableDeclarationList(t)){const n=i.default.list.make();i.default.list.push(o,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:E(e,t,n),right:i.default.property(a,"value")})),i.default.list.pushList(o,n)}else w(e,t,o,i.default.property(a,"value"));return i.default.property((0,g.convertToIndexableExpression)(n),"next")}));function R(e,t){const n=i.default.list.make(),r=i.default.list.make(),o=E(e,t.initializer,r),[[a,s,c],l]=e.capture((()=>(0,h.ensureTransformOrder)(e,t.expression.arguments)));return i.default.list.pushList(n,l),i.default.list.pushList(r,(0,p.transformStatementList)(e,t.statement,(0,v.getStatements)(t.statement))),i.default.list.push(n,i.default.create(i.default.SyntaxKind.NumericForStatement,{id:o,start:a,end:s,step:c,statements:r})),n}t.transformForOfRangeMacro=R,t.transformForOfStatement=function(e,t){if(t.awaitModifier&&c.DiagnosticService.addDiagnostic(o.errors.noAwaitForOf(t)),T.default.isVariableDeclarationList(t.initializer)){const n=t.initializer.declarations[0].name;T.default.isIdentifier(n)&&(0,S.validateIdentifier)(e,n)}if(function(e,t){if(T.default.isCallExpression(t.expression)){const n=(0,x.getFirstDefinedSymbol)(e,e.getType(t.expression.expression));if(n&&n===e.services.macroManager.getSymbolOrThrow(s.SYMBOL_NAMES.$range))return!0}return!1}(e,t))return R(e,t);const n=i.default.list.make(),[r,l]=e.capture((()=>(0,d.transformExpression)(e,t.expression)));i.default.list.pushList(n,l);const u=e.getType(t.expression),_=(0,p.transformStatementList)(e,t.statement,(0,v.getStatements)(t.statement)),f=function(e,t,n){return(0,x.isDefinitelyType)(n,(0,x.isArrayType)(e))?D:(0,x.isDefinitelyType)(n,(0,x.isSetType)(e))?N:(0,x.isDefinitelyType)(n,(0,x.isMapType)(e))?F:(0,x.isDefinitelyType)(n,x.isStringType)?I:(0,x.isDefinitelyType)(n,(0,x.isIterableFunctionLuaTupleType)(e))?(e=>(t,n,r,o)=>{if(T.default.isVariableDeclarationList(r)){const e=r.declarations[0].name;if(T.default.isArrayBindingPattern(e))return M(t,e,n,o)}else if(T.default.isArrayLiteralExpression(r))return M(t,r,n,o);const s=new Array,c=e.getCallSignatures()[0].getReturnType();(0,a.assert)(c&&c.aliasTypeArguments&&1===c.aliasTypeArguments.length,"Incorrect LuaTuple type arguments");const l=c.aliasTypeArguments[0];if(!T.default.isVariableDeclarationList(r)||!t.typeChecker.isTupleType(l)||l.target.combinedFlags&T.default.ElementFlags.Rest){const e=t.pushToVar(o,(0,k.valueToIdStr)(o)||"iterFunc"),a=i.default.list.make(),s=i.default.list.make(),c=E(t,r,s);return i.default.list.push(a,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:c,right:i.default.array([i.default.call(e)])})),i.default.list.push(a,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(i.default.unary("#",c),"==",i.default.number(0)),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),i.default.list.pushList(a,s),i.default.list.pushList(a,n),i.default.list.make(i.default.create(i.default.SyntaxKind.WhileStatement,{condition:i.default.bool(!0),statements:a}))}{const e=l.target;for(let t=0;t{for(const e of s)i.default.list.push(r,e);return i.default.list.push(o,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:u,right:i.default.array(s)})),n}));return _(t,n,r,o)})(n):(0,x.isDefinitelyType)(n,(0,x.isIterableFunctionType)(e))?O:(0,x.isDefinitelyType)(n,(0,x.isGeneratorType)(e))?L:(0,x.isDefinitelyType)(n,(0,x.isIterableType)(e))?(c.DiagnosticService.addDiagnostic(o.errors.noIterableIteration(t)),()=>i.default.list.make()):n.isUnion()?(c.DiagnosticService.addDiagnostic(o.errors.noMacroUnion(t)),()=>i.default.list.make()):void(0,a.assert)(!1,`ForOf iteration type not implemented: ${e.typeChecker.typeToString(n)}`)}(e,t.expression,u);return i.default.list.pushList(n,f(e,_,t.initializer,r)),n}},9430:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformForStatement=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6671),l=n(6848),u=n(7858),_=n(8007),d=n(8043),f=n(410),p=n(6117),m=n(1441),g=n(9582),h=n(6219),y=n(1915),v=r(n(2137));function b(e,t){i.default.list.isNonEmpty(e.statements)&&x(e.statements,e.statements.head,t),i.default.list.isList(e.elseBody)?i.default.list.isNonEmpty(e.elseBody)&&x(e.elseBody,e.elseBody.head,t):b(e.elseBody,t)}function x(e,t,n){(0,a.assert)(!i.default.list.isEmpty(e));const r=t.value;if(i.default.isContinueStatement(r)){const o=i.default.list.clone(n);i.default.list.forEach(o,(e=>e.parent=r.parent)),t.prev?t.prev.next=o.head:t===e.head&&(e.head=o.head),t.prev=o.tail,o.tail.next=t}i.default.isDoStatement(r)?i.default.list.isNonEmpty(r.statements)&&x(r.statements,r.statements.head,n):i.default.isIfStatement(r)&&b(r,n),t.next&&x(e,t.next,n)}function S(e,t,n){return!v.default.FindAllReferences.Core.isSymbolReferencedInFile(n,e.typeChecker,n.getSourceFile(),t)}function k(e,t,n){return v.default.FindAllReferences.Core.eachSymbolReferenceInFile(n,e.typeChecker,n.getSourceFile(),(e=>{if(v.default.isWriteAccess(e)&&(!t.incrementor||!(0,h.isAncestorOf)(t.incrementor,e)))return!0;const n=(0,h.getAncestor)(e,(e=>e===t||v.default.isFunctionLike(e)));return!(!n||n===t)||void 0}),t)}function T(e,t){if(v.default.isNumericLiteral(t))return Number.isInteger(Number(t.getText()));if(v.default.isBinaryExpression(t)){if(t.operatorToken.kind===v.default.SyntaxKind.PlusToken||t.operatorToken.kind===v.default.SyntaxKind.MinusToken||t.operatorToken.kind===v.default.SyntaxKind.AsteriskToken||t.operatorToken.kind===v.default.SyntaxKind.AsteriskAsteriskToken)return T(e,t.left)&&T(e,t.right)}else if(v.default.isPrefixUnaryExpression(t)){if(t.operator===v.default.SyntaxKind.PlusToken||t.operator===v.default.SyntaxKind.MinusToken)return T(e,t.operand)}else{if(function(e,t){if(v.default.isCallExpression(t)){const n=e.typeChecker.getNonOptionalType(e.getType(t.expression)),r=(0,y.getFirstDefinedSymbol)(e,n);if(r&&e.services.macroManager.getPropertyCallMacro(r)&&"size"===r.name)return!0}return!1}(e,t))return!0;if((0,y.isDefinitelyType)(e.getType(t),(e=>e.isNumberLiteral()&&Number.isInteger(e.value))))return!0}return!1}t.transformForStatement=function(e,t){if(e.data.projectOptions.optimizedLoops){const n=function(e,t){const{initializer:n,condition:r,incrementor:o,statement:a}=t;if(!n||!v.default.isVariableDeclarationList(n)||1!==n.declarations.length)return;const{name:s,initializer:u}=n.declarations[0];if(!v.default.isIdentifier(s)||void 0===u)return;const _=e.typeChecker.getSymbolAtLocation(s);if(!_)return;if(!T(e,u))return;if(!o)return;const f=function(e,t,n){return v.default.isBinaryExpression(t)&&v.default.isIdentifier(t.left)&&e.typeChecker.getSymbolAtLocation(t.left)===n&&t.operatorToken.kind===v.default.SyntaxKind.PlusEqualsToken&&v.default.isNumericLiteral(t.right)&&T(e,t.right)?Number(t.right.getText()):v.default.isBinaryExpression(t)&&t.operatorToken.kind===v.default.SyntaxKind.MinusEqualsToken&&v.default.isNumericLiteral(t.right)&&T(e,t.right)?-Number(t.right.getText()):(v.default.isPostfixUnaryExpression(t)||v.default.isPrefixUnaryExpression(t))&&v.default.isIdentifier(t.operand)&&e.typeChecker.getSymbolAtLocation(t.operand)===n&&t.operator===v.default.SyntaxKind.PlusPlusToken?1:(v.default.isPostfixUnaryExpression(t)||v.default.isPrefixUnaryExpression(t))&&v.default.isIdentifier(t.operand)&&e.typeChecker.getSymbolAtLocation(t.operand)===n&&t.operator===v.default.SyntaxKind.MinusMinusToken?-1:void 0}(e,o,_);if(void 0===f)return;if(!r||!v.default.isBinaryExpression(r))return;if(r.operatorToken.kind===v.default.SyntaxKind.LessThanToken||r.operatorToken.kind===v.default.SyntaxKind.LessThanEqualsToken){if(f<0)return}else{if(r.operatorToken.kind!==v.default.SyntaxKind.GreaterThanToken&&r.operatorToken.kind!==v.default.SyntaxKind.GreaterThanEqualsToken)return;if(f>0)return}if(!T(e,r.right))return;if(function(e,t,n){return!0===v.default.FindAllReferences.Core.eachSymbolReferenceInFile(t,e.typeChecker,t.getSourceFile(),(e=>{const t=(0,h.skipUpwards)(e).parent;return!(!v.default.isAssignmentExpression(t)||(0,h.skipDownwards)(t.left)!==e)||!(!v.default.isUnaryExpressionWithWrite(t)||(0,h.skipDownwards)(t.operand)!==e)}),n)}(e,s,a))return;const p=i.default.list.make(),y=(0,l.transformIdentifierDefined)(e,s),[b,x]=e.capture((()=>(0,c.transformExpression)(e,u)));i.default.list.pushList(p,x);let[S,k]=e.capture((()=>(0,c.transformExpression)(e,r.right)));i.default.list.pushList(p,k);const C=i.default.number(f),w=(0,d.transformStatementList)(e,a,(0,m.getStatements)(a));return r.operatorToken.kind===v.default.SyntaxKind.LessThanToken?S=(0,g.offset)(S,-1):r.operatorToken.kind===v.default.SyntaxKind.GreaterThanToken&&(S=(0,g.offset)(S,1)),i.default.list.push(p,i.default.create(i.default.SyntaxKind.NumericForStatement,{id:y,start:b,end:S,step:C,statements:w})),p}(e,t);if(n)return n}return function(e,t){const{initializer:n,condition:r,incrementor:g,statement:h}=t,y=i.default.list.make(),b=i.default.list.make(),T=i.default.list.make(),C=n&&v.default.isVariableDeclarationList(n)?(0,p.getDeclaredVariables)(n):[],w=new Set,E=new Set;if(n&&v.default.isVariableDeclarationList(n))for(const r of C){const i=e.typeChecker.getSymbolAtLocation(r);(0,a.assert)(i),k(e,t,r)&&w.add(i),S(e,n,r)&&E.add(i)}if(n)if(v.default.isVariableDeclarationList(n)){(0,_.isVarDeclaration)(n)&&s.DiagnosticService.addDiagnostic(o.errors.noVar(t));for(const t of C){const n=e.typeChecker.getSymbolAtLocation(t);if((0,a.assert)(n),w.has(n))if(E.has(n))e.symbolToIdMap.set(n,i.default.tempId(t.getText()));else{const r=i.default.tempId(`${t.getText()}Copy`);e.symbolToIdMap.set(n,r)}}for(const t of n.declarations){const[n,r]=e.capture((()=>{const n=i.default.list.make(),[r,o]=e.capture((()=>(0,_.transformVariableDeclaration)(e,t)));return i.default.list.pushList(n,o),i.default.list.pushList(n,r),n}));i.default.list.pushList(y,r),i.default.list.pushList(y,n)}for(const t of C){const n=e.typeChecker.getSymbolAtLocation(t);if((0,a.assert)(n),w.has(n)){let r;if(E.has(n))r=e.symbolToIdMap.get(n),(0,a.assert)(r);else{r=i.default.tempId(t.getText());const o=e.symbolToIdMap.get(n);(0,a.assert)(o),i.default.list.push(y,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:o}))}e.symbolToIdMap.delete(n);const o=(0,l.transformIdentifierDefined)(e,t);i.default.list.push(b,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:o,right:r})),i.default.list.push(T,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:o}))}}}else{const[t,r]=e.capture((()=>(0,u.transformExpressionStatementInner)(e,n)));i.default.list.pushList(y,r),i.default.list.pushList(y,t)}if(g){const t=i.default.tempId("shouldIncrement");i.default.list.push(y,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:t,right:i.default.bool(!1)}));const n=i.default.list.make(),[r,o]=e.capture((()=>(0,u.transformExpressionStatementInner)(e,g)));i.default.list.pushList(n,o),i.default.list.pushList(n,r),i.default.list.push(b,i.default.create(i.default.SyntaxKind.IfStatement,{condition:t,statements:n,elseBody:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:i.default.bool(!0)}))}))}let[D,N]=e.capture((()=>r?(0,f.createTruthinessChecks)(e,(0,c.transformExpression)(e,r),r):i.default.bool(!0)));return i.default.list.pushList(b,N),i.default.list.isEmpty(b)||(r&&i.default.list.push(b,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.unary("not",D),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),D=i.default.bool(!0)),i.default.list.pushList(b,(0,d.transformStatementList)(e,h,(0,m.getStatements)(h))),i.default.list.isNonEmpty(b)&&i.default.list.isNonEmpty(T)&&x(b,b.head,T),b.tail&&i.default.isFinalStatement(b.tail.value)||i.default.list.pushList(b,T),i.default.list.push(y,i.default.create(i.default.SyntaxKind.WhileStatement,{condition:D,statements:b})),y.head===y.tail?y:i.default.list.make(i.default.create(i.default.SyntaxKind.DoStatement,{statements:y}))}(e,t)}},2797:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformFunctionDeclaration=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6848),l=n(7937),u=n(8043),_=n(837),d=n(6442),f=r(n(2137));t.transformFunctionDeclaration=function(e,t){if(!t.body)return i.default.list.make();const n=!!f.default.getSelectedSyntacticModifierFlags(t,f.default.ModifierFlags.ExportDefault);(0,a.assert)(t.name||n),t.name&&(0,_.validateIdentifier)(e,t.name);const r=t.name?(0,c.transformIdentifierDefined)(e,t.name):i.default.id("default");let{statements:p,parameters:m,hasDotDotDot:g}=(0,l.transformParameters)(e,t);i.default.list.pushList(p,(0,u.transformStatementList)(e,t.body,t.body.statements));let h=n;if(t.name){const n=e.typeChecker.getSymbolAtLocation(t.name);(0,a.assert)(n),h=!0!==e.isHoisted.get(n)}const y=!!f.default.getSelectedSyntacticModifierFlags(t,f.default.ModifierFlags.Async);if(t.asteriskToken&&(y&&s.DiagnosticService.addDiagnostic(o.errors.noAsyncGeneratorFunctions(t)),p=(0,d.wrapStatementsAsGenerator)(e,t,p)),y){const n=i.default.call(e.TS(t,"async"),[i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:g,parameters:m,statements:p})]);return h?i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:n})):i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:n}))}return i.default.list.make(i.default.create(i.default.SyntaxKind.FunctionDeclaration,{localize:h,name:r,statements:p,parameters:m,hasDotDotDot:g}))}},9770:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformIfStatement=t.transformIfStatementInner=void 0;const i=r(n(9861)),o=n(6671),a=n(8043),s=n(410),c=n(1441),l=r(n(2137));function u(e,t){const n=(0,s.createTruthinessChecks)(e,(0,o.transformExpression)(e,t.expression),t.expression),r=(0,a.transformStatementList)(e,t.thenStatement,(0,c.getStatements)(t.thenStatement)),_=t.elseStatement;let d;if(void 0===_)d=i.default.list.make();else if(l.default.isIfStatement(_)){const[t,n]=e.capture((()=>u(e,_)));if(i.default.list.isEmpty(n))d=t;else{const e=i.default.list.make();i.default.list.pushList(e,n),i.default.list.push(e,t),d=e}}else d=(0,a.transformStatementList)(e,_,(0,c.getStatements)(_));return i.default.create(i.default.SyntaxKind.IfStatement,{condition:n,statements:r,elseBody:d})}t.transformIfStatementInner=u,t.transformIfStatement=function(e,t){return i.default.list.make(u(e,t))}},8677:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformImportDeclaration=void 0;const i=r(n(9861)),o=n(1164),a=n(2287),s=n(8007),c=n(6073),l=n(3842),u=n(9525),_=n(4164),d=n(1205),f=r(n(2137));t.transformImportDeclaration=function(e,t){const n=t.importClause;if(n&&n.isTypeOnly)return i.default.list.make();const r=i.default.list.make();(0,a.assert)(f.default.isStringLiteral(t.moduleSpecifier));const p=new o.Lazy((()=>(0,l.createImportExpression)(e,t.getSourceFile(),t.moduleSpecifier)));if(n){const o=function(e,t){let n=0;if(t.name){const r=(0,u.getOriginalSymbolOfNode)(e.typeChecker,t.name);!e.resolver.isReferencedAliasDeclaration(t)||r&&!(0,d.isSymbolOfValue)(r)||n++}if(t.namedBindings)if(f.default.isNamespaceImport(t.namedBindings))n++;else for(const r of t.namedBindings.elements){const t=(0,u.getOriginalSymbolOfNode)(e.typeChecker,r.name);!e.resolver.isReferencedAliasDeclaration(r)||t&&!(0,d.isSymbolOfValue)(t)||n++}return n}(e,n);if(o>1){const e=t.moduleSpecifier.text.split("/"),n=i.default.tempId((0,c.cleanModuleName)(e[e.length-1]));i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:p.get()})),p.set(n)}const a=n.name;if(a){const o=(0,u.getOriginalSymbolOfNode)(e.typeChecker,a);if(e.resolver.isReferencedAliasDeclaration(n)&&(!o||(0,d.isSymbolOfValue)(o))){const n=(0,_.getSourceFileFromModuleSpecifier)(e,t.moduleSpecifier),o=n&&e.typeChecker.getSymbolAtLocation(n);o&&e.getModuleExports(o).some((e=>"default"===e.name))?i.default.list.pushList(r,e.capturePrereqs((()=>(0,s.transformVariable)(e,a,i.default.property(p.get(),"default"))))):i.default.list.pushList(r,e.capturePrereqs((()=>(0,s.transformVariable)(e,a,p.get()))))}}const l=n.namedBindings;if(l)if(f.default.isNamespaceImport(l))i.default.list.pushList(r,e.capturePrereqs((()=>(0,s.transformVariable)(e,l.name,p.get()))));else for(const t of l.elements){const n=(0,u.getOriginalSymbolOfNode)(e.typeChecker,t.name);!e.resolver.isReferencedAliasDeclaration(t)||n&&!(0,d.isSymbolOfValue)(n)||i.default.list.pushList(r,e.capturePrereqs((()=>{var n;return(0,s.transformVariable)(e,t.name,i.default.property(p.get(),(null!==(n=t.propertyName)&&void 0!==n?n:t.name).text))})))}}if(!n||e.compilerOptions.importsNotUsedAsValues===f.default.ImportsNotUsedAsValues.Preserve&&i.default.list.isEmpty(r)){const e=p.get();i.default.isCallExpression(e)&&i.default.list.push(r,i.default.create(i.default.SyntaxKind.CallStatement,{expression:e}))}return r}},4789:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformImportEqualsDeclaration=void 0;const i=r(n(9861)),o=n(2287),a=n(6848),s=n(8007),c=n(3842),l=n(1205),u=r(n(2137));function _(e,t){return u.default.isIdentifier(t)?(0,a.transformIdentifierDefined)(e,t):function(e,t){return i.default.property(_(e,t.left),t.right.text)}(e,t)}t.transformImportEqualsDeclaration=function(e,t){const{moduleReference:n}=t;if(u.default.isExternalModuleReference(n)){(0,o.assert)(u.default.isStringLiteral(n.expression));const r=(0,c.createImportExpression)(e,t.getSourceFile(),n.expression),a=i.default.list.make(),_=e.typeChecker.getSymbolAtLocation(t.name);return(0,o.assert)(_),(0,l.isSymbolOfValue)(u.default.skipAlias(_,e.typeChecker))&&i.default.list.pushList(a,e.capturePrereqs((()=>(0,s.transformVariable)(e,t.name,r)))),e.compilerOptions.importsNotUsedAsValues===u.default.ImportsNotUsedAsValues.Preserve&&i.default.list.isEmpty(a)&&i.default.isCallExpression(r)&&i.default.list.push(a,i.default.create(i.default.SyntaxKind.CallStatement,{expression:r})),a}return e.capturePrereqs((()=>(0,s.transformVariable)(e,t.name,_(e,n))))}},6389:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformModuleDeclaration=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(2991),c=n(4502),l=n(6848),u=n(8043),_=n(1871),d=n(3527),f=n(1205),p=n(6219),m=n(837),g=r(n(2137));function h(e){var t;for(const n of null!==(t=e.getDeclarations())&&void 0!==t?t:[]){const e=(0,p.getAncestor)(n,g.default.isStatement);if(e){const t=g.default.canHaveModifiers(e)?g.default.getModifiers(e):void 0;if(g.default.isFunctionDeclaration(e)&&!e.body)continue;if(g.default.isTypeAliasDeclaration(e))continue;if(g.default.isInterfaceDeclaration(e))continue;if(null==t?void 0:t.some((e=>e.kind===g.default.SyntaxKind.DeclareKeyword)))continue;return e}}}function y(e,t,n){const r=e.typeChecker.getSymbolAtLocation(t);(0,a.assert)(r),(0,m.validateIdentifier)(e,t);const o=(0,l.transformIdentifierDefined)(e,t),c=i.default.list.make(),_=i.default.list.make(),p=i.default.tempId("container");e.setModuleIdBySymbol(r,p),e.isHoisted.get(r)?i.default.list.push(c,i.default.create(i.default.SyntaxKind.Assignment,{left:o,operator:"=",right:i.default.map()})):i.default.list.push(c,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:o,right:i.default.map()}));const v=e.getModuleExports(r);if(v.length>0&&i.default.list.push(_,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:p,right:o})),g.default.isModuleBlock(n)){const t=new Map;if(v.length>0)for(const n of v){const r=g.default.skipAlias(n,e.typeChecker);if((0,f.isSymbolOfValue)(r)&&!(0,d.isSymbolMutable)(e,r)){const e=h(n);e&&(0,s.getOrSetDefault)(t,e,(()=>[])).push(n.name)}}i.default.list.pushList(_,(0,u.transformStatementList)(e,n,n.statements,{id:p,mapping:t}))}else i.default.list.pushList(_,y(e,n.name,n.body)),i.default.list.push(_,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(p,n.name.text),operator:"=",right:(0,l.transformIdentifierDefined)(e,n.name)}));return i.default.list.push(c,i.default.create(i.default.SyntaxKind.DoStatement,{statements:_})),c}t.transformModuleDeclaration=function(e,t){if(!g.default.isInstantiatedModule(t,!1))return i.default.list.make();const n=e.typeChecker.getSymbolAtLocation(t.name);return n&&(0,_.hasMultipleDefinitions)(n,(e=>function(e){const t=g.default.canHaveModifiers(e)?g.default.getModifiers(e):void 0;return!((null==t?void 0:t.some((e=>e.kind===g.default.SyntaxKind.DeclareKeyword)))||(!g.default.isModuleDeclaration(e)||!g.default.isInstantiatedModule(e,!1))&&(!g.default.isFunctionDeclaration(e)||!e.body)&&!g.default.isClassDeclaration(e))}(e)))?(c.DiagnosticService.addDiagnosticWithCache(n,o.errors.noNamespaceMerging(t),e.multiTransformState.isReportedByMultipleDefinitionsCache),i.default.list.make()):((0,a.assert)(!g.default.isStringLiteral(t.name)),(0,a.assert)(t.body&&!g.default.isIdentifier(t.body)),y(e,t.name,t.body))}},5807:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformReturnStatement=t.transformReturnStatementInner=void 0;const i=r(n(9861)),o=n(3115),a=n(6671),s=n(7034),c=n(965),l=n(6219),u=n(1915),_=r(n(2137));function d(e,t){const n=i.default.list.make();let r;if(_.default.isCallExpression(t)&&function(e,t){if(_.default.isCallExpression(t)){const n=(0,u.getFirstDefinedSymbol)(e,e.getType(t.expression));if(n&&n===e.services.macroManager.getSymbolOrThrow(o.SYMBOL_NAMES.$tuple))return!0}return!1}(e,t)){const[o,a]=e.capture((()=>(0,s.ensureTransformOrder)(e,t.arguments)));i.default.list.pushList(n,a),r=i.default.list.make(...o)}else r=(0,a.transformExpression)(e,(0,l.skipDownwards)(t)),(0,u.isLuaTupleType)(e)(e.getType(t))&&!function(e,t,n){return i.default.isCall(n)&&(0,u.isLuaTupleType)(e)(e.typeChecker.getTypeAtLocation((0,l.skipDownwards)(t)))}(e,t,r)&&(r=i.default.isArray(r)?r.members:i.default.call(i.default.globals.unpack,[r]));return(0,c.isReturnBlockedByTryStatement)(t)?(e.markTryUses("usesReturn"),i.default.list.push(n,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.list.make(e.TS(t,"TRY_RETURN"),i.default.create(i.default.SyntaxKind.Array,{members:i.default.list.isList(r)?r:i.default.list.make(r)}))}))):i.default.list.push(n,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:r})),n}t.transformReturnStatementInner=d,t.transformReturnStatement=function(e,t){return t.expression?d(e,t.expression):(0,c.isReturnBlockedByTryStatement)(t)?(e.markTryUses("usesReturn"),i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.list.make(e.TS(t,"TRY_RETURN"),i.default.array())}))):i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.nil()}))}},4318:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformStatement=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(2852),l=n(3489),u=n(9015),_=n(254),d=n(299),f=n(9915),p=n(6602),m=n(9337),g=n(7858),h=n(5869),y=n(9430),v=n(2797),b=n(9770),x=n(8677),S=n(4789),k=n(6389),T=n(5807),C=n(9753),w=n(6518),E=n(3785),D=n(8007),N=n(3847),A=n(2036),P=r(n(2137)),F=()=>i.default.list.make(),I=e=>(t,n)=>(s.DiagnosticService.addDiagnostic(e(n)),F()),O=new Map([[P.default.SyntaxKind.InterfaceDeclaration,F],[P.default.SyntaxKind.TypeAliasDeclaration,F],[P.default.SyntaxKind.EmptyStatement,F],[P.default.SyntaxKind.ForInStatement,I(o.errors.noForInStatement)],[P.default.SyntaxKind.LabeledStatement,I(o.errors.noLabeledStatement)],[P.default.SyntaxKind.DebuggerStatement,I(o.errors.noDebuggerStatement)],[P.default.SyntaxKind.Block,c.transformBlock],[P.default.SyntaxKind.BreakStatement,l.transformBreakStatement],[P.default.SyntaxKind.ClassDeclaration,u.transformClassDeclaration],[P.default.SyntaxKind.ContinueStatement,_.transformContinueStatement],[P.default.SyntaxKind.DoStatement,d.transformDoStatement],[P.default.SyntaxKind.EnumDeclaration,f.transformEnumDeclaration],[P.default.SyntaxKind.ExportAssignment,p.transformExportAssignment],[P.default.SyntaxKind.ExportDeclaration,m.transformExportDeclaration],[P.default.SyntaxKind.ExpressionStatement,g.transformExpressionStatement],[P.default.SyntaxKind.ForOfStatement,h.transformForOfStatement],[P.default.SyntaxKind.ForStatement,y.transformForStatement],[P.default.SyntaxKind.FunctionDeclaration,v.transformFunctionDeclaration],[P.default.SyntaxKind.IfStatement,b.transformIfStatement],[P.default.SyntaxKind.ImportDeclaration,x.transformImportDeclaration],[P.default.SyntaxKind.ImportEqualsDeclaration,S.transformImportEqualsDeclaration],[P.default.SyntaxKind.ModuleDeclaration,k.transformModuleDeclaration],[P.default.SyntaxKind.ReturnStatement,T.transformReturnStatement],[P.default.SyntaxKind.SwitchStatement,C.transformSwitchStatement],[P.default.SyntaxKind.ThrowStatement,w.transformThrowStatement],[P.default.SyntaxKind.TryStatement,E.transformTryStatement],[P.default.SyntaxKind.VariableStatement,D.transformVariableStatement],[P.default.SyntaxKind.WhileStatement,N.transformWhileStatement]]);t.transformStatement=function(e,t){const n=P.default.canHaveModifiers(t)?P.default.getModifiers(t):void 0;if(null==n?void 0:n.some((e=>e.kind===P.default.SyntaxKind.DeclareKeyword)))return F();const r=O.get(t.kind);if(r)return r(e,t);(0,a.assert)(!1,`Unknown statement: ${(0,A.getKindName)(t.kind)}`)}},9753:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSwitchStatement=void 0;const i=r(n(9861)),o=n(6671),a=n(8043),s=n(6749),c=r(n(2137));function l(e,t,n,r,l,u){const{condition:_,prereqStatements:d}=function(e,t,n,r,a){let[s,c]=e.capture((()=>(0,o.transformExpression)(e,t)));s=i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:s});let l=i.default.binary(n,"==",s);if(a)if(i.default.list.isEmpty(c))l=i.default.binary(r,"or",l);else{const e=i.default.unary("not",r);i.default.list.push(c,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:l})),c=i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:e,statements:c,elseBody:i.default.list.make()})),l=r}return{condition:l,prereqStatements:c}}(e,t.expression,n,r,l),f=t.statements.filter((e=>!c.default.isEmptyStatement(e))),p=f[0],m=1===f.length&&c.default.isBlock(p)?(0,a.transformStatementList)(e,p,p.statements):(0,a.transformStatementList)(e,t,t.statements),g=void 0===m.tail||!i.default.isFinalStatement(m.tail.value);g&&u&&i.default.list.push(m,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:i.default.bool(!0)}));const h=i.default.list.make(),y=(0,s.createHoistDeclaration)(e,t);return y&&i.default.list.push(h,y),i.default.list.push(h,i.default.create(i.default.SyntaxKind.IfStatement,{condition:_,statements:m,elseBody:i.default.list.make()})),{canFallThroughFrom:g,prereqs:d,clauseStatements:h}}t.transformSwitchStatement=function(e,t){const n=e.pushToVarIfComplex((0,o.transformExpression)(e,t.expression),"exp"),r=i.default.tempId("fallthrough");let s=!1;const u=i.default.list.make();let _=!1;for(let o=0;o0);let n=i.default.create(i.default.SyntaxKind.IfStatement,{condition:e,statements:t[t.length-1].statements,elseBody:i.default.list.make()});for(let r=t.length-2;r>=0;r--)n=i.default.create(i.default.SyntaxKind.IfStatement,{condition:t[r].condition||e,statements:t[r].statements,elseBody:n});return i.default.list.make(n)}t.transformTryStatement=function(e,t){const n=i.default.list.make(),r=i.default.tempId("exitType"),_=i.default.tempId("returns"),d=e.pushTryUsesStack();return i.default.list.push(n,function(e,t,n,r,c){const l=new Array;return l.push(i.default.create(i.default.SyntaxKind.FunctionExpression,{parameters:i.default.list.make(),hasDotDotDot:!1,statements:(0,s.transformStatementList)(e,t.tryBlock,t.tryBlock.statements)})),t.catchClause?l.push(function(e,t){const n=i.default.list.make(),r=i.default.list.make();return t.variableDeclaration&&i.default.list.push(n,(0,a.transformBindingName)(e,t.variableDeclaration.name,r)),i.default.list.pushList(r,(0,s.transformStatementList)(e,t.block,t.block.statements)),i.default.create(i.default.SyntaxKind.FunctionExpression,{parameters:n,hasDotDotDot:!1,statements:r})}(e,t.catchClause)):((0,o.assert)(t.finallyBlock),l.push(i.default.nil())),t.finallyBlock&&l.push(i.default.create(i.default.SyntaxKind.FunctionExpression,{parameters:i.default.list.make(),hasDotDotDot:!1,statements:(0,s.transformStatementList)(e,t.finallyBlock,t.finallyBlock.statements)})),c.usesReturn||c.usesBreak||c.usesContinue?i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.list.make(n,r),right:i.default.call(e.TS(t,"try"),l)}):i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(e.TS(t,"try"),l)})}(e,t,r,_,d)),e.popTryUsesStack(),i.default.list.pushList(n,function(e,t,n,r,o){const a=new Array;if(!o.usesReturn&&!o.usesBreak&&!o.usesContinue)return i.default.list.make();const s=(0,c.isReturnBlockedByTryStatement)(t.parent),_=(0,c.isBreakBlockedByTryStatement)(t.parent);if(o.usesReturn&&s&&e.markTryUses("usesReturn"),o.usesBreak&&_&&e.markTryUses("usesBreak"),o.usesContinue&&_&&e.markTryUses("usesContinue"),o.usesReturn)if(s){if(a.push({condition:l(e,t,n,"TRY_RETURN"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.list.make(n,r)}))}),_)return u(n,a)}else a.push({condition:l(e,t,n,"TRY_RETURN"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.call(i.default.globals.unpack,[r])}))});return(o.usesBreak||o.usesContinue)&&(_?a.push({statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:n}))}):(o.usesBreak&&a.push({condition:l(e,t,n,"TRY_BREAK"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{}))}),o.usesContinue&&a.push({condition:l(e,t,n,"TRY_CONTINUE"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.ContinueStatement,{}))}))),u(n,a)}(e,t,r,_,d)),n}},8007:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformVariableStatement=t.transformVariableDeclarationList=t.isVarDeclaration=t.transformVariableDeclaration=t.transformVariable=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(2396),l=n(5235),u=n(6671),_=n(6848),d=n(1782),f=n(9254),p=n(4953),m=n(3527),g=n(1915),h=n(837),y=n(6837),v=r(n(2137));function b(e,t,n){(0,h.validateIdentifier)(e,t);const r=e.typeChecker.getSymbolAtLocation(t);if((0,a.assert)(r),(0,m.isSymbolMutable)(e,r)){const t=e.getModuleIdPropertyAccess(r);if(t)return n&&e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:n})),t}const o=(0,_.transformIdentifierDefined)(e,t);return(0,p.checkVariableHoist)(e,t,r),!0===e.isHoisted.get(r)?n&&e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:o,operator:"=",right:n})):e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:o,right:n})),o}function x(e,t,n){return e.capturePrereqs((()=>{const r=i.default.list.make(),u=e.capturePrereqs((()=>{for(const n of t.elements)if(v.default.isOmittedExpression(n))i.default.list.push(r,i.default.tempId());else{if(n.dotDotDotToken)return void s.DiagnosticService.addDiagnostic(o.errors.noSpreadDestructuring(n));if(v.default.isIdentifier(n.name)){(0,h.validateIdentifier)(e,n.name);const t=(0,_.transformIdentifierDefined)(e,n.name);i.default.list.push(r,t),n.initializer&&e.prereq((0,d.transformInitializer)(e,t,n.initializer))}else{const t=i.default.tempId("binding");i.default.list.push(r,t),n.initializer&&e.prereq((0,d.transformInitializer)(e,t,n.initializer)),v.default.isArrayBindingPattern(n.name)?(0,c.transformArrayBindingPattern)(e,n.name,t):(0,l.transformObjectBindingPattern)(e,n.name,t)}}}));(0,a.assert)(!i.default.list.isEmpty(r)),e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:r,right:n})),e.prereqList(u)}))}function S(e,t){const n=i.default.list.make();let r;t.initializer&&i.default.list.pushList(n,e.capturePrereqs((()=>r=(0,u.transformExpression)(e,t.initializer))));const o=t.name;if(v.default.isIdentifier(o))i.default.list.pushList(n,e.capturePrereqs((()=>b(e,o,r))));else{if((0,a.assert)(t.initializer&&r),0===o.elements.length)return i.default.isArray(r)&&i.default.list.isEmpty(r.members)||i.default.list.pushList(n,(0,y.wrapExpressionStatement)(r)),n;v.default.isArrayBindingPattern(o)?i.default.isCall(r)&&(0,g.isLuaTupleType)(e)(e.getType(t.initializer))&&!(0,f.arrayBindingPatternContainsHoists)(e,o)?i.default.list.pushList(n,x(e,o,r)):!i.default.isArray(r)||i.default.list.isEmpty(r.members)||(0,f.arrayBindingPatternContainsHoists)(e,o)?i.default.list.pushList(n,e.capturePrereqs((()=>(0,c.transformArrayBindingPattern)(e,o,e.pushToVar(r,"binding"))))):i.default.list.pushList(n,x(e,o,r.members)):i.default.list.pushList(n,e.capturePrereqs((()=>(0,l.transformObjectBindingPattern)(e,o,e.pushToVar(r,"binding")))))}return n}function k(e){return!(e.flags&v.default.NodeFlags.Const||e.flags&v.default.NodeFlags.Let)}function T(e,t){k(t)&&s.DiagnosticService.addDiagnostic(o.errors.noVar(t));const n=i.default.list.make();for(const r of t.declarations){const[t,o]=e.capture((()=>S(e,r)));i.default.list.pushList(n,o),i.default.list.pushList(n,t)}return n}t.transformVariable=b,t.transformVariableDeclaration=S,t.isVarDeclaration=k,t.transformVariableDeclarationList=T,t.transformVariableStatement=function(e,t){return T(e,t.declarationList)}},3847:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformWhileStatement=void 0;const i=r(n(9861)),o=n(6671),a=n(8043),s=n(410),c=n(1441);t.transformWhileStatement=function(e,t){const n=i.default.list.make();let[r,l]=e.capture((()=>(0,s.createTruthinessChecks)(e,(0,o.transformExpression)(e,t.expression),t.expression)));return i.default.list.isEmpty(l)||(i.default.list.pushList(n,l),i.default.list.push(n,i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.unary("not",r),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()})),r=i.default.bool(!0)),i.default.list.pushList(n,(0,a.transformStatementList)(e,t.statement,(0,c.getStatements)(t.statement))),i.default.list.make(i.default.create(i.default.SyntaxKind.WhileStatement,{condition:r,statements:n}))}},1782:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformInitializer=void 0;const i=r(n(9861)),o=n(6671);t.transformInitializer=function(e,t,n){return i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(t,"==",i.default.nil()),elseBody:i.default.list.make(),statements:e.capturePrereqs((()=>{e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:(0,o.transformExpression)(e,n)}))}))})}},5741:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformLogical=void 0;const i=r(n(9861)),o=n(2287),a=n(6671),s=n(410),c=n(4160),l=n(2036),u=n(1915),_=r(n(2137));function d(e,t,n,r){return function(e,t){const n=new Array;for(;_.default.isBinaryExpression(e)&&e.operatorToken.kind===t;)n.unshift(e.right),e=e.left;return n.unshift(e),n}(t,n).map(((t,n,o)=>{const c=e.getType(t),[l,u]=e.capture((()=>(0,a.transformExpression)(e,t)));let _=!1;if(r){const e=nf(e,t,n,r,o+1))),elseBody:i.default.list.make()}))}function p(e,t,n,r,o){const a=d(e,t,n,!0);if(function(e,t){for(let n=0;n(0,s.createTruthinessChecks)(e,t,n)));if(t.operatorToken.kind===_.default.SyntaxKind.BarBarToken)return p(e,t,t.operatorToken.kind,"or",((t,n)=>i.default.unary("not",(0,s.createTruthinessChecks)(e,t,n))));if(t.operatorToken.kind===_.default.SyntaxKind.QuestionQuestionToken){const n=e=>i.default.binary(e,"==",i.default.nil());if(!(0,u.isPossiblyType)(e.getType(t),(0,u.isBooleanLiteralType)(e,!1)))return p(e,t,t.operatorToken.kind,"or",n);const r=d(e,t,_.default.SyntaxKind.QuestionQuestionToken,!1),o=i.default.tempId("condition");return f(e,r,o,n),o}(0,o.assert)(!1,`Operator not implemented: ${(0,l.getKindName)(t.operatorToken.kind)}`)}},5260:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformLogicalOrCoalescingAssignmentExpressionStatement=t.transformLogicalOrCoalescingAssignmentExpression=void 0;const i=r(n(9861)),o=n(6671),a=n(7010),s=n(410),c=r(n(2137));function l(e,t){const n=t.operatorToken.kind;return n===c.default.SyntaxKind.QuestionQuestionEqualsToken?function(e,t,n){const r=(0,a.transformWritableExpression)(e,t,!0),[s,c]=e.capture((()=>(0,o.transformExpression)(e,n))),l=i.default.list.make();return i.default.list.pushList(l,c),i.default.list.push(l,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:s})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(r,"==",i.default.nil()),statements:l,elseBody:i.default.list.make()})),r}(e,t.left,t.right):n===c.default.SyntaxKind.AmpersandAmpersandEqualsToken?function(e,t,n){const r=(0,a.transformWritableExpression)(e,t,!0),[c,l]=e.capture((()=>(0,o.transformExpression)(e,n))),u=e.pushToVar(r,"condition"),_=i.default.list.make();return i.default.list.pushList(_,l),i.default.list.push(_,i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:c})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:(0,s.createTruthinessChecks)(e,r,t),statements:_,elseBody:i.default.list.make()})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:u})),r}(e,t.left,t.right):function(e,t,n){const r=(0,a.transformWritableExpression)(e,t,!0),[c,l]=e.capture((()=>(0,o.transformExpression)(e,n))),u=e.pushToVar(r,"condition"),_=i.default.list.make();return i.default.list.pushList(_,l),i.default.list.push(_,i.default.create(i.default.SyntaxKind.Assignment,{left:u,operator:"=",right:c})),e.prereq(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.unary("not",(0,s.createTruthinessChecks)(e,r,t)),statements:_,elseBody:i.default.list.make()})),e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:u})),r}(e,t.left,t.right)}t.transformLogicalOrCoalescingAssignmentExpression=l,t.transformLogicalOrCoalescingAssignmentExpressionStatement=function(e,t){return e.capturePrereqs((()=>l(e,t)))}},8111:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformMethodDeclaration=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(7937),l=n(5671),u=n(8043),_=n(833),d=n(274),f=n(6442),p=r(n(2137));t.transformMethodDeclaration=function(e,t,n){const r=i.default.list.make();if(!t.body)return i.default.list.make();if((0,a.assert)(t.name),p.default.isPrivateIdentifier(t.name))return s.DiagnosticService.addDiagnostic(o.errors.noPrivateIdentifier(t.name)),i.default.list.make();let{statements:m,parameters:g,hasDotDotDot:h}=(0,c.transformParameters)(e,t);i.default.list.pushList(m,(0,u.transformStatementList)(e,t.body,t.body.statements));let y=(0,l.transformPropertyName)(e,t.name);if(p.default.hasDecorators(t)&&!i.default.isSimple(y)){const n=i.default.tempId("key");i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:n,right:y})),y=n,e.setClassElementObjectKey(t,n)}const v=!!p.default.getSelectedSyntacticModifierFlags(t,p.default.ModifierFlags.Async);if(t.asteriskToken&&(v&&s.DiagnosticService.addDiagnostic(o.errors.noAsyncGeneratorFunctions(t)),m=(0,f.wrapStatementsAsGenerator)(e,t,m)),!v&&i.default.isStringLiteral(y)&&!i.default.isMap(n.value)&&i.default.isValidIdentifier(y.value))return(0,_.isMethod)(e,t)?(i.default.list.shift(g),i.default.list.push(r,i.default.create(i.default.SyntaxKind.MethodDeclaration,{expression:n.value,name:y.value,statements:m,parameters:g,hasDotDotDot:h}))):i.default.list.push(r,i.default.create(i.default.SyntaxKind.FunctionDeclaration,{name:i.default.property(n.value,y.value),localize:!1,statements:m,parameters:g,hasDotDotDot:h})),r;let b=i.default.create(i.default.SyntaxKind.FunctionExpression,{statements:m,parameters:g,hasDotDotDot:h});return v&&(b=i.default.call(e.TS(t,"async"),[b])),i.default.list.pushList(r,e.capturePrereqs((()=>(0,d.assignToMapPointer)(e,n,y,b)))),r}},8087:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformOptionalChain=t.flattenOptionalChain=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(4698),c=n(8010),l=n(6671),u=n(8685),_=n(8576),d=n(6453),f=n(7034),p=n(833),m=n(6409),g=n(6219),h=n(1915),y=n(1511),v=r(n(2137));var b;function x(e,t){return{node:t,kind:b.PropertyAccess,optional:void 0!==t.questionDotToken,type:e.getType(t.expression),name:t.name.text}}function S(e,t){return{node:t,kind:b.ElementAccess,optional:void 0!==t.questionDotToken,type:e.getType(t.expression),expression:t.argumentExpression}}function k(e,t){return{node:t,kind:b.Call,optional:void 0!==t.questionDotToken,type:e.getType(t.expression),args:t.arguments}}function T(e,t,n){return{node:t,expression:n,kind:b.PropertyCall,optional:void 0!==n.questionDotToken,type:e.getType(t.expression),name:n.name.text,callType:e.getType(t),callOptional:void 0!==t.questionDotToken,args:t.arguments}}function C(e,t,n){return{node:t,expression:n,kind:b.ElementCall,optional:void 0!==n.questionDotToken,type:e.getType(n),argumentExpression:n.argumentExpression,callType:e.getType(t),callOptional:void 0!==t.questionDotToken,args:t.arguments}}function w(e,t){const n=new Array;for(;;)if(v.default.isPropertyAccessExpression(t))n.unshift(x(e,t)),t=t.expression;else if(v.default.isElementAccessExpression(t))n.unshift(S(e,t)),t=t.expression;else{if(!v.default.isCallExpression(t))break;{const r=(0,g.skipDownwards)(t.expression);v.default.isPropertyAccessExpression(r)?(n.unshift(T(e,t,r)),t=r.expression):v.default.isElementAccessExpression(r)?(n.unshift(C(e,t,r)),t=r.expression):(n.unshift(k(e,t)),t=r)}}return{chain:n,expression:t}}function E(e,t,n){return n.kind===b.PropertyAccess?(0,u.transformPropertyAccessExpressionInner)(e,n.node,t,n.name):n.kind===b.ElementAccess?(0,c.transformElementAccessExpressionInner)(e,n.node,t,n.expression):n.kind===b.Call?(0,s.transformCallExpressionInner)(e,n.node,t,n.args):n.kind===b.PropertyCall?(0,s.transformPropertyCallExpressionInner)(e,n.node,n.expression,t,n.name,n.args):(0,s.transformElementCallExpressionInner)(e,n.node,n.expression,t,n.argumentExpression,n.args)}function D(e,t,n,r){return void 0===t?t=e.pushToVar(n,r.parent&&v.default.isVariableDeclaration(r.parent)&&v.default.isIdentifier(r.parent.name)?r.parent.name.text:"result"):t!==n&&e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:"=",right:n})),t}function N(e,t){return i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(e,"~=",i.default.nil()),statements:t,elseBody:i.default.list.make()})}function A(e){return e.kind===b.PropertyCall||e.kind===b.ElementCall}function P(e,t,n,r,s=0){if(s>=t.length)return n;const c=t[s];if(c.optional||A(c)&&c.callOptional){let u,g=!1,x=!1;if(A(c)&&(g=(0,p.isMethod)(e,c.expression),x=v.default.isSuperProperty(c.expression),c.callOptional&&g&&!x&&(u=e.pushToVar(n,"self"),n=u),c.optional&&(r=D(e,r,n,t[t.length-1].node),n=r),c.callOptional))if(c.kind===b.PropertyCall)n=i.default.property((0,d.convertToIndexableExpression)(n),c.name);else{const t=e.getType(c.expression.expression);n=i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:(0,d.convertToIndexableExpression)(n),index:(0,_.addOneIfArrayType)(e,t,(0,l.transformExpression)(e,c.argumentExpression))})}const[S,k]=e.capture((()=>{r=D(e,r,n,t[t.length-1].node);const[l,_]=e.capture((()=>{let n;if(A(c)&&c.callOptional){const t=e.typeChecker.getNonOptionalType(e.getType(c.node.expression)),s=(0,h.getFirstDefinedSymbol)(e,t);if(s&&e.services.macroManager.getPropertyCallMacro(s))return a.DiagnosticService.addDiagnostic(o.errors.noOptionalMacroCall(c.node)),i.default.none();const l=(0,f.ensureTransformOrder)(e,c.args);g&&(x?l.unshift(i.default.globals.self):l.unshift(u)),n=(0,y.wrapReturnIfLuaTuple)(e,c.node,i.default.call(r,l))}else n=E(e,r,c);return P(e,t,n,r,s+1)})),d=!i.default.isNone(l)&&!(0,m.isUsedAsStatement)(c.node);return r!==l&&d?i.default.list.push(_,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"=",right:l})):i.default.isCall(l)&&i.default.list.push(_,i.default.create(i.default.SyntaxKind.CallStatement,{expression:l})),e.prereq(N(r,_)),d?r:i.default.none()}));return A(c)&&c.optional&&c.callOptional?e.prereq(N(r,k)):e.prereqList(k),S}return P(e,t,E(e,n,c),r,s+1)}!function(e){e[e.PropertyAccess=0]="PropertyAccess",e[e.ElementAccess=1]="ElementAccess",e[e.Call=2]="Call",e[e.PropertyCall=3]="PropertyCall",e[e.ElementCall=4]="ElementCall"}(b||(b={})),t.flattenOptionalChain=w,t.transformOptionalChain=function(e,t){const{chain:n,expression:r}=w(e,t);return P(e,n,(0,l.transformExpression)(e,r))}},7937:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformParameters=void 0;const i=r(n(9861)),o=n(7370),a=n(4502),s=n(2396),c=n(5235),l=n(6848),u=n(1782),_=n(833),d=n(837),f=r(n(2137));function p(e,t,n){for(const r of n.elements)if(f.default.isOmittedExpression(r))i.default.list.push(t,i.default.tempId());else{if(r.dotDotDotToken)return void a.DiagnosticService.addDiagnostic(o.errors.noSpreadDestructuring(r));const n=r.name;if(f.default.isIdentifier(n)){const o=(0,l.transformIdentifierDefined)(e,n);(0,d.validateIdentifier)(e,n),i.default.list.push(t,o),r.initializer&&e.prereq((0,u.transformInitializer)(e,o,r.initializer))}else{const o=i.default.tempId("param");i.default.list.push(t,o),r.initializer&&e.prereq((0,u.transformInitializer)(e,o,r.initializer)),f.default.isArrayBindingPattern(n)?(0,s.transformArrayBindingPattern)(e,n,o):(0,c.transformObjectBindingPattern)(e,n,o)}}}t.transformParameters=function(e,t){const n=i.default.list.make(),r=i.default.list.make();let o=!1;(0,_.isMethod)(e,t)&&i.default.list.push(n,i.default.globals.self);for(const a of t.parameters){if(f.default.isThisIdentifier(a.name))continue;if(a.dotDotDotToken&&f.default.isArrayBindingPattern(a.name)){const t=e.capturePrereqs((()=>p(e,n,a.name)));i.default.list.pushList(r,t);continue}let t;if(f.default.isIdentifier(a.name)?(t=(0,l.transformIdentifierDefined)(e,a.name),(0,d.validateIdentifier)(e,a.name)):t=i.default.tempId("param"),a.dotDotDotToken?(o=!0,i.default.list.push(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:t,right:i.default.create(i.default.SyntaxKind.Array,{members:i.default.list.make(i.default.create(i.default.SyntaxKind.VarArgsLiteral,{}))})}))):i.default.list.push(n,t),a.initializer&&i.default.list.push(r,(0,u.transformInitializer)(e,t,a.initializer)),!f.default.isIdentifier(a.name)){const n=a.name;f.default.isArrayBindingPattern(n)?i.default.list.pushList(r,e.capturePrereqs((()=>(0,s.transformArrayBindingPattern)(e,n,t)))):i.default.list.pushList(r,e.capturePrereqs((()=>(0,c.transformObjectBindingPattern)(e,n,t))))}}return{parameters:n,statements:r,hasDotDotDot:o}}},5671:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropertyName=void 0;const i=r(n(9861)),o=n(6671),a=r(n(2137));t.transformPropertyName=function(e,t){return a.default.isIdentifier(t)?i.default.string(t.text):(0,o.transformExpression)(e,a.default.isComputedPropertyName(t)?t.expression:t)}},8228:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformSourceFile=void 0;const i=r(n(9861)),o=n(1979),a=n(6258),s=n(2287),c=n(6848),l=n(8043),u=n(9525),_=n(3527),d=n(1205),f=n(6219),p=r(n(2137));function m(e,t){var n,r;const o=null===(n=t.getDeclarations())||void 0===n?void 0:n[0];if(o&&p.default.isExportSpecifier(o))return[o.name.text,(0,c.transformIdentifierDefined)(e,null!==(r=o.propertyName)&&void 0!==r?r:o.name)];{let e=t.name;return"default"===t.name&&o&&(p.default.isFunctionDeclaration(o)||p.default.isClassDeclaration(o))&&o.name&&(e=o.name.text),[t.name,i.default.id(e)]}}function g(e){if(e.declarations)for(const t of e.declarations)if(p.default.isExportSpecifier(t)){const e=t.parent.parent;if(p.default.isExportDeclaration(e)&&e.moduleSpecifier)return!0}return!1}t.transformSourceFile=function(e,t){const n=e.typeChecker.getSymbolAtLocation(t);(0,s.assert)(n),e.setModuleIdBySymbol(n,i.default.globals.exports);const r=(0,l.transformStatementList)(e,t,t.statements,void 0);!function(e,t,n,r){const o=function(e,t){const n=new Set;for(const r of t.statements)if(p.default.isExportDeclaration(r)&&r.moduleSpecifier)if(r.exportClause){if(p.default.isNamespaceExport(r.exportClause)){const t=e.typeChecker.getSymbolAtLocation(r.exportClause.name);t&&n.add(t)}}else{const t=(0,u.getOriginalSymbolOfNode)(e.typeChecker,r.moduleSpecifier);t&&e.getModuleExports(t).forEach((e=>n.add(e)))}return n}(e,t);let a=e.hasExportFrom;const s=new Array;if(!e.hasExportEquals)for(const t of e.getModuleExports(n)){if(o.has(t))continue;if(t.flags&p.default.SymbolFlags.Prototype)continue;if(g(t))continue;const n=p.default.skipAlias(t,e.typeChecker);if((0,d.isSymbolOfValue)(n))if((0,_.isSymbolMutable)(e,n))a=!0;else{if(n.valueDeclaration){const e=(0,f.getAncestor)(n.valueDeclaration,p.default.isStatement),t=e&&p.default.canHaveModifiers(e)?p.default.getModifiers(e):void 0;if(null==t?void 0:t.some((e=>e.kind===p.default.SyntaxKind.DeclareKeyword)))continue}s.push(m(e,t))}}if(e.hasExportEquals){const e=t.statements[t.statements.length-1];p.default.isExportAssignment(e)&&e.isExportEquals||i.default.list.push(r,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.globals.exports}))}else if(a){i.default.list.unshift(r,i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.globals.exports,right:i.default.map()}));for(const[e,t]of s)i.default.list.push(r,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(i.default.globals.exports,e),operator:"=",right:t}));i.default.list.push(r,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.globals.exports}))}else if(s.length>0){const e=i.default.list.make();for(const[t,n]of s)i.default.list.push(e,i.default.create(i.default.SyntaxKind.MapField,{index:i.default.string(t),value:n}));i.default.list.push(r,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.create(i.default.SyntaxKind.Map,{fields:e})}))}}(e,t,n,r);const c=function(e){for(;e&&i.default.isComment(e.value);)e=e.prev;return e}(r.tail);if(!c||!i.default.isReturnStatement(c.value)){const n=e.pathTranslator.getOutputPath(t.fileName);e.rojoResolver.getRbxTypeFromFilePath(n)===o.RbxType.ModuleScript&&i.default.list.push(r,i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.nil()}))}const h=i.default.list.make();i.default.list.push(h,i.default.comment(` Compiled with roblox-ts v${a.COMPILER_VERSION}`)),e.usesRuntimeLib&&i.default.list.push(h,e.createRuntimeLibImport(t));const y=i.default.list.make();for(;r.head&&i.default.isComment(r.head.value)&&r.head.value.text.startsWith("!");)i.default.list.push(y,i.default.list.shift(r));return i.default.list.unshiftList(r,h),i.default.list.unshiftList(r,y),r}},8043:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformStatementList=void 0;const i=r(n(9861)),o=n(4318),a=n(6749),s=r(n(2137));t.transformStatementList=function(e,t,n,r){var c;const l=i.default.list.make();for(const t of n){const[n,s]=e.capture((()=>(0,o.transformStatement)(e,t)));!0!==e.compilerOptions.removeComments&&i.default.list.pushList(l,e.getLeadingComments(t));const u=(0,a.createHoistDeclaration)(e,t);u&&i.default.list.push(l,u),i.default.list.pushList(l,s),i.default.list.pushList(l,n);const _=null===(c=n.tail)||void 0===c?void 0:c.value;if(_&&i.default.isFinalStatement(_))break;if(r){const e=r.id,n=r.mapping.get(t);if(void 0!==n)for(const t of n)i.default.list.push(l,i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.property(e,t),operator:"=",right:i.default.id(t)}))}}if(!0!==e.compilerOptions.removeComments){const r=function(e,t){if(t.length>0){const e=t[t.length-1],n=e.parent.getLastToken();if(n&&!s.default.isNodeDescendantOf(n,e))return n}else if(e)return e.getLastToken()}(t,n);r&&i.default.list.pushList(l,e.getLeadingComments(r))}return l}},7010:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.transformWritableAssignment=t.transformWritableExpression=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6671),l=n(8576),u=n(6453),_=n(7034),d=n(6219),f=r(n(2137));function p(e,t,n){if(f.default.isPrototypeAccess(t)&&s.DiagnosticService.addDiagnostic(o.errors.noPrototype(t)),f.default.isPropertyAccessExpression(t)){const r=(0,c.transformExpression)(e,t.expression);return i.default.property(n?e.pushToVarIfNonId(r,"exp"):(0,u.convertToIndexableExpression)(r),t.name.text)}if(f.default.isElementAccessExpression(t)){const[r,o]=(0,_.ensureTransformOrder)(e,[t.expression,t.argumentExpression]),a=(0,l.addOneIfArrayType)(e,e.getType(t.expression),o);return i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n?e.pushToVarIfNonId(r,"exp"):(0,u.convertToIndexableExpression)(r),index:n?e.pushToVarIfComplex(a,"index"):a})}{const n=(0,c.transformExpression)(e,(0,d.skipDownwards)(t));return(0,a.assert)(i.default.isWritableExpression(n)),n}}t.transformWritableExpression=p,t.transformWritableAssignment=function(e,t,n,r=!1,o=!1){const a=p(e,t,r),[s,l]=e.capture((()=>(0,c.transformExpression)(e,n))),u=!o||i.default.list.isEmpty(l)?a:e.pushToVar(a,"readable");return e.prereqList(l),{writable:a,readable:u,value:s}}},226:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isNamespace=t.isTemplateLiteralType=t.isUnaryAssignmentOperator=t.isBlockLike=void 0;const i=r(n(2137));t.isBlockLike=function(e){return e.kind===i.default.SyntaxKind.SourceFile||e.kind===i.default.SyntaxKind.Block||e.kind===i.default.SyntaxKind.ModuleBlock||e.kind===i.default.SyntaxKind.CaseClause||e.kind===i.default.SyntaxKind.DefaultClause},t.isUnaryAssignmentOperator=function(e){return e===i.default.SyntaxKind.PlusPlusToken||e===i.default.SyntaxKind.MinusMinusToken},t.isTemplateLiteralType=function(e){return"texts"in e&&"types"in e&&!!(e.flags&i.default.TypeFlags.TemplateLiteral)},t.isNamespace=function(e){return i.default.isModuleDeclaration(e)&&!!(e.flags&i.default.NodeFlags.Namespace)}},5949:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addIndexDiagnostics=void 0;const i=n(7370),o=n(4502),a=n(833),s=n(7011),c=n(6219),l=n(1915),u=r(n(2137));t.addIndexDiagnostics=function(e,t,n){const r=(0,l.getFirstDefinedSymbol)(e,n);(r&&e.services.macroManager.getPropertyCallMacro(r)||!(0,s.isValidMethodIndexWithoutCall)(e,(0,c.skipUpwards)(t))&&(0,a.isMethod)(e,t))&&o.DiagnosticService.addDiagnostic(i.errors.noIndexWithoutCall(t)),u.default.isPrototypeAccess(t)&&o.DiagnosticService.addDiagnostic(i.errors.noPrototype(t))}},8576:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addOneIfArrayType=void 0;const r=n(9582),i=n(1915);t.addOneIfArrayType=function(e,t,n){return(0,i.isDefinitelyType)(t,(0,i.isArrayType)(e),i.isUndefinedType)?(0,r.offset)(n,1):n}},9254:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.arrayBindingPatternContainsHoists=void 0;const i=n(4953),o=r(n(2137));t.arrayBindingPatternContainsHoists=function(e,t){for(const n of t.elements)if(o.default.isBindingElement(n)&&o.default.isIdentifier(n.name)){const t=e.typeChecker.getSymbolAtLocation(n.name);if(t&&((0,i.checkVariableHoist)(e,n.name,t),e.isHoisted.get(t)))return!0}return!1}},6614:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createCompoundAssignmentExpression=t.createCompoundAssignmentStatement=t.createAssignmentExpression=t.getSimpleAssignmentOperator=void 0;const i=r(n(9861)),o=n(3262),a=n(1915),s=r(n(2137)),c=new Map([[s.default.SyntaxKind.MinusEqualsToken,"-="],[s.default.SyntaxKind.AsteriskEqualsToken,"*="],[s.default.SyntaxKind.SlashEqualsToken,"/="],[s.default.SyntaxKind.AsteriskAsteriskEqualsToken,"^="],[s.default.SyntaxKind.PercentEqualsToken,"%="],[s.default.SyntaxKind.PlusPlusToken,"+="],[s.default.SyntaxKind.MinusMinusToken,"-="],[s.default.SyntaxKind.EqualsToken,"="]]);function l(e,t,n,r){return e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:t,operator:n,right:r})),t}t.getSimpleAssignmentOperator=function(e,t,n){return t===s.default.SyntaxKind.PlusEqualsToken?(0,a.isDefinitelyType)(e,a.isStringType)||(0,a.isDefinitelyType)(n,a.isStringType)?"..=":"+=":c.get(t)},t.createAssignmentExpression=l,t.createCompoundAssignmentStatement=function(e,t,n,r,a,s,c,l){return i.default.create(i.default.SyntaxKind.Assignment,{left:n,operator:"=",right:(0,o.createBinaryFromOperator)(e,t,a,r,s,c,l)})},t.createCompoundAssignmentExpression=function(e,t,n,r,i,a,s,c){return l(e,n,"=",(0,o.createBinaryFromOperator)(e,t,i,r,a,s,c))}},3550:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAccessorForBindingType=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(1915),l=r(n(2137));function u(e){return e[e.length-1]}const _=(e,t,n)=>i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:i.default.number(n+1)}),d=(e,t,n,r,o)=>{let a;0===r.length?(a=e.pushToVar(i.default.call(i.default.globals.string.gmatch,[t,i.default.globals.utf8.charpattern]),"matcher"),r.push(a)):a=r[0];const s=i.default.call(a);return o?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:s})),i.default.none()):s},f=(e,t,n,r,o)=>{const a=[t],s=u(r);s&&a.push(s);const c=i.default.call(i.default.globals.next,a);if(o)return e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:c})),i.default.none();{const t=e.pushToVar(c,"value");return r.push(t),t}},p=(e,t,n,r)=>{const o=[t],a=u(r);a&&o.push(a);const s=i.default.tempId("k"),c=i.default.tempId("v"),l=i.default.list.make(s,c);return e.prereq(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:l,right:i.default.call(i.default.globals.next,o)})),r.push(s),i.default.create(i.default.SyntaxKind.Array,{members:l})},m=(e,t,n,r,o)=>{const a=i.default.call(t);return o?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:a})),i.default.none()):i.default.array([a])},g=(e,t,n,r,o)=>{const a=i.default.call(t);return o?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:a})),i.default.none()):a},h=(e,t,n,r,o)=>{const a=i.default.call(i.default.property(t,"next"));return o?(e.prereq(i.default.create(i.default.SyntaxKind.CallStatement,{expression:a})),i.default.none()):i.default.property(a,"value")};t.getAccessorForBindingType=function(e,t,n){return(0,c.isDefinitelyType)(n,(0,c.isArrayType)(e))?_:(0,c.isDefinitelyType)(n,c.isStringType)?d:(0,c.isDefinitelyType)(n,(0,c.isSetType)(e))?f:(0,c.isDefinitelyType)(n,(0,c.isMapType)(e))?p:(0,c.isDefinitelyType)(n,(0,c.isIterableFunctionLuaTupleType)(e))?m:(0,c.isDefinitelyType)(n,(0,c.isIterableFunctionType)(e))?g:(0,c.isDefinitelyType)(n,(0,c.isIterableType)(e))?(s.DiagnosticService.addDiagnostic(o.errors.noIterableIteration(t)),()=>i.default.none()):(0,c.isDefinitelyType)(n,(0,c.isGeneratorType)(e))||(0,c.isDefinitelyType)(n,c.isObjectType)||l.default.isThis(t)?h:void(0,a.assert)(!1,`Destructuring not supported for type: ${e.typeChecker.typeToString(n)}`)}},529:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.objectAccessor=void 0;const i=r(n(9861)),o=n(7370),a=n(5568),s=n(4502),c=n(6671),l=n(5949),u=n(8576),_=r(n(2137));t.objectAccessor=(e,t,n,r)=>((0,l.addIndexDiagnostics)(e,r,e.getType(r)),_.default.isIdentifier(r)?i.default.property(t,r.text):_.default.isComputedPropertyName(r)?i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:(0,u.addOneIfArrayType)(e,n,(0,c.transformExpression)(e,r.expression))}):_.default.isNumericLiteral(r)||_.default.isStringLiteral(r)?i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t,index:(0,c.transformExpression)(e,r)}):_.default.isPrivateIdentifier(r)?(s.DiagnosticService.addDiagnostic(o.errors.noPrivateIdentifier(r)),i.default.none()):(0,a.assertNever)(r,"transformPrefixUnaryExpression"))},4953:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkVariableHoist=void 0;const i=n(2991),o=n(6219),a=r(n(2137));t.checkVariableHoist=function(e,t,n){if(void 0!==e.isHoisted.get(n))return;const r=(0,o.getAncestor)(t,a.default.isStatement);if(!r)return;const s=r.parent;if(!a.default.isCaseClause(s))return;const c=s.parent;!0===a.default.FindAllReferences.Core.eachSymbolReferenceInFile(t,e.typeChecker,t.getSourceFile(),(e=>{if(!(0,o.isAncestorOf)(s,e))return!0}),c)&&((0,i.getOrSetDefault)(e.hoistsByStatement,r.parent,(()=>new Array)).push(t),e.isHoisted.set(n,!0))}},6073:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanModuleName=void 0,t.cleanModuleName=function(e){return e.replace(/\W/g,"_")}},6453:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.convertToIndexableExpression=void 0;const i=r(n(9861));t.convertToIndexableExpression=function(e){return i.default.isIndexableExpression(e)?e:i.default.create(i.default.SyntaxKind.ParenthesizedExpression,{expression:e})}},3262:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createBinaryFromOperator=void 0;const i=r(n(9861)),o=n(2287),a=n(2036),s=n(1915),c=n(6837),l=r(n(2137)),u=new Map([[l.default.SyntaxKind.LessThanToken,"<"],[l.default.SyntaxKind.GreaterThanToken,">"],[l.default.SyntaxKind.LessThanEqualsToken,"<="],[l.default.SyntaxKind.GreaterThanEqualsToken,">="],[l.default.SyntaxKind.EqualsEqualsEqualsToken,"=="],[l.default.SyntaxKind.ExclamationEqualsEqualsToken,"~="],[l.default.SyntaxKind.MinusToken,"-"],[l.default.SyntaxKind.AsteriskToken,"*"],[l.default.SyntaxKind.SlashToken,"/"],[l.default.SyntaxKind.AsteriskAsteriskToken,"^"],[l.default.SyntaxKind.PercentToken,"%"]]),_=new Map([[l.default.SyntaxKind.AmpersandToken,"band"],[l.default.SyntaxKind.BarToken,"bor"],[l.default.SyntaxKind.CaretToken,"bxor"],[l.default.SyntaxKind.LessThanLessThanToken,"lshift"],[l.default.SyntaxKind.GreaterThanGreaterThanGreaterThanToken,"rshift"],[l.default.SyntaxKind.GreaterThanGreaterThanToken,"arshift"],[l.default.SyntaxKind.AmpersandEqualsToken,"band"],[l.default.SyntaxKind.BarEqualsToken,"bor"],[l.default.SyntaxKind.CaretEqualsToken,"bxor"],[l.default.SyntaxKind.LessThanLessThanEqualsToken,"lshift"],[l.default.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken,"rshift"],[l.default.SyntaxKind.GreaterThanGreaterThanEqualsToken,"arshift"]]);t.createBinaryFromOperator=function(e,t,n,r,d,f,p){const m=u.get(d);if(void 0!==m)return i.default.binary(n,m,f);if(d===l.default.SyntaxKind.PlusToken||d===l.default.SyntaxKind.PlusEqualsToken)return function(e,t,n,r){const o=(0,s.isDefinitelyType)(t,s.isStringType),a=(0,s.isDefinitelyType)(r,s.isStringType);return o||a?i.default.binary(o?e:i.default.call(i.default.globals.tostring,[e]),"..",a?n:i.default.call(i.default.globals.tostring,[n])):i.default.binary(e,"+",n)}(n,r,f,p);const g=_.get(d);return void 0!==g?i.default.call(i.default.property(i.default.globals.bit32,g),[n,f]):d===l.default.SyntaxKind.CommaToken?(e.prereqList((0,c.wrapExpressionStatement)(n)),f):void(0,o.assert)(!1,`createBinaryFromOperator unknown operator: ${(0,a.getKindName)(d)}`)}},8446:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createGetService=void 0;const i=r(n(9861));t.createGetService=function(e){return i.default.create(i.default.SyntaxKind.MethodCallExpression,{expression:i.default.globals.game,name:"GetService",args:i.default.list.make(i.default.string(e))})}},6749:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createHoistDeclaration=void 0;const i=r(n(9861)),o=n(6848),a=n(837);t.createHoistDeclaration=function(e,t){const n=e.hoistsByStatement.get(t);if(n&&n.length>0)return n.forEach((t=>(0,a.validateIdentifier)(e,t))),i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.list.make(...n.map((t=>(0,o.transformIdentifierDefined)(e,t)))),right:void 0})}},3842:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createImportExpression=t.getImportParts=void 0;const i=r(n(9861)),o=n(1979),a=r(n(6470)),s=n(6258),c=n(7370),l=n(2287),u=n(4998),_=n(4502),d=n(8446),f=n(4160),p=n(4164),m=r(n(2137));function g(e,t){const n=o.RojoResolver.relative(e,t),r=new Array;let a=0;for(;n[a]===o.RbxPathParent;)r.push(s.PARENT_FIELD),a++;const c=[(0,f.propertyAccessExpressionChain)(i.default.globals.script,r)];for(;ae.capture((()=>(0,a.transformExpression)(e,t))))),r=(0,o.findLastIndex)(n,(e=>!i.default.list.isEmpty(e[1]))),l=new Array;for(let o=0;oe(t,n)));if(i.default.isMap(n))return i.default.list.some(n.fields,(n=>e(t,n.index)||e(t,n.value)));if(i.default.isMixedTable(n))return i.default.list.some(n.fields,(n=>i.default.isMapField(n)?e(t,n.index)||e(t,n.value):e(t,n)));if(r&&(r=(0,a.skipDownwards)(r),s.default.isIdentifier(r))){const e=t.typeChecker.getSymbolAtLocation(r);if(e&&!(0,o.isSymbolMutable)(t,e))return!1}return!0}},8966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendsRoactComponent=void 0;const r=n(3506),i=n(9655),o=n(9525);t.extendsRoactComponent=function(e,t){if(e.services.roactSymbolManager){const n=(0,i.getExtendsNode)(t);if(n){const t=(0,o.getOriginalSymbolOfNode)(e.typeChecker,n.expression);if(t)return t===e.services.roactSymbolManager.getSymbolOrThrow(r.ROACT_SYMBOL_NAMES.Component)||t===e.services.roactSymbolManager.getSymbolOrThrow(r.ROACT_SYMBOL_NAMES.PureComponent)}}return!1}},3901:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAddIterableToArrayBuilder=void 0;const i=r(n(9861)),o=n(7370),a=n(2287),s=n(4502),c=n(6453),l=n(1915),u=n(2161),_=(e,t,n,r,o,a)=>{const s=i.default.list.make(),c=e.pushToVarIfNonId(t,"array");let l=i.default.unary("#",c);return a&&(l=e.pushToVar(l,(0,u.valueToIdStr)(c)+"Length")),i.default.list.push(s,i.default.create(i.default.SyntaxKind.CallStatement,{expression:i.default.call(i.default.globals.table.move,[c,i.default.number(1),l,i.default.binary(r,"+",i.default.number(o+1)),n])})),a&&i.default.list.push(s,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:l})),s},d=(e,t,n,r,o)=>{const a=i.default.list.make();o>0&&i.default.list.push(a,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(o)}));const s=i.default.tempId("char");return i.default.list.push(a,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:i.default.call(i.default.globals.string.gmatch,[t,i.default.globals.utf8.charpattern]),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:r}),operator:"=",right:s}))})),a},f=(e,t,n,r,o)=>{const a=i.default.list.make();o>0&&i.default.list.push(a,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(o)}));const s=i.default.tempId("v");return i.default.list.push(a,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:t,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:r}),operator:"=",right:s}))})),a},p=(e,t,n,r,o)=>{const a=i.default.list.make();o>0&&i.default.list.push(a,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(o)}));const s=i.default.tempId("k"),c=i.default.tempId("v");return i.default.list.push(a,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s,c),expression:t,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:r}),operator:"=",right:i.default.array([s,c])}))})),a},m=(e,t,n,r,o)=>{const a=i.default.list.make();o>0&&i.default.list.push(a,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(o)}));const s=i.default.tempId("result");return i.default.list.push(a,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:t,statements:i.default.list.make(i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:r}),operator:"=",right:s}))})),a},g=(e,t,n,r,o)=>{const a=i.default.list.make();o>0&&i.default.list.push(a,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(o)}));const s=e.pushToVar(t,"iterFunc"),c=i.default.tempId("results");return i.default.list.push(a,i.default.create(i.default.SyntaxKind.WhileStatement,{condition:i.default.bool(!0),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:c,right:i.default.array([i.default.call(s)])}),i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.binary(i.default.unary("#",c),"==",i.default.number(0)),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}),i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:r}),operator:"=",right:c}))})),a},h=(e,t,n,r,o)=>{const a=i.default.list.make();o>0&&i.default.list.push(a,i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(o)}));const s=i.default.tempId("result");return i.default.list.push(a,i.default.create(i.default.SyntaxKind.ForStatement,{ids:i.default.list.make(s),expression:i.default.property((0,c.convertToIndexableExpression)(t),"next"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.IfStatement,{condition:i.default.property(s,"done"),statements:i.default.list.make(i.default.create(i.default.SyntaxKind.BreakStatement,{})),elseBody:i.default.list.make()}),i.default.create(i.default.SyntaxKind.Assignment,{left:r,operator:"+=",right:i.default.number(1)}),i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:n,index:r}),operator:"=",right:i.default.property(s,"value")}))})),a};t.getAddIterableToArrayBuilder=function(e,t,n){return(0,l.isDefinitelyType)(n,(0,l.isArrayType)(e))?_:(0,l.isDefinitelyType)(n,l.isStringType)?d:(0,l.isDefinitelyType)(n,(0,l.isSetType)(e))?f:(0,l.isDefinitelyType)(n,(0,l.isMapType)(e))?p:(0,l.isDefinitelyType)(n,(0,l.isIterableFunctionLuaTupleType)(e))?g:(0,l.isDefinitelyType)(n,(0,l.isIterableFunctionType)(e))?m:(0,l.isDefinitelyType)(n,(0,l.isGeneratorType)(e))?h:(0,l.isDefinitelyType)(n,(0,l.isIterableType)(e))?(s.DiagnosticService.addDiagnostic(o.errors.noIterableIteration(t)),()=>i.default.list.make()):n.isUnion()?(s.DiagnosticService.addDiagnostic(o.errors.noMacroUnion(t)),()=>i.default.list.make()):void(0,a.assert)(!1,`Iteration type not implemented: ${e.typeChecker.typeToString(n)}`)}},835:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getConstantValueLiteral=void 0;const i=r(n(9861));t.getConstantValueLiteral=function(e,t){const n=e.typeChecker.getConstantValue(t);if(void 0!==n)return"string"==typeof n?i.default.string(n):i.default.number(n)}},6117:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDeclaredVariables=void 0;const i=r(n(2137));function o(e,t){if(i.default.isIdentifier(e))t.push(e);else if(i.default.isObjectBindingPattern(e))for(const n of e.elements)o(n.name,t);else if(i.default.isArrayBindingPattern(e))for(const n of e.elements)i.default.isOmittedExpression(n)||o(n.name,t)}t.getDeclaredVariables=function(e){const t=new Array;if(i.default.isVariableDeclarationList(e))for(const n of e.declarations)o(n.name,t);else o(e.name,t);return t}},9655:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getExtendsNode=void 0;const i=r(n(2137));t.getExtendsNode=function(e){var t;for(const n of null!==(t=e.heritageClauses)&&void 0!==t?t:[])if(n.token===i.default.SyntaxKind.ExtendsKeyword)return n.types[0]}},2036:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getKindName=void 0;const i=r(n(2137));t.getKindName=function(e){return e===i.default.SyntaxKind.FirstAssignment?"EqualsToken":e===i.default.SyntaxKind.FirstCompoundAssignment?"PlusEqualsToken":e===i.default.SyntaxKind.LastReservedWord?"WithKeyword":e===i.default.SyntaxKind.FirstKeyword?"BreakKeyword":e===i.default.SyntaxKind.FirstFutureReservedWord?"ImplementsKeyword":e===i.default.SyntaxKind.LastFutureReservedWord?"YieldKeyword":e===i.default.SyntaxKind.FirstTypeNode?"TypePredicate":e===i.default.SyntaxKind.LastTypeNode?"ImportType":e===i.default.SyntaxKind.FirstPunctuation?"OpenBraceToken":e===i.default.SyntaxKind.FirstToken?"Unknown":e===i.default.SyntaxKind.FirstTriviaToken?"SingleLineCommentTrivia":e===i.default.SyntaxKind.LastTriviaToken?"ConflictMarkerTrivia":e===i.default.SyntaxKind.FirstLiteralToken?"NumericLiteral":e===i.default.SyntaxKind.FirstTemplateToken?"NoSubstitutionTemplateLiteral":e===i.default.SyntaxKind.LastTemplateToken?"TemplateTail":e===i.default.SyntaxKind.FirstBinaryOperator?"LessThanToken":e===i.default.SyntaxKind.LastBinaryOperator?"CaretEqualsToken":e===i.default.SyntaxKind.FirstStatement?"VariableStatement":e===i.default.SyntaxKind.LastStatement?"DebuggerStatement":e===i.default.SyntaxKind.FirstNode?"QualifiedName":e===i.default.SyntaxKind.FirstJSDocNode?"JSDocTypeExpression":e===i.default.SyntaxKind.FirstJSDocTagNode?"JSDocTag":e===i.default.SyntaxKind.LastJSDocTagNode?"JSDocPropertyTag":e===i.default.SyntaxKind.FirstContextualKeyword?"AbstractKeyword":e===i.default.SyntaxKind.LastContextualKeyword?"OfKeyword":i.default.SyntaxKind[e]}},9525:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getOriginalSymbolOfNode=void 0;const i=r(n(2137));t.getOriginalSymbolOfNode=function(e,t){const n=e.getSymbolAtLocation(t);return n?i.default.skipAlias(n,e):n}},4164:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSourceFileFromModuleSpecifier=void 0;const i=r(n(2137));t.getSourceFileFromModuleSpecifier=function(e,t){var n;const r=null!==(n=e.typeChecker.getSymbolAtLocation(t))&&void 0!==n?n:e.typeChecker.resolveExternalModuleName(t);if(r){const n=r.valueDeclaration;if(n&&i.default.isModuleDeclaration(n)&&i.default.isStringLiteralLike(n.name)){const r=t.getSourceFile(),o=i.default.getModeForUsageLocation(r,n.name),a=i.default.getResolvedModule(r,n.name.text,o);if(a)return e.program.getSourceFile(a.resolvedFileName)}if(n&&i.default.isSourceFile(n))return n}if(i.default.isStringLiteralLike(t)){const n=t.getSourceFile(),r=i.default.resolveModuleName(t.text,n.path,e.compilerOptions,i.default.sys);if(r.resolvedModule)return e.program.getSourceFile(r.resolvedModule.resolvedFileName)}}},1441:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getStatements=void 0;const i=r(n(2137));t.getStatements=function(e){return i.default.isBlock(e)?e.statements:[e]}},1871:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasMultipleDefinitions=void 0,t.hasMultipleDefinitions=function(e,t){var n;let r=0;for(const i of null!==(n=e.getDeclarations())&&void 0!==n?n:[])if(t(i)&&(r++,r>1))return!0;return!1}},965:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isBreakBlockedByTryStatement=t.isReturnBlockedByTryStatement=void 0;const i=r(n(2137));t.isReturnBlockedByTryStatement=function(e){const t=i.default.findAncestor(e,(e=>i.default.isTryStatement(e)||i.default.isFunctionLikeDeclaration(e)));return void 0!==t&&i.default.isTryStatement(t)},t.isBreakBlockedByTryStatement=function(e){const t=i.default.findAncestor(e,(e=>i.default.isTryStatement(e)||i.default.isIterationStatement(e,!1)||i.default.isSwitchStatement(e)));return void 0!==t&&i.default.isTryStatement(t)}},3968:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isInsideRoactComponent=void 0;const i=n(8966),o=n(6219),a=r(n(2137));t.isInsideRoactComponent=function(e,t){const n=(0,o.getAncestor)(t,a.default.isClassLike);return!!n&&(0,i.extendsRoactComponent)(e,n)}},833:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isMethod=t.isMethodFromType=void 0;const i=n(7370),o=n(2991),a=n(4502),s=n(6219),c=n(1915),l=r(n(2137));function u(e,t){if(l.default.isFunctionLike(t)){const n=function(e){const t=e[0];if(t){const e=t.name;if(l.default.isIdentifier(e)&&l.default.isThisIdentifier(e))return e}}(t.parameters);if(n)return!(e.getType(n).flags&l.default.TypeFlags.Void);if(l.default.isFunctionDeclaration(t))return!1;if(l.default.isMethodDeclaration(t)||l.default.isMethodSignature(t))return!0;if(l.default.isFunctionExpression(t)){const e=(0,s.skipUpwards)(t).parent;if(l.default.isPropertyAssignment(e)){const t=(0,s.skipUpwards)(e).parent;if(l.default.isObjectLiteralExpression(t))return!0}}return!1}return!1}function _(e,t,n){let r=!1;return(0,c.walkTypes)(n,(n=>{n.symbol&&(r||(r=(0,o.getOrSetDefault)(e.multiTransformState.isMethodCache,n.symbol,(()=>function(e,t,n){var r;let o=!1,s=!1;for(const t of n.getCallSignatures()){const n=null===(r=t.thisParameter)||void 0===r?void 0:r.valueDeclaration;n?e.getType(n).flags&l.default.TypeFlags.Void?s=!0:o=!0:t.declaration&&(u(e,t.declaration)?o=!0:s=!0)}return o&&s&&a.DiagnosticService.addDiagnostic(i.errors.noMixedTypeCall(t)),o}(e,t,n)))))})),r}t.isMethodFromType=_,t.isMethod=function(e,t){return _(e,t,e.getType(t))}},2824:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbolFromRobloxTypes=void 0;const i=r(n(6470)),o=n(6258),a=n(2420);t.isSymbolFromRobloxTypes=function(e,t){var n,r;const s=null===(r=null===(n=null==t?void 0:t.valueDeclaration)||void 0===n?void 0:n.getSourceFile())||void 0===r?void 0:r.fileName,c=i.default.join(e.data.nodeModulesPath,o.RBXTS_SCOPE,"types");return void 0!==s&&(0,a.isPathDescendantOf)(s,c)}},3527:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbolMutable=void 0;const i=n(2991),o=n(6219),a=r(n(2137));t.isSymbolMutable=function(e,t){return(0,i.getOrSetDefault)(e.multiTransformState.isDefinedAsLetCache,t,(()=>{if(t.valueDeclaration){if(a.default.isParameter(t.valueDeclaration))return!0;const e=(0,o.getAncestor)(t.valueDeclaration,a.default.isVariableDeclarationList);if(e)return!!(e.flags&a.default.NodeFlags.Let)}return!1}))}},1205:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbolOfValue=void 0;const i=r(n(2137));t.isSymbolOfValue=function(e){return!(!(e.flags&i.default.SymbolFlags.Value)||e.flags&i.default.SymbolFlags.ConstEnum)}},6409:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isUsedAsStatement=void 0;const i=n(6219),o=r(n(2137));t.isUsedAsStatement=function e(t){const n=(0,i.skipUpwards)(t),r=n.parent;return!!o.default.isExpressionStatement(r)||!(!o.default.isForStatement(r)||r.condition===n)||!(!o.default.isDeleteExpression(r)||!e(r))}},7011:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidMethodIndexWithoutCall=void 0;const i=n(6662),o=n(1915),a=r(n(2137));t.isValidMethodIndexWithoutCall=function(e,t){const{parent:n}=t;if(a.default.isBinaryExpression(n))return!0;if(a.default.isPrefixUnaryExpression(n))return!0;if(a.default.isCallExpression(n)){const t=e.typeChecker.getNonOptionalType(e.getType(n.expression)),r=(0,o.getFirstDefinedSymbol)(e,t);if(r){const t=e.services.macroManager.getCallMacro(r);if(t===i.CALL_MACROS.typeIs||t===i.CALL_MACROS.typeOf)return!0}}return!1}},8368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT_ATTRIBUTE_NAME=t.CHANGE_ATTRIBUTE_NAME=t.REF_ATTRIBUTE_NAME=t.KEY_ATTRIBUTE_NAME=void 0,t.KEY_ATTRIBUTE_NAME="Key",t.REF_ATTRIBUTE_NAME="Ref",t.CHANGE_ATTRIBUTE_NAME="Change",t.EVENT_ATTRIBUTE_NAME="Event"},9693:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createRoactIndex=void 0;const i=r(n(9861)),o=n(4160);t.createRoactIndex=function(...e){return(0,o.propertyAccessExpressionChain)(i.default.id("Roact"),e)}},5794:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributeNameText=void 0;const i=r(n(2137));t.getAttributeNameText=function(e){return i.default.isIdentifier(e)?e.text:`${e.namespace.text}:${e.name.text}`}},8223:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAttributes=void 0;const i=r(n(2137));t.getAttributes=function(e){return i.default.isJsxElement(e)?e.openingElement.attributes:e.attributes}},7472:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getKeyAttributeInitializer=void 0;const i=n(8368),o=n(5794),a=n(8223),s=r(n(2137));t.getKeyAttributeInitializer=function(e){for(const t of(0,a.getAttributes)(e).properties)if(s.default.isJsxAttribute(t)&&(0,o.getAttributeNameText)(t.name)===i.KEY_ATTRIBUTE_NAME&&t.initializer){if(s.default.isStringLiteral(t.initializer))return t.initializer;if(s.default.isJsxExpression(t.initializer))return t.initializer.expression}}},9582:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.offset=void 0;const i=r(n(9861));function o(e){if(i.default.isNumberLiteral(e))return Number(e.value);if(i.default.isUnaryExpression(e)&&"-"===e.operator){const t=o(e.expression);if(void 0!==t)return-t}}t.offset=function(e,t){if(0===t)return e;const n=o(e);return void 0!==n?i.default.number(n+t):i.default.binary(e,t>0?"+":"-",i.default.number(Math.abs(t)))}},274:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.disableMixedTableInline=t.disableArrayInline=t.disableMapInline=t.assignToMixedTablePointer=t.assignToMapPointer=t.createMixedTablePointer=t.createArrayPointer=t.createMapPointer=void 0;const i=r(n(9861));t.createMapPointer=function(e){return{name:e,value:i.default.map()}},t.createArrayPointer=function(e){return{name:e,value:i.default.array()}},t.createMixedTablePointer=function(e){return{name:e,value:i.default.mixedTable()}},t.assignToMapPointer=function(e,t,n,r){i.default.isMap(t.value)?i.default.list.push(t.value.fields,i.default.create(i.default.SyntaxKind.MapField,{index:n,value:r})):e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t.value,index:n}),operator:"=",right:r}))},t.assignToMixedTablePointer=function(e,t,n,r){i.default.isMixedTable(t.value)?i.default.list.push(t.value.fields,i.default.create(i.default.SyntaxKind.MapField,{index:n,value:r})):e.prereq(i.default.create(i.default.SyntaxKind.Assignment,{left:i.default.create(i.default.SyntaxKind.ComputedIndexExpression,{expression:t.value,index:n}),operator:"=",right:r}))},t.disableMapInline=function(e,t){i.default.isMap(t.value)&&(t.value=e.pushToVar(t.value,t.name))},t.disableArrayInline=function(e,t){i.default.isArray(t.value)&&(t.value=e.pushToVar(t.value,t.name))},t.disableMixedTableInline=function(e,t){i.default.isMixedTable(t.value)&&(t.value=e.pushToVar(t.value,t.name))}},6219:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getModuleAncestor=t.getAncestor=t.skipUpwards=t.skipDownwards=t.isAncestorOf=void 0;const i=r(n(2137));function o(e,t){let n=e;for(;n&&!t(n);)n=n.parent;return n}function a(e){return i.default.isSourceFile(e)||i.default.isModuleDeclaration(e)}t.isAncestorOf=function(e,t){do{if(e===t)return!0;t=t.parent}while(t);return!1},t.skipDownwards=function(e){for(;i.default.isNonNullExpression(e)||i.default.isParenthesizedExpression(e)||i.default.isAsExpression(e)||i.default.isTypeAssertionExpression(e)||i.default.isSatisfiesExpression(e);)e=e.expression;return e},t.skipUpwards=function(e){let t=e.parent;for(;t&&(i.default.isNonNullExpression(t)||i.default.isParenthesizedExpression(t)||i.default.isAsExpression(t)||i.default.isTypeAssertionExpression(t)||i.default.isSatisfiesExpression(t));)t=(e=t).parent;return e},t.getAncestor=o,t.getModuleAncestor=function(e){return o(e,a)}},1915:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeArguments=t.getFirstDefinedSymbol=t.getFirstConstructSymbol=t.walkTypes=t.isRoactElementType=t.isEmptyStringType=t.isUndefinedType=t.isObjectType=t.isIterableType=t.isIterableFunctionLuaTupleType=t.isLuaTupleType=t.isIterableFunctionType=t.isGeneratorType=t.isMapType=t.isSetType=t.isArrayType=t.isStringType=t.isNaNType=t.isNumberLiteralType=t.isNumberType=t.isBooleanLiteralType=t.isBooleanType=t.isAnyType=t.isDefinedType=t.isPossiblyType=t.isDefinitelyType=void 0;const i=n(3115),o=n(1677),a=n(226),s=r(n(2137));function c(e,t){var n;for(const r of null!==(n=t.getBaseTypes())&&void 0!==n?n:[])e.push(r),r.isClassOrInterface()&&c(e,r)}function l(e){const t=new Array;return c(t,e),t}function u(e,t){return e.isUnion()?e.types.every((e=>u(e,t))):e.isIntersection()?e.types.some((e=>u(e,t))):!(!e.isClassOrInterface()||!l(e).some((e=>u(e,t))))||t.some((t=>t(e)))}function _(e,t){return e.isUnionOrIntersection()?e.types.some((e=>_(e,t))):!(!e.isClassOrInterface()||!l(e).some((e=>_(e,t))))||!!(e.flags&(s.default.TypeFlags.TypeVariable|s.default.TypeFlags.AnyOrUnknown))||(d(e)?1!==t.length||t[0]!==y:t.some((t=>t(e))))}function d(e){return e.flags===s.default.TypeFlags.Object&&0===e.getProperties().length&&0===e.getCallSignatures().length&&0===e.getConstructSignatures().length&&void 0===e.getNumberIndexType()&&void 0===e.getStringIndexType()}function f(e){return!!(e.flags&(s.default.TypeFlags.Boolean|s.default.TypeFlags.BooleanLiteral))}function p(e){return!!(e.flags&(s.default.TypeFlags.Number|s.default.TypeFlags.NumberLike|s.default.TypeFlags.NumberLiteral))}function m(e){return!!(e.flags&(s.default.TypeFlags.String|s.default.TypeFlags.StringLike|s.default.TypeFlags.StringLiteral))}function g(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.IterableFunction)}function h(e){return t=>t.getProperty(o.NOMINAL_LUA_TUPLE_NAME)===e.services.macroManager.getSymbolOrThrow(o.NOMINAL_LUA_TUPLE_NAME)}function y(e){return!!(e.flags&(s.default.TypeFlags.Undefined|s.default.TypeFlags.Void))}function v(e,t){var n;return null!==(n=e.typeChecker.getTypeArguments(t))&&void 0!==n?n:[]}t.isDefinitelyType=function(e,...t){var n;return u(null!==(n=e.getConstraint())&&void 0!==n?n:e,t)},t.isPossiblyType=function(e,...t){var n;return _(null!==(n=e.getConstraint())&&void 0!==n?n:e,t)},t.isDefinedType=d,t.isAnyType=function(e){return t=>t===e.typeChecker.getAnyType()},t.isBooleanType=f,t.isBooleanLiteralType=function(e,t){return n=>n.flags&s.default.TypeFlags.BooleanLiteral?n===(t?e.typeChecker.getTrueType():e.typeChecker.getFalseType()):f(n)},t.isNumberType=p,t.isNumberLiteralType=function(e){return t=>t.isNumberLiteral()?t.value===e:p(t)},t.isNaNType=function(e){return p(e)&&!e.isNumberLiteral()},t.isStringType=m,t.isArrayType=function(e){return t=>e.typeChecker.isTupleType(t)||e.typeChecker.isArrayLikeType(t)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadonlyArray)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Array)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadVoxelsArray)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.TemplateStringsArray)},t.isSetType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Set)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadonlySet)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.WeakSet)},t.isMapType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Map)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.ReadonlyMap)||t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.WeakMap)},t.isGeneratorType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Generator)},t.isIterableFunctionType=g,t.isLuaTupleType=h,t.isIterableFunctionLuaTupleType=function(e){return t=>{if(g(e)(t)){const n=v(e,t)[0];return void 0!==n&&h(e)(n)}return!1}},t.isIterableType=function(e){return t=>t.symbol===e.services.macroManager.getSymbolOrThrow(i.SYMBOL_NAMES.Iterable)},t.isObjectType=function(e){return!!(e.flags&s.default.TypeFlags.Object)},t.isUndefinedType=y,t.isEmptyStringType=function(e){return e.isStringLiteral()?""===e.value:(0,a.isTemplateLiteralType)(e)?0===e.texts.length||e.texts.every((e=>0===e.length)):m(e)},t.isRoactElementType=function(e){return t=>{var n;const r=null===(n=e.services.roactSymbolManager)||void 0===n?void 0:n.getSymbolOrThrow(i.ROACT_SYMBOL_NAMES.Element);return void 0!==r&&t.symbol===r}},t.walkTypes=function e(t,n){if(t.isUnionOrIntersection())for(const r of t.types)e(r,n);else{const r=t.getConstraint();r&&r!==t?e(r,n):n(t)}},t.getFirstConstructSymbol=function(e,t){const n=e.getType(t);if(n.symbol){const e=n.symbol.getDeclarations();if(e)for(const t of e)if(s.default.isInterfaceDeclaration(t))for(const e of t.members)if(s.default.isConstructSignatureDeclaration(e))return e.symbol}},t.getFirstDefinedSymbol=function(e,t){if(!t.isUnionOrIntersection())return t.symbol;for(const n of t.types)if(n.symbol&&!e.typeChecker.isUndefinedSymbol(n.symbol))return n.symbol},t.getTypeArguments=v},837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateIdentifier=void 0;const i=r(n(9861)),o=n(7370),a=n(4502);t.validateIdentifier=function(e,t){i.default.isValidIdentifier(t.text)?i.default.isReservedIdentifier(t.text)&&a.DiagnosticService.addDiagnostic(o.errors.noReservedIdentifier(t)):a.DiagnosticService.addDiagnostic(o.errors.noInvalidIdentifier(t))}},4735:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMethodAssignment=void 0;const i=n(7370),o=n(4502),a=n(833),s=n(1915),c=r(n(2137));function l(e){let t=!1;return(0,s.walkTypes)(e,(e=>{t||(t=e.getCallSignatures().length>0)})),t}function u(e,t,n,r){if(l(n)&&l(r)){const s=(0,a.isMethodFromType)(e,t,r);(0,a.isMethodFromType)(e,t,n)!==s&&(s?o.DiagnosticService.addDiagnostic(i.errors.expectedMethodGotFunction(t)):o.DiagnosticService.addDiagnostic(i.errors.expectedFunctionGotMethod(t)))}}function _(e,t,n){const r=c.default.getPropertyNameForPropertyNameNode(t.name);if(!r)return;const i=e.getType(t),o=e.typeChecker.getTypeOfPropertyOfType(e.getType(n),r);o&&u(e,t,i,o)}t.validateMethodAssignment=function(e,t){if(c.default.isClassElement(t)&&c.default.isClassLike(t.parent)&&t.name)for(const n of c.default.getAllSuperTypeNodes(t.parent))_(e,t,n);else c.default.isObjectLiteralElementLike(t)&&(c.default.isSpreadAssignment(t)?c.default.isObjectLiteralExpression(t.expression)||function(e,t){const n=e.getType(t.expression),r=e.typeChecker.getContextualType(t.expression);if(r)for(const i of n.getProperties()){const o=e.typeChecker.getTypeOfPropertyOfType(n,i.name),a=e.typeChecker.getTypeOfPropertyOfType(r,i.name);o&&a&&u(e,t,o,a)}}(e,t):function(e,t){const n=e.getType(t),r=e.typeChecker.getContextualTypeForObjectLiteralElement(t);r&&r!==n&&u(e,t,n,r)}(e,t))}},3972:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateNotAnyType=void 0;const i=n(7370),o=n(4502),a=n(9525),s=n(6219),c=n(1915),l=r(n(2137));t.validateNotAnyType=function(e,t){l.default.isSpreadElement(t)&&(t=(0,s.skipDownwards)(t.expression));let n=e.getType(t);if((0,c.isDefinitelyType)(n,(0,c.isArrayType)(e))){const t=e.typeChecker.getIndexTypeOfType(n,l.default.IndexKind.Number);t&&(n=t)}if((0,c.isDefinitelyType)(n,(0,c.isAnyType)(e))){const n=(0,a.getOriginalSymbolOfNode)(e.typeChecker,t);n&&!e.multiTransformState.isReportedByNoAnyCache.has(n)&&(e.multiTransformState.isReportedByNoAnyCache.add(n),o.DiagnosticService.addDiagnostic(i.errors.noAny(t)))}}},2161:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.valueToIdStr=void 0;const i=r(n(9861));function o(e){return i.default.isIdentifier(e)||i.default.isPropertyAccessExpression(e)?e.name:i.default.isCallExpression(e)&&i.default.isPropertyAccessExpression(e.expression)&&"new"===e.expression.name?o(e.expression.expression):void 0}t.valueToIdStr=function(e){const t=o(e);return void 0!==t&&i.default.isValidIdentifier(t)?(n=t).charAt(0).toLowerCase()+n.slice(1):"";var n}},6837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapExpressionStatement=void 0;const i=r(n(9861));t.wrapExpressionStatement=function(e){return i.default.isTemporaryIdentifier(e)||i.default.isNone(e)?i.default.list.make():i.default.isCall(e)?i.default.list.make(i.default.create(i.default.SyntaxKind.CallStatement,{expression:e})):i.default.list.make(i.default.create(i.default.SyntaxKind.VariableDeclaration,{left:i.default.tempId(),right:e}))}},1511:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapReturnIfLuaTuple=void 0;const i=r(n(9861)),o=n(9254),a=n(6219),s=n(1915),c=r(n(2137));t.wrapReturnIfLuaTuple=function(e,t,n){return(0,s.isLuaTupleType)(e)(e.getType(t))&&function(e,t,n){if(!i.default.isCall(n))return!0;const r=(0,a.skipUpwards)(t),s=r.parent;return!(c.default.isExpressionStatement(s)||c.default.isForStatement(s)&&s.condition!==r||c.default.isVariableDeclaration(s)&&c.default.isArrayBindingPattern(s.name)&&!(0,o.arrayBindingPatternContainsHoists)(e,s.name)||c.default.isAssignmentExpression(s)&&c.default.isArrayLiteralExpression(s.left)||c.default.isElementAccessExpression(s)||c.default.isReturnStatement(s)||c.default.isVoidExpression(s))}(e,t,n)?i.default.array([n]):n}},6442:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapStatementsAsGenerator=void 0;const i=r(n(9861));t.wrapStatementsAsGenerator=function(e,t,n){return i.default.list.make(i.default.create(i.default.SyntaxKind.ReturnStatement,{expression:i.default.call(e.TS(t,"generator"),[i.default.create(i.default.SyntaxKind.FunctionExpression,{hasDotDotDot:!1,parameters:i.default.list.make(),statements:n})])}))}},540:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=Math.floor,g=String.fromCharCode;function h(e){throw new RangeError(p[e])}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(f,".")).split("."),t).join(".")}function v(e){for(var t=[],n=0,r=e.length;n=55296&&i<=56319&&n>1,e+=m(e/t);e>455;r+=u)e=m(e/35);return m(r+36*e/(e+38))},S=function(e){var t,n=[],r=e.length,i=0,o=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var c=0;c=128&&h("not-basic"),n.push(e.charCodeAt(c));for(var _=s>0?s+1:0;_=r&&h("invalid-input");var g=(t=e.charCodeAt(_++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u;(g>=u||g>m((l-i)/f))&&h("overflow"),i+=g*f;var y=p<=a?1:p>=a+26?26:p-a;if(gm(l/v)&&h("overflow"),f*=v}var b=n.length+1;a=x(i-d,b,0==d),m(i/b)>l-o&&h("overflow"),o+=m(i/b),i%=b,n.splice(i++,0,o)}return String.fromCodePoint.apply(String,n)},k=function(e){var t=[],n=(e=v(e)).length,r=128,i=0,o=72,a=!0,s=!1,c=void 0;try{for(var _,d=e[Symbol.iterator]();!(a=(_=d.next()).done);a=!0){var f=_.value;f<128&&t.push(g(f))}}catch(e){s=!0,c=e}finally{try{!a&&d.return&&d.return()}finally{if(s)throw c}}var p=t.length,y=p;for(p&&t.push("-");y=r&&Dm((l-i)/N)&&h("overflow"),i+=(S-r)*N,r=S;var A=!0,P=!1,F=void 0;try{for(var I,O=e[Symbol.iterator]();!(A=(I=O.next()).done);A=!0){var M=I.value;if(Ml&&h("overflow"),M==r){for(var L=i,R=u;;R+=u){var j=R<=o?1:R>=o+26?26:R-o;if(L>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function D(e){for(var t="",n=0,r=e.length;n=194&&i<224){if(r-n>=6){var o=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&i)<<6|63&o)}else t+=e.substr(n,6);n+=6}else if(i>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&i)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function N(e,t){function n(e){var n=D(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,E).replace(t.PCT_ENCODED,i)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,E).replace(t.PCT_ENCODED,i)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,E).replace(t.PCT_ENCODED,i)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,E).replace(t.PCT_ENCODED,i)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,E).replace(t.PCT_ENCODED,i)),e}function A(e){return e.replace(/^0*(.*)/,"$1")||"0"}function P(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=c(n,2)[1];return r?r.split(".").map(A).join("."):e}function F(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=c(n,3),i=r[1],o=r[2];if(i){for(var a=i.toLowerCase().split("::").reverse(),s=c(a,2),l=s[0],u=s[1],_=u?u.split(":").map(A):[],d=l.split(":").map(A),f=t.IPV4ADDRESS.test(d[d.length-1]),p=f?7:8,m=d.length-p,g=Array(p),h=0;h1){var b=g.slice(0,y.index),x=g.slice(y.index+y.length);v=b.join(":")+"::"+x.join(":")}else v=g.join(":");return o&&(v+="%"+o),v}return e}var I=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,O=void 0==="".match(/(){0}/)[1];function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var i=e.match(I);if(i){O?(n.scheme=i[1],n.userinfo=i[3],n.host=i[4],n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=i[7],n.fragment=i[8],isNaN(n.port)&&(n.port=i[5])):(n.scheme=i[1]||void 0,n.userinfo=-1!==e.indexOf("@")?i[3]:void 0,n.host=-1!==e.indexOf("//")?i[4]:void 0,n.port=parseInt(i[5],10),n.path=i[6]||"",n.query=-1!==e.indexOf("?")?i[7]:void 0,n.fragment=-1!==e.indexOf("#")?i[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?i[4]:void 0)),n.host&&(n.host=F(P(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var o=w[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||o&&o.unicodeSupport)N(n,r);else{if(n.host&&(t.domainHost||o&&o.domainHost))try{n.host=T(n.host.replace(r.PCT_ENCODED,D).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}N(n,a)}o&&o.parse&&o.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function L(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(F(P(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var R=/^\.\.?\//,j=/^\/\.(\/|$)/,B=/^\/\.\.(\/|$)/,J=/^\/?(?:.|\n)*?(?=\/|$)/;function z(e){for(var t=[];e.length;)if(e.match(R))e=e.replace(R,"");else if(e.match(j))e=e.replace(j,"/");else if(e.match(B))e=e.replace(B,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(J);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],i=w[(t.scheme||e.scheme||"").toLowerCase()];if(i&&i.serialize&&i.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||i&&i.domainHost)try{e.host=t.iri?C(e.host):T(e.host.replace(n.PCT_ENCODED,D).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}N(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var o=L(e,t);if(void 0!==o&&("suffix"!==t.reference&&r.push("//"),r.push(o),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var c=e.path;t.absolutePath||i&&i.absolutePath||(c=z(c)),void 0===o&&(c=c.replace(/^\/\//,"/%2F")),r.push(c)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function V(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=M($(e,n),n),t=M($(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=z(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=z(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=z(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=z(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function K(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,D)}var U={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},q={scheme:"https",domainHost:U.domainHost,parse:U.parse,serialize:U.serialize};function W(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var H={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=W(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(W(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=c(n,2),i=r[0],o=r[1];e.path=i&&"/"!==i?i:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},G={scheme:"wss",domainHost:H.domainHost,parse:H.parse,serialize:H.serialize},X={},Y="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Q="[0-9A-Fa-f]",Z=n(n("%[EFef][0-9A-Fa-f]%"+Q+Q+"%"+Q+Q)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+Q+Q)+"|"+n("%"+Q+Q)),ee=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),te=new RegExp(Y,"g"),ne=new RegExp(Z,"g"),re=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',ee),"g"),ie=new RegExp(t("[^]",Y,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),oe=ie;function ae(e){var t=D(e);return t.match(te)?t:e}var se={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var i=!1,o={},a=n.query.split("&"),s=0,c=a.length;s0})).map((function(e){return"-- ".concat(e)})).join("\n")}postMessage({source:n})}else"writeFile"===e.data.type?t.vfs.writeFile(e.data.filePath,e.data.content):"setMapping"===e.data.type&&t.setMapping(e.data.typingsPath,e.data.mainPath)})),console.log("roblox-ts@".concat(e.COMPILER_VERSION))}()}(); \ No newline at end of file