(()=>{var t={3834:(t,e)=>{"use strict";const s=!0,r=!0,i=!0,n=!0;class o{constructor(t,e={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.updateContext=void 0,this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.rightAssociative=!!e.rightAssociative,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=null!=e.binop?e.binop:null,this.updateContext=null}}const a=new Map;function c(t,e={}){e.keyword=t;const s=new o(t,e);return a.set(t,s),s}function l(t,e){return new o(t,{beforeExpr:s,binop:e})}const h={num:new o("num",{startsExpr:r}),bigint:new o("bigint",{startsExpr:r}),decimal:new o("decimal",{startsExpr:r}),regexp:new o("regexp",{startsExpr:r}),string:new o("string",{startsExpr:r}),name:new o("name",{startsExpr:r}),eof:new o("eof"),bracketL:new o("[",{beforeExpr:s,startsExpr:r}),bracketHashL:new o("#[",{beforeExpr:s,startsExpr:r}),bracketBarL:new o("[|",{beforeExpr:s,startsExpr:r}),bracketR:new o("]"),bracketBarR:new o("|]"),braceL:new o("{",{beforeExpr:s,startsExpr:r}),braceBarL:new o("{|",{beforeExpr:s,startsExpr:r}),braceHashL:new o("#{",{beforeExpr:s,startsExpr:r}),braceR:new o("}"),braceBarR:new o("|}"),parenL:new o("(",{beforeExpr:s,startsExpr:r}),parenR:new o(")"),comma:new o(",",{beforeExpr:s}),semi:new o(";",{beforeExpr:s}),colon:new o(":",{beforeExpr:s}),doubleColon:new o("::",{beforeExpr:s}),dot:new o("."),question:new o("?",{beforeExpr:s}),questionDot:new o("?."),arrow:new o("=>",{beforeExpr:s}),template:new o("template"),ellipsis:new o("...",{beforeExpr:s}),backQuote:new o("`",{startsExpr:r}),dollarBraceL:new o("${",{beforeExpr:s,startsExpr:r}),at:new o("@"),hash:new o("#",{startsExpr:r}),interpreterDirective:new o("#!..."),eq:new o("=",{beforeExpr:s,isAssign:true}),assign:new o("_=",{beforeExpr:s,isAssign:true}),incDec:new o("++/--",{prefix:n,postfix:!0,startsExpr:r}),bang:new o("!",{beforeExpr:s,prefix:n,startsExpr:r}),tilde:new o("~",{beforeExpr:s,prefix:n,startsExpr:r}),pipeline:l("|>",0),nullishCoalescing:l("??",1),logicalOR:l("||",1),logicalAND:l("&&",2),bitwiseOR:l("|",3),bitwiseXOR:l("^",4),bitwiseAND:l("&",5),equality:l("==/!=/===/!==",6),relational:l("/<=/>=",7),bitShift:l("<>/>>>",8),plusMin:new o("+/-",{beforeExpr:s,binop:9,prefix:n,startsExpr:r}),modulo:new o("%",{beforeExpr:s,binop:10,startsExpr:r}),star:new o("*",{binop:10}),slash:l("/",10),exponent:new o("**",{beforeExpr:s,binop:11,rightAssociative:!0}),_break:c("break"),_case:c("case",{beforeExpr:s}),_catch:c("catch"),_continue:c("continue"),_debugger:c("debugger"),_default:c("default",{beforeExpr:s}),_do:c("do",{isLoop:i,beforeExpr:s}),_else:c("else",{beforeExpr:s}),_finally:c("finally"),_for:c("for",{isLoop:i}),_function:c("function",{startsExpr:r}),_if:c("if"),_return:c("return",{beforeExpr:s}),_switch:c("switch"),_throw:c("throw",{beforeExpr:s,prefix:n,startsExpr:r}),_try:c("try"),_var:c("var"),_const:c("const"),_while:c("while",{isLoop:i}),_with:c("with"),_new:c("new",{beforeExpr:s,startsExpr:r}),_this:c("this",{startsExpr:r}),_super:c("super",{startsExpr:r}),_class:c("class",{startsExpr:r}),_extends:c("extends",{beforeExpr:s}),_export:c("export"),_import:c("import",{startsExpr:r}),_null:c("null",{startsExpr:r}),_true:c("true",{startsExpr:r}),_false:c("false",{startsExpr:r}),_in:c("in",{beforeExpr:s,binop:7}),_instanceof:c("instanceof",{beforeExpr:s,binop:7}),_typeof:c("typeof",{beforeExpr:s,prefix:n,startsExpr:r}),_void:c("void",{beforeExpr:s,prefix:n,startsExpr:r}),_delete:c("delete",{beforeExpr:s,prefix:n,startsExpr:r})},p=/\r\n?|[\n\u2028\u2029]/,u=new RegExp(p.source,"g");function d(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}const f=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function m(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}class y{constructor(t,e){this.line=void 0,this.column=void 0,this.line=t,this.column=e}}class x{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}}function g(t){return t[t.length-1]}const b=Object.freeze({AccessorIsGenerator:"A %0ter cannot be a generator",ArgumentsInClass:"'arguments' is only allowed in functions and class methods",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function",AwaitExpressionFormalParameter:"await is not allowed in async function parameters",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules",AwaitNotInAsyncFunction:"'await' is only allowed within async functions",BadGetterArity:"getter must not have any formal parameters",BadSetterArity:"setter must have exactly one formal parameter",BadSetterRestParameter:"setter function argument must not be a rest parameter",ConstructorClassField:"Classes may not have a field named 'constructor'",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'",ConstructorIsAccessor:"Class constructor may not be an accessor",ConstructorIsAsync:"Constructor can't be an async function",ConstructorIsGenerator:"Constructor can't be a generator",DeclarationMissingInitializer:"%0 require an initialization value",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon",DecoratorStaticBlock:"Decorators can't be used with a static block",DeletePrivateField:"Deleting a private field is not allowed",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:"`%0` has already been exported. Exported identifiers must be unique.",DuplicateProto:"Redefinition of __proto__ property",DuplicateRegExpFlags:"Duplicate regular expression flag",DuplicateStaticBlock:"Duplicate static block in the same class",ElementAfterRest:"Rest element must be last element",EscapedCharNotAnIdentifier:"Invalid Unicode escape",ExportBindingIsString:"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { %0 as '%1' } from 'some-module'`?",ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block",IllegalBreakContinue:"Unsyntactic %0",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"'return' outside of function",ImportBindingIsString:'A string literal cannot be used as an imported binding.\n- Did you mean `import { "%0" as foo }`?',ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments",ImportCallArity:"import() requires exactly %0",ImportCallNotNewExpression:"Cannot use new with import(...)",ImportCallSpreadArgument:"... is not allowed in import()",ImportMetaOutsideModule:"import.meta may appear only with 'sourceType: \"module\"'",ImportOutsideModule:"'import' and 'export' may appear only with 'sourceType: \"module\"'",InvalidBigIntLiteral:"Invalid BigIntLiteral",InvalidCodePoint:"Code point out of bounds",InvalidDecimal:"Invalid decimal",InvalidDigit:"Expected number in radix %0",InvalidEscapeSequence:"Bad character escape sequence",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template",InvalidEscapedReservedWord:"Escape sequence in keyword %0",InvalidIdentifier:"Invalid identifier %0",InvalidLhs:"Invalid left-hand side in %0",InvalidLhsBinding:"Binding invalid left-hand side in %0",InvalidNumber:"Invalid number",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'",InvalidOrUnexpectedToken:"Unexpected character '%0'",InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern",InvalidPrivateFieldResolution:"Private name #%0 is not defined",InvalidPropertyBindingPattern:"Binding member expression",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions",InvalidRestAssignmentPattern:"Invalid rest operator's argument",LabelRedeclaration:"Label '%0' is already declared",LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'",MalformedRegExpFlags:"Invalid regular expression flag",MissingClassName:"A class name is required",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values",ModuleAttributesWithDuplicateKeys:'Duplicate key "%0" is not allowed in module attributes',ModuleExportNameHasLoneSurrogate:"An export name cannot include a lone surrogate, found '\\u%0'",ModuleExportUndefined:"Export '%0' is not defined",MultipleDefaultsInSwitch:"Multiple default clauses",NewlineAfterThrow:"Illegal newline after throw",NoCatchOrFinally:"Missing catch or finally clause",NumberIdentifier:"Identifier directly after number",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences",ObsoleteAwaitStar:"await* has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"constructors in/after an Optional Chain are not allowed",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain",ParamDupe:"Argument name clash",PatternHasAccessor:"Object pattern can't contain getter or setter",PatternHasMethod:"Object pattern can't contain methods",PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding",PrimaryTopicRequiresSmartPipeline:"Primary Topic Reference found but pipelineOperator not passed 'smart' for 'proposal' option.",PrivateInExpectedIn:"Private names are only allowed in property accesses (`obj.#%0`) or in `in` expressions (`#%0 in obj`)",PrivateNameRedeclaration:"Duplicate private name #%0",RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'",RecordNoProto:"'__proto__' is not allowed in Record expressions",RestTrailingComma:"Unexpected trailing comma after rest element",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",StaticPrototype:"Classes may not have static property named prototype",StrictDelete:"Deleting local variable in strict mode",StrictEvalArguments:"Assigning to '%0' in strict mode",StrictEvalArgumentsBinding:"Binding '%0' in strict mode",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode",StrictWith:"'with' in strict mode",SuperNotAllowed:"super() is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super",TrailingDecorator:"Decorators must be attached to a class element",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal',UnexpectedDigitAfterHash:"Unexpected digit after hash token",UnexpectedImportExport:"'import' and 'export' may only appear at the top level",UnexpectedKeyword:"Unexpected keyword '%0'",UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context",UnexpectedNewTarget:"new.target can only be used in functions",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits",UnexpectedPrivateField:"Private names can only be used as the name of a class element (i.e. class C { #p = 42; #m() {} } )\n or a property of member expression (i.e. this.#p).",UnexpectedReservedWord:"Unexpected reserved word '%0'",UnexpectedSuper:"super is only allowed in object methods and classes",UnexpectedToken:"Unexpected token '%0'",UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"import can only be used in import() or import.meta",UnsupportedMetaProperty:"The only valid meta property for %0 is %0.%1",UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties",UnsupportedSuper:"super can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop])",UnterminatedComment:"Unterminated comment",UnterminatedRegExp:"Unterminated regular expression",UnterminatedString:"Unterminated string constant",UnterminatedTemplate:"Unterminated template",VarRedeclaration:"Identifier '%0' has already been declared",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator",YieldInParameter:"Yield expression is not allowed in formal parameters",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0"});function v(t){return null!=t&&"Property"===t.type&&"init"===t.kind&&!1===t.method}class w{constructor(t,e,s,r){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=t,this.isExpr=!!e,this.preserveSpace=!!s,this.override=r}}const P={braceStatement:new w("{",!1),braceExpression:new w("{",!0),recordExpression:new w("#{",!0),templateQuasi:new w("${",!1),parenStatement:new w("(",!1),parenExpression:new w("(",!0),template:new w("`",!0,!0,(t=>t.readTmplToken())),functionExpression:new w("function",!0),functionStatement:new w("function",!1)};h.parenR.updateContext=h.braceR.updateContext=function(){if(1===this.state.context.length)return void(this.state.exprAllowed=!0);let t=this.state.context.pop();t===P.braceStatement&&"function"===this.curContext().token&&(t=this.state.context.pop()),this.state.exprAllowed=!t.isExpr},h.name.updateContext=function(t){let e=!1;t!==h.dot&&("of"!==this.state.value||this.state.exprAllowed||t===h._function||t===h._class||(e=!0)),this.state.exprAllowed=e,this.state.isIterator&&(this.state.isIterator=!1)},h.braceL.updateContext=function(t){this.state.context.push(this.braceIsBlock(t)?P.braceStatement:P.braceExpression),this.state.exprAllowed=!0},h.dollarBraceL.updateContext=function(){this.state.context.push(P.templateQuasi),this.state.exprAllowed=!0},h.parenL.updateContext=function(t){const e=t===h._if||t===h._for||t===h._with||t===h._while;this.state.context.push(e?P.parenStatement:P.parenExpression),this.state.exprAllowed=!0},h.incDec.updateContext=function(){},h._function.updateContext=h._class.updateContext=function(t){!t.beforeExpr||t===h.semi||t===h._else||t===h._return&&this.hasPrecedingLineBreak()||(t===h.colon||t===h.braceL)&&this.curContext()===P.b_stat?this.state.context.push(P.functionStatement):this.state.context.push(P.functionExpression),this.state.exprAllowed=!1},h.backQuote.updateContext=function(){this.curContext()===P.template?this.state.context.pop():this.state.context.push(P.template),this.state.exprAllowed=!1},h.braceHashL.updateContext=function(){this.state.context.push(P.recordExpression),this.state.exprAllowed=!0};let T="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",A="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const E=new RegExp("["+T+"]"),S=new RegExp("["+T+A+"]");T=A=null;const C=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],k=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function N(t,e){let s=65536;for(let r=0,i=e.length;rt)return!1;if(s+=e[r+1],s>=t)return!0}return!1}function I(t){return t<65?36===t:t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&E.test(String.fromCharCode(t)):N(t,C)))}function _(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&S.test(String.fromCharCode(t)):N(t,C)||N(t,k))))}const L=["implements","interface","let","package","private","protected","public","static","yield"],O=["eval","arguments"],M=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),D=new Set(L),R=new Set(O);function F(t,e){return e&&"await"===t||"enum"===t}function j(t,e){return F(t,e)||D.has(t)}function B(t){return R.has(t)}function U(t,e){return j(t,e)||B(t)}function V(t){return M.has(t)}const q=/^in(stanceof)?$/;const $=128,z=128,H=1024,K=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),W=Object.freeze({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module",AssignReservedType:"Cannot overwrite reserved type %0",DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement",EnumBooleanMemberNotInitialized:"Boolean enum members need to be initialized. Use either `%0 = true,` or `%0 = false,` in enum `%1`.",EnumDuplicateMemberName:"Enum member names need to be unique, but the name `%0` has already been used before in enum `%1`.",EnumInconsistentMemberValues:"Enum `%0` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.",EnumInvalidExplicitType:"Enum type `%1` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidExplicitTypeUnknownSupplied:"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `%0`.",EnumInvalidMemberInitializerPrimaryType:"Enum `%0` has type `%2`, so the initializer of `%1` needs to be a %2 literal.",EnumInvalidMemberInitializerSymbolType:"Symbol enum members cannot be initialized. Use `%1,` in enum `%0`.",EnumInvalidMemberInitializerUnknownType:"The enum member initializer for `%1` needs to be a literal (either a boolean, number, or string) in enum `%0`.",EnumInvalidMemberName:"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%0`, consider using `%1`, in enum `%2`.",EnumNumberMemberNotInitialized:"Number enum members need to be initialized, e.g. `%1 = 1` in enum `%0`.",EnumStringMemberInconsistentlyInitailized:"String enum members need to consistently either all use initializers, or use no initializers, in enum `%0`.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions",InexactVariance:"Explicit inexact syntax cannot have variance",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`",NestedFlowComment:"Cannot have a flow comment inside another flow comment",OptionalBindingPattern:"A binding pattern parameter cannot be optional in an implementation signature.",SpreadVariance:"Spread properties cannot have variance",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object",UnexpectedReservedType:"Unexpected reserved type %0",UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint"',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`",UnsupportedDeclareExportKind:"`declare export %0` is not supported. Use `%1` instead",UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module",UnterminatedFlowComment:"Unterminated flow-comment"});function J(t){return"type"===t.importKind||"typeof"===t.importKind}function G(t){return(t.type===h.name||!!t.type.keyword)&&"from"!==t.value}const X={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};const Y=/\*?\s*@((?:no)?flow)\b/;const Q={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Z=/^[\da-fA-F]+$/,tt=/^\d+$/,et=Object.freeze({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression",MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>",MissingClosingTagElement:"Expected corresponding JSX closing tag for <%0>",UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text",UnterminatedJsxContent:"Unterminated JSX contents",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function st(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function rt(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return rt(t.object)+"."+rt(t.property);throw new Error("Node had unexpected type: "+t.type)}P.j_oTag=new w("...",!0,!0),h.jsxName=new o("jsxName"),h.jsxText=new o("jsxText",{beforeExpr:!0}),h.jsxTagStart=new o("jsxTagStart",{startsExpr:!0}),h.jsxTagEnd=new o("jsxTagEnd"),h.jsxTagStart.updateContext=function(){this.state.context.push(P.j_expr),this.state.context.push(P.j_oTag),this.state.exprAllowed=!1},h.jsxTagEnd.updateContext=function(t){const e=this.state.context.pop();e===P.j_oTag&&t===h.slash||e===P.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===P.j_expr):this.state.exprAllowed=!0};class it{constructor(t){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=t}}class nt{constructor(t,e){this.scopeStack=[],this.undefinedExports=new Map,this.undefinedPrivateNames=new Map,this.raise=t,this.inModule=e}get inFunction(){return(2&this.currentVarScope().flags)>0}get allowSuper(){return(16&this.currentThisScope().flags)>0}get allowDirectSuper(){return(32&this.currentThisScope().flags)>0}get inClass(){return(64&this.currentThisScope().flags)>0}get inNonArrowFunction(){return(2&this.currentThisScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new it(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){this.scopeStack.pop()}treatFunctionsAsVarInScope(t){return!!(2&t.flags||!this.inModule&&1&t.flags)}declareName(t,e,s){let r=this.currentScope();if(8&e||16&e)this.checkRedeclarationInScope(r,t,e,s),16&e?r.functions.push(t):r.lexical.push(t),8&e&&this.maybeExportDefined(r,t);else if(4&e)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,t,e,s),r.var.push(t),this.maybeExportDefined(r,t),!(131&r.flags));--i);this.inModule&&1&r.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,s,r){this.isRedeclaredInScope(t,e,s)&&this.raise(r,b.VarRedeclaration,e)}isRedeclaredInScope(t,e,s){return!!(1&s)&&(8&s?t.lexical.indexOf(e)>-1||t.functions.indexOf(e)>-1||t.var.indexOf(e)>-1:16&s?t.lexical.indexOf(e)>-1||!this.treatFunctionsAsVarInScope(t)&&t.var.indexOf(e)>-1:t.lexical.indexOf(e)>-1&&!(8&t.flags&&t.lexical[0]===e)||!this.treatFunctionsAsVarInScope(t)&&t.functions.indexOf(e)>-1)}checkLocalExport(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&-1===this.scopeStack[0].functions.indexOf(t.name)&&this.undefinedExports.set(t.name,t.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScope(){for(let t=this.scopeStack.length-1;;t--){const e=this.scopeStack[t];if(131&e.flags)return e}}currentThisScope(){for(let t=this.scopeStack.length-1;;t--){const e=this.scopeStack[t];if((131&e.flags||64&e.flags)&&!(4&e.flags))return e}}}class ot extends it{constructor(...t){super(...t),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class at extends nt{createScope(t){return new ot(t)}declareName(t,e,s){const r=this.currentScope();if(e&H)return this.maybeExportDefined(r,t),void r.exportOnlyBindings.push(t);super.declareName(...arguments),2&e&&(1&e||(this.checkRedeclarationInScope(r,t,e,s),this.maybeExportDefined(r,t)),r.types.push(t)),256&e&&r.enums.push(t),512&e&&r.constEnums.push(t),e&z&&r.classes.push(t)}isRedeclaredInScope(t,e,s){if(t.enums.indexOf(e)>-1){if(256&s){return!!(512&s)!==t.constEnums.indexOf(e)>-1}return!0}return s&z&&t.classes.indexOf(e)>-1?t.lexical.indexOf(e)>-1&&!!(1&s):!!(2&s&&t.types.indexOf(e)>-1)||super.isRedeclaredInScope(...arguments)}checkLocalExport(t){-1===this.scopeStack[0].types.indexOf(t.name)&&-1===this.scopeStack[0].exportOnlyBindings.indexOf(t.name)&&super.checkLocalExport(t)}}class ct{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function lt(t,e){return(t?2:0)|(e?1:0)}function ht(t){if(null==t)throw new Error(`Unexpected ${t} value.`);return t}function pt(t){if(!t)throw new Error("Assert fail")}const ut=Object.freeze({ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateModifier:"Duplicate modifier: '%0'",EmptyHeritageClauseType:"'%0' list cannot be empty.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier",IndexSignatureHasAccessibility:"Index signatures cannot have an accessibility modifier ('%0')",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier",IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:"Private elements cannot have an accessibility modifier ('%0')",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got %0"});h.placeholder=new o("%%",{startsExpr:!0});function dt(t,e){return t.some((t=>Array.isArray(t)?t[0]===e:t===e))}function ft(t,e,s){const r=t.find((t=>Array.isArray(t)?t[0]===e:t===e));return r&&Array.isArray(r)?r[1][s]:null}const mt=["minimal","smart","fsharp"],yt=["hash","bar"];const xt={estree:t=>class extends t{estreeParseRegExpLiteral({pattern:t,flags:e}){let s=null;try{s=new RegExp(t,e)}catch(t){}const r=this.estreeParseLiteral(s);return r.regex={pattern:t,flags:e},r}estreeParseBigIntLiteral(t){const e="undefined"!=typeof BigInt?BigInt(t):null,s=this.estreeParseLiteral(e);return s.bigint=String(s.value||t),s}estreeParseDecimalLiteral(t){const e=this.estreeParseLiteral(null);return e.decimal=String(e.value||t),e}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}directiveToStmt(t){const e=t.value,s=this.startNodeAt(t.start,t.loc.start),r=this.startNodeAt(e.start,e.loc.start);return r.value=e.value,r.raw=e.extra.raw,s.expression=this.finishNodeAt(r,"Literal",e.end,e.loc.end),s.directive=e.extra.raw.slice(1,-1),this.finishNodeAt(s,"ExpressionStatement",t.end,t.loc.end)}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){v(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}checkLVal(t,e,...s){switch(t.type){case"ObjectPattern":t.properties.forEach((t=>{this.checkLVal("Property"===t.type?t.value:t,"object destructuring pattern",...s)}));break;default:super.checkLVal(t,e,...s)}}checkProto(t,e,s,r){t.method||super.checkProto(t,e,s,r)}isValidDirective(t){var e;return"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&!(null==(e=t.expression.extra)?void 0:e.parenthesized)}stmtToDirective(t){const e=super.stmtToDirective(t),s=t.expression.value;return e.value.value=s,e}parseBlockBody(t,e,s,r){super.parseBlockBody(t,e,s,r);const i=t.directives.map((t=>this.directiveToStmt(t)));t.body=i.concat(t.body),delete t.directives}pushClassMethod(t,e,s,r,i,n){this.parseMethod(e,s,r,i,n,"ClassMethod",!0),e.typeParameters&&(e.value.typeParameters=e.typeParameters,delete e.typeParameters),t.body.push(e)}parseExprAtom(t){switch(this.state.type){case h.num:case h.string:return this.estreeParseLiteral(this.state.value);case h.regexp:return this.estreeParseRegExpLiteral(this.state.value);case h.bigint:return this.estreeParseBigIntLiteral(this.state.value);case h.decimal:return this.estreeParseDecimalLiteral(this.state.value);case h._null:return this.estreeParseLiteral(null);case h._true:return this.estreeParseLiteral(!0);case h._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(t)}}parseLiteral(t,e,s,r){const i=super.parseLiteral(t,e,s,r);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(t,e,s=!1){super.parseFunctionBody(t,e,s),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,s,r,i,n,o=!1){let a=this.startNode();return a.kind=t.kind,a=super.parseMethod(a,e,s,r,i,n,o),a.type="FunctionExpression",delete a.kind,t.value=a,n="ClassMethod"===n?"MethodDefinition":n,this.finishNode(t,n)}parseObjectMethod(t,e,s,r,i){const n=super.parseObjectMethod(t,e,s,r,i);return n&&(n.type="Property","method"===n.kind&&(n.kind="init"),n.shorthand=!1),n}parseObjectProperty(t,e,s,r,i){const n=super.parseObjectProperty(t,e,s,r,i);return n&&(n.kind="init",n.type="Property"),n}toAssignable(t,e=!1){return v(t)?(this.toAssignable(t.value),t):super.toAssignable(t,e)}toAssignableObjectExpressionProp(t,...e){if("get"===t.kind||"set"===t.kind)throw this.raise(t.key.start,b.PatternHasAccessor);if(t.method)throw this.raise(t.key.start,b.PatternHasMethod);super.toAssignableObjectExpressionProp(t,...e)}finishCallExpression(t,e){return super.finishCallExpression(t,e),"Import"===t.callee.type&&(t.type="ImportExpression",t.source=t.arguments[0],delete t.arguments,delete t.callee),t}toReferencedArguments(t){"ImportExpression"!==t.type&&super.toReferencedArguments(t)}parseExport(t){switch(super.parseExport(t),t.type){case"ExportAllDeclaration":t.exported=null;break;case"ExportNamedDeclaration":1===t.specifiers.length&&"ExportNamespaceSpecifier"===t.specifiers[0].type&&(t.type="ExportAllDeclaration",t.exported=t.specifiers[0].exported,delete t.specifiers)}return t}parseSubscript(t,e,s,r,i){const n=super.parseSubscript(t,e,s,r,i);if(i.optionalChainMember){if("OptionalMemberExpression"!==n.type&&"OptionalCallExpression"!==n.type||(n.type=n.type.substring(8)),i.stop){const t=this.startNodeAtNode(n);return t.expression=n,this.finishNode(t,"ChainExpression")}}else"MemberExpression"!==n.type&&"CallExpression"!==n.type||(n.optional=!1);return n}},jsx:t=>class extends t{jsxReadToken(){let t="",e=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,et.UnterminatedJsxContent);const s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:return this.state.pos===this.state.start?60===s&&this.state.exprAllowed?(++this.state.pos,this.finishToken(h.jsxTagStart)):super.getTokenFromCode(s):(t+=this.input.slice(e,this.state.pos),this.finishToken(h.jsxText,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:d(s)?(t+=this.input.slice(e,this.state.pos),t+=this.jsxReadNewLine(!0),e=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){const e=this.input.charCodeAt(this.state.pos);let s;return++this.state.pos,13===e&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,s=t?"\n":"\r\n"):s=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(t){let e="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedString);const r=this.input.charCodeAt(this.state.pos);if(r===t)break;38===r?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadEntity(),s=this.state.pos):d(r)?(e+=this.input.slice(s,this.state.pos),e+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}return e+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,e)}jsxReadEntity(){let t,e="",s=0,r=this.input[this.state.pos];const i=++this.state.pos;for(;this.state.posclass extends t{constructor(t,e){super(t,e),this.flowPragma=void 0,this.flowPragma=void 0}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(t,e){return t!==h.string&&t!==h.semi&&t!==h.interpreterDirective&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(t,e)}addComment(t){if(void 0===this.flowPragma){const e=Y.exec(t.value);if(e)if("flow"===e[1])this.flowPragma="flow";else{if("noflow"!==e[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}return super.addComment(t)}flowParseTypeInitialiser(t){const e=this.state.inType;this.state.inType=!0,this.expect(t||h.colon);const s=this.flowParseType();return this.state.inType=e,s}flowParsePredicate(){const t=this.startNode(),e=this.state.startLoc,s=this.state.start;this.expect(h.modulo);const r=this.state.startLoc;return this.expectContextual("checks"),e.line===r.line&&e.column===r.column-1||this.raise(s,W.UnexpectedSpaceBetweenModuloChecks),this.eat(h.parenL)?(t.value=this.parseExpression(),this.expect(h.parenR),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const t=this.state.inType;this.state.inType=!0,this.expect(h.colon);let e=null,s=null;return this.match(h.modulo)?(this.state.inType=t,s=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(h.modulo)&&(s=this.flowParsePredicate())),[e,s]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();const e=t.id=this.parseIdentifier(),s=this.startNode(),r=this.startNode();this.isRelational("<")?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(h.parenL);const i=this.flowParseFunctionTypeParams();return s.params=i.params,s.rest=i.rest,this.expect(h.parenR),[s.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){if(this.match(h._class))return this.flowParseDeclareClass(t);if(this.match(h._function))return this.flowParseDeclareFunction(t);if(this.match(h._var))return this.flowParseDeclareVariable(t);if(this.eatContextual("module"))return this.match(h.dot)?this.flowParseDeclareModuleExports(t):(e&&this.raise(this.state.lastTokStart,W.NestedDeclareModule),this.flowParseDeclareModule(t));if(this.isContextual("type"))return this.flowParseDeclareTypeAlias(t);if(this.isContextual("opaque"))return this.flowParseDeclareOpaqueType(t);if(this.isContextual("interface"))return this.flowParseDeclareInterface(t);if(this.match(h._export))return this.flowParseDeclareExportDeclaration(t,e);throw this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(h.string)?t.id=this.parseExprAtom():t.id=this.parseIdentifier();const e=t.body=this.startNode(),s=e.body=[];for(this.expect(h.braceL);!this.match(h.braceR);){let t=this.startNode();this.match(h._import)?(this.next(),this.isContextual("type")||this.match(h._typeof)||this.raise(this.state.lastTokStart,W.InvalidNonTypeImportInDeclareModule),this.parseImport(t)):(this.expectContextual("declare",W.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),s.push(t)}this.scope.exit(),this.expect(h.braceR),this.finishNode(e,"BlockStatement");let r=null,i=!1;return s.forEach((t=>{!function(t){return"DeclareExportAllDeclaration"===t.type||"DeclareExportDeclaration"===t.type&&(!t.declaration||"TypeAlias"!==t.declaration.type&&"InterfaceDeclaration"!==t.declaration.type)}(t)?"DeclareModuleExports"===t.type&&(i&&this.raise(t.start,W.DuplicateDeclareModuleExports),"ES"===r&&this.raise(t.start,W.AmbiguousDeclareModuleKind),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(t.start,W.AmbiguousDeclareModuleKind),r="ES")})),t.kind=r||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(h._export),this.eat(h._default))return this.match(h._function)||this.match(h._class)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!e){const t=this.state.value,e=X[t];throw this.raise(this.state.start,W.UnsupportedDeclareExportKind,t,e)}if(this.match(h._var)||this.match(h._function)||this.match(h._class)||this.isContextual("opaque"))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(h.star)||this.match(h.braceL)||this.isContextual("interface")||this.isContextual("type")||this.isContextual("opaque"))return"ExportNamedDeclaration"===(t=this.parseExport(t)).type&&(t.type="ExportDeclaration",t.default=!1,delete t.exportKind),t.type="Declare"+t.type,t;throw this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual("exports"),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){return this.next(),this.flowParseTypeAlias(t),t.type="DeclareTypeAlias",t}flowParseDeclareOpaqueType(t){return this.next(),this.flowParseOpaqueType(t,!0),t.type="DeclareOpaqueType",t}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,e=!1){if(t.id=this.flowParseRestrictedIdentifier(!e,!0),this.scope.declareName(t.id.name,e?17:9,t.id.start),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],t.implements=[],t.mixins=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(h.comma));if(this.isContextual("mixins")){this.next();do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}if(this.isContextual("implements")){this.next();do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma))}t.body=this.flowParseObjectType({allowStatic:e,allowExact:!1,allowSpread:!1,allowProto:e,allowInexact:!1})}flowParseInterfaceExtends(){const t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){"_"===t&&this.raise(this.state.start,W.UnexpectedReservedUnderscore)}checkReservedType(t,e,s){K.has(t)&&this.raise(e,s?W.AssignReservedType:W.UnexpectedReservedType,t)}flowParseRestrictedIdentifier(t,e){return this.checkReservedType(this.state.value,this.state.start,e),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,9,t.id.start),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(h.eq),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,e){return this.expectContextual("type"),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,9,t.id.start),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(h.colon)&&(t.supertype=this.flowParseTypeInitialiser(h.colon)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(h.eq)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){const e=this.state.start,s=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return s.name=i.name,s.variance=r,s.bound=i.typeAnnotation,this.match(h.eq)?(this.eat(h.eq),s.default=this.flowParseType()):t&&this.raise(e,W.MissingTypeParamDefault),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){const t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected();let s=!1;do{const t=this.flowParseTypeParameter(s);e.params.push(t),t.default&&(s=!0),this.isRelational(">")||this.expect(h.comma)}while(!this.isRelational(">"));return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){const t=this.startNode(),e=this.state.inType;t.params=[],this.state.inType=!0,this.expectRelational("<");const s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)t.params.push(this.flowParseType()),this.isRelational(">")||this.expect(h.comma);return this.state.noAnonFunctionType=s,this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){const t=this.startNode(),e=this.state.inType;for(t.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.isRelational(">")||this.expect(h.comma);return this.expectRelational(">"),this.state.inType=e,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){const t=this.startNode();if(this.expectContextual("interface"),t.extends=[],this.eat(h._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(h.comma));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(h.num)||this.match(h.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,s){return t.static=e,this.lookahead().type===h.colon?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(h.bracketR),t.value=this.flowParseTypeInitialiser(),t.variance=s,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(h.bracketR),this.expect(h.bracketR),this.isRelational("<")||this.match(h.parenL)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start))):(t.method=!1,this.eat(h.question)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(h.parenL);!this.match(h.parenR)&&!this.match(h.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(h.parenR)||this.expect(h.comma);return this.eat(h.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),this.expect(h.parenR),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){const s=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(s),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:e,allowSpread:s,allowProto:r,allowInexact:i}){const n=this.state.inType;this.state.inType=!0;const o=this.startNode();let a,c;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let l=!1;for(e&&this.match(h.braceBarL)?(this.expect(h.braceBarL),a=h.braceBarR,c=!0):(this.expect(h.braceL),a=h.braceR,c=!1),o.exact=c;!this.match(a);){let e=!1,n=null,a=null;const p=this.startNode();if(r&&this.isContextual("proto")){const e=this.lookahead();e.type!==h.colon&&e.type!==h.question&&(this.next(),n=this.state.start,t=!1)}if(t&&this.isContextual("static")){const t=this.lookahead();t.type!==h.colon&&t.type!==h.question&&(this.next(),e=!0)}const u=this.flowParseVariance();if(this.eat(h.bracketL))null!=n&&this.unexpected(n),this.eat(h.bracketL)?(u&&this.unexpected(u.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,e))):o.indexers.push(this.flowParseObjectTypeIndexer(p,e,u));else if(this.match(h.parenL)||this.isRelational("<"))null!=n&&this.unexpected(n),u&&this.unexpected(u.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(p,e));else{let t="init";if(this.isContextual("get")||this.isContextual("set")){const e=this.lookahead();e.type!==h.name&&e.type!==h.string&&e.type!==h.num||(t=this.state.value,this.next())}const r=this.flowParseObjectTypeProperty(p,e,n,u,t,s,null!=i?i:!c);null===r?(l=!0,a=this.state.lastTokStart):o.properties.push(r)}this.flowObjectTypeSemicolon(),!a||this.match(h.braceR)||this.match(h.braceBarR)||this.raise(a,W.UnexpectedExplicitInexactInObject)}this.expect(a),s&&(o.inexact=l);const p=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=n,p}flowParseObjectTypeProperty(t,e,s,r,i,n,o){if(this.eat(h.ellipsis)){return this.match(h.comma)||this.match(h.semi)||this.match(h.braceR)||this.match(h.braceBarR)?(n?o||this.raise(this.state.lastTokStart,W.InexactInsideExact):this.raise(this.state.lastTokStart,W.InexactInsideNonObject),r&&this.raise(r.start,W.InexactVariance),null):(n||this.raise(this.state.lastTokStart,W.UnexpectedSpreadType),null!=s&&this.unexpected(s),r&&this.raise(r.start,W.SpreadVariance),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"))}{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=s,t.kind=i;let n=!1;return this.isRelational("<")||this.match(h.parenL)?(t.method=!0,null!=s&&this.unexpected(s),r&&this.unexpected(r.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(t)):("init"!==i&&this.unexpected(),t.method=!1,this.eat(h.question)&&(n=!0),t.value=this.flowParseTypeInitialiser(),t.variance=r),t.optional=n,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){const e="get"===t.kind?0:1,s=t.start;t.value.params.length+(t.value.rest?1:0)!==e&&("get"===t.kind?this.raise(s,b.BadGetterArity):this.raise(s,b.BadSetterArity)),"set"===t.kind&&t.value.rest&&this.raise(s,b.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(h.semi)||this.eat(h.comma)||this.match(h.braceR)||this.match(h.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e,s){t=t||this.state.start,e=e||this.state.startLoc;let r=s||this.flowParseRestrictedIdentifier(!0);for(;this.eat(h.dot);){const s=this.startNodeAt(t,e);s.qualification=r,s.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(s,"QualifiedTypeIdentifier")}return r}flowParseGenericType(t,e,s){const r=this.startNodeAt(t,e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(t,e,s),this.isRelational("<")&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const t=this.startNode();return this.expect(h._typeof),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){const t=this.startNode();for(t.types=[],this.expect(h.bracketL);this.state.possuper.parseFunctionBody(t,!0,s))):super.parseFunctionBody(t,!1,s)}parseFunctionBodyAndFinish(t,e,s=!1){if(this.match(h.colon)){const e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(t,e,s)}parseStatement(t,e){if(this.state.strict&&this.match(h.name)&&"interface"===this.state.value){const t=this.lookahead();if(t.type===h.name||V(t.value)){const t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.shouldParseEnums()&&this.isContextual("enum")){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}const s=super.parseStatement(t,e);return void 0!==this.flowPragma||this.isValidDirective(s)||(this.flowPragma=null),s}parseExpressionStatement(t,e){if("Identifier"===e.type)if("declare"===e.name){if(this.match(h._class)||this.match(h.name)||this.match(h._function)||this.match(h._var)||this.match(h._export))return this.flowParseDeclare(t)}else if(this.match(h.name)){if("interface"===e.name)return this.flowParseInterface(t);if("type"===e.name)return this.flowParseTypeAlias(t);if("opaque"===e.name)return this.flowParseOpaqueType(t,!1)}return super.parseExpressionStatement(t,e)}shouldParseExportDeclaration(){return this.isContextual("type")||this.isContextual("interface")||this.isContextual("opaque")||this.shouldParseEnums()&&this.isContextual("enum")||super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){return(!this.match(h.name)||!("type"===this.state.value||"interface"===this.state.value||"opaque"===this.state.value||this.shouldParseEnums()&&"enum"===this.state.value))&&super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual("enum")){const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,e,s,r){if(!this.match(h.question))return t;if(r){const i=this.tryParse((()=>super.parseConditional(t,e,s)));return i.node?(i.error&&(this.state=i.failState),i.node):(r.start=i.error.pos||this.state.start,t)}this.expect(h.question);const i=this.state.clone(),n=this.state.noArrowAt,o=this.startNodeAt(e,s);let{consequent:a,failed:c}=this.tryParseConditionalConsequent(),[l,p]=this.getArrowLikeExpressions(a);if(c||p.length>0){const t=[...n];if(p.length>0){this.state=i,this.state.noArrowAt=t;for(let e=0;e1&&this.raise(i.start,W.AmbiguousConditionalArrow),c&&1===l.length&&(this.state=i,this.state.noArrowAt=t.concat(l[0].start),({consequent:a,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=n,this.expect(h.colon),o.test=t,o.consequent=a,o.alternate=this.forwardNoArrowParamsConversionAt(o,(()=>this.parseMaybeAssign(void 0,void 0,void 0))),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const t=this.parseMaybeAssignAllowIn(),e=!this.match(h.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){const s=[t],r=[];for(;0!==s.length;){const t=s.pop();"ArrowFunctionExpression"===t.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):r.push(t),s.push(t.body)):"ConditionalExpression"===t.type&&(s.push(t.consequent),s.push(t.alternate))}return e?(r.forEach((t=>this.finishArrowValidation(t))),[r,[]]):function(t,e){const s=[],r=[];for(let i=0;it.params.every((t=>this.isAssignable(t,!0)))))}finishArrowValidation(t){var e;this.toAssignableList(t.params,null==(e=t.extra)?void 0:e.trailingComma,!1),this.scope.enter(6),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,e){let s;return-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),s=e(),this.state.noArrowParamsConversionAt.pop()):s=e(),s}parseParenItem(t,e,s){if(t=super.parseParenItem(t,e,s),this.eat(h.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(h.colon)){const r=this.startNodeAt(e,s);return r.expression=t,r.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(r,"TypeCastExpression")}return t}assertModuleNodeAllowed(t){"ImportDeclaration"===t.type&&("type"===t.importKind||"typeof"===t.importKind)||"ExportNamedDeclaration"===t.type&&"type"===t.exportKind||"ExportAllDeclaration"===t.type&&"type"===t.exportKind||super.assertModuleNodeAllowed(t)}parseExport(t){const e=super.parseExport(t);return"ExportNamedDeclaration"!==e.type&&"ExportAllDeclaration"!==e.type||(e.exportKind=e.exportKind||"value"),e}parseExportDeclaration(t){if(this.isContextual("type")){t.exportKind="type";const e=this.startNode();return this.next(),this.match(h.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(e)}if(this.isContextual("opaque")){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseOpaqueType(e,!1)}if(this.isContextual("interface")){t.exportKind="type";const e=this.startNode();return this.next(),this.flowParseInterface(e)}if(this.shouldParseEnums()&&this.isContextual("enum")){t.exportKind="value";const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDeclaration(t)}eatExportStar(t){return!!super.eatExportStar(...arguments)||!(!this.isContextual("type")||this.lookahead().type!==h.star)&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){const e=this.state.start,s=super.maybeParseExportNamespaceSpecifier(t);return s&&"type"===t.exportKind&&this.unexpected(e),s}parseClassId(t,e,s){super.parseClassId(t,e,s),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,s){const r=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,s),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type?this.raise(r,W.DeclareClassElement):e.value&&this.raise(e.value.start,W.DeclareClassFieldInitializer))}getTokenFromCode(t){const e=this.input.charCodeAt(this.state.pos+1);return 123===t&&124===e?this.finishOp(h.braceBarL,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?this.finishOp(h.question,1):function(t,e){return 64===t&&64===e}(t,e)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(t):this.finishOp(h.relational,1)}isAssignable(t,e){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":return!0;case"ObjectExpression":{const e=t.properties.length-1;return t.properties.every(((t,s)=>"ObjectMethod"!==t.type&&(s===e||"SpreadElement"===t.type)&&this.isAssignable(t)))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every((t=>this.isAssignable(t)));case"AssignmentExpression":return"="===t.operator;case"ParenthesizedExpression":case"TypeCastExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!e;default:return!1}}toAssignable(t,e=!1){return"TypeCastExpression"===t.type?super.toAssignable(this.typeCastToParameter(t),e):super.toAssignable(t,e)}toAssignableList(t,e,s){for(let e=0;e1||!e)&&this.raise(i.typeAnnotation.start,W.TypeCastInPattern)}return t}parseArrayLike(t,e,s,r){const i=super.parseArrayLike(t,e,s,r);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}checkLVal(t,...e){if("TypeCastExpression"!==t.type)return super.checkLVal(t,...e)}parseClassProperty(t){return this.match(h.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(h.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(h.colon)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(h.colon)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,s,r,i,n){e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,s,r,i,n)}pushClassPrivateMethod(t,e,s,r){e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,s,r)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual("implements")){this.next();const e=t.implements=[];do{const t=this.startNode();t.id=this.flowParseRestrictedIdentifier(!0),this.isRelational("<")?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,e.push(this.finishNode(t,"ClassImplements"))}while(this.eat(h.comma))}}parsePropertyName(t,e){const s=this.flowParseVariance(),r=super.parsePropertyName(t,e);return t.variance=s,r}parseObjPropValue(t,e,s,r,i,n,o,a){let c;t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(h.parenL)||this.unexpected()),super.parseObjPropValue(t,e,s,r,i,n,o,a),c&&((t.value||t).typeParameters=c)}parseAssignableListItemTypes(t){return this.eat(h.question)&&("Identifier"!==t.type&&this.raise(t.start,W.OptionalBindingPattern),t.optional=!0),this.match(h.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(t),t}parseMaybeDefault(t,e,s){const r=super.parseMaybeDefault(t,e,s);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.startsuper.parseMaybeAssign(t,e,s)),n),!i.error)return i.node;const{context:r}=this.state;r[r.length-1]===P.j_oTag?r.length-=2:r[r.length-1]===P.j_expr&&(r.length-=1)}if((null==(r=i)?void 0:r.error)||this.isRelational("<")){var o,a;let r;n=n||this.state.clone();const c=this.tryParse((i=>{var n;r=this.flowParseTypeParameterDeclaration();const o=this.forwardNoArrowParamsConversionAt(r,(()=>{const i=super.parseMaybeAssign(t,e,s);return this.resetStartLocationFromNode(i,r),i}));"ArrowFunctionExpression"!==o.type&&(null==(n=o.extra)?void 0:n.parenthesized)&&i();const a=this.maybeUnwrapTypeCastExpression(o);return a.typeParameters=r,this.resetStartLocationFromNode(a,r),o}),n);let l=null;if(c.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(c.node).type){if(!c.error&&!c.aborted)return c.node.async&&this.raise(r.start,W.UnexpectedTypeParameterBeforeAsyncArrowFunction),c.node;l=c.node}if(null==(o=i)?void 0:o.node)return this.state=i.failState,i.node;if(l)return this.state=c.failState,l;if(null==(a=i)?void 0:a.thrown)throw i.error;if(c.thrown)throw c.error;throw this.raise(r.start,W.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(t,e,s)}parseArrow(t){if(this.match(h.colon)){const e=this.tryParse((()=>{const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const s=this.startNode();return[s.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(h.arrow)||this.unexpected(),s}));if(e.thrown)return null;e.error&&(this.state=e.failState),t.returnType=e.node.typeAnnotation?this.finishNode(e.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(){return this.match(h.colon)||super.shouldParseArrow()}setArrowFunctionParameters(t,e){-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,s){if(!s||-1===this.state.noArrowParamsConversionAt.indexOf(t.start))return super.checkParams(...arguments)}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&-1===this.state.noArrowAt.indexOf(this.state.start))}parseSubscripts(t,e,s,r){if("Identifier"===t.type&&"async"===t.name&&-1!==this.state.noArrowAt.indexOf(e)){this.next();const r=this.startNodeAt(e,s);r.callee=t,r.arguments=this.parseCallExpressionArguments(h.parenR,!1),t=this.finishNode(r,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.isRelational("<")){const i=this.state.clone(),n=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e,s)||t()),i);if(!n.error&&!n.aborted)return n.node;const o=this.tryParse((()=>super.parseSubscripts(t,e,s,r)),i);if(o.node&&!o.error)return o.node;if(n.node)return this.state=n.failState,n.node;if(o.node)return this.state=o.failState,o.node;throw n.error||o.error}return super.parseSubscripts(t,e,s,r)}parseSubscript(t,e,s,r,i){if(this.match(h.questionDot)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,r)return i.stop=!0,t;this.next();const n=this.startNodeAt(e,s);return n.callee=t,n.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(h.parenL),n.arguments=this.parseCallExpressionArguments(h.parenR,!1),n.optional=!0,this.finishCallExpression(n,!0)}if(!r&&this.shouldParseTypes()&&this.isRelational("<")){const r=this.startNodeAt(e,s);r.callee=t;const n=this.tryParse((()=>(r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(h.parenL),r.arguments=this.parseCallExpressionArguments(h.parenR,!1),i.optionalChainMember&&(r.optional=!1),this.finishCallExpression(r,i.optionalChainMember))));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(t,e,s,r,i)}parseNewArguments(t){let e=null;this.shouldParseTypes()&&this.isRelational("<")&&(e=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),t.typeArguments=e,super.parseNewArguments(t)}parseAsyncArrowWithTypeParameters(t,e){const s=this.startNodeAt(t,e);if(this.parseFunctionParams(s),this.parseArrow(s))return this.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(t){const e=this.input.charCodeAt(this.state.pos+1);if(42===t&&47===e&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(t)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);124!==t||125!==e?super.readToken_pipe_amp(t):this.finishOp(h.braceBarR,2)}parseTopLevel(t,e){const s=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(this.state.pos,W.UnterminatedFlowComment),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,W.NestedFlowComment),this.hasFlowCommentCompletion(),this.state.pos+=this.skipFlowComment(),void(this.state.hasFlowComment=!0);if(this.state.hasFlowComment){const t=this.input.indexOf("*-/",this.state.pos+=2);if(-1===t)throw this.raise(this.state.pos-2,b.UnterminatedComment);this.state.pos=t+3}else super.skipBlockComment()}skipFlowComment(){const{pos:t}=this.state;let e=2;for(;[32,9].includes(this.input.charCodeAt(t+e));)e++;const s=this.input.charCodeAt(e+t),r=this.input.charCodeAt(e+t+1);return 58===s&&58===r?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===s&&58!==r&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,b.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:e,memberName:s}){this.raise(t,W.EnumBooleanMemberNotInitialized,s,e)}flowEnumErrorInvalidMemberName(t,{enumName:e,memberName:s}){const r=s[0].toUpperCase()+s.slice(1);this.raise(t,W.EnumInvalidMemberName,s,r,e)}flowEnumErrorDuplicateMemberName(t,{enumName:e,memberName:s}){this.raise(t,W.EnumDuplicateMemberName,s,e)}flowEnumErrorInconsistentMemberValues(t,{enumName:e}){this.raise(t,W.EnumInconsistentMemberValues,e)}flowEnumErrorInvalidExplicitType(t,{enumName:e,suppliedType:s}){return this.raise(t,null===s?W.EnumInvalidExplicitTypeUnknownSupplied:W.EnumInvalidExplicitType,e,s)}flowEnumErrorInvalidMemberInitializer(t,{enumName:e,explicitType:s,memberName:r}){let i=null;switch(s){case"boolean":case"number":case"string":i=W.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":i=W.EnumInvalidMemberInitializerSymbolType;break;default:i=W.EnumInvalidMemberInitializerUnknownType}return this.raise(t,i,e,r,s)}flowEnumErrorNumberMemberNotInitialized(t,{enumName:e,memberName:s}){this.raise(t,W.EnumNumberMemberNotInitialized,e,s)}flowEnumErrorStringMemberInconsistentlyInitailized(t,{enumName:e}){this.raise(t,W.EnumStringMemberInconsistentlyInitailized,e)}flowEnumMemberInit(){const t=this.state.start,e=()=>this.match(h.comma)||this.match(h.braceR);switch(this.state.type){case h.num:{const s=this.parseLiteral(this.state.value,"NumericLiteral");return e()?{type:"number",pos:s.start,value:s}:{type:"invalid",pos:t}}case h.string:{const s=this.parseLiteral(this.state.value,"StringLiteral");return e()?{type:"string",pos:s.start,value:s}:{type:"invalid",pos:t}}case h._true:case h._false:{const s=this.parseBooleanLiteral();return e()?{type:"boolean",pos:s.start,value:s}:{type:"invalid",pos:t}}default:return{type:"invalid",pos:t}}}flowEnumMemberRaw(){const t=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(h.eq)?this.flowEnumMemberInit():{type:"none",pos:t}}}flowEnumCheckExplicitTypeMismatch(t,e,s){const{explicitType:r}=e;null!==r&&r!==s&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers({enumName:t,explicitType:e}){const s=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(h.braceR);){const i=this.startNode(),{id:n,init:o}=this.flowEnumMemberRaw(),a=n.name;if(""===a)continue;/^[a-z]/.test(a)&&this.flowEnumErrorInvalidMemberName(n.start,{enumName:t,memberName:a}),s.has(a)&&this.flowEnumErrorDuplicateMemberName(n.start,{enumName:t,memberName:a}),s.add(a);const c={enumName:t,explicitType:e,memberName:a};switch(i.id=n,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"boolean"),i.init=o.value,r.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"number"),i.init=o.value,r.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"string"),i.init=o.value,r.stringMembers.push(this.finishNode(i,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.pos,c);case"none":switch(e){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.pos,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.pos,c);break;default:r.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}this.match(h.braceR)||this.expect(h.comma)}return r}flowEnumStringMembers(t,e,{enumName:s}){if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(let e=0;e(t.members=[],this.expect(h.braceR),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;const n=i.booleanMembers.length,o=i.numberMembers.length,a=i.stringMembers.length,c=i.defaultedMembers.length;if(n||o||a||c){if(n||o){if(!o&&!a&&n>=c){for(let t=0,s=i.defaultedMembers;t=c){for(let t=0,s=i.defaultedMembers;tclass extends t{getScopeHandler(){return at}tsIsIdentifier(){return this.match(h.name)}tsNextTokenCanFollowModifier(){return this.next(),(this.match(h.bracketL)||this.match(h.braceL)||this.match(h.star)||this.match(h.ellipsis)||this.match(h.hash)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsParseModifier(t){if(!this.match(h.name))return;const e=this.state.value;return-1!==t.indexOf(e)&&this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))?e:void 0}tsParseModifiers(t,e){for(;;){const s=this.state.start,r=this.tsParseModifier(e);if(!r)break;Object.hasOwnProperty.call(t,r)&&this.raise(s,ut.DuplicateModifier,r),t[r]=!0}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(h.braceR);case"HeritageClauseElement":return this.match(h.braceL);case"TupleElementTypes":return this.match(h.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(t,e){const s=[];for(;!this.tsIsListTerminator(t);)s.push(e());return s}tsParseDelimitedList(t,e){return ht(this.tsParseDelimitedListWorker(t,e,!0))}tsParseDelimitedListWorker(t,e,s){const r=[];for(;!this.tsIsListTerminator(t);){const i=e();if(null==i)return;if(r.push(i),!this.eat(h.comma)){if(this.tsIsListTerminator(t))break;return void(s&&this.expect(h.comma))}}return r}tsParseBracketedList(t,e,s,r){r||(s?this.expect(h.bracketL):this.expectRelational("<"));const i=this.tsParseDelimitedList(t,e);return s?this.expect(h.bracketR):this.expectRelational(">"),i}tsParseImportType(){const t=this.startNode();return this.expect(h._import),this.expect(h.parenL),this.match(h.string)||this.raise(this.state.start,ut.UnsupportedImportTypeArgument),t.argument=this.parseExprAtom(),this.expect(h.parenR),this.eat(h.dot)&&(t.qualifier=this.tsParseEntityName(!0)),this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseEntityName(t){let e=this.parseIdentifier();for(;this.eat(h.dot);){const s=this.startNodeAtNode(e);s.left=e,s.right=this.parseIdentifier(t),e=this.finishNode(s,"TSQualifiedName")}return e}tsParseTypeReference(){const t=this.startNode();return t.typeName=this.tsParseEntityName(!1),!this.hasPrecedingLineBreak()&&this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();const e=this.startNodeAtNode(t);return e.parameterName=t,e.typeAnnotation=this.tsParseTypeAnnotation(!1),e.asserts=!1,this.finishNode(e,"TSTypePredicate")}tsParseThisTypeNode(){const t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){const t=this.startNode();return this.expect(h._typeof),this.match(h._import)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(!0),this.finishNode(t,"TSTypeQuery")}tsParseTypeParameter(){const t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsEatThenParseType(h._extends),t.default=this.tsEatThenParseType(h.eq),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const t=this.startNode();return this.isRelational("<")||this.match(h.jsxTagStart)?this.next():this.unexpected(),t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===t.params.length&&this.raise(t.start,ut.EmptyTypeParameters),this.finishNode(t,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===h._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(t,e){const s=t===h.arrow;e.typeParameters=this.tsTryParseTypeParameters(),this.expect(h.parenL),e.parameters=this.tsParseBindingListForSignature(),(s||this.match(t))&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){return this.parseBindingList(h.parenR,41).map((t=>("Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type&&"ArrayPattern"!==t.type&&this.raise(t.start,ut.UnsupportedSignatureParameterKind,t.type),t)))}tsParseTypeMemberSemicolon(){this.eat(h.comma)||this.semicolon()}tsParseSignatureMember(t,e){return this.tsFillSignature(h.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(h.name)&&this.match(h.colon)}tsTryParseIndexSignature(t){if(!this.match(h.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(h.bracketL);const e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(h.bracketR),t.parameters=[e];const s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){this.eat(h.question)&&(t.optional=!0);const s=t;if(e||!this.match(h.parenL)&&!this.isRelational("<")){const t=s;e&&(t.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSPropertySignature")}{const t=s;return this.tsFillSignature(h.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSMethodSignature")}}tsParseTypeMember(){const t=this.startNode();if(this.match(h.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(h._new)){const e=this.startNode();return this.next(),this.match(h.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}const e=!!this.tsParseModifier(["readonly"]),s=this.tsTryParseIndexSignature(t);return s?(e&&(t.readonly=!0),s):(this.parsePropertyName(t,!1),this.tsParsePropertyOrMethodSignature(t,e))}tsParseTypeLiteral(){const t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(h.braceL);const t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(h.braceR),t}tsIsStartOfMappedType(){return this.next(),this.eat(h.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(h.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(h._in))))}tsParseMappedTypeParameter(){const t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsExpectThenParseType(h._in),this.finishNode(t,"TSTypeParameter")}tsParseMappedType(){const t=this.startNode();return this.expect(h.braceL),this.match(h.plusMin)?(t.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(t.readonly=!0),this.expect(h.bracketL),t.typeParameter=this.tsParseMappedTypeParameter(),t.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(h.bracketR),this.match(h.plusMin)?(t.optional=this.state.value,this.next(),this.expect(h.question)):this.eat(h.question)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(h.braceR),this.finishNode(t,"TSMappedType")}tsParseTupleType(){const t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1,s=null;return t.elementTypes.forEach((t=>{var r;let{type:i}=t;!e||"TSRestType"===i||"TSOptionalType"===i||"TSNamedTupleMember"===i&&t.optional||this.raise(t.start,ut.OptionalTypeBeforeRequired),e=e||"TSNamedTupleMember"===i&&t.optional||"TSOptionalType"===i,"TSRestType"===i&&(i=(t=t.typeAnnotation).type);const n="TSNamedTupleMember"===i;s=null!=(r=s)?r:n,s!==n&&this.raise(t.start,ut.MixedLabeledAndUnlabeledElements)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){const{start:t,startLoc:e}=this.state,s=this.eat(h.ellipsis);let r=this.tsParseType();const i=this.eat(h.question);if(this.eat(h.colon)){const t=this.startNodeAtNode(r);t.optional=i,"TSTypeReference"!==r.type||r.typeParameters||"Identifier"!==r.typeName.type?(this.raise(r.start,ut.InvalidTupleMemberLabel),t.label=r):t.label=r.typeName,t.elementType=this.tsParseType(),r=this.finishNode(t,"TSNamedTupleMember")}else if(i){const t=this.startNodeAtNode(r);t.typeAnnotation=r,r=this.finishNode(t,"TSOptionalType")}if(s){const s=this.startNodeAt(t,e);s.typeAnnotation=r,r=this.finishNode(s,"TSRestType")}return r}tsParseParenthesizedType(){const t=this.startNode();return this.expect(h.parenL),t.typeAnnotation=this.tsParseType(),this.expect(h.parenR),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t){const e=this.startNode();return"TSConstructorType"===t&&this.expect(h._new),this.tsFillSignature(h.arrow,e),this.finishNode(e,t)}tsParseLiteralTypeNode(){const t=this.startNode();return t.literal=(()=>{switch(this.state.type){case h.num:case h.bigint:case h.string:case h._true:case h._false:return this.parseExprAtom();default:throw this.unexpected()}})(),this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){const t=this.startNode();return t.literal=this.parseTemplate(!1),this.finishNode(t,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const t=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case h.name:case h._void:case h._null:{const t=this.match(h._void)?"TSVoidKeyword":this.match(h._null)?"TSNullKeyword":function(t){switch(t){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}case h.string:case h.num:case h.bigint:case h._true:case h._false:return this.tsParseLiteralTypeNode();case h.plusMin:if("-"===this.state.value){const t=this.startNode(),e=this.lookahead();if(e.type!==h.num&&e.type!==h.bigint)throw this.unexpected();return t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case h._this:return this.tsParseThisTypeOrThisTypePredicate();case h._typeof:return this.tsParseTypeQuery();case h._import:return this.tsParseImportType();case h.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case h.bracketL:return this.tsParseTupleType();case h.parenL:return this.tsParseParenthesizedType();case h.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(h.bracketL);)if(this.match(h.bracketR)){const e=this.startNodeAtNode(t);e.elementType=t,this.expect(h.bracketR),t=this.finishNode(e,"TSArrayType")}else{const e=this.startNodeAtNode(t);e.objectType=t,e.indexType=this.tsParseType(),this.expect(h.bracketR),t=this.finishNode(e,"TSIndexedAccessType")}return t}tsParseTypeOperator(t){const e=this.startNode();return this.expectContextual(t),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(t.start,ut.UnexpectedReadonly)}}tsParseInferType(){const t=this.startNode();this.expectContextual("infer");const e=this.startNode();return e.name=this.parseIdentifierName(e.start),t.typeParameter=this.finishNode(e,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseTypeOperatorOrHigher(){const t=["keyof","unique","readonly"].find((t=>this.isContextual(t)));return t?this.tsParseTypeOperator(t):this.isContextual("infer")?this.tsParseInferType():this.tsParseArrayTypeOrHigher()}tsParseUnionOrIntersectionType(t,e,s){this.eat(s);let r=e();if(this.match(s)){const i=[r];for(;this.eat(s);)i.push(e());const n=this.startNodeAtNode(r);n.types=i,r=this.finishNode(n,t)}return r}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),h.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),h.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(h.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(h.name)||this.match(h._this))return this.next(),!0;if(this.match(h.braceL)){let t=1;for(this.next();t>0;)this.match(h.braceL)?++t:this.match(h.braceR)&&--t,this.next();return!0}if(this.match(h.bracketL)){let t=1;for(this.next();t>0;)this.match(h.bracketL)?++t:this.match(h.bracketR)&&--t,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(h.parenR)||this.match(h.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(h.colon)||this.match(h.comma)||this.match(h.question)||this.match(h.eq))return!0;if(this.match(h.parenR)&&(this.next(),this.match(h.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{const e=this.startNode();this.expect(t);const s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(h._this)){let t=this.tsParseThisTypeOrThisTypePredicate();if("TSThisType"===t.type){const s=this.startNodeAtNode(e);s.parameterName=t,s.asserts=!0,t=this.finishNode(s,"TSTypePredicate")}else t.asserts=!0;return e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}const r=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!r){if(!s)return this.tsParseTypeAnnotation(!1,e);const t=this.startNodeAtNode(e);return t.parameterName=this.parseIdentifier(),t.asserts=s,e.typeAnnotation=this.finishNode(t,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}const i=this.tsParseTypeAnnotation(!1),n=this.startNodeAtNode(e);return n.parameterName=r,n.typeAnnotation=i,n.asserts=s,e.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(h.colon)?this.tsParseTypeOrTypePredicateAnnotation(h.colon):void 0}tsTryParseTypeAnnotation(){return this.match(h.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(h.colon)}tsParseTypePredicatePrefix(){const t=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(!this.match(h.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const t=this.state.containsEsc;return this.next(),!(!this.match(h.name)&&!this.match(h._this))&&(t&&this.raise(this.state.lastTokStart,b.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(t=!0,e=this.startNode()){return this.tsInType((()=>{t&&this.expect(h.colon),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){pt(this.state.inType);const t=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(h._extends))return t;const e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsParseNonConditionalType(),this.expect(h.question),e.trueType=this.tsParseType(),this.expect(h.colon),e.falseType=this.tsParseType(),this.finishNode(e,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(h._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){const t=this.startNode(),e=this.tsTryNextParseConstantContext();return t.typeAnnotation=e||this.tsNextThenParseType(),this.expectRelational(">"),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){const e=this.state.start,s=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return s.length||this.raise(e,ut.EmptyHeritageClauseType,t),s}tsParseExpressionWithTypeArguments(){const t=this.startNode();return t.expression=this.tsParseEntityName(!1),this.isRelational("<")&&(t.typeParameters=this.tsParseTypeArguments()),this.finishNode(t,"TSExpressionWithTypeArguments")}tsParseInterfaceDeclaration(t){t.id=this.parseIdentifier(),this.checkLVal(t.id,"typescript interface declaration",130),t.typeParameters=this.tsTryParseTypeParameters(),this.eat(h._extends)&&(t.extends=this.tsParseHeritageClause("extends"));const e=this.startNode();return e.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(e,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkLVal(t.id,"typescript type alias",2),t.typeParameters=this.tsTryParseTypeParameters(),t.typeAnnotation=this.tsInType((()=>{if(this.expect(h.eq),this.isContextual("intrinsic")&&this.lookahead().type!==h.dot){const t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInNoContext(t){const e=this.state.context;this.state.context=[e[0]];try{return t()}finally{this.state.context=e}}tsInType(t){const e=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=e}}tsEatThenParseType(t){return this.match(t)?this.tsNextThenParseType():void 0}tsExpectThenParseType(t){return this.tsDoThenParseType((()=>this.expect(t)))}tsNextThenParseType(){return this.tsDoThenParseType((()=>this.next()))}tsDoThenParseType(t){return this.tsInType((()=>(t(),this.tsParseType())))}tsParseEnumMember(){const t=this.startNode();return t.id=this.match(h.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(h.eq)&&(t.initializer=this.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,e){return e&&(t.const=!0),t.id=this.parseIdentifier(),this.checkLVal(t.id,"typescript enum declaration",e?779:267),this.expect(h.braceL),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(h.braceR),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){const t=this.startNode();return this.scope.enter(0),this.expect(h.braceL),this.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,h.braceR),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,e=!1){if(t.id=this.parseIdentifier(),e||this.checkLVal(t.id,"module or namespace declaration",1024),this.eat(h.dot)){const e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter($),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual("global")?(t.global=!0,t.id=this.parseIdentifier()):this.match(h.string)?t.id=this.parseExprAtom():this.unexpected(),this.match(h.braceL)?(this.scope.enter($),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,e){return t.isExport=e||!1,t.id=this.parseIdentifier(),this.checkLVal(t.id,"import equals declaration",9),this.expect(h.eq),t.moduleReference=this.tsParseModuleReference(),this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual("require")&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){const t=this.startNode();if(this.expectContextual("require"),this.expect(h.parenL),!this.match(h.string))throw this.unexpected();return t.expression=this.parseExprAtom(),this.expect(h.parenR),this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){const e=this.state.clone(),s=t();return this.state=e,s}tsTryParseAndCatch(t){const e=this.tryParse((e=>t()||e()));if(!e.aborted&&e.node)return e.error&&(this.state=e.failState),e.node}tsTryParse(t){const e=this.state.clone(),s=t();return void 0!==s&&!1!==s?s:void(this.state=e)}tsTryParseDeclare(t){if(this.isLineTerminator())return;let e,s=this.state.type;return this.isContextual("let")&&(s=h._var,e="let"),this.tsInDeclareContext((()=>{switch(s){case h._function:return t.declare=!0,this.parseFunctionStatement(t,!1,!0);case h._class:return t.declare=!0,this.parseClass(t,!0,!1);case h._const:if(this.match(h._const)&&this.isLookaheadContextual("enum"))return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(t,!0);case h._var:return e=e||this.state.value,this.parseVarStatement(t,e);case h.name:{const e=this.state.value;return"global"===e?this.tsParseAmbientExternalModuleDeclaration(t):this.tsParseDeclaration(t,e,!0)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0)}tsParseExpressionStatement(t,e){switch(e.name){case"declare":{const e=this.tsTryParseDeclare(t);if(e)return e.declare=!0,e;break}case"global":if(this.match(h.braceL)){this.scope.enter($),this.prodParam.enter(0);const s=t;return s.global=!0,s.id=e,s.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1)}}tsParseDeclaration(t,e,s){switch(e){case"abstract":if(this.tsCheckLineTerminatorAndMatch(h._class,s)){const e=t;return e.abstract=!0,s&&(this.next(),this.match(h._class)||this.unexpected(null,h._class)),this.parseClass(e,!0,!1)}break;case"enum":if(s||this.match(h.name))return s&&this.next(),this.tsParseEnumDeclaration(t,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(h.name,s))return s&&this.next(),this.tsParseInterfaceDeclaration(t);break;case"module":if(s&&this.next(),this.match(h.string))return this.tsParseAmbientExternalModuleDeclaration(t);if(this.tsCheckLineTerminatorAndMatch(h.name,s))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(h.name,s))return s&&this.next(),this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminatorAndMatch(h.name,s))return s&&this.next(),this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminatorAndMatch(t,e){return(e||this.match(t))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t,e){if(!this.isRelational("<"))return;const s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const r=this.tsTryParseAndCatch((()=>{const s=this.startNodeAt(t,e);return s.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(h.arrow),s}));return this.state.maybeInArrowParameters=s,r?this.parseArrowExpression(r,null,!0):void 0}tsParseTypeArguments(){const t=this.startNode();return t.params=this.tsInType((()=>this.tsInNoContext((()=>(this.expectRelational("<"),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===t.params.length&&this.raise(t.start,ut.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(h.name))switch(this.state.value){case"abstract":case"declare":case"enum":case"interface":case"module":case"namespace":case"type":return!0}return!1}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseAssignableListItem(t,e){const s=this.state.start,r=this.state.startLoc;let i,n=!1;void 0!==t&&(i=this.parseAccessModifier(),n=!!this.tsParseModifier(["readonly"]),!1===t&&(i||n)&&this.raise(s,ut.UnexpectedParameterModifier));const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o);const a=this.parseMaybeDefault(o.start,o.loc.start,o);if(i||n){const t=this.startNodeAt(s,r);return e.length&&(t.decorators=e),i&&(t.accessibility=i),n&&(t.readonly=n),"Identifier"!==a.type&&"AssignmentPattern"!==a.type&&this.raise(t.start,ut.UnsupportedParameterPropertyKind),t.parameter=a,this.finishNode(t,"TSParameterProperty")}return e.length&&(o.decorators=e),a}parseFunctionBodyAndFinish(t,e,s=!1){this.match(h.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(h.colon));const r="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e?"TSDeclareMethod":void 0;r&&!this.match(h.braceL)&&this.isLineTerminator()?this.finishNode(t,r):"TSDeclareFunction"===r&&this.state.isDeclareContext&&(this.raise(t.start,ut.DeclareFunctionHasImplementation),t.declare)?super.parseFunctionBodyAndFinish(t,r,s):super.parseFunctionBodyAndFinish(t,e,s)}registerFunctionStatementId(t){!t.body&&t.id?this.checkLVal(t.id,"function name",1024):super.registerFunctionStatementId(...arguments)}tsCheckForInvalidTypeCasts(t){t.forEach((t=>{"TSTypeCastExpression"===(null==t?void 0:t.type)&&this.raise(t.typeAnnotation.start,ut.UnexpectedTypeAnnotation)}))}toReferencedList(t,e){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(...t){const e=super.parseArrayLike(...t);return"ArrayExpression"===e.type&&this.tsCheckForInvalidTypeCasts(e.elements),e}parseSubscript(t,e,s,r,i){if(!this.hasPrecedingLineBreak()&&this.match(h.bang)){this.state.exprAllowed=!1,this.next();const r=this.startNodeAt(e,s);return r.expression=t,this.finishNode(r,"TSNonNullExpression")}if(this.isRelational("<")){const n=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(t)){const t=this.tsTryParseGenericAsyncArrowFunction(e,s);if(t)return t}const n=this.startNodeAt(e,s);n.callee=t;const o=this.tsParseTypeArguments();if(o){if(!r&&this.eat(h.parenL))return n.arguments=this.parseCallExpressionArguments(h.parenR,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,this.finishCallExpression(n,i.optionalChainMember);if(this.match(h.backQuote)){const r=this.parseTaggedTemplateExpression(t,e,s,i);return r.typeParameters=o,r}}this.unexpected()}));if(n)return n}return super.parseSubscript(t,e,s,r,i)}parseNewArguments(t){if(this.isRelational("<")){const e=this.tsTryParseAndCatch((()=>{const t=this.tsParseTypeArguments();return this.match(h.parenL)||this.unexpected(),t}));e&&(t.typeParameters=e)}super.parseNewArguments(t)}parseExprOp(t,e,s,r){if(ht(h._in.binop)>r&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const i=this.startNodeAt(e,s);i.expression=t;const n=this.tsTryNextParseConstantContext();return i.typeAnnotation=n||this.tsNextThenParseType(),this.finishNode(i,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,e,s,r)}return super.parseExprOp(t,e,s,r)}checkReservedWord(t,e,s,r){}checkDuplicateExports(){}parseImport(t){if(this.match(h.name)||this.match(h.star)||this.match(h.braceL)){const e=this.lookahead();if(this.match(h.name)&&e.type===h.eq)return this.tsParseImportEqualsDeclaration(t);!this.isContextual("type")||e.type===h.comma||e.type===h.name&&"from"===e.value||(t.importKind="type",this.next())}t.importKind||(t.importKind="value");const e=super.parseImport(t);return"type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(e.start,"A type-only import can specify a default import or named bindings, but not both."),e}parseExport(t){if(this.match(h._import))return this.expect(h._import),this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(h.eq)){const e=t;return e.expression=this.parseExpression(),this.semicolon(),this.finishNode(e,"TSExportAssignment")}if(this.eatContextual("as")){const e=t;return this.expectContextual("namespace"),e.id=this.parseIdentifier(),this.semicolon(),this.finishNode(e,"TSNamespaceExportDeclaration")}return this.isContextual("type")&&this.lookahead().type===h.braceL?(this.next(),t.exportKind="type"):t.exportKind="value",super.parseExport(t)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===h._class}parseExportDefaultExpression(){if(this.isAbstractClass()){const t=this.startNode();return this.next(),this.parseClass(t,!0,!0),t.abstract=!0,t}if("interface"===this.state.value){const t=this.tsParseDeclaration(this.startNode(),this.state.value,!0);if(t)return t}return super.parseExportDefaultExpression()}parseStatementContent(t,e){if(this.state.type===h._const){const t=this.lookahead();if(t.type===h.name&&"enum"===t.value){const t=this.startNode();return this.expect(h._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(t,!0)}}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(t,e,s){this.tsParseModifiers(e,["declare"]);const r=this.parseAccessModifier();r&&(e.accessibility=r),this.tsParseModifiers(e,["declare"]);const i=()=>{super.parseClassMember(t,e,s)};e.declare?this.tsInDeclareContext(i):i()}parseClassMemberWithIsStatic(t,e,s,r){this.tsParseModifiers(e,["abstract","readonly","declare"]);const i=this.tsTryParseIndexSignature(e);if(i)return t.body.push(i),e.abstract&&this.raise(e.start,ut.IndexSignatureHasAbstract),r&&this.raise(e.start,ut.IndexSignatureHasStatic),e.accessibility&&this.raise(e.start,ut.IndexSignatureHasAccessibility,e.accessibility),void(e.declare&&this.raise(e.start,ut.IndexSignatureHasDeclare));super.parseClassMemberWithIsStatic(t,e,s,r)}parsePostMemberNameModifiers(t){this.eat(h.question)&&(t.optional=!0),t.readonly&&this.match(h.parenL)&&this.raise(t.start,ut.ClassMethodHasReadonly),t.declare&&this.match(h.parenL)&&this.raise(t.start,ut.ClassMethodHasDeclare)}parseExpressionStatement(t,e){return("Identifier"===e.type?this.tsParseExpressionStatement(t,e):void 0)||super.parseExpressionStatement(t,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(t,e,s,r){if(!r||!this.match(h.question))return super.parseConditional(t,e,s,r);const i=this.tryParse((()=>super.parseConditional(t,e,s)));return i.node?(i.error&&(this.state=i.failState),i.node):(r.start=i.error.pos||this.state.start,t)}parseParenItem(t,e,s){if(t=super.parseParenItem(t,e,s),this.eat(h.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(h.colon)){const r=this.startNodeAt(e,s);return r.expression=t,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return t}parseExportDeclaration(t){const e=this.state.start,s=this.state.startLoc,r=this.eatContextual("declare");let i;return this.match(h.name)&&(i=this.tsTryParseExportDeclaration()),i||(i=super.parseExportDeclaration(t)),i&&("TSInterfaceDeclaration"===i.type||"TSTypeAliasDeclaration"===i.type||r)&&(t.exportKind="type"),i&&r&&(this.resetStartLocation(i,e,s),i.declare=!0),i}parseClassId(t,e,s){if((!e||s)&&this.isContextual("implements"))return;super.parseClassId(t,e,s,t.declare?1024:139);const r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r)}parseClassPropertyAnnotation(t){!t.optional&&this.eat(h.bang)&&(t.definite=!0);const e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){return this.parseClassPropertyAnnotation(t),this.state.isDeclareContext&&this.match(h.eq)&&this.raise(this.state.start,ut.DeclareClassFieldHasInitializer),super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(t.start,ut.PrivateElementHasAbstract),t.accessibility&&this.raise(t.start,ut.PrivateElementHasAccessibility,t.accessibility),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}pushClassMethod(t,e,s,r,i,n){const o=this.tsTryParseTypeParameters();o&&i&&this.raise(o.start,ut.ConstructorHasTypeParameters),o&&(e.typeParameters=o),super.pushClassMethod(t,e,s,r,i,n)}pushClassPrivateMethod(t,e,s,r){const i=this.tsTryParseTypeParameters();i&&(e.typeParameters=i),super.pushClassPrivateMethod(t,e,s,r)}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&this.isRelational("<")&&(t.superTypeParameters=this.tsParseTypeArguments()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,...e){const s=this.tsTryParseTypeParameters();s&&(t.typeParameters=s),super.parseObjPropValue(t,...e)}parseFunctionParams(t,e){const s=this.tsTryParseTypeParameters();s&&(t.typeParameters=s),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&this.eat(h.bang)&&(t.definite=!0);const s=this.tsTryParseTypeAnnotation();s&&(t.id.typeAnnotation=s,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(h.colon)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(...t){var e,s,r,i,n,o,a;let c,l,p,u;if(this.match(h.jsxTagStart)){if(c=this.state.clone(),l=this.tryParse((()=>super.parseMaybeAssign(...t)),c),!l.error)return l.node;const{context:e}=this.state;e[e.length-1]===P.j_oTag?e.length-=2:e[e.length-1]===P.j_expr&&(e.length-=1)}if(!(null==(e=l)?void 0:e.error)&&!this.isRelational("<"))return super.parseMaybeAssign(...t);c=c||this.state.clone();const d=this.tryParse((e=>{var s;u=this.tsParseTypeParameters();const r=super.parseMaybeAssign(...t);return("ArrowFunctionExpression"!==r.type||r.extra&&r.extra.parenthesized)&&e(),0!==(null==(s=u)?void 0:s.params.length)&&this.resetStartLocationFromNode(r,u),r.typeParameters=u,r}),c);if(!d.error&&!d.aborted)return d.node;if(!l&&(pt(!this.hasPlugin("jsx")),p=this.tryParse((()=>super.parseMaybeAssign(...t)),c),!p.error))return p.node;if(null==(s=l)?void 0:s.node)return this.state=l.failState,l.node;if(d.node)return this.state=d.failState,d.node;if(null==(r=p)?void 0:r.node)return this.state=p.failState,p.node;if(null==(i=l)?void 0:i.thrown)throw l.error;if(d.thrown)throw d.error;if(null==(n=p)?void 0:n.thrown)throw p.error;throw(null==(o=l)?void 0:o.error)||d.error||(null==(a=p)?void 0:a.error)}parseMaybeUnary(t){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(t)}parseArrow(t){if(this.match(h.colon)){const e=this.tryParse((t=>{const e=this.tsParseTypeOrTypePredicateAnnotation(h.colon);return!this.canInsertSemicolon()&&this.match(h.arrow)||t(),e}));if(e.aborted)return;e.thrown||(e.error&&(this.state=e.failState),t.returnType=e.node)}return super.parseArrow(t)}parseAssignableListItemTypes(t){this.eat(h.question)&&("Identifier"===t.type||this.state.isDeclareContext||this.state.inType||this.raise(t.start,ut.PatternIsOptional),t.optional=!0);const e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e),this.resetEndLocation(t),t}toAssignable(t,e=!1){switch(t.type){case"TSTypeCastExpression":return super.toAssignable(this.typeCastToParameter(t),e);case"TSParameterProperty":return super.toAssignable(t,e);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return t.expression=this.toAssignable(t.expression,e),t;default:return super.toAssignable(t,e)}}checkLVal(t,e,...s){switch(t.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(t.parameter,"parameter property",...s);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(t.expression,e,...s);default:return void super.checkLVal(t,e,...s)}}parseBindingAtom(){switch(this.state.type){case h._this:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(t){if(this.isRelational("<")){const e=this.tsParseTypeArguments();if(this.match(h.parenL)){const s=super.parseMaybeDecoratorArguments(t);return s.typeParameters=e,s}this.unexpected(this.state.start,h.parenL)}return super.parseMaybeDecoratorArguments(t)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(h.bang)||this.match(h.colon)||super.isClassProperty()}parseMaybeDefault(...t){const e=super.parseMaybeDefault(...t);return"AssignmentPattern"===e.type&&e.typeAnnotation&&e.right.startthis.tsParseTypeArguments()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){const e=super.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t)[0];return s&&"Identifier"===s.type&&"this"===s.name?e+1:e}parseCatchClauseParam(){const t=super.parseCatchClauseParam(),e=this.tsTryParseTypeAnnotation();return e&&(t.typeAnnotation=e,this.resetEndLocation(t)),t}tsInDeclareContext(t){const e=this.state.isDeclareContext;this.state.isDeclareContext=!0;try{return t()}finally{this.state.isDeclareContext=e}}},v8intrinsic:t=>class extends t{parseV8Intrinsic(){if(this.match(h.modulo)){const t=this.state.start,e=this.startNode();if(this.eat(h.modulo),this.match(h.name)){const t=this.parseIdentifierName(this.state.start),s=this.createIdentifier(e,t);if(s.type="V8IntrinsicIdentifier",this.match(h.parenL))return s}this.unexpected(t)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(h.placeholder)){const e=this.startNode();return this.next(),this.assertNoSpace("Unexpected space in placeholder."),e.name=super.parseIdentifier(!0),this.assertNoSpace("Unexpected space in placeholder."),this.expect(h.placeholder),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){const s=!(!t.expectedNode||"Placeholder"!==t.type);return t.expectedNode=e,s?t:this.finishNode(t,"Placeholder")}getTokenFromCode(t){return 37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.placeholder,2):super.getTokenFromCode(...arguments)}parseExprAtom(){return this.parsePlaceholder("Expression")||super.parseExprAtom(...arguments)}parseIdentifier(){return this.parsePlaceholder("Identifier")||super.parseIdentifier(...arguments)}checkReservedWord(t){void 0!==t&&super.checkReservedWord(...arguments)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom(...arguments)}checkLVal(t){"Placeholder"!==t.type&&super.checkLVal(...arguments)}toAssignable(t){return t&&"Placeholder"===t.type&&"Expression"===t.expectedNode?(t.expectedNode="Pattern",t):super.toAssignable(...arguments)}verifyBreakContinue(t){t.label&&"Placeholder"===t.label.type||super.verifyBreakContinue(...arguments)}parseExpressionStatement(t,e){if("Placeholder"!==e.type||e.extra&&e.extra.parenthesized)return super.parseExpressionStatement(...arguments);if(this.match(h.colon)){const s=t;return s.label=this.finishPlaceholder(e,"Identifier"),this.next(),s.body=this.parseStatement("label"),this.finishNode(s,"LabeledStatement")}return this.semicolon(),t.name=e.name,this.finishPlaceholder(t,"Statement")}parseBlock(){return this.parsePlaceholder("BlockStatement")||super.parseBlock(...arguments)}parseFunctionId(){return this.parsePlaceholder("Identifier")||super.parseFunctionId(...arguments)}parseClass(t,e,s){const r=e?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(t);const i=this.state.strict,n=this.parsePlaceholder("Identifier");if(n)if(this.match(h._extends)||this.match(h.placeholder)||this.match(h.braceL))t.id=n;else{if(s||!e)return t.id=null,t.body=this.finishPlaceholder(n,"ClassBody"),this.finishNode(t,r);this.unexpected(null,"A class name is required")}else this.parseClassId(t,e,s);return this.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!t.superClass,i),this.finishNode(t,r)}parseExport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(h.comma))return t.specifiers=[],t.source=null,t.declaration=this.finishPlaceholder(e,"Declaration"),this.finishNode(t,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const s=this.startNode();return s.exported=e,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],super.parseExport(t)}isExportDefaultSpecifier(){if(this.match(h._default)){const t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(h.placeholder.label,this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t){return!!(t.specifiers&&t.specifiers.length>0)||super.maybeParseExportDefaultSpecifier(...arguments)}checkExport(t){const{specifiers:e}=t;(null==e?void 0:e.length)&&(t.specifiers=e.filter((t=>"Placeholder"===t.exported.type))),super.checkExport(t),t.specifiers=e}parseImport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseImport(...arguments);if(t.specifiers=[],!this.isContextual("from")&&!this.match(h.comma))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");const s=this.startNodeAtNode(e);if(s.local=e,this.finishNode(s,"ImportDefaultSpecifier"),t.specifiers.push(s),this.eat(h.comma)){this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)}return this.expectContextual("from"),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource(...arguments)}}},gt=Object.keys(xt),bt={sourceType:"script",sourceFilename:void 0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createParenthesizedExpressions:!1,errorRecovery:!1};class vt{constructor(){this.strict=void 0,this.curLine=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.maybeInArrowParameters=!1,this.inPipeline=!1,this.inType=!1,this.noAnonFunctionType=!1,this.inPropertyName=!1,this.hasFlowComment=!1,this.isIterator=!1,this.isDeclareContext=!1,this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.soloAwait=!1,this.inFSharpPipelineDirectBody=!1,this.labels=[],this.decoratorStack=[[]],this.comments=[],this.trailingComments=[],this.leadingComments=[],this.commentStack=[],this.commentPreviousNode=null,this.pos=0,this.lineStart=0,this.type=h.eof,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.lastTokStart=0,this.lastTokEnd=0,this.context=[P.braceStatement],this.exprAllowed=!0,this.containsEsc=!1,this.octalPositions=[],this.exportedIdentifiers=[],this.tokensLength=0}init(t){this.strict=!1!==t.strictMode&&"module"===t.sourceType,this.curLine=t.startLine,this.startLoc=this.endLoc=this.curPosition()}curPosition(){return new y(this.curLine,this.pos-this.lineStart)}clone(t){const e=new vt,s=Object.keys(this);for(let r=0,i=s.length;r=48&&t<=57};const Pt=new Set(["g","m","s","i","y","u"]),Tt={decBinOct:[46,66,69,79,95,98,101,111],hex:[46,88,95,120]},At={bin:[48,49]};At.oct=[...At.bin,50,51,52,53,54,55],At.dec=[...At.oct,56,57],At.hex=[...At.dec,65,66,67,68,69,70,97,98,99,100,101,102];class Et{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new x(t.startLoc,t.endLoc)}}class St{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class Ct{constructor(t,e,s){this.type=void 0,this.start=void 0,this.end=void 0,this.loc=void 0,this.range=void 0,this.leadingComments=void 0,this.trailingComments=void 0,this.innerComments=void 0,this.extra=void 0,this.type="",this.start=e,this.end=0,this.loc=new x(s),(null==t?void 0:t.options.ranges)&&(this.range=[e,0]),(null==t?void 0:t.filename)&&(this.loc.filename=t.filename)}__clone(){const t=new Ct,e=Object.keys(this);for(let s=0,r=e.length;s"ParenthesizedExpression"===t.type?kt(t.expression):t;class Nt{constructor(t=0){this.type=void 0,this.type=t}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class It extends Nt{constructor(t){super(t),this.errors=new Map}recordDeclarationError(t,e){this.errors.set(t,e)}clearDeclarationError(t){this.errors.delete(t)}iterateErrors(t){this.errors.forEach(t)}}class _t{constructor(t){this.stack=[new Nt],this.raise=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,e){const{stack:s}=this;let r=s.length-1,i=s[r];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(t,e),i=s[--r]}this.raise(t,e)}recordParenthesizedIdentifierError(t,e){const{stack:s}=this,r=s[s.length-1];if(r.isCertainlyParameterDeclaration())this.raise(t,e);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(t,e)}}recordAsyncArrowParametersError(t,e){const{stack:s}=this;let r=s.length-1,i=s[r];for(;i.canBeArrowParameterDeclaration();)2===i.type&&i.recordDeclarationError(t,e),i=s[--r]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(((e,s)=>{this.raise(s,e);let r=t.length-2,i=t[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(s),i=t[--r]}))}}function Lt(){return new Nt}const Ot={kind:"loop"},Mt={kind:"switch"},Dt=/[\uD800-\uDFFF]/u;class Rt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class Ft{constructor(t){this.stack=[],this.undefinedPrivateNames=new Map,this.raise=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Rt)}exit(){const t=this.stack.pop(),e=this.current();for(let s=0,r=Array.from(t.undefinedPrivateNames);s0;)r=e[--i];if(null===r)return;for(let t=0;t0?r.trailingComments=n:void 0!==r.trailingComments&&(r.trailingComments=[])}processComment(t){if("Program"===t.type&&t.body.length>0)return;const e=this.state.commentStack;let s,r,i,n,o;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=t.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(e.length>0){const s=g(e);s.trailingComments&&s.trailingComments[0].start>=t.end&&(i=s.trailingComments,delete s.trailingComments)}for(e.length>0&&g(e).start>=t.start&&(s=e.pop());e.length>0&&g(e).start>=t.start;)r=e.pop();if(!r&&s&&(r=s),s)switch(t.type){case"ObjectExpression":this.adjustCommentsAfterTrailingComma(t,t.properties);break;case"ObjectPattern":this.adjustCommentsAfterTrailingComma(t,t.properties,!0);break;case"CallExpression":this.adjustCommentsAfterTrailingComma(t,t.arguments);break;case"ArrayExpression":this.adjustCommentsAfterTrailingComma(t,t.elements);break;case"ArrayPattern":this.adjustCommentsAfterTrailingComma(t,t.elements,!0)}else this.state.commentPreviousNode&&("ImportSpecifier"===this.state.commentPreviousNode.type&&"ImportSpecifier"!==t.type||"ExportSpecifier"===this.state.commentPreviousNode.type&&"ExportSpecifier"!==t.type)&&this.adjustCommentsAfterTrailingComma(t,[this.state.commentPreviousNode]);if(r){if(r.leadingComments)if(r!==t&&r.leadingComments.length>0&&g(r.leadingComments).end<=t.start)t.leadingComments=r.leadingComments,delete r.leadingComments;else for(n=r.leadingComments.length-2;n>=0;--n)if(r.leadingComments[n].end<=t.start){t.leadingComments=r.leadingComments.splice(0,n+1);break}}else if(this.state.leadingComments.length>0)if(g(this.state.leadingComments).end<=t.start){if(this.state.commentPreviousNode)for(o=0;o0&&(t.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(n=0;nt.start);n++);const e=this.state.leadingComments.slice(0,n);e.length&&(t.leadingComments=e),i=this.state.leadingComments.slice(n),0===i.length&&(i=null)}if(this.state.commentPreviousNode=t,i)if(i.length&&i[0].start>=t.start&&g(i).end<=t.end)t.innerComments=i;else{const e=i.findIndex((e=>e.end>=t.end));e>0?(t.innerComments=i.slice(0,e),t.trailingComments=i.slice(e)):t.trailingComments=i}e.push(t)}}{getLocationForPosition(t){let e;return e=t===this.state.start?this.state.startLoc:t===this.state.lastTokStart?this.state.lastTokStartLoc:t===this.state.end?this.state.endLoc:t===this.state.lastTokEnd?this.state.lastTokEndLoc:function(t,e){let s,r=1,i=0;for(u.lastIndex=0;(s=u.exec(t))&&s.indexr[e]))+` (${i.line}:${i.column})`;return this._raise(Object.assign({loc:i,pos:t},e),n)}_raise(t,e){const s=new SyntaxError(e);if(Object.assign(s,t),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(s),s;throw s}}{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.state=new vt,this.state.init(t),this.input=e,this.length=e.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.isLookahead||(this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Et(this.state))),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return!!this.match(t)&&(this.next(),!0)}match(t){return this.state.type===t}lookahead(){const t=this.state;this.state=t.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;const e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){f.lastIndex=t;return t+f.exec(this.input)[0].length}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}setStrict(t){if(this.state.strict=t,this.match(h.num)||this.match(h.string)){for(this.state.pos=this.state.start;this.state.pos=this.length)return void this.finishToken(h.eof);const e=null==t?void 0:t.override;e?e(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(t,e,s,r,i,n){const o={type:t?"CommentBlock":"CommentLine",value:e,start:s,end:r,loc:new x(i,n)};this.options.tokens&&this.pushToken(o),this.state.comments.push(o),this.addComment(o)}skipBlockComment(){const t=this.state.curPosition(),e=this.state.pos,s=this.input.indexOf("*/",this.state.pos+2);if(-1===s)throw this.raise(e,b.UnterminatedComment);let r;for(this.state.pos=s+2,u.lastIndex=e;(r=u.exec(this.input))&&r.index=48&&e<=57)throw this.raise(this.state.pos,b.UnexpectedDigitAfterHash);if(123===e||91===e&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"hash"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,123===e?b.RecordExpressionHashIncorrectStartSyntaxType:b.TupleExpressionHashIncorrectStartSyntaxType);123===e?this.finishToken(h.braceHashL):this.finishToken(h.bracketHashL),this.state.pos+=2}else this.finishOp(h.hash,1)}readToken_dot(){const t=this.input.charCodeAt(this.state.pos+1);t>=48&&t<=57?this.readNumber(!0):46===t&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(h.ellipsis)):(++this.state.pos,this.finishToken(h.dot))}readToken_slash(){if(this.state.exprAllowed&&!this.state.inType)return++this.state.pos,void this.readRegexp();61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.assign,2):this.finishOp(h.slash,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(33!==t)return!1;const e=this.state.pos;for(this.state.pos+=1;!d(t)&&++this.state.pos=48&&e<=57?(++this.state.pos,this.finishToken(h.question)):(this.state.pos+=2,this.finishToken(h.questionDot))}getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(h.parenL);case 41:return++this.state.pos,void this.finishToken(h.parenR);case 59:return++this.state.pos,void this.finishToken(h.semi);case 44:return++this.state.pos,void this.finishToken(h.comma);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,b.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(h.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(h.bracketL);return;case 93:return++this.state.pos,void this.finishToken(h.bracketR);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,b.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(h.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(h.braceL);return;case 125:return++this.state.pos,void this.finishToken(h.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(h.doubleColon,2):(++this.state.pos,this.finishToken(h.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(h.backQuote);case 48:{const t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(t);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(t);case 124:case 38:return void this.readToken_pipe_amp(t);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(t);case 60:case 62:return void this.readToken_lt_gt(t);case 61:case 33:return void this.readToken_eq_excl(t);case 126:return void this.finishOp(h.tilde,1);case 64:return++this.state.pos,void this.finishToken(h.at);case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(I(t))return void this.readWord()}throw this.raise(this.state.pos,b.InvalidOrUnexpectedToken,String.fromCodePoint(t))}finishOp(t,e){const s=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,s)}readRegexp(){const t=this.state.pos;let e,s;for(;;){if(this.state.pos>=this.length)throw this.raise(t,b.UnterminatedRegExp);const r=this.input.charAt(this.state.pos);if(p.test(r))throw this.raise(t,b.UnterminatedRegExp);if(e)e=!1;else{if("["===r)s=!0;else if("]"===r&&s)s=!1;else if("/"===r&&!s)break;e="\\"===r}++this.state.pos}const r=this.input.slice(t,this.state.pos);++this.state.pos;let i="";for(;this.state.pos-1&&this.raise(this.state.pos+1,b.DuplicateRegExpFlags);else{if(!_(e)&&92!==e)break;this.raise(this.state.pos+1,b.MalformedRegExpFlags)}++this.state.pos,i+=t}this.finishToken(h.regexp,{pattern:r,flags:i})}readInt(t,e,s,r=!0){const i=this.state.pos,n=16===t?Tt.hex:Tt.decBinOct,o=16===t?At.hex:10===t?At.dec:8===t?At.oct:At.bin;let a=!1,c=0;for(let i=0,l=null==e?1/0:e;i=97?e-97+10:e>=65?e-65+10:wt(e)?e-48:1/0,l>=t)if(this.options.errorRecovery&&l<=9)l=0,this.raise(this.state.start+i+2,b.InvalidDigit,t);else{if(!s)break;l=0,a=!0}++this.state.pos,c=c*t+l}else{const t=this.input.charCodeAt(this.state.pos-1),e=this.input.charCodeAt(this.state.pos+1);(-1===o.indexOf(e)||n.indexOf(t)>-1||n.indexOf(e)>-1||Number.isNaN(e))&&this.raise(this.state.pos,b.UnexpectedNumericSeparator),r||this.raise(this.state.pos,b.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===i||null!=e&&this.state.pos-i!==e||a?null:c}readRadixNumber(t){const e=this.state.pos;let s=!1;this.state.pos+=2;const r=this.readInt(t);null==r&&this.raise(this.state.start+2,b.InvalidDigit,t);const i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,s=!0;else if(109===i)throw this.raise(e,b.InvalidDecimal);if(I(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,b.NumberIdentifier);if(s){const t=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(h.bigint,t)}else this.finishToken(h.num,r)}readNumber(t){const e=this.state.pos;let s=!1,r=!1,i=!1,n=!1,o=!1;t||null!==this.readInt(10)||this.raise(e,b.InvalidNumber);const a=this.state.pos-e>=2&&48===this.input.charCodeAt(e);if(a){const t=this.input.slice(e,this.state.pos);if(this.state.strict)this.raise(e,b.StrictOctalLiteral);else{const s=t.indexOf("_");s>0&&this.raise(s+e,b.ZeroDigitNumericSeparator)}o=a&&!/[89]/.test(t)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||o||(++this.state.pos,this.readInt(10),s=!0,c=this.input.charCodeAt(this.state.pos)),69!==c&&101!==c||o||(c=this.input.charCodeAt(++this.state.pos),43!==c&&45!==c||++this.state.pos,null===this.readInt(10)&&this.raise(e,b.InvalidOrMissingExponent),s=!0,n=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((s||a)&&this.raise(e,b.InvalidBigIntLiteral),++this.state.pos,r=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(n||a)&&this.raise(e,b.InvalidDecimal),++this.state.pos,i=!0),I(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,b.NumberIdentifier);const l=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(r)return void this.finishToken(h.bigint,l);if(i)return void this.finishToken(h.decimal,l);const p=o?parseInt(l,8):parseFloat(l);this.finishToken(h.num,p)}readCodePoint(t){let e;if(123===this.input.charCodeAt(this.state.pos)){const s=++this.state.pos;if(e=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos,!0,t),++this.state.pos,null!==e&&e>1114111){if(!t)return null;this.raise(s,b.InvalidCodePoint)}}else e=this.readHexChar(4,!1,t);return e}readString(t){let e="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedString);const r=this.input.charCodeAt(this.state.pos);if(r===t)break;if(92===r)e+=this.input.slice(s,this.state.pos),e+=this.readEscapedChar(!1),s=this.state.pos;else if(8232===r||8233===r)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(d(r))throw this.raise(this.state.start,b.UnterminatedString);++this.state.pos}}e+=this.input.slice(s,this.state.pos++),this.finishToken(h.string,e)}readTmplToken(){let t="",e=this.state.pos,s=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,b.UnterminatedTemplate);const r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(h.template)?36===r?(this.state.pos+=2,void this.finishToken(h.dollarBraceL)):(++this.state.pos,void this.finishToken(h.backQuote)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(h.template,s?null:t));if(92===r){t+=this.input.slice(e,this.state.pos);const r=this.readEscapedChar(!0);null===r?s=!0:t+=r,e=this.state.pos}else if(d(r)){switch(t+=this.input.slice(e,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}}readEscapedChar(t){const e=!t,s=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,s){case 110:return"\n";case 114:return"\r";case 120:{const t=this.readHexChar(2,!1,e);return null===t?null:String.fromCharCode(t)}case 117:{const t=this.readCodePoint(e);return null===t?null:String.fromCodePoint(t)}case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:this.state.lineStart=this.state.pos,++this.state.curLine;case 8232:case 8233:return"";case 56:case 57:if(t)return null;this.state.strict&&this.raise(this.state.pos-1,b.StrictNumericEscape);default:if(s>=48&&s<=55){const e=this.state.pos-1;let s=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.state.pos+=s.length-1;const i=this.input.charCodeAt(this.state.pos);if("0"!==s||56===i||57===i){if(t)return null;this.state.strict?this.raise(e,b.StrictNumericEscape):this.state.octalPositions.push(e)}return String.fromCharCode(r)}return String.fromCharCode(s)}}readHexChar(t,e,s){const r=this.state.pos,i=this.readInt(16,t,e,!1);return null===i&&(s?this.raise(r,b.InvalidEscapeSequence):this.state.pos=r-1),i}readWord1(){let t="";this.state.containsEsc=!1;const e=this.state.pos;let s=this.state.pos;for(;this.state.posthis.state.lastTokEnd&&this.raise(this.state.lastTokEnd,t)}unexpected(t,e="Unexpected token"){throw"string"!=typeof e&&(e=`Unexpected token, expected "${e.label}"`),this.raise(null!=t?t:this.state.start,e)}expectPlugin(t,e){if(!this.hasPlugin(t))throw this.raiseWithData(null!=e?e:this.state.start,{missingPlugin:[t]},`This experimental syntax requires enabling the parser plugin: '${t}'`);return!0}expectOnePlugin(t,e){if(!t.some((t=>this.hasPlugin(t))))throw this.raiseWithData(null!=e?e:this.state.start,{missingPlugin:t},`This experimental syntax requires enabling one of the following parser plugin(s): '${t.join(", ")}'`)}tryParse(t,e=this.state.clone()){const s={node:null};try{const r=t(((t=null)=>{throw s.node=t,s}));if(this.state.errors.length>e.errors.length){const t=this.state;return this.state=e,{node:r,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){const r=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:r};if(t===s)return{node:s.node,error:null,thrown:!1,aborted:!0,failState:r};throw t}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssign:s,doubleProto:r}=t;if(!e)return s>=0||r>=0;s>=0&&this.unexpected(s),r>=0&&this.raise(r,b.DuplicateProto)}isLiteralPropertyName(){return this.match(h.name)||!!this.state.type.keyword||this.match(h.string)||this.match(h.num)||this.match(h.bigint)||this.match(h.decimal)}}{startNode(){return new Ct(this,this.state.start,this.state.startLoc)}startNodeAt(t,e){return new Ct(this,t,e)}startNodeAtNode(t){return this.startNodeAt(t.start,t.loc.start)}finishNode(t,e){return this.finishNodeAt(t,e,this.state.lastTokEnd,this.state.lastTokEndLoc)}finishNodeAt(t,e,s,r){return t.type=e,t.end=s,t.loc.end=r,this.options.ranges&&(t.range[1]=s),this.processComment(t),t}resetStartLocation(t,e,s){t.start=e,t.loc.start=s,this.options.ranges&&(t.range[0]=e)}resetEndLocation(t,e=this.state.lastTokEnd,s=this.state.lastTokEndLoc){t.end=e,t.loc.end=s,this.options.ranges&&(t.range[1]=e)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.start,e.loc.start)}}{toAssignable(t,e=!1){var s,r;let i;switch(("ParenthesizedExpression"===t.type||(null==(s=t.extra)?void 0:s.parenthesized))&&(i=kt(t),e?"Identifier"===i.type?this.expressionScope.recordParenthesizedIdentifierError(t.start,b.InvalidParenthesizedAssignment):"MemberExpression"!==i.type&&this.raise(t.start,b.InvalidParenthesizedAssignment):this.raise(t.start,b.InvalidParenthesizedAssignment)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(let s=0,r=t.properties.length,i=r-1;sthis.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){const e=this.state.start,s=this.state.startLoc,r=this.parseMaybeAssign(t);if(this.match(h.comma)){const i=this.startNodeAt(e,s);for(i.expressions=[r];this.eat(h.comma);)i.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(t,e,s){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e,s)))}parseMaybeAssignAllowIn(t,e,s){return this.allowInAnd((()=>this.parseMaybeAssign(t,e,s)))}parseMaybeAssign(t,e,s){const r=this.state.start,i=this.state.startLoc;if(this.isContextual("yield")&&this.prodParam.hasYield){this.state.exprAllowed=!0;let t=this.parseYield();return e&&(t=e.call(this,t,r,i)),t}let n;t?n=!1:(t=new St,n=!0),(this.match(h.parenL)||this.match(h.name))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t,s);if(e&&(o=e.call(this,o,r,i)),this.state.type.isAssign){const e=this.startNodeAt(r,i),s=this.state.value;return e.operator=s,this.match(h.eq)?(e.left=this.toAssignable(o,!0),t.doubleProto=-1):e.left=o,t.shorthandAssign>=e.left.start&&(t.shorthandAssign=-1),this.checkLVal(o,"assignment expression"),this.next(),e.right=this.parseMaybeAssign(),this.finishNode(e,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),o}parseMaybeConditional(t,e){const s=this.state.start,r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprOps(t);return this.shouldExitDescending(n,i)?n:this.parseConditional(n,s,r,e)}parseConditional(t,e,s,r){if(this.eat(h.question)){const r=this.startNodeAt(e,s);return r.test=t,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(h.colon),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return t}parseExprOps(t){const e=this.state.start,s=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseMaybeUnary(t);return this.shouldExitDescending(i,r)?i:this.parseExprOp(i,e,s,-1)}parseExprOp(t,e,s,r){let i=this.state.type.binop;if(null!=i&&(this.prodParam.hasIn||!this.match(h._in))&&i>r){const n=this.state.type;if(n===h.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(t,e)}const o=this.startNodeAt(e,s);o.left=t,o.operator=this.state.value,n!==h.exponent||"UnaryExpression"!==t.type||!this.options.createParenthesizedExpressions&&t.extra&&t.extra.parenthesized||this.raise(t.argument.start,b.UnexpectedTokenUnaryExponentiation);const a=n===h.logicalOR||n===h.logicalAND,c=n===h.nullishCoalescing;if(c&&(i=h.logicalAND.binop),this.next(),n===h.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(h.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,b.UnexpectedAwaitAfterPipelineBody);o.right=this.parseExprOpRightExpr(n,i),this.finishNode(o,a||c?"LogicalExpression":"BinaryExpression");const l=this.state.type;if(c&&(l===h.logicalOR||l===h.logicalAND)||a&&l===h.nullishCoalescing)throw this.raise(this.state.start,b.MixingCoalesceWithLogical);return this.parseExprOp(o,e,s,r)}return t}parseExprOpRightExpr(t,e){const s=this.state.start,r=this.state.startLoc;switch(t){case h.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(t,e),s,r)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){const s=this.state.start,r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),s,r,t.rightAssociative?e-1:e)}parseMaybeUnary(t){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();const e=this.match(h.incDec),s=this.startNode();if(this.state.type.prefix){s.operator=this.state.value,s.prefix=!0,this.match(h._throw)&&this.expectPlugin("throwExpressions");const r=this.match(h._delete);if(this.next(),s.argument=this.parseMaybeUnary(),this.checkExpressionErrors(t,!0),this.state.strict&&r){const t=s.argument;"Identifier"===t.type?this.raise(s.start,b.StrictDelete):"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type||"PrivateName"!==t.property.type||this.raise(s.start,b.DeletePrivateField)}if(!e)return this.finishNode(s,"UnaryExpression")}return this.parseUpdate(s,e,t)}parseUpdate(t,e,s){if(e)return this.checkLVal(t.argument,"prefix operation"),this.finishNode(t,"UpdateExpression");const r=this.state.start,i=this.state.startLoc;let n=this.parseExprSubscripts(s);if(this.checkExpressionErrors(s,!1))return n;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const t=this.startNodeAt(r,i);t.operator=this.state.value,t.prefix=!1,t.argument=n,this.checkLVal(n,"postfix operation"),this.next(),n=this.finishNode(t,"UpdateExpression")}return n}parseExprSubscripts(t){const e=this.state.start,s=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprAtom(t);return this.shouldExitDescending(i,r)?i:this.parseSubscripts(i,e,s)}parseSubscripts(t,e,s,r){const i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,s,r,i),i.maybeAsyncArrow=!1}while(!i.stop);return t}parseSubscript(t,e,s,r,i){if(!r&&this.eat(h.doubleColon))return this.parseBind(t,e,s,r,i);if(this.match(h.backQuote))return this.parseTaggedTemplateExpression(t,e,s,i);let n=!1;if(this.match(h.questionDot)){if(i.optionalChainMember=n=!0,r&&40===this.lookaheadCharCode())return i.stop=!0,t;this.next()}return!r&&this.match(h.parenL)?this.parseCoverCallAndAsyncArrowHead(t,e,s,i,n):n||this.match(h.bracketL)||this.eat(h.dot)?this.parseMember(t,e,s,i,n):(i.stop=!0,t)}parseMember(t,e,s,r,i){const n=this.startNodeAt(e,s),o=this.eat(h.bracketL);n.object=t,n.computed=o;const a=o?this.parseExpression():this.parseMaybePrivateName(!0);return"PrivateName"===a.type&&("Super"===n.object.type&&this.raise(e,b.SuperPrivateField),this.classScope.usePrivateName(a.id.name,a.start)),n.property=a,o&&this.expect(h.bracketR),r.optionalChainMember?(n.optional=i,this.finishNode(n,"OptionalMemberExpression")):this.finishNode(n,"MemberExpression")}parseBind(t,e,s,r,i){const n=this.startNodeAt(e,s);return n.object=t,n.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),e,s,r)}parseCoverCallAndAsyncArrowHead(t,e,s,r,i){const n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e,s);return o.callee=t,r.maybeAsyncArrow&&this.expressionScope.enter(new It(2)),r.optionalChainMember&&(o.optional=i),o.arguments=i?this.parseCallExpressionArguments(h.parenR,!1):this.parseCallExpressionArguments(h.parenR,r.maybeAsyncArrow,"Import"===t.type,"Super"!==t.type,o),this.finishCallExpression(o,r.optionalChainMember),r.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!i?(r.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),o=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e,s),o)):(r.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(o)),this.state.maybeInArrowParameters=n,o}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,s,r){const i=this.startNodeAt(e,s);return i.tag=t,i.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(e,b.OptionalChainingNoTemplate),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return"Identifier"===t.type&&"async"===t.name&&this.state.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start==5&&t.start===this.state.potentialArrowAt}finishCallExpression(t,e){if("Import"===t.callee.type)if(2===t.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectPlugin("importAssertions")),0===t.arguments.length||t.arguments.length>2)this.raise(t.start,b.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(let e=0,s=t.arguments;e1?(r=this.startNodeAt(o,a),r.expressions=c,this.finishNodeAt(r,"SequenceExpression",m,y)):r=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",e),r;const g=this.startNodeAt(e,s);return g.expression=r,this.finishNode(g,"ParenthesizedExpression"),g}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(h.arrow))return t}parseParenItem(t,e,s){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(h.dot)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const s=this.parseMetaProperty(t,e,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){let t=b.UnexpectedNewTarget;this.hasPlugin("classProperties")&&(t+=" or class properties"),this.raise(s.start,t)}return s}return this.parseNew(t)}parseNew(t){return t.callee=this.parseNoCallExpr(),"Import"===t.callee.type?this.raise(t.callee.start,b.ImportCallNotNewExpression):"OptionalMemberExpression"===t.callee.type||"OptionalCallExpression"===t.callee.type?this.raise(this.state.lastTokEnd,b.OptionalChainingNoNew):this.eat(h.questionDot)&&this.raise(this.state.start,b.OptionalChainingNoNew),this.parseNewArguments(t),this.finishNode(t,"NewExpression")}parseNewArguments(t){if(this.eat(h.parenL)){const e=this.parseExprList(h.parenR);this.toReferencedList(e),t.arguments=e}else t.arguments=[]}parseTemplateElement(t){const e=this.startNode();return null===this.state.value&&(t||this.raise(this.state.start+1,b.InvalidEscapeSequenceTemplate)),e.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),e.tail=this.match(h.backQuote),this.finishNode(e,"TemplateElement")}parseTemplate(t){const e=this.startNode();this.next(),e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)this.expect(h.dollarBraceL),e.expressions.push(this.parseTemplateSubstitution()),this.expect(h.braceR),e.quasis.push(s=this.parseTemplateElement(t));return this.next(),this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=Object.create(null);let o=!0;const a=this.startNode();for(a.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(h.comma),this.match(t)){this.addExtra(a,"trailingComma",this.state.lastTokStart);break}const i=this.parsePropertyDefinition(e,r);e||this.checkProto(i,s,n,r),s&&"ObjectProperty"!==i.type&&"SpreadElement"!==i.type&&this.raise(i.start,b.InvalidRecordProperty),i.shorthand&&this.addExtra(i,"shorthand",!0),a.properties.push(i)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return e?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(a,c)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(h.bracketL)||this.match(h.star))}parsePropertyDefinition(t,e){let s=[];if(this.match(h.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,b.UnsupportedPropertyDecorator);this.match(h.at);)s.push(this.parseDecorator());const r=this.startNode();let i,n,o=!1,a=!1,c=!1;if(this.match(h.ellipsis))return s.length&&this.unexpected(),t?(this.next(),r.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(r,"RestElement")):this.parseSpread();s.length&&(r.decorators=s,s=[]),r.method=!1,(t||e)&&(i=this.state.start,n=this.state.startLoc),t||(o=this.eat(h.star));const l=this.state.containsEsc,p=this.parsePropertyName(r,!1);if(!t&&!o&&!l&&this.maybeAsyncOrAccessorProp(r)){const t=p.name;"async"!==t||this.hasPrecedingLineBreak()||(a=!0,o=this.eat(h.star),this.parsePropertyName(r,!1)),"get"!==t&&"set"!==t||(c=!0,r.kind=t,this.match(h.star)&&(o=!0,this.raise(this.state.pos,b.AccessorIsGenerator,t),this.next()),this.parsePropertyName(r,!1))}return this.parseObjPropValue(r,i,n,o,a,t,c,e),r}getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const s=this.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t),i=t.start;r.length!==s&&("get"===t.kind?this.raise(i,b.BadGetterArity):this.raise(i,b.BadSetterArity)),"set"===t.kind&&"RestElement"===(null==(e=r[r.length-1])?void 0:e.type)&&this.raise(i,b.BadSetterRestParameter)}parseObjectMethod(t,e,s,r,i){return i?(this.parseMethod(t,e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t):s||e||this.match(h.parenL)?(r&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(t,e,s,r,i){return t.shorthand=!1,this.eat(h.colon)?(t.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty")):t.computed||"Identifier"!==t.key.type?void 0:(this.checkReservedWord(t.key.name,t.key.start,!0,!1),r?t.value=this.parseMaybeDefault(e,s,t.key.__clone()):this.match(h.eq)&&i?(-1===i.shorthandAssign&&(i.shorthandAssign=this.state.start),t.value=this.parseMaybeDefault(e,s,t.key.__clone())):t.value=t.key.__clone(),t.shorthand=!0,this.finishNode(t,"ObjectProperty"))}parseObjPropValue(t,e,s,r,i,n,o,a){const c=this.parseObjectMethod(t,r,i,n,o)||this.parseObjectProperty(t,e,s,n,a);return c||this.unexpected(),c}parsePropertyName(t,e){if(this.eat(h.bracketL))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(h.bracketR);else{const s=this.state.inPropertyName;this.state.inPropertyName=!0,t.key=this.match(h.num)||this.match(h.string)||this.match(h.bigint)||this.match(h.decimal)?this.parseExprAtom():this.parseMaybePrivateName(e),"PrivateName"!==t.key.type&&(t.computed=!1),this.state.inPropertyName=s}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=!!e}parseMethod(t,e,s,r,i,n,o=!1){this.initFunction(t,s),t.generator=!!e;const a=r;return this.scope.enter(18|(o?64:0)|(i?32:0)),this.prodParam.enter(lt(s,t.generator)),this.parseFunctionParams(t,a),this.parseFunctionBodyAndFinish(t,n,!0),this.prodParam.exit(),this.scope.exit(),t}parseArrayLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const n=this.startNode();return this.next(),n.elements=this.parseExprList(t,!s,r,n),this.state.inFSharpPipelineDirectBody=i,this.finishNode(n,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,r){this.scope.enter(6);let i=lt(s,!1);!this.match(h.bracketL)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(t,s);const n=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){t.params=this.toAssignableList(e,s,!1)}parseFunctionBodyAndFinish(t,e,s=!1){this.parseFunctionBody(t,!1,s),this.finishNode(t,e)}parseFunctionBody(t,e,s=!1){const r=e&&!this.match(h.braceL);if(this.expressionScope.enter(Lt()),r)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(i=>{const n=!this.isSimpleParamList(t.params);if(i&&n){const e="method"!==t.kind&&"constructor"!==t.kind||!t.key?t.start:t.key.end;this.raise(e,b.IllegalLanguageModeDirective)}const o=!r&&this.state.strict;this.checkParams(t,!(this.state.strict||e||s||n),e,o),this.state.strict&&t.id&&this.checkLVal(t.id,"function name",65,void 0,void 0,o)})),this.prodParam.exit(),this.expressionScope.exit(),this.state.labels=i}}isSimpleParamList(t){for(let e=0,s=t.length;e=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.start,s=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const i=this.parseExprOp(this.parseMaybeUnary(),e,s,t);return this.state.inFSharpPipelineDirectBody=r,i}}{parseTopLevel(t,e){if(e.sourceType=this.options.sourceType,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,h.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let t=0,e=Array.from(this.scope.undefinedExports);tthis.parseStatement("do"))),this.state.labels.pop(),this.expect(h._while),t.test=this.parseHeaderExpression(),this.eat(h.semi),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Ot);let e=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(e=this.state.lastTokStart),this.scope.enter(0),this.expect(h.parenL),this.match(h.semi))return e>-1&&this.unexpected(e),this.parseFor(t,null);const s=this.isLet();if(this.match(h._var)||this.match(h._const)||s){const r=this.startNode(),i=s?"let":this.state.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.match(h._in)||this.isContextual("of"))&&1===r.declarations.length?this.parseForIn(t,r,e):(e>-1&&this.unexpected(e),this.parseFor(t,r))}const r=new St,i=this.parseExpression(!0,r);if(this.match(h._in)||this.isContextual("of")){this.toAssignable(i,!0);const s=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(i,s),this.parseForIn(t,i,e)}return this.checkExpressionErrors(r,!0),e>-1&&this.unexpected(e),this.parseFor(t,i)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,1|(s?0:2),e)}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(h._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,b.IllegalReturn),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();const e=t.cases=[];let s,r;for(this.expect(h.braceL),this.state.labels.push(Mt),this.scope.enter(0);!this.match(h.braceR);)if(this.match(h._case)||this.match(h._default)){const t=this.match(h._case);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),t?s.test=this.parseExpression():(r&&this.raise(this.state.lastTokStart,b.MultipleDefaultsInSwitch),r=!0,s.test=null),this.expect(h.colon)}else s?s.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,b.NewlineAfterThrow),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){const t=this.parseBindingAtom(),e="Identifier"===t.type;return this.scope.enter(e?8:0),this.checkLVal(t,"catch clause",9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(h._catch)){const e=this.startNode();this.next(),this.match(h.parenL)?(this.expect(h.parenL),e.param=this.parseCatchClauseParam(),this.expect(h.parenR)):(e.param=null,this.scope.enter(0)),e.body=this.withTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(h._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,b.NoCatchOrFinally),this.finishNode(t,"TryStatement")}parseVarStatement(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Ot),t.body=this.withTopicForbiddingContext((()=>this.parseStatement("while"))),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(this.state.start,b.StrictWith),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withTopicForbiddingContext((()=>this.parseStatement("with"))),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,r){for(let t=0,r=this.state.labels;t=0;e--){const s=this.state.labels[e];if(s.statementStart!==t.start)break;s.statementStart=this.state.start,s.kind=i}return this.state.labels.push({name:e,kind:i,statementStart:this.state.start}),t.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,s){const r=this.startNode();return this.expect(h.braceL),e&&this.scope.enter(0),this.parseBlockBody(r,t,!1,h.braceR,s),e&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,r,i){const n=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(n,e?o:void 0,s,r,i)}parseBlockOrModuleBlockBody(t,e,s,r,i){const n=[],o=this.state.strict;let a=!1,c=!1;for(;!this.match(r);){!c&&this.state.octalPositions.length&&n.push(...this.state.octalPositions);const r=this.parseStatement(null,s);if(e&&!c&&this.isValidDirective(r)){const t=this.stmtToDirective(r);e.push(t),a||"use strict"!==t.value.value||(a=!0,this.setStrict(!0))}else c=!0,t.push(r)}if(this.state.strict&&n.length)for(let t=0;tthis.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){const r=this.match(h._in);return this.next(),r?s>-1&&this.unexpected(s):t.await=s>-1,"VariableDeclaration"!==e.type||null==e.declarations[0].init||r&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type?"AssignmentPattern"===e.type&&this.raise(e.start,b.InvalidLhs,"for-loop"):this.raise(e.start,b.ForInOfLoopInitializer,r?"for-in":"for-of"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(h.parenR),t.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")}parseVar(t,e,s){const r=t.declarations=[],i=this.hasPlugin("typescript");for(t.kind=s;;){const t=this.startNode();if(this.parseVarId(t,s),this.eat(h.eq)?t.init=e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==s||this.match(h._in)||this.isContextual("of")?"Identifier"===t.id.type||e&&(this.match(h._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,b.DeclarationMissingInitializer,"Complex binding patterns"):i||this.raise(this.state.lastTokEnd,b.DeclarationMissingInitializer,"Const declarations"),t.init=null),r.push(this.finishNode(t,"VariableDeclarator")),!this.eat(h.comma))break}return t}parseVarId(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,"variable declaration","var"===e?5:9,void 0,"var"!==e)}parseFunction(t,e=0,s=!1){const r=1&e,i=2&e,n=!(!r||4&e);this.initFunction(t,s),this.match(h.star)&&i&&this.raise(this.state.start,b.GeneratorInSingleStatementContext),t.generator=this.eat(h.star),r&&(t.id=this.parseFunctionId(n));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(lt(s,t.generator)),r||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||this.match(h.name)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(h.parenL),this.expressionScope.enter(new Nt(3)),t.params=this.parseBindingList(h.parenR,41,!1,e),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:9:17,t.id.start)}parseClass(t,e,s){this.next(),this.takeDecorators(t);const r=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,r),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(h.eq)||this.match(h.semi)||this.match(h.braceR)}isClassMethod(){return this.match(h.parenL)}isNonstaticConstructor(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)}parseClassBody(t,e){this.classScope.enter();const s={constructorAllowsSuper:t,hadConstructor:!1,hadStaticBlock:!1};let r=[];const i=this.startNode();if(i.body=[],this.expect(h.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(h.braceR);){if(this.eat(h.semi)){if(r.length>0)throw this.raise(this.state.lastTokEnd,b.DecoratorSemicolon);continue}if(this.match(h.at)){r.push(this.parseDecorator());continue}const t=this.startNode();r.length&&(t.decorators=r,this.resetStartLocationFromNode(t,r[0]),r=[]),this.parseClassMember(i,t,s),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(t.start,b.DecoratorConstructor)}})),this.state.strict=e,this.next(),r.length)throw this.raise(this.state.start,b.TrailingDecorator);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,e){const s=this.parseIdentifier(!0);if(this.isClassMethod()){const r=e;return r.kind="method",r.computed=!1,r.key=s,r.static=!1,this.pushClassMethod(t,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=e;return r.computed=!1,r.key=s,r.static=!1,t.body.push(this.parseClassProperty(r)),!0}return!1}parseClassMember(t,e,s){const r=this.isContextual("static");if(r){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(h.braceL))return void this.parseClassStaticBlock(t,e,s)}this.parseClassMemberWithIsStatic(t,e,s,r)}parseClassMemberWithIsStatic(t,e,s,r){const i=e,n=e,o=e,a=e,c=i,l=i;if(e.static=r,this.eat(h.star))return c.kind="method",this.parseClassElementName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(t,n,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,b.ConstructorIsGenerator),void this.pushClassMethod(t,i,!0,!1,!1,!1));const p=this.state.containsEsc,u=this.parseClassElementName(e),d="PrivateName"===u.type,f="Identifier"===u.type,m=this.state.start;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(t,n,!1,!1);const e=this.isNonstaticConstructor(i);let r=!1;e&&(i.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(u.start,b.DuplicateConstructor),s.hadConstructor=!0,r=s.constructorAllowsSuper),this.pushClassMethod(t,i,!1,!1,e,r)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(t,a):this.pushClassProperty(t,o);else if(!f||"async"!==u.name||p||this.isLineTerminator())!f||"get"!==u.name&&"set"!==u.name||p||this.match(h.star)&&this.isLineTerminator()?this.isLineTerminator()?d?this.pushClassPrivateProperty(t,a):this.pushClassProperty(t,o):this.unexpected():(c.kind=u.name,this.parseClassElementName(i),"PrivateName"===c.key.type?this.pushClassPrivateMethod(t,n,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,b.ConstructorIsAccessor),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i));else{const e=this.eat(h.star);l.optional&&this.unexpected(m),c.kind="method",this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),"PrivateName"===c.key.type?this.pushClassPrivateMethod(t,n,e,!0):(this.isNonstaticConstructor(i)&&this.raise(i.key.start,b.ConstructorIsAsync),this.pushClassMethod(t,i,e,!0,!1,!1))}}parseClassElementName(t){const e=this.parsePropertyName(t,!0);return t.computed||!t.static||"prototype"!==e.name&&"prototype"!==e.value||this.raise(e.start,b.StaticPrototype),"PrivateName"===e.type&&"constructor"===e.id.name&&this.raise(e.start,b.ConstructorClassPrivateField),e}parseClassStaticBlock(t,e,s){var r;this.expectPlugin("classStaticBlock",e.start),this.scope.enter(80),this.expressionScope.enter(Lt());const i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const n=e.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,h.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=i,t.body.push(this.finishNode(e,"StaticBlock")),s.hadStaticBlock&&this.raise(e.start,b.DuplicateStaticBlock),(null==(r=e.decorators)?void 0:r.length)&&this.raise(e.start,b.DecoratorStaticBlock),s.hadStaticBlock=!0}pushClassProperty(t,e){e.computed||"constructor"!==e.key.name&&"constructor"!==e.key.value||this.raise(e.key.start,b.ConstructorClassField),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){this.expectPlugin("classPrivateProperties",e.key.start);const s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(s.key.id.name,0,s.key.start)}pushClassMethod(t,e,s,r,i,n){t.body.push(this.parseMethod(e,s,r,i,n,"ClassMethod",!0))}pushClassPrivateMethod(t,e,s,r){this.expectPlugin("classPrivateMethods",e.key.start);const i=this.parseMethod(e,s,r,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);const n="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.classScope.declarePrivateName(i.key.id.name,n,i.key.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return t.typeAnnotation&&!this.match(h.eq)||this.expectPlugin("classProperties"),this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Lt()),this.prodParam.enter(0),t.value=this.eat(h.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,s,r=139){this.match(h.name)?(t.id=this.parseIdentifier(),e&&this.checkLVal(t.id,"class name",r)):s||!e?t.id=null:this.unexpected(null,b.MissingClassName)}parseClassSuper(t){t.superClass=this.eat(h._extends)?this.parseExprSubscripts():null}parseExport(t){const e=this.maybeParseExportDefaultSpecifier(t),s=!e||this.eat(h.comma),r=s&&this.eatExportStar(t),i=r&&this.maybeParseExportNamespaceSpecifier(t),n=s&&(!i||this.eat(h.comma)),o=e||r;if(r&&!i)return e&&this.unexpected(),this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration");const a=this.maybeParseExportNamedSpecifiers(t);if(e&&s&&!r&&!a||i&&n&&!a)throw this.unexpected(null,h.braceL);let c;if(o||a?(c=!1,this.parseExportFrom(t,o)):c=this.maybeParseExportDeclaration(t),o||a||c)return this.checkExport(t,!0,!1,!!t.source),this.finishNode(t,"ExportNamedDeclaration");if(this.eat(h._default))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");throw this.unexpected(null,h.braceL)}eatExportStar(t){return this.eat(h.star)}maybeParseExportDefaultSpecifier(t){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");const e=this.startNode();return e.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(e,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual("as")){t.specifiers||(t.specifiers=[]);const e=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){return!!this.match(h.braceL)&&(t.specifiers||(t.specifiers=[]),t.specifiers.push(...this.parseExportSpecifiers()),t.source=null,t.declaration=null,!0)}maybeParseExportDeclaration(t){return!!this.shouldParseExportDeclaration()&&(t.specifiers=[],t.source=null,t.declaration=this.parseExportDeclaration(t),!0)}isAsyncFunction(){if(!this.isContextual("async"))return!1;const t=this.nextTokenStart();return!p.test(this.input.slice(this.state.pos,t))&&this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode(),e=this.isAsyncFunction();if(this.match(h._function)||e)return this.next(),e&&this.next(),this.parseFunction(t,5,e);if(this.match(h._class))return this.parseClass(t,!0,!0);if(this.match(h.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,b.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(h._const)||this.match(h._var)||this.isLet())throw this.raise(this.state.start,b.UnsupportedDefaultExport);{const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}}parseExportDeclaration(t){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(h.name)){const t=this.state.value;if("async"===t&&!this.state.containsEsc||"let"===t)return!1;if(("type"===t||"interface"===t)&&!this.state.containsEsc){const t=this.lookahead();if(t.type===h.name&&"from"!==t.value||t.type===h.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(h._default))return!1;const t=this.nextTokenStart(),e=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||this.match(h.name)&&e)return!0;if(this.match(h._default)&&e){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(t,e){if(this.eatContextual("from")){t.source=this.parseImportSource(),this.checkExport(t);const e=this.maybeParseImportAssertions();e&&(t.assertions=e)}else e?this.unexpected():t.source=null;this.semicolon()}shouldParseExportDeclaration(){if(this.match(h.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,b.DecoratorBeforeExport)}return"var"===this.state.type.keyword||"const"===this.state.type.keyword||"function"===this.state.type.keyword||"class"===this.state.type.keyword||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,r){if(e)if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var i;const e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||(null==(i=e.extra)?void 0:i.parenthesized)||this.raise(e.start,b.ExportDefaultFromAsIdentifier)}}else if(t.specifiers&&t.specifiers.length)for(let e=0,s=t.specifiers;e-1&&this.raise(t.start,"default"===e?b.DuplicateDefaultExport:b.DuplicateExport,e),this.state.exportedIdentifiers.push(e)}parseExportSpecifiers(){const t=[];let e=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(e)e=!1;else if(this.expect(h.comma),this.eat(h.braceR))break;const s=this.startNode();s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local.__clone(),t.push(this.finishNode(s,"ExportSpecifier"))}return t}parseModuleExportName(){if(this.match(h.string)){this.expectPlugin("moduleStringNames");const t=this.parseLiteral(this.state.value,"StringLiteral"),e=t.value.match(Dt);return e&&this.raise(t.start,b.ModuleExportNameHasLoneSurrogate,e[0].charCodeAt(0).toString(16)),t}return this.parseIdentifier(!0)}parseImport(t){if(t.specifiers=[],!this.match(h.string)){const e=!this.maybeParseDefaultImportSpecifier(t)||this.eat(h.comma),s=e&&this.maybeParseStarImportSpecifier(t);e&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual("from")}t.source=this.parseImportSource();const e=this.maybeParseImportAssertions();if(e)t.assertions=e;else{const e=this.maybeParseModuleAttributes();e&&(t.attributes=e)}return this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(h.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(t){return this.match(h.name)}parseImportSpecifierLocal(t,e,s,r){e.local=this.parseIdentifier(),this.checkLVal(e.local,r,9),t.specifiers.push(this.finishNode(e,s))}parseAssertEntries(){const t=[],e=new Set;do{if(this.match(h.braceR))break;const s=this.startNode(),r=this.state.value;if(this.match(h.string)?s.key=this.parseLiteral(r,"StringLiteral"):s.key=this.parseIdentifier(!0),this.expect(h.colon),"type"!==r&&this.raise(s.key.start,b.ModuleAttributeDifferentFromType,r),e.has(r)&&this.raise(s.key.start,b.ModuleAttributesWithDuplicateKeys,r),e.add(r),!this.match(h.string))throw this.unexpected(this.state.start,b.ModuleAttributeInvalidValue);s.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(s,"ImportAttribute"),t.push(s)}while(this.eat(h.comma));return t}maybeParseModuleAttributes(){if(!this.match(h._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const t=[],e=new Set;do{const s=this.startNode();if(s.key=this.parseIdentifier(!0),"type"!==s.key.name&&this.raise(s.key.start,b.ModuleAttributeDifferentFromType,s.key.name),e.has(s.key.name)&&this.raise(s.key.start,b.ModuleAttributesWithDuplicateKeys,s.key.name),e.add(s.key.name),this.expect(h.colon),!this.match(h.string))throw this.unexpected(this.state.start,b.ModuleAttributeInvalidValue);s.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(s,"ImportAttribute"),t.push(s)}while(this.eat(h.comma));return t}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(h.braceL);const t=this.parseAssertEntries();return this.eat(h.braceR),t}maybeParseDefaultImportSpecifier(t){return!!this.shouldParseDefaultImport(t)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(h.star)){const e=this.startNode();return this.next(),this.expectContextual("as"),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier","import namespace specifier"),!0}return!1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(h.braceL);!this.eat(h.braceR);){if(e)e=!1;else{if(this.eat(h.colon))throw this.raise(this.state.start,b.DestructureNamedImport);if(this.expect(h.comma),this.eat(h.braceR))break}this.parseImportSpecifier(t)}}parseImportSpecifier(t){const e=this.startNode();if(e.imported=this.parseModuleExportName(),this.eatContextual("as"))e.local=this.parseIdentifier();else{const{imported:t}=e;if("StringLiteral"===t.type)throw this.raise(e.start,b.ImportBindingIsString,t.value);this.checkReservedWord(t.name,e.start,!0,!0),e.local=t.__clone()}this.checkLVal(e.local,"import specifier",9),t.specifiers.push(this.finishNode(e,"ImportSpecifier"))}}{constructor(t,e){super(t=function(t){const e={};for(let s=0,r=Object.keys(bt);s`'${t}'`)).join(", "));if(dt(t,"moduleAttributes")){if(dt(t,"importAssertions"))throw new Error("Cannot combine importAssertions and moduleAttributes plugins.");if("may-2020"!==ft(t,"moduleAttributes","version"))throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(dt(t,"recordAndTuple")&&!yt.includes(ft(t,"recordAndTuple","syntaxType")))throw new Error("'recordAndTuple' requires 'syntaxType' option whose value should be one of: "+yt.map((t=>`'${t}'`)).join(", "))}(t.plugins),s=function(t){const e=gt.filter((e=>dt(t,e))),s=e.join("/");let r=Ut[s];if(!r){r=jt;for(let t=0;t{t.exports=s(5666)},4511:(t,e,s)=>{"use strict";s.r(e);var r=s(7757),i=s.n(r);function n(t,e,s,r,i,n,o){try{var a=t[n](o),c=a.value}catch(t){return void s(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function o(t){return function(){var e=this,s=arguments;return new Promise((function(r,i){var o=t.apply(e,s);function a(t){n(o,r,i,a,c,"next",t)}function c(t){n(o,r,i,a,c,"throw",t)}a(void 0)}))}}var a={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")};const c={send:function(t,e){var s=arguments;return o(i().mark((function r(){var n,o,c,l,h,p,u;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=s.length>2&&void 0!==s[2]?s[2]:"POST",o=s.length>3&&void 0!==s[3]&&s[3],c=a,o&&(c["Content-Type"]="multipart/form-data"),l={method:n,headers:c},e&&(o?l.body=e:"GET"===n?(h=Object.keys(e).map((function(t){var s=encodeURIComponent(t),r=e[t];if(r.constructor===Array){var i=[];return r.forEach((function(t){i.push(s+"[]="+encodeURIComponent(t))})),i.join("&")}return s+"="+encodeURIComponent(r)})).join("&"),t=t+"?"+h):l.body=JSON.stringify(e)),r.next=8,fetch(t,l);case 8:return p=r.sent,r.prev=9,r.next=12,p.json();case 12:return u=r.sent,r.abrupt("return",u);case 16:return r.prev=16,r.t0=r.catch(9),r.abrupt("return",p);case 19:case"end":return r.stop()}}),r,null,[[9,16]])})))()},get:function(t,e){var s=this;return o(i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",s.send(t,e,"GET"));case 1:case"end":return r.stop()}}),r)})))()},post:function(t,e){var s=arguments,r=this;return o(i().mark((function n(){var o;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=s.length>2&&void 0!==s[2]&&s[2],i.abrupt("return",r.send(t,e,"POST",o));case 2:case"end":return i.stop()}}),n)})))()},put:function(t,e){var s=this;return o(i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",s.send(t,e,"PUT"));case 1:case"end":return r.stop()}}),r)})))()},delete:function(t,e){var s=this;return o(i().mark((function r(){return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",s.send(t,e,"DELETE"));case 1:case"end":return r.stop()}}),r)})))()}};window.collect=s(131),window.api=c},2606:(t,e,s)=>{var r=s(6197);t.exports=function(t,e){if(void 0!==r[t])return document.querySelector("base").getAttribute("href")+"/"+r[t].split("/").map((function(t){if("{"==t[0]){var s=t.substring(1,t.length-1);return e[s]?e[s]:e.id?e.id:s}return t})).join("/");console.error("Unknown route ",t)}},1536:t=>{"use strict";t.exports=function(t){var e,s=void 0;Array.isArray(t)?(e=s=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":e(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},6429:t=>{"use strict";t.exports=function(t,e){try{return e.split(".").reduce((function(t,e){return t[e]}),t)}catch(e){return t}}},7055:t=>{"use strict";function e(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},131:(t,e,s)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function i(t){void 0===t||Array.isArray(t)||"object"===(void 0===t?"undefined":r(t))?t instanceof this.constructor?this.items=t.all():this.items=t||[]:this.items=[t]}var n=s(9874);"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=n),i.prototype.toJSON=function(){return this.items},i.prototype.all=s(9446),i.prototype.average=s(7722),i.prototype.avg=s(7699),i.prototype.chunk=s(5838),i.prototype.collapse=s(4940),i.prototype.combine=s(451),i.prototype.concat=s(6618),i.prototype.contains=s(1567),i.prototype.count=s(2658),i.prototype.countBy=s(2137),i.prototype.crossJoin=s(2098),i.prototype.dd=s(2797),i.prototype.diff=s(7293),i.prototype.diffAssoc=s(9582),i.prototype.diffKeys=s(7691),i.prototype.dump=s(4387),i.prototype.duplicates=s(7332),i.prototype.each=s(9577),i.prototype.eachSpread=s(5881),i.prototype.every=s(5711),i.prototype.except=s(5949),i.prototype.filter=s(7435),i.prototype.first=s(6126),i.prototype.firstWhere=s(1692),i.prototype.flatMap=s(8374),i.prototype.flatten=s(7048),i.prototype.flip=s(6447),i.prototype.forPage=s(1671),i.prototype.forget=s(64),i.prototype.get=s(4026),i.prototype.groupBy=s(8925),i.prototype.has=s(3605),i.prototype.implode=s(3399),i.prototype.intersect=s(2006),i.prototype.intersectByKeys=s(4368),i.prototype.isEmpty=s(5614),i.prototype.isNotEmpty=s(4247),i.prototype.join=s(2663),i.prototype.keyBy=s(5914),i.prototype.keys=s(3008),i.prototype.last=s(4262),i.prototype.macro=s(78),i.prototype.make=s(9252),i.prototype.map=s(8920),i.prototype.mapSpread=s(2235),i.prototype.mapToDictionary=s(2241),i.prototype.mapInto=s(5170),i.prototype.mapToGroups=s(9720),i.prototype.mapWithKeys=s(5294),i.prototype.max=s(9861),i.prototype.median=s(3783),i.prototype.merge=s(4898),i.prototype.mergeRecursive=s(8524),i.prototype.min=s(5782),i.prototype.mode=s(3075),i.prototype.nth=s(1577),i.prototype.only=s(5840),i.prototype.pad=s(1668),i.prototype.partition=s(2842),i.prototype.pipe=s(9368),i.prototype.pluck=s(3824),i.prototype.pop=s(5682),i.prototype.prepend=s(9531),i.prototype.pull=s(7003),i.prototype.push=s(3817),i.prototype.put=s(9418),i.prototype.random=s(6849),i.prototype.reduce=s(5102),i.prototype.reject=s(2820),i.prototype.replace=s(9797),i.prototype.replaceRecursive=s(7287),i.prototype.reverse=s(9469),i.prototype.search=s(5334),i.prototype.shift=s(6561),i.prototype.shuffle=s(2882),i.prototype.skip=s(7692),i.prototype.skipUntil=s(6825),i.prototype.skipWhile=s(1190),i.prototype.slice=s(2867),i.prototype.some=s(9101),i.prototype.sort=s(8766),i.prototype.sortDesc=s(7783),i.prototype.sortBy=s(1127),i.prototype.sortByDesc=s(7738),i.prototype.sortKeys=s(6536),i.prototype.sortKeysDesc=s(4989),i.prototype.splice=s(4947),i.prototype.split=s(4481),i.prototype.sum=s(6149),i.prototype.take=s(496),i.prototype.takeUntil=s(4270),i.prototype.takeWhile=s(1548),i.prototype.tap=s(4265),i.prototype.times=s(2668),i.prototype.toArray=s(2903),i.prototype.toJson=s(1245),i.prototype.transform=s(4583),i.prototype.unless=s(5553),i.prototype.unlessEmpty=s(3339),i.prototype.unlessNotEmpty=s(4721),i.prototype.union=s(4464),i.prototype.unique=s(5547),i.prototype.unwrap=s(794),i.prototype.values=s(7615),i.prototype.when=s(1005),i.prototype.whenEmpty=s(4721),i.prototype.whenNotEmpty=s(3339),i.prototype.where=s(4295),i.prototype.whereBetween=s(4835),i.prototype.whereIn=s(5524),i.prototype.whereInstanceOf=s(7848),i.prototype.whereNotBetween=s(2787),i.prototype.whereNotIn=s(5839),i.prototype.whereNull=s(609),i.prototype.whereNotNull=s(1590),i.prototype.wrap=s(8711),i.prototype.zip=s(3585);var o=function(t){return new i(t)};t.exports=o,t.exports.collect=o,t.exports.default=o,t.exports.Collection=i},9446:t=>{"use strict";t.exports=function(){return this.items}},7722:t=>{"use strict";t.exports=function(t){return void 0===t?this.sum()/this.items.length:new this.constructor(this.items).pluck(t).sum()/this.items.length}},7699:(t,e,s)=>{"use strict";var r=s(7722);t.exports=r},5838:t=>{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var s=this,r=[],i=0;if(Array.isArray(this.items))do{var n=this.items.slice(i,i+t),o=new this.constructor(n);r.push(o),i+=t}while(i{"use strict";t.exports=function(){var t;return new this.constructor((t=[]).concat.apply(t,function(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";var e=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var s=[],r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(s.push(o.value),!e||s.length!==e);r=!0);}catch(t){i=!0,n=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw n}}return s}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var r=this,i=t;i instanceof this.constructor&&(i=t.all());var n={};if(Array.isArray(this.items)&&Array.isArray(i))this.items.forEach((function(t,e){n[t]=i[e]}));else if("object"===s(this.items)&&"object"===(void 0===i?"undefined":s(i)))Object.keys(this.items).forEach((function(t,e){n[r.items[t]]=i[Object.keys(i)[e]]}));else if(Array.isArray(this.items))n[this.items[0]]=i;else if("string"==typeof this.items&&Array.isArray(i)){var o=e(i,1);n[this.items]=o[0]}else"string"==typeof this.items&&(n[this.items]=i);return new this.constructor(n)}},6618:(t,e,s)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=s(1536);t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":r(t))&&(e=[],Object.keys(t).forEach((function(s){e.push(t[s])})));var s=i(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":r(t))?Object.keys(t).forEach((function(e){return s.push(t[e])})):s.push(t)})),new this.constructor(s)}},1567:(t,e,s)=>{"use strict";var r=s(7055),i=s(1242).isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(s){return void 0!==s[t]&&s[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(i(t))return this.items.filter((function(e,s){return t(e,s)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var s=r(this.items);return s.push.apply(s,function(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},2137:t=>{"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},2098:t=>{"use strict";t.exports=function(){function t(e,s,r){var i=r[0];i instanceof s&&(i=i.all());for(var n=r.slice(1),o=!n.length,a=[],c=0;c{"use strict";var r=s(4155);t.exports=function(){this.dump(),void 0!==r&&r.exit(1)}},7293:t=>{"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var s=this.items.filter((function(t){return-1===e.indexOf(t)}));return new this.constructor(s)}},9582:t=>{"use strict";t.exports=function(t){var e=this,s=t;t instanceof this.constructor&&(s=t.all());var r={};return Object.keys(this.items).forEach((function(t){void 0!==s[t]&&s[t]===e.items[t]||(r[t]=e.items[t])})),new this.constructor(r)}},7691:t=>{"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var s=Object.keys(e),r=Object.keys(this.items).filter((function(t){return-1===s.indexOf(t)}));return new this.constructor(this.items).only(r)}},4387:t=>{"use strict";t.exports=function(){return console.log(this),this}},7332:t=>{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){var t=this,s=[],r={},i=function(t){return Array.isArray(t)||"object"===(void 0===t?"undefined":e(t))?JSON.stringify(t):t};return Array.isArray(this.items)?this.items.forEach((function(t,e){var n=i(t);-1===s.indexOf(n)?s.push(n):r[e]=t})):"object"===e(this.items)&&Object.keys(this.items).forEach((function(e){var n=i(t.items[e]);-1===s.indexOf(n)?s.push(n):r[e]=t.items[e]})),new this.constructor(r)}},9577:t=>{"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var s=this.items.length,r=0;r{"use strict";t.exports=function(t){return this.each((function(e,s){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";var r=s(7055);t.exports=function(t){return r(this.items).every(t)}},5949:(t,e,s)=>{"use strict";var r=s(725);t.exports=function(){for(var t=this,e=arguments.length,s=Array(e),i=0;i{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function s(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":e(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,r=null;return r=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var r=[],i=0;i{"use strict";var r=s(1242).isFunction;t.exports=function(t,e){if(r(t)){for(var s=0,i=this.items.length;s{"use strict";t.exports=function(t,e,s){return this.where(t,e,s).first()||null}},8374:t=>{"use strict";t.exports=function(t){return this.map(t).collapse()}},7048:(t,e,s)=>{"use strict";var r=s(1242),i=r.isArray,n=r.isObject;t.exports=function(t){var e=t||1/0,s=!1,r=[],o=function(t){r=[],i(t)?t.forEach((function(t){i(t)?r=r.concat(t):n(t)?Object.keys(t).forEach((function(e){r=r.concat(t[e])})):r.push(t)})):Object.keys(t).forEach((function(e){i(t[e])?r=r.concat(t[e]):n(t[e])?Object.keys(t[e]).forEach((function(s){r=r.concat(t[e][s])})):r.push(t[e])})),s=0===(s=r.filter((function(t){return n(t)}))).length,e-=1};for(o(this.items);!s&&e>0;)o(r);return new this.constructor(r)}},6447:t=>{"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(s){e[t.items[s]]=Number(s)})):Object.keys(this.items).forEach((function(s){e[t.items[s]]=s})),new this.constructor(e)}},1671:t=>{"use strict";t.exports=function(t,e){var s=this,r={};return Array.isArray(this.items)?r=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){r[t]=s.items[t]})),new this.constructor(r)}},64:t=>{"use strict";t.exports=function(t){return Array.isArray(this.items)?this.items.splice(t,1):delete this.items[t],this}},4026:(t,e,s)=>{"use strict";var r=s(1242).isFunction;t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:r(e)?e():null!==e?e:null}},8925:(t,e,s)=>{"use strict";var r=s(6429),i=s(1242).isFunction;t.exports=function(t){var e=this,s={};return this.items.forEach((function(n,o){var a=void 0;a=i(t)?t(n,o):r(n,t)||0===r(n,t)?r(n,t):"",void 0===s[a]&&(s[a]=new e.constructor([])),s[a].push(n)})),new this.constructor(s)}},3605:(t,e,s)=>{"use strict";var r=s(725);t.exports=function(){for(var t=this,e=arguments.length,s=Array(e),i=0;i{"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},2006:t=>{"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var s=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(s)}},4368:t=>{"use strict";t.exports=function(t){var e=this,s=Object.keys(t);t instanceof this.constructor&&(s=Object.keys(t.all()));var r={};return Object.keys(this.items).forEach((function(t){-1!==s.indexOf(t)&&(r[t]=e.items[t])})),new this.constructor(r)}},5614:t=>{"use strict";t.exports=function(){return Array.isArray(this.items)?!this.items.length:!Object.keys(this.items).length}},4247:t=>{"use strict";t.exports=function(){return!this.isEmpty()}},2663:t=>{"use strict";t.exports=function(t,e){var s=this.values();if(void 0===e)return s.implode(t);var r=s.count();if(0===r)return"";if(1===r)return s.last();var i=s.pop();return s.implode(t)+e+i}},5914:(t,e,s)=>{"use strict";var r=s(6429),i=s(1242).isFunction;t.exports=function(t){var e={};return i(t)?this.items.forEach((function(s){e[t(s)]=s})):this.items.forEach((function(s){var i=r(s,t);e[i||""]=s})),new this.constructor(e)}},3008:t=>{"use strict";t.exports=function(){var t=Object.keys(this.items);return Array.isArray(this.items)&&(t=t.map(Number)),new this.constructor(t)}},4262:(t,e,s)=>{"use strict";var r=s(1242).isFunction;t.exports=function(t,e){var s=this.items;if(r(t)&&(s=this.filter(t).all()),Array.isArray(s)&&!s.length||!Object.keys(s).length)return r(e)?e():e;if(Array.isArray(s))return s[s.length-1];var i=Object.keys(s);return s[i[i.length-1]]}},78:t=>{"use strict";t.exports=function(t,e){this.constructor.prototype[t]=e}},9252:t=>{"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},8920:t=>{"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var s={};return Object.keys(this.items).forEach((function(r){s[r]=t(e.items[r],r)})),new this.constructor(s)}},5170:t=>{"use strict";t.exports=function(t){return this.map((function(e,s){return new t(e,s)}))}},2235:t=>{"use strict";t.exports=function(t){return this.map((function(e,s){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";var e=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var s=[],r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(s.push(o.value),!e||s.length!==e);r=!0);}catch(t){i=!0,n=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw n}}return s}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var s={};return this.items.forEach((function(r,i){var n=t(r,i),o=e(n,2),a=o[0],c=o[1];void 0===s[a]?s[a]=[c]:s[a].push(c)})),new this.constructor(s)}},9720:t=>{"use strict";var e=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var s=[],r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(s.push(o.value),!e||s.length!==e);r=!0);}catch(t){i=!0,n=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw n}}return s}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var s={};return this.items.forEach((function(r,i){var n=t(r,i),o=e(n,2),a=o[0],c=o[1];void 0===s[a]?s[a]=[c]:s[a].push(c)})),new this.constructor(s)}},5294:t=>{"use strict";var e=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var s=[],r=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(s.push(o.value),!e||s.length!==e);r=!0);}catch(t){i=!0,n=t}finally{try{!r&&a.return&&a.return()}finally{if(i)throw n}}return s}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var s=this,r={};return Array.isArray(this.items)?this.items.forEach((function(s){var i=t(s),n=e(i,2),o=n[0],a=n[1];r[o]=a})):Object.keys(this.items).forEach((function(i){var n=t(s.items[i]),o=e(n,2),a=o[0],c=o[1];r[a]=c})),new this.constructor(r)}},9861:t=>{"use strict";function e(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";t.exports=function(t){var e=this.items.length;return void 0===t?e%2==0?(this.items[e/2-1]+this.items[e/2])/2:this.items[Math.floor(e/2)]:e%2==0?(this.items[e/2-1][t]+this.items[e/2][t])/2:this.items[Math.floor(e/2)][t]}},4898:t=>{"use strict";t.exports=function(t){var e=t;if("string"==typeof e&&(e=[e]),Array.isArray(this.items)&&Array.isArray(e))return new this.constructor(this.items.concat(e));var s=JSON.parse(JSON.stringify(this.items));return Object.keys(e).forEach((function(t){s[t]=e[t]})),new this.constructor(s)}},8524:t=>{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var s=function t(s,r){var i={};return Object.keys(Object.assign({},s,r)).forEach((function(n){void 0===s[n]&&void 0!==r[n]?i[n]=r[n]:void 0!==s[n]&&void 0===r[n]?i[n]=s[n]:void 0!==s[n]&&void 0!==r[n]&&(s[n]===r[n]?i[n]=s[n]:Array.isArray(s[n])||"object"!==e(s[n])||Array.isArray(r[n])||"object"!==e(r[n])?i[n]=[].concat(s[n],r[n]):i[n]=t(s[n],r[n]))})),i};return t?"Collection"===t.constructor.name?new this.constructor(s(this.items,t.all())):new this.constructor(s(this.items,t)):this}},5782:t=>{"use strict";function e(t){if(Array.isArray(t)){for(var e=0,s=Array(t.length);e{"use strict";t.exports=function(t){var e=[],s=1;return this.items.length?(this.items.forEach((function(r){var i=e.filter((function(e){return void 0!==t?e.key===r[t]:e.key===r}));if(i.length){i[0].count+=1;var n=i[0].count;n>s&&(s=n)}else void 0!==t?e.push({key:r[t],count:1}):e.push({key:r,count:1})})),e.filter((function(t){return t.count===s})).map((function(t){return t.key}))):null}},1577:(t,e,s)=>{"use strict";var r=s(7055);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=r(this.items),i=s.slice(e).filter((function(e,s){return s%t==0}));return new this.constructor(i)}},5840:(t,e,s)=>{"use strict";var r=s(725);t.exports=function(){for(var t=this,e=arguments.length,s=Array(e),i=0;i{"use strict";var r=s(1536);t.exports=function(t,e){var s=Math.abs(t),i=this.count();if(s<=i)return this;for(var n=s-i,o=r(this.items),a=Array.isArray(this.items),c=t<0,l=0;l{"use strict";t.exports=function(t){var e=this,s=void 0;return Array.isArray(this.items)?(s=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(e){!0===t(e)?s[0].push(e):s[1].push(e)}))):(s=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(r){var i=e.items[r];!0===t(i)?s[0].put(r,i):s[1].put(r,i)}))),new this.constructor(s)}},9368:t=>{"use strict";t.exports=function(t){return t(this)}},3824:(t,e,s)=>{"use strict";var r=s(1242),i=r.isArray,n=r.isObject,o=s(6429);t.exports=function(t,e){if(-1!==t.indexOf("*")){var s=(d=this.items,f={},d.forEach((function(t,e){!function t(e,s){n(e)?Object.keys(e).forEach((function(r){t(e[r],s+"."+r)})):i(e)&&e.forEach((function(e,r){t(e,s+"."+r)})),f[s]=e}(t,e)})),f),r=[];if(void 0!==e){var a=new RegExp("0."+e,"g"),c=("0."+e).split(".").length;Object.keys(s).forEach((function(t){var e=t.match(a);if(e){var i=e[0];i.split(".").length===c&&r.push(s[i])}}))}var l=[],h=new RegExp("0."+t,"g"),p=("0."+t).split(".").length;if(Object.keys(s).forEach((function(t){var e=t.match(h);if(e){var r=e[0];r.split(".").length===p&&l.push(s[r])}})),void 0!==e){var u={};return this.items.forEach((function(t,e){u[r[e]||""]=l})),new this.constructor(u)}return new this.constructor([l])}var d,f;if(void 0!==e){var m={};return this.items.forEach((function(s){void 0!==o(s,t)?m[s[e]||""]=o(s,t):m[s[e]||""]=null})),new this.constructor(m)}return this.map((function(e){return void 0!==o(e,t)?o(e,t):null}))}},5682:t=>{"use strict";t.exports=function(){if(Array.isArray(this.items))return this.items.pop();var t=Object.keys(this.items),e=t[t.length-1],s=this.items[e];return delete this.items[e],s}},9531:t=>{"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},7003:(t,e,s)=>{"use strict";var r=s(1242).isFunction;t.exports=function(t,e){var s=this.items[t]||null;return s||void 0===e||(s=r(e)?e():e),delete this.items[t],s}},3817:t=>{"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},9418:t=>{"use strict";t.exports=function(t,e){return this.items[t]=e,this}},6849:(t,e,s)=>{"use strict";var r=s(7055);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=r(this.items),s=new this.constructor(e).shuffle();return t!==parseInt(t,10)?s.first():s.take(t)}},5102:t=>{"use strict";t.exports=function(t,e){var s=this,r=null;return void 0!==e&&(r=e),Array.isArray(this.items)?this.items.forEach((function(e){r=t(r,e)})):Object.keys(this.items).forEach((function(e){r=t(r,s.items[e],e)})),r}},2820:t=>{"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},9797:t=>{"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,s){return t[s]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var s=Object.assign({},this.items,t.all());return new this.constructor(s)}var r=Object.assign({},this.items,t);return new this.constructor(r)}},7287:t=>{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var s=function t(s,r){var i=Object.assign({},s);return Object.keys(Object.assign({},s,r)).forEach((function(n){Array.isArray(r[n])||"object"!==e(r[n])?void 0===s[n]&&void 0!==r[n]?"object"===e(s[n])?i[n]=Object.assign({},r[n]):i[n]=r[n]:void 0!==s[n]&&void 0===r[n]?"object"===e(s[n])?i[n]=Object.assign({},s[n]):i[n]=s[n]:void 0!==s[n]&&void 0!==r[n]&&("object"===e(r[n])?i[n]=Object.assign({},r[n]):i[n]=r[n]):i[n]=t(s[n],r[n])})),i};return t?Array.isArray(t)||"object"===(void 0===t?"undefined":e(t))?"Collection"===t.constructor.name?new this.constructor(s(this.items,t.all())):new this.constructor(s(this.items,t)):new this.constructor(s(this.items,[t])):this}},9469:t=>{"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},5334:(t,e,s)=>{"use strict";var r=s(1242),i=r.isArray,n=r.isObject,o=r.isFunction;t.exports=function(t,e){var s=this,r=void 0,a=function(r,i){return o(t)?t(s.items[i],i):e?s.items[i]===t:s.items[i]==t};return i(this.items)?r=this.items.findIndex(a):n(this.items)&&(r=Object.keys(this.items).find((function(t){return a(s.items[t],t)}))),!(void 0===r||r<0)&&r}},6561:t=>{"use strict";t.exports=function(){if(Array.isArray(this.items)&&this.items.length)return this.items.shift();if(Object.keys(this.items).length){var t=Object.keys(this.items)[0],e=this.items[t];return delete this.items[t],e}return null}},2882:(t,e,s)=>{"use strict";var r=s(7055);t.exports=function(){var t=r(this.items),e=void 0,s=void 0,i=void 0;for(i=t.length;i;i-=1)e=Math.floor(Math.random()*i),s=t[i-1],t[i-1]=t[e],t[e]=s;return this.items=t,this}},7692:(t,e,s)=>{"use strict";var r=s(1242).isObject;t.exports=function(t){var e=this;return r(this.items)?new this.constructor(Object.keys(this.items).reduce((function(s,r,i){return i+1>t&&(s[r]=e.items[r]),s}),{})):new this.constructor(this.items.slice(t))}},6825:(t,e,s)=>{"use strict";var r=s(1242),i=r.isArray,n=r.isObject,o=r.isFunction;t.exports=function(t){var e=this,s=null,r=void 0,a=function(e){return e===t};return o(t)&&(a=t),i(this.items)&&(r=this.items.filter((function(t){return!0!==s&&(s=a(t)),s}))),n(this.items)&&(r=Object.keys(this.items).reduce((function(t,r){return!0!==s&&(s=a(e.items[r])),!1!==s&&(t[r]=e.items[r]),t}),{})),new this.constructor(r)}},1190:(t,e,s)=>{"use strict";var r=s(1242),i=r.isArray,n=r.isObject,o=r.isFunction;t.exports=function(t){var e=this,s=null,r=void 0,a=function(e){return e===t};return o(t)&&(a=t),i(this.items)&&(r=this.items.filter((function(t){return!0!==s&&(s=!a(t)),s}))),n(this.items)&&(r=Object.keys(this.items).reduce((function(t,r){return!0!==s&&(s=!a(e.items[r])),!1!==s&&(t[r]=e.items[r]),t}),{})),new this.constructor(r)}},2867:t=>{"use strict";t.exports=function(t,e){var s=this.items.slice(t);return void 0!==e&&(s=s.slice(0,e)),new this.constructor(s)}},9101:(t,e,s)=>{"use strict";var r=s(1567);t.exports=r},8766:t=>{"use strict";t.exports=function(t){var e=[].concat(this.items);return void 0===t?this.every((function(t){return"number"==typeof t}))?e.sort((function(t,e){return t-e})):e.sort():e.sort(t),new this.constructor(e)}},1127:(t,e,s)=>{"use strict";var r=s(6429),i=s(1242).isFunction;t.exports=function(t){var e=[].concat(this.items),s=function(e){return i(t)?t(e):r(e,t)};return e.sort((function(t,e){var r=s(t),i=s(e);return null==r?1:null==i||ri?1:0})),new this.constructor(e)}},7738:t=>{"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},7783:t=>{"use strict";t.exports=function(){return this.sort().reverse()}},6536:t=>{"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(s){e[s]=t.items[s]})),new this.constructor(e)}},4989:t=>{"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(s){e[s]=t.items[s]})),new this.constructor(e)}},4947:t=>{"use strict";t.exports=function(t,e,s){var r=this.slice(t,e);if(this.items=this.diff(r.all()).all(),Array.isArray(s))for(var i=0,n=s.length;i{"use strict";t.exports=function(t){for(var e=Math.round(this.items.length/t),s=JSON.parse(JSON.stringify(this.items)),r=[],i=0;i{"use strict";var r=s(7055),i=s(1242).isFunction;t.exports=function(t){var e=r(this.items),s=0;if(void 0===t)for(var n=0,o=e.length;n{"use strict";t.exports=function(){var t=this,e=-1;return{next:function(){return e+=1,{value:t.items[e],done:e>=t.items.length}}}}},496:t=>{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var s=this;if(!Array.isArray(this.items)&&"object"===e(this.items)){var r=Object.keys(this.items),i=void 0;i=t<0?r.slice(t):r.slice(0,t);var n={};return r.forEach((function(t){-1!==i.indexOf(t)&&(n[t]=s.items[t])})),new this.constructor(n)}return t<0?new this.constructor(this.items.slice(t)):new this.constructor(this.items.slice(0,t))}},4270:(t,e,s)=>{"use strict";var r=s(1242),i=r.isArray,n=r.isObject,o=r.isFunction;t.exports=function(t){var e=this,s=null,r=void 0,a=function(e){return e===t};return o(t)&&(a=t),i(this.items)&&(r=this.items.filter((function(t){return!1!==s&&(s=!a(t)),s}))),n(this.items)&&(r=Object.keys(this.items).reduce((function(t,r){return!1!==s&&(s=!a(e.items[r])),!1!==s&&(t[r]=e.items[r]),t}),{})),new this.constructor(r)}},1548:(t,e,s)=>{"use strict";var r=s(1242),i=r.isArray,n=r.isObject,o=r.isFunction;t.exports=function(t){var e=this,s=null,r=void 0,a=function(e){return e===t};return o(t)&&(a=t),i(this.items)&&(r=this.items.filter((function(t){return!1!==s&&(s=a(t)),s}))),n(this.items)&&(r=Object.keys(this.items).reduce((function(t,r){return!1!==s&&(s=a(e.items[r])),!1!==s&&(t[r]=e.items[r]),t}),{})),new this.constructor(r)}},4265:t=>{"use strict";t.exports=function(t){return t(this),this}},2668:t=>{"use strict";t.exports=function(t,e){for(var s=1;s<=t;s+=1)this.items.push(e(s));return this}},2903:t=>{"use strict";t.exports=function(){var t=this.constructor;function e(s,r){var i=[];s instanceof t?(s.items.forEach((function(t){return e(t,i)})),r.push(i)):Array.isArray(s)?(s.forEach((function(t){return e(t,i)})),r.push(i)):r.push(s)}if(Array.isArray(this.items)){var s=[];return this.items.forEach((function(t){e(t,s)})),s}return this.values().all()}},1245:t=>{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(){return"object"!==e(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},4583:t=>{"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var s={};Object.keys(this.items).forEach((function(r){s[r]=t(e.items[r],r)})),this.items=s}return this}},4464:t=>{"use strict";t.exports=function(t){var e=this,s=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(r){void 0===e.items[r]&&(s[r]=t[r])})),new this.constructor(s)}},5547:(t,e,s)=>{"use strict";var r=s(1242).isFunction;t.exports=function(t){var e=void 0;if(void 0===t)e=this.items.filter((function(t,e,s){return s.indexOf(t)===e}));else{e=[];for(var s=[],i=0,n=this.items.length;i{"use strict";t.exports=function(t,e,s){t?s(this):e(this)}},794:t=>{"use strict";t.exports=function(t){return t instanceof this.constructor?t.all():t}},7615:(t,e,s)=>{"use strict";var r=s(7055);t.exports=function(){return new this.constructor(r(this.items))}},1005:t=>{"use strict";t.exports=function(t,e,s){return t?e(this,t):s?s(this,t):this}},4721:t=>{"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&!this.items.length)return t(this);if(!Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&this.items.length)return e(this);if(Object.keys(this.items).length)return e(this)}return this}},3339:t=>{"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},4295:(t,e,s)=>{"use strict";var r=s(7055),i=s(6429);t.exports=function(t,e,s){var n=e,o=s,a=r(this.items);if(void 0===e||!0===e)return new this.constructor(a.filter((function(e){return i(e,t)})));if(!1===e)return new this.constructor(a.filter((function(e){return!i(e,t)})));void 0===s&&(o=e,n="===");var c=a.filter((function(e){switch(n){case"==":return i(e,t)===Number(o)||i(e,t)===o.toString();default:case"===":return i(e,t)===o;case"!=":case"<>":return i(e,t)!==Number(o)&&i(e,t)!==o.toString();case"!==":return i(e,t)!==o;case"<":return i(e,t)":return i(e,t)>o;case">=":return i(e,t)>=o}}));return new this.constructor(c)}},4835:t=>{"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},5524:(t,e,s)=>{"use strict";var r=s(7055),i=s(6429);t.exports=function(t,e){var s=r(e),n=this.items.filter((function(e){return-1!==s.indexOf(i(e,t))}));return new this.constructor(n)}},7848:t=>{"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},2787:(t,e,s)=>{"use strict";var r=s(6429);t.exports=function(t,e){return this.filter((function(s){return r(s,t)e[e.length-1]}))}},5839:(t,e,s)=>{"use strict";var r=s(7055),i=s(6429);t.exports=function(t,e){var s=r(e),n=this.items.filter((function(e){return-1===s.indexOf(i(e,t))}));return new this.constructor(n)}},1590:t=>{"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},609:t=>{"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},8711:t=>{"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":e(t))?new this.constructor(t):new this.constructor([t])}},3585:t=>{"use strict";t.exports=function(t){var e=this,s=t;s instanceof this.constructor&&(s=s.all());var r=this.items.map((function(t,r){return new e.constructor([t,s[r]])}));return new this.constructor(r)}},4155:t=>{var e,s,r=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(s){try{return e.call(null,t,0)}catch(s){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{s="function"==typeof clearTimeout?clearTimeout:n}catch(t){s=n}}();var a,c=[],l=!1,h=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):h=-1,c.length&&u())}function u(){if(!l){var t=o(p);l=!0;for(var e=c.length;e;){for(a=c,c=[];++h1)for(var s=1;s{var e=function(t){"use strict";var e,s=Object.prototype,r=s.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},n=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function c(t,e,s){return Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,s){return t[e]=s}}function l(t,e,s,r){var i=e&&e.prototype instanceof y?e:y,n=Object.create(i.prototype),o=new k(r||[]);return n._invoke=function(t,e,s){var r=p;return function(i,n){if(r===d)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw n;return I()}for(s.method=i,s.arg=n;;){var o=s.delegate;if(o){var a=E(o,s);if(a){if(a===m)continue;return a}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(r===p)throw r=f,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);r=d;var c=h(t,e,s);if("normal"===c.type){if(r=s.done?f:u,c.arg===m)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(r=f,s.method="throw",s.arg=c.arg)}}}(t,s,o),n}function h(t,e,s){try{return{type:"normal",arg:t.call(e,s)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var p="suspendedStart",u="suspendedYield",d="executing",f="completed",m={};function y(){}function x(){}function g(){}var b={};b[n]=function(){return this};var v=Object.getPrototypeOf,w=v&&v(v(N([])));w&&w!==s&&r.call(w,n)&&(b=w);var P=g.prototype=y.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function s(i,n,o,a){var c=h(t[i],t,n);if("throw"!==c.type){var l=c.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){s("next",t,o,a)}),(function(t){s("throw",t,o,a)})):e.resolve(p).then((function(t){l.value=t,o(l)}),(function(t){return s("throw",t,o,a)}))}a(c.arg)}var i;this._invoke=function(t,r){function n(){return new e((function(e,i){s(t,r,e,i)}))}return i=i?i.then(n,n):n()}}function E(t,s){var r=t.iterator[s.method];if(r===e){if(s.delegate=null,"throw"===s.method){if(t.iterator.return&&(s.method="return",s.arg=e,E(t,s),"throw"===s.method))return m;s.method="throw",s.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=h(r,t.iterator,s.arg);if("throw"===i.type)return s.method="throw",s.arg=i.arg,s.delegate=null,m;var n=i.arg;return n?n.done?(s[t.resultName]=n.value,s.next=t.nextLoc,"return"!==s.method&&(s.method="next",s.arg=e),s.delegate=null,m):n:(s.method="throw",s.arg=new TypeError("iterator result is not an object"),s.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function N(t){if(t){var s=t[n];if(s)return s.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function s(){for(;++i=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--s){var i=this.tryEntries[s];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var s=this.tryEntries[e];if(s.finallyLoc===t)return this.complete(s.completion,s.afterLoc),C(s),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var s=this.tryEntries[e];if(s.tryLoc===t){var r=s.completion;if("throw"===r.type){var i=r.arg;C(s)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,s,r){return this.delegate={iterator:N(t),resultName:s,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},6197:t=>{"use strict";t.exports=JSON.parse('{"logout":"logout","account":"account","home":"/","account.password":"account/password","account.import.form":"account/import","account.import":"account/import","account.export":"account/export","group.index_active":"group/active","group.my_groups":"group/my_groups","group.update_positions":"group/update_positions","group.invite_user":"group/{group}/invite","group.leave":"group/{group}/leave","group.join":"group/{group}/join","group.accept_invitation":"group/{group}/accept_invitation","group.reject_invitation":"group/{group}/reject_invitation","group.index":"group","group.store":"group","group.show":"group/{group}","group.update":"group/{group}","group.destroy":"group/{group}","folder.toggle_branch":"folder/{folder}/toggle_branch","folder.details":"folder/{folder}/details","folder.set_permission":"folder/{folder}/set_permission","folder.per_user_permissions":"folder/{folder}/per_user_permissions","folder.users_without_permissions":"folder/{folder}/users_without_permissions","folder.remove_permissions":"folder/{folder}/remove_permissions/{user}","folder.index":"folder","folder.store":"folder","folder.show":"folder/{folder}","folder.update":"folder/{folder}","folder.destroy":"folder/{folder}","document.move":"document/move/{sourceFolder}/{targetFolder}","document.destroy_bookmarks":"document/delete_bookmarks/{folder}","document.visit":"document/{document}/visit","document.store":"document","document.show":"document/{document}","feed.ignore":"feed/{feed}/ignore","feed.follow":"feed/{feed}/follow","feed_item.mark_as_read":"feed_item/mark_as_read","feed_item.index":"feed_item","feed_item.show":"feed_item/{feed_item}","highlight.update_positions":"highlight/update_positions","highlight.store":"highlight","highlight.update":"highlight/{highlight}","highlight.destroy":"highlight/{highlight}"}')}},e={};function s(r){var i=e[r];if(void 0!==i)return i.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,s),n.exports}s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};function e(t,e){const s=Object.create(null),r=t.split(",");for(let t=0;t!!s[t.toLowerCase()]:t=>!!s[t]}s.r(t),s.d(t,{BaseTransition:()=>Qs,Comment:()=>Xr,Fragment:()=>Jr,KeepAlive:()=>or,Static:()=>Yr,Suspense:()=>us,Teleport:()=>Ur,Text:()=>Gr,Transition:()=>Rn,TransitionGroup:()=>Xn,callWithAsyncErrorHandling:()=>Ne,callWithErrorHandling:()=>ke,camelize:()=>K,capitalize:()=>G,cloneVNode:()=>fi,computed:()=>Xi,createApp:()=>ko,createBlock:()=>ni,createCommentVNode:()=>xi,createHydrationRenderer:()=>Or,createRenderer:()=>Lr,createSSRApp:()=>No,createSlots:()=>hn,createStaticVNode:()=>yi,createTextVNode:()=>mi,createVNode:()=>ui,customRef:()=>be,defineAsyncComponent:()=>Qi,defineComponent:()=>Yi,defineEmit:()=>en,defineProps:()=>tn,devtools:()=>Ze,getCurrentInstance:()=>Bi,getTransitionRawChildren:()=>ir,h:()=>rn,handleError:()=>Ie,hydrate:()=>Co,initCustomFormatter:()=>an,inject:()=>Ti,isProxy:()=>ne,isReactive:()=>re,isReadonly:()=>ie,isRef:()=>le,isVNode:()=>oi,markRaw:()=>ae,mergeProps:()=>wi,nextTick:()=>ze,onActivated:()=>lr,onBeforeMount:()=>Ds,onBeforeUnmount:()=>Bs,onBeforeUpdate:()=>Fs,onDeactivated:()=>hr,onErrorCaptured:()=>$s,onMounted:()=>Rs,onRenderTracked:()=>qs,onRenderTriggered:()=>Vs,onUnmounted:()=>Us,onUpdated:()=>js,openBlock:()=>ti,popScopeId:()=>As,provide:()=>Pi,proxyRefs:()=>xe,pushScopeId:()=>Ts,queuePostFlushCb:()=>Je,reactive:()=>Qt,readonly:()=>te,ref:()=>he,registerRuntimeCompiler:()=>zi,render:()=>So,renderList:()=>cn,renderSlot:()=>bs,resolveComponent:()=>qr,resolveDirective:()=>Hr,resolveDynamicComponent:()=>zr,resolveTransitionHooks:()=>tr,setBlockTracking:()=>ii,setDevtoolsHook:()=>ts,setTransitionHooks:()=>rr,shallowReactive:()=>Zt,shallowReadonly:()=>ee,shallowRef:()=>pe,ssrContextKey:()=>nn,ssrUtils:()=>un,toDisplayString:()=>x,toHandlerKey:()=>X,toHandlers:()=>ln,toRaw:()=>oe,toRef:()=>Pe,toRefs:()=>ve,transformVNodeArgs:()=>ci,triggerRef:()=>fe,unref:()=>me,useContext:()=>sn,useCssModule:()=>_n,useCssVars:()=>Ln,useSSRContext:()=>on,useTransitionState:()=>Xs,vModelCheckbox:()=>io,vModelDynamic:()=>po,vModelRadio:()=>oo,vModelSelect:()=>ao,vModelText:()=>ro,vShow:()=>bo,version:()=>pn,warn:()=>Ee,watch:()=>Ks,watchEffect:()=>zs,withCtx:()=>vs,withDirectives:()=>vr,withKeys:()=>go,withModifiers:()=>yo,withScopeId:()=>Es});const r={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",1024:"DYNAMIC_SLOTS",512:"NEED_PATCH",[-1]:"HOISTED",[-2]:"BAIL"},i=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");const n="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",o=e(n);function a(t){if(I(t)){const e={};for(let s=0;s{if(t){const s=t.split(l);s.length>1&&(e[s[0].trim()]=s[1].trim())}})),e}function p(t){let e="";if(D(t))e=t;else if(I(t))for(let s=0;sm(t,e)))}const x=t=>null==t?"":F(t)?JSON.stringify(t,g,2):String(t),g=(t,e)=>_(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,s])=>(t[`${e} =>`]=s,t)),{})}:L(e)?{[`Set(${e.size})`]:[...e.values()]}:!F(e)||I(e)||V(e)?e:String(e),b={},v=[],w=()=>{},P=()=>!1,T=/^on[^a-z]/,A=t=>T.test(t),E=t=>t.startsWith("onUpdate:"),S=Object.assign,C=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},k=Object.prototype.hasOwnProperty,N=(t,e)=>k.call(t,e),I=Array.isArray,_=t=>"[object Map]"===U(t),L=t=>"[object Set]"===U(t),O=t=>t instanceof Date,M=t=>"function"==typeof t,D=t=>"string"==typeof t,R=t=>"symbol"==typeof t,F=t=>null!==t&&"object"==typeof t,j=t=>F(t)&&M(t.then)&&M(t.catch),B=Object.prototype.toString,U=t=>B.call(t),V=t=>"[object Object]"===U(t),q=t=>D(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,$=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z=t=>{const e=Object.create(null);return s=>e[s]||(e[s]=t(s))},H=/-(\w)/g,K=z((t=>t.replace(H,((t,e)=>e?e.toUpperCase():"")))),W=/\B([A-Z])/g,J=z((t=>t.replace(W,"-$1").toLowerCase())),G=z((t=>t.charAt(0).toUpperCase()+t.slice(1))),X=z((t=>t?`on${G(t)}`:"")),Y=(t,e)=>t!==e&&(t==t||e==e),Q=(t,e)=>{for(let s=0;s{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:s})},tt=t=>{const e=parseFloat(t);return isNaN(e)?t:e};const et=new WeakMap,st=[];let rt;const it=Symbol(""),nt=Symbol("");function ot(t,e=b){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const s=function(t,e){const s=function(){if(!s.active)return e.scheduler?void 0:t();if(!st.includes(s)){lt(s);try{return pt.push(ht),ht=!0,st.push(s),rt=s,t()}finally{st.pop(),dt(),rt=st[st.length-1]}}};return s.id=ct++,s.allowRecurse=!!e.allowRecurse,s._isEffect=!0,s.active=!0,s.raw=t,s.deps=[],s.options=e,s}(t,e);return e.lazy||s(),s}function at(t){t.active&&(lt(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let ct=0;function lt(t){const{deps:e}=t;if(e.length){for(let s=0;s{t&&t.forEach((t=>{(t!==rt||t.allowRecurse)&&a.add(t)}))};if("clear"===e)o.forEach(c);else if("length"===s&&I(t))o.forEach(((t,e)=>{("length"===e||e>=r)&&c(t)}));else switch(void 0!==s&&c(o.get(s)),e){case"add":I(t)?q(s)&&c(o.get("length")):(c(o.get(it)),_(t)&&c(o.get(nt)));break;case"delete":I(t)||(c(o.get(it)),_(t)&&c(o.get(nt)));break;case"set":_(t)&&c(o.get(it))}a.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const yt=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(R)),xt=Pt(),gt=Pt(!1,!0),bt=Pt(!0),vt=Pt(!0,!0),wt={};function Pt(t=!1,e=!1){return function(s,r,i){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_raw"===r&&i===(t?Xt:Gt).get(s))return s;const n=I(s);if(n&&N(wt,r))return Reflect.get(wt,r,i);const o=Reflect.get(s,r,i);if(R(r)?yt.has(r):"__proto__"===r||"__v_isRef"===r)return o;if(t||ft(s,0,r),e)return o;if(le(o)){return!n||!q(r)?o.value:o}return F(o)?t?te(o):Qt(o):o}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];wt[t]=function(...t){const s=oe(this);for(let t=0,e=this.length;t{const e=Array.prototype[t];wt[t]=function(...t){ut();const s=e.apply(this,t);return dt(),s}}));function Tt(t=!1){return function(e,s,r,i){const n=e[s];if(!t&&(r=oe(r),!I(e)&&le(n)&&!le(r)))return n.value=r,!0;const o=I(e)&&q(s)?Number(s)!0,deleteProperty:(t,e)=>!0},St=S({},At,{get:gt,set:Tt(!0)}),Ct=S({},Et,{get:vt}),kt=t=>F(t)?Qt(t):t,Nt=t=>F(t)?te(t):t,It=t=>t,_t=t=>Reflect.getPrototypeOf(t);function Lt(t,e,s=!1,r=!1){const i=oe(t=t.__v_raw),n=oe(e);e!==n&&!s&&ft(i,0,e),!s&&ft(i,0,n);const{has:o}=_t(i),a=s?Nt:r?It:kt;return o.call(i,e)?a(t.get(e)):o.call(i,n)?a(t.get(n)):void 0}function Ot(t,e=!1){const s=this.__v_raw,r=oe(s),i=oe(t);return t!==i&&!e&&ft(r,0,t),!e&&ft(r,0,i),t===i?s.has(t):s.has(t)||s.has(i)}function Mt(t,e=!1){return t=t.__v_raw,!e&&ft(oe(t),0,it),Reflect.get(t,"size",t)}function Dt(t){t=oe(t);const e=oe(this),s=_t(e).has.call(e,t),r=e.add(t);return s||mt(e,"add",t,t),r}function Rt(t,e){e=oe(e);const s=oe(this),{has:r,get:i}=_t(s);let n=r.call(s,t);n||(t=oe(t),n=r.call(s,t));const o=i.call(s,t),a=s.set(t,e);return n?Y(e,o)&&mt(s,"set",t,e):mt(s,"add",t,e),a}function Ft(t){const e=oe(this),{has:s,get:r}=_t(e);let i=s.call(e,t);i||(t=oe(t),i=s.call(e,t));r&&r.call(e,t);const n=e.delete(t);return i&&mt(e,"delete",t,void 0),n}function jt(){const t=oe(this),e=0!==t.size,s=t.clear();return e&&mt(t,"clear",void 0,void 0),s}function Bt(t,e){return function(s,r){const i=this,n=i.__v_raw,o=oe(n),a=t?Nt:e?It:kt;return!t&&ft(o,0,it),n.forEach(((t,e)=>s.call(r,a(t),a(e),i)))}}function Ut(t,e,s){return function(...r){const i=this.__v_raw,n=oe(i),o=_(n),a="entries"===t||t===Symbol.iterator&&o,c="keys"===t&&o,l=i[t](...r),h=e?Nt:s?It:kt;return!e&&ft(n,0,c?nt:it),{next(){const{value:t,done:e}=l.next();return e?{value:t,done:e}:{value:a?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function Vt(t){return function(...e){return"delete"!==t&&this}}const qt={get(t){return Lt(this,t)},get size(){return Mt(this)},has:Ot,add:Dt,set:Rt,delete:Ft,clear:jt,forEach:Bt(!1,!1)},$t={get(t){return Lt(this,t,!1,!0)},get size(){return Mt(this)},has:Ot,add:Dt,set:Rt,delete:Ft,clear:jt,forEach:Bt(!1,!0)},zt={get(t){return Lt(this,t,!0)},get size(){return Mt(this,!0)},has(t){return Ot.call(this,t,!0)},add:Vt("add"),set:Vt("set"),delete:Vt("delete"),clear:Vt("clear"),forEach:Bt(!0,!1)};function Ht(t,e){const s=e?$t:t?zt:qt;return(e,r,i)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(N(s,r)&&r in e?s:e,r,i)}["keys","values","entries",Symbol.iterator].forEach((t=>{qt[t]=Ut(t,!1,!1),zt[t]=Ut(t,!0,!1),$t[t]=Ut(t,!1,!0)}));const Kt={get:Ht(!1,!1)},Wt={get:Ht(!1,!0)},Jt={get:Ht(!0,!1)};const Gt=new WeakMap,Xt=new WeakMap;function Yt(t){return t.__v_skip||!Object.isExtensible(t)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>U(t).slice(8,-1))(t))}function Qt(t){return t&&t.__v_isReadonly?t:se(t,!1,At,Kt)}function Zt(t){return se(t,!1,St,Wt)}function te(t){return se(t,!0,Et,Jt)}function ee(t){return se(t,!0,Ct,Jt)}function se(t,e,s,r){if(!F(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const i=e?Xt:Gt,n=i.get(t);if(n)return n;const o=Yt(t);if(0===o)return t;const a=new Proxy(t,2===o?r:s);return i.set(t,a),a}function re(t){return ie(t)?re(t.__v_raw):!(!t||!t.__v_isReactive)}function ie(t){return!(!t||!t.__v_isReadonly)}function ne(t){return re(t)||ie(t)}function oe(t){return t&&oe(t.__v_raw)||t}function ae(t){return Z(t,"__v_skip",!0),t}const ce=t=>F(t)?Qt(t):t;function le(t){return Boolean(t&&!0===t.__v_isRef)}function he(t){return de(t)}function pe(t){return de(t,!0)}class ue{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:ce(t)}get value(){return ft(oe(this),0,"value"),this._value}set value(t){Y(oe(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:ce(t),mt(oe(this),"set","value",t))}}function de(t,e=!1){return le(t)?t:new ue(t,e)}function fe(t){mt(oe(t),"set","value",void 0)}function me(t){return le(t)?t.value:t}const ye={get:(t,e,s)=>me(Reflect.get(t,e,s)),set:(t,e,s,r)=>{const i=t[e];return le(i)&&!le(s)?(i.value=s,!0):Reflect.set(t,e,s,r)}};function xe(t){return re(t)?t:new Proxy(t,ye)}class ge{constructor(t){this.__v_isRef=!0;const{get:e,set:s}=t((()=>ft(this,0,"value")),(()=>mt(this,"set","value")));this._get=e,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function be(t){return new ge(t)}function ve(t){const e=I(t)?new Array(t.length):{};for(const s in t)e[s]=Pe(t,s);return e}class we{constructor(t,e){this._object=t,this._key=e,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}function Pe(t,e){return le(t[e])?t[e]:new we(t,e)}class Te{constructor(t,e,s){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=ot(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,mt(oe(this),"set","value"))}}),this.__v_isReadonly=s}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),ft(oe(this),0,"value"),this._value}set value(t){this._setter(t)}}const Ae=[];function Ee(t,...e){ut();const s=Ae.length?Ae[Ae.length-1].component:null,r=s&&s.appContext.config.warnHandler,i=function(){let t=Ae[Ae.length-1];if(!t)return[];const e=[];for(;t;){const s=e[0];s&&s.vnode===t?s.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}();if(r)ke(r,s,11,[t+e.join(""),s&&s.proxy,i.map((({vnode:t})=>`at <${Ji(s,t.type)}>`)).join("\n"),i]);else{const s=[`[Vue warn]: ${t}`,...e];i.length&&s.push("\n",...function(t){const e=[];return t.forEach(((t,s)=>{e.push(...0===s?[]:["\n"],...function({vnode:t,recurseCount:e}){const s=e>0?`... (${e} recursive calls)`:"",r=!!t.component&&null==t.component.parent,i=` at <${Ji(t.component,t.type,r)}`,n=">"+s;return t.props?[i,...Se(t.props),n]:[i+n]}(t))})),e}(i)),console.warn(...s)}dt()}function Se(t){const e=[],s=Object.keys(t);return s.slice(0,3).forEach((s=>{e.push(...Ce(s,t[s]))})),s.length>3&&e.push(" ..."),e}function Ce(t,e,s){return D(e)?(e=JSON.stringify(e),s?e:[`${t}=${e}`]):"number"==typeof e||"boolean"==typeof e||null==e?s?e:[`${t}=${e}`]:le(e)?(e=Ce(t,oe(e.value),!0),s?e:[`${t}=Ref<`,e,">"]):M(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=oe(e),s?e:[`${t}=`,e])}function ke(t,e,s,r){let i;try{i=r?t(...r):t()}catch(t){Ie(t,e,s)}return i}function Ne(t,e,s,r){if(M(t)){const i=ke(t,e,s,r);return i&&j(i)&&i.catch((t=>{Ie(t,e,s)})),i}const i=[];for(let n=0;nYe(t)-Ye(e))),Ue=0;Uenull==t.id?1/0:t.id;function Qe(t){Le=!1,_e=!0,Ge(t),Oe.sort(((t,e)=>Ye(t)-Ye(e)));try{for(Me=0;Met.trim())):e&&(i=s.map(tt))}let a=X(K(e)),c=r[a];!c&&n&&(a=X(J(e)),c=r[a]),c&&Ne(c,t,6,i);const l=r[a+"Once"];if(l){if(t.emitted){if(t.emitted[a])return}else(t.emitted={})[a]=!0;Ne(l,t,6,i)}}function ss(t,e,s=!1){if(!e.deopt&&void 0!==t.__emits)return t.__emits;const r=t.emits;let i={},n=!1;if(!M(t)){const r=t=>{n=!0,S(i,ss(t,e,!0))};!s&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return r||n?(I(r)?r.forEach((t=>i[t]=null)):S(i,r),t.__emits=i):t.__emits=null}function rs(t,e){return!(!t||!A(e))&&(e=e.replace(/Once$/,""),N(t,e[2].toLowerCase()+e.slice(3))||N(t,e.slice(2)))}let is=null;function ns(t){is=t}function os(t){const{type:e,vnode:s,proxy:r,withProxy:i,props:n,propsOptions:[o],slots:a,attrs:c,emit:l,render:h,renderCache:p,data:u,setupState:d,ctx:f}=t;let m;is=t;try{let t;if(4&s.shapeFlag){const e=i||r;m=gi(h.call(e,e,p,n,d,u,f)),t=c}else{const s=e;0,m=gi(s.length>1?s(n,{attrs:c,slots:a,emit:l}):s(n,null)),t=e.props?c:cs(c)}let y=m;if(!1!==e.inheritAttrs&&t){const e=Object.keys(t),{shapeFlag:s}=y;e.length&&(1&s||6&s)&&(o&&e.some(E)&&(t=ls(t,o)),y=fi(y,t))}s.dirs&&(y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&(y.transition=s.transition),m=y}catch(e){Ie(e,t,1),m=ui(Xr)}return is=null,m}function as(t){const e=t.filter((t=>!(oi(t)&&t.type===Xr&&"v-if"!==t.children)));return 1===e.length&&oi(e[0])?e[0]:null}const cs=t=>{let e;for(const s in t)("class"===s||"style"===s||A(s))&&((e||(e={}))[s]=t[s]);return e},ls=(t,e)=>{const s={};for(const r in t)E(r)&&r.slice(9)in e||(s[r]=t[r]);return s};function hs(t,e,s){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i0?(c(null,t.ssFallback,e,s,r,null,n),ys(p,t.ssFallback)):p.resolve()}(e,s,r,i,n,o,a,c):function(t,e,s,r,i,n,{p:o,um:a,o:{createElement:c}}){const l=e.suspense=t.suspense;l.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:u,pendingBranch:d,isInFallback:f,isHydrating:m}=l;if(d)l.pendingBranch=h,ai(h,d)?(o(d,h,l.hiddenContainer,null,i,l,n),l.deps<=0?l.resolve():f&&(o(u,p,s,r,i,null,n),ys(l,p))):(l.pendingId++,m?(l.isHydrating=!1,l.activeBranch=d):a(d,i,l),l.deps=0,l.effects.length=0,l.hiddenContainer=c("div"),f?(o(null,h,l.hiddenContainer,null,i,l,n),l.deps<=0?l.resolve():(o(u,p,s,r,i,null,n),ys(l,p))):u&&ai(h,u)?(o(u,h,s,r,i,l,n),l.resolve(!0)):(o(null,h,l.hiddenContainer,null,i,l,n),l.deps<=0&&l.resolve()));else if(u&&ai(h,u))o(u,h,s,r,i,l,n),ys(l,h);else{const t=e.props&&e.props.onPending;if(M(t)&&t(),l.pendingBranch=h,l.pendingId++,o(null,h,l.hiddenContainer,null,i,l,n),l.deps<=0)l.resolve();else{const{timeout:t,pendingId:e}=l;t>0?setTimeout((()=>{l.pendingId===e&&l.fallback(p)}),t):0===t&&l.fallback(p)}}}(t,e,s,r,i,o,c)},hydrate:function(t,e,s,r,i,n,o,a){const c=e.suspense=ds(e,r,s,t.parentNode,document.createElement("div"),null,i,n,o,!0),l=a(t,c.pendingBranch=e.ssContent,s,c,n);0===c.deps&&c.resolve();return l},create:ds};function ds(t,e,s,r,i,n,o,a,c,l=!1){const{p:h,m:p,um:u,n:d,o:{parentNode:f,remove:m}}=c,y=tt(t.props&&t.props.timeout),x={vnode:t,parent:e,parentComponent:s,isSVG:o,container:r,hiddenContainer:i,anchor:n,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:l,isUnmounted:!1,effects:[],resolve(t=!1){const{vnode:e,activeBranch:s,pendingBranch:r,pendingId:i,effects:n,parentComponent:o,container:a}=x;if(x.isHydrating)x.isHydrating=!1;else if(!t){const t=s&&r.transition&&"out-in"===r.transition.mode;t&&(s.transition.afterLeave=()=>{i===x.pendingId&&p(r,a,e,0)});let{anchor:e}=x;s&&(e=d(s),u(s,o,x,!0)),t||p(r,a,e,0)}ys(x,r),x.pendingBranch=null,x.isInFallback=!1;let c=x.parent,l=!1;for(;c;){if(c.pendingBranch){c.effects.push(...n),l=!0;break}c=c.parent}l||Je(n),x.effects=[];const h=e.props&&e.props.onResolve;M(h)&&h()},fallback(t){if(!x.pendingBranch)return;const{vnode:e,activeBranch:s,parentComponent:r,container:i,isSVG:n}=x,o=e.props&&e.props.onFallback;M(o)&&o();const a=d(s),c=()=>{x.isInFallback&&(h(null,t,i,a,r,null,n),ys(x,t))},l=t.transition&&"out-in"===t.transition.mode;l&&(s.transition.afterLeave=c),u(s,r,null,!0),x.isInFallback=!0,l||c()},move(t,e,s){x.activeBranch&&p(x.activeBranch,t,e,s),x.container=t},next:()=>x.activeBranch&&d(x.activeBranch),registerDep(t,e){if(!x.pendingBranch)return;const s=t.vnode.el;x.deps++,t.asyncDep.catch((e=>{Ie(e,t,0)})).then((r=>{if(t.isUnmounted||x.isUnmounted||x.pendingId!==t.suspenseId)return;x.deps--,t.asyncResolved=!0;const{vnode:i}=t;$i(t,r),s&&(i.el=s);const n=!s&&t.subTree.el;e(t,i,f(s||t.subTree.el),s?null:d(t.subTree),x,o,a),n&&m(n),ps(t,i.el),0===x.deps&&x.resolve()}))},unmount(t,e){x.isUnmounted=!0,x.activeBranch&&u(x.activeBranch,s,t,e),x.pendingBranch&&u(x.pendingBranch,s,t,e)}};return x}function fs(t){if(M(t)&&(t=t()),I(t)){0,t=as(t)}return gi(t)}function ms(t,e){e&&e.pendingBranch?I(t)?e.effects.push(...t):e.effects.push(t):Je(t)}function ys(t,e){t.activeBranch=e;const{vnode:s,parentComponent:r}=t,i=s.el=e.el;r&&r.subTree===s&&(r.vnode.el=i,ps(r,i))}let xs=0;const gs=t=>xs+=t;function bs(t,e,s={},r){let i=t[e];xs++;const n=(ti(),ni(Jr,{key:s.key},i?i(s):r?r():[],1===t._?64:-2));return xs--,n}function vs(t,e=is){if(!e)return t;const s=(...s)=>{xs||ti(!0);const r=is;ns(e);const i=t(...s);return ns(r),xs||ei(),i};return s._c=!0,s}let ws=null;const Ps=[];function Ts(t){Ps.push(ws=t)}function As(){Ps.pop(),ws=Ps[Ps.length-1]||null}function Es(t){return e=>vs((function(){Ts(t);const s=e.apply(this,arguments);return As(),s}))}function Ss(t,e,s,r){const[i,n]=t.propsOptions;if(e)for(const n in e){const o=e[n];if($(n))continue;let a;i&&N(i,a=K(n))?s[a]=o:rs(t.emitsOptions,n)||(r[n]=o)}if(n){const e=oe(s);for(let r=0;r{o=!0;const[s,r]=ks(t,e,!0);S(i,s),r&&n.push(...r)};!s&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}if(!r&&!o)return t.__props=v;if(I(r))for(let t=0;t-1,o[1]=s<0||t-1||N(o,"default"))&&n.push(e)}}}}return t.__props=[i,n]}function Ns(t){return"$"!==t[0]}function Is(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function _s(t,e){return Is(t)===Is(e)}function Ls(t,e){if(I(e)){for(let s=0,r=e.length;s{if(s.isUnmounted)return;ut(),Ui(s);const i=Ne(e,s,t,r);return Ui(null),dt(),i});return r?i.unshift(n):i.push(n),n}}const Ms=t=>(e,s=ji)=>!qi&&Os(t,e,s),Ds=Ms("bm"),Rs=Ms("m"),Fs=Ms("bu"),js=Ms("u"),Bs=Ms("bum"),Us=Ms("um"),Vs=Ms("rtg"),qs=Ms("rtc"),$s=(t,e=ji)=>{Os("ec",t,e)};function zs(t,e){return Ws(t,null,e)}const Hs={};function Ks(t,e,s){return Ws(t,e,s)}function Ws(t,e,{immediate:s,deep:r,flush:i,onTrack:n,onTrigger:o}=b,a=ji){let c,l,h=!1;if(le(t)?(c=()=>t.value,h=!!t._shallow):re(t)?(c=()=>t,r=!0):c=I(t)?()=>t.map((t=>le(t)?t.value:re(t)?Gs(t):M(t)?ke(t,a,2):void 0)):M(t)?e?()=>ke(t,a,2):()=>{if(!a||!a.isUnmounted)return l&&l(),ke(t,a,3,[p])}:w,e&&r){const t=c;c=()=>Gs(t())}const p=t=>{l=m.options.onStop=()=>{ke(t,a,4)}};let u=I(t)?[]:Hs;const d=()=>{if(m.active)if(e){const t=m();(r||h||Y(t,u))&&(l&&l(),Ne(e,a,3,[t,u===Hs?void 0:u,p]),u=t)}else m()};let f;d.allowRecurse=!!e,f="sync"===i?d:"post"===i?()=>Ir(d,a&&a.suspense):()=>{!a||a.isMounted?function(t){We(t,Re,De,Fe)}(d):d()};const m=ot(c,{lazy:!0,onTrack:n,onTrigger:o,scheduler:f});return Ki(m),e?s?d():u=m():"post"===i?Ir(m,a&&a.suspense):m(),()=>{at(m),a&&C(a.effects,m)}}function Js(t,e,s){const r=this.proxy;return Ws(D(t)?()=>r[t]:t.bind(r),e.bind(r),s,this)}function Gs(t,e=new Set){if(!F(t)||e.has(t))return t;if(e.add(t),le(t))Gs(t.value,e);else if(I(t))for(let s=0;s{Gs(t,e)}));else for(const s in t)Gs(t[s],e);return t}function Xs(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Rs((()=>{t.isMounted=!0})),Bs((()=>{t.isUnmounting=!0})),t}const Ys=[Function,Array],Qs={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ys,onEnter:Ys,onAfterEnter:Ys,onEnterCancelled:Ys,onBeforeLeave:Ys,onLeave:Ys,onAfterLeave:Ys,onLeaveCancelled:Ys,onBeforeAppear:Ys,onAppear:Ys,onAfterAppear:Ys,onAppearCancelled:Ys},setup(t,{slots:e}){const s=Bi(),r=Xs();let i;return()=>{const n=e.default&&ir(e.default(),!0);if(!n||!n.length)return;const o=oe(t),{mode:a}=o;const c=n[0];if(r.isLeaving)return er(c);const l=sr(c);if(!l)return er(c);const h=tr(l,o,r,s);rr(l,h);const p=s.subTree,u=p&&sr(p);let d=!1;const{getTransitionKey:f}=l.type;if(f){const t=f();void 0===i?i=t:t!==i&&(i=t,d=!0)}if(u&&u.type!==Xr&&(!ai(l,u)||d)){const t=tr(u,o,r,s);if(rr(u,t),"out-in"===a)return r.isLeaving=!0,t.afterLeave=()=>{r.isLeaving=!1,s.update()},er(c);"in-out"===a&&(t.delayLeave=(t,e,s)=>{Zs(r,u)[String(u.key)]=u,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=s})}return c}}};function Zs(t,e){const{leavingVNodes:s}=t;let r=s.get(e.type);return r||(r=Object.create(null),s.set(e.type,r)),r}function tr(t,e,s,r){const{appear:i,mode:n,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:h,onBeforeLeave:p,onLeave:u,onAfterLeave:d,onLeaveCancelled:f,onBeforeAppear:m,onAppear:y,onAfterAppear:x,onAppearCancelled:g}=e,b=String(t.key),v=Zs(s,t),w=(t,e)=>{t&&Ne(t,r,9,e)},P={mode:n,persisted:o,beforeEnter(e){let r=a;if(!s.isMounted){if(!i)return;r=m||a}e._leaveCb&&e._leaveCb(!0);const n=v[b];n&&ai(t,n)&&n.el._leaveCb&&n.el._leaveCb(),w(r,[e])},enter(t){let e=c,r=l,n=h;if(!s.isMounted){if(!i)return;e=y||c,r=x||l,n=g||h}let o=!1;const a=t._enterCb=e=>{o||(o=!0,w(e?n:r,[t]),P.delayedLeave&&P.delayedLeave(),t._enterCb=void 0)};e?(e(t,a),e.length<=1&&a()):a()},leave(e,r){const i=String(t.key);if(e._enterCb&&e._enterCb(!0),s.isUnmounting)return r();w(p,[e]);let n=!1;const o=e._leaveCb=s=>{n||(n=!0,r(),w(s?f:d,[e]),e._leaveCb=void 0,v[i]===t&&delete v[i])};v[i]=t,u?(u(e,o),u.length<=1&&o()):o()},clone:t=>tr(t,e,s,r)};return P}function er(t){if(nr(t))return(t=fi(t)).children=null,t}function sr(t){return nr(t)?t.children?t.children[0]:void 0:t}function rr(t,e){6&t.shapeFlag&&t.component?rr(t.component.subTree,e):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ir(t,e=!1){let s=[],r=0;for(let i=0;i1)for(let t=0;tt.type.__isKeepAlive,or={name:"KeepAlive",__isKeepAlive:!0,inheritRef:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const s=new Map,r=new Set;let i=null;const n=Bi(),o=n.suspense,a=n.ctx,{renderer:{p:c,m:l,um:h,o:{createElement:p}}}=a,u=p("div");function d(t){dr(t),h(t,n,o)}function f(t){s.forEach(((e,s)=>{const r=ar(e.type);!r||t&&t(r)||m(s)}))}function m(t){const e=s.get(t);i&&e.type===i.type?i&&dr(i):d(e),s.delete(t),r.delete(t)}a.activate=(t,e,s,r,i)=>{const n=t.component;l(t,e,s,0,o),c(n.vnode,t,e,s,n,o,r,i),Ir((()=>{n.isDeactivated=!1,n.a&&Q(n.a);const e=t.props&&t.props.onVnodeMounted;e&&Dr(e,n.parent,t)}),o)},a.deactivate=t=>{const e=t.component;l(t,u,null,1,o),Ir((()=>{e.da&&Q(e.da);const s=t.props&&t.props.onVnodeUnmounted;s&&Dr(s,e.parent,t),e.isDeactivated=!0}),o)},Ks((()=>[t.include,t.exclude]),(([t,e])=>{t&&f((e=>cr(t,e))),e&&f((t=>!cr(e,t)))}),{flush:"post"});let y=null;const x=()=>{null!=y&&s.set(y,fr(n.subTree))};return Rs(x),js(x),Bs((()=>{s.forEach((t=>{const{subTree:e,suspense:s}=n,r=fr(e);if(t.type!==r.type)d(t);else{dr(r);const t=r.component.da;t&&Ir(t,s)}}))})),()=>{if(y=null,!e.default)return null;const n=e.default(),o=n[0];if(n.length>1)return i=null,n;if(!(oi(o)&&(4&o.shapeFlag||128&o.shapeFlag)))return i=null,o;let a=fr(o);const c=a.type,l=ar(c),{include:h,exclude:p,max:u}=t;if(h&&(!l||!cr(h,l))||p&&l&&cr(p,l))return i=a,o;const d=null==a.key?c:a.key,f=s.get(d);return a.el&&(a=fi(a),128&o.shapeFlag&&(o.ssContent=a)),y=d,f?(a.el=f.el,a.component=f.component,a.transition&&rr(a,a.transition),a.shapeFlag|=512,r.delete(d),r.add(d)):(r.add(d),u&&r.size>parseInt(u,10)&&m(r.values().next().value)),a.shapeFlag|=256,i=a,o}}};function ar(t){return t.displayName||t.name}function cr(t,e){return I(t)?t.some((t=>cr(t,e))):D(t)?t.split(",").indexOf(e)>-1:!!t.test&&t.test(e)}function lr(t,e){pr(t,"a",e)}function hr(t,e){pr(t,"da",e)}function pr(t,e,s=ji){const r=t.__wdc||(t.__wdc=()=>{let e=s;for(;e;){if(e.isDeactivated)return;e=e.parent}t()});if(Os(e,r,s),s){let t=s.parent;for(;t&&t.parent;)nr(t.parent.vnode)&&ur(r,e,s,t),t=t.parent}}function ur(t,e,s,r){const i=Os(e,t,r,!0);Us((()=>{C(r[e],i)}),s)}function dr(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}function fr(t){return 128&t.shapeFlag?t.ssContent:t}const mr=t=>"_"===t[0]||"$stable"===t,yr=t=>I(t)?t.map(gi):[gi(t)],xr=(t,e,s)=>vs((t=>yr(e(t))),s),gr=(t,e)=>{const s=t._ctx;for(const r in t){if(mr(r))continue;const i=t[r];if(M(i))e[r]=xr(0,i,s);else if(null!=i){0;const t=yr(i);e[r]=()=>t}}},br=(t,e)=>{const s=yr(e);t.slots.default=()=>s};function vr(t,e){if(null===is)return t;const s=is.proxy,r=t.dirs||(t.dirs=[]);for(let t=0;t(n.has(t)||(t&&M(t.install)?(n.add(t),t.install(a,...e)):M(t)&&(n.add(t),t(a,...e))),a),mixin:t=>(i.mixins.includes(t)||(i.mixins.push(t),(t.props||t.emits)&&(i.deopt=!0)),a),component:(t,e)=>e?(i.components[t]=e,a):i.components[t],directive:(t,e)=>e?(i.directives[t]=e,a):i.directives[t],mount(n,c){if(!o){const l=ui(s,r);return l.appContext=i,c&&e?e(l,n):t(l,n),o=!0,a._container=n,n.__vue_app__=a,l.component.proxy}},unmount(){o&&t(null,a._container)},provide:(t,e)=>(i.provides[t]=e,a)};return a}}let Er=!1;const Sr=t=>/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,Cr=t=>8===t.nodeType;function kr(t){const{mt:e,p:s,o:{patchProp:r,nextSibling:i,parentNode:n,remove:o,insert:a,createComment:c}}=t,l=(s,r,o,a,c=!1)=>{const m=Cr(s)&&"["===s.data,y=()=>d(s,r,o,a,m),{type:x,ref:g,shapeFlag:b}=r,v=s.nodeType;r.el=s;let w=null;switch(x){case Gr:3!==v?w=y():(s.data!==r.children&&(Er=!0,s.data=r.children),w=i(s));break;case Xr:w=8!==v||m?y():i(s);break;case Yr:if(1===v){w=s;const t=!r.children.length;for(let e=0;e{e(r,t,null,o,a,Sr(t),c)},h=r.type.__asyncLoader;h?h().then(l):l(),w=m?f(s):i(s)}else 64&b?w=8!==v?y():r.type.hydrate(s,r,o,a,c,t,p):128&b&&(w=r.type.hydrate(s,r,o,a,Sr(n(s)),c,t,l))}return null!=g&&o&&_r(g,null,o,a,r),w},h=(t,e,s,i,n)=>{n=n||!!e.dynamicChildren;const{props:a,patchFlag:c,shapeFlag:l,dirs:h}=e;if(-1!==c){if(h&&wr(e,null,s,"created"),a)if(!n||16&c||32&c)for(const e in a)!$(e)&&A(e)&&r(t,e,null,a[e]);else a.onClick&&r(t,"onClick",null,a.onClick);let u;if((u=a&&a.onVnodeBeforeMount)&&Dr(u,s,e),h&&wr(e,null,s,"beforeMount"),((u=a&&a.onVnodeMounted)||h)&&ms((()=>{u&&Dr(u,s,e),h&&wr(e,null,s,"mounted")}),i),16&l&&(!a||!a.innerHTML&&!a.textContent)){let r=p(t.firstChild,e,t,s,i,n);for(;r;){Er=!0;const t=r;r=r.nextSibling,o(t)}}else 8&l&&t.textContent!==e.children&&(Er=!0,t.textContent=e.children)}return t.nextSibling},p=(t,e,r,i,n,o)=>{o=o||!!e.dynamicChildren;const a=e.children,c=a.length;for(let e=0;e{const l=n(t),h=p(i(t),e,l,s,r,o);return h&&Cr(h)&&"]"===h.data?i(e.anchor=h):(Er=!0,a(e.anchor=c("]"),l,h),h)},d=(t,e,r,a,c)=>{if(Er=!0,e.el=null,c){const e=f(t);for(;;){const s=i(t);if(!s||s===e)break;o(s)}}const l=i(t),h=n(t);return o(t),s(null,e,h,l,r,a,Sr(h)),l},f=t=>{let e=0;for(;t;)if((t=i(t))&&Cr(t)&&("["===t.data&&e++,"]"===t.data)){if(0===e)return i(t);e--}return t};return[(t,e)=>{Er=!1,l(e.firstChild,t,null,null),Xe(),Er&&console.error("Hydration completed but contains mismatches.")},l]}const Nr={scheduler:He,allowRecurse:!0};const Ir=ms,_r=(t,e,s,r,i)=>{if(I(t))return void t.forEach(((t,n)=>_r(t,e&&(I(e)?e[n]:e),s,r,i)));let n;n=i?4&i.shapeFlag?i.component.exposed||i.component.proxy:i.el:null;const{i:o,r:a}=t;const c=e&&e.r,l=o.refs===b?o.refs={}:o.refs,h=o.setupState;if(null!=c&&c!==a&&(D(c)?(l[c]=null,N(h,c)&&(h[c]=null)):le(c)&&(c.value=null)),D(a)){const t=()=>{l[a]=n,N(h,a)&&(h[a]=n)};n?(t.id=-1,Ir(t,r)):t()}else if(le(a)){const t=()=>{a.value=n};n?(t.id=-1,Ir(t,r)):t()}else M(a)&&ke(a,s,12,[n,l])};function Lr(t){return Mr(t)}function Or(t){return Mr(t,kr)}function Mr(t,e){const{insert:s,remove:r,patchProp:i,forcePatchProp:n,createElement:o,createText:a,createComment:c,setText:l,setElementText:h,parentNode:p,nextSibling:u,setScopeId:d=w,cloneNode:f,insertStaticContent:m}=t,y=(t,e,s,r=null,i=null,n=null,o=!1,a=!1)=>{t&&!ai(t,e)&&(r=Y(t),z(t,i,n,!0),t=null),-2===e.patchFlag&&(a=!1,e.dynamicChildren=null);const{type:c,ref:l,shapeFlag:h}=e;switch(c){case Gr:x(t,e,s,r);break;case Xr:g(t,e,s,r);break;case Yr:null==t&&P(e,s,r,o);break;case Jr:L(t,e,s,r,i,n,o,a);break;default:1&h?T(t,e,s,r,i,n,o,a):6&h?O(t,e,s,r,i,n,o,a):(64&h||128&h)&&c.process(t,e,s,r,i,n,o,a,et)}null!=l&&i&&_r(l,t&&t.ref,i,n,e)},x=(t,e,r,i)=>{if(null==t)s(e.el=a(e.children),r,i);else{const s=e.el=t.el;e.children!==t.children&&l(s,e.children)}},g=(t,e,r,i)=>{null==t?s(e.el=c(e.children||""),r,i):e.el=t.el},P=(t,e,s,r)=>{[t.el,t.anchor]=m(t.children,e,s,r)},T=(t,e,s,r,i,n,o,a)=>{o=o||"svg"===e.type,null==t?A(e,s,r,i,n,o,a):k(t,e,i,n,o,a)},A=(t,e,r,n,a,c,l)=>{let p,u;const{type:d,props:m,shapeFlag:y,transition:x,scopeId:g,patchFlag:b,dirs:v}=t;if(t.el&&void 0!==f&&-1===b)p=t.el=f(t.el);else{if(p=t.el=o(t.type,c,m&&m.is),8&y?h(p,t.children):16&y&&C(t.children,p,null,n,a,c&&"foreignObject"!==d,l||!!t.dynamicChildren),v&&wr(t,null,n,"created"),m){for(const e in m)$(e)||i(p,e,null,m[e],c,t.children,n,a,X);(u=m.onVnodeBeforeMount)&&Dr(u,n,t)}E(p,g,t,n)}v&&wr(t,null,n,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&x&&!x.persisted;w&&x.beforeEnter(p),s(p,e,r),((u=m&&m.onVnodeMounted)||w||v)&&Ir((()=>{u&&Dr(u,n,t),w&&x.enter(p),v&&wr(t,null,n,"mounted")}),a)},E=(t,e,s,r)=>{if(e&&d(t,e),r){const i=r.type.__scopeId;i&&i!==e&&d(t,i+"-s"),0,s===r.subTree&&E(t,r.vnode.scopeId,r.vnode,r.parent)}},C=(t,e,s,r,i,n,o,a=0)=>{for(let c=a;c{const c=e.el=t.el;let{patchFlag:l,dynamicChildren:p,dirs:u}=e;l|=16&t.patchFlag;const d=t.props||b,f=e.props||b;let m;if((m=f.onVnodeBeforeUpdate)&&Dr(m,s,e,t),u&&wr(e,t,s,"beforeUpdate"),l>0){if(16&l)_(c,e,d,f,s,r,o);else if(2&l&&d.class!==f.class&&i(c,"class",null,f.class,o),4&l&&i(c,"style",d.style,f.style,o),8&l){const a=e.dynamicProps;for(let e=0;e{m&&Dr(m,s,e,t),u&&wr(e,t,s,"updated")}),r)},I=(t,e,s,r,i,n)=>{for(let o=0;o{if(s!==r){for(const l in r){if($(l))continue;const h=r[l],p=s[l];(h!==p||n&&n(t,l))&&i(t,l,p,h,c,e.children,o,a,X)}if(s!==b)for(const n in s)$(n)||n in r||i(t,n,s[n],null,c,e.children,o,a,X)}},L=(t,e,r,i,n,o,c,l)=>{const h=e.el=t?t.el:a(""),p=e.anchor=t?t.anchor:a("");let{patchFlag:u,dynamicChildren:d}=e;u>0&&(l=!0),null==t?(s(h,r,i),s(p,r,i),C(e.children,r,p,n,o,c,l)):u>0&&64&u&&d?(I(t.dynamicChildren,d,r,n,o,c),(null!=e.key||n&&e===n.subTree)&&Rr(t,e,!0)):B(t,e,r,p,n,o,c,l)},O=(t,e,s,r,i,n,o,a)=>{null==t?512&e.shapeFlag?i.ctx.activate(e,s,r,o,a):M(e,s,r,i,n,o,a):D(t,e,a)},M=(t,e,s,r,i,n,o)=>{const a=t.component=function(t,e,s){const r=t.type,i=(e?e.appContext:t.appContext)||Ri,n={uid:Fi++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,withProxy:null,effects:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ks(r,i),emitsOptions:ss(r,i),emit:null,emitted:null,ctx:b,data:b,props:b,attrs:b,slots:b,refs:b,setupState:b,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null};n.ctx={_:n};n.root=e?e.root:n,n.emit=es.bind(null,n),!1;return n}(t,r,i);if(nr(t)&&(a.ctx.renderer=et),function(t,e=!1){qi=e;const{props:s,children:r,shapeFlag:i}=t.vnode,n=4&i;(function(t,e,s,r=!1){const i={},n={};Z(n,li,1),Ss(t,e,i,n),s?t.props=r?i:Zt(i):t.type.props?t.props=i:t.props=n,t.attrs=n})(t,s,n,e),((t,e)=>{if(32&t.vnode.shapeFlag){const s=e._;s?(t.slots=e,Z(e,"_",s)):gr(e,t.slots={})}else t.slots={},e&&br(t,e);Z(t.slots,li,1)})(t,r);const o=n?function(t,e){const s=t.type;0;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Mi),!1;const{setup:r}=s;if(r){const s=t.setupContext=r.length>1?function(t){const e=e=>{t.exposed=xe(e)};return{attrs:t.attrs,slots:t.slots,emit:t.emit,expose:e}}(t):null;ji=t,ut();const i=ke(r,t,0,[t.props,s]);if(dt(),ji=null,j(i)){if(e)return i.then((e=>{$i(t,e)}));t.asyncDep=i}else $i(t,i)}else Hi(t)}(t,e):void 0;qi=!1}(a),a.asyncDep){if(i&&i.registerDep(a,R),!t.el){const t=a.subTree=ui(Xr);g(null,t,e,s)}}else R(a,t,e,s,i,n,o)},D=(t,e,s)=>{const r=e.component=t.component;if(function(t,e,s){const{props:r,children:i,component:n}=t,{props:o,children:a,patchFlag:c}=e,l=n.emitsOptions;if(e.dirs||e.transition)return!0;if(!(s&&c>=0))return!(!i&&!a||a&&a.$stable)||r!==o&&(r?!o||hs(r,o,l):!!o);if(1024&c)return!0;if(16&c)return r?hs(r,o,l):!!o;if(8&c){const t=e.dynamicProps;for(let e=0;e-1&&Oe.splice(e,1)}(r.update),r.update()}else e.component=t.component,e.el=t.el,r.vnode=e},R=(t,e,s,r,i,n,o)=>{t.update=ot((function(){if(t.isMounted){let e,{next:s,bu:r,u:a,parent:c,vnode:l}=t,h=s;0,s?(s.el=l.el,F(t,s,o)):s=l,r&&Q(r),(e=s.props&&s.props.onVnodeBeforeUpdate)&&Dr(e,c,s,l);const u=os(t);0;const d=t.subTree;t.subTree=u,y(d,u,p(d.el),Y(d),t,i,n),s.el=u.el,null===h&&ps(t,u.el),a&&Ir(a,i),(e=s.props&&s.props.onVnodeUpdated)&&Ir((()=>{Dr(e,c,s,l)}),i)}else{let o;const{el:a,props:c}=e,{bm:l,m:h,parent:p}=t;l&&Q(l),(o=c&&c.onVnodeBeforeMount)&&Dr(o,p,e);const u=t.subTree=os(t);0,a&&rt?rt(e.el,u,t,i):(y(null,u,s,r,t,i,n),e.el=u.el),h&&Ir(h,i),(o=c&&c.onVnodeMounted)&&Ir((()=>{Dr(o,p,e)}),i);const{a:d}=t;d&&256&e.shapeFlag&&Ir(d,i),t.isMounted=!0}}),Nr)},F=(t,e,s)=>{e.component=t;const r=t.vnode.props;t.vnode=e,t.next=null,function(t,e,s,r){const{props:i,attrs:n,vnode:{patchFlag:o}}=t,a=oe(i),[c]=t.propsOptions;if(!(r||o>0)||16&o){let r;Ss(t,e,i,n);for(const n in a)e&&(N(e,n)||(r=J(n))!==n&&N(e,r))||(c?!s||void 0===s[n]&&void 0===s[r]||(i[n]=Cs(c,e||b,n,void 0,t)):delete i[n]);if(n!==a)for(const t in n)e&&N(e,t)||delete n[t]}else if(8&o){const s=t.vnode.dynamicProps;for(let r=0;r{const{vnode:s,slots:r}=t;let i=!0,n=b;if(32&s.shapeFlag){const t=e._;t?1===t?i=!1:S(r,e):(i=!e.$stable,gr(e,r)),n=e}else e&&(br(t,e),n={default:1});if(i)for(const t in r)mr(t)||t in n||delete r[t]})(t,e.children),Ge(void 0,t.update)},B=(t,e,s,r,i,n,o,a=!1)=>{const c=t&&t.children,l=t?t.shapeFlag:0,p=e.children,{patchFlag:u,shapeFlag:d}=e;if(u>0){if(128&u)return void V(c,p,s,r,i,n,o,a);if(256&u)return void U(c,p,s,r,i,n,o,a)}8&d?(16&l&&X(c,i,n),p!==c&&h(s,p)):16&l?16&d?V(c,p,s,r,i,n,o,a):X(c,i,n,!0):(8&l&&h(s,""),16&d&&C(p,s,r,i,n,o,a))},U=(t,e,s,r,i,n,o,a)=>{e=e||v;const c=(t=t||v).length,l=e.length,h=Math.min(c,l);let p;for(p=0;pl?X(t,i,n,!0,!1,h):C(e,s,r,i,n,o,a,h)},V=(t,e,s,r,i,n,o,a)=>{let c=0;const l=e.length;let h=t.length-1,p=l-1;for(;c<=h&&c<=p;){const r=t[c],l=e[c]=a?bi(e[c]):gi(e[c]);if(!ai(r,l))break;y(r,l,s,null,i,n,o,a),c++}for(;c<=h&&c<=p;){const r=t[h],c=e[p]=a?bi(e[p]):gi(e[p]);if(!ai(r,c))break;y(r,c,s,null,i,n,o,a),h--,p--}if(c>h){if(c<=p){const t=p+1,h=tp)for(;c<=h;)z(t[c],i,n,!0),c++;else{const u=c,d=c,f=new Map;for(c=d;c<=p;c++){const t=e[c]=a?bi(e[c]):gi(e[c]);null!=t.key&&f.set(t.key,c)}let m,x=0;const g=p-d+1;let b=!1,w=0;const P=new Array(g);for(c=0;c=g){z(r,i,n,!0);continue}let l;if(null!=r.key)l=f.get(r.key);else for(m=d;m<=p;m++)if(0===P[m-d]&&ai(r,e[m])){l=m;break}void 0===l?z(r,i,n,!0):(P[l-d]=c+1,l>=w?w=l:b=!0,y(r,e[l],s,null,i,n,o,a),x++)}const T=b?function(t){const e=t.slice(),s=[0];let r,i,n,o,a;const c=t.length;for(r=0;r0&&(e[r]=s[n-1]),s[n]=r)}}n=s.length,o=s[n-1];for(;n-- >0;)s[n]=o,o=e[o];return s}(P):v;for(m=T.length-1,c=g-1;c>=0;c--){const t=d+c,a=e[t],h=t+1{const{el:o,type:a,transition:c,children:l,shapeFlag:h}=t;if(6&h)return void q(t.component.subTree,e,r,i);if(128&h)return void t.suspense.move(e,r,i);if(64&h)return void a.move(t,e,r,et);if(a===Jr){s(o,e,r);for(let t=0;tc.enter(o)),n);else{const{leave:t,delayLeave:i,afterLeave:n}=c,a=()=>s(o,e,r),l=()=>{t(o,(()=>{a(),n&&n()}))};i?i(o,a,l):l()}else s(o,e,r)},z=(t,e,s,r=!1,i=!1)=>{const{type:n,props:o,ref:a,children:c,dynamicChildren:l,shapeFlag:h,patchFlag:p,dirs:u}=t;if(null!=a&&e&&_r(a,null,e,s,null),256&h)return void e.ctx.deactivate(t);const d=1&h&&u;let f;if((f=o&&o.onVnodeBeforeUnmount)&&Dr(f,e,t),6&h)G(t.component,s,r);else{if(128&h)return void t.suspense.unmount(s,r);d&&wr(t,null,e,"beforeUnmount"),l&&(n!==Jr||p>0&&64&p)?X(l,e,s,!1,!0):(n===Jr&&(128&p||256&p)||!i&&16&h)&&X(c,e,s),64&h&&(r||!Fr(t.props))&&t.type.remove(t,et),r&&H(t)}((f=o&&o.onVnodeUnmounted)||d)&&Ir((()=>{f&&Dr(f,e,t),d&&wr(t,null,e,"unmounted")}),s)},H=t=>{const{type:e,el:s,anchor:i,transition:n}=t;if(e===Jr)return void W(s,i);const o=()=>{r(s),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&t.shapeFlag&&n&&!n.persisted){const{leave:e,delayLeave:r}=n,i=()=>e(s,o);r?r(t.el,o,i):i()}else o()},W=(t,e)=>{let s;for(;t!==e;)s=u(t),r(t),t=s;r(e)},G=(t,e,s)=>{const{bum:r,effects:i,update:n,subTree:o,um:a}=t;if(r&&Q(r),i)for(let t=0;t{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},X=(t,e,s,r=!1,i=!1,n=0)=>{for(let o=n;o6&t.shapeFlag?Y(t.component.subTree):128&t.shapeFlag?t.suspense.next():u(t.anchor||t.el),tt=(t,e)=>{null==t?e._vnode&&z(e._vnode,null,null,!0):y(e._vnode||null,t,e),Xe(),e._vnode=t},et={p:y,um:z,m:q,r:H,mt:M,mc:C,pc:B,pbc:I,n:Y,o:t};let st,rt;return e&&([st,rt]=e(et)),{render:tt,hydrate:st,createApp:Ar(tt,st)}}function Dr(t,e,s,r=null){Ne(t,e,7,[s,r])}function Rr(t,e,s=!1){const r=t.children,i=e.children;if(I(r)&&I(i))for(let t=0;tt&&(t.disabled||""===t.disabled),jr=(t,e)=>{const s=t&&t.to;if(D(s)){if(e){const t=e(s);return t}return null}return s};function Br(t,e,s,{o:{insert:r},m:i},n=2){0===n&&r(t.targetAnchor,e,s);const{el:o,anchor:a,shapeFlag:c,children:l,props:h}=t,p=2===n;if(p&&r(o,e,s),(!p||Fr(h))&&16&c)for(let t=0;t{16&x&&l(g,t,e,i,n,o,a)};y?m(s,c):h&&m(h,p)}else{e.el=t.el;const r=e.anchor=t.anchor,l=e.target=t.target,u=e.targetAnchor=t.targetAnchor,f=Fr(t.props),m=f?s:l,x=f?r:u;if(e.dynamicChildren?(p(t.dynamicChildren,e.dynamicChildren,m,i,n,o),Rr(t,e,!0)):a||h(t,e,m,x,i,n,o),y)f||Br(e,s,r,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=jr(e.props,d);t&&Br(e,t,null,c,0)}else f&&Br(e,l,u,c,1)}},remove(t,{r:e,o:{remove:s}}){const{shapeFlag:r,children:i,anchor:n}=t;if(s(n),16&r)for(let t=0;t0&&Zr&&Zr.push(n),n}function oi(t){return!!t&&!0===t.__v_isVNode}function ai(t,e){return t.type===e.type&&t.key===e.key}function ci(t){si=t}const li="__vInternal",hi=({key:t})=>null!=t?t:null,pi=({ref:t})=>null!=t?I(t)?t:{i:is,r:t}:null,ui=di;function di(t,e=null,s=null,r=0,i=null,n=!1){if(t&&t!==$r||(t=Xr),oi(t)){const r=fi(t,e,!0);return s&&vi(r,s),r}if(Gi(t)&&(t=t.__vccOpts),e){(ne(e)||li in e)&&(e=S({},e));let{class:t,style:s}=e;t&&!D(t)&&(e.class=p(t)),F(s)&&(ne(s)&&!I(s)&&(s=S({},s)),e.style=a(s))}const o=D(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:F(t)?4:M(t)?2:0;const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&hi(e),ref:e&&pi(e),scopeId:ws,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};if(vi(c,s),128&o){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:s}=t;let r,i;return 32&e?(r=fs(s.default),i=fs(s.fallback)):(r=fs(s),i=gi(null)),{content:r,fallback:i}}(c);c.ssContent=t,c.ssFallback=e}return ri>0&&!n&&Zr&&(r>0||6&o)&&32!==r&&Zr.push(c),c}function fi(t,e,s=!1){const{props:r,ref:i,patchFlag:n}=t,o=e?wi(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:o,key:o&&hi(o),ref:e&&e.ref?s&&i?I(i)?i.concat(pi(e)):[i,pi(e)]:pi(e):i,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Jr?-1===n?16:16|n:n,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&fi(t.ssContent),ssFallback:t.ssFallback&&fi(t.ssFallback),el:t.el,anchor:t.anchor}}function mi(t=" ",e=0){return ui(Gr,null,t,e)}function yi(t,e){const s=ui(Yr,null,t);return s.staticCount=e,s}function xi(t="",e=!1){return e?(ti(),ni(Xr,null,t)):ui(Xr,null,t)}function gi(t){return null==t||"boolean"==typeof t?ui(Xr):I(t)?ui(Jr,null,t):"object"==typeof t?null===t.el?t:fi(t):ui(Gr,null,String(t))}function bi(t){return null===t.el?t:fi(t)}function vi(t,e){let s=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(I(e))s=16;else if("object"==typeof e){if(1&r||64&r){const s=e.default;return void(s&&(s._c&&gs(1),vi(t,s()),s._c&&gs(-1)))}{s=32;const r=e._;r||li in e?3===r&&is&&(1024&is.vnode.patchFlag?(e._=2,t.patchFlag|=1024):e._=1):e._ctx=is}}else M(e)?(e={default:e,_ctx:is},s=32):(e=String(e),64&r?(s=16,e=[mi(e)]):s=8);t.children=e,t.shapeFlag|=s}function wi(...t){const e=S({},t[0]);for(let s=1;s1)return s&&M(e)?e():e}else 0}let Ai=!1;function Ei(t,e,s=[],r=[],i=[],n=!1){const{mixins:o,extends:a,data:c,computed:l,methods:h,watch:p,provide:u,inject:d,components:f,directives:m,beforeMount:y,mounted:x,beforeUpdate:g,updated:v,activated:P,deactivated:T,beforeDestroy:A,beforeUnmount:E,destroyed:C,unmounted:k,render:N,renderTracked:_,renderTriggered:L,errorCaptured:O,expose:D}=e,R=t.proxy,j=t.ctx,B=t.appContext.mixins;n&&N&&t.render===w&&(t.render=N),n||(Ai=!0,Si("beforeCreate","bc",e,t,B),Ai=!1,Ni(t,B,s,r,i)),a&&Ei(t,a,s,r,i,!0),o&&Ni(t,o,s,r,i);if(d)if(I(d))for(let t=0;tIi(t,e,R))),c&&Ii(t,c,R)),l)for(const t in l){const e=l[t];0;const s=Xi({get:M(e)?e.bind(R,R):M(e.get)?e.get.bind(R,R):w,set:!M(e)&&M(e.set)?e.set.bind(R):w});Object.defineProperty(j,t,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t})}if(p&&r.push(p),!n&&r.length&&r.forEach((t=>{for(const e in t)_i(t[e],j,R,e)})),u&&i.push(u),!n&&i.length&&i.forEach((t=>{const e=M(t)?t.call(R):t;for(const t in e)Pi(t,e[t])})),n&&(f&&S(t.components||(t.components=S({},t.type.components)),f),m&&S(t.directives||(t.directives=S({},t.type.directives)),m)),n||Si("created","c",e,t,B),y&&Ds(y.bind(R)),x&&Rs(x.bind(R)),g&&Fs(g.bind(R)),v&&js(v.bind(R)),P&&lr(P.bind(R)),T&&hr(T.bind(R)),O&&$s(O.bind(R)),_&&qs(_.bind(R)),L&&Vs(L.bind(R)),E&&Bs(E.bind(R)),k&&Us(k.bind(R)),I(D))if(n)0;else if(D.length){const e=t.exposed||(t.exposed=xe({}));D.forEach((t=>{e[t]=Pe(R,t)}))}else t.exposed||(t.exposed=b)}function Si(t,e,s,r,i){ki(t,e,i,r);const{extends:n,mixins:o}=s;n&&Ci(t,e,n,r),o&&ki(t,e,o,r);const a=s[t];a&&Ne(a.bind(r.proxy),r,e)}function Ci(t,e,s,r){s.extends&&Ci(t,e,s.extends,r);const i=s[t];i&&Ne(i.bind(r.proxy),r,e)}function ki(t,e,s,r){for(let i=0;i{let e=t;for(let t=0;ts[r];if(D(t)){const s=e[t];M(s)&&Ks(i,s)}else if(M(t))Ks(i,t.bind(s));else if(F(t))if(I(t))t.forEach((t=>_i(t,e,s,r)));else{const r=M(t.handler)?t.handler.bind(s):e[t.handler];M(r)&&Ks(i,r,t)}else 0}function Li(t,e,s){const r=s.appContext.config.optionMergeStrategies,{mixins:i,extends:n}=e;n&&Li(t,n,s),i&&i.forEach((e=>Li(t,e,s)));for(const i in e)r&&N(r,i)?t[i]=r[i](t[i],e[i],s.proxy,i):t[i]=e[i]}const Oi=S(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>t.parent&&t.parent.proxy,$root:t=>t.root&&t.root.proxy,$emit:t=>t.emit,$options:t=>function(t){const e=t.type,{__merged:s,mixins:r,extends:i}=e;if(s)return s;const n=t.appContext.mixins;if(!n.length&&!r&&!i)return e;const o={};return n.forEach((e=>Li(o,e,t))),Li(o,e,t),e.__merged=o}(t),$forceUpdate:t=>()=>He(t.update),$nextTick:t=>ze.bind(t.proxy),$watch:t=>Js.bind(t)}),Mi={get({_:t},e){const{ctx:s,setupState:r,data:i,props:n,accessCache:o,type:a,appContext:c}=t;if("__v_skip"===e)return!0;let l;if("$"!==e[0]){const a=o[e];if(void 0!==a)switch(a){case 0:return r[e];case 1:return i[e];case 3:return s[e];case 2:return n[e]}else{if(r!==b&&N(r,e))return o[e]=0,r[e];if(i!==b&&N(i,e))return o[e]=1,i[e];if((l=t.propsOptions[0])&&N(l,e))return o[e]=2,n[e];if(s!==b&&N(s,e))return o[e]=3,s[e];Ai||(o[e]=4)}}const h=Oi[e];let p,u;return h?("$attrs"===e&&ft(t,0,e),h(t)):(p=a.__cssModules)&&(p=p[e])?p:s!==b&&N(s,e)?(o[e]=3,s[e]):(u=c.config.globalProperties,N(u,e)?u[e]:void 0)},set({_:t},e,s){const{data:r,setupState:i,ctx:n}=t;if(i!==b&&N(i,e))i[e]=s;else if(r!==b&&N(r,e))r[e]=s;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(n[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:r,appContext:i,propsOptions:n}},o){let a;return void 0!==s[o]||t!==b&&N(t,o)||e!==b&&N(e,o)||(a=n[0])&&N(a,o)||N(r,o)||N(Oi,o)||N(i.config.globalProperties,o)}};const Di=S({},Mi,{get(t,e){if(e!==Symbol.unscopables)return Mi.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!i(e)});const Ri=Pr();let Fi=0;let ji=null;const Bi=()=>ji||is,Ui=t=>{ji=t};let Vi,qi=!1;function $i(t,e,s){M(e)?t.render=e:F(e)&&(t.setupState=xe(e)),Hi(t)}function zi(t){Vi=t}function Hi(t,e){const s=t.type;t.render||(Vi&&s.template&&!s.render&&(s.render=Vi(s.template,{isCustomElement:t.appContext.config.isCustomElement,delimiters:s.delimiters})),t.render=s.render||w,t.render._rc&&(t.withProxy=new Proxy(t.ctx,Di))),ji=t,Ei(t,s),ji=null}function Ki(t){ji&&(ji.effects||(ji.effects=[])).push(t)}const Wi=/(?:^|[-_])(\w)/g;function Ji(t,e,s=!1){let r=M(e)&&e.displayName||e.name;if(!r&&e.__file){const t=e.__file.match(/([^/\\]+)\.vue$/);t&&(r=t[1])}if(!r&&t&&t.parent){const s=t=>{for(const s in t)if(t[s]===e)return s};r=s(t.components||t.parent.type.components)||s(t.appContext.components)}return r?r.replace(Wi,(t=>t.toUpperCase())).replace(/[-_]/g,""):s?"App":"Anonymous"}function Gi(t){return M(t)&&"__vccOpts"in t}function Xi(t){const e=function(t){let e,s;return M(t)?(e=t,s=w):(e=t.get,s=t.set),new Te(e,s,M(t)||!t.set)}(t);return Ki(e.effect),e}function Yi(t){return M(t)?{setup:t,name:t.name}:t}function Qi(t){M(t)&&(t={loader:t});const{loader:e,loadingComponent:s,errorComponent:r,delay:i=200,timeout:n,suspensible:o=!0,onError:a}=t;let c,l=null,h=0;const p=()=>{let t;return l||(t=l=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),a)return new Promise(((e,s)=>{a(t,(()=>e((h++,l=null,p()))),(()=>s(t)),h+1)}));throw t})).then((e=>t!==l&&l?l:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),c=e,e))))};return Yi({__asyncLoader:p,name:"AsyncComponentWrapper",setup(){const t=ji;if(c)return()=>Zi(c,t);const e=e=>{l=null,Ie(e,t,13,!r)};if(o&&t.suspense)return p().then((e=>()=>Zi(e,t))).catch((t=>(e(t),()=>r?ui(r,{error:t}):null)));const a=he(!1),h=he(),u=he(!!i);return i&&setTimeout((()=>{u.value=!1}),i),null!=n&&setTimeout((()=>{if(!a.value&&!h.value){const t=new Error(`Async component timed out after ${n}ms.`);e(t),h.value=t}}),n),p().then((()=>{a.value=!0})).catch((t=>{e(t),h.value=t})),()=>a.value&&c?Zi(c,t):h.value&&r?ui(r,{error:h.value}):s&&!u.value?ui(s):void 0}})}function Zi(t,{vnode:{props:e,children:s}}){return ui(t,e,s)}function tn(t){return null}function en(t){return null}function sn(){return Bi().setupContext}function rn(t,e,s){const r=arguments.length;return 2===r?F(e)&&!I(e)?oi(e)?ui(t,null,[e]):ui(t,e):ui(t,null,e):(r>3?s=Array.prototype.slice.call(arguments,2):3===r&&oi(s)&&(s=[s]),ui(t,e,s))}const nn=Symbol(""),on=()=>{{const t=Ti(nn);return t||Ee("Server rendering context not provided. Make sure to only call useSsrContext() conditionally in the server build."),t}};function an(){return void 0}function cn(t,e){let s;if(I(t)||D(t)){s=new Array(t.length);for(let r=0,i=t.length;r{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s)=>e?fn.createElementNS(dn,t):fn.createElement(t,s?{is:s}:void 0),createText:t=>fn.createTextNode(t),createComment:t=>fn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>fn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode:t=>t.cloneNode(!0),insertStaticContent(t,e,s,r){const i=r?yn||(yn=fn.createElementNS(dn,"svg")):mn||(mn=fn.createElement("div"));i.innerHTML=t;const n=i.firstChild;let o=n,a=o;for(;o;)a=o,xn.insert(o,e,s),o=i.firstChild;return[n,a]}};const gn=/\s*!important$/;function bn(t,e,s){if(I(s))s.forEach((s=>bn(t,e,s)));else if(e.startsWith("--"))t.setProperty(e,s);else{const r=function(t,e){const s=wn[e];if(s)return s;let r=K(e);if("filter"!==r&&r in t)return wn[e]=r;r=G(r);for(let s=0;sdocument.createEvent("Event").timeStamp&&(Tn=()=>performance.now());let An=0;const En=Promise.resolve(),Sn=()=>{An=0};function Cn(t,e,s,r){t.addEventListener(e,s,r)}function kn(t,e,s,r,i=null){const n=t._vei||(t._vei={}),o=n[e];if(r&&o)o.value=r;else{const[s,a]=function(t){let e;if(Nn.test(t)){let s;for(e={};s=t.match(Nn);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t.slice(2).toLowerCase(),e]}(e);if(r){Cn(t,s,n[e]=function(t,e){const s=t=>{(t.timeStamp||Tn())>=s.attached-1&&Ne(function(t,e){if(I(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t(e)))}return e}(t,s.value),e,5,[t])};return s.value=t,s.attached=(()=>An||(En.then(Sn),An=Tn()))(),s}(r,i),a)}else o&&(!function(t,e,s,r){t.removeEventListener(e,s,r)}(t,s,o,a),n[e]=void 0)}}const Nn=/(?:Once|Passive|Capture)$/;const In=/^on[a-z]/;function _n(t="$style"){{const e=Bi();if(!e)return b;const s=e.type.__cssModules;if(!s)return b;const r=s[t];return r||b}}function Ln(t){const e=Bi();if(!e)return;const s=()=>On(e.subTree,t(e.proxy));Rs((()=>zs(s,{flush:"post"}))),js(s)}function On(t,e){if(128&t.shapeFlag){const s=t.suspense;t=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push((()=>{On(s.activeBranch,e)}))}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el){const s=t.el.style;for(const t in e)s.setProperty(`--${t}`,e[t])}else t.type===Jr&&t.children.forEach((t=>On(t,e)))}const Mn="transition",Dn="animation",Rn=(t,{slots:e})=>rn(Qs,Bn(t),e);Rn.displayName="Transition";const Fn={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jn=Rn.props=S({},Qs.props,Fn);function Bn(t){let{name:e="v",type:s,css:r=!0,duration:i,enterFromClass:n=`${e}-enter-from`,enterActiveClass:o=`${e}-enter-active`,enterToClass:a=`${e}-enter-to`,appearFromClass:c=n,appearActiveClass:l=o,appearToClass:h=a,leaveFromClass:p=`${e}-leave-from`,leaveActiveClass:u=`${e}-leave-active`,leaveToClass:d=`${e}-leave-to`}=t;const f={};for(const e in t)e in Fn||(f[e]=t[e]);if(!r)return f;const m=function(t){if(null==t)return null;if(F(t))return[Un(t.enter),Un(t.leave)];{const e=Un(t);return[e,e]}}(i),y=m&&m[0],x=m&&m[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:v,onLeave:w,onLeaveCancelled:P,onBeforeAppear:T=g,onAppear:A=b,onAppearCancelled:E=v}=f,C=(t,e,s)=>{qn(t,e?h:a),qn(t,e?l:o),s&&s()},k=(t,e)=>{qn(t,d),qn(t,u),e&&e()},N=t=>(e,r)=>{const i=t?A:b,o=()=>C(e,t,r);i&&i(e,o),$n((()=>{qn(e,t?c:n),Vn(e,t?h:a),i&&i.length>1||(y?setTimeout(o,y):zn(e,s,o))}))};return S(f,{onBeforeEnter(t){g&&g(t),Vn(t,o),Vn(t,n)},onBeforeAppear(t){T&&T(t),Vn(t,l),Vn(t,c)},onEnter:N(!1),onAppear:N(!0),onLeave(t,e){const r=()=>k(t,e);Vn(t,u),Vn(t,p),$n((()=>{qn(t,p),Vn(t,d),w&&w.length>1||(x?setTimeout(r,x):zn(t,s,r))})),w&&w(t,r)},onEnterCancelled(t){C(t,!1),v&&v(t)},onAppearCancelled(t){C(t,!0),E&&E(t)},onLeaveCancelled(t){k(t),P&&P(t)}})}function Un(t){return tt(t)}function Vn(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function qn(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:s}=t;s&&(s.delete(e),s.size||(t._vtc=void 0))}function $n(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}function zn(t,e,s){const{type:r,timeout:i,propCount:n}=Hn(t,e);if(!r)return s();const o=r+"end";let a=0;const c=()=>{t.removeEventListener(o,l),s()},l=e=>{e.target===t&&++a>=n&&c()};setTimeout((()=>{a(s[t]||"").split(", "),i=r("transitionDelay"),n=r("transitionDuration"),o=Kn(i,n),a=r("animationDelay"),c=r("animationDuration"),l=Kn(a,c);let h=null,p=0,u=0;e===Mn?o>0&&(h=Mn,p=o,u=n.length):e===Dn?l>0&&(h=Dn,p=l,u=c.length):(p=Math.max(o,l),h=p>0?o>l?Mn:Dn:null,u=h?h===Mn?n.length:c.length:0);return{type:h,timeout:p,propCount:u,hasTransform:h===Mn&&/\b(transform|all)(,|$)/.test(s.transitionProperty)}}function Kn(t,e){for(;t.lengthWn(e)+Wn(t[s]))))}function Wn(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}const Jn=new WeakMap,Gn=new WeakMap,Xn={name:"TransitionGroup",props:S({},jn,{tag:String,moveClass:String}),setup(t,{slots:e}){const s=Bi(),r=Xs();let i,n;return js((()=>{if(!i.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!function(t,e,s){const r=t.cloneNode();t._vtc&&t._vtc.forEach((t=>{t.split(/\s+/).forEach((t=>t&&r.classList.remove(t)))}));s.split(/\s+/).forEach((t=>t&&r.classList.add(t))),r.style.display="none";const i=1===e.nodeType?e:e.parentNode;i.appendChild(r);const{hasTransform:n}=Hn(r);return i.removeChild(r),n}(i[0].el,s.vnode.el,e))return;i.forEach(Yn),i.forEach(Qn);const r=i.filter(Zn);document.body.offsetHeight,r.forEach((t=>{const s=t.el,r=s.style;Vn(s,e),r.transform=r.webkitTransform=r.transitionDuration="";const i=s._moveCb=t=>{t&&t.target!==s||t&&!/transform$/.test(t.propertyName)||(s.removeEventListener("transitionend",i),s._moveCb=null,qn(s,e))};s.addEventListener("transitionend",i)}))})),()=>{const o=oe(t),a=Bn(o),c=o.tag||Jr;i=n,n=e.default?ir(e.default()):[];for(let t=0;t{const e=t.props["onUpdate:modelValue"];return I(e)?t=>Q(e,t):e};function eo(t){t.target.composing=!0}function so(t){const e=t.target;e.composing&&(e.composing=!1,function(t,e){const s=document.createEvent("HTMLEvents");s.initEvent(e,!0,!0),t.dispatchEvent(s)}(e,"input"))}const ro={created(t,{modifiers:{lazy:e,trim:s,number:r}},i){t._assign=to(i);const n=r||"number"===t.type;Cn(t,e?"change":"input",(e=>{if(e.target.composing)return;let r=t.value;s?r=r.trim():n&&(r=tt(r)),t._assign(r)})),s&&Cn(t,"change",(()=>{t.value=t.value.trim()})),e||(Cn(t,"compositionstart",eo),Cn(t,"compositionend",so),Cn(t,"change",so))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{trim:s,number:r}},i){if(t._assign=to(i),t.composing)return;if(document.activeElement===t){if(s&&t.value.trim()===e)return;if((r||"number"===t.type)&&tt(t.value)===e)return}const n=null==e?"":e;t.value!==n&&(t.value=n)}},io={created(t,e,s){no(t,e,s),t._assign=to(s),Cn(t,"change",(()=>{const e=t._modelValue,s=lo(t),r=t.checked,i=t._assign;if(I(e)){const t=y(e,s),n=-1!==t;if(r&&!n)i(e.concat(s));else if(!r&&n){const s=[...e];s.splice(t,1),i(s)}}else L(e)?r?e.add(s):e.delete(s):i(ho(t,r))}))},beforeUpdate(t,e,s){t._assign=to(s),no(t,e,s)}};function no(t,{value:e,oldValue:s},r){t._modelValue=e,I(e)?t.checked=y(e,r.props.value)>-1:L(e)?t.checked=e.has(r.props.value):e!==s&&(t.checked=m(e,ho(t,!0)))}const oo={created(t,{value:e},s){t.checked=m(e,s.props.value),t._assign=to(s),Cn(t,"change",(()=>{t._assign(lo(t))}))},beforeUpdate(t,{value:e,oldValue:s},r){t._assign=to(r),e!==s&&(t.checked=m(e,r.props.value))}},ao={created(t,{modifiers:{number:e}},s){Cn(t,"change",(()=>{const s=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>e?tt(lo(t)):lo(t)));t._assign(t.multiple?s:s[0])})),t._assign=to(s)},mounted(t,{value:e}){co(t,e)},beforeUpdate(t,e,s){t._assign=to(s)},updated(t,{value:e}){co(t,e)}};function co(t,e){const s=t.multiple;if(!s||I(e)||L(e)){for(let r=0,i=t.options.length;r-1:i.selected=e.has(n);else if(m(lo(i),e))return void(t.selectedIndex=r)}s||(t.selectedIndex=-1)}}function lo(t){return"_value"in t?t._value:t.value}function ho(t,e){const s=e?"_trueValue":"_falseValue";return s in t?t[s]:e}const po={created(t,e,s){uo(t,e,s,null,"created")},mounted(t,e,s){uo(t,e,s,null,"mounted")},beforeUpdate(t,e,s,r){uo(t,e,s,r,"beforeUpdate")},updated(t,e,s,r){uo(t,e,s,r,"updated")}};function uo(t,e,s,r,i){let n;switch(t.tagName){case"SELECT":n=ao;break;case"TEXTAREA":n=ro;break;default:switch(s.props&&s.props.type){case"checkbox":n=io;break;case"radio":n=oo;break;default:n=ro}}const o=n[i];o&&o(t,e,s,r)}const fo=["ctrl","shift","alt","meta"],mo={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&0!==t.button,middle:t=>"button"in t&&1!==t.button,right:t=>"button"in t&&2!==t.button,exact:(t,e)=>fo.some((s=>t[`${s}Key`]&&!e.includes(s)))},yo=(t,e)=>(s,...r)=>{for(let t=0;ts=>{if(!("key"in s))return;const r=J(s.key);return e.some((t=>t===r||xo[t]===r))?t(s):void 0},bo={beforeMount(t,{value:e},{transition:s}){t._vod="none"===t.style.display?"":t.style.display,s&&e?s.beforeEnter(t):vo(t,e)},mounted(t,{value:e},{transition:s}){s&&e&&s.enter(t)},updated(t,{value:e,oldValue:s},{transition:r}){!e!=!s&&(r?e?(r.beforeEnter(t),vo(t,!0),r.enter(t)):r.leave(t,(()=>{vo(t,!1)})):vo(t,e))},beforeUnmount(t,{value:e}){vo(t,e)}};function vo(t,e){t.style.display=e?t._vod:"none"}const wo=S({patchProp:(t,e,s,r,i=!1,n,a,c,l)=>{switch(e){case"class":!function(t,e,s){if(null==e&&(e=""),s)t.setAttribute("class",e);else{const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),t.className=e}}(t,r,i);break;case"style":!function(t,e,s){const r=t.style;if(s)if(D(s))e!==s&&(r.cssText=s);else{for(const t in s)bn(r,t,s[t]);if(e&&!D(e))for(const t in e)null==s[t]&&bn(r,t,"")}else t.removeAttribute("style")}(t,s,r);break;default:A(e)?E(e)||kn(t,e,0,r,a):function(t,e,s,r){if(r)return"innerHTML"===e||!!(e in t&&In.test(e)&&M(s));if("spellcheck"===e||"draggable"===e)return!1;if("form"===e&&"string"==typeof s)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if(In.test(e)&&D(s))return!1;return e in t}(t,e,r,i)?function(t,e,s,r,i,n,o){if("innerHTML"===e||"textContent"===e)return r&&o(r,i,n),void(t[e]=null==s?"":s);if("value"!==e||"PROGRESS"===t.tagName)if(""===s&&"boolean"==typeof t[e])t[e]=!0;else if(null==s&&"string"==typeof t[e])t[e]="",t.removeAttribute(e);else try{t[e]=s}catch(t){}else{t._value=s;const e=null==s?"":s;t.value!==e&&(t.value=e)}}(t,e,r,n,a,c,l):("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),function(t,e,s,r){if(r&&e.startsWith("xlink:"))null==s?t.removeAttributeNS(Pn,e.slice(6,e.length)):t.setAttributeNS(Pn,e,s);else{const r=o(e);null==s||r&&!1===s?t.removeAttribute(e):t.setAttribute(e,r?"":s)}}(t,e,r,i))}},forcePatchProp:(t,e)=>"value"===e},xn);let Po,To=!1;function Ao(){return Po||(Po=Lr(wo))}function Eo(){return Po=To?Po:Or(wo),To=!0,Po}const So=(...t)=>{Ao().render(...t)},Co=(...t)=>{Eo().hydrate(...t)},ko=(...t)=>{const e=Ao().createApp(...t);const{mount:s}=e;return e.mount=t=>{const r=Io(t);if(!r)return;const i=e._component;M(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const n=s(r);return r.removeAttribute("v-cloak"),r.setAttribute("data-v-app",""),n},e},No=(...t)=>{const e=Eo().createApp(...t);const{mount:s}=e;return e.mount=t=>{const e=Io(t);if(e)return s(e,!0)},e};function Io(t){if(D(t)){return document.querySelector(t)}return t}s(3834);function _o(t){throw t}function Lo(t,e,s,r){const i=new SyntaxError(String(t));return i.code=t,i.loc=e,i}const Oo=Symbol(""),Mo=Symbol(""),Do=Symbol(""),Ro=Symbol(""),Fo=Symbol(""),jo=Symbol(""),Bo=Symbol(""),Uo=Symbol(""),Vo=Symbol(""),qo=Symbol(""),$o=Symbol(""),zo=Symbol(""),Ho=Symbol(""),Ko=Symbol(""),Wo=Symbol(""),Jo=Symbol(""),Go=Symbol(""),Xo=Symbol(""),Yo=Symbol(""),Qo=Symbol(""),Zo=Symbol(""),ta=Symbol(""),ea=Symbol(""),sa=Symbol(""),ra=Symbol(""),ia=Symbol(""),na=Symbol(""),oa=Symbol(""),aa=Symbol(""),ca=Symbol(""),la=Symbol(""),ha={[Oo]:"Fragment",[Mo]:"Teleport",[Do]:"Suspense",[Ro]:"KeepAlive",[Fo]:"BaseTransition",[jo]:"openBlock",[Bo]:"createBlock",[Uo]:"createVNode",[Vo]:"createCommentVNode",[qo]:"createTextVNode",[$o]:"createStaticVNode",[zo]:"resolveComponent",[Ho]:"resolveDynamicComponent",[Ko]:"resolveDirective",[Wo]:"withDirectives",[Jo]:"renderList",[Go]:"renderSlot",[Xo]:"createSlots",[Yo]:"toDisplayString",[Qo]:"mergeProps",[Zo]:"toHandlers",[ta]:"camelize",[ea]:"capitalize",[sa]:"toHandlerKey",[ra]:"setBlockTracking",[ia]:"pushScopeId",[na]:"popScopeId",[oa]:"withScopeId",[aa]:"withCtx",[ca]:"unref",[la]:"isRef"};const pa={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function ua(t,e,s,r,i,n,o,a=!1,c=!1,l=pa){return t&&(a?(t.helper(jo),t.helper(Bo)):t.helper(Uo),o&&t.helper(Wo)),{type:13,tag:e,props:s,children:r,patchFlag:i,dynamicProps:n,directives:o,isBlock:a,disableTracking:c,loc:l}}function da(t,e=pa){return{type:17,loc:e,elements:t}}function fa(t,e=pa){return{type:15,loc:e,properties:t}}function ma(t,e){return{type:16,loc:pa,key:D(t)?ya(t,!0):t,value:e}}function ya(t,e,s=pa,r=0){return{type:4,loc:s,content:t,isStatic:e,constType:e?3:r}}function xa(t,e=pa){return{type:8,loc:e,children:t}}function ga(t,e=[],s=pa){return{type:14,loc:s,callee:t,arguments:e}}function ba(t,e,s=!1,r=!1,i=pa){return{type:18,params:t,returns:e,newline:s,isSlot:r,loc:i}}function va(t,e,s,r=!0){return{type:19,test:t,consequent:e,alternate:s,newline:r,loc:pa}}const wa=t=>4===t.type&&t.isStatic,Pa=(t,e)=>t===e||t===J(e);function Ta(t){return Pa(t,"Teleport")?Mo:Pa(t,"Suspense")?Do:Pa(t,"KeepAlive")?Ro:Pa(t,"BaseTransition")?Fo:void 0}const Aa=/^\d|[^\$\w]/,Ea=t=>!Aa.test(t),Sa=/^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,Ca=t=>!!t&&Sa.test(t.trim());function ka(t,e,s){const r={source:t.source.substr(e,s),start:Na(t.start,t.source,e),end:t.end};return null!=s&&(r.end=Na(t.start,t.source,e+s)),r}function Na(t,e,s=e.length){return Ia(S({},t),e,s)}function Ia(t,e,s=e.length){let r=0,i=-1;for(let t=0;t4===t.key.type&&t.key.content===s))}t||i.properties.unshift(e),r=i}else r=ga(s.helper(Qo),[fa([e]),i]);13===t.type?t.props=r:t.arguments[2]=r}function Ba(t,e){return`_${e}_${t.replace(/[^\w]/g,"_")}`}const Ua=/&(gt|lt|amp|apos|quot);/g,Va={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},qa={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:P,isPreTag:P,isCustomElement:P,decodeEntities:t=>t.replace(Ua,((t,e)=>Va[e])),onError:_o,comments:!1};function $a(t,e={}){const s=function(t,e){const s=S({},qa);for(const t in e)s[t]=e[t]||qa[t];return{options:s,column:1,line:1,offset:0,originalSource:t,source:t,inPre:!1,inVPre:!1}}(t,e),r=rc(s);return function(t,e=pa){return{type:0,children:t,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}(za(s,0,[]),ic(s,r))}function za(t,e,s){const r=nc(s),i=r?r.ns:0,n=[];for(;!pc(t,e,s);){const o=t.source;let a;if(0===e||1===e)if(!t.inVPre&&oc(o,t.options.delimiters[0]))a=tc(t,e);else if(0===e&&"<"===o[0])if(1===o.length)hc(t,5,1);else if("!"===o[1])oc(o,"\x3c!--")?a=Wa(t):oc(o,""===o[2]){hc(t,14,2),ac(t,3);continue}if(/[a-z]/i.test(o[2])){hc(t,23),Ya(t,1,r);continue}hc(t,12,2),a=Ja(t)}else/[a-z]/i.test(o[1])?a=Ga(t,s):"?"===o[1]?(hc(t,21,1),a=Ja(t)):hc(t,12,1);if(a||(a=ec(t,e)),I(a))for(let t=0;t/.exec(t.source);if(r){r.index<=3&&hc(t,0),r[1]&&hc(t,10),s=t.source.slice(4,r.index);const e=t.source.slice(0,r.index);let i=1,n=0;for(;-1!==(n=e.indexOf("\x3c!--",i));)ac(t,n-i+1),n+4");return-1===i?(r=t.source.slice(s),ac(t,t.source.length)):(r=t.source.slice(s,i),ac(t,i+1)),{type:3,content:r,loc:ic(t,e)}}function Ga(t,e){const s=t.inPre,r=t.inVPre,i=nc(e),n=Ya(t,0,i),o=t.inPre&&!s,a=t.inVPre&&!r;if(n.isSelfClosing||t.options.isVoidTag(n.tag))return n;e.push(n);const c=t.options.getTextMode(n,i),l=za(t,c,e);if(e.pop(),n.children=l,uc(t.source,n.tag))Ya(t,1,i);else if(hc(t,24,0,n.loc.start),0===t.source.length&&"script"===n.tag.toLowerCase()){const e=l[0];e&&oc(e.loc.source,"\x3c!--")&&hc(t,8)}return n.loc=ic(t,n.loc.start),o&&(t.inPre=!1),a&&(t.inVPre=!1),n}const Xa=e("if,else,else-if,for,slot");function Ya(t,e,s){const r=rc(t),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(t.source),n=i[1],o=t.options.getNamespace(n,s);ac(t,i[0].length),cc(t);const a=rc(t),c=t.source;let l=Qa(t,e);t.options.isPreTag(n)&&(t.inPre=!0),!t.inVPre&&l.some((t=>7===t.type&&"pre"===t.name))&&(t.inVPre=!0,S(t,a),t.source=c,l=Qa(t,e).filter((t=>"v-pre"!==t.name)));let h=!1;0===t.source.length?hc(t,9):(h=oc(t.source,"/>"),1===e&&h&&hc(t,4),ac(t,h?2:1));let p=0;const u=t.options;if(!t.inVPre&&!u.isCustomElement(n)){const t=l.some((t=>7===t.type&&"is"===t.name));u.isNativeTag&&!t?u.isNativeTag(n)||(p=1):(t||Ta(n)||u.isBuiltInComponent&&u.isBuiltInComponent(n)||/^[A-Z]/.test(n)||"component"===n)&&(p=1),"slot"===n?p=2:"template"===n&&l.some((t=>7===t.type&&Xa(t.name)))&&(p=3)}return{type:1,ns:o,tag:n,tagType:p,props:l,isSelfClosing:h,children:[],loc:ic(t,r),codegenNode:void 0}}function Qa(t,e){const s=[],r=new Set;for(;t.source.length>0&&!oc(t.source,">")&&!oc(t.source,"/>");){if(oc(t.source,"/")){hc(t,22),ac(t,1),cc(t);continue}1===e&&hc(t,3);const i=Za(t,r);0===e&&s.push(i),/^[^\t\r\n\f />]/.test(t.source)&&hc(t,15),cc(t)}return s}function Za(t,e){const s=rc(t),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(t.source)[0];e.has(r)&&hc(t,2),e.add(r),"="===r[0]&&hc(t,19);{const e=/["'<]/g;let s;for(;s=e.exec(r);)hc(t,17,s.index)}let i;ac(t,r.length),/^[\t\r\n\f ]*=/.test(t.source)&&(cc(t),ac(t,1),cc(t),i=function(t){const e=rc(t);let s;const r=t.source[0],i='"'===r||"'"===r;if(i){ac(t,1);const e=t.source.indexOf(r);-1===e?s=sc(t,t.source.length,4):(s=sc(t,e,4),ac(t,1))}else{const e=/^[^\t\r\n\f >]+/.exec(t.source);if(!e)return;const r=/["'<=`]/g;let i;for(;i=r.exec(e[0]);)hc(t,18,i.index);s=sc(t,e[0].length,4)}return{content:s,isQuoted:i,loc:ic(t,e)}}(t),i||hc(t,13));const n=ic(t,s);if(!t.inVPre&&/^(v-|:|@|#)/.test(r)){const e=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r),o=e[1]||(oc(r,":")?"bind":oc(r,"@")?"on":"slot");let a;if(e[2]){const i="slot"===o,n=r.indexOf(e[2]),c=ic(t,lc(t,s,n),lc(t,s,n+e[2].length+(i&&e[3]||"").length));let l=e[2],h=!0;l.startsWith("[")?(h=!1,l.endsWith("]")||hc(t,26),l=l.substr(1,l.length-2)):i&&(l+=e[3]||""),a={type:4,content:l,isStatic:h,constType:h?3:0,loc:c}}if(i&&i.isQuoted){const t=i.loc;t.start.offset++,t.start.column++,t.end=Na(t.start,i.content),t.source=t.source.slice(1,-1)}return{type:7,name:o,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:a,modifiers:e[3]?e[3].substr(1).split("."):[],loc:n}}return{type:6,name:r,value:i&&{type:2,content:i.content,loc:i.loc},loc:n}}function tc(t,e){const[s,r]=t.options.delimiters,i=t.source.indexOf(r,s.length);if(-1===i)return void hc(t,25);const n=rc(t);ac(t,s.length);const o=rc(t),a=rc(t),c=i-s.length,l=t.source.slice(0,c),h=sc(t,c,e),p=h.trim(),u=h.indexOf(p);u>0&&Ia(o,l,u);return Ia(a,l,c-(h.length-p.length-u)),ac(t,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:p,loc:ic(t,o,a)},loc:ic(t,n)}}function ec(t,e){const s=["<",t.options.delimiters[0]];3===e&&s.push("]]>");let r=t.source.length;for(let e=0;ei&&(r=i)}const i=rc(t);return{type:2,content:sc(t,r,e),loc:ic(t,i)}}function sc(t,e,s){const r=t.source.slice(0,e);return ac(t,e),2===s||3===s||-1===r.indexOf("&")?r:t.options.decodeEntities(r,4===s)}function rc(t){const{column:e,line:s,offset:r}=t;return{column:e,line:s,offset:r}}function ic(t,e,s){return{start:e,end:s=s||rc(t),source:t.originalSource.slice(e.offset,s.offset)}}function nc(t){return t[t.length-1]}function oc(t,e){return t.startsWith(e)}function ac(t,e){const{source:s}=t;Ia(t,s,e),t.source=s.slice(e)}function cc(t){const e=/^[\t\r\n\f ]+/.exec(t.source);e&&ac(t,e[0].length)}function lc(t,e,s){return Na(e,t.originalSource.slice(e.offset,s),s)}function hc(t,e,s,r=rc(t)){s&&(r.offset+=s,r.column+=s),t.options.onError(Lo(e,{start:r,end:r,source:""}))}function pc(t,e,s){const r=t.source;switch(e){case 0:if(oc(r,"=0;--t)if(uc(r,s[t].tag))return!0;break;case 1:case 2:{const t=nc(s);if(t&&uc(r,t.tag))return!0;break}case 3:if(oc(r,"]]>"))return!0}return!r}function uc(t,e){return oc(t,"]/.test(t[2+e.length]||">")}function dc(t,e){mc(t,e,new Map,fc(t,t.children[0]))}function fc(t,e){const{children:s}=t;return 1===s.length&&1===e.type&&!Fa(e)}function mc(t,e,s,r=!1){let i=!1,n=!0;const{children:o}=t;for(let t=0;t0){if(t<3&&(n=!1),t>=2){a.codegenNode.patchFlag="-1",a.codegenNode=e.hoist(a.codegenNode),i=!0;continue}}else{const t=a.codegenNode;if(13===t.type){const r=bc(t);if((!r||512===r||1===r)&&xc(a,s)>=2){const s=gc(a);s&&(t.props=e.hoist(s))}}}}else if(12===a.type){const t=yc(a.content,s);t>0&&(t<3&&(n=!1),t>=2&&(a.codegenNode=e.hoist(a.codegenNode),i=!0))}if(1===a.type)mc(a,e,s);else if(11===a.type)mc(a,e,s,1===a.children.length);else if(9===a.type)for(let t=0;t1)for(let r=0;r(x.helpers.add(t),t),helperString:t=>`_${ha[x.helper(t)]}`,replaceNode(t){x.parent.children[x.childIndex]=x.currentNode=t},removeNode(t){const e=x.parent.children,s=t?e.indexOf(t):x.currentNode?x.childIndex:-1;t&&t!==x.currentNode?x.childIndex>s&&(x.childIndex--,x.onNodeRemoved()):(x.currentNode=null,x.onNodeRemoved()),x.parent.children.splice(s,1)},onNodeRemoved:()=>{},addIdentifiers(t){},removeIdentifiers(t){},hoist(t){x.hoists.push(t);const e=ya(`_hoisted_${x.hoists.length}`,!1,t.loc,2);return e.hoisted=t,e},cache:(t,e=!1)=>function(t,e,s=!1){return{type:20,index:t,value:e,isVNode:s,loc:pa}}(++x.cached,t,e)};return x}function wc(t,e){const s=vc(t,e);Pc(t,s),e.hoistStatic&&dc(t,s),e.ssr||function(t,e){const{helper:s}=e,{children:i}=t;if(1===i.length){const e=i[0];if(fc(t,e)&&e.codegenNode){const r=e.codegenNode;13===r.type&&(r.isBlock=!0,s(jo),s(Bo)),t.codegenNode=r}else t.codegenNode=e}else i.length>1&&(t.codegenNode=ua(e,s(Oo),void 0,t.children,`64 /* ${r[64]} */`,void 0,void 0,!0))}(t,s),t.helpers=[...s.helpers],t.components=[...s.components],t.directives=[...s.directives],t.imports=[...s.imports],t.hoists=s.hoists,t.temps=s.temps,t.cached=s.cached}function Pc(t,e){e.currentNode=t;const{nodeTransforms:s}=e,r=[];for(let i=0;i{s--};for(;se===t:e=>t.test(e);return(t,r)=>{if(1===t.type){const{props:i}=t;if(3===t.tagType&&i.some(Da))return;const n=[];for(let o=0;o`_${ha[t]}`,push(t,e){h.code+=t},indent(){p(++h.indentLevel)},deindent(t=!1){t?--h.indentLevel:p(--h.indentLevel)},newline(){p(h.indentLevel)}};function p(t){h.push("\n"+" ".repeat(t))}return h}(t,e);e.onContextCreated&&e.onContextCreated(s);const{mode:r,push:i,prefixIdentifiers:n,indent:o,deindent:a,newline:c,scopeId:l,ssr:h}=s,p=t.helpers.length>0,u=!n&&"module"!==r;!function(t,e){const{ssr:s,prefixIdentifiers:r,push:i,newline:n,runtimeModuleName:o,runtimeGlobalName:a}=e,c=a,l=t=>`${ha[t]}: _${ha[t]}`;if(t.helpers.length>0&&(i(`const _Vue = ${c}\n`),t.hoists.length)){i(`const { ${[Uo,Vo,qo,$o].filter((e=>t.helpers.includes(e))).map(l).join(", ")} } = _Vue\n`)}(function(t,e){if(!t.length)return;e.pure=!0;const{push:s,newline:r,helper:i,scopeId:n,mode:o}=e;r(),t.forEach(((t,i)=>{t&&(s(`const _hoisted_${i+1} = `),Nc(t,e),r())})),e.pure=!1})(t.hoists,e),n(),i("return ")}(t,s);if(i(`function ${h?"ssrRender":"render"}(${(h?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),o(),u&&(i("with (_ctx) {"),o(),p&&(i(`const { ${t.helpers.map((t=>`${ha[t]}: _${ha[t]}`)).join(", ")} } = _Vue`),i("\n"),c())),t.components.length&&(Sc(t.components,"component",s),(t.directives.length||t.temps>0)&&c()),t.directives.length&&(Sc(t.directives,"directive",s),t.temps>0&&c()),t.temps>0){i("let ");for(let e=0;e0?", ":""}_temp${e}`)}return(t.components.length||t.directives.length||t.temps)&&(i("\n"),c()),h||i("return "),t.codegenNode?Nc(t.codegenNode,s):i("null"),u&&(a(),i("}")),a(),i("}"),{ast:t,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function Sc(t,e,{helper:s,push:r,newline:i}){const n=s("component"===e?zo:Ko);for(let s=0;s3||!1;e.push("["),s&&e.indent(),kc(t,e,s),s&&e.deindent(),e.push("]")}function kc(t,e,s=!1,r=!0){const{push:i,newline:n}=e;for(let o=0;ot||"null"))}([n,o,a,c,l]),e),s(")"),p&&s(")");h&&(s(", "),Nc(h,e),s(")"))}(t,e);break;case 14:!function(t,e){const{push:s,helper:r,pure:i}=e,n=D(t.callee)?t.callee:r(t.callee);i&&s(Ac);s(n+"(",t),kc(t.arguments,e),s(")")}(t,e);break;case 15:!function(t,e){const{push:s,indent:r,deindent:i,newline:n}=e,{properties:o}=t;if(!o.length)return void s("{}",t);const a=o.length>1||!1;s(a?"{":"{ "),a&&r();for(let t=0;t "),(h||l)&&(s("{"),r());c?(h&&s("return "),I(c)?Cc(c,e):Nc(c,e)):l&&Nc(l,e);(h||l)&&(i(),s("}"));p&&s(")")}(t,e);break;case 19:!function(t,e){const{test:s,consequent:r,alternate:i,newline:n}=t,{push:o,indent:a,deindent:c,newline:l}=e;if(4===s.type){const t=!Ea(s.content);t&&o("("),Ic(s,e),t&&o(")")}else o("("),Nc(s,e),o(")");n&&a(),e.indentLevel++,n||o(" "),o("? "),Nc(r,e),e.indentLevel--,n&&l(),n||o(" "),o(": ");const h=19===i.type;h||e.indentLevel++;Nc(i,e),h||e.indentLevel--;n&&c(!0)}(t,e);break;case 20:!function(t,e){const{push:s,helper:r,indent:i,deindent:n,newline:o}=e;s(`_cache[${t.index}] || (`),t.isVNode&&(i(),s(`${r(ra)}(-1),`),o());s(`_cache[${t.index}] = `),Nc(t.value,e),t.isVNode&&(s(","),o(),s(`${r(ra)}(1),`),o(),s(`_cache[${t.index}]`),n());s(")")}(t,e);break;case 21:case 22:case 23:case 24:case 25:case 26:case 10:break;default:0}}function Ic(t,e){const{content:s,isStatic:r}=t;e.push(r?JSON.stringify(s):s,t)}function _c(t,e){for(let s=0;sfunction(t,e,s,r){if(!("else"===e.name||e.exp&&e.exp.content.trim())){const r=e.exp?e.exp.loc:t.loc;s.onError(Lo(27,e.loc)),e.exp=ya("true",!1,r)}0;if("if"===e.name){const i=Mc(t,e),n={type:9,loc:t.loc,branches:[i]};if(s.replaceNode(n),r)return r(n,i,!0)}else{const i=s.parent.children;let n=i.indexOf(t);for(;n-- >=-1;){const o=i[n];if(!o||2!==o.type||o.content.trim().length){if(o&&9===o.type){s.removeNode();const i=Mc(t,e);0,o.branches.push(i);const n=r&&r(o,i,!1);Pc(i,s),n&&n(),s.currentNode=null}else s.onError(Lo(29,t.loc));break}s.removeNode(o)}}}(t,e,s,((t,e,r)=>{const i=s.parent.children;let n=i.indexOf(t),o=0;for(;n-- >=0;){const t=i[n];t&&9===t.type&&(o+=t.branches.length)}return()=>{if(r)t.codegenNode=Dc(e,o,s);else{(function(t){for(;;)if(19===t.type){if(19!==t.alternate.type)return t;t=t.alternate}else 20===t.type&&(t=t.value)}(t.codegenNode)).alternate=Dc(e,o+t.branches.length-1,s)}}}))));function Mc(t,e){return{type:10,loc:t.loc,condition:"else"===e.name?void 0:e.exp,children:3!==t.tagType||_a(t,"for")?[t]:t.children,userKey:La(t,"key")}}function Dc(t,e,s){return t.condition?va(t.condition,Rc(t,e,s),ga(s.helper(Vo),['""',"true"])):Rc(t,e,s)}function Rc(t,e,s){const{helper:i}=s,n=ma("key",ya(`${e}`,!1,pa,2)),{children:o}=t,a=o[0];if(1!==o.length||1!==a.type){if(1===o.length&&11===a.type){const t=a.codegenNode;return ja(t,n,s),t}return ua(s,i(Oo),fa([n]),o,`64 /* ${r[64]} */`,void 0,void 0,!0,!1,t.loc)}{const t=a.codegenNode;return 13===t.type&&(t.isBlock=!0,i(jo),i(Bo)),ja(t,n,s),t}}const Fc=Tc("for",((t,e,s)=>{const{helper:i}=s;return function(t,e,s,r){if(!e.exp)return void s.onError(Lo(30,e.loc));const i=Vc(e.exp,s);if(!i)return void s.onError(Lo(31,e.loc));const{addIdentifiers:n,removeIdentifiers:o,scopes:a}=s,{source:c,value:l,key:h,index:p}=i,u={type:11,loc:e.loc,source:c,valueAlias:l,keyAlias:h,objectIndexAlias:p,parseResult:i,children:Ra(t)?t.children:[t]};s.replaceNode(u),a.vFor++;const d=r&&r(u);return()=>{a.vFor--,d&&d()}}(t,e,s,(e=>{const n=ga(i(Jo),[e.source]),o=La(t,"key"),a=o?ma("key",6===o.type?ya(o.value.content,!0):o.exp):null,c=4===e.source.type&&e.source.constType>0,l=c?64:o?128:256;return e.codegenNode=ua(s,i(Oo),void 0,n,`${l} /* ${r[l]} */`,void 0,void 0,!0,!c,t.loc),()=>{let o;const l=Ra(t),{children:h}=e;const p=1!==h.length||1!==h[0].type,u=Fa(t)?t:l&&1===t.children.length&&Fa(t.children[0])?t.children[0]:null;u?(o=u.codegenNode,l&&a&&ja(o,a,s)):p?o=ua(s,i(Oo),a?fa([a]):void 0,t.children,`64 /* ${r[64]} */`,void 0,void 0,!0):(o=h[0].codegenNode,l&&a&&ja(o,a,s),o.isBlock=!c,o.isBlock&&(i(jo),i(Bo))),n.arguments.push(ba($c(e.parseResult),o,!0))}}))}));const jc=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Bc=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Uc=/^\(|\)$/g;function Vc(t,e){const s=t.loc,r=t.content,i=r.match(jc);if(!i)return;const[,n,o]=i,a={source:qc(s,o.trim(),r.indexOf(o,n.length)),value:void 0,key:void 0,index:void 0};let c=n.trim().replace(Uc,"").trim();const l=n.indexOf(c),h=c.match(Bc);if(h){c=c.replace(Bc,"").trim();const t=h[1].trim();let e;if(t&&(e=r.indexOf(t,l+c.length),a.key=qc(s,t,e)),h[2]){const i=h[2].trim();i&&(a.index=qc(s,i,r.indexOf(i,a.key?e+t.length:l+c.length)))}}return c&&(a.value=qc(s,c,l)),a}function qc(t,e,s){return ya(e,!1,ka(t,s,e.length))}function $c({value:t,key:e,index:s}){const r=[];return t&&r.push(t),e&&(t||r.push(ya("_",!1)),r.push(e)),s&&(e||(t||r.push(ya("_",!1)),r.push(ya("__",!1))),r.push(s)),r}const zc=ya("undefined",!1),Hc=(t,e)=>{if(1===t.type&&(1===t.tagType||3===t.tagType)){const s=_a(t,"slot");if(s){s.exp;return e.scopes.vSlot++,()=>{e.scopes.vSlot--}}}},Kc=(t,e,s)=>ba(t,e,!1,!0,e.length?e[0].loc:s);function Wc(t,e,s=Kc){e.helper(aa);const{children:r,loc:i}=t,n=[],o=[],a=(t,e)=>ma("default",s(t,e,i));let c=e.scopes.vSlot>0||e.scopes.vFor>0;const l=_a(t,"slot",!0);if(l){const{arg:t,exp:e}=l;t&&!wa(t)&&(c=!0),n.push(ma(t||ya("default",!0),s(e,r,i)))}let h=!1,p=!1;const u=[],d=new Set;for(let t=0;t{if(1===t.type&&(0===t.tagType||1===t.tagType))return function(){const{tag:s,props:r}=t,i=1===t.tagType,n=i?function(t,e,s=!1){const{tag:r}=t,i="component"===t.tag?La(t,"is"):_a(t,"is");if(i){const t=6===i.type?i.value&&ya(i.value.content,!0):i.exp;if(t)return ga(e.helper(Ho),[t])}const n=Ta(r)||e.isBuiltInComponent(r);if(n)return s||e.helper(n),n;return e.helper(zo),e.components.add(r),Ba(r,"component")}(t,e):`"${s}"`;let o,a,c,l,h,p,u=0,d=F(n)&&n.callee===Ho||n===Mo||n===Do||!i&&("svg"===s||"foreignObject"===s||La(t,"key",!0));if(r.length>0){const s=Qc(t,e);o=s.props,u=s.patchFlag,h=s.dynamicPropNames;const r=s.directives;p=r&&r.length?da(r.map((t=>function(t,e){const s=[],r=Xc.get(t);r?s.push(e.helperString(r)):(e.helper(Ko),e.directives.add(t.name),s.push(Ba(t.name,"directive")));const{loc:i}=t;t.exp&&s.push(t.exp);t.arg&&(t.exp||s.push("void 0"),s.push(t.arg));if(Object.keys(t.modifiers).length){t.arg||(t.exp||s.push("void 0"),s.push("void 0"));const e=ya("true",!1,i);s.push(fa(t.modifiers.map((t=>ma(t,e))),i))}return da(s,t.loc)}(t,e)))):void 0}if(t.children.length>0){n===Ro&&(d=!0,u|=1024);if(i&&n!==Mo&&n!==Ro){const{slots:s,hasDynamicSlots:r}=Wc(t,e);a=s,r&&(u|=1024)}else if(1===t.children.length&&n!==Mo){const e=t.children[0],s=e.type,r=5===s||8===s;r&&0===yc(e)&&(u|=1),a=r||2===s?e:t.children}else a=t.children}0!==u&&(c=String(u),h&&h.length&&(l=function(t){let e="[";for(let s=0,r=t.length;s{if(wa(t)){const s=t.content,r=A(s);if(o||!r||"onclick"===s.toLowerCase()||"onUpdate:modelValue"===s||$(s)||(f=!0),r&&$(s)&&(y=!0),20===e.type||(4===e.type||8===e.type)&&yc(e)>0)return;"ref"===s?p=!0:"class"!==s||o?"style"!==s||o?"key"===s||x.includes(s)||x.push(s):d=!0:u=!0}else m=!0};for(let h=0;h1?ga(e.helper(Qo),c,n):c[0]):a.length&&(b=fa(Zc(a),n)),m?h|=16:(u&&(h|=2),d&&(h|=4),x.length&&(h|=8),f&&(h|=32)),0!==h&&32!==h||!(p||y||l.length>0)||(h|=512),{props:b,directives:l,patchFlag:h,dynamicPropNames:x}}function Zc(t){const e=new Map,s=[];for(let r=0;r{if(Fa(t)){const{children:s,loc:r}=t,{slotName:i,slotProps:n}=function(t,e){let s,r='"default"';const i=La(t,"name");i&&(6===i.type&&i.value?r=JSON.stringify(i.value.content):7===i.type&&i.exp&&(r=i.exp));const n=i?t.props.filter((t=>t!==i)):t.props;if(n.length>0){const{props:r,directives:i}=Qc(t,e,n);s=r,i.length&&e.onError(Lo(35,i[0].loc))}return{slotName:r,slotProps:s}}(t,e),o=[e.prefixIdentifiers?"_ctx.$slots":"$slots",i];n&&o.push(n),s.length&&(n||o.push("{}"),o.push(ba([],s,!1,!1,r))),t.codegenNode=ga(e.helper(Go),o,r)}};const sl=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,rl=(t,e,s,r)=>{const{loc:i,modifiers:n,arg:o}=t;let a;if(t.exp||n.length||s.onError(Lo(34,i)),4===o.type)if(o.isStatic){const t=o.content;a=ya(X(K(t)),!0,o.loc)}else a=xa([`${s.helperString(sa)}(`,o,")"]);else a=o,a.children.unshift(`${s.helperString(sa)}(`),a.children.push(")");let c=t.exp;c&&!c.content.trim()&&(c=void 0);let l=s.cacheHandlers&&!c;if(c){const t=Ca(c.content),e=!(t||sl.test(c.content)),s=c.content.includes(";");0,(e||l&&t)&&(c=xa([`${e?"$event":"(...args)"} => ${s?"{":"("}`,c,s?"}":")"]))}let h={props:[ma(a,c||ya("() => {}",!1,i))]};return r&&(h=r(h)),l&&(h.props[0].value=s.cache(h.props[0].value)),h},il=(t,e,s)=>{const{exp:r,modifiers:i,loc:n}=t,o=t.arg;return 4!==o.type?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),i.includes("camel")&&(4===o.type?o.isStatic?o.content=K(o.content):o.content=`${s.helperString(ta)}(${o.content})`:(o.children.unshift(`${s.helperString(ta)}(`),o.children.push(")"))),!r||4===r.type&&!r.content.trim()?(s.onError(Lo(33,n)),{props:[ma(o,ya("",!0,n))]}):{props:[ma(o,r)]}},nl=(t,e)=>{if(0===t.type||1===t.type||11===t.type||10===t.type)return()=>{const s=t.children;let i,n=!1;for(let t=0;t{if(1===t.type&&_a(t,"once",!0)){if(ol.has(t))return;return ol.add(t),e.helper(ra),()=>{const t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0))}}},cl=(t,e,s)=>{const{exp:r,arg:i}=t;if(!r)return s.onError(Lo(40,t.loc)),ll();const n=r.loc.source,o=4===r.type?r.content:n;s.bindingMetadata[n];if(!Ca(o))return s.onError(Lo(41,r.loc)),ll();const a=i||ya("modelValue",!0),c=i?wa(i)?`onUpdate:${i.content}`:xa(['"onUpdate:" + ',i]):"onUpdate:modelValue";let l;l=xa([`${s.isTS?"($event: any)":"$event"} => (`,r," = $event)"]);const h=[ma(a,t.exp),ma(c,l)];if(t.modifiers.length&&1===e.tagType){const e=t.modifiers.map((t=>(Ea(t)?t:JSON.stringify(t))+": true")).join(", "),s=i?wa(i)?`${i.content}Modifiers`:xa([i,' + "Modifiers"']):"modelModifiers";h.push(ma(s,ya(`{ ${e} }`,!1,t.loc,2)))}return ll(h)};function ll(t=[]){return{props:t}}function hl(t,e={}){const s=e.onError||_o,r="module"===e.mode;!0===e.prefixIdentifiers?s(Lo(45)):r&&s(Lo(46));e.cacheHandlers&&s(Lo(47)),e.scopeId&&!r&&s(Lo(48));const i=D(t)?$a(t,e):t,[n,o]=[[al,Oc,Fc,el,Yc,Hc,nl],{on:rl,bind:il,model:cl}];return wc(i,S({},e,{prefixIdentifiers:false,nodeTransforms:[...n,...e.nodeTransforms||[]],directiveTransforms:S({},o,e.directiveTransforms||{})})),Ec(i,S({},e,{prefixIdentifiers:false}))}const pl=Symbol(""),ul=Symbol(""),dl=Symbol(""),fl=Symbol(""),ml=Symbol(""),yl=Symbol(""),xl=Symbol(""),gl=Symbol(""),bl=Symbol(""),vl=Symbol("");var wl;let Pl;wl={[pl]:"vModelRadio",[ul]:"vModelCheckbox",[dl]:"vModelText",[fl]:"vModelSelect",[ml]:"vModelDynamic",[yl]:"withModifiers",[xl]:"withKeys",[gl]:"vShow",[bl]:"Transition",[vl]:"TransitionGroup"},Object.getOwnPropertySymbols(wl).forEach((t=>{ha[t]=wl[t]}));const Tl=e("style,iframe,script,noscript",!0),Al={isVoidTag:f,isNativeTag:t=>u(t)||d(t),isPreTag:t=>"pre"===t,decodeEntities:function(t){return(Pl||(Pl=document.createElement("div"))).innerHTML=t,Pl.textContent},isBuiltInComponent:t=>Pa(t,"Transition")?bl:Pa(t,"TransitionGroup")?vl:void 0,getNamespace(t,e){let s=e?e.ns:0;if(e&&2===s)if("annotation-xml"===e.tag){if("svg"===t)return 1;e.props.some((t=>6===t.type&&"encoding"===t.name&&null!=t.value&&("text/html"===t.value.content||"application/xhtml+xml"===t.value.content)))&&(s=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&"mglyph"!==t&&"malignmark"!==t&&(s=0);else e&&1===s&&("foreignObject"!==e.tag&&"desc"!==e.tag&&"title"!==e.tag||(s=0));if(0===s){if("svg"===t)return 1;if("math"===t)return 2}return s},getTextMode({tag:t,ns:e}){if(0===e){if("textarea"===t||"title"===t)return 1;if(Tl(t))return 2}return 0}},El=(t,e)=>{const s=h(t);return ya(JSON.stringify(s),!1,e,3)};function Sl(t,e){return Lo(t,e)}const Cl=e("passive,once,capture"),kl=e("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Nl=e("left,right"),Il=e("onkeyup,onkeydown,onkeypress",!0),_l=(t,e)=>wa(t)&&"onclick"===t.content.toLowerCase()?ya(e,!0):4!==t.type?xa(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t;const Ll=(t,e)=>{1!==t.type||0!==t.tagType||"script"!==t.tag&&"style"!==t.tag||(e.onError(Sl(59,t.loc)),e.removeNode())},Ol=[t=>{1===t.type&&t.props.forEach(((e,s)=>{6===e.type&&"style"===e.name&&e.value&&(t.props[s]={type:7,name:"bind",arg:ya("style",!0,e.loc),exp:El(e.value.content,e.loc),modifiers:[],loc:e.loc})}))}],Ml={cloak:()=>({props:[]}),html:(t,e,s)=>{const{exp:r,loc:i}=t;return r||s.onError(Sl(49,i)),e.children.length&&(s.onError(Sl(50,i)),e.children.length=0),{props:[ma(ya("innerHTML",!0,i),r||ya("",!0))]}},text:(t,e,s)=>{const{exp:r,loc:i}=t;return r||s.onError(Sl(51,i)),e.children.length&&(s.onError(Sl(52,i)),e.children.length=0),{props:[ma(ya("textContent",!0),r?ga(s.helperString(Yo),[r],i):ya("",!0))]}},model:(t,e,s)=>{const r=cl(t,e,s);if(!r.props.length||1===e.tagType)return r;t.arg&&s.onError(Sl(54,t.arg.loc));const{tag:i}=e,n=s.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||n){let o=dl,a=!1;if("input"===i||n){const r=La(e,"type");if(r){if(7===r.type)o=ml;else if(r.value)switch(r.value.content){case"radio":o=pl;break;case"checkbox":o=ul;break;case"file":a=!0,s.onError(Sl(55,t.loc))}}else(function(t){return t.props.some((t=>!(7!==t.type||"bind"!==t.name||t.arg&&4===t.arg.type&&t.arg.isStatic)))})(e)&&(o=ml)}else"select"===i&&(o=fl);a||(r.needRuntime=s.helper(o))}else s.onError(Sl(53,t.loc));return r.props=r.props.filter((t=>!(4===t.key.type&&"modelValue"===t.key.content))),r},on:(t,e,s)=>rl(t,0,s,(e=>{const{modifiers:r}=t;if(!r.length)return e;let{key:i,value:n}=e.props[0];const{keyModifiers:o,nonKeyModifiers:a,eventOptionModifiers:c}=((t,e)=>{const s=[],r=[],i=[];for(let n=0;n{const{exp:r,loc:i}=t;return r||s.onError(Sl(57,i)),{props:[],needRuntime:s.helper(gl)}}};const Dl=Object.create(null);zi((function(e,s){if(!D(e)){if(!e.nodeType)return w;e=e.innerHTML}const r=e,i=Dl[r];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);0,e=t?t.innerHTML:""}const{code:n}=function(t,e={}){return hl(t,S({},Al,e,{nodeTransforms:[Ll,...Ol,...e.nodeTransforms||[]],directiveTransforms:S({},Ml,e.directiveTransforms||{}),transformHoist:null}))}(e,S({hoistStatic:!0,onError(t){throw t}},s)),o=new Function("Vue",n)(t);return o._rc=!0,Dl[r]=o}));var Rl=s(2606),Fl=s.n(Rl);window.route=Fl();const jl={methods:{route:function(t){function e(e,s){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return route(t,e)})),icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}};var Bl={class:"form-group"},Ul={for:"importer"},Vl={key:0,class:"mt-2"},ql={key:1,class:"alert success"},$l={key:2,class:"alert error"};var zl={class:"form-group"},Hl={for:"file"},Kl=ui("input",{type:"file",id:"file"},null,-1),Wl={class:"form-group"};const Jl={methods:{onImport:function(){var t=document.getElementById("file"),e=new FormData;e.append("file",t.files[0]),this.$emit("import",e)}},render:function(t,e,s,r,i,n){return ti(),ni("div",null,[ui("div",zl,[ui("label",Hl,x(t.__("File to import")),1),Kl]),ui("div",Wl,[ui("button",{type:"submit",onClick:e[1]||(e[1]=function(){return n.onImport&&n.onImport.apply(n,arguments)})}," → "+x(t.__("Import")),1)])])}},Gl={components:{ImportFromCyca:Jl},props:["availableImporters"],data:function(){return{importer:"cyca",uploading:!1,uploaded:!1,error:!1}},methods:{onImport:function(t){var e=this;e.uploading||(e.uploaded=!1,e.uploading=!0,e.error=!1,t.append("importer",e.importer),fetch(route("account.import"),{body:t,method:"POST",headers:{"X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")}}).then((function(t){t.ok?(e.uploaded=!0,e.error=!1):(e.uploaded=!1,e.error=!0)})).catch((function(t){e.uploaded=!1,e.error=!0})).finally((function(){e.uploading=!1})))}},render:function(t,e,s,r,i,n){return ti(),ni("div",null,[ui("div",Bl,[ui("label",Ul,x(t.__("Import from"))+":",1),vr(ui("select",{"onUpdate:modelValue":e[1]||(e[1]=function(e){return t.importer=e}),id:"importer"},[(ti(!0),ni(Jr,null,cn(s.availableImporters,(function(t,e){return ti(),ni("option",{key:e,value:e},x(t.name),9,["value"])})),128))],512),[[ao,t.importer]])]),(ti(),ni(zr(s.availableImporters[t.importer].view),{onImport:n.onImport},null,8,["onImport"])),t.uploading?(ti(),ni("div",Vl,x(t.__("Importing, please wait...")),1)):xi("",!0),t.uploaded?(ti(),ni("div",ql,x(t.__("Data imported")),1)):xi("",!0),t.error?(ti(),ni("div",$l,x(t.__("A problem occurred, interrupting importation")),1)):xi("",!0)])}},Xl=Gl;s(4511),ko({components:{Importer:Xl},el:"#app"}).mixin(jl).mount("#app")})()})();