Archived
1
0
This repository has been archived on 2024-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
cyca/public/js/groups.js
2022-01-12 00:35:37 +01:00

2 lines
526 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see groups.js.LICENSE.txt */
(()=>{var t={3834:(t,e)=>{"use strict";const r=!0,s=!0,n=!0,i=!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 r=new o(t,e);return a.set(t,r),r}function l(t,e){return new o(t,{beforeExpr:r,binop:e})}const u={num:new o("num",{startsExpr:s}),bigint:new o("bigint",{startsExpr:s}),decimal:new o("decimal",{startsExpr:s}),regexp:new o("regexp",{startsExpr:s}),string:new o("string",{startsExpr:s}),name:new o("name",{startsExpr:s}),eof:new o("eof"),bracketL:new o("[",{beforeExpr:r,startsExpr:s}),bracketHashL:new o("#[",{beforeExpr:r,startsExpr:s}),bracketBarL:new o("[|",{beforeExpr:r,startsExpr:s}),bracketR:new o("]"),bracketBarR:new o("|]"),braceL:new o("{",{beforeExpr:r,startsExpr:s}),braceBarL:new o("{|",{beforeExpr:r,startsExpr:s}),braceHashL:new o("#{",{beforeExpr:r,startsExpr:s}),braceR:new o("}"),braceBarR:new o("|}"),parenL:new o("(",{beforeExpr:r,startsExpr:s}),parenR:new o(")"),comma:new o(",",{beforeExpr:r}),semi:new o(";",{beforeExpr:r}),colon:new o(":",{beforeExpr:r}),doubleColon:new o("::",{beforeExpr:r}),dot:new o("."),question:new o("?",{beforeExpr:r}),questionDot:new o("?."),arrow:new o("=>",{beforeExpr:r}),template:new o("template"),ellipsis:new o("...",{beforeExpr:r}),backQuote:new o("`",{startsExpr:s}),dollarBraceL:new o("${",{beforeExpr:r,startsExpr:s}),at:new o("@"),hash:new o("#",{startsExpr:s}),interpreterDirective:new o("#!..."),eq:new o("=",{beforeExpr:r,isAssign:true}),assign:new o("_=",{beforeExpr:r,isAssign:true}),incDec:new o("++/--",{prefix:i,postfix:!0,startsExpr:s}),bang:new o("!",{beforeExpr:r,prefix:i,startsExpr:s}),tilde:new o("~",{beforeExpr:r,prefix:i,startsExpr:s}),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:r,binop:9,prefix:i,startsExpr:s}),modulo:new o("%",{beforeExpr:r,binop:10,startsExpr:s}),star:new o("*",{binop:10}),slash:l("/",10),exponent:new o("**",{beforeExpr:r,binop:11,rightAssociative:!0}),_break:c("break"),_case:c("case",{beforeExpr:r}),_catch:c("catch"),_continue:c("continue"),_debugger:c("debugger"),_default:c("default",{beforeExpr:r}),_do:c("do",{isLoop:n,beforeExpr:r}),_else:c("else",{beforeExpr:r}),_finally:c("finally"),_for:c("for",{isLoop:n}),_function:c("function",{startsExpr:s}),_if:c("if"),_return:c("return",{beforeExpr:r}),_switch:c("switch"),_throw:c("throw",{beforeExpr:r,prefix:i,startsExpr:s}),_try:c("try"),_var:c("var"),_const:c("const"),_while:c("while",{isLoop:n}),_with:c("with"),_new:c("new",{beforeExpr:r,startsExpr:s}),_this:c("this",{startsExpr:s}),_super:c("super",{startsExpr:s}),_class:c("class",{startsExpr:s}),_extends:c("extends",{beforeExpr:r}),_export:c("export"),_import:c("import",{startsExpr:s}),_null:c("null",{startsExpr:s}),_true:c("true",{startsExpr:s}),_false:c("false",{startsExpr:s}),_in:c("in",{beforeExpr:r,binop:7}),_instanceof:c("instanceof",{beforeExpr:r,binop:7}),_typeof:c("typeof",{beforeExpr:r,prefix:i,startsExpr:s}),_void:c("void",{beforeExpr:r,prefix:i,startsExpr:s}),_delete:c("delete",{beforeExpr:r,prefix:i,startsExpr:s})},h=/\r\n?|[\n\u2028\u2029]/,p=new RegExp(h.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 g{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 v(t){return t[t.length-1]}const x=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 b(t){return null!=t&&"Property"===t.type&&"init"===t.kind&&!1===t.method}class w{constructor(t,e,r,s){this.token=void 0,this.isExpr=void 0,this.preserveSpace=void 0,this.override=void 0,this.token=t,this.isExpr=!!e,this.preserveSpace=!!r,this.override=s}}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)};u.parenR.updateContext=u.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},u.name.updateContext=function(t){let e=!1;t!==u.dot&&("of"!==this.state.value||this.state.exprAllowed||t===u._function||t===u._class||(e=!0)),this.state.exprAllowed=e,this.state.isIterator&&(this.state.isIterator=!1)},u.braceL.updateContext=function(t){this.state.context.push(this.braceIsBlock(t)?P.braceStatement:P.braceExpression),this.state.exprAllowed=!0},u.dollarBraceL.updateContext=function(){this.state.context.push(P.templateQuasi),this.state.exprAllowed=!0},u.parenL.updateContext=function(t){const e=t===u._if||t===u._for||t===u._with||t===u._while;this.state.context.push(e?P.parenStatement:P.parenExpression),this.state.exprAllowed=!0},u.incDec.updateContext=function(){},u._function.updateContext=u._class.updateContext=function(t){!t.beforeExpr||t===u.semi||t===u._else||t===u._return&&this.hasPrecedingLineBreak()||(t===u.colon||t===u.braceL)&&this.curContext()===P.b_stat?this.state.context.push(P.functionStatement):this.state.context.push(P.functionExpression),this.state.exprAllowed=!1},u.backQuote.updateContext=function(){this.curContext()===P.template?this.state.context.pop():this.state.context.push(P.template),this.state.exprAllowed=!1},u.braceHashL.updateContext=function(){this.state.context.push(P.recordExpression),this.state.exprAllowed=!0};let T="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA--zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",S="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍--_";const A=new RegExp("["+T+"]"),E=new RegExp("["+T+S+"]");T=S=null;const k=[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],C=[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 r=65536;for(let s=0,n=e.length;s<n;s+=2){if(r+=e[s],r>t)return!1;if(r+=e[s+1],r>=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&&A.test(String.fromCharCode(t)):N(t,k)))}function _(t){return t<48?36===t:t<58||!(t<65)&&(t<=90||(t<97?95===t:t<=122||(t<=65535?t>=170&&E.test(String.fromCharCode(t)):N(t,k)||N(t,C))))}const O=["implements","interface","let","package","private","protected","public","static","yield"],D=["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"]),L=new Set(O),R=new Set(D);function j(t,e){return e&&"await"===t||"enum"===t}function F(t,e){return j(t,e)||L.has(t)}function B(t){return R.has(t)}function U(t,e){return F(t,e)||B(t)}function V(t){return M.has(t)}const q=/^in(stanceof)?$/;const H=128,$=128,G=1024,K=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),z=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 `<T> async () => {}`, use `async <T>() => {}`",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 W(t){return"type"===t.importKind||"typeof"===t.importKind}function J(t){return(t.type===u.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 rt(t){return!!t&&("JSXOpeningFragment"===t.type||"JSXClosingFragment"===t.type)}function st(t){if("JSXIdentifier"===t.type)return t.name;if("JSXNamespacedName"===t.type)return t.namespace.name+":"+t.name.name;if("JSXMemberExpression"===t.type)return st(t.object)+"."+st(t.property);throw new Error("Node had unexpected type: "+t.type)}P.j_oTag=new w("<tag",!1),P.j_cTag=new w("</tag",!1),P.j_expr=new w("<tag>...</tag>",!0,!0),u.jsxName=new o("jsxName"),u.jsxText=new o("jsxText",{beforeExpr:!0}),u.jsxTagStart=new o("jsxTagStart",{startsExpr:!0}),u.jsxTagEnd=new o("jsxTagEnd"),u.jsxTagStart.updateContext=function(){this.state.context.push(P.j_expr),this.state.context.push(P.j_oTag),this.state.exprAllowed=!1},u.jsxTagEnd.updateContext=function(t){const e=this.state.context.pop();e===P.j_oTag&&t===u.slash||e===P.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===P.j_expr):this.state.exprAllowed=!0};class nt{constructor(t){this.flags=void 0,this.var=[],this.lexical=[],this.functions=[],this.flags=t}}class it{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 nt(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,r){let s=this.currentScope();if(8&e||16&e)this.checkRedeclarationInScope(s,t,e,r),16&e?s.functions.push(t):s.lexical.push(t),8&e&&this.maybeExportDefined(s,t);else if(4&e)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,e,r),s.var.push(t),this.maybeExportDefined(s,t),!(131&s.flags));--n);this.inModule&&1&s.flags&&this.undefinedExports.delete(t)}maybeExportDefined(t,e){this.inModule&&1&t.flags&&this.undefinedExports.delete(e)}checkRedeclarationInScope(t,e,r,s){this.isRedeclaredInScope(t,e,r)&&this.raise(s,x.VarRedeclaration,e)}isRedeclaredInScope(t,e,r){return!!(1&r)&&(8&r?t.lexical.indexOf(e)>-1||t.functions.indexOf(e)>-1||t.var.indexOf(e)>-1:16&r?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 nt{constructor(...t){super(...t),this.types=[],this.enums=[],this.constEnums=[],this.classes=[],this.exportOnlyBindings=[]}}class at extends it{createScope(t){return new ot(t)}declareName(t,e,r){const s=this.currentScope();if(e&G)return this.maybeExportDefined(s,t),void s.exportOnlyBindings.push(t);super.declareName(...arguments),2&e&&(1&e||(this.checkRedeclarationInScope(s,t,e,r),this.maybeExportDefined(s,t)),s.types.push(t)),256&e&&s.enums.push(t),512&e&&s.constEnums.push(t),e&$&&s.classes.push(t)}isRedeclaredInScope(t,e,r){if(t.enums.indexOf(e)>-1){if(256&r){return!!(512&r)!==t.constEnums.indexOf(e)>-1}return!0}return r&$&&t.classes.indexOf(e)>-1?t.lexical.indexOf(e)>-1&&!!(1&r):!!(2&r&&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 ut(t){if(null==t)throw new Error(`Unexpected ${t} value.`);return t}function ht(t){if(!t)throw new Error("Assert fail")}const pt=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"});u.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,r){const s=t.find((t=>Array.isArray(t)?t[0]===e:t===e));return s&&Array.isArray(s)?s[1][r]:null}const mt=["minimal","smart","fsharp"],yt=["hash","bar"];const gt={estree:t=>class extends t{estreeParseRegExpLiteral({pattern:t,flags:e}){let r=null;try{r=new RegExp(t,e)}catch(t){}const s=this.estreeParseLiteral(r);return s.regex={pattern:t,flags:e},s}estreeParseBigIntLiteral(t){const e="undefined"!=typeof BigInt?BigInt(t):null,r=this.estreeParseLiteral(e);return r.bigint=String(r.value||t),r}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,r=this.startNodeAt(t.start,t.loc.start),s=this.startNodeAt(e.start,e.loc.start);return s.value=e.value,s.raw=e.extra.raw,r.expression=this.finishNodeAt(s,"Literal",e.end,e.loc.end),r.directive=e.extra.raw.slice(1,-1),this.finishNodeAt(r,"ExpressionStatement",t.end,t.loc.end)}initFunction(t,e){super.initFunction(t,e),t.expression=!1}checkDeclaration(t){b(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}checkLVal(t,e,...r){switch(t.type){case"ObjectPattern":t.properties.forEach((t=>{this.checkLVal("Property"===t.type?t.value:t,"object destructuring pattern",...r)}));break;default:super.checkLVal(t,e,...r)}}checkProto(t,e,r,s){t.method||super.checkProto(t,e,r,s)}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),r=t.expression.value;return e.value.value=r,e}parseBlockBody(t,e,r,s){super.parseBlockBody(t,e,r,s);const n=t.directives.map((t=>this.directiveToStmt(t)));t.body=n.concat(t.body),delete t.directives}pushClassMethod(t,e,r,s,n,i){this.parseMethod(e,r,s,n,i,"ClassMethod",!0),e.typeParameters&&(e.value.typeParameters=e.typeParameters,delete e.typeParameters),t.body.push(e)}parseExprAtom(t){switch(this.state.type){case u.num:case u.string:return this.estreeParseLiteral(this.state.value);case u.regexp:return this.estreeParseRegExpLiteral(this.state.value);case u.bigint:return this.estreeParseBigIntLiteral(this.state.value);case u.decimal:return this.estreeParseDecimalLiteral(this.state.value);case u._null:return this.estreeParseLiteral(null);case u._true:return this.estreeParseLiteral(!0);case u._false:return this.estreeParseLiteral(!1);default:return super.parseExprAtom(t)}}parseLiteral(t,e,r,s){const n=super.parseLiteral(t,e,r,s);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,e,r=!1){super.parseFunctionBody(t,e,r),t.expression="BlockStatement"!==t.body.type}parseMethod(t,e,r,s,n,i,o=!1){let a=this.startNode();return a.kind=t.kind,a=super.parseMethod(a,e,r,s,n,i,o),a.type="FunctionExpression",delete a.kind,t.value=a,i="ClassMethod"===i?"MethodDefinition":i,this.finishNode(t,i)}parseObjectMethod(t,e,r,s,n){const i=super.parseObjectMethod(t,e,r,s,n);return i&&(i.type="Property","method"===i.kind&&(i.kind="init"),i.shorthand=!1),i}parseObjectProperty(t,e,r,s,n){const i=super.parseObjectProperty(t,e,r,s,n);return i&&(i.kind="init",i.type="Property"),i}toAssignable(t,e=!1){return b(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,x.PatternHasAccessor);if(t.method)throw this.raise(t.key.start,x.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,r,s,n){const i=super.parseSubscript(t,e,r,s,n);if(n.optionalChainMember){if("OptionalMemberExpression"!==i.type&&"OptionalCallExpression"!==i.type||(i.type=i.type.substring(8)),n.stop){const t=this.startNodeAtNode(i);return t.expression=i,this.finishNode(t,"ChainExpression")}}else"MemberExpression"!==i.type&&"CallExpression"!==i.type||(i.optional=!1);return i}},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 r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(u.jsxTagStart)):super.getTokenFromCode(r):(t+=this.input.slice(e,this.state.pos),this.finishToken(u.jsxText,t));case 38:t+=this.input.slice(e,this.state.pos),t+=this.jsxReadEntity(),e=this.state.pos;break;default:d(r)?(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 r;return++this.state.pos,13===e&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=t?"\n":"\r\n"):r=String.fromCharCode(e),++this.state.curLine,this.state.lineStart=this.state.pos,r}jsxReadString(t){let e="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,x.UnterminatedString);const s=this.input.charCodeAt(this.state.pos);if(s===t)break;38===s?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadEntity(),r=this.state.pos):d(s)?(e+=this.input.slice(r,this.state.pos),e+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return e+=this.input.slice(r,this.state.pos++),this.finishToken(u.string,e)}jsxReadEntity(){let t,e="",r=0,s=this.input[this.state.pos];const n=++this.state.pos;for(;this.state.pos<this.length&&r++<10;){if(s=this.input[this.state.pos++],";"===s){"#"===e[0]?"x"===e[1]?(e=e.substr(2),Z.test(e)&&(t=String.fromCodePoint(parseInt(e,16)))):(e=e.substr(1),tt.test(e)&&(t=String.fromCodePoint(parseInt(e,10)))):t=Q[e];break}e+=s}return t||(this.state.pos=n,"&")}jsxReadWord(){let t;const e=this.state.pos;do{t=this.input.charCodeAt(++this.state.pos)}while(_(t)||45===t);return this.finishToken(u.jsxName,this.input.slice(e,this.state.pos))}jsxParseIdentifier(){const t=this.startNode();return this.match(u.jsxName)?t.name=this.state.value:this.state.type.keyword?t.name=this.state.type.keyword:this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){const t=this.state.start,e=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(u.colon))return r;const s=this.startNodeAt(t,e);return s.namespace=r,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){const t=this.state.start,e=this.state.startLoc;let r=this.jsxParseNamespacedName();if("JSXNamespacedName"===r.type)return r;for(;this.eat(u.dot);){const s=this.startNodeAt(t,e);s.object=r,s.property=this.jsxParseIdentifier(),r=this.finishNode(s,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let t;switch(this.state.type){case u.braceL:return t=this.startNode(),this.next(),t=this.jsxParseExpressionContainer(t),"JSXEmptyExpression"===t.expression.type&&this.raise(t.start,et.AttributeIsEmpty),t;case u.jsxTagStart:case u.string:return this.parseExprAtom();default:throw this.raise(this.state.start,et.UnsupportedJsxValue)}}jsxParseEmptyExpression(){const t=this.startNodeAt(this.state.lastTokEnd,this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.start,this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.expect(u.braceR),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t){return this.match(u.braceR)?t.expression=this.jsxParseEmptyExpression():t.expression=this.parseExpression(),this.expect(u.braceR),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){const t=this.startNode();return this.eat(u.braceL)?(this.expect(u.ellipsis),t.argument=this.parseMaybeAssignAllowIn(),this.expect(u.braceR),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(u.eq)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t,e){const r=this.startNodeAt(t,e);return this.match(u.jsxTagEnd)?(this.expect(u.jsxTagEnd),this.finishNode(r,"JSXOpeningFragment")):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(t){const e=[];for(;!this.match(u.slash)&&!this.match(u.jsxTagEnd);)e.push(this.jsxParseAttribute());return t.attributes=e,t.selfClosing=this.eat(u.slash),this.expect(u.jsxTagEnd),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t,e){const r=this.startNodeAt(t,e);return this.match(u.jsxTagEnd)?(this.expect(u.jsxTagEnd),this.finishNode(r,"JSXClosingFragment")):(r.name=this.jsxParseElementName(),this.expect(u.jsxTagEnd),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(t,e){const r=this.startNodeAt(t,e),s=[],n=this.jsxParseOpeningElementAt(t,e);let i=null;if(!n.selfClosing){t:for(;;)switch(this.state.type){case u.jsxTagStart:if(t=this.state.start,e=this.state.startLoc,this.next(),this.eat(u.slash)){i=this.jsxParseClosingElementAt(t,e);break t}s.push(this.jsxParseElementAt(t,e));break;case u.jsxText:s.push(this.parseExprAtom());break;case u.braceL:{const t=this.startNode();this.next(),this.match(u.ellipsis)?s.push(this.jsxParseSpreadChild(t)):s.push(this.jsxParseExpressionContainer(t));break}default:throw this.unexpected()}rt(n)&&!rt(i)?this.raise(i.start,et.MissingClosingTagFragment):!rt(n)&&rt(i)?this.raise(i.start,et.MissingClosingTagElement,st(n.name)):rt(n)||rt(i)||st(i.name)!==st(n.name)&&this.raise(i.start,et.MissingClosingTagElement,st(n.name))}if(rt(n)?(r.openingFragment=n,r.closingFragment=i):(r.openingElement=n,r.closingElement=i),r.children=s,this.isRelational("<"))throw this.raise(this.state.start,et.UnwrappedAdjacentJSXElements);return rt(n)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){const t=this.state.start,e=this.state.startLoc;return this.next(),this.jsxParseElementAt(t,e)}parseExprAtom(t){return this.match(u.jsxText)?this.parseLiteral(this.state.value,"JSXText"):this.match(u.jsxTagStart)?this.jsxParseElement():this.isRelational("<")&&33!==this.input.charCodeAt(this.state.pos)?(this.finishToken(u.jsxTagStart),this.jsxParseElement()):super.parseExprAtom(t)}getTokenFromCode(t){if(this.state.inPropertyName)return super.getTokenFromCode(t);const e=this.curContext();if(e===P.j_expr)return this.jsxReadToken();if(e===P.j_oTag||e===P.j_cTag){if(I(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(u.jsxTagEnd);if((34===t||39===t)&&e===P.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed&&33!==this.input.charCodeAt(this.state.pos+1)?(++this.state.pos,this.finishToken(u.jsxTagStart)):super.getTokenFromCode(t)}updateContext(t){if(this.match(u.braceL)){const e=this.curContext();e===P.j_oTag?this.state.context.push(P.braceExpression):e===P.j_expr?this.state.context.push(P.templateQuasi):super.updateContext(t),this.state.exprAllowed=!0}else{if(!this.match(u.slash)||t!==u.jsxTagStart)return super.updateContext(t);this.state.context.length-=2,this.state.context.push(P.j_cTag),this.state.exprAllowed=!1}}},flow:t=>class 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!==u.string&&t!==u.semi&&t!==u.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||u.colon);const r=this.flowParseType();return this.state.inType=e,r}flowParsePredicate(){const t=this.startNode(),e=this.state.startLoc,r=this.state.start;this.expect(u.modulo);const s=this.state.startLoc;return this.expectContextual("checks"),e.line===s.line&&e.column===s.column-1||this.raise(r,z.UnexpectedSpaceBetweenModuloChecks),this.eat(u.parenL)?(t.value=this.parseExpression(),this.expect(u.parenR),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const t=this.state.inType;this.state.inType=!0,this.expect(u.colon);let e=null,r=null;return this.match(u.modulo)?(this.state.inType=t,r=this.flowParsePredicate()):(e=this.flowParseType(),this.state.inType=t,this.match(u.modulo)&&(r=this.flowParsePredicate())),[e,r]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();const e=t.id=this.parseIdentifier(),r=this.startNode(),s=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(u.parenL);const n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,this.expect(u.parenR),[r.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),e.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(e),this.semicolon(),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,e){if(this.match(u._class))return this.flowParseDeclareClass(t);if(this.match(u._function))return this.flowParseDeclareFunction(t);if(this.match(u._var))return this.flowParseDeclareVariable(t);if(this.eatContextual("module"))return this.match(u.dot)?this.flowParseDeclareModuleExports(t):(e&&this.raise(this.state.lastTokStart,z.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(u._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(u.string)?t.id=this.parseExprAtom():t.id=this.parseIdentifier();const e=t.body=this.startNode(),r=e.body=[];for(this.expect(u.braceL);!this.match(u.braceR);){let t=this.startNode();this.match(u._import)?(this.next(),this.isContextual("type")||this.match(u._typeof)||this.raise(this.state.lastTokStart,z.InvalidNonTypeImportInDeclareModule),this.parseImport(t)):(this.expectContextual("declare",z.UnsupportedStatementInDeclareModule),t=this.flowParseDeclare(t,!0)),r.push(t)}this.scope.exit(),this.expect(u.braceR),this.finishNode(e,"BlockStatement");let s=null,n=!1;return r.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&&(n&&this.raise(t.start,z.DuplicateDeclareModuleExports),"ES"===s&&this.raise(t.start,z.AmbiguousDeclareModuleKind),s="CommonJS",n=!0):("CommonJS"===s&&this.raise(t.start,z.AmbiguousDeclareModuleKind),s="ES")})),t.kind=s||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,e){if(this.expect(u._export),this.eat(u._default))return this.match(u._function)||this.match(u._class)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(u._const)||this.isLet()||(this.isContextual("type")||this.isContextual("interface"))&&!e){const t=this.state.value,e=X[t];throw this.raise(this.state.start,z.UnsupportedDeclareExportKind,t,e)}if(this.match(u._var)||this.match(u._function)||this.match(u._class)||this.isContextual("opaque"))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(u.star)||this.match(u.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(u._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(!e&&this.eat(u.comma));if(this.isContextual("mixins")){this.next();do{t.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma))}if(this.isContextual("implements")){this.next();do{t.implements.push(this.flowParseInterfaceExtends())}while(this.eat(u.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,z.UnexpectedReservedUnderscore)}checkReservedType(t,e,r){K.has(t)&&this.raise(e,r?z.AssignReservedType:z.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(u.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(u.colon)&&(t.supertype=this.flowParseTypeInitialiser(u.colon)),t.impltype=null,e||(t.impltype=this.flowParseTypeInitialiser(u.eq)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){const e=this.state.start,r=this.startNode(),s=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=s,r.bound=n.typeAnnotation,this.match(u.eq)?(this.eat(u.eq),r.default=this.flowParseType()):t&&this.raise(e,z.MissingTypeParamDefault),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const t=this.state.inType,e=this.startNode();e.params=[],this.state.inType=!0,this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected();let r=!1;do{const t=this.flowParseTypeParameter(r);e.params.push(t),t.default&&(r=!0),this.isRelational(">")||this.expect(u.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 r=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.isRelational(">");)t.params.push(this.flowParseType()),this.isRelational(">")||this.expect(u.comma);return this.state.noAnonFunctionType=r,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(u.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(u._extends))do{t.extends.push(this.flowParseInterfaceExtends())}while(this.eat(u.comma));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(u.num)||this.match(u.string)?this.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,e,r){return t.static=e,this.lookahead().type===u.colon?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(u.bracketR),t.value=this.flowParseTypeInitialiser(),t.variance=r,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,e){return t.static=e,t.id=this.flowParseObjectPropertyKey(),this.expect(u.bracketR),this.expect(u.bracketR),this.isRelational("<")||this.match(u.parenL)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start))):(t.method=!1,this.eat(u.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(u.parenL);!this.match(u.parenR)&&!this.match(u.ellipsis);)t.params.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(t.rest=this.flowParseFunctionTypeParam()),this.expect(u.parenR),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,e){const r=this.startNode();return t.static=e,t.value=this.flowParseObjectTypeMethodish(r),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:e,allowSpread:r,allowProto:s,allowInexact:n}){const i=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(u.braceBarL)?(this.expect(u.braceBarL),a=u.braceBarR,c=!0):(this.expect(u.braceL),a=u.braceR,c=!1),o.exact=c;!this.match(a);){let e=!1,i=null,a=null;const h=this.startNode();if(s&&this.isContextual("proto")){const e=this.lookahead();e.type!==u.colon&&e.type!==u.question&&(this.next(),i=this.state.start,t=!1)}if(t&&this.isContextual("static")){const t=this.lookahead();t.type!==u.colon&&t.type!==u.question&&(this.next(),e=!0)}const p=this.flowParseVariance();if(this.eat(u.bracketL))null!=i&&this.unexpected(i),this.eat(u.bracketL)?(p&&this.unexpected(p.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(h,e))):o.indexers.push(this.flowParseObjectTypeIndexer(h,e,p));else if(this.match(u.parenL)||this.isRelational("<"))null!=i&&this.unexpected(i),p&&this.unexpected(p.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(h,e));else{let t="init";if(this.isContextual("get")||this.isContextual("set")){const e=this.lookahead();e.type!==u.name&&e.type!==u.string&&e.type!==u.num||(t=this.state.value,this.next())}const s=this.flowParseObjectTypeProperty(h,e,i,p,t,r,null!=n?n:!c);null===s?(l=!0,a=this.state.lastTokStart):o.properties.push(s)}this.flowObjectTypeSemicolon(),!a||this.match(u.braceR)||this.match(u.braceBarR)||this.raise(a,z.UnexpectedExplicitInexactInObject)}this.expect(a),r&&(o.inexact=l);const h=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=i,h}flowParseObjectTypeProperty(t,e,r,s,n,i,o){if(this.eat(u.ellipsis)){return this.match(u.comma)||this.match(u.semi)||this.match(u.braceR)||this.match(u.braceBarR)?(i?o||this.raise(this.state.lastTokStart,z.InexactInsideExact):this.raise(this.state.lastTokStart,z.InexactInsideNonObject),s&&this.raise(s.start,z.InexactVariance),null):(i||this.raise(this.state.lastTokStart,z.UnexpectedSpreadType),null!=r&&this.unexpected(r),s&&this.raise(s.start,z.SpreadVariance),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"))}{t.key=this.flowParseObjectPropertyKey(),t.static=e,t.proto=null!=r,t.kind=n;let i=!1;return this.isRelational("<")||this.match(u.parenL)?(t.method=!0,null!=r&&this.unexpected(r),s&&this.unexpected(s.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.start,t.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(t)):("init"!==n&&this.unexpected(),t.method=!1,this.eat(u.question)&&(i=!0),t.value=this.flowParseTypeInitialiser(),t.variance=s),t.optional=i,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){const e="get"===t.kind?0:1,r=t.start;t.value.params.length+(t.value.rest?1:0)!==e&&("get"===t.kind?this.raise(r,x.BadGetterArity):this.raise(r,x.BadSetterArity)),"set"===t.kind&&t.value.rest&&this.raise(r,x.BadSetterRestParameter)}flowObjectTypeSemicolon(){this.eat(u.semi)||this.eat(u.comma)||this.match(u.braceR)||this.match(u.braceBarR)||this.unexpected()}flowParseQualifiedTypeIdentifier(t,e,r){t=t||this.state.start,e=e||this.state.startLoc;let s=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(u.dot);){const r=this.startNodeAt(t,e);r.qualification=s,r.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(r,"QualifiedTypeIdentifier")}return s}flowParseGenericType(t,e,r){const s=this.startNodeAt(t,e);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(t,e,r),this.isRelational("<")&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){const t=this.startNode();return this.expect(u._typeof),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){const t=this.startNode();for(t.types=[],this.expect(u.bracketL);this.state.pos<this.length&&!this.match(u.bracketR)&&(t.types.push(this.flowParseType()),!this.match(u.bracketR));)this.expect(u.comma);return this.expect(u.bracketR),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(){let t=null,e=!1,r=null;const s=this.startNode(),n=this.lookahead();return n.type===u.colon||n.type===u.question?(t=this.parseIdentifier(),this.eat(u.question)&&(e=!0),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),s.name=t,s.optional=e,s.typeAnnotation=r,this.finishNode(s,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){const e=this.startNodeAt(t.start,t.loc.start);return e.name=null,e.optional=!1,e.typeAnnotation=t,this.finishNode(e,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let e=null;for(;!this.match(u.parenR)&&!this.match(u.ellipsis);)t.push(this.flowParseFunctionTypeParam()),this.match(u.parenR)||this.expect(u.comma);return this.eat(u.ellipsis)&&(e=this.flowParseFunctionTypeParam()),{params:t,rest:e}}flowIdentToTypeAnnotation(t,e,r,s){switch(s.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(t,e,s)}}flowParsePrimaryType(){const t=this.state.start,e=this.state.startLoc,r=this.startNode();let s,n,i=!1;const o=this.state.noAnonFunctionType;switch(this.state.type){case u.name:return this.isContextual("interface")?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,e,r,this.parseIdentifier());case u.braceL:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case u.braceBarL:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case u.bracketL:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case u.relational:if("<"===this.state.value)return r.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(u.parenL),s=this.flowParseFunctionTypeParams(),r.params=s.params,r.rest=s.rest,this.expect(u.parenR),this.expect(u.arrow),r.returnType=this.flowParseType(),this.finishNode(r,"FunctionTypeAnnotation");break;case u.parenL:if(this.next(),!this.match(u.parenR)&&!this.match(u.ellipsis))if(this.match(u.name)){const t=this.lookahead().type;i=t!==u.question&&t!==u.colon}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(u.comma)||this.match(u.parenR)&&this.lookahead().type===u.arrow))return this.expect(u.parenR),n;this.eat(u.comma)}return s=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),r.params=s.params,r.rest=s.rest,this.expect(u.parenR),this.expect(u.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation");case u.string:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case u._true:case u._false:return r.value=this.match(u._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case u.plusMin:if("-"===this.state.value){if(this.next(),this.match(u.num))return this.parseLiteral(-this.state.value,"NumberLiteralTypeAnnotation",r.start,r.loc.start);if(this.match(u.bigint))return this.parseLiteral(-this.state.value,"BigIntLiteralTypeAnnotation",r.start,r.loc.start);throw this.raise(this.state.start,z.UnexpectedSubtractionOperand)}throw this.unexpected();case u.num:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case u.bigint:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case u._void:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case u._null:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case u._this:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case u.star:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType();if(this.state.type.keyword){const t=this.state.type.label;return this.next(),super.createIdentifier(r,t)}}throw this.unexpected()}flowParsePostfixType(){const t=this.state.start,e=this.state.startLoc;let r=this.flowParsePrimaryType();for(;this.match(u.bracketL)&&!this.canInsertSemicolon();){const s=this.startNodeAt(t,e);s.elementType=r,this.expect(u.bracketL),this.expect(u.bracketR),r=this.finishNode(s,"ArrayTypeAnnotation")}return r}flowParsePrefixType(){const t=this.startNode();return this.eat(u.question)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(u.arrow)){const e=this.startNodeAt(t.start,t.loc.start);return e.params=[this.reinterpretTypeAsFunctionTypeParam(t)],e.rest=null,e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){const t=this.startNode();this.eat(u.bitwiseAND);const e=this.flowParseAnonFunctionWithoutParens();for(t.types=[e];this.eat(u.bitwiseAND);)t.types.push(this.flowParseAnonFunctionWithoutParens());return 1===t.types.length?e:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){const t=this.startNode();this.eat(u.bitwiseOR);const e=this.flowParseIntersectionType();for(t.types=[e];this.eat(u.bitwiseOR);)t.types.push(this.flowParseIntersectionType());return 1===t.types.length?e:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){const t=this.state.inType;this.state.inType=!0;const e=this.flowParseUnionType();return this.state.inType=t,this.state.exprAllowed=this.state.exprAllowed||this.state.noAnonFunctionType,e}flowParseTypeOrImplicitInstantiation(){if(this.state.type===u.name&&"_"===this.state.value){const t=this.state.start,e=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(t,e,r)}return this.flowParseType()}flowParseTypeAnnotation(){const t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){const e=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(u.colon)&&(e.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e)),e}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.end,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(u.plusMin)&&(t=this.startNode(),"+"===this.state.value?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")),t}parseFunctionBody(t,e,r=!1){return e?this.forwardNoArrowParamsConversionAt(t,(()=>super.parseFunctionBody(t,!0,r))):super.parseFunctionBody(t,!1,r)}parseFunctionBodyAndFinish(t,e,r=!1){if(this.match(u.colon)){const e=this.startNode();[e.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=e.typeAnnotation?this.finishNode(e,"TypeAnnotation"):null}super.parseFunctionBodyAndFinish(t,e,r)}parseStatement(t,e){if(this.state.strict&&this.match(u.name)&&"interface"===this.state.value){const t=this.lookahead();if(t.type===u.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 r=super.parseStatement(t,e);return void 0!==this.flowPragma||this.isValidDirective(r)||(this.flowPragma=null),r}parseExpressionStatement(t,e){if("Identifier"===e.type)if("declare"===e.name){if(this.match(u._class)||this.match(u.name)||this.match(u._function)||this.match(u._var)||this.match(u._export))return this.flowParseDeclare(t)}else if(this.match(u.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(u.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,r,s){if(!this.match(u.question))return t;if(s){const n=this.tryParse((()=>super.parseConditional(t,e,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(s.start=n.error.pos||this.state.start,t)}this.expect(u.question);const n=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(e,r);let{consequent:a,failed:c}=this.tryParseConditionalConsequent(),[l,h]=this.getArrowLikeExpressions(a);if(c||h.length>0){const t=[...i];if(h.length>0){this.state=n,this.state.noArrowAt=t;for(let e=0;e<h.length;e++)t.push(h[e].start);({consequent:a,failed:c}=this.tryParseConditionalConsequent()),[l,h]=this.getArrowLikeExpressions(a)}c&&l.length>1&&this.raise(n.start,z.AmbiguousConditionalArrow),c&&1===l.length&&(this.state=n,this.state.noArrowAt=t.concat(l[0].start),({consequent:a,failed:c}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=i,this.expect(u.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(u.colon);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:e}}getArrowLikeExpressions(t,e){const r=[t],s=[];for(;0!==r.length;){const t=r.pop();"ArrowFunctionExpression"===t.type?(t.typeParameters||!t.returnType?this.finishArrowValidation(t):s.push(t),r.push(t.body)):"ConditionalExpression"===t.type&&(r.push(t.consequent),r.push(t.alternate))}return e?(s.forEach((t=>this.finishArrowValidation(t))),[s,[]]):function(t,e){const r=[],s=[];for(let n=0;n<t.length;n++)(e(t[n],n,t)?r:s).push(t[n]);return[r,s]}(s,(t=>t.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 r;return-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),r=e(),this.state.noArrowParamsConversionAt.pop()):r=e(),r}parseParenItem(t,e,r){if(t=super.parseParenItem(t,e,r),this.eat(u.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(u.colon)){const s=this.startNodeAt(e,r);return s.expression=t,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"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(u.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!==u.star)&&(t.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(t){const e=this.state.start,r=super.maybeParseExportNamespaceSpecifier(t);return r&&"type"===t.exportKind&&this.unexpected(e),r}parseClassId(t,e,r){super.parseClassId(t,e,r),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,e,r){const s=this.state.start;if(this.isContextual("declare")){if(this.parseClassMemberFromModifier(t,e))return;e.declare=!0}super.parseClassMember(t,e,r),e.declare&&("ClassProperty"!==e.type&&"ClassPrivateProperty"!==e.type?this.raise(s,z.DeclareClassElement):e.value&&this.raise(e.value.start,z.DeclareClassFieldInitializer))}getTokenFromCode(t){const e=this.input.charCodeAt(this.state.pos+1);return 123===t&&124===e?this.finishOp(u.braceBarL,2):!this.state.inType||62!==t&&60!==t?this.state.inType&&63===t?this.finishOp(u.question,1):function(t,e){return 64===t&&64===e}(t,e)?(this.state.isIterator=!0,super.readWord()):super.getTokenFromCode(t):this.finishOp(u.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,r)=>"ObjectMethod"!==t.type&&(r===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,r){for(let e=0;e<t.length;e++){const r=t[e];"TypeCastExpression"===(null==r?void 0:r.type)&&(t[e]=this.typeCastToParameter(r))}return super.toAssignableList(t,e,r)}toReferencedList(t,e){for(let s=0;s<t.length;s++){var r;const n=t[s];n&&"TypeCastExpression"===n.type&&!(null==(r=n.extra)?void 0:r.parenthesized)&&(t.length>1||!e)&&this.raise(n.typeAnnotation.start,z.TypeCastInPattern)}return t}parseArrayLike(t,e,r,s){const n=super.parseArrayLike(t,e,r,s);return e&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}checkLVal(t,...e){if("TypeCastExpression"!==t.type)return super.checkLVal(t,...e)}parseClassProperty(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(u.colon)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(u.colon)&&super.isNonstaticConstructor(t)}pushClassMethod(t,e,r,s,n,i){e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,e,r,s,n,i)}pushClassPrivateMethod(t,e,r,s){e.variance&&this.unexpected(e.variance.start),delete e.variance,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,e,r,s)}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(u.comma))}}parsePropertyName(t,e){const r=this.flowParseVariance(),s=super.parsePropertyName(t,e);return t.variance=r,s}parseObjPropValue(t,e,r,s,n,i,o,a){let c;t.variance&&this.unexpected(t.variance.start),delete t.variance,this.isRelational("<")&&!o&&(c=this.flowParseTypeParameterDeclaration(),this.match(u.parenL)||this.unexpected()),super.parseObjPropValue(t,e,r,s,n,i,o,a),c&&((t.value||t).typeParameters=c)}parseAssignableListItemTypes(t){return this.eat(u.question)&&("Identifier"!==t.type&&this.raise(t.start,z.OptionalBindingPattern),t.optional=!0),this.match(u.colon)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),this.resetEndLocation(t),t}parseMaybeDefault(t,e,r){const s=super.parseMaybeDefault(t,e,r);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(s.typeAnnotation.start,z.TypeBeforeInitializer),s}shouldParseDefaultImport(t){return W(t)?J(this.state):super.shouldParseDefaultImport(t)}parseImportSpecifierLocal(t,e,r,s){e.local=W(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),this.checkLVal(e.local,s,9),t.specifiers.push(this.finishNode(e,r))}maybeParseDefaultImportSpecifier(t){t.importKind="value";let e=null;if(this.match(u._typeof)?e="typeof":this.isContextual("type")&&(e="type"),e){const r=this.lookahead();"type"===e&&r.type===u.star&&this.unexpected(r.start),(J(r)||r.type===u.braceL||r.type===u.star)&&(this.next(),t.importKind=e)}return super.maybeParseDefaultImportSpecifier(t)}parseImportSpecifier(t){const e=this.startNode(),r=this.state.start,s=this.parseModuleExportName();let n=null;"Identifier"===s.type&&("type"===s.name?n="type":"typeof"===s.name&&(n="typeof"));let i=!1;if(this.isContextual("as")&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===n||this.match(u.name)||this.state.type.keyword?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=n,e.local=t.__clone())}else if(null!==n&&(this.match(u.name)||this.state.type.keyword))e.imported=this.parseIdentifier(!0),e.importKind=n,this.eatContextual("as")?e.local=this.parseIdentifier():(i=!0,e.local=e.imported.__clone());else{if("StringLiteral"===s.type)throw this.raise(e.start,x.ImportBindingIsString,s.value);i=!0,e.imported=s,e.importKind=null,e.local=e.imported.__clone()}const o=W(t),a=W(e);o&&a&&this.raise(r,z.ImportTypeShorthandOnlyInPureImport),(o||a)&&this.checkReservedType(e.local.name,e.local.start,!0),!i||o||a||this.checkReservedWord(e.local.name,e.start,!0,!0),this.checkLVal(e.local,"import specifier",9),t.specifiers.push(this.finishNode(e,"ImportSpecifier"))}parseFunctionParams(t,e){const r=t.kind;"get"!==r&&"set"!==r&&this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),this.match(u.colon)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){if(this.match(u.colon)){const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=e}return super.parseAsyncArrowFromCallExpression(t,e)}shouldParseAsyncArrow(){return this.match(u.colon)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,e,r){var s;let n,i=null;if(this.hasPlugin("jsx")&&(this.match(u.jsxTagStart)||this.isRelational("<"))){if(i=this.state.clone(),n=this.tryParse((()=>super.parseMaybeAssign(t,e,r)),i),!n.error)return n.node;const{context:s}=this.state;s[s.length-1]===P.j_oTag?s.length-=2:s[s.length-1]===P.j_expr&&(s.length-=1)}if((null==(s=n)?void 0:s.error)||this.isRelational("<")){var o,a;let s;i=i||this.state.clone();const c=this.tryParse((n=>{var i;s=this.flowParseTypeParameterDeclaration();const o=this.forwardNoArrowParamsConversionAt(s,(()=>{const n=super.parseMaybeAssign(t,e,r);return this.resetStartLocationFromNode(n,s),n}));"ArrowFunctionExpression"!==o.type&&(null==(i=o.extra)?void 0:i.parenthesized)&&n();const a=this.maybeUnwrapTypeCastExpression(o);return a.typeParameters=s,this.resetStartLocationFromNode(a,s),o}),i);let l=null;if(c.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(c.node).type){if(!c.error&&!c.aborted)return c.node.async&&this.raise(s.start,z.UnexpectedTypeParameterBeforeAsyncArrowFunction),c.node;l=c.node}if(null==(o=n)?void 0:o.node)return this.state=n.failState,n.node;if(l)return this.state=c.failState,l;if(null==(a=n)?void 0:a.thrown)throw n.error;if(c.thrown)throw c.error;throw this.raise(s.start,z.UnexpectedTokenAfterTypeParameter)}return super.parseMaybeAssign(t,e,r)}parseArrow(t){if(this.match(u.colon)){const e=this.tryParse((()=>{const e=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const r=this.startNode();return[r.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=e,this.canInsertSemicolon()&&this.unexpected(),this.match(u.arrow)||this.unexpected(),r}));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(u.colon)||super.shouldParseArrow()}setArrowFunctionParameters(t,e){-1!==this.state.noArrowParamsConversionAt.indexOf(t.start)?t.params=e:super.setArrowFunctionParameters(t,e)}checkParams(t,e,r){if(!r||-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,r,s){if("Identifier"===t.type&&"async"===t.name&&-1!==this.state.noArrowAt.indexOf(e)){this.next();const s=this.startNodeAt(e,r);s.callee=t,s.arguments=this.parseCallExpressionArguments(u.parenR,!1),t=this.finishNode(s,"CallExpression")}else if("Identifier"===t.type&&"async"===t.name&&this.isRelational("<")){const n=this.state.clone(),i=this.tryParse((t=>this.parseAsyncArrowWithTypeParameters(e,r)||t()),n);if(!i.error&&!i.aborted)return i.node;const o=this.tryParse((()=>super.parseSubscripts(t,e,r,s)),n);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(t,e,r,s)}parseSubscript(t,e,r,s,n){if(this.match(u.questionDot)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,t;this.next();const i=this.startNodeAt(e,r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(u.parenL),i.arguments=this.parseCallExpressionArguments(u.parenR,!1),i.optional=!0,this.finishCallExpression(i,!0)}if(!s&&this.shouldParseTypes()&&this.isRelational("<")){const s=this.startNodeAt(e,r);s.callee=t;const i=this.tryParse((()=>(s.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(u.parenL),s.arguments=this.parseCallExpressionArguments(u.parenR,!1),n.optionalChainMember&&(s.optional=!1),this.finishCallExpression(s,n.optionalChainMember))));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(t,e,r,s,n)}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 r=this.startNodeAt(t,e);if(this.parseFunctionParams(r),this.parseArrow(r))return this.parseArrowExpression(r,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(u.braceBarR,2)}parseTopLevel(t,e){const r=super.parseTopLevel(t,e);return this.state.hasFlowComment&&this.raise(this.state.pos,z.UnterminatedFlowComment),r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment())return this.state.hasFlowComment&&this.unexpected(null,z.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,x.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 r=this.input.charCodeAt(e+t),s=this.input.charCodeAt(e+t+1);return 58===r&&58===s?e+2:"flow-include"===this.input.slice(e+t,e+t+12)?e+12:58===r&&58!==s&&e}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(this.state.pos,x.UnterminatedComment)}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:e,memberName:r}){this.raise(t,z.EnumBooleanMemberNotInitialized,r,e)}flowEnumErrorInvalidMemberName(t,{enumName:e,memberName:r}){const s=r[0].toUpperCase()+r.slice(1);this.raise(t,z.EnumInvalidMemberName,r,s,e)}flowEnumErrorDuplicateMemberName(t,{enumName:e,memberName:r}){this.raise(t,z.EnumDuplicateMemberName,r,e)}flowEnumErrorInconsistentMemberValues(t,{enumName:e}){this.raise(t,z.EnumInconsistentMemberValues,e)}flowEnumErrorInvalidExplicitType(t,{enumName:e,suppliedType:r}){return this.raise(t,null===r?z.EnumInvalidExplicitTypeUnknownSupplied:z.EnumInvalidExplicitType,e,r)}flowEnumErrorInvalidMemberInitializer(t,{enumName:e,explicitType:r,memberName:s}){let n=null;switch(r){case"boolean":case"number":case"string":n=z.EnumInvalidMemberInitializerPrimaryType;break;case"symbol":n=z.EnumInvalidMemberInitializerSymbolType;break;default:n=z.EnumInvalidMemberInitializerUnknownType}return this.raise(t,n,e,s,r)}flowEnumErrorNumberMemberNotInitialized(t,{enumName:e,memberName:r}){this.raise(t,z.EnumNumberMemberNotInitialized,e,r)}flowEnumErrorStringMemberInconsistentlyInitailized(t,{enumName:e}){this.raise(t,z.EnumStringMemberInconsistentlyInitailized,e)}flowEnumMemberInit(){const t=this.state.start,e=()=>this.match(u.comma)||this.match(u.braceR);switch(this.state.type){case u.num:{const r=this.parseLiteral(this.state.value,"NumericLiteral");return e()?{type:"number",pos:r.start,value:r}:{type:"invalid",pos:t}}case u.string:{const r=this.parseLiteral(this.state.value,"StringLiteral");return e()?{type:"string",pos:r.start,value:r}:{type:"invalid",pos:t}}case u._true:case u._false:{const r=this.parseBooleanLiteral();return e()?{type:"boolean",pos:r.start,value:r}:{type:"invalid",pos:t}}default:return{type:"invalid",pos:t}}}flowEnumMemberRaw(){const t=this.state.start;return{id:this.parseIdentifier(!0),init:this.eat(u.eq)?this.flowEnumMemberInit():{type:"none",pos:t}}}flowEnumCheckExplicitTypeMismatch(t,e,r){const{explicitType:s}=e;null!==s&&s!==r&&this.flowEnumErrorInvalidMemberInitializer(t,e)}flowEnumMembers({enumName:t,explicitType:e}){const r=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};for(;!this.match(u.braceR);){const n=this.startNode(),{id:i,init:o}=this.flowEnumMemberRaw(),a=i.name;if(""===a)continue;/^[a-z]/.test(a)&&this.flowEnumErrorInvalidMemberName(i.start,{enumName:t,memberName:a}),r.has(a)&&this.flowEnumErrorDuplicateMemberName(i.start,{enumName:t,memberName:a}),r.add(a);const c={enumName:t,explicitType:e,memberName:a};switch(n.id=i,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"boolean"),n.init=o.value,s.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"number"),n.init=o.value,s.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.pos,c,"string"),n.init=o.value,s.stringMembers.push(this.finishNode(n,"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:s.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}this.match(u.braceR)||this.expect(u.comma)}return s}flowEnumStringMembers(t,e,{enumName:r}){if(0===t.length)return e;if(0===e.length)return t;if(e.length>t.length){for(let e=0;e<t.length;e++){const s=t[e];this.flowEnumErrorStringMemberInconsistentlyInitailized(s.start,{enumName:r})}return e}for(let t=0;t<e.length;t++){const s=e[t];this.flowEnumErrorStringMemberInconsistentlyInitailized(s.start,{enumName:r})}return t}flowEnumParseExplicitType({enumName:t}){if(this.eatContextual("of")){if(!this.match(u.name))throw this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:t,suppliedType:null});const{value:e}=this.state;return this.next(),"boolean"!==e&&"number"!==e&&"string"!==e&&"symbol"!==e&&this.flowEnumErrorInvalidExplicitType(this.state.start,{enumName:t,suppliedType:e}),e}return null}flowEnumBody(t,{enumName:e,nameLoc:r}){const s=this.flowEnumParseExplicitType({enumName:e});this.expect(u.braceL);const n=this.flowEnumMembers({enumName:e,explicitType:s});switch(s){case"boolean":return t.explicitType=!0,t.members=n.booleanMembers,this.expect(u.braceR),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=n.numberMembers,this.expect(u.braceR),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:e}),this.expect(u.braceR),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=n.defaultedMembers,this.expect(u.braceR),this.finishNode(t,"EnumSymbolBody");default:{const s=()=>(t.members=[],this.expect(u.braceR),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;const i=n.booleanMembers.length,o=n.numberMembers.length,a=n.stringMembers.length,c=n.defaultedMembers.length;if(i||o||a||c){if(i||o){if(!o&&!a&&i>=c){for(let t=0,r=n.defaultedMembers;t<r.length;t++){const s=r[t];this.flowEnumErrorBooleanMemberNotInitialized(s.start,{enumName:e,memberName:s.id.name})}return t.members=n.booleanMembers,this.expect(u.braceR),this.finishNode(t,"EnumBooleanBody")}if(!i&&!a&&o>=c){for(let t=0,r=n.defaultedMembers;t<r.length;t++){const s=r[t];this.flowEnumErrorNumberMemberNotInitialized(s.start,{enumName:e,memberName:s.id.name})}return t.members=n.numberMembers,this.expect(u.braceR),this.finishNode(t,"EnumNumberBody")}return this.flowEnumErrorInconsistentMemberValues(r,{enumName:e}),s()}return t.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:e}),this.expect(u.braceR),this.finishNode(t,"EnumStringBody")}return s()}}}flowParseEnumDeclaration(t){const e=this.parseIdentifier();return t.id=e,t.body=this.flowEnumBody(this.startNode(),{enumName:e.name,nameLoc:e.start}),this.finishNode(t,"EnumDeclaration")}updateContext(t){this.match(u.name)&&"of"===this.state.value&&t===u.name&&"interface"===this.input.slice(this.state.lastTokStart,this.state.lastTokEnd)?this.state.exprAllowed=!1:super.updateContext(t)}isLookaheadToken_lt(){const t=this.nextTokenStart();if(60===this.input.charCodeAt(t)){const e=this.input.charCodeAt(t+1);return 60!==e&&61!==e}return!1}maybeUnwrapTypeCastExpression(t){return"TypeCastExpression"===t.type?t.expression:t}},typescript:t=>class extends t{getScopeHandler(){return at}tsIsIdentifier(){return this.match(u.name)}tsNextTokenCanFollowModifier(){return this.next(),(this.match(u.bracketL)||this.match(u.braceL)||this.match(u.star)||this.match(u.ellipsis)||this.match(u.hash)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsParseModifier(t){if(!this.match(u.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 r=this.state.start,s=this.tsParseModifier(e);if(!s)break;Object.hasOwnProperty.call(t,s)&&this.raise(r,pt.DuplicateModifier,s),t[s]=!0}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(u.braceR);case"HeritageClauseElement":return this.match(u.braceL);case"TupleElementTypes":return this.match(u.bracketR);case"TypeParametersOrArguments":return this.isRelational(">")}throw new Error("Unreachable")}tsParseList(t,e){const r=[];for(;!this.tsIsListTerminator(t);)r.push(e());return r}tsParseDelimitedList(t,e){return ut(this.tsParseDelimitedListWorker(t,e,!0))}tsParseDelimitedListWorker(t,e,r){const s=[];for(;!this.tsIsListTerminator(t);){const n=e();if(null==n)return;if(s.push(n),!this.eat(u.comma)){if(this.tsIsListTerminator(t))break;return void(r&&this.expect(u.comma))}}return s}tsParseBracketedList(t,e,r,s){s||(r?this.expect(u.bracketL):this.expectRelational("<"));const n=this.tsParseDelimitedList(t,e);return r?this.expect(u.bracketR):this.expectRelational(">"),n}tsParseImportType(){const t=this.startNode();return this.expect(u._import),this.expect(u.parenL),this.match(u.string)||this.raise(this.state.start,pt.UnsupportedImportTypeArgument),t.argument=this.parseExprAtom(),this.expect(u.parenR),this.eat(u.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(u.dot);){const r=this.startNodeAtNode(e);r.left=e,r.right=this.parseIdentifier(t),e=this.finishNode(r,"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(u._typeof),this.match(u._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(u._extends),t.default=this.tsEatThenParseType(u.eq),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(){if(this.isRelational("<"))return this.tsParseTypeParameters()}tsParseTypeParameters(){const t=this.startNode();return this.isRelational("<")||this.match(u.jsxTagStart)?this.next():this.unexpected(),t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this),!1,!0),0===t.params.length&&this.raise(t.start,pt.EmptyTypeParameters),this.finishNode(t,"TSTypeParameterDeclaration")}tsTryNextParseConstantContext(){return this.lookahead().type===u._const?(this.next(),this.tsParseTypeReference()):null}tsFillSignature(t,e){const r=t===u.arrow;e.typeParameters=this.tsTryParseTypeParameters(),this.expect(u.parenL),e.parameters=this.tsParseBindingListForSignature(),(r||this.match(t))&&(e.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){return this.parseBindingList(u.parenR,41).map((t=>("Identifier"!==t.type&&"RestElement"!==t.type&&"ObjectPattern"!==t.type&&"ArrayPattern"!==t.type&&this.raise(t.start,pt.UnsupportedSignatureParameterKind,t.type),t)))}tsParseTypeMemberSemicolon(){this.eat(u.comma)||this.semicolon()}tsParseSignatureMember(t,e){return this.tsFillSignature(u.colon,e),this.tsParseTypeMemberSemicolon(),this.finishNode(e,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),this.eat(u.name)&&this.match(u.colon)}tsTryParseIndexSignature(t){if(!this.match(u.bracketL)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(u.bracketL);const e=this.parseIdentifier();e.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(e),this.expect(u.bracketR),t.parameters=[e];const r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,e){this.eat(u.question)&&(t.optional=!0);const r=t;if(e||!this.match(u.parenL)&&!this.isRelational("<")){const t=r;e&&(t.readonly=!0);const s=this.tsTryParseTypeAnnotation();return s&&(t.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSPropertySignature")}{const t=r;return this.tsFillSignature(u.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSMethodSignature")}}tsParseTypeMember(){const t=this.startNode();if(this.match(u.parenL)||this.isRelational("<"))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(u._new)){const e=this.startNode();return this.next(),this.match(u.parenL)||this.isRelational("<")?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(e,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}const e=!!this.tsParseModifier(["readonly"]),r=this.tsTryParseIndexSignature(t);return r?(e&&(t.readonly=!0),r):(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(u.braceL);const t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(u.braceR),t}tsIsStartOfMappedType(){return this.next(),this.eat(u.plusMin)?this.isContextual("readonly"):(this.isContextual("readonly")&&this.next(),!!this.match(u.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(u._in))))}tsParseMappedTypeParameter(){const t=this.startNode();return t.name=this.parseIdentifierName(t.start),t.constraint=this.tsExpectThenParseType(u._in),this.finishNode(t,"TSTypeParameter")}tsParseMappedType(){const t=this.startNode();return this.expect(u.braceL),this.match(u.plusMin)?(t.readonly=this.state.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(t.readonly=!0),this.expect(u.bracketL),t.typeParameter=this.tsParseMappedTypeParameter(),t.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(u.bracketR),this.match(u.plusMin)?(t.optional=this.state.value,this.next(),this.expect(u.question)):this.eat(u.question)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(u.braceR),this.finishNode(t,"TSMappedType")}tsParseTupleType(){const t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let e=!1,r=null;return t.elementTypes.forEach((t=>{var s;let{type:n}=t;!e||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&t.optional||this.raise(t.start,pt.OptionalTypeBeforeRequired),e=e||"TSNamedTupleMember"===n&&t.optional||"TSOptionalType"===n,"TSRestType"===n&&(n=(t=t.typeAnnotation).type);const i="TSNamedTupleMember"===n;r=null!=(s=r)?s:i,r!==i&&this.raise(t.start,pt.MixedLabeledAndUnlabeledElements)})),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){const{start:t,startLoc:e}=this.state,r=this.eat(u.ellipsis);let s=this.tsParseType();const n=this.eat(u.question);if(this.eat(u.colon)){const t=this.startNodeAtNode(s);t.optional=n,"TSTypeReference"!==s.type||s.typeParameters||"Identifier"!==s.typeName.type?(this.raise(s.start,pt.InvalidTupleMemberLabel),t.label=s):t.label=s.typeName,t.elementType=this.tsParseType(),s=this.finishNode(t,"TSNamedTupleMember")}else if(n){const t=this.startNodeAtNode(s);t.typeAnnotation=s,s=this.finishNode(t,"TSOptionalType")}if(r){const r=this.startNodeAt(t,e);r.typeAnnotation=s,s=this.finishNode(r,"TSRestType")}return s}tsParseParenthesizedType(){const t=this.startNode();return this.expect(u.parenL),t.typeAnnotation=this.tsParseType(),this.expect(u.parenR),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t){const e=this.startNode();return"TSConstructorType"===t&&this.expect(u._new),this.tsFillSignature(u.arrow,e),this.finishNode(e,t)}tsParseLiteralTypeNode(){const t=this.startNode();return t.literal=(()=>{switch(this.state.type){case u.num:case u.bigint:case u.string:case u._true:case u._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 u.name:case u._void:case u._null:{const t=this.match(u._void)?"TSVoidKeyword":this.match(u._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 u.string:case u.num:case u.bigint:case u._true:case u._false:return this.tsParseLiteralTypeNode();case u.plusMin:if("-"===this.state.value){const t=this.startNode(),e=this.lookahead();if(e.type!==u.num&&e.type!==u.bigint)throw this.unexpected();return t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case u._this:return this.tsParseThisTypeOrThisTypePredicate();case u._typeof:return this.tsParseTypeQuery();case u._import:return this.tsParseImportType();case u.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case u.bracketL:return this.tsParseTupleType();case u.parenL:return this.tsParseParenthesizedType();case u.backQuote:return this.tsParseTemplateLiteralType()}throw this.unexpected()}tsParseArrayTypeOrHigher(){let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(u.bracketL);)if(this.match(u.bracketR)){const e=this.startNodeAtNode(t);e.elementType=t,this.expect(u.bracketR),t=this.finishNode(e,"TSArrayType")}else{const e=this.startNodeAtNode(t);e.objectType=t,e.indexType=this.tsParseType(),this.expect(u.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,pt.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,r){this.eat(r);let s=e();if(this.match(r)){const n=[s];for(;this.eat(r);)n.push(e());const i=this.startNodeAtNode(s);i.types=n,s=this.finishNode(i,t)}return s}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),u.bitwiseAND)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),u.bitwiseOR)}tsIsStartOfFunctionType(){return!!this.isRelational("<")||this.match(u.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(this.match(u.name)||this.match(u._this))return this.next(),!0;if(this.match(u.braceL)){let t=1;for(this.next();t>0;)this.match(u.braceL)?++t:this.match(u.braceR)&&--t,this.next();return!0}if(this.match(u.bracketL)){let t=1;for(this.next();t>0;)this.match(u.bracketL)?++t:this.match(u.bracketR)&&--t,this.next();return!0}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(u.parenR)||this.match(u.ellipsis))return!0;if(this.tsSkipParameterStart()){if(this.match(u.colon)||this.match(u.comma)||this.match(u.question)||this.match(u.eq))return!0;if(this.match(u.parenR)&&(this.next(),this.match(u.arrow)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType((()=>{const e=this.startNode();this.expect(t);const r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(u._this)){let t=this.tsParseThisTypeOrThisTypePredicate();if("TSThisType"===t.type){const r=this.startNodeAtNode(e);r.parameterName=t,r.asserts=!0,t=this.finishNode(r,"TSTypePredicate")}else t.asserts=!0;return e.typeAnnotation=t,this.finishNode(e,"TSTypeAnnotation")}const s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s){if(!r)return this.tsParseTypeAnnotation(!1,e);const t=this.startNodeAtNode(e);return t.parameterName=this.parseIdentifier(),t.asserts=r,e.typeAnnotation=this.finishNode(t,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}const n=this.tsParseTypeAnnotation(!1),i=this.startNodeAtNode(e);return i.parameterName=s,i.typeAnnotation=n,i.asserts=r,e.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(e,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){return this.match(u.colon)?this.tsParseTypeOrTypePredicateAnnotation(u.colon):void 0}tsTryParseTypeAnnotation(){return this.match(u.colon)?this.tsParseTypeAnnotation():void 0}tsTryParseType(){return this.tsEatThenParseType(u.colon)}tsParseTypePredicatePrefix(){const t=this.parseIdentifier();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(!this.match(u.name)||"asserts"!==this.state.value||this.hasPrecedingLineBreak())return!1;const t=this.state.containsEsc;return this.next(),!(!this.match(u.name)&&!this.match(u._this))&&(t&&this.raise(this.state.lastTokStart,x.InvalidEscapedReservedWord,"asserts"),!0)}tsParseTypeAnnotation(t=!0,e=this.startNode()){return this.tsInType((()=>{t&&this.expect(u.colon),e.typeAnnotation=this.tsParseType()})),this.finishNode(e,"TSTypeAnnotation")}tsParseType(){ht(this.state.inType);const t=this.tsParseNonConditionalType();if(this.hasPrecedingLineBreak()||!this.eat(u._extends))return t;const e=this.startNodeAtNode(t);return e.checkType=t,e.extendsType=this.tsParseNonConditionalType(),this.expect(u.question),e.trueType=this.tsParseType(),this.expect(u.colon),e.falseType=this.tsParseType(),this.finishNode(e,"TSConditionalType")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(u._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,r=this.tsParseDelimitedList("HeritageClauseElement",this.tsParseExpressionWithTypeArguments.bind(this));return r.length||this.raise(e,pt.EmptyHeritageClauseType,t),r}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(u._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(u.eq),this.isContextual("intrinsic")&&this.lookahead().type!==u.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(u.string)?this.parseExprAtom():this.parseIdentifier(!0),this.eat(u.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(u.braceL),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(u.braceR),this.finishNode(t,"TSEnumDeclaration")}tsParseModuleBlock(){const t=this.startNode();return this.scope.enter(0),this.expect(u.braceL),this.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,u.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(u.dot)){const e=this.startNode();this.tsParseModuleOrNamespaceDeclaration(e,!0),t.body=e}else this.scope.enter(H),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(u.string)?t.id=this.parseExprAtom():this.unexpected(),this.match(u.braceL)?(this.scope.enter(H),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(u.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(u.parenL),!this.match(u.string))throw this.unexpected();return t.expression=this.parseExprAtom(),this.expect(u.parenR),this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){const e=this.state.clone(),r=t();return this.state=e,r}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(),r=t();return void 0!==r&&!1!==r?r:void(this.state=e)}tsTryParseDeclare(t){if(this.isLineTerminator())return;let e,r=this.state.type;return this.isContextual("let")&&(r=u._var,e="let"),this.tsInDeclareContext((()=>{switch(r){case u._function:return t.declare=!0,this.parseFunctionStatement(t,!1,!0);case u._class:return t.declare=!0,this.parseClass(t,!0,!1);case u._const:if(this.match(u._const)&&this.isLookaheadContextual("enum"))return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(t,!0);case u._var:return e=e||this.state.value,this.parseVarStatement(t,e);case u.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(u.braceL)){this.scope.enter(H),this.prodParam.enter(0);const r=t;return r.global=!0,r.id=e,r.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,e.name,!1)}}tsParseDeclaration(t,e,r){switch(e){case"abstract":if(this.tsCheckLineTerminatorAndMatch(u._class,r)){const e=t;return e.abstract=!0,r&&(this.next(),this.match(u._class)||this.unexpected(null,u._class)),this.parseClass(e,!0,!1)}break;case"enum":if(r||this.match(u.name))return r&&this.next(),this.tsParseEnumDeclaration(t,!1);break;case"interface":if(this.tsCheckLineTerminatorAndMatch(u.name,r))return r&&this.next(),this.tsParseInterfaceDeclaration(t);break;case"module":if(r&&this.next(),this.match(u.string))return this.tsParseAmbientExternalModuleDeclaration(t);if(this.tsCheckLineTerminatorAndMatch(u.name,r))return this.tsParseModuleOrNamespaceDeclaration(t);break;case"namespace":if(this.tsCheckLineTerminatorAndMatch(u.name,r))return r&&this.next(),this.tsParseModuleOrNamespaceDeclaration(t);break;case"type":if(this.tsCheckLineTerminatorAndMatch(u.name,r))return r&&this.next(),this.tsParseTypeAliasDeclaration(t)}}tsCheckLineTerminatorAndMatch(t,e){return(e||this.match(t))&&!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t,e){if(!this.isRelational("<"))return;const r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const s=this.tsTryParseAndCatch((()=>{const r=this.startNodeAt(t,e);return r.typeParameters=this.tsParseTypeParameters(),super.parseFunctionParams(r),r.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(u.arrow),r}));return this.state.maybeInArrowParameters=r,s?this.parseArrowExpression(s,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,pt.EmptyTypeArguments),this.state.exprAllowed=!1,this.expectRelational(">"),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){if(this.match(u.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 r=this.state.start,s=this.state.startLoc;let n,i=!1;void 0!==t&&(n=this.parseAccessModifier(),i=!!this.tsParseModifier(["readonly"]),!1===t&&(n||i)&&this.raise(r,pt.UnexpectedParameterModifier));const o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o);const a=this.parseMaybeDefault(o.start,o.loc.start,o);if(n||i){const t=this.startNodeAt(r,s);return e.length&&(t.decorators=e),n&&(t.accessibility=n),i&&(t.readonly=i),"Identifier"!==a.type&&"AssignmentPattern"!==a.type&&this.raise(t.start,pt.UnsupportedParameterPropertyKind),t.parameter=a,this.finishNode(t,"TSParameterProperty")}return e.length&&(o.decorators=e),a}parseFunctionBodyAndFinish(t,e,r=!1){this.match(u.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(u.colon));const s="FunctionDeclaration"===e?"TSDeclareFunction":"ClassMethod"===e?"TSDeclareMethod":void 0;s&&!this.match(u.braceL)&&this.isLineTerminator()?this.finishNode(t,s):"TSDeclareFunction"===s&&this.state.isDeclareContext&&(this.raise(t.start,pt.DeclareFunctionHasImplementation),t.declare)?super.parseFunctionBodyAndFinish(t,s,r):super.parseFunctionBodyAndFinish(t,e,r)}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,pt.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,r,s,n){if(!this.hasPrecedingLineBreak()&&this.match(u.bang)){this.state.exprAllowed=!1,this.next();const s=this.startNodeAt(e,r);return s.expression=t,this.finishNode(s,"TSNonNullExpression")}if(this.isRelational("<")){const i=this.tsTryParseAndCatch((()=>{if(!s&&this.atPossibleAsyncArrow(t)){const t=this.tsTryParseGenericAsyncArrowFunction(e,r);if(t)return t}const i=this.startNodeAt(e,r);i.callee=t;const o=this.tsParseTypeArguments();if(o){if(!s&&this.eat(u.parenL))return i.arguments=this.parseCallExpressionArguments(u.parenR,!1),this.tsCheckForInvalidTypeCasts(i.arguments),i.typeParameters=o,this.finishCallExpression(i,n.optionalChainMember);if(this.match(u.backQuote)){const s=this.parseTaggedTemplateExpression(t,e,r,n);return s.typeParameters=o,s}}this.unexpected()}));if(i)return i}return super.parseSubscript(t,e,r,s,n)}parseNewArguments(t){if(this.isRelational("<")){const e=this.tsTryParseAndCatch((()=>{const t=this.tsParseTypeArguments();return this.match(u.parenL)||this.unexpected(),t}));e&&(t.typeParameters=e)}super.parseNewArguments(t)}parseExprOp(t,e,r,s){if(ut(u._in.binop)>s&&!this.hasPrecedingLineBreak()&&this.isContextual("as")){const n=this.startNodeAt(e,r);n.expression=t;const i=this.tsTryNextParseConstantContext();return n.typeAnnotation=i||this.tsNextThenParseType(),this.finishNode(n,"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,e,r,s)}return super.parseExprOp(t,e,r,s)}checkReservedWord(t,e,r,s){}checkDuplicateExports(){}parseImport(t){if(this.match(u.name)||this.match(u.star)||this.match(u.braceL)){const e=this.lookahead();if(this.match(u.name)&&e.type===u.eq)return this.tsParseImportEqualsDeclaration(t);!this.isContextual("type")||e.type===u.comma||e.type===u.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(u._import))return this.expect(u._import),this.tsParseImportEqualsDeclaration(t,!0);if(this.eat(u.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===u.braceL?(this.next(),t.exportKind="type"):t.exportKind="value",super.parseExport(t)}isAbstractClass(){return this.isContextual("abstract")&&this.lookahead().type===u._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===u._const){const t=this.lookahead();if(t.type===u.name&&"enum"===t.value){const t=this.startNode();return this.expect(u._const),this.expectContextual("enum"),this.tsParseEnumDeclaration(t,!0)}}return super.parseStatementContent(t,e)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}parseClassMember(t,e,r){this.tsParseModifiers(e,["declare"]);const s=this.parseAccessModifier();s&&(e.accessibility=s),this.tsParseModifiers(e,["declare"]);const n=()=>{super.parseClassMember(t,e,r)};e.declare?this.tsInDeclareContext(n):n()}parseClassMemberWithIsStatic(t,e,r,s){this.tsParseModifiers(e,["abstract","readonly","declare"]);const n=this.tsTryParseIndexSignature(e);if(n)return t.body.push(n),e.abstract&&this.raise(e.start,pt.IndexSignatureHasAbstract),s&&this.raise(e.start,pt.IndexSignatureHasStatic),e.accessibility&&this.raise(e.start,pt.IndexSignatureHasAccessibility,e.accessibility),void(e.declare&&this.raise(e.start,pt.IndexSignatureHasDeclare));super.parseClassMemberWithIsStatic(t,e,r,s)}parsePostMemberNameModifiers(t){this.eat(u.question)&&(t.optional=!0),t.readonly&&this.match(u.parenL)&&this.raise(t.start,pt.ClassMethodHasReadonly),t.declare&&this.match(u.parenL)&&this.raise(t.start,pt.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,r,s){if(!s||!this.match(u.question))return super.parseConditional(t,e,r,s);const n=this.tryParse((()=>super.parseConditional(t,e,r)));return n.node?(n.error&&(this.state=n.failState),n.node):(s.start=n.error.pos||this.state.start,t)}parseParenItem(t,e,r){if(t=super.parseParenItem(t,e,r),this.eat(u.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(u.colon)){const s=this.startNodeAt(e,r);return s.expression=t,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return t}parseExportDeclaration(t){const e=this.state.start,r=this.state.startLoc,s=this.eatContextual("declare");let n;return this.match(u.name)&&(n=this.tsTryParseExportDeclaration()),n||(n=super.parseExportDeclaration(t)),n&&("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||s)&&(t.exportKind="type"),n&&s&&(this.resetStartLocation(n,e,r),n.declare=!0),n}parseClassId(t,e,r){if((!e||r)&&this.isContextual("implements"))return;super.parseClassId(t,e,r,t.declare?1024:139);const s=this.tsTryParseTypeParameters();s&&(t.typeParameters=s)}parseClassPropertyAnnotation(t){!t.optional&&this.eat(u.bang)&&(t.definite=!0);const e=this.tsTryParseTypeAnnotation();e&&(t.typeAnnotation=e)}parseClassProperty(t){return this.parseClassPropertyAnnotation(t),this.state.isDeclareContext&&this.match(u.eq)&&this.raise(this.state.start,pt.DeclareClassFieldHasInitializer),super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(t.start,pt.PrivateElementHasAbstract),t.accessibility&&this.raise(t.start,pt.PrivateElementHasAccessibility,t.accessibility),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}pushClassMethod(t,e,r,s,n,i){const o=this.tsTryParseTypeParameters();o&&n&&this.raise(o.start,pt.ConstructorHasTypeParameters),o&&(e.typeParameters=o),super.pushClassMethod(t,e,r,s,n,i)}pushClassPrivateMethod(t,e,r,s){const n=this.tsTryParseTypeParameters();n&&(e.typeParameters=n),super.pushClassPrivateMethod(t,e,r,s)}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 r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r),super.parseObjPropValue(t,...e)}parseFunctionParams(t,e){const r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r),super.parseFunctionParams(t,e)}parseVarId(t,e){super.parseVarId(t,e),"Identifier"===t.id.type&&this.eat(u.bang)&&(t.definite=!0);const r=this.tsTryParseTypeAnnotation();r&&(t.id.typeAnnotation=r,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,e){return this.match(u.colon)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,e)}parseMaybeAssign(...t){var e,r,s,n,i,o,a;let c,l,h,p;if(this.match(u.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 r;p=this.tsParseTypeParameters();const s=super.parseMaybeAssign(...t);return("ArrowFunctionExpression"!==s.type||s.extra&&s.extra.parenthesized)&&e(),0!==(null==(r=p)?void 0:r.params.length)&&this.resetStartLocationFromNode(s,p),s.typeParameters=p,s}),c);if(!d.error&&!d.aborted)return d.node;if(!l&&(ht(!this.hasPlugin("jsx")),h=this.tryParse((()=>super.parseMaybeAssign(...t)),c),!h.error))return h.node;if(null==(r=l)?void 0:r.node)return this.state=l.failState,l.node;if(d.node)return this.state=d.failState,d.node;if(null==(s=h)?void 0:s.node)return this.state=h.failState,h.node;if(null==(n=l)?void 0:n.thrown)throw l.error;if(d.thrown)throw d.error;if(null==(i=h)?void 0:i.thrown)throw h.error;throw(null==(o=l)?void 0:o.error)||d.error||(null==(a=h)?void 0:a.error)}parseMaybeUnary(t){return!this.hasPlugin("jsx")&&this.isRelational("<")?this.tsParseTypeAssertion():super.parseMaybeUnary(t)}parseArrow(t){if(this.match(u.colon)){const e=this.tryParse((t=>{const e=this.tsParseTypeOrTypePredicateAnnotation(u.colon);return!this.canInsertSemicolon()&&this.match(u.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(u.question)&&("Identifier"===t.type||this.state.isDeclareContext||this.state.inType||this.raise(t.start,pt.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,...r){switch(t.type){case"TSTypeCastExpression":return;case"TSParameterProperty":return void this.checkLVal(t.parameter,"parameter property",...r);case"TSAsExpression":case"TSNonNullExpression":case"TSTypeAssertion":return void this.checkLVal(t.expression,e,...r);default:return void super.checkLVal(t,e,...r)}}parseBindingAtom(){switch(this.state.type){case u._this:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseMaybeDecoratorArguments(t){if(this.isRelational("<")){const e=this.tsParseTypeArguments();if(this.match(u.parenL)){const r=super.parseMaybeDecoratorArguments(t);return r.typeParameters=e,r}this.unexpected(this.state.start,u.parenL)}return super.parseMaybeDecoratorArguments(t)}isClassMethod(){return this.isRelational("<")||super.isClassMethod()}isClassProperty(){return this.match(u.bang)||this.match(u.colon)||super.isClassProperty()}parseMaybeDefault(...t){const e=super.parseMaybeDefault(...t);return"AssignmentPattern"===e.type&&e.typeAnnotation&&e.right.start<e.typeAnnotation.start&&this.raise(e.typeAnnotation.start,pt.TypeAnnotationAfterAssign),e}getTokenFromCode(t){return!this.state.inType||62!==t&&60!==t?super.getTokenFromCode(t):this.finishOp(u.relational,1)}reScan_lt_gt(){if(this.match(u.relational)){const t=this.input.charCodeAt(this.state.start);60!==t&&62!==t||(this.state.pos-=1,this.readToken_lt_gt(t))}}toAssignableList(t){for(let e=0;e<t.length;e++){const r=t[e];if(r)switch(r.type){case"TSTypeCastExpression":t[e]=this.typeCastToParameter(r);break;case"TSAsExpression":case"TSTypeAssertion":this.state.maybeInArrowParameters?this.raise(r.start,pt.UnexpectedTypeCastInParameter):t[e]=this.typeCastToParameter(r)}}return super.toAssignableList(...arguments)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.end,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(){return this.match(u.colon)||super.shouldParseArrow()}shouldParseAsyncArrow(){return this.match(u.colon)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.isRelational("<")){const e=this.tsTryParseAndCatch((()=>this.tsParseTypeArguments()));e&&(t.typeParameters=e)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){const e=super.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t)[0];return r&&"Identifier"===r.type&&"this"===r.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(u.modulo)){const t=this.state.start,e=this.startNode();if(this.eat(u.modulo),this.match(u.name)){const t=this.parseIdentifierName(this.state.start),r=this.createIdentifier(e,t);if(r.type="V8IntrinsicIdentifier",this.match(u.parenL))return r}this.unexpected(t)}}parseExprAtom(){return this.parseV8Intrinsic()||super.parseExprAtom(...arguments)}},placeholders:t=>class extends t{parsePlaceholder(t){if(this.match(u.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(u.placeholder),this.finishPlaceholder(e,t)}}finishPlaceholder(t,e){const r=!(!t.expectedNode||"Placeholder"!==t.type);return t.expectedNode=e,r?t:this.finishNode(t,"Placeholder")}getTokenFromCode(t){return 37===t&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.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(u.colon)){const r=t;return r.label=this.finishPlaceholder(e,"Identifier"),this.next(),r.body=this.parseStatement("label"),this.finishNode(r,"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,r){const s=e?"ClassDeclaration":"ClassExpression";this.next(),this.takeDecorators(t);const n=this.state.strict,i=this.parsePlaceholder("Identifier");if(i)if(this.match(u._extends)||this.match(u.placeholder)||this.match(u.braceL))t.id=i;else{if(r||!e)return t.id=null,t.body=this.finishPlaceholder(i,"ClassBody"),this.finishNode(t,s);this.unexpected(null,"A class name is required")}else this.parseClassId(t,e,r);return this.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||this.parseClassBody(!!t.superClass,n),this.finishNode(t,s)}parseExport(t){const e=this.parsePlaceholder("Identifier");if(!e)return super.parseExport(...arguments);if(!this.isContextual("from")&&!this.match(u.comma))return t.specifiers=[],t.source=null,t.declaration=this.finishPlaceholder(e,"Declaration"),this.finishNode(t,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const r=this.startNode();return r.exported=e,t.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],super.parseExport(t)}isExportDefaultSpecifier(){if(this.match(u._default)){const t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(u.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(u.comma))return t.source=this.finishPlaceholder(e,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");const r=this.startNodeAtNode(e);if(r.local=e,this.finishNode(r,"ImportDefaultSpecifier"),t.specifiers.push(r),this.eat(u.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)}}},vt=Object.keys(gt),xt={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 bt{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=u.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 bt,r=Object.keys(this);for(let s=0,n=r.length;s<n;s++){const n=r[s];let i=this[n];!t&&Array.isArray(i)&&(i=i.slice()),e[n]=i}return e}}var wt=function(t){return t>=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]},St={bin:[48,49]};St.oct=[...St.bin,50,51,52,53,54,55],St.dec=[...St.oct,56,57],St.hex=[...St.dec,65,66,67,68,69,70,97,98,99,100,101,102];class At{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new g(t.startLoc,t.endLoc)}}class Et{constructor(){this.shorthandAssign=-1,this.doubleProto=-1}}class kt{constructor(t,e,r){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 g(r),(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 kt,e=Object.keys(this);for(let r=0,s=e.length;r<s;r++){const s=e[r];"leadingComments"!==s&&"trailingComments"!==s&&"innerComments"!==s&&(t[s]=this[s])}return t}}const Ct=t=>"ParenthesizedExpression"===t.type?Ct(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:r}=this;let s=r.length-1,n=r[s];for(;!n.isCertainlyParameterDeclaration();){if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(t,e),n=r[--s]}this.raise(t,e)}recordParenthesizedIdentifierError(t,e){const{stack:r}=this,s=r[r.length-1];if(s.isCertainlyParameterDeclaration())this.raise(t,e);else{if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(t,e)}}recordAsyncArrowParametersError(t,e){const{stack:r}=this;let s=r.length-1,n=r[s];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(t,e),n=r[--s]}validateAsPattern(){const{stack:t}=this,e=t[t.length-1];e.canBeArrowParameterDeclaration()&&e.iterateErrors(((e,r)=>{this.raise(r,e);let s=t.length-2,n=t[s];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(r),n=t[--s]}))}}function Ot(){return new Nt}const Dt={kind:"loop"},Mt={kind:"switch"},Lt=/[\uD800-\uDFFF]/u;class Rt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class jt{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 r=0,s=Array.from(t.undefinedPrivateNames);r<s.length;r++){const[t,n]=s[r];e?e.undefinedPrivateNames.has(t)||e.undefinedPrivateNames.set(t,n):this.raise(n,x.InvalidPrivateFieldResolution,t)}}declarePrivateName(t,e,r){const s=this.current();let n=s.privateNames.has(t);if(3&e){const r=n&&s.loneAccessors.get(t);if(r){const i=4&r,o=4&e;n=(3&r)===(3&e)||i!==o,n||s.loneAccessors.delete(t)}else n||s.loneAccessors.set(t,e)}n&&this.raise(r,x.PrivateNameRedeclaration,t),s.privateNames.add(t),s.undefinedPrivateNames.delete(t)}usePrivateName(t,e){let r;for(let e=0,s=this.stack;e<s.length;e++)if(r=s[e],r.privateNames.has(t))return;r?r.undefinedPrivateNames.set(t,e):this.raise(e,x.InvalidPrivateFieldResolution,t)}}class Ft extends class extends class extends class extends class extends class extends class extends class extends class extends class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){return this.plugins.has(t)}getPluginOption(t,e){if(this.hasPlugin(t))return this.plugins.get(t)[e]}}{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.trailingComments.push(t),this.state.leadingComments.push(t)}adjustCommentsAfterTrailingComma(t,e,r){if(0===this.state.leadingComments.length)return;let s=null,n=e.length;for(;null===s&&n>0;)s=e[--n];if(null===s)return;for(let t=0;t<this.state.leadingComments.length;t++)this.state.leadingComments[t].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(t,1),t--);const i=[];for(let e=0;e<this.state.leadingComments.length;e++){const s=this.state.leadingComments[e];s.end<t.end?(i.push(s),r||(this.state.leadingComments.splice(e,1),e--)):(void 0===t.trailingComments&&(t.trailingComments=[]),t.trailingComments.push(s))}r&&(this.state.leadingComments=[]),i.length>0?s.trailingComments=i:void 0!==s.trailingComments&&(s.trailingComments=[])}processComment(t){if("Program"===t.type&&t.body.length>0)return;const e=this.state.commentStack;let r,s,n,i,o;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=t.end?(n=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else if(e.length>0){const r=v(e);r.trailingComments&&r.trailingComments[0].start>=t.end&&(n=r.trailingComments,delete r.trailingComments)}for(e.length>0&&v(e).start>=t.start&&(r=e.pop());e.length>0&&v(e).start>=t.start;)s=e.pop();if(!s&&r&&(s=r),r)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(s){if(s.leadingComments)if(s!==t&&s.leadingComments.length>0&&v(s.leadingComments).end<=t.start)t.leadingComments=s.leadingComments,delete s.leadingComments;else for(i=s.leadingComments.length-2;i>=0;--i)if(s.leadingComments[i].end<=t.start){t.leadingComments=s.leadingComments.splice(0,i+1);break}}else if(this.state.leadingComments.length>0)if(v(this.state.leadingComments).end<=t.start){if(this.state.commentPreviousNode)for(o=0;o<this.state.leadingComments.length;o++)this.state.leadingComments[o].end<this.state.commentPreviousNode.end&&(this.state.leadingComments.splice(o,1),o--);this.state.leadingComments.length>0&&(t.leadingComments=this.state.leadingComments,this.state.leadingComments=[])}else{for(i=0;i<this.state.leadingComments.length&&!(this.state.leadingComments[i].end>t.start);i++);const e=this.state.leadingComments.slice(0,i);e.length&&(t.leadingComments=e),n=this.state.leadingComments.slice(i),0===n.length&&(n=null)}if(this.state.commentPreviousNode=t,n)if(n.length&&n[0].start>=t.start&&v(n).end<=t.end)t.innerComments=n;else{const e=n.findIndex((e=>e.end>=t.end));e>0?(t.innerComments=n.slice(0,e),t.trailingComments=n.slice(e)):t.trailingComments=n}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 r,s=1,n=0;for(p.lastIndex=0;(r=p.exec(t))&&r.index<e;)s++,n=p.lastIndex;return new y(s,e-n)}(this.input,t),e}raise(t,e,...r){return this.raiseWithData(t,void 0,e,...r)}raiseWithData(t,e,r,...s){const n=this.getLocationForPosition(t),i=r.replace(/%(\d+)/g,((t,e)=>s[e]))+` (${n.line}:${n.column})`;return this._raise(Object.assign({loc:n,pos:t},e),i)}_raise(t,e){const r=new SyntaxError(e);if(Object.assign(r,t),this.options.errorRecovery)return this.isLookahead||this.state.errors.push(r),r;throw r}}{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.state=new bt,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 At(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(u.num)||this.match(u.string)){for(this.state.pos=this.state.start;this.state.pos<this.state.lineStart;)this.state.lineStart=this.input.lastIndexOf("\n",this.state.lineStart-2)+1,--this.state.curLine;this.nextToken()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){const t=this.curContext();if((null==t?void 0:t.preserveSpace)||this.skipSpace(),this.state.octalPositions=[],this.state.start=this.state.pos,this.state.startLoc=this.state.curPosition(),this.state.pos>=this.length)return void this.finishToken(u.eof);const e=null==t?void 0:t.override;e?e(this):this.getTokenFromCode(this.input.codePointAt(this.state.pos))}pushComment(t,e,r,s,n,i){const o={type:t?"CommentBlock":"CommentLine",value:e,start:r,end:s,loc:new g(n,i)};this.options.tokens&&this.pushToken(o),this.state.comments.push(o),this.addComment(o)}skipBlockComment(){const t=this.state.curPosition(),e=this.state.pos,r=this.input.indexOf("*/",this.state.pos+2);if(-1===r)throw this.raise(e,x.UnterminatedComment);let s;for(this.state.pos=r+2,p.lastIndex=e;(s=p.exec(this.input))&&s.index<this.state.pos;)++this.state.curLine,this.state.lineStart=s.index+s[0].length;this.isLookahead||this.pushComment(!0,this.input.slice(e+2,r),e,this.state.pos,t,this.state.curPosition())}skipLineComment(t){const e=this.state.pos,r=this.state.curPosition();let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!d(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);this.isLookahead||this.pushComment(!1,this.input.slice(e+t,this.state.pos),e,this.state.pos,r,this.state.curPosition())}skipSpace(){t:for(;this.state.pos<this.length;){const t=this.input.charCodeAt(this.state.pos);switch(t){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!m(t))break t;++this.state.pos}}}finishToken(t,e){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=t,this.state.value=e,this.isLookahead||this.updateContext(r)}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const t=this.state.pos+1,e=this.input.charCodeAt(t);if(e>=48&&e<=57)throw this.raise(this.state.pos,x.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?x.RecordExpressionHashIncorrectStartSyntaxType:x.TupleExpressionHashIncorrectStartSyntaxType);123===e?this.finishToken(u.braceHashL):this.finishToken(u.bracketHashL),this.state.pos+=2}else this.finishOp(u.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(u.ellipsis)):(++this.state.pos,this.finishToken(u.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(u.assign,2):this.finishOp(u.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<this.length;)t=this.input.charCodeAt(this.state.pos);const r=this.input.slice(e+2,this.state.pos);return this.finishToken(u.interpreterDirective,r),!0}readToken_mult_modulo(t){let e=42===t?u.star:u.modulo,r=1,s=this.input.charCodeAt(this.state.pos+1);const n=this.state.exprAllowed;42===t&&42===s&&(r++,s=this.input.charCodeAt(this.state.pos+2),e=u.exponent),61!==s||n||(r++,e=u.assign),this.finishOp(e,r)}readToken_pipe_amp(t){const e=this.input.charCodeAt(this.state.pos+1);if(e!==t){if(124===t){if(62===e)return void this.finishOp(u.pipeline,2);if(this.hasPlugin("recordAndTuple")&&125===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,x.RecordExpressionBarIncorrectEndSyntaxType);return void this.finishOp(u.braceBarR,2)}if(this.hasPlugin("recordAndTuple")&&93===e){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(this.state.pos,x.TupleExpressionBarIncorrectEndSyntaxType);return void this.finishOp(u.bracketBarR,2)}}61!==e?this.finishOp(124===t?u.bitwiseOR:u.bitwiseAND,1):this.finishOp(u.assign,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(u.assign,3):this.finishOp(124===t?u.logicalOR:u.logicalAND,2)}readToken_caret(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.assign,2):this.finishOp(u.bitwiseXOR,1)}readToken_plus_min(t){const e=this.input.charCodeAt(this.state.pos+1);if(e===t)return 45!==e||this.inModule||62!==this.input.charCodeAt(this.state.pos+2)||0!==this.state.lastTokEnd&&!this.hasPrecedingLineBreak()?void this.finishOp(u.incDec,2):(this.skipLineComment(3),this.skipSpace(),void this.nextToken());61===e?this.finishOp(u.assign,2):this.finishOp(u.plusMin,1)}readToken_lt_gt(t){const e=this.input.charCodeAt(this.state.pos+1);let r=1;return e===t?(r=62===t&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?void this.finishOp(u.assign,r+1):void this.finishOp(u.bitShift,r)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.state.pos+2)||45!==this.input.charCodeAt(this.state.pos+3)?(61===e&&(r=2),void this.finishOp(u.relational,r)):(this.skipLineComment(4),this.skipSpace(),void this.nextToken())}readToken_eq_excl(t){const e=this.input.charCodeAt(this.state.pos+1);if(61!==e)return 61===t&&62===e?(this.state.pos+=2,void this.finishToken(u.arrow)):void this.finishOp(61===t?u.eq:u.bang,1);this.finishOp(u.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){const t=this.input.charCodeAt(this.state.pos+1),e=this.input.charCodeAt(this.state.pos+2);63===t?61===e?this.finishOp(u.assign,3):this.finishOp(u.nullishCoalescing,2):46!==t||e>=48&&e<=57?(++this.state.pos,this.finishToken(u.question)):(this.state.pos+=2,this.finishToken(u.questionDot))}getTokenFromCode(t){switch(t){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(u.parenL);case 41:return++this.state.pos,void this.finishToken(u.parenR);case 59:return++this.state.pos,void this.finishToken(u.semi);case 44:return++this.state.pos,void this.finishToken(u.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,x.TupleExpressionBarIncorrectStartSyntaxType);this.finishToken(u.bracketBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(u.bracketL);return;case 93:return++this.state.pos,void this.finishToken(u.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,x.RecordExpressionBarIncorrectStartSyntaxType);this.finishToken(u.braceBarL),this.state.pos+=2}else++this.state.pos,this.finishToken(u.braceL);return;case 125:return++this.state.pos,void this.finishToken(u.braceR);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(u.doubleColon,2):(++this.state.pos,this.finishToken(u.colon)));case 63:return void this.readToken_question();case 96:return++this.state.pos,void this.finishToken(u.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(u.tilde,1);case 64:return++this.state.pos,void this.finishToken(u.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,x.InvalidOrUnexpectedToken,String.fromCodePoint(t))}finishOp(t,e){const r=this.input.slice(this.state.pos,this.state.pos+e);this.state.pos+=e,this.finishToken(t,r)}readRegexp(){const t=this.state.pos;let e,r;for(;;){if(this.state.pos>=this.length)throw this.raise(t,x.UnterminatedRegExp);const s=this.input.charAt(this.state.pos);if(h.test(s))throw this.raise(t,x.UnterminatedRegExp);if(e)e=!1;else{if("["===s)r=!0;else if("]"===s&&r)r=!1;else if("/"===s&&!r)break;e="\\"===s}++this.state.pos}const s=this.input.slice(t,this.state.pos);++this.state.pos;let n="";for(;this.state.pos<this.length;){const t=this.input[this.state.pos],e=this.input.codePointAt(this.state.pos);if(Pt.has(t))n.indexOf(t)>-1&&this.raise(this.state.pos+1,x.DuplicateRegExpFlags);else{if(!_(e)&&92!==e)break;this.raise(this.state.pos+1,x.MalformedRegExpFlags)}++this.state.pos,n+=t}this.finishToken(u.regexp,{pattern:s,flags:n})}readInt(t,e,r,s=!0){const n=this.state.pos,i=16===t?Tt.hex:Tt.decBinOct,o=16===t?St.hex:10===t?St.dec:8===t?St.oct:St.bin;let a=!1,c=0;for(let n=0,l=null==e?1/0:e;n<l;++n){const e=this.input.charCodeAt(this.state.pos);let l;if(95!==e){if(l=e>=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+n+2,x.InvalidDigit,t);else{if(!r)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)||i.indexOf(t)>-1||i.indexOf(e)>-1||Number.isNaN(e))&&this.raise(this.state.pos,x.UnexpectedNumericSeparator),s||this.raise(this.state.pos,x.NumericSeparatorInEscapeSequence),++this.state.pos}}return this.state.pos===n||null!=e&&this.state.pos-n!==e||a?null:c}readRadixNumber(t){const e=this.state.pos;let r=!1;this.state.pos+=2;const s=this.readInt(t);null==s&&this.raise(this.state.start+2,x.InvalidDigit,t);const n=this.input.charCodeAt(this.state.pos);if(110===n)++this.state.pos,r=!0;else if(109===n)throw this.raise(e,x.InvalidDecimal);if(I(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,x.NumberIdentifier);if(r){const t=this.input.slice(e,this.state.pos).replace(/[_n]/g,"");this.finishToken(u.bigint,t)}else this.finishToken(u.num,s)}readNumber(t){const e=this.state.pos;let r=!1,s=!1,n=!1,i=!1,o=!1;t||null!==this.readInt(10)||this.raise(e,x.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,x.StrictOctalLiteral);else{const r=t.indexOf("_");r>0&&this.raise(r+e,x.ZeroDigitNumericSeparator)}o=a&&!/[89]/.test(t)}let c=this.input.charCodeAt(this.state.pos);if(46!==c||o||(++this.state.pos,this.readInt(10),r=!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,x.InvalidOrMissingExponent),r=!0,i=!0,c=this.input.charCodeAt(this.state.pos)),110===c&&((r||a)&&this.raise(e,x.InvalidBigIntLiteral),++this.state.pos,s=!0),109===c&&(this.expectPlugin("decimal",this.state.pos),(i||a)&&this.raise(e,x.InvalidDecimal),++this.state.pos,n=!0),I(this.input.codePointAt(this.state.pos)))throw this.raise(this.state.pos,x.NumberIdentifier);const l=this.input.slice(e,this.state.pos).replace(/[_mn]/g,"");if(s)return void this.finishToken(u.bigint,l);if(n)return void this.finishToken(u.decimal,l);const h=o?parseInt(l,8):parseFloat(l);this.finishToken(u.num,h)}readCodePoint(t){let e;if(123===this.input.charCodeAt(this.state.pos)){const r=++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(r,x.InvalidCodePoint)}}else e=this.readHexChar(4,!1,t);return e}readString(t){let e="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,x.UnterminatedString);const s=this.input.charCodeAt(this.state.pos);if(s===t)break;if(92===s)e+=this.input.slice(r,this.state.pos),e+=this.readEscapedChar(!1),r=this.state.pos;else if(8232===s||8233===s)++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;else{if(d(s))throw this.raise(this.state.start,x.UnterminatedString);++this.state.pos}}e+=this.input.slice(r,this.state.pos++),this.finishToken(u.string,e)}readTmplToken(){let t="",e=this.state.pos,r=!1;for(;;){if(this.state.pos>=this.length)throw this.raise(this.state.start,x.UnterminatedTemplate);const s=this.input.charCodeAt(this.state.pos);if(96===s||36===s&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(u.template)?36===s?(this.state.pos+=2,void this.finishToken(u.dollarBraceL)):(++this.state.pos,void this.finishToken(u.backQuote)):(t+=this.input.slice(e,this.state.pos),void this.finishToken(u.template,r?null:t));if(92===s){t+=this.input.slice(e,this.state.pos);const s=this.readEscapedChar(!0);null===s?r=!0:t+=s,e=this.state.pos}else if(d(s)){switch(t+=this.input.slice(e,this.state.pos),++this.state.pos,s){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(s)}++this.state.curLine,this.state.lineStart=this.state.pos,e=this.state.pos}else++this.state.pos}}readEscapedChar(t){const e=!t,r=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,r){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,x.StrictNumericEscape);default:if(r>=48&&r<=55){const e=this.state.pos-1;let r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.state.pos+=r.length-1;const n=this.input.charCodeAt(this.state.pos);if("0"!==r||56===n||57===n){if(t)return null;this.state.strict?this.raise(e,x.StrictNumericEscape):this.state.octalPositions.push(e)}return String.fromCharCode(s)}return String.fromCharCode(r)}}readHexChar(t,e,r){const s=this.state.pos,n=this.readInt(16,t,e,!1);return null===n&&(r?this.raise(s,x.InvalidEscapeSequence):this.state.pos=s-1),n}readWord1(){let t="";this.state.containsEsc=!1;const e=this.state.pos;let r=this.state.pos;for(;this.state.pos<this.length;){const s=this.input.codePointAt(this.state.pos);if(_(s))this.state.pos+=s<=65535?1:2;else if(this.state.isIterator&&64===s)++this.state.pos;else{if(92!==s)break;{this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);const s=this.state.pos,n=this.state.pos===e?I:_;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(this.state.pos,x.MissingUnicodeEscape);continue}++this.state.pos;const i=this.readCodePoint(!0);null!==i&&(n(i)||this.raise(s,x.EscapedCharNotAnIdentifier),t+=String.fromCodePoint(i)),r=this.state.pos}}}return t+this.input.slice(r,this.state.pos)}isIterator(t){return"@@iterator"===t||"@@asyncIterator"===t}readWord(){const t=this.readWord1(),e=a.get(t)||u.name;!this.state.isIterator||this.isIterator(t)&&this.state.inType||this.raise(this.state.pos,x.InvalidIdentifier,t),this.finishToken(e,t)}checkKeywordEscapes(){const t=this.state.type.keyword;t&&this.state.containsEsc&&this.raise(this.state.start,x.InvalidEscapedReservedWord,t)}braceIsBlock(t){const e=this.curContext();return e===P.functionExpression||e===P.functionStatement||(t!==u.colon||e!==P.braceStatement&&e!==P.braceExpression?t===u._return||t===u.name&&this.state.exprAllowed?this.hasPrecedingLineBreak():t===u._else||t===u.semi||t===u.eof||t===u.parenR||t===u.arrow||(t===u.braceL?e===P.braceStatement:t!==u._var&&t!==u._const&&t!==u.name&&(t===u.relational||!this.state.exprAllowed)):!e.isExpr)}updateContext(t){const e=this.state.type;let r;!e.keyword||t!==u.dot&&t!==u.questionDot?(r=e.updateContext)?r.call(this,t):this.state.exprAllowed=e.beforeExpr:this.state.exprAllowed=!1}}{addExtra(t,e,r){if(!t)return;(t.extra=t.extra||{})[e]=r}isRelational(t){return this.match(u.relational)&&this.state.value===t}expectRelational(t){this.isRelational(t)?this.next():this.unexpected(null,u.relational)}isContextual(t){return this.match(u.name)&&this.state.value===t&&!this.state.containsEsc}isUnparsedContextual(t,e){const r=t+e.length;return this.input.slice(t,r)===e&&(r===this.input.length||!_(this.input.charCodeAt(r)))}isLookaheadContextual(t){const e=this.nextTokenStart();return this.isUnparsedContextual(e,t)}eatContextual(t){return this.isContextual(t)&&this.eat(u.name)}expectContextual(t,e){this.eatContextual(t)||this.unexpected(null,e)}canInsertSemicolon(){return this.match(u.eof)||this.match(u.braceR)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return h.test(this.input.slice(this.state.lastTokEnd,this.state.start))}isLineTerminator(){return this.eat(u.semi)||this.canInsertSemicolon()}semicolon(){this.isLineTerminator()||this.unexpected(null,u.semi)}expect(t,e){this.eat(t)||this.unexpected(e,t)}assertNoSpace(t="Unexpected space."){this.state.start>this.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 r={node:null};try{const s=t(((t=null)=>{throw r.node=t,r}));if(this.state.errors.length>e.errors.length){const t=this.state;return this.state=e,{node:s,error:t.errors[e.errors.length],thrown:!1,aborted:!1,failState:t}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(t){const s=this.state;if(this.state=e,t instanceof SyntaxError)return{node:null,error:t,thrown:!0,aborted:!1,failState:s};if(t===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:s};throw t}}checkExpressionErrors(t,e){if(!t)return!1;const{shorthandAssign:r,doubleProto:s}=t;if(!e)return r>=0||s>=0;r>=0&&this.unexpected(r),s>=0&&this.raise(s,x.DuplicateProto)}isLiteralPropertyName(){return this.match(u.name)||!!this.state.type.keyword||this.match(u.string)||this.match(u.num)||this.match(u.bigint)||this.match(u.decimal)}}{startNode(){return new kt(this,this.state.start,this.state.startLoc)}startNodeAt(t,e){return new kt(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,r,s){return t.type=e,t.end=r,t.loc.end=s,this.options.ranges&&(t.range[1]=r),this.processComment(t),t}resetStartLocation(t,e,r){t.start=e,t.loc.start=r,this.options.ranges&&(t.range[0]=e)}resetEndLocation(t,e=this.state.lastTokEnd,r=this.state.lastTokEndLoc){t.end=e,t.loc.end=r,this.options.ranges&&(t.range[1]=e)}resetStartLocationFromNode(t,e){this.resetStartLocation(t,e.start,e.loc.start)}}{toAssignable(t,e=!1){var r,s;let n;switch(("ParenthesizedExpression"===t.type||(null==(r=t.extra)?void 0:r.parenthesized))&&(n=Ct(t),e?"Identifier"===n.type?this.expressionScope.recordParenthesizedIdentifierError(t.start,x.InvalidParenthesizedAssignment):"MemberExpression"!==n.type&&this.raise(t.start,x.InvalidParenthesizedAssignment):this.raise(t.start,x.InvalidParenthesizedAssignment)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":break;case"ObjectExpression":t.type="ObjectPattern";for(let r=0,s=t.properties.length,n=s-1;r<s;r++){var i;const s=t.properties[r],o=r===n;this.toAssignableObjectExpressionProp(s,o,e),o&&"RestElement"===s.type&&(null==(i=t.extra)?void 0:i.trailingComma)&&this.raiseRestNotLast(t.extra.trailingComma)}break;case"ObjectProperty":this.toAssignable(t.value,e);break;case"SpreadElement":{this.checkToRestConversion(t),t.type="RestElement";const r=t.argument;this.toAssignable(r,e);break}case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,null==(s=t.extra)?void 0:s.trailingComma,e);break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,x.MissingEqInAssignment),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(n,e)}return t}toAssignableObjectExpressionProp(t,e,r){if("ObjectMethod"===t.type){const e="get"===t.kind||"set"===t.kind?x.PatternHasAccessor:x.PatternHasMethod;this.raise(t.key.start,e)}else"SpreadElement"!==t.type||e?this.toAssignable(t,r):this.raiseRestNotLast(t.start)}toAssignableList(t,e,r){let s=t.length;if(s){const n=t[s-1];if("RestElement"===(null==n?void 0:n.type))--s;else if("SpreadElement"===(null==n?void 0:n.type)){n.type="RestElement";let t=n.argument;this.toAssignable(t,r),t=Ct(t),"Identifier"!==t.type&&"MemberExpression"!==t.type&&"ArrayPattern"!==t.type&&"ObjectPattern"!==t.type&&this.unexpected(t.start),e&&this.raiseTrailingCommaAfterRest(e),--s}}for(let e=0;e<s;e++){const s=t[e];s&&(this.toAssignable(s,r),"RestElement"===s.type&&this.raiseRestNotLast(s.start))}return t}toReferencedList(t,e){return t}toReferencedListDeep(t,e){this.toReferencedList(t,e);for(let e=0;e<t.length;e++){const r=t[e];"ArrayExpression"===(null==r?void 0:r.type)&&this.toReferencedListDeep(r.elements)}}parseSpread(t,e){const r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0,e),this.finishNode(r,"SpreadElement")}parseRestBinding(){const t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case u.bracketL:{const t=this.startNode();return this.next(),t.elements=this.parseBindingList(u.bracketR,93,!0),this.finishNode(t,"ArrayPattern")}case u.braceL:return this.parseObjectLike(u.braceR,!0)}return this.parseIdentifier()}parseBindingList(t,e,r,s){const n=[];let i=!0;for(;!this.eat(t);)if(i?i=!1:this.expect(u.comma),r&&this.match(u.comma))n.push(null);else{if(this.eat(t))break;if(this.match(u.ellipsis)){n.push(this.parseAssignableListItemTypes(this.parseRestBinding())),this.checkCommaAfterRest(e),this.expect(t);break}{const t=[];for(this.match(u.at)&&this.hasPlugin("decorators")&&this.raise(this.state.start,x.UnsupportedParameterDecorator);this.match(u.at);)t.push(this.parseDecorator());n.push(this.parseAssignableListItem(s,t))}}return n}parseAssignableListItem(t,e){const r=this.parseMaybeDefault();this.parseAssignableListItemTypes(r);const s=this.parseMaybeDefault(r.start,r.loc.start,r);return e.length&&(r.decorators=e),s}parseAssignableListItemTypes(t){return t}parseMaybeDefault(t,e,r){var s,n,i;if(e=null!=(s=e)?s:this.state.startLoc,t=null!=(n=t)?n:this.state.start,r=null!=(i=r)?i:this.parseBindingAtom(),!this.eat(u.eq))return r;const o=this.startNodeAt(t,e);return o.left=r,o.right=this.parseMaybeAssignAllowIn(),this.finishNode(o,"AssignmentPattern")}checkLVal(t,e,r=64,s,n,i=!1){switch(t.type){case"Identifier":{const{name:e}=t;this.state.strict&&(i?U(e,this.inModule):B(e))&&this.raise(t.start,64===r?x.StrictEvalArguments:x.StrictEvalArgumentsBinding,e),s&&(s.has(e)?this.raise(t.start,x.ParamDupe):s.add(e)),n&&"let"===e&&this.raise(t.start,x.LetInLexicalBinding),64&r||this.scope.declareName(e,r,t.start);break}case"MemberExpression":64!==r&&this.raise(t.start,x.InvalidPropertyBindingPattern);break;case"ObjectPattern":for(let e=0,i=t.properties;e<i.length;e++){let t=i[e];if("ObjectProperty"===t.type)t=t.value;else if("ObjectMethod"===t.type)continue;this.checkLVal(t,"object destructuring pattern",r,s,n)}break;case"ArrayPattern":for(let e=0,i=t.elements;e<i.length;e++){const t=i[e];t&&this.checkLVal(t,"array destructuring pattern",r,s,n)}break;case"AssignmentPattern":this.checkLVal(t.left,"assignment pattern",r,s);break;case"RestElement":this.checkLVal(t.argument,"rest element",r,s);break;case"ParenthesizedExpression":this.checkLVal(t.expression,"parenthesized expression",r,s);break;default:this.raise(t.start,64===r?x.InvalidLhs:x.InvalidLhsBinding,e)}}checkToRestConversion(t){"Identifier"!==t.argument.type&&"MemberExpression"!==t.argument.type&&this.raise(t.argument.start,x.InvalidRestAssignmentPattern)}checkCommaAfterRest(t){this.match(u.comma)&&(this.lookaheadCharCode()===t?this.raiseTrailingCommaAfterRest(this.state.start):this.raiseRestNotLast(this.state.start))}raiseRestNotLast(t){throw this.raise(t,x.ElementAfterRest)}raiseTrailingCommaAfterRest(t){this.raise(t,x.RestTrailingComma)}}{checkProto(t,e,r,s){if("SpreadElement"===t.type||"ObjectMethod"===t.type||t.computed||t.shorthand)return;const n=t.key;if("__proto__"===("Identifier"===n.type?n.name:n.value)){if(e)return void this.raise(n.start,x.RecordNoProto);r.used&&(s?-1===s.doubleProto&&(s.doubleProto=n.start):this.raise(n.start,x.DuplicateProto)),r.used=!0}}shouldExitDescending(t,e){return"ArrowFunctionExpression"===t.type&&t.start===e}getExpression(){let t=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t),this.nextToken();const e=this.parseExpression();return this.match(u.eof)||this.unexpected(),e.comments=this.state.comments,e.errors=this.state.errors,e}parseExpression(t,e){return t?this.disallowInAnd((()=>this.parseExpressionBase(e))):this.allowInAnd((()=>this.parseExpressionBase(e)))}parseExpressionBase(t){const e=this.state.start,r=this.state.startLoc,s=this.parseMaybeAssign(t);if(this.match(u.comma)){const n=this.startNodeAt(e,r);for(n.expressions=[s];this.eat(u.comma);)n.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return s}parseMaybeAssignDisallowIn(t,e,r){return this.disallowInAnd((()=>this.parseMaybeAssign(t,e,r)))}parseMaybeAssignAllowIn(t,e,r){return this.allowInAnd((()=>this.parseMaybeAssign(t,e,r)))}parseMaybeAssign(t,e,r){const s=this.state.start,n=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,s,n)),t}let i;t?i=!1:(t=new Et,i=!0),(this.match(u.parenL)||this.match(u.name))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t,r);if(e&&(o=e.call(this,o,s,n)),this.state.type.isAssign){const e=this.startNodeAt(s,n),r=this.state.value;return e.operator=r,this.match(u.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 i&&this.checkExpressionErrors(t,!0),o}parseMaybeConditional(t,e){const r=this.state.start,s=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprOps(t);return this.shouldExitDescending(i,n)?i:this.parseConditional(i,r,s,e)}parseConditional(t,e,r,s){if(this.eat(u.question)){const s=this.startNodeAt(e,r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(u.colon),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseExprOps(t){const e=this.state.start,r=this.state.startLoc,s=this.state.potentialArrowAt,n=this.parseMaybeUnary(t);return this.shouldExitDescending(n,s)?n:this.parseExprOp(n,e,r,-1)}parseExprOp(t,e,r,s){let n=this.state.type.binop;if(null!=n&&(this.prodParam.hasIn||!this.match(u._in))&&n>s){const i=this.state.type;if(i===u.pipeline){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.state.inPipeline=!0,this.checkPipelineAtInfixOperator(t,e)}const o=this.startNodeAt(e,r);o.left=t,o.operator=this.state.value,i!==u.exponent||"UnaryExpression"!==t.type||!this.options.createParenthesizedExpressions&&t.extra&&t.extra.parenthesized||this.raise(t.argument.start,x.UnexpectedTokenUnaryExponentiation);const a=i===u.logicalOR||i===u.logicalAND,c=i===u.nullishCoalescing;if(c&&(n=u.logicalAND.binop),this.next(),i===u.pipeline&&"minimal"===this.getPluginOption("pipelineOperator","proposal")&&this.match(u.name)&&"await"===this.state.value&&this.prodParam.hasAwait)throw this.raise(this.state.start,x.UnexpectedAwaitAfterPipelineBody);o.right=this.parseExprOpRightExpr(i,n),this.finishNode(o,a||c?"LogicalExpression":"BinaryExpression");const l=this.state.type;if(c&&(l===u.logicalOR||l===u.logicalAND)||a&&l===u.nullishCoalescing)throw this.raise(this.state.start,x.MixingCoalesceWithLogical);return this.parseExprOp(o,e,r,s)}return t}parseExprOpRightExpr(t,e){const r=this.state.start,s=this.state.startLoc;switch(t){case u.pipeline:switch(this.getPluginOption("pipelineOperator","proposal")){case"smart":return this.withTopicPermittingContext((()=>this.parseSmartPipelineBody(this.parseExprOpBaseRightExpr(t,e),r,s)));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(e)))}default:return this.parseExprOpBaseRightExpr(t,e)}}parseExprOpBaseRightExpr(t,e){const r=this.state.start,s=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnary(),r,s,t.rightAssociative?e-1:e)}parseMaybeUnary(t){if(this.isContextual("await")&&this.isAwaitAllowed())return this.parseAwait();const e=this.match(u.incDec),r=this.startNode();if(this.state.type.prefix){r.operator=this.state.value,r.prefix=!0,this.match(u._throw)&&this.expectPlugin("throwExpressions");const s=this.match(u._delete);if(this.next(),r.argument=this.parseMaybeUnary(),this.checkExpressionErrors(t,!0),this.state.strict&&s){const t=r.argument;"Identifier"===t.type?this.raise(r.start,x.StrictDelete):"MemberExpression"!==t.type&&"OptionalMemberExpression"!==t.type||"PrivateName"!==t.property.type||this.raise(r.start,x.DeletePrivateField)}if(!e)return this.finishNode(r,"UnaryExpression")}return this.parseUpdate(r,e,t)}parseUpdate(t,e,r){if(e)return this.checkLVal(t.argument,"prefix operation"),this.finishNode(t,"UpdateExpression");const s=this.state.start,n=this.state.startLoc;let i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;this.state.type.postfix&&!this.canInsertSemicolon();){const t=this.startNodeAt(s,n);t.operator=this.state.value,t.prefix=!1,t.argument=i,this.checkLVal(i,"postfix operation"),this.next(),i=this.finishNode(t,"UpdateExpression")}return i}parseExprSubscripts(t){const e=this.state.start,r=this.state.startLoc,s=this.state.potentialArrowAt,n=this.parseExprAtom(t);return this.shouldExitDescending(n,s)?n:this.parseSubscripts(n,e,r)}parseSubscripts(t,e,r,s){const n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do{t=this.parseSubscript(t,e,r,s,n),n.maybeAsyncArrow=!1}while(!n.stop);return t}parseSubscript(t,e,r,s,n){if(!s&&this.eat(u.doubleColon))return this.parseBind(t,e,r,s,n);if(this.match(u.backQuote))return this.parseTaggedTemplateExpression(t,e,r,n);let i=!1;if(this.match(u.questionDot)){if(n.optionalChainMember=i=!0,s&&40===this.lookaheadCharCode())return n.stop=!0,t;this.next()}return!s&&this.match(u.parenL)?this.parseCoverCallAndAsyncArrowHead(t,e,r,n,i):i||this.match(u.bracketL)||this.eat(u.dot)?this.parseMember(t,e,r,n,i):(n.stop=!0,t)}parseMember(t,e,r,s,n){const i=this.startNodeAt(e,r),o=this.eat(u.bracketL);i.object=t,i.computed=o;const a=o?this.parseExpression():this.parseMaybePrivateName(!0);return"PrivateName"===a.type&&("Super"===i.object.type&&this.raise(e,x.SuperPrivateField),this.classScope.usePrivateName(a.id.name,a.start)),i.property=a,o&&this.expect(u.bracketR),s.optionalChainMember?(i.optional=n,this.finishNode(i,"OptionalMemberExpression")):this.finishNode(i,"MemberExpression")}parseBind(t,e,r,s,n){const i=this.startNodeAt(e,r);return i.object=t,i.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),e,r,s)}parseCoverCallAndAsyncArrowHead(t,e,r,s,n){const i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(e,r);return o.callee=t,s.maybeAsyncArrow&&this.expressionScope.enter(new It(2)),s.optionalChainMember&&(o.optional=n),o.arguments=n?this.parseCallExpressionArguments(u.parenR,!1):this.parseCallExpressionArguments(u.parenR,s.maybeAsyncArrow,"Import"===t.type,"Super"!==t.type,o),this.finishCallExpression(o,s.optionalChainMember),s.maybeAsyncArrow&&this.shouldParseAsyncArrow()&&!n?(s.stop=!0,this.expressionScope.validateAsPattern(),this.expressionScope.exit(),o=this.parseAsyncArrowFromCallExpression(this.startNodeAt(e,r),o)):(s.maybeAsyncArrow&&this.expressionScope.exit(),this.toReferencedArguments(o)),this.state.maybeInArrowParameters=i,o}toReferencedArguments(t,e){this.toReferencedListDeep(t.arguments,e)}parseTaggedTemplateExpression(t,e,r,s){const n=this.startNodeAt(e,r);return n.tag=t,n.quasi=this.parseTemplate(!0),s.optionalChainMember&&this.raise(e,x.OptionalChainingNoTemplate),this.finishNode(n,"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,x.ImportCallArity,this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?"one or two arguments":"one argument");else for(let e=0,r=t.arguments;e<r.length;e++){const t=r[e];"SpreadElement"===t.type&&this.raise(t.start,x.ImportCallSpreadArgument)}return this.finishNode(t,e?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,e,r,s,n){const i=[];let o=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(u.comma),this.match(t)){!r||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(this.state.lastTokStart,x.ImportCallArgumentTrailingComma),n&&this.addExtra(n,"trailingComma",this.state.lastTokStart),this.next();break}i.push(this.parseExprListItem(!1,e?new Et:void 0,e?{start:0}:void 0,s))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(u.arrow)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,e){var r;return this.expect(u.arrow),this.parseArrowExpression(t,e.arguments,!0,null==(r=e.extra)?void 0:r.trailingComma),t}parseNoCallExpr(){const t=this.state.start,e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,e,!0)}parseExprAtom(t){this.state.type===u.slash&&this.readRegexp();const e=this.state.potentialArrowAt===this.state.start;let r;switch(this.state.type){case u._super:return this.parseSuper();case u._import:return r=this.startNode(),this.next(),this.match(u.dot)?this.parseImportMetaProperty(r):(this.match(u.parenL)||this.raise(this.state.lastTokStart,x.UnsupportedImport),this.finishNode(r,"Import"));case u._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case u.name:{const t=this.state.containsEsc,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){if(this.match(u._function)){const t=this.state.context.length-1;if(this.state.context[t]!==P.functionStatement)throw new Error("Internal error");return this.state.context[t]=P.functionExpression,this.next(),this.parseFunction(this.startNodeAtNode(r),void 0,!0)}if(this.match(u.name))return this.parseAsyncArrowUnaryFunction(r)}return e&&this.match(u.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}case u._do:return this.parseDo();case u.regexp:{const t=this.state.value;return r=this.parseLiteral(t.value,"RegExpLiteral"),r.pattern=t.pattern,r.flags=t.flags,r}case u.num:return this.parseLiteral(this.state.value,"NumericLiteral");case u.bigint:return this.parseLiteral(this.state.value,"BigIntLiteral");case u.decimal:return this.parseLiteral(this.state.value,"DecimalLiteral");case u.string:return this.parseLiteral(this.state.value,"StringLiteral");case u._null:return r=this.startNode(),this.next(),this.finishNode(r,"NullLiteral");case u._true:case u._false:return this.parseBooleanLiteral();case u.parenL:return this.parseParenAndDistinguishExpression(e);case u.bracketBarL:case u.bracketHashL:return this.parseArrayLike(this.state.type===u.bracketBarL?u.bracketBarR:u.bracketR,!1,!0,t);case u.bracketL:return this.parseArrayLike(u.bracketR,!0,!1,t);case u.braceBarL:case u.braceHashL:return this.parseObjectLike(this.state.type===u.braceBarL?u.braceBarR:u.braceR,!1,!0,t);case u.braceL:return this.parseObjectLike(u.braceR,!1,!1,t);case u._function:return this.parseFunctionOrFunctionSent();case u.at:this.parseDecorators();case u._class:return r=this.startNode(),this.takeDecorators(r),this.parseClass(r,!1);case u._new:return this.parseNewOrNewTarget();case u.backQuote:return this.parseTemplate(!1);case u.doubleColon:{r=this.startNode(),this.next(),r.object=null;const t=r.callee=this.parseNoCallExpr();if("MemberExpression"===t.type)return this.finishNode(r,"BindExpression");throw this.raise(t.start,x.UnsupportedBind)}case u.hash:{if(this.state.inPipeline)return r=this.startNode(),"smart"!==this.getPluginOption("pipelineOperator","proposal")&&this.raise(r.start,x.PrimaryTopicRequiresSmartPipeline),this.next(),this.primaryTopicReferenceIsAllowedInCurrentTopicContext()||this.raise(r.start,x.PrimaryTopicNotAllowed),this.registerTopicReference(),this.finishNode(r,"PipelinePrimaryTopicReference");const t=this.input.codePointAt(this.state.end);if(I(t)||92===t){const t=this.state.start;if(r=this.parseMaybePrivateName(!0),this.match(u._in))this.expectPlugin("privateIn"),this.classScope.usePrivateName(r.id.name,r.start);else{if(!this.hasPlugin("privateIn"))throw this.unexpected(t);this.raise(this.state.start,x.PrivateInExpectedIn,r.id.name)}return r}}case u.relational:if("<"===this.state.value){const t=this.input.codePointAt(this.nextTokenStart());(I(t)||62===t)&&this.expectOnePlugin(["jsx","flow","typescript"])}default:throw this.unexpected()}}parseAsyncArrowUnaryFunction(t){const e=this.startNodeAtNode(t);this.prodParam.enter(lt(!0,this.prodParam.hasYield));const r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(this.state.pos,x.LineTerminatorBeforeArrow),this.expect(u.arrow),this.parseArrowExpression(e,r,!0),e}parseDo(){this.expectPlugin("doExpressions");const t=this.startNode();this.next();const e=this.state.labels;return this.state.labels=[],t.body=this.parseBlock(),this.state.labels=e,this.finishNode(t,"DoExpression")}parseSuper(){const t=this.startNode();return this.next(),!this.match(u.parenL)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(t.start,x.UnexpectedSuper):this.raise(t.start,x.SuperNotAllowed),this.match(u.parenL)||this.match(u.bracketL)||this.match(u.dot)||this.raise(t.start,x.UnsupportedSuper),this.finishNode(t,"Super")}parseBooleanLiteral(){const t=this.startNode();return t.value=this.match(u._true),this.next(),this.finishNode(t,"BooleanLiteral")}parseMaybePrivateName(t){if(this.match(u.hash)){this.expectOnePlugin(["classPrivateProperties","classPrivateMethods"]),t||this.raise(this.state.pos,x.UnexpectedPrivateField);const e=this.startNode();return this.next(),this.assertNoSpace("Unexpected space between # and identifier"),e.id=this.parseIdentifier(!0),this.finishNode(e,"PrivateName")}return this.parseIdentifier(!0)}parseFunctionOrFunctionSent(){const t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(u.dot)){const e=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.parseMetaProperty(t,e,"sent")}return this.parseFunction(t)}parseMetaProperty(t,e,r){t.meta=e,"function"===e.name&&"sent"===r&&(this.isContextual(r)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected());const s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==r||s)&&this.raise(t.property.start,x.UnsupportedMetaProperty,e.name,r),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){const e=this.createIdentifier(this.startNodeAtNode(t),"import");return this.next(),this.isContextual("meta")&&(this.inModule||this.raiseWithData(e.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},x.ImportMetaOutsideModule),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,e,"meta")}parseLiteral(t,e,r,s){r=r||this.state.start,s=s||this.state.startLoc;const n=this.startNodeAt(r,s);return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(r,this.state.end)),n.value=t,this.next(),this.finishNode(n,e)}parseParenAndDistinguishExpression(t){const e=this.state.start,r=this.state.startLoc;let s;this.next(),this.expressionScope.enter(new It(1));const n=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const o=this.state.start,a=this.state.startLoc,c=[],l=new Et,h={start:0};let p,d,f=!0;for(;!this.match(u.parenR);){if(f)f=!1;else if(this.expect(u.comma,h.start||null),this.match(u.parenR)){d=this.state.start;break}if(this.match(u.ellipsis)){const t=this.state.start,e=this.state.startLoc;p=this.state.start,c.push(this.parseParenItem(this.parseRestBinding(),t,e)),this.checkCommaAfterRest(41);break}c.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem,h))}const m=this.state.lastTokEnd,y=this.state.lastTokEndLoc;this.expect(u.parenR),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=i;let g=this.startNodeAt(e,r);if(t&&this.shouldParseArrow()&&(g=this.parseArrow(g)))return this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(g,c,!1),g;if(this.expressionScope.exit(),c.length||this.unexpected(this.state.lastTokStart),d&&this.unexpected(d),p&&this.unexpected(p),this.checkExpressionErrors(l,!0),h.start&&this.unexpected(h.start),this.toReferencedListDeep(c,!0),c.length>1?(s=this.startNodeAt(o,a),s.expressions=c,this.finishNodeAt(s,"SequenceExpression",m,y)):s=c[0],!this.options.createParenthesizedExpressions)return this.addExtra(s,"parenthesized",!0),this.addExtra(s,"parenStart",e),s;const v=this.startNodeAt(e,r);return v.expression=s,this.finishNode(v,"ParenthesizedExpression"),v}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(u.arrow))return t}parseParenItem(t,e,r){return t}parseNewOrNewTarget(){const t=this.startNode();if(this.next(),this.match(u.dot)){const e=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();const r=this.parseMetaProperty(t,e,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass){let t=x.UnexpectedNewTarget;this.hasPlugin("classProperties")&&(t+=" or class properties"),this.raise(r.start,t)}return r}return this.parseNew(t)}parseNew(t){return t.callee=this.parseNoCallExpr(),"Import"===t.callee.type?this.raise(t.callee.start,x.ImportCallNotNewExpression):"OptionalMemberExpression"===t.callee.type||"OptionalCallExpression"===t.callee.type?this.raise(this.state.lastTokEnd,x.OptionalChainingNoNew):this.eat(u.questionDot)&&this.raise(this.state.start,x.OptionalChainingNoNew),this.parseNewArguments(t),this.finishNode(t,"NewExpression")}parseNewArguments(t){if(this.eat(u.parenL)){const e=this.parseExprList(u.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,x.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(u.backQuote),this.finishNode(e,"TemplateElement")}parseTemplate(t){const e=this.startNode();this.next(),e.expressions=[];let r=this.parseTemplateElement(t);for(e.quasis=[r];!r.tail;)this.expect(u.dollarBraceL),e.expressions.push(this.parseTemplateSubstitution()),this.expect(u.braceR),e.quasis.push(r=this.parseTemplateElement(t));return this.next(),this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=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(u.comma),this.match(t)){this.addExtra(a,"trailingComma",this.state.lastTokStart);break}const n=this.parsePropertyDefinition(e,s);e||this.checkProto(n,r,i,s),r&&"ObjectProperty"!==n.type&&"SpreadElement"!==n.type&&this.raise(n.start,x.InvalidRecordProperty),n.shorthand&&this.addExtra(n,"shorthand",!0),a.properties.push(n)}this.state.exprAllowed=!1,this.next(),this.state.inFSharpPipelineDirectBody=n;let c="ObjectExpression";return e?c="ObjectPattern":r&&(c="RecordExpression"),this.finishNode(a,c)}maybeAsyncOrAccessorProp(t){return!t.computed&&"Identifier"===t.key.type&&(this.isLiteralPropertyName()||this.match(u.bracketL)||this.match(u.star))}parsePropertyDefinition(t,e){let r=[];if(this.match(u.at))for(this.hasPlugin("decorators")&&this.raise(this.state.start,x.UnsupportedPropertyDecorator);this.match(u.at);)r.push(this.parseDecorator());const s=this.startNode();let n,i,o=!1,a=!1,c=!1;if(this.match(u.ellipsis))return r.length&&this.unexpected(),t?(this.next(),s.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(s,"RestElement")):this.parseSpread();r.length&&(s.decorators=r,r=[]),s.method=!1,(t||e)&&(n=this.state.start,i=this.state.startLoc),t||(o=this.eat(u.star));const l=this.state.containsEsc,h=this.parsePropertyName(s,!1);if(!t&&!o&&!l&&this.maybeAsyncOrAccessorProp(s)){const t=h.name;"async"!==t||this.hasPrecedingLineBreak()||(a=!0,o=this.eat(u.star),this.parsePropertyName(s,!1)),"get"!==t&&"set"!==t||(c=!0,s.kind=t,this.match(u.star)&&(o=!0,this.raise(this.state.pos,x.AccessorIsGenerator,t),this.next()),this.parsePropertyName(s,!1))}return this.parseObjPropValue(s,n,i,o,a,t,c,e),s}getGetterSetterExpectedParamCount(t){return"get"===t.kind?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;const r=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t),n=t.start;s.length!==r&&("get"===t.kind?this.raise(n,x.BadGetterArity):this.raise(n,x.BadSetterArity)),"set"===t.kind&&"RestElement"===(null==(e=s[s.length-1])?void 0:e.type)&&this.raise(n,x.BadSetterRestParameter)}parseObjectMethod(t,e,r,s,n){return n?(this.parseMethod(t,e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t):r||e||this.match(u.parenL)?(s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,r,!1,!1,"ObjectMethod")):void 0}parseObjectProperty(t,e,r,s,n){return t.shorthand=!1,this.eat(u.colon)?(t.value=s?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(n),this.finishNode(t,"ObjectProperty")):t.computed||"Identifier"!==t.key.type?void 0:(this.checkReservedWord(t.key.name,t.key.start,!0,!1),s?t.value=this.parseMaybeDefault(e,r,t.key.__clone()):this.match(u.eq)&&n?(-1===n.shorthandAssign&&(n.shorthandAssign=this.state.start),t.value=this.parseMaybeDefault(e,r,t.key.__clone())):t.value=t.key.__clone(),t.shorthand=!0,this.finishNode(t,"ObjectProperty"))}parseObjPropValue(t,e,r,s,n,i,o,a){const c=this.parseObjectMethod(t,s,n,i,o)||this.parseObjectProperty(t,e,r,i,a);return c||this.unexpected(),c}parsePropertyName(t,e){if(this.eat(u.bracketL))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(u.bracketR);else{const r=this.state.inPropertyName;this.state.inPropertyName=!0,t.key=this.match(u.num)||this.match(u.string)||this.match(u.bigint)||this.match(u.decimal)?this.parseExprAtom():this.parseMaybePrivateName(e),"PrivateName"!==t.key.type&&(t.computed=!1),this.state.inPropertyName=r}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=!!e}parseMethod(t,e,r,s,n,i,o=!1){this.initFunction(t,r),t.generator=!!e;const a=s;return this.scope.enter(18|(o?64:0)|(n?32:0)),this.prodParam.enter(lt(r,t.generator)),this.parseFunctionParams(t,a),this.parseFunctionBodyAndFinish(t,i,!0),this.prodParam.exit(),this.scope.exit(),t}parseArrayLike(t,e,r,s){r&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(t,!r,s,i),this.state.inFSharpPipelineDirectBody=n,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,r,s){this.scope.enter(6);let n=lt(r,!1);!this.match(u.bracketL)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,r);const i=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=i,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,r){t.params=this.toAssignableList(e,r,!1)}parseFunctionBodyAndFinish(t,e,r=!1){this.parseFunctionBody(t,!1,r),this.finishNode(t,e)}parseFunctionBody(t,e,r=!1){const s=e&&!this.match(u.braceL);if(this.expressionScope.enter(Ot()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else{const s=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),t.body=this.parseBlock(!0,!1,(n=>{const i=!this.isSimpleParamList(t.params);if(n&&i){const e="method"!==t.kind&&"constructor"!==t.kind||!t.key?t.start:t.key.end;this.raise(e,x.IllegalLanguageModeDirective)}const o=!s&&this.state.strict;this.checkParams(t,!(this.state.strict||e||r||i),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=n}}isSimpleParamList(t){for(let e=0,r=t.length;e<r;e++)if("Identifier"!==t[e].type)return!1;return!0}checkParams(t,e,r,s=!0){const n=new Set;for(let r=0,i=t.params;r<i.length;r++){const t=i[r];this.checkLVal(t,"function parameter list",5,e?null:n,void 0,s)}}parseExprList(t,e,r,s){const n=[];let i=!0;for(;!this.eat(t);){if(i)i=!1;else if(this.expect(u.comma),this.match(t)){s&&this.addExtra(s,"trailingComma",this.state.lastTokStart),this.next();break}n.push(this.parseExprListItem(e,r))}return n}parseExprListItem(t,e,r,s){let n;if(this.match(u.comma))t||this.raise(this.state.pos,x.UnexpectedToken,","),n=null;else if(this.match(u.ellipsis)){const t=this.state.start,s=this.state.startLoc;n=this.parseParenItem(this.parseSpread(e,r),t,s)}else if(this.match(u.question)){this.expectPlugin("partialApplication"),s||this.raise(this.state.start,x.UnexpectedArgumentPlaceholder);const t=this.startNode();this.next(),n=this.finishNode(t,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowIn(e,this.parseParenItem,r);return n}parseIdentifier(t){const e=this.startNode(),r=this.parseIdentifierName(e.start,t);return this.createIdentifier(e,r)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t,e){let r;const{start:s,type:n}=this.state;if(n===u.name)r=this.state.value;else{if(!n.keyword)throw this.unexpected();{r=n.keyword;const t=this.curContext();n!==u._class&&n!==u._function||t!==P.functionStatement&&t!==P.functionExpression||this.state.context.pop()}}return e?this.state.type=u.name:this.checkReservedWord(r,s,!!n.keyword,!1),this.next(),r}checkReservedWord(t,e,r,s){if(this.prodParam.hasYield&&"yield"===t)return void this.raise(e,x.YieldBindingIdentifier);if("await"===t){if(this.prodParam.hasAwait)return void this.raise(e,x.AwaitBindingIdentifier);this.expressionScope.recordAsyncArrowParametersError(e,x.AwaitBindingIdentifier)}if(this.scope.inClass&&!this.scope.inNonArrowFunction&&"arguments"===t)return void this.raise(e,x.ArgumentsInClass);if(r&&V(t))return void this.raise(e,x.UnexpectedKeyword,t);(this.state.strict?s?U:F:j)(t,this.inModule)&&(this.prodParam.hasAwait||"await"!==t?this.raise(e,x.UnexpectedReservedWord,t):this.raise(e,this.hasPlugin("topLevelAwait")?x.AwaitNotInAsyncContext:x.AwaitNotInAsyncFunction))}isAwaitAllowed(){return this.scope.inFunction?this.prodParam.hasAwait:!!this.options.allowAwaitOutsideFunction||!!this.hasPlugin("topLevelAwait")&&(this.inModule&&this.prodParam.hasAwait)}parseAwait(){const t=this.startNode();return this.next(),this.expressionScope.recordParameterInitializerError(t.start,x.AwaitExpressionFormalParameter),this.eat(u.star)&&this.raise(t.start,x.ObsoleteAwaitStar),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.hasPrecedingLineBreak()||this.match(u.plusMin)||this.match(u.parenL)||this.match(u.bracketL)||this.match(u.backQuote)||this.match(u.regexp)||this.match(u.slash)||this.hasPlugin("v8intrinsic")&&this.match(u.modulo)?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary()),this.finishNode(t,"AwaitExpression")}parseYield(){const t=this.startNode();return this.expressionScope.recordParameterInitializerError(t.start,x.YieldInParameter),this.next(),this.match(u.semi)||!this.match(u.star)&&!this.state.type.startsExpr||this.hasPrecedingLineBreak()?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(u.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){"smart"===this.getPluginOption("pipelineOperator","proposal")&&"SequenceExpression"===t.type&&this.raise(e,x.PipelineHeadSequenceExpression)}parseSmartPipelineBody(t,e,r){return this.checkSmartPipelineBodyEarlyErrors(t,e),this.parseSmartPipelineBodyInStyle(t,e,r)}checkSmartPipelineBodyEarlyErrors(t,e){if(this.match(u.arrow))throw this.raise(this.state.start,x.PipelineBodyNoArrow);"SequenceExpression"===t.type&&this.raise(e,x.PipelineBodySequenceExpression)}parseSmartPipelineBodyInStyle(t,e,r){const s=this.startNodeAt(e,r),n=this.isSimpleReference(t);return n?s.callee=t:(this.topicReferenceWasUsedInCurrentTopicContext()||this.raise(e,x.PipelineTopicUnused),s.expression=t),this.finishNode(s,n?"PipelineBareFunction":"PipelineTopicExpression")}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}withTopicPermittingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withTopicForbiddingContext(t){const e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e}}withSoloAwaitPermittingContext(t){const e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e}}allowInAnd(t){const e=this.prodParam.currentFlags();if(8&~e){this.prodParam.enter(8|e);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){const e=this.prodParam.currentFlags();if(8&e){this.prodParam.enter(-9&e);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}primaryTopicReferenceIsAllowedInCurrentTopicContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentTopicContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){const e=this.state.start,r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const n=this.parseExprOp(this.parseMaybeUnary(),e,r,t);return this.state.inFSharpPipelineDirectBody=s,n}}{parseTopLevel(t,e){if(e.sourceType=this.options.sourceType,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,u.eof),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let t=0,e=Array.from(this.scope.undefinedExports);t<e.length;t++){const[r]=e[t],s=this.scope.undefinedExports.get(r);this.raise(s,x.ModuleExportUndefined,r)}return t.program=this.finishNode(e,"Program"),t.comments=this.state.comments,this.options.tokens&&(t.tokens=this.tokens),this.finishNode(t,"File")}stmtToDirective(t){const e=t.expression,r=this.startNodeAt(e.start,e.loc.start),s=this.startNodeAt(t.start,t.loc.start),n=this.input.slice(e.start,e.end),i=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",i),s.value=this.finishNodeAt(r,"DirectiveLiteral",e.end,e.loc.end),this.finishNodeAt(s,"Directive",t.end,t.loc.end)}parseInterpreterDirective(){if(!this.match(u.interpreterDirective))return null;const t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(t){if(!this.isContextual("let"))return!1;const e=this.nextTokenStart(),r=this.input.charCodeAt(e);if(91===r)return!0;if(t)return!1;if(123===r)return!0;if(I(r)){let t=e+1;for(;_(this.input.charCodeAt(t));)++t;const r=this.input.slice(e,t);if(!q.test(r))return!0}return!1}parseStatement(t,e){return this.match(u.at)&&this.parseDecorators(!0),this.parseStatementContent(t,e)}parseStatementContent(t,e){let r=this.state.type;const s=this.startNode();let n;switch(this.isLet(t)&&(r=u._var,n="let"),r){case u._break:case u._continue:return this.parseBreakContinueStatement(s,r.keyword);case u._debugger:return this.parseDebuggerStatement(s);case u._do:return this.parseDoStatement(s);case u._for:return this.parseForStatement(s);case u._function:if(46===this.lookaheadCharCode())break;return t&&(this.state.strict?this.raise(this.state.start,x.StrictFunction):"if"!==t&&"label"!==t&&this.raise(this.state.start,x.SloppyFunction)),this.parseFunctionStatement(s,!1,!t);case u._class:return t&&this.unexpected(),this.parseClass(s,!0);case u._if:return this.parseIfStatement(s);case u._return:return this.parseReturnStatement(s);case u._switch:return this.parseSwitchStatement(s);case u._throw:return this.parseThrowStatement(s);case u._try:return this.parseTryStatement(s);case u._const:case u._var:return n=n||this.state.value,t&&"var"!==n&&this.raise(this.state.start,x.UnexpectedLexicalDeclaration),this.parseVarStatement(s,n);case u._while:return this.parseWhileStatement(s);case u._with:return this.parseWithStatement(s);case u.braceL:return this.parseBlock();case u.semi:return this.parseEmptyStatement(s);case u._import:{const t=this.lookaheadCharCode();if(40===t||46===t)break}case u._export:{let t;return this.options.allowImportExportEverywhere||e||this.raise(this.state.start,x.UnexpectedImportExport),this.next(),r===u._import?(t=this.parseImport(s),"ImportDeclaration"!==t.type||t.importKind&&"value"!==t.importKind||(this.sawUnambiguousESM=!0)):(t=this.parseExport(s),("ExportNamedDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&("ExportAllDeclaration"!==t.type||t.exportKind&&"value"!==t.exportKind)&&"ExportDefaultDeclaration"!==t.type||(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(s),t}default:if(this.isAsyncFunction())return t&&this.raise(this.state.start,x.AsyncFunctionInSingleStatementContext),this.next(),this.parseFunctionStatement(s,!0,!t)}const i=this.state.value,o=this.parseExpression();return r===u.name&&"Identifier"===o.type&&this.eat(u.colon)?this.parseLabeledStatement(s,i,o,t):this.parseExpressionStatement(s,o)}assertModuleNodeAllowed(t){this.options.allowImportExportEverywhere||this.inModule||this.raiseWithData(t.start,{code:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},x.ImportOutsideModule)}takeDecorators(t){const e=this.state.decoratorStack[this.state.decoratorStack.length-1];e.length&&(t.decorators=e,this.resetStartLocationFromNode(t,e[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[])}canHaveLeadingDecorator(){return this.match(u._class)}parseDecorators(t){const e=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(u.at);){const t=this.parseDecorator();e.push(t)}if(this.match(u._export))t||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,x.DecoratorExportClass);else if(!this.canHaveLeadingDecorator())throw this.raise(this.state.start,x.UnexpectedLeadingDecorator)}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);const t=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);const e=this.state.start,r=this.state.startLoc;let s;if(this.eat(u.parenL))s=this.parseExpression(),this.expect(u.parenR);else for(s=this.parseIdentifier(!1);this.eat(u.dot);){const t=this.startNodeAt(e,r);t.object=s,t.property=this.parseIdentifier(!0),t.computed=!1,s=this.finishNode(t,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(s),this.state.decoratorStack.pop()}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(u.parenL)){const e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(u.parenR,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){const r="break"===e;return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){const r="break"===e;let s;for(s=0;s<this.state.labels.length;++s){const e=this.state.labels[s];if(null==t.label||e.name===t.label.name){if(null!=e.kind&&(r||"loop"===e.kind))break;if(t.label&&r)break}}s===this.state.labels.length&&this.raise(t.start,x.IllegalBreakContinue,e)}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(u.parenL);const t=this.parseExpression();return this.expect(u.parenR),t}parseDoStatement(t){return this.next(),this.state.labels.push(Dt),t.body=this.withTopicForbiddingContext((()=>this.parseStatement("do"))),this.state.labels.pop(),this.expect(u._while),t.test=this.parseHeaderExpression(),this.eat(u.semi),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Dt);let e=-1;if(this.isAwaitAllowed()&&this.eatContextual("await")&&(e=this.state.lastTokStart),this.scope.enter(0),this.expect(u.parenL),this.match(u.semi))return e>-1&&this.unexpected(e),this.parseFor(t,null);const r=this.isLet();if(this.match(u._var)||this.match(u._const)||r){const s=this.startNode(),n=r?"let":this.state.value;return this.next(),this.parseVar(s,!0,n),this.finishNode(s,"VariableDeclaration"),(this.match(u._in)||this.isContextual("of"))&&1===s.declarations.length?this.parseForIn(t,s,e):(e>-1&&this.unexpected(e),this.parseFor(t,s))}const s=new Et,n=this.parseExpression(!0,s);if(this.match(u._in)||this.isContextual("of")){this.toAssignable(n,!0);const r=this.isContextual("of")?"for-of statement":"for-in statement";return this.checkLVal(n,r),this.parseForIn(t,n,e)}return this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,r){return this.next(),this.parseFunction(t,1|(r?0:2),e)}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.options.allowReturnOutsideFunction||this.raise(this.state.start,x.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 r,s;for(this.expect(u.braceL),this.state.labels.push(Mt),this.scope.enter(0);!this.match(u.braceR);)if(this.match(u._case)||this.match(u._default)){const t=this.match(u._case);r&&this.finishNode(r,"SwitchCase"),e.push(r=this.startNode()),r.consequent=[],this.next(),t?r.test=this.parseExpression():(s&&this.raise(this.state.lastTokStart,x.MultipleDefaultsInSwitch),s=!0,r.test=null),this.expect(u.colon)}else r?r.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),r&&this.finishNode(r,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(this.state.lastTokEnd,x.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(u._catch)){const e=this.startNode();this.next(),this.match(u.parenL)?(this.expect(u.parenL),e.param=this.parseCatchClauseParam(),this.expect(u.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(u._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,x.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(Dt),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,x.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,r,s){for(let t=0,s=this.state.labels;t<s.length;t++){s[t].name===e&&this.raise(r.start,x.LabelRedeclaration,e)}const n=this.state.type.isLoop?"loop":this.match(u._switch)?"switch":null;for(let e=this.state.labels.length-1;e>=0;e--){const r=this.state.labels[e];if(r.statementStart!==t.start)break;r.statementStart=this.state.start,r.kind=n}return this.state.labels.push({name:e,kind:n,statementStart:this.state.start}),t.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.state.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,e=!0,r){const s=this.startNode();return this.expect(u.braceL),e&&this.scope.enter(0),this.parseBlockBody(s,t,!1,u.braceR,r),e&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return"ExpressionStatement"===t.type&&"StringLiteral"===t.expression.type&&!t.expression.extra.parenthesized}parseBlockBody(t,e,r,s,n){const i=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(i,e?o:void 0,r,s,n)}parseBlockOrModuleBlockBody(t,e,r,s,n){const i=[],o=this.state.strict;let a=!1,c=!1;for(;!this.match(s);){!c&&this.state.octalPositions.length&&i.push(...this.state.octalPositions);const s=this.parseStatement(null,r);if(e&&!c&&this.isValidDirective(s)){const t=this.stmtToDirective(s);e.push(t),a||"use strict"!==t.value.value||(a=!0,this.setStrict(!0))}else c=!0,t.push(s)}if(this.state.strict&&i.length)for(let t=0;t<i.length;t++){const e=i[t];this.raise(e,x.StrictOctalLiteral)}n&&n.call(this,a),o||this.setStrict(!1),this.next()}parseFor(t,e){return t.init=e,this.expect(u.semi),t.test=this.match(u.semi)?null:this.parseExpression(),this.expect(u.semi),t.update=this.match(u.parenR)?null:this.parseExpression(),this.expect(u.parenR),t.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,r){const s=this.match(u._in);return this.next(),s?r>-1&&this.unexpected(r):t.await=r>-1,"VariableDeclaration"!==e.type||null==e.declarations[0].init||s&&!this.state.strict&&"var"===e.kind&&"Identifier"===e.declarations[0].id.type?"AssignmentPattern"===e.type&&this.raise(e.start,x.InvalidLhs,"for-loop"):this.raise(e.start,x.ForInOfLoopInitializer,s?"for-in":"for-of"),t.left=e,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(u.parenR),t.body=this.withTopicForbiddingContext((()=>this.parseStatement("for"))),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,e,r){const s=t.declarations=[],n=this.hasPlugin("typescript");for(t.kind=r;;){const t=this.startNode();if(this.parseVarId(t,r),this.eat(u.eq)?t.init=e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():("const"!==r||this.match(u._in)||this.isContextual("of")?"Identifier"===t.id.type||e&&(this.match(u._in)||this.isContextual("of"))||this.raise(this.state.lastTokEnd,x.DeclarationMissingInitializer,"Complex binding patterns"):n||this.raise(this.state.lastTokEnd,x.DeclarationMissingInitializer,"Const declarations"),t.init=null),s.push(this.finishNode(t,"VariableDeclarator")),!this.eat(u.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,r=!1){const s=1&e,n=2&e,i=!(!s||4&e);this.initFunction(t,r),this.match(u.star)&&n&&this.raise(this.state.start,x.GeneratorInSingleStatementContext),t.generator=this.eat(u.star),s&&(t.id=this.parseFunctionId(i));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(lt(r,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),s&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||this.match(u.name)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(u.parenL),this.expressionScope.enter(new Nt(3)),t.params=this.parseBindingList(u.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,r){this.next(),this.takeDecorators(t);const s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,r),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(u.eq)||this.match(u.semi)||this.match(u.braceR)}isClassMethod(){return this.match(u.parenL)}isNonstaticConstructor(t){return!(t.computed||t.static||"constructor"!==t.key.name&&"constructor"!==t.key.value)}parseClassBody(t,e){this.classScope.enter();const r={constructorAllowsSuper:t,hadConstructor:!1,hadStaticBlock:!1};let s=[];const n=this.startNode();if(n.body=[],this.expect(u.braceL),this.withTopicForbiddingContext((()=>{for(;!this.match(u.braceR);){if(this.eat(u.semi)){if(s.length>0)throw this.raise(this.state.lastTokEnd,x.DecoratorSemicolon);continue}if(this.match(u.at)){s.push(this.parseDecorator());continue}const t=this.startNode();s.length&&(t.decorators=s,this.resetStartLocationFromNode(t,s[0]),s=[]),this.parseClassMember(n,t,r),"constructor"===t.kind&&t.decorators&&t.decorators.length>0&&this.raise(t.start,x.DecoratorConstructor)}})),this.state.strict=e,this.next(),s.length)throw this.raise(this.state.start,x.TrailingDecorator);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,e){const r=this.parseIdentifier(!0);if(this.isClassMethod()){const s=e;return s.kind="method",s.computed=!1,s.key=r,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}if(this.isClassProperty()){const s=e;return s.computed=!1,s.key=r,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return!1}parseClassMember(t,e,r){const s=this.isContextual("static");if(s){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(u.braceL))return void this.parseClassStaticBlock(t,e,r)}this.parseClassMemberWithIsStatic(t,e,r,s)}parseClassMemberWithIsStatic(t,e,r,s){const n=e,i=e,o=e,a=e,c=n,l=n;if(e.static=s,this.eat(u.star))return c.kind="method",this.parseClassElementName(c),"PrivateName"===c.key.type?void this.pushClassPrivateMethod(t,i,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,x.ConstructorIsGenerator),void this.pushClassMethod(t,n,!0,!1,!1,!1));const h=this.state.containsEsc,p=this.parseClassElementName(e),d="PrivateName"===p.type,f="Identifier"===p.type,m=this.state.start;if(this.parsePostMemberNameModifiers(l),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(t,i,!1,!1);const e=this.isNonstaticConstructor(n);let s=!1;e&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(p.start,x.DuplicateConstructor),r.hadConstructor=!0,s=r.constructorAllowsSuper),this.pushClassMethod(t,n,!1,!1,e,s)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(t,a):this.pushClassProperty(t,o);else if(!f||"async"!==p.name||h||this.isLineTerminator())!f||"get"!==p.name&&"set"!==p.name||h||this.match(u.star)&&this.isLineTerminator()?this.isLineTerminator()?d?this.pushClassPrivateProperty(t,a):this.pushClassProperty(t,o):this.unexpected():(c.kind=p.name,this.parseClassElementName(n),"PrivateName"===c.key.type?this.pushClassPrivateMethod(t,i,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,x.ConstructorIsAccessor),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n));else{const e=this.eat(u.star);l.optional&&this.unexpected(m),c.kind="method",this.parseClassElementName(c),this.parsePostMemberNameModifiers(l),"PrivateName"===c.key.type?this.pushClassPrivateMethod(t,i,e,!0):(this.isNonstaticConstructor(n)&&this.raise(n.key.start,x.ConstructorIsAsync),this.pushClassMethod(t,n,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,x.StaticPrototype),"PrivateName"===e.type&&"constructor"===e.id.name&&this.raise(e.start,x.ConstructorClassPrivateField),e}parseClassStaticBlock(t,e,r){var s;this.expectPlugin("classStaticBlock",e.start),this.scope.enter(80),this.expressionScope.enter(Ot());const n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=e.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,u.braceR),this.prodParam.exit(),this.expressionScope.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(e,"StaticBlock")),r.hadStaticBlock&&this.raise(e.start,x.DuplicateStaticBlock),(null==(s=e.decorators)?void 0:s.length)&&this.raise(e.start,x.DecoratorStaticBlock),r.hadStaticBlock=!0}pushClassProperty(t,e){e.computed||"constructor"!==e.key.name&&"constructor"!==e.key.value||this.raise(e.key.start,x.ConstructorClassField),t.body.push(this.parseClassProperty(e))}pushClassPrivateProperty(t,e){this.expectPlugin("classPrivateProperties",e.key.start);const r=this.parseClassPrivateProperty(e);t.body.push(r),this.classScope.declarePrivateName(r.key.id.name,0,r.key.start)}pushClassMethod(t,e,r,s,n,i){t.body.push(this.parseMethod(e,r,s,n,i,"ClassMethod",!0))}pushClassPrivateMethod(t,e,r,s){this.expectPlugin("classPrivateMethods",e.key.start);const n=this.parseMethod(e,r,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);const i="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.classScope.declarePrivateName(n.key.id.name,i,n.key.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return t.typeAnnotation&&!this.match(u.eq)||this.expectPlugin("classProperties"),this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Ot()),this.prodParam.enter(0),t.value=this.eat(u.eq)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,e,r,s=139){this.match(u.name)?(t.id=this.parseIdentifier(),e&&this.checkLVal(t.id,"class name",s)):r||!e?t.id=null:this.unexpected(null,x.MissingClassName)}parseClassSuper(t){t.superClass=this.eat(u._extends)?this.parseExprSubscripts():null}parseExport(t){const e=this.maybeParseExportDefaultSpecifier(t),r=!e||this.eat(u.comma),s=r&&this.eatExportStar(t),n=s&&this.maybeParseExportNamespaceSpecifier(t),i=r&&(!n||this.eat(u.comma)),o=e||s;if(s&&!n)return e&&this.unexpected(),this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration");const a=this.maybeParseExportNamedSpecifiers(t);if(e&&r&&!s&&!a||n&&i&&!a)throw this.unexpected(null,u.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(u._default))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");throw this.unexpected(null,u.braceL)}eatExportStar(t){return this.eat(u.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(u.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!h.test(this.input.slice(this.state.pos,t))&&this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){const t=this.startNode(),e=this.isAsyncFunction();if(this.match(u._function)||e)return this.next(),e&&this.next(),this.parseFunction(t,5,e);if(this.match(u._class))return this.parseClass(t,!0,!0);if(this.match(u.at))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(this.state.start,x.DecoratorBeforeExport),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(u._const)||this.match(u._var)||this.isLet())throw this.raise(this.state.start,x.UnsupportedDefaultExport);{const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}}parseExportDeclaration(t){return this.parseStatement(null)}isExportDefaultSpecifier(){if(this.match(u.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===u.name&&"from"!==t.value||t.type===u.braceL)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(u._default))return!1;const t=this.nextTokenStart(),e=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||this.match(u.name)&&e)return!0;if(this.match(u._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(u.at)&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(!this.getPluginOption("decorators","decoratorsBeforeExport"))return!0;this.unexpected(this.state.start,x.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,r,s){if(e)if(r){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var n;const e=t.declaration;"Identifier"!==e.type||"from"!==e.name||e.end-e.start!=4||(null==(n=e.extra)?void 0:n.parenthesized)||this.raise(e.start,x.ExportDefaultFromAsIdentifier)}}else if(t.specifiers&&t.specifiers.length)for(let e=0,r=t.specifiers;e<r.length;e++){const t=r[e],{exported:n}=t,i="Identifier"===n.type?n.name:n.value;if(this.checkDuplicateExports(t,i),!s&&t.local){const{local:e}=t;"StringLiteral"===e.type?this.raise(t.start,x.ExportBindingIsString,e.extra.raw,i):(this.checkReservedWord(e.name,e.start,!0,!1),this.scope.checkLocalExport(e))}}else if(t.declaration)if("FunctionDeclaration"===t.declaration.type||"ClassDeclaration"===t.declaration.type){const e=t.declaration.id;if(!e)throw new Error("Assertion failure");this.checkDuplicateExports(t,e.name)}else if("VariableDeclaration"===t.declaration.type)for(let e=0,r=t.declaration.declarations;e<r.length;e++){const t=r[e];this.checkDeclaration(t.id)}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(t.start,x.UnsupportedDecoratorExport)}checkDeclaration(t){if("Identifier"===t.type)this.checkDuplicateExports(t,t.name);else if("ObjectPattern"===t.type)for(let e=0,r=t.properties;e<r.length;e++){const t=r[e];this.checkDeclaration(t)}else if("ArrayPattern"===t.type)for(let e=0,r=t.elements;e<r.length;e++){const t=r[e];t&&this.checkDeclaration(t)}else"ObjectProperty"===t.type?this.checkDeclaration(t.value):"RestElement"===t.type?this.checkDeclaration(t.argument):"AssignmentPattern"===t.type&&this.checkDeclaration(t.left)}checkDuplicateExports(t,e){this.state.exportedIdentifiers.indexOf(e)>-1&&this.raise(t.start,"default"===e?x.DuplicateDefaultExport:x.DuplicateExport,e),this.state.exportedIdentifiers.push(e)}parseExportSpecifiers(){const t=[];let e=!0;for(this.expect(u.braceL);!this.eat(u.braceR);){if(e)e=!1;else if(this.expect(u.comma),this.eat(u.braceR))break;const r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual("as")?this.parseModuleExportName():r.local.__clone(),t.push(this.finishNode(r,"ExportSpecifier"))}return t}parseModuleExportName(){if(this.match(u.string)){this.expectPlugin("moduleStringNames");const t=this.parseLiteral(this.state.value,"StringLiteral"),e=t.value.match(Lt);return e&&this.raise(t.start,x.ModuleExportNameHasLoneSurrogate,e[0].charCodeAt(0).toString(16)),t}return this.parseIdentifier(!0)}parseImport(t){if(t.specifiers=[],!this.match(u.string)){const e=!this.maybeParseDefaultImportSpecifier(t)||this.eat(u.comma),r=e&&this.maybeParseStarImportSpecifier(t);e&&!r&&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(u.string)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(t){return this.match(u.name)}parseImportSpecifierLocal(t,e,r,s){e.local=this.parseIdentifier(),this.checkLVal(e.local,s,9),t.specifiers.push(this.finishNode(e,r))}parseAssertEntries(){const t=[],e=new Set;do{if(this.match(u.braceR))break;const r=this.startNode(),s=this.state.value;if(this.match(u.string)?r.key=this.parseLiteral(s,"StringLiteral"):r.key=this.parseIdentifier(!0),this.expect(u.colon),"type"!==s&&this.raise(r.key.start,x.ModuleAttributeDifferentFromType,s),e.has(s)&&this.raise(r.key.start,x.ModuleAttributesWithDuplicateKeys,s),e.add(s),!this.match(u.string))throw this.unexpected(this.state.start,x.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),t.push(r)}while(this.eat(u.comma));return t}maybeParseModuleAttributes(){if(!this.match(u._with)||this.hasPrecedingLineBreak())return this.hasPlugin("moduleAttributes")?[]:null;this.expectPlugin("moduleAttributes"),this.next();const t=[],e=new Set;do{const r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(r.key.start,x.ModuleAttributeDifferentFromType,r.key.name),e.has(r.key.name)&&this.raise(r.key.start,x.ModuleAttributesWithDuplicateKeys,r.key.name),e.add(r.key.name),this.expect(u.colon),!this.match(u.string))throw this.unexpected(this.state.start,x.ModuleAttributeInvalidValue);r.value=this.parseLiteral(this.state.value,"StringLiteral"),this.finishNode(r,"ImportAttribute"),t.push(r)}while(this.eat(u.comma));return t}maybeParseImportAssertions(){if(!this.isContextual("assert")||this.hasPrecedingLineBreak())return this.hasPlugin("importAssertions")?[]:null;this.expectPlugin("importAssertions"),this.next(),this.eat(u.braceL);const t=this.parseAssertEntries();return this.eat(u.braceR),t}maybeParseDefaultImportSpecifier(t){return!!this.shouldParseDefaultImport(t)&&(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier","default import specifier"),!0)}maybeParseStarImportSpecifier(t){if(this.match(u.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(u.braceL);!this.eat(u.braceR);){if(e)e=!1;else{if(this.eat(u.colon))throw this.raise(this.state.start,x.DestructureNamedImport);if(this.expect(u.comma),this.eat(u.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,x.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 r=0,s=Object.keys(xt);r<s.length;r++){const n=s[r];e[n]=t&&null!=t[n]?t[n]:xt[n]}return e}(t),e);const r=this.getScopeHandler();this.options=t,this.inModule="module"===this.options.sourceType,this.scope=new r(this.raise.bind(this),this.inModule),this.prodParam=new ct,this.classScope=new jt(this.raise.bind(this)),this.expressionScope=new _t(this.raise.bind(this)),this.plugins=function(t){const e=new Map;for(let r=0;r<t.length;r++){const s=t[r],[n,i]=Array.isArray(s)?s:[s,{}];e.has(n)||e.set(n,i||{})}return e}(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return it}parse(){let t=0;this.hasPlugin("topLevelAwait")&&this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t);const e=this.startNode(),r=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,r),e.errors=this.state.errors,e}}function Bt(t,e){let r=Ft;return(null==t?void 0:t.plugins)&&(!function(t){if(dt(t,"decorators")){if(dt(t,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const e=ft(t,"decorators","decoratorsBeforeExport");if(null==e)throw new Error("The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.");if("boolean"!=typeof e)throw new Error("'decoratorsBeforeExport' must be a boolean.")}if(dt(t,"flow")&&dt(t,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(dt(t,"placeholders")&&dt(t,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(dt(t,"pipelineOperator")&&!mt.includes(ft(t,"pipelineOperator","proposal")))throw new Error("'pipelineOperator' requires 'proposal' option whose value should be one of: "+mt.map((t=>`'${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),r=function(t){const e=vt.filter((e=>dt(t,e))),r=e.join("/");let s=Ut[r];if(!s){s=Ft;for(let t=0;t<e.length;t++){const r=e[t];s=gt[r](s)}Ut[r]=s}return s}(t.plugins)),new r(t,e)}const Ut={}},7757:(t,e,r)=>{t.exports=r(5666)},958:(t,e,r)=>{"use strict";r.d(e,{OY:()=>S,ps:()=>Be,rC:()=>K,_x:()=>i,fC:()=>G,_A:()=>H,Oq:()=>$,kS:()=>ot,QU:()=>ct,fz:()=>X,Yb:()=>J,nN:()=>Ue,sC:()=>F,Ce:()=>je,J5:()=>Oe});var s=r(3577);r(3834);function n(t){throw t}function i(t,e,r,s){const n=new SyntaxError(String(t));return n.code=t,n.loc=e,n}const o=Symbol(""),a=Symbol(""),c=Symbol(""),l=Symbol(""),u=Symbol(""),h=Symbol(""),p=Symbol(""),d=Symbol(""),f=Symbol(""),m=Symbol(""),y=Symbol(""),g=Symbol(""),v=Symbol(""),x=Symbol(""),b=Symbol(""),w=Symbol(""),P=Symbol(""),T=Symbol(""),S=Symbol(""),A=Symbol(""),E=Symbol(""),k=Symbol(""),C=Symbol(""),N=Symbol(""),I=Symbol(""),_=Symbol(""),O=Symbol(""),D=Symbol(""),M=Symbol(""),L=Symbol(""),R=Symbol(""),j={[o]:"Fragment",[a]:"Teleport",[c]:"Suspense",[l]:"KeepAlive",[u]:"BaseTransition",[h]:"openBlock",[p]:"createBlock",[d]:"createVNode",[f]:"createCommentVNode",[m]:"createTextVNode",[y]:"createStaticVNode",[g]:"resolveComponent",[v]:"resolveDynamicComponent",[x]:"resolveDirective",[b]:"withDirectives",[w]:"renderList",[P]:"renderSlot",[T]:"createSlots",[S]:"toDisplayString",[A]:"mergeProps",[E]:"toHandlers",[k]:"camelize",[C]:"capitalize",[N]:"toHandlerKey",[I]:"setBlockTracking",[_]:"pushScopeId",[O]:"popScopeId",[D]:"withScopeId",[M]:"withCtx",[L]:"unref",[R]:"isRef"};function F(t){Object.getOwnPropertySymbols(t).forEach((e=>{j[e]=t[e]}))}const B={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function U(t,e,r,s,n,i,o,a=!1,c=!1,l=B){return t&&(a?(t.helper(h),t.helper(p)):t.helper(d),o&&t.helper(b)),{type:13,tag:e,props:r,children:s,patchFlag:n,dynamicProps:i,directives:o,isBlock:a,disableTracking:c,loc:l}}function V(t,e=B){return{type:17,loc:e,elements:t}}function q(t,e=B){return{type:15,loc:e,properties:t}}function H(t,e){return{type:16,loc:B,key:(0,s.HD)(t)?$(t,!0):t,value:e}}function $(t,e,r=B,s=0){return{type:4,loc:r,content:t,isStatic:e,constType:e?3:s}}function G(t,e=B){return{type:8,loc:e,children:t}}function K(t,e=[],r=B){return{type:14,loc:r,callee:t,arguments:e}}function z(t,e,r=!1,s=!1,n=B){return{type:18,params:t,returns:e,newline:r,isSlot:s,loc:n}}function W(t,e,r,s=!0){return{type:19,test:t,consequent:e,alternate:r,newline:s,loc:B}}const J=t=>4===t.type&&t.isStatic,X=(t,e)=>t===e||t===(0,s.rs)(e);function Y(t){return X(t,"Teleport")?a:X(t,"Suspense")?c:X(t,"KeepAlive")?l:X(t,"BaseTransition")?u:void 0}const Q=/^\d|[^\$\w]/,Z=t=>!Q.test(t),tt=/^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*|\[[^\]]+\])*$/,et=t=>!!t&&tt.test(t.trim());function rt(t,e,r){const s={source:t.source.substr(e,r),start:st(t.start,t.source,e),end:t.end};return null!=r&&(s.end=st(t.start,t.source,e+r)),s}function st(t,e,r=e.length){return nt((0,s.l7)({},t),e,r)}function nt(t,e,r=e.length){let s=0,n=-1;for(let t=0;t<r;t++)10===e.charCodeAt(t)&&(s++,n=t);return t.offset+=r,t.line+=s,t.column=-1===n?t.column+r:r-n,t}function it(t,e,r=!1){for(let n=0;n<t.props.length;n++){const i=t.props[n];if(7===i.type&&(r||i.exp)&&((0,s.HD)(e)?i.name===e:e.test(i.name)))return i}}function ot(t,e,r=!1,s=!1){for(let n=0;n<t.props.length;n++){const i=t.props[n];if(6===i.type){if(r)continue;if(i.name===e&&(i.value||s))return i}else if("bind"===i.name&&(i.exp||s)&&at(i.arg,e))return i}}function at(t,e){return!(!t||!J(t)||t.content!==e)}function ct(t){return t.props.some((t=>!(7!==t.type||"bind"!==t.name||t.arg&&4===t.arg.type&&t.arg.isStatic)))}function lt(t){return 5===t.type||2===t.type}function ut(t){return 7===t.type&&"slot"===t.name}function ht(t){return 1===t.type&&3===t.tagType}function pt(t){return 1===t.type&&2===t.tagType}function dt(t,e,r){let n;const i=13===t.type?t.props:t.arguments[2];if(null==i||(0,s.HD)(i))n=q([e]);else if(14===i.type){const t=i.arguments[0];(0,s.HD)(t)||15!==t.type?i.callee===E?n=K(r.helper(A),[q([e]),i]):i.arguments.unshift(q([e])):t.properties.unshift(e),!n&&(n=i)}else if(15===i.type){let t=!1;if(4===e.key.type){const r=e.key.content;t=i.properties.some((t=>4===t.key.type&&t.key.content===r))}t||i.properties.unshift(e),n=i}else n=K(r.helper(A),[q([e]),i]);13===t.type?t.props=n:t.arguments[2]=n}function ft(t,e){return`_${e}_${t.replace(/[^\w]/g,"_")}`}const mt=/&(gt|lt|amp|apos|quot);/g,yt={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},gt={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:s.NO,isPreTag:s.NO,isCustomElement:s.NO,decodeEntities:t=>t.replace(mt,((t,e)=>yt[e])),onError:n,comments:!1};function vt(t,e={}){const r=function(t,e){const r=(0,s.l7)({},gt);for(const t in e)r[t]=e[t]||gt[t];return{options:r,column:1,line:1,offset:0,originalSource:t,source:t,inPre:!1,inVPre:!1}}(t,e),n=Ot(r);return function(t,e=B){return{type:0,children:t,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:e}}(xt(r,0,[]),Dt(r,n))}function xt(t,e,r){const n=Mt(r),i=n?n.ns:0,o=[];for(;!Ut(t,e,r);){const a=t.source;let c;if(0===e||1===e)if(!t.inVPre&&Lt(a,t.options.delimiters[0]))c=Nt(t,e);else if(0===e&&"<"===a[0])if(1===a.length)Bt(t,5,1);else if("!"===a[1])Lt(a,"\x3c!--")?c=Pt(t):Lt(a,"<!DOCTYPE")?c=Tt(t):Lt(a,"<![CDATA[")?0!==i?c=wt(t,r):(Bt(t,1),c=Tt(t)):(Bt(t,11),c=Tt(t));else if("/"===a[1])if(2===a.length)Bt(t,5,2);else{if(">"===a[2]){Bt(t,14,2),Rt(t,3);continue}if(/[a-z]/i.test(a[2])){Bt(t,23),Et(t,1,n);continue}Bt(t,12,2),c=Tt(t)}else/[a-z]/i.test(a[1])?c=St(t,r):"?"===a[1]?(Bt(t,21,1),c=Tt(t)):Bt(t,12,1);if(c||(c=It(t,e)),(0,s.kJ)(c))for(let t=0;t<c.length;t++)bt(o,c[t]);else bt(o,c)}let a=!1;if(2!==e){for(let e=0;e<o.length;e++){const r=o[e];if(!t.inPre&&2===r.type)if(/[^\t\r\n\f ]/.test(r.content))r.content=r.content.replace(/[\t\r\n\f ]+/g," ");else{const t=o[e-1],s=o[e+1];!t||!s||3===t.type||3===s.type||1===t.type&&1===s.type&&/[\r\n]/.test(r.content)?(a=!0,o[e]=null):r.content=" "}3!==r.type||t.options.comments||(a=!0,o[e]=null)}if(t.inPre&&n&&t.options.isPreTag(n.tag)){const t=o[0];t&&2===t.type&&(t.content=t.content.replace(/^\r?\n/,""))}}return a?o.filter(Boolean):o}function bt(t,e){if(2===e.type){const r=Mt(t);if(r&&2===r.type&&r.loc.end.offset===e.loc.start.offset)return r.content+=e.content,r.loc.end=e.loc.end,void(r.loc.source+=e.loc.source)}t.push(e)}function wt(t,e){Rt(t,9);const r=xt(t,3,e);return 0===t.source.length?Bt(t,6):Rt(t,3),r}function Pt(t){const e=Ot(t);let r;const s=/--(\!)?>/.exec(t.source);if(s){s.index<=3&&Bt(t,0),s[1]&&Bt(t,10),r=t.source.slice(4,s.index);const e=t.source.slice(0,s.index);let n=1,i=0;for(;-1!==(i=e.indexOf("\x3c!--",n));)Rt(t,i-n+1),i+4<e.length&&Bt(t,16),n=i+1;Rt(t,s.index+s[0].length-n+1)}else r=t.source.slice(4),Rt(t,t.source.length),Bt(t,7);return{type:3,content:r,loc:Dt(t,e)}}function Tt(t){const e=Ot(t),r="?"===t.source[1]?1:2;let s;const n=t.source.indexOf(">");return-1===n?(s=t.source.slice(r),Rt(t,t.source.length)):(s=t.source.slice(r,n),Rt(t,n+1)),{type:3,content:s,loc:Dt(t,e)}}function St(t,e){const r=t.inPre,s=t.inVPre,n=Mt(e),i=Et(t,0,n),o=t.inPre&&!r,a=t.inVPre&&!s;if(i.isSelfClosing||t.options.isVoidTag(i.tag))return i;e.push(i);const c=t.options.getTextMode(i,n),l=xt(t,c,e);if(e.pop(),i.children=l,Vt(t.source,i.tag))Et(t,1,n);else if(Bt(t,24,0,i.loc.start),0===t.source.length&&"script"===i.tag.toLowerCase()){const e=l[0];e&&Lt(e.loc.source,"\x3c!--")&&Bt(t,8)}return i.loc=Dt(t,i.loc.start),o&&(t.inPre=!1),a&&(t.inVPre=!1),i}const At=(0,s.fY)("if,else,else-if,for,slot");function Et(t,e,r){const n=Ot(t),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(t.source),o=i[1],a=t.options.getNamespace(o,r);Rt(t,i[0].length),jt(t);const c=Ot(t),l=t.source;let u=kt(t,e);t.options.isPreTag(o)&&(t.inPre=!0),!t.inVPre&&u.some((t=>7===t.type&&"pre"===t.name))&&(t.inVPre=!0,(0,s.l7)(t,c),t.source=l,u=kt(t,e).filter((t=>"v-pre"!==t.name)));let h=!1;0===t.source.length?Bt(t,9):(h=Lt(t.source,"/>"),1===e&&h&&Bt(t,4),Rt(t,h?2:1));let p=0;const d=t.options;if(!t.inVPre&&!d.isCustomElement(o)){const t=u.some((t=>7===t.type&&"is"===t.name));d.isNativeTag&&!t?d.isNativeTag(o)||(p=1):(t||Y(o)||d.isBuiltInComponent&&d.isBuiltInComponent(o)||/^[A-Z]/.test(o)||"component"===o)&&(p=1),"slot"===o?p=2:"template"===o&&u.some((t=>7===t.type&&At(t.name)))&&(p=3)}return{type:1,ns:a,tag:o,tagType:p,props:u,isSelfClosing:h,children:[],loc:Dt(t,n),codegenNode:void 0}}function kt(t,e){const r=[],s=new Set;for(;t.source.length>0&&!Lt(t.source,">")&&!Lt(t.source,"/>");){if(Lt(t.source,"/")){Bt(t,22),Rt(t,1),jt(t);continue}1===e&&Bt(t,3);const n=Ct(t,s);0===e&&r.push(n),/^[^\t\r\n\f />]/.test(t.source)&&Bt(t,15),jt(t)}return r}function Ct(t,e){const r=Ot(t),s=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(t.source)[0];e.has(s)&&Bt(t,2),e.add(s),"="===s[0]&&Bt(t,19);{const e=/["'<]/g;let r;for(;r=e.exec(s);)Bt(t,17,r.index)}let n;Rt(t,s.length),/^[\t\r\n\f ]*=/.test(t.source)&&(jt(t),Rt(t,1),jt(t),n=function(t){const e=Ot(t);let r;const s=t.source[0],n='"'===s||"'"===s;if(n){Rt(t,1);const e=t.source.indexOf(s);-1===e?r=_t(t,t.source.length,4):(r=_t(t,e,4),Rt(t,1))}else{const e=/^[^\t\r\n\f >]+/.exec(t.source);if(!e)return;const s=/["'<=`]/g;let n;for(;n=s.exec(e[0]);)Bt(t,18,n.index);r=_t(t,e[0].length,4)}return{content:r,isQuoted:n,loc:Dt(t,e)}}(t),n||Bt(t,13));const i=Dt(t,r);if(!t.inVPre&&/^(v-|:|@|#)/.test(s)){const e=/(?:^v-([a-z0-9-]+))?(?:(?::|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(s),o=e[1]||(Lt(s,":")?"bind":Lt(s,"@")?"on":"slot");let a;if(e[2]){const n="slot"===o,i=s.indexOf(e[2]),c=Dt(t,Ft(t,r,i),Ft(t,r,i+e[2].length+(n&&e[3]||"").length));let l=e[2],u=!0;l.startsWith("[")?(u=!1,l.endsWith("]")||Bt(t,26),l=l.substr(1,l.length-2)):n&&(l+=e[3]||""),a={type:4,content:l,isStatic:u,constType:u?3:0,loc:c}}if(n&&n.isQuoted){const t=n.loc;t.start.offset++,t.start.column++,t.end=st(t.start,n.content),t.source=t.source.slice(1,-1)}return{type:7,name:o,exp:n&&{type:4,content:n.content,isStatic:!1,constType:0,loc:n.loc},arg:a,modifiers:e[3]?e[3].substr(1).split("."):[],loc:i}}return{type:6,name:s,value:n&&{type:2,content:n.content,loc:n.loc},loc:i}}function Nt(t,e){const[r,s]=t.options.delimiters,n=t.source.indexOf(s,r.length);if(-1===n)return void Bt(t,25);const i=Ot(t);Rt(t,r.length);const o=Ot(t),a=Ot(t),c=n-r.length,l=t.source.slice(0,c),u=_t(t,c,e),h=u.trim(),p=u.indexOf(h);p>0&&nt(o,l,p);return nt(a,l,c-(u.length-h.length-p)),Rt(t,s.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Dt(t,o,a)},loc:Dt(t,i)}}function It(t,e){const r=["<",t.options.delimiters[0]];3===e&&r.push("]]>");let s=t.source.length;for(let e=0;e<r.length;e++){const n=t.source.indexOf(r[e],1);-1!==n&&s>n&&(s=n)}const n=Ot(t);return{type:2,content:_t(t,s,e),loc:Dt(t,n)}}function _t(t,e,r){const s=t.source.slice(0,e);return Rt(t,e),2===r||3===r||-1===s.indexOf("&")?s:t.options.decodeEntities(s,4===r)}function Ot(t){const{column:e,line:r,offset:s}=t;return{column:e,line:r,offset:s}}function Dt(t,e,r){return{start:e,end:r=r||Ot(t),source:t.originalSource.slice(e.offset,r.offset)}}function Mt(t){return t[t.length-1]}function Lt(t,e){return t.startsWith(e)}function Rt(t,e){const{source:r}=t;nt(t,r,e),t.source=r.slice(e)}function jt(t){const e=/^[\t\r\n\f ]+/.exec(t.source);e&&Rt(t,e[0].length)}function Ft(t,e,r){return st(e,t.originalSource.slice(e.offset,r),r)}function Bt(t,e,r,s=Ot(t)){r&&(s.offset+=r,s.column+=r),t.options.onError(i(e,{start:s,end:s,source:""}))}function Ut(t,e,r){const s=t.source;switch(e){case 0:if(Lt(s,"</"))for(let t=r.length-1;t>=0;--t)if(Vt(s,r[t].tag))return!0;break;case 1:case 2:{const t=Mt(r);if(t&&Vt(s,t.tag))return!0;break}case 3:if(Lt(s,"]]>"))return!0}return!s}function Vt(t,e){return Lt(t,"</")&&t.substr(2,e.length).toLowerCase()===e.toLowerCase()&&/[\t\r\n\f />]/.test(t[2+e.length]||">")}function qt(t,e){$t(t,e,new Map,Ht(t,t.children[0]))}function Ht(t,e){const{children:r}=t;return 1===r.length&&1===e.type&&!pt(e)}function $t(t,e,r,s=!1){let n=!1,i=!0;const{children:o}=t;for(let t=0;t<o.length;t++){const a=o[t];if(1===a.type&&0===a.tagType){const t=s?0:Gt(a,r);if(t>0){if(t<3&&(i=!1),t>=2){a.codegenNode.patchFlag="-1",a.codegenNode=e.hoist(a.codegenNode),n=!0;continue}}else{const t=a.codegenNode;if(13===t.type){const s=Wt(t);if((!s||512===s||1===s)&&Kt(a,r)>=2){const r=zt(a);r&&(t.props=e.hoist(r))}}}}else if(12===a.type){const t=Gt(a.content,r);t>0&&(t<3&&(i=!1),t>=2&&(a.codegenNode=e.hoist(a.codegenNode),n=!0))}if(1===a.type)$t(a,e,r);else if(11===a.type)$t(a,e,r,1===a.children.length);else if(9===a.type)for(let t=0;t<a.branches.length;t++)$t(a.branches[t],e,r,1===a.branches[t].children.length)}i&&n&&e.transformHoist&&e.transformHoist(o,e,t)}function Gt(t,e=new Map){switch(t.type){case 1:if(0!==t.tagType)return 0;const r=e.get(t);if(void 0!==r)return r;const n=t.codegenNode;if(13!==n.type)return 0;if(Wt(n))return e.set(t,0),0;{let r=3;const s=Kt(t,e);if(0===s)return e.set(t,0),0;s<r&&(r=s);for(let s=0;s<t.children.length;s++){const n=Gt(t.children[s],e);if(0===n)return e.set(t,0),0;n<r&&(r=n)}if(r>1)for(let s=0;s<t.props.length;s++){const n=t.props[s];if(7===n.type&&"bind"===n.name&&n.exp){const s=Gt(n.exp,e);if(0===s)return e.set(t,0),0;s<r&&(r=s)}}return n.isBlock&&(n.isBlock=!1),e.set(t,r),r}case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Gt(t.content,e);case 4:return t.constType;case 8:let i=3;for(let r=0;r<t.children.length;r++){const n=t.children[r];if((0,s.HD)(n)||(0,s.yk)(n))continue;const o=Gt(n,e);if(0===o)return 0;o<i&&(i=o)}return i;default:return 0}}function Kt(t,e){let r=3;const s=zt(t);if(s&&15===s.type){const{properties:t}=s;for(let s=0;s<t.length;s++){const{key:n,value:i}=t[s],o=Gt(n,e);if(0===o)return o;if(o<r&&(r=o),4!==i.type)return 0;const a=Gt(i,e);if(0===a)return a;a<r&&(r=a)}}return r}function zt(t){const e=t.codegenNode;if(13===e.type)return e.props}function Wt(t){const e=t.patchFlag;return e?parseInt(e,10):void 0}function Jt(t,{prefixIdentifiers:e=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:a={},transformHoist:c=null,isBuiltInComponent:l=s.dG,isCustomElement:u=s.dG,expressionPlugins:h=[],scopeId:p=null,ssr:d=!1,ssrCssVars:f="",bindingMetadata:m=s.kT,inline:y=!1,isTS:g=!1,onError:v=n}){const x={prefixIdentifiers:e,hoistStatic:r,cacheHandlers:i,nodeTransforms:o,directiveTransforms:a,transformHoist:c,isBuiltInComponent:l,isCustomElement:u,expressionPlugins:h,scopeId:p,ssr:d,ssrCssVars:f,bindingMetadata:m,inline:y,isTS:g,onError:v,root:t,helpers:new Set,components:new Set,directives:new Set,hoists:[],imports:new Set,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:t,childIndex:0,helper:t=>(x.helpers.add(t),t),helperString:t=>`_${j[x.helper(t)]}`,replaceNode(t){x.parent.children[x.childIndex]=x.currentNode=t},removeNode(t){const e=x.parent.children,r=t?e.indexOf(t):x.currentNode?x.childIndex:-1;t&&t!==x.currentNode?x.childIndex>r&&(x.childIndex--,x.onNodeRemoved()):(x.currentNode=null,x.onNodeRemoved()),x.parent.children.splice(r,1)},onNodeRemoved:()=>{},addIdentifiers(t){},removeIdentifiers(t){},hoist(t){x.hoists.push(t);const e=$(`_hoisted_${x.hoists.length}`,!1,t.loc,2);return e.hoisted=t,e},cache:(t,e=!1)=>function(t,e,r=!1){return{type:20,index:t,value:e,isVNode:r,loc:B}}(++x.cached,t,e)};return x}function Xt(t,e){const r=Jt(t,e);Yt(t,r),e.hoistStatic&&qt(t,r),e.ssr||function(t,e){const{helper:r}=e,{children:n}=t;if(1===n.length){const e=n[0];if(Ht(t,e)&&e.codegenNode){const s=e.codegenNode;13===s.type&&(s.isBlock=!0,r(h),r(p)),t.codegenNode=s}else t.codegenNode=e}else n.length>1&&(t.codegenNode=U(e,r(o),void 0,t.children,`64 /* ${s.m[64]} */`,void 0,void 0,!0))}(t,r),t.helpers=[...r.helpers],t.components=[...r.components],t.directives=[...r.directives],t.imports=[...r.imports],t.hoists=r.hoists,t.temps=r.temps,t.cached=r.cached}function Yt(t,e){e.currentNode=t;const{nodeTransforms:r}=e,n=[];for(let i=0;i<r.length;i++){const o=r[i](t,e);if(o&&((0,s.kJ)(o)?n.push(...o):n.push(o)),!e.currentNode)return;t=e.currentNode}switch(t.type){case 3:e.ssr||e.helper(f);break;case 5:e.ssr||e.helper(S);break;case 9:for(let r=0;r<t.branches.length;r++)Yt(t.branches[r],e);break;case 10:case 11:case 1:case 0:!function(t,e){let r=0;const n=()=>{r--};for(;r<t.children.length;r++){const i=t.children[r];(0,s.HD)(i)||(e.parent=t,e.childIndex=r,e.onNodeRemoved=n,Yt(i,e))}}(t,e)}e.currentNode=t;let i=n.length;for(;i--;)n[i]()}function Qt(t,e){const r=(0,s.HD)(t)?e=>e===t:e=>t.test(e);return(t,s)=>{if(1===t.type){const{props:n}=t;if(3===t.tagType&&n.some(ut))return;const i=[];for(let o=0;o<n.length;o++){const a=n[o];if(7===a.type&&r(a.name)){n.splice(o,1),o--;const r=e(t,a,s);r&&i.push(r)}}return i}}}const Zt="/*#__PURE__*/";function te(t,e={}){const r=function(t,{mode:e="function",prefixIdentifiers:r="module"===e,sourceMap:s=!1,filename:n="template.vue.html",scopeId:i=null,optimizeImports:o=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssr:l=!1}){const u={mode:e,prefixIdentifiers:r,sourceMap:s,filename:n,scopeId:i,optimizeImports:o,runtimeGlobalName:a,runtimeModuleName:c,ssr:l,source:t.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:t=>`_${j[t]}`,push(t,e){u.code+=t},indent(){h(++u.indentLevel)},deindent(t=!1){t?--u.indentLevel:h(--u.indentLevel)},newline(){h(u.indentLevel)}};function h(t){u.push("\n"+" ".repeat(t))}return u}(t,e);e.onContextCreated&&e.onContextCreated(r);const{mode:s,push:n,prefixIdentifiers:i,indent:o,deindent:a,newline:c,scopeId:l,ssr:u}=r,h=t.helpers.length>0,p=!i&&"module"!==s;!function(t,e){const{ssr:r,prefixIdentifiers:s,push:n,newline:i,runtimeModuleName:o,runtimeGlobalName:a}=e,c=a,l=t=>`${j[t]}: _${j[t]}`;if(t.helpers.length>0&&(n(`const _Vue = ${c}\n`),t.hoists.length)){n(`const { ${[d,f,m,y].filter((e=>t.helpers.includes(e))).map(l).join(", ")} } = _Vue\n`)}(function(t,e){if(!t.length)return;e.pure=!0;const{push:r,newline:s,helper:n,scopeId:i,mode:o}=e;s(),t.forEach(((t,n)=>{t&&(r(`const _hoisted_${n+1} = `),ne(t,e),s())})),e.pure=!1})(t.hoists,e),i(),n("return ")}(t,r);if(n(`function ${u?"ssrRender":"render"}(${(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),o(),p&&(n("with (_ctx) {"),o(),h&&(n(`const { ${t.helpers.map((t=>`${j[t]}: _${j[t]}`)).join(", ")} } = _Vue`),n("\n"),c())),t.components.length&&(ee(t.components,"component",r),(t.directives.length||t.temps>0)&&c()),t.directives.length&&(ee(t.directives,"directive",r),t.temps>0&&c()),t.temps>0){n("let ");for(let e=0;e<t.temps;e++)n(`${e>0?", ":""}_temp${e}`)}return(t.components.length||t.directives.length||t.temps)&&(n("\n"),c()),u||n("return "),t.codegenNode?ne(t.codegenNode,r):n("null"),p&&(a(),n("}")),a(),n("}"),{ast:t,code:r.code,preamble:"",map:r.map?r.map.toJSON():void 0}}function ee(t,e,{helper:r,push:s,newline:n}){const i=r("component"===e?g:x);for(let r=0;r<t.length;r++){const o=t[r];s(`const ${ft(o,e)} = ${i}(${JSON.stringify(o)})`),r<t.length-1&&n()}}function re(t,e){const r=t.length>3||!1;e.push("["),r&&e.indent(),se(t,e,r),r&&e.deindent(),e.push("]")}function se(t,e,r=!1,n=!0){const{push:i,newline:o}=e;for(let a=0;a<t.length;a++){const c=t[a];(0,s.HD)(c)?i(c):(0,s.kJ)(c)?re(c,e):ne(c,e),a<t.length-1&&(r?(n&&i(","),o()):n&&i(", "))}}function ne(t,e){if((0,s.HD)(t))e.push(t);else if((0,s.yk)(t))e.push(e.helper(t));else switch(t.type){case 1:case 9:case 11:ne(t.codegenNode,e);break;case 2:!function(t,e){e.push(JSON.stringify(t.content),t)}(t,e);break;case 4:ie(t,e);break;case 5:!function(t,e){const{push:r,helper:s,pure:n}=e;n&&r(Zt);r(`${s(S)}(`),ne(t.content,e),r(")")}(t,e);break;case 12:ne(t.codegenNode,e);break;case 8:oe(t,e);break;case 3:break;case 13:!function(t,e){const{push:r,helper:s,pure:n}=e,{tag:i,props:o,children:a,patchFlag:c,dynamicProps:l,directives:u,isBlock:f,disableTracking:m}=t;u&&r(s(b)+"(");f&&r(`(${s(h)}(${m?"true":""}), `);n&&r(Zt);r(s(f?p:d)+"(",t),se(function(t){let e=t.length;for(;e--&&null==t[e];);return t.slice(0,e+1).map((t=>t||"null"))}([i,o,a,c,l]),e),r(")"),f&&r(")");u&&(r(", "),ne(u,e),r(")"))}(t,e);break;case 14:!function(t,e){const{push:r,helper:n,pure:i}=e,o=(0,s.HD)(t.callee)?t.callee:n(t.callee);i&&r(Zt);r(o+"(",t),se(t.arguments,e),r(")")}(t,e);break;case 15:!function(t,e){const{push:r,indent:s,deindent:n,newline:i}=e,{properties:o}=t;if(!o.length)return void r("{}",t);const a=o.length>1||!1;r(a?"{":"{ "),a&&s();for(let t=0;t<o.length;t++){const{key:s,value:n}=o[t];ae(s,e),r(": "),ne(n,e),t<o.length-1&&(r(","),i())}a&&n(),r(a?"}":" }")}(t,e);break;case 17:!function(t,e){re(t.elements,e)}(t,e);break;case 18:!function(t,e){const{push:r,indent:n,deindent:i,scopeId:o,mode:a}=e,{params:c,returns:l,body:u,newline:h,isSlot:p}=t;p&&r(`_${j[M]}(`);r("(",t),(0,s.kJ)(c)?se(c,e):c&&ne(c,e);r(") => "),(h||u)&&(r("{"),n());l?(h&&r("return "),(0,s.kJ)(l)?re(l,e):ne(l,e)):u&&ne(u,e);(h||u)&&(i(),r("}"));p&&r(")")}(t,e);break;case 19:!function(t,e){const{test:r,consequent:s,alternate:n,newline:i}=t,{push:o,indent:a,deindent:c,newline:l}=e;if(4===r.type){const t=!Z(r.content);t&&o("("),ie(r,e),t&&o(")")}else o("("),ne(r,e),o(")");i&&a(),e.indentLevel++,i||o(" "),o("? "),ne(s,e),e.indentLevel--,i&&l(),i||o(" "),o(": ");const u=19===n.type;u||e.indentLevel++;ne(n,e),u||e.indentLevel--;i&&c(!0)}(t,e);break;case 20:!function(t,e){const{push:r,helper:s,indent:n,deindent:i,newline:o}=e;r(`_cache[${t.index}] || (`),t.isVNode&&(n(),r(`${s(I)}(-1),`),o());r(`_cache[${t.index}] = `),ne(t.value,e),t.isVNode&&(r(","),o(),r(`${s(I)}(1),`),o(),r(`_cache[${t.index}]`),i());r(")")}(t,e);break;case 21:case 22:case 23:case 24:case 25:case 26:case 10:break;default:0}}function ie(t,e){const{content:r,isStatic:s}=t;e.push(s?JSON.stringify(r):r,t)}function oe(t,e){for(let r=0;r<t.children.length;r++){const n=t.children[r];(0,s.HD)(n)?e.push(n):ne(n,e)}}function ae(t,e){const{push:r}=e;if(8===t.type)r("["),oe(t,e),r("]");else if(t.isStatic){r(Z(t.content)?t.content:JSON.stringify(t.content),t)}else r(`[${t.content}]`,t)}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments,typeof,void".split(",").join("\\b|\\b")+"\\b");const ce=Qt(/^(if|else|else-if)$/,((t,e,r)=>function(t,e,r,s){if(!("else"===e.name||e.exp&&e.exp.content.trim())){const s=e.exp?e.exp.loc:t.loc;r.onError(i(27,e.loc)),e.exp=$("true",!1,s)}0;if("if"===e.name){const n=le(t,e),i={type:9,loc:t.loc,branches:[n]};if(r.replaceNode(i),s)return s(i,n,!0)}else{const n=r.parent.children;let o=n.indexOf(t);for(;o-- >=-1;){const a=n[o];if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){r.removeNode();const n=le(t,e);0,a.branches.push(n);const i=s&&s(a,n,!1);Yt(n,r),i&&i(),r.currentNode=null}else r.onError(i(29,t.loc));break}r.removeNode(a)}}}(t,e,r,((t,e,s)=>{const n=r.parent.children;let i=n.indexOf(t),o=0;for(;i-- >=0;){const t=n[i];t&&9===t.type&&(o+=t.branches.length)}return()=>{if(s)t.codegenNode=ue(e,o,r);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=ue(e,o+t.branches.length-1,r)}}}))));function le(t,e){return{type:10,loc:t.loc,condition:"else"===e.name?void 0:e.exp,children:3!==t.tagType||it(t,"for")?[t]:t.children,userKey:ot(t,"key")}}function ue(t,e,r){return t.condition?W(t.condition,he(t,e,r),K(r.helper(f),['""',"true"])):he(t,e,r)}function he(t,e,r){const{helper:n}=r,i=H("key",$(`${e}`,!1,B,2)),{children:a}=t,c=a[0];if(1!==a.length||1!==c.type){if(1===a.length&&11===c.type){const t=c.codegenNode;return dt(t,i,r),t}return U(r,n(o),q([i]),a,`64 /* ${s.m[64]} */`,void 0,void 0,!0,!1,t.loc)}{const t=c.codegenNode;return 13===t.type&&(t.isBlock=!0,n(h),n(p)),dt(t,i,r),t}}const pe=Qt("for",((t,e,r)=>{const{helper:n}=r;return function(t,e,r,s){if(!e.exp)return void r.onError(i(30,e.loc));const n=ye(e.exp,r);if(!n)return void r.onError(i(31,e.loc));const{addIdentifiers:o,removeIdentifiers:a,scopes:c}=r,{source:l,value:u,key:h,index:p}=n,d={type:11,loc:e.loc,source:l,valueAlias:u,keyAlias:h,objectIndexAlias:p,parseResult:n,children:ht(t)?t.children:[t]};r.replaceNode(d),c.vFor++;const f=s&&s(d);return()=>{c.vFor--,f&&f()}}(t,e,r,(e=>{const i=K(n(w),[e.source]),a=ot(t,"key"),c=a?H("key",6===a.type?$(a.value.content,!0):a.exp):null,l=4===e.source.type&&e.source.constType>0,u=l?64:a?128:256;return e.codegenNode=U(r,n(o),void 0,i,`${u} /* ${s.m[u]} */`,void 0,void 0,!0,!l,t.loc),()=>{let a;const u=ht(t),{children:d}=e;const f=1!==d.length||1!==d[0].type,m=pt(t)?t:u&&1===t.children.length&&pt(t.children[0])?t.children[0]:null;m?(a=m.codegenNode,u&&c&&dt(a,c,r)):f?a=U(r,n(o),c?q([c]):void 0,t.children,`64 /* ${s.m[64]} */`,void 0,void 0,!0):(a=d[0].codegenNode,u&&c&&dt(a,c,r),a.isBlock=!l,a.isBlock&&(n(h),n(p))),i.arguments.push(z(ve(e.parseResult),a,!0))}}))}));const de=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,fe=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,me=/^\(|\)$/g;function ye(t,e){const r=t.loc,s=t.content,n=s.match(de);if(!n)return;const[,i,o]=n,a={source:ge(r,o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(me,"").trim();const l=i.indexOf(c),u=c.match(fe);if(u){c=c.replace(fe,"").trim();const t=u[1].trim();let e;if(t&&(e=s.indexOf(t,l+c.length),a.key=ge(r,t,e)),u[2]){const n=u[2].trim();n&&(a.index=ge(r,n,s.indexOf(n,a.key?e+t.length:l+c.length)))}}return c&&(a.value=ge(r,c,l)),a}function ge(t,e,r){return $(e,!1,rt(t,r,e.length))}function ve({value:t,key:e,index:r}){const s=[];return t&&s.push(t),e&&(t||s.push($("_",!1)),s.push(e)),r&&(e||(t||s.push($("_",!1)),s.push($("__",!1))),s.push(r)),s}const xe=$("undefined",!1),be=(t,e)=>{if(1===t.type&&(1===t.tagType||3===t.tagType)){const r=it(t,"slot");if(r){r.exp;return e.scopes.vSlot++,()=>{e.scopes.vSlot--}}}},we=(t,e,r)=>z(t,e,!1,!0,e.length?e[0].loc:r);function Pe(t,e,r=we){e.helper(M);const{children:s,loc:n}=t,o=[],a=[],c=(t,e)=>H("default",r(t,e,n));let l=e.scopes.vSlot>0||e.scopes.vFor>0;const u=it(t,"slot",!0);if(u){const{arg:t,exp:e}=u;t&&!J(t)&&(l=!0),o.push(H(t||$("default",!0),r(e,s,n)))}let h=!1,p=!1;const d=[],f=new Set;for(let t=0;t<s.length;t++){const n=s[t];let c;if(!ht(n)||!(c=it(n,"slot",!0))){3!==n.type&&d.push(n);continue}if(u){e.onError(i(36,c.loc));break}h=!0;const{children:m,loc:y}=n,{arg:g=$("default",!0),exp:v,loc:x}=c;let b;J(g)?b=g?g.content:"default":l=!0;const P=r(v,m,y);let T,S,A;if(T=it(n,"if"))l=!0,a.push(W(T.exp,Te(g,P),xe));else if(S=it(n,/^else(-if)?$/,!0)){let r,n=t;for(;n--&&(r=s[n],3===r.type););if(r&&ht(r)&&it(r,"if")){s.splice(t,1),t--;let e=a[a.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=S.exp?W(S.exp,Te(g,P),xe):Te(g,P)}else e.onError(i(29,S.loc))}else if(A=it(n,"for")){l=!0;const t=A.parseResult||ye(A.exp);t?a.push(K(e.helper(w),[t.source,z(ve(t),Te(g,P),!0)])):e.onError(i(31,A.loc))}else{if(b){if(f.has(b)){e.onError(i(37,x));continue}f.add(b),"default"===b&&(p=!0)}o.push(H(g,P))}}u||(h?d.length&&(p?e.onError(i(38,d[0].loc)):o.push(c(void 0,d))):o.push(c(void 0,s)));const m=l?2:Se(t.children)?3:1;let y=q(o.concat(H("_",$(""+m,!1))),n);return a.length&&(y=K(e.helper(T),[y,V(a)])),{slots:y,hasDynamicSlots:l}}function Te(t,e){return q([H("name",t),H("fn",e)])}function Se(t){for(let e=0;e<t.length;e++){const r=t[e];if(1===r.type&&(2===r.tagType||0===r.tagType&&Se(r.children)))return!0}return!1}const Ae=new WeakMap,Ee=(t,e)=>{if(1===t.type&&(0===t.tagType||1===t.tagType))return function(){const{tag:r,props:n}=t,i=1===t.tagType,o=i?function(t,e,r=!1){const{tag:s}=t,n="component"===t.tag?ot(t,"is"):it(t,"is");if(n){const t=6===n.type?n.value&&$(n.value.content,!0):n.exp;if(t)return K(e.helper(v),[t])}const i=Y(s)||e.isBuiltInComponent(s);if(i)return r||e.helper(i),i;return e.helper(g),e.components.add(s),ft(s,"component")}(t,e):`"${r}"`;let u,h,p,d,f,m,y=0,b=(0,s.Kn)(o)&&o.callee===v||o===a||o===c||!i&&("svg"===r||"foreignObject"===r||ot(t,"key",!0));if(n.length>0){const r=ke(t,e);u=r.props,y=r.patchFlag,f=r.dynamicPropNames;const s=r.directives;m=s&&s.length?V(s.map((t=>function(t,e){const r=[],s=Ae.get(t);s?r.push(e.helperString(s)):(e.helper(x),e.directives.add(t.name),r.push(ft(t.name,"directive")));const{loc:n}=t;t.exp&&r.push(t.exp);t.arg&&(t.exp||r.push("void 0"),r.push(t.arg));if(Object.keys(t.modifiers).length){t.arg||(t.exp||r.push("void 0"),r.push("void 0"));const e=$("true",!1,n);r.push(q(t.modifiers.map((t=>H(t,e))),n))}return V(r,t.loc)}(t,e)))):void 0}if(t.children.length>0){o===l&&(b=!0,y|=1024);if(i&&o!==a&&o!==l){const{slots:r,hasDynamicSlots:s}=Pe(t,e);h=r,s&&(y|=1024)}else if(1===t.children.length&&o!==a){const e=t.children[0],r=e.type,s=5===r||8===r;s&&0===Gt(e)&&(y|=1),h=s||2===r?e:t.children}else h=t.children}0!==y&&(p=String(y),f&&f.length&&(d=function(t){let e="[";for(let r=0,s=t.length;r<s;r++)e+=JSON.stringify(t[r]),r<s-1&&(e+=", ");return e+"]"}(f))),t.codegenNode=U(e,o,u,h,p,d,m,!!b,!1,t.loc)}};function ke(t,e,r=t.props,n=!1){const{tag:o,loc:a}=t,c=1===t.tagType;let l=[];const u=[],h=[];let p=0,d=!1,f=!1,m=!1,y=!1,g=!1,v=!1;const x=[],b=({key:t,value:e})=>{if(J(t)){const r=t.content,n=(0,s.F7)(r);if(c||!n||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||(0,s.Gg)(r)||(y=!0),n&&(0,s.Gg)(r)&&(v=!0),20===e.type||(4===e.type||8===e.type)&&Gt(e)>0)return;"ref"===r?d=!0:"class"!==r||c?"style"!==r||c?"key"===r||x.includes(r)||x.push(r):m=!0:f=!0}else g=!0};for(let p=0;p<r.length;p++){const f=r[p];if(6===f.type){const{loc:t,name:e,value:r}=f;let s=!0;if("ref"===e&&(d=!0),"is"===e&&"component"===o)continue;l.push(H($(e,!0,rt(t,0,e.length)),$(r?r.content:"",s,r?r.loc:t)))}else{const{name:r,arg:p,exp:d,loc:m}=f,y="bind"===r,v="on"===r;if("slot"===r){c||e.onError(i(39,m));continue}if("once"===r)continue;if("is"===r||y&&"component"===o&&at(p,"is"))continue;if(v&&n)continue;if(!p&&(y||v)){g=!0,d?(l.length&&(u.push(q(Ce(l),a)),l=[]),y?u.push(d):u.push({type:14,loc:m,callee:e.helper(E),arguments:[d]})):e.onError(i(y?33:34,m));continue}const x=e.directiveTransforms[r];if(x){const{props:r,needRuntime:i}=x(f,t,e);!n&&r.forEach(b),l.push(...r),i&&(h.push(f),(0,s.yk)(i)&&Ae.set(f,i))}else h.push(f)}}let w;return u.length?(l.length&&u.push(q(Ce(l),a)),w=u.length>1?K(e.helper(A),u,a):u[0]):l.length&&(w=q(Ce(l),a)),g?p|=16:(f&&(p|=2),m&&(p|=4),x.length&&(p|=8),y&&(p|=32)),0!==p&&32!==p||!(d||v||h.length>0)||(p|=512),{props:w,directives:h,patchFlag:p,dynamicPropNames:x}}function Ce(t){const e=new Map,r=[];for(let s=0;s<t.length;s++){const n=t[s];if(8===n.key.type||!n.key.isStatic){r.push(n);continue}const i=n.key.content,o=e.get(i);o?("style"===i||"class"===i||i.startsWith("on"))&&Ne(o,n):(e.set(i,n),r.push(n))}return r}function Ne(t,e){17===t.value.type?t.value.elements.push(e.value):t.value=V([t.value,e.value],t.loc)}const Ie=(t,e)=>{if(pt(t)){const{children:r,loc:s}=t,{slotName:n,slotProps:o}=function(t,e){let r,s='"default"';const n=ot(t,"name");n&&(6===n.type&&n.value?s=JSON.stringify(n.value.content):7===n.type&&n.exp&&(s=n.exp));const o=n?t.props.filter((t=>t!==n)):t.props;if(o.length>0){const{props:s,directives:n}=ke(t,e,o);r=s,n.length&&e.onError(i(35,n[0].loc))}return{slotName:s,slotProps:r}}(t,e),a=[e.prefixIdentifiers?"_ctx.$slots":"$slots",n];o&&a.push(o),r.length&&(o||a.push("{}"),a.push(z([],r,!1,!1,s))),t.codegenNode=K(e.helper(P),a,s)}};const _e=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,Oe=(t,e,r,n)=>{const{loc:o,modifiers:a,arg:c}=t;let l;if(t.exp||a.length||r.onError(i(34,o)),4===c.type)if(c.isStatic){const t=c.content;l=$((0,s.hR)((0,s._A)(t)),!0,c.loc)}else l=G([`${r.helperString(N)}(`,c,")"]);else l=c,l.children.unshift(`${r.helperString(N)}(`),l.children.push(")");let u=t.exp;u&&!u.content.trim()&&(u=void 0);let h=r.cacheHandlers&&!u;if(u){const t=et(u.content),e=!(t||_e.test(u.content)),r=u.content.includes(";");0,(e||h&&t)&&(u=G([`${e?"$event":"(...args)"} => ${r?"{":"("}`,u,r?"}":")"]))}let p={props:[H(l,u||$("() => {}",!1,o))]};return n&&(p=n(p)),h&&(p.props[0].value=r.cache(p.props[0].value)),p},De=(t,e,r)=>{const{exp:n,modifiers:o,loc:a}=t,c=t.arg;return 4!==c.type?(c.children.unshift("("),c.children.push(') || ""')):c.isStatic||(c.content=`${c.content} || ""`),o.includes("camel")&&(4===c.type?c.isStatic?c.content=(0,s._A)(c.content):c.content=`${r.helperString(k)}(${c.content})`:(c.children.unshift(`${r.helperString(k)}(`),c.children.push(")"))),!n||4===n.type&&!n.content.trim()?(r.onError(i(33,a)),{props:[H(c,$("",!0,a))]}):{props:[H(c,n)]}},Me=(t,e)=>{if(0===t.type||1===t.type||11===t.type||10===t.type)return()=>{const r=t.children;let n,i=!1;for(let t=0;t<r.length;t++){const e=r[t];if(lt(e)){i=!0;for(let s=t+1;s<r.length;s++){const i=r[s];if(!lt(i)){n=void 0;break}n||(n=r[t]={type:8,loc:e.loc,children:[e]}),n.children.push(" + ",i),r.splice(s,1),s--}}}if(i&&(1!==r.length||0!==t.type&&(1!==t.type||0!==t.tagType)))for(let t=0;t<r.length;t++){const n=r[t];if(lt(n)||8===n.type){const i=[];2===n.type&&" "===n.content||i.push(n),e.ssr||0!==Gt(n)||i.push(`1 /* ${s.m[1]} */`),r[t]={type:12,content:n,loc:n.loc,codegenNode:K(e.helper(m),i)}}}}},Le=new WeakSet,Re=(t,e)=>{if(1===t.type&&it(t,"once",!0)){if(Le.has(t))return;return Le.add(t),e.helper(I),()=>{const t=e.currentNode;t.codegenNode&&(t.codegenNode=e.cache(t.codegenNode,!0))}}},je=(t,e,r)=>{const{exp:s,arg:n}=t;if(!s)return r.onError(i(40,t.loc)),Fe();const o=s.loc.source,a=4===s.type?s.content:o;r.bindingMetadata[o];if(!et(a))return r.onError(i(41,s.loc)),Fe();const c=n||$("modelValue",!0),l=n?J(n)?`onUpdate:${n.content}`:G(['"onUpdate:" + ',n]):"onUpdate:modelValue";let u;u=G([`${r.isTS?"($event: any)":"$event"} => (`,s," = $event)"]);const h=[H(c,t.exp),H(l,u)];if(t.modifiers.length&&1===e.tagType){const e=t.modifiers.map((t=>(Z(t)?t:JSON.stringify(t))+": true")).join(", "),r=n?J(n)?`${n.content}Modifiers`:G([n,' + "Modifiers"']):"modelModifiers";h.push(H(r,$(`{ ${e} }`,!1,t.loc,2)))}return Fe(h)};function Fe(t=[]){return{props:t}}function Be(t,e={}){const r=e.onError||n,o="module"===e.mode;!0===e.prefixIdentifiers?r(i(45)):o&&r(i(46));e.cacheHandlers&&r(i(47)),e.scopeId&&!o&&r(i(48));const a=(0,s.HD)(t)?vt(t,e):t,[c,l]=[[Re,ce,pe,Ie,Ee,be,Me],{on:Oe,bind:De,model:je}];return Xt(a,(0,s.l7)({},e,{prefixIdentifiers:false,nodeTransforms:[...c,...e.nodeTransforms||[]],directiveTransforms:(0,s.l7)({},l,e.directiveTransforms||{})})),te(a,(0,s.l7)({},e,{prefixIdentifiers:false}))}const Ue=()=>({props:[]})},8420:(t,e,r)=>{"use strict";r.d(e,{MY:()=>C});var s=r(958),n=r(3577);const i=Symbol(""),o=Symbol(""),a=Symbol(""),c=Symbol(""),l=Symbol(""),u=Symbol(""),h=Symbol(""),p=Symbol(""),d=Symbol(""),f=Symbol("");let m;(0,s.sC)({[i]:"vModelRadio",[o]:"vModelCheckbox",[a]:"vModelText",[c]:"vModelSelect",[l]:"vModelDynamic",[u]:"withModifiers",[h]:"withKeys",[p]:"vShow",[d]:"Transition",[f]:"TransitionGroup"});const y=(0,n.fY)("style,iframe,script,noscript",!0),g={isVoidTag:n.WB,isNativeTag:t=>(0,n.eS)(t)||(0,n.aN)(t),isPreTag:t=>"pre"===t,decodeEntities:function(t){return(m||(m=document.createElement("div"))).innerHTML=t,m.textContent},isBuiltInComponent:t=>(0,s.fz)(t,"Transition")?d:(0,s.fz)(t,"TransitionGroup")?f:void 0,getNamespace(t,e){let r=e?e.ns:0;if(e&&2===r)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)))&&(r=0)}else/^m(?:[ions]|text)$/.test(e.tag)&&"mglyph"!==t&&"malignmark"!==t&&(r=0);else e&&1===r&&("foreignObject"!==e.tag&&"desc"!==e.tag&&"title"!==e.tag||(r=0));if(0===r){if("svg"===t)return 1;if("math"===t)return 2}return r},getTextMode({tag:t,ns:e}){if(0===e){if("textarea"===t||"title"===t)return 1;if(y(t))return 2}return 0}},v=(t,e)=>{const r=(0,n.yL)(t);return(0,s.Oq)(JSON.stringify(r),!1,e,3)};function x(t,e){return(0,s._x)(t,e,void 0)}const b=(0,n.fY)("passive,once,capture"),w=(0,n.fY)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),P=(0,n.fY)("left,right"),T=(0,n.fY)("onkeyup,onkeydown,onkeypress",!0),S=(t,e)=>(0,s.Yb)(t)&&"onclick"===t.content.toLowerCase()?(0,s.Oq)(e,!0):4!==t.type?(0,s.fC)(["(",t,`) === "onClick" ? "${e}" : (`,t,")"]):t;const A=(t,e)=>{1!==t.type||0!==t.tagType||"script"!==t.tag&&"style"!==t.tag||(e.onError(x(59,t.loc)),e.removeNode())},E=[t=>{1===t.type&&t.props.forEach(((e,r)=>{6===e.type&&"style"===e.name&&e.value&&(t.props[r]={type:7,name:"bind",arg:(0,s.Oq)("style",!0,e.loc),exp:v(e.value.content,e.loc),modifiers:[],loc:e.loc})}))}],k={cloak:s.nN,html:(t,e,r)=>{const{exp:n,loc:i}=t;return n||r.onError(x(49,i)),e.children.length&&(r.onError(x(50,i)),e.children.length=0),{props:[(0,s._A)((0,s.Oq)("innerHTML",!0,i),n||(0,s.Oq)("",!0))]}},text:(t,e,r)=>{const{exp:n,loc:i}=t;return n||r.onError(x(51,i)),e.children.length&&(r.onError(x(52,i)),e.children.length=0),{props:[(0,s._A)((0,s.Oq)("textContent",!0),n?(0,s.rC)(r.helperString(s.OY),[n],i):(0,s.Oq)("",!0))]}},model:(t,e,r)=>{const n=(0,s.Ce)(t,e,r);if(!n.props.length||1===e.tagType)return n;t.arg&&r.onError(x(54,t.arg.loc));const{tag:u}=e,h=r.isCustomElement(u);if("input"===u||"textarea"===u||"select"===u||h){let p=a,d=!1;if("input"===u||h){const n=(0,s.kS)(e,"type");if(n){if(7===n.type)p=l;else if(n.value)switch(n.value.content){case"radio":p=i;break;case"checkbox":p=o;break;case"file":d=!0,r.onError(x(55,t.loc))}}else(0,s.QU)(e)&&(p=l)}else"select"===u&&(p=c);d||(n.needRuntime=r.helper(p))}else r.onError(x(53,t.loc));return n.props=n.props.filter((t=>!(4===t.key.type&&"modelValue"===t.key.content))),n},on:(t,e,r)=>(0,s.J5)(t,e,r,(e=>{const{modifiers:i}=t;if(!i.length)return e;let{key:o,value:a}=e.props[0];const{keyModifiers:c,nonKeyModifiers:l,eventOptionModifiers:p}=((t,e)=>{const r=[],n=[],i=[];for(let o=0;o<e.length;o++){const a=e[o];b(a)?i.push(a):P(a)?(0,s.Yb)(t)?T(t.content)?r.push(a):n.push(a):(r.push(a),n.push(a)):w(a)?n.push(a):r.push(a)}return{keyModifiers:r,nonKeyModifiers:n,eventOptionModifiers:i}})(o,i);if(l.includes("right")&&(o=S(o,"onContextmenu")),l.includes("middle")&&(o=S(o,"onMouseup")),l.length&&(a=(0,s.rC)(r.helper(u),[a,JSON.stringify(l)])),!c.length||(0,s.Yb)(o)&&!T(o.content)||(a=(0,s.rC)(r.helper(h),[a,JSON.stringify(c)])),p.length){const t=p.map(n.kC).join("");o=(0,s.Yb)(o)?(0,s.Oq)(`${o.content}${t}`,!0):(0,s.fC)(["(",o,`) + "${t}"`])}return{props:[(0,s._A)(o,a)]}})),show:(t,e,r)=>{const{exp:s,loc:n}=t;return s||r.onError(x(57,n)),{props:[],needRuntime:r.helper(p)}}};function C(t,e={}){return(0,s.ps)(t,(0,n.l7)({},g,e,{nodeTransforms:[A,...E,...e.nodeTransforms||[]],directiveTransforms:(0,n.l7)({},k,e.directiveTransforms||{}),transformHoist:null}))}},2262:(t,e,r)=>{"use strict";r.d(e,{Fl:()=>Ct,ZM:()=>Tt,cE:()=>l,X3:()=>lt,PG:()=>at,$y:()=>ct,dq:()=>dt,Xl:()=>ht,Jd:()=>m,WL:()=>wt,qj:()=>rt,OT:()=>nt,iH:()=>ft,lk:()=>y,Um:()=>st,YS:()=>it,XI:()=>mt,sT:()=>u,IU:()=>ut,Vh:()=>Et,BK:()=>St,j:()=>g,X$:()=>v,oR:()=>vt,SU:()=>xt});var s=r(3577);const n=new WeakMap,i=[];let o;const a=Symbol(""),c=Symbol("");function l(t,e=s.kT){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const r=function(t,e){const r=function(){if(!r.active)return e.scheduler?void 0:t();if(!i.includes(r)){p(r);try{return f.push(d),d=!0,i.push(r),o=r,t()}finally{i.pop(),y(),o=i[i.length-1]}}};return r.id=h++,r.allowRecurse=!!e.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=t,r.deps=[],r.options=e,r}(t,e);return e.lazy||r(),r}function u(t){t.active&&(p(t),t.options.onStop&&t.options.onStop(),t.active=!1)}let h=0;function p(t){const{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}let d=!0;const f=[];function m(){f.push(d),d=!1}function y(){const t=f.pop();d=void 0===t||t}function g(t,e,r){if(!d||void 0===o)return;let s=n.get(t);s||n.set(t,s=new Map);let i=s.get(r);i||s.set(r,i=new Set),i.has(o)||(i.add(o),o.deps.push(i))}function v(t,e,r,i,l,u){const h=n.get(t);if(!h)return;const p=new Set,d=t=>{t&&t.forEach((t=>{(t!==o||t.allowRecurse)&&p.add(t)}))};if("clear"===e)h.forEach(d);else if("length"===r&&(0,s.kJ)(t))h.forEach(((t,e)=>{("length"===e||e>=i)&&d(t)}));else switch(void 0!==r&&d(h.get(r)),e){case"add":(0,s.kJ)(t)?(0,s.S0)(r)&&d(h.get("length")):(d(h.get(a)),(0,s._N)(t)&&d(h.get(c)));break;case"delete":(0,s.kJ)(t)||(d(h.get(a)),(0,s._N)(t)&&d(h.get(c)));break;case"set":(0,s._N)(t)&&d(h.get(a))}p.forEach((t=>{t.options.scheduler?t.options.scheduler(t):t()}))}const x=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(s.yk)),b=A(),w=A(!1,!0),P=A(!0),T=A(!0,!0),S={};function A(t=!1,e=!1){return function(r,n,i){if("__v_isReactive"===n)return!t;if("__v_isReadonly"===n)return t;if("__v_raw"===n&&i===(t?et:tt).get(r))return r;const o=(0,s.kJ)(r);if(o&&(0,s.RI)(S,n))return Reflect.get(S,n,i);const a=Reflect.get(r,n,i);if((0,s.yk)(n)?x.has(n):"__proto__"===n||"__v_isRef"===n)return a;if(t||g(r,0,n),e)return a;if(dt(a)){return!o||!(0,s.S0)(n)?a.value:a}return(0,s.Kn)(a)?t?nt(a):rt(a):a}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];S[t]=function(...t){const r=ut(this);for(let t=0,e=this.length;t<e;t++)g(r,0,t+"");const s=e.apply(r,t);return-1===s||!1===s?e.apply(r,t.map(ut)):s}})),["push","pop","shift","unshift","splice"].forEach((t=>{const e=Array.prototype[t];S[t]=function(...t){m();const r=e.apply(this,t);return y(),r}}));const E=C(),k=C(!0);function C(t=!1){return function(e,r,n,i){const o=e[r];if(!t&&(n=ut(n),!(0,s.kJ)(e)&&dt(o)&&!dt(n)))return o.value=n,!0;const a=(0,s.kJ)(e)&&(0,s.S0)(r)?Number(r)<e.length:(0,s.RI)(e,r),c=Reflect.set(e,r,n,i);return e===ut(i)&&(a?(0,s.aU)(n,o)&&v(e,"set",r,n):v(e,"add",r,n)),c}}const N={get:b,set:E,deleteProperty:function(t,e){const r=(0,s.RI)(t,e),n=(t[e],Reflect.deleteProperty(t,e));return n&&r&&v(t,"delete",e,void 0),n},has:function(t,e){const r=Reflect.has(t,e);return(0,s.yk)(e)&&x.has(e)||g(t,0,e),r},ownKeys:function(t){return g(t,0,(0,s.kJ)(t)?"length":a),Reflect.ownKeys(t)}},I={get:P,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},_=(0,s.l7)({},N,{get:w,set:k}),O=(0,s.l7)({},I,{get:T}),D=t=>(0,s.Kn)(t)?rt(t):t,M=t=>(0,s.Kn)(t)?nt(t):t,L=t=>t,R=t=>Reflect.getPrototypeOf(t);function j(t,e,r=!1,s=!1){const n=ut(t=t.__v_raw),i=ut(e);e!==i&&!r&&g(n,0,e),!r&&g(n,0,i);const{has:o}=R(n),a=r?M:s?L:D;return o.call(n,e)?a(t.get(e)):o.call(n,i)?a(t.get(i)):void 0}function F(t,e=!1){const r=this.__v_raw,s=ut(r),n=ut(t);return t!==n&&!e&&g(s,0,t),!e&&g(s,0,n),t===n?r.has(t):r.has(t)||r.has(n)}function B(t,e=!1){return t=t.__v_raw,!e&&g(ut(t),0,a),Reflect.get(t,"size",t)}function U(t){t=ut(t);const e=ut(this),r=R(e).has.call(e,t),s=e.add(t);return r||v(e,"add",t,t),s}function V(t,e){e=ut(e);const r=ut(this),{has:n,get:i}=R(r);let o=n.call(r,t);o||(t=ut(t),o=n.call(r,t));const a=i.call(r,t),c=r.set(t,e);return o?(0,s.aU)(e,a)&&v(r,"set",t,e):v(r,"add",t,e),c}function q(t){const e=ut(this),{has:r,get:s}=R(e);let n=r.call(e,t);n||(t=ut(t),n=r.call(e,t));s&&s.call(e,t);const i=e.delete(t);return n&&v(e,"delete",t,void 0),i}function H(){const t=ut(this),e=0!==t.size,r=t.clear();return e&&v(t,"clear",void 0,void 0),r}function $(t,e){return function(r,s){const n=this,i=n.__v_raw,o=ut(i),c=t?M:e?L:D;return!t&&g(o,0,a),i.forEach(((t,e)=>r.call(s,c(t),c(e),n)))}}function G(t,e,r){return function(...n){const i=this.__v_raw,o=ut(i),l=(0,s._N)(o),u="entries"===t||t===Symbol.iterator&&l,h="keys"===t&&l,p=i[t](...n),d=e?M:r?L:D;return!e&&g(o,0,h?c:a),{next(){const{value:t,done:e}=p.next();return e?{value:t,done:e}:{value:u?[d(t[0]),d(t[1])]:d(t),done:e}},[Symbol.iterator](){return this}}}}function K(t){return function(...e){return"delete"!==t&&this}}const z={get(t){return j(this,t)},get size(){return B(this)},has:F,add:U,set:V,delete:q,clear:H,forEach:$(!1,!1)},W={get(t){return j(this,t,!1,!0)},get size(){return B(this)},has:F,add:U,set:V,delete:q,clear:H,forEach:$(!1,!0)},J={get(t){return j(this,t,!0)},get size(){return B(this,!0)},has(t){return F.call(this,t,!0)},add:K("add"),set:K("set"),delete:K("delete"),clear:K("clear"),forEach:$(!0,!1)};function X(t,e){const r=e?W:t?J:z;return(e,n,i)=>"__v_isReactive"===n?!t:"__v_isReadonly"===n?t:"__v_raw"===n?e:Reflect.get((0,s.RI)(r,n)&&n in e?r:e,n,i)}["keys","values","entries",Symbol.iterator].forEach((t=>{z[t]=G(t,!1,!1),J[t]=G(t,!0,!1),W[t]=G(t,!1,!0)}));const Y={get:X(!1,!1)},Q={get:X(!1,!0)},Z={get:X(!0,!1)};const tt=new WeakMap,et=new WeakMap;function rt(t){return t&&t.__v_isReadonly?t:ot(t,!1,N,Y)}function st(t){return ot(t,!1,_,Q)}function nt(t){return ot(t,!0,I,Z)}function it(t){return ot(t,!0,O,Z)}function ot(t,e,r,n){if(!(0,s.Kn)(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const i=e?et:tt,o=i.get(t);if(o)return o;const a=(c=t).__v_skip||!Object.isExtensible(c)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,s.W7)(c));var c;if(0===a)return t;const l=new Proxy(t,2===a?n:r);return i.set(t,l),l}function at(t){return ct(t)?at(t.__v_raw):!(!t||!t.__v_isReactive)}function ct(t){return!(!t||!t.__v_isReadonly)}function lt(t){return at(t)||ct(t)}function ut(t){return t&&ut(t.__v_raw)||t}function ht(t){return(0,s.Nj)(t,"__v_skip",!0),t}const pt=t=>(0,s.Kn)(t)?rt(t):t;function dt(t){return Boolean(t&&!0===t.__v_isRef)}function ft(t){return gt(t)}function mt(t){return gt(t,!0)}class yt{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:pt(t)}get value(){return g(ut(this),0,"value"),this._value}set value(t){(0,s.aU)(ut(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:pt(t),v(ut(this),"set","value",t))}}function gt(t,e=!1){return dt(t)?t:new yt(t,e)}function vt(t){v(ut(t),"set","value",void 0)}function xt(t){return dt(t)?t.value:t}const bt={get:(t,e,r)=>xt(Reflect.get(t,e,r)),set:(t,e,r,s)=>{const n=t[e];return dt(n)&&!dt(r)?(n.value=r,!0):Reflect.set(t,e,r,s)}};function wt(t){return at(t)?t:new Proxy(t,bt)}class Pt{constructor(t){this.__v_isRef=!0;const{get:e,set:r}=t((()=>g(this,0,"value")),(()=>v(this,"set","value")));this._get=e,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Tt(t){return new Pt(t)}function St(t){const e=(0,s.kJ)(t)?new Array(t.length):{};for(const r in t)e[r]=Et(t,r);return e}class At{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 Et(t,e){return dt(t[e])?t[e]:new At(t,e)}class kt{constructor(t,e,r){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=l(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,v(ut(this),"set","value"))}}),this.__v_isReadonly=r}get value(){return this._dirty&&(this._value=this.effect(),this._dirty=!1),g(ut(this),0,"value"),this._value}set value(t){this._setter(t)}}function Ct(t){let e,r;return(0,s.mf)(t)?(e=t,r=s.dG):(e=t.get,r=t.set),new kt(e,r,(0,s.mf)(t)||!t.set)}},6252:(t,e,r)=>{"use strict";r.d(e,{ZM:()=>s.ZM,X3:()=>s.X3,PG:()=>s.PG,$y:()=>s.$y,dq:()=>s.dq,Xl:()=>s.Xl,WL:()=>s.WL,qj:()=>s.qj,OT:()=>s.OT,iH:()=>s.iH,Um:()=>s.Um,YS:()=>s.YS,XI:()=>s.XI,IU:()=>s.IU,Vh:()=>s.Vh,BK:()=>s.BK,oR:()=>s.oR,SU:()=>s.SU,_A:()=>n._A,kC:()=>n.kC,zw:()=>n.zw,hR:()=>n.hR,P$:()=>Dt,sv:()=>_e,HY:()=>Ne,Ob:()=>Vt,qG:()=>Oe,n4:()=>z,lR:()=>we,xv:()=>Ie,$d:()=>u,KU:()=>l,Ho:()=>Je,Fl:()=>_r,j4:()=>Ue,ry:()=>Qe,Eo:()=>fe,Us:()=>de,Nv:()=>$r,uE:()=>Ye,Uk:()=>Xe,Wm:()=>ze,RC:()=>Dr,aZ:()=>Or,zX:()=>Rr,MW:()=>Lr,mW:()=>M,FN:()=>br,Q6:()=>Bt,h:()=>Fr,S3:()=>h,Mr:()=>Vr,f3:()=>nr,lA:()=>Ve,dG:()=>rr,Y3:()=>A,dl:()=>$t,wF:()=>yt,Jd:()=>bt,Xn:()=>vt,se:()=>Gt,d1:()=>St,bv:()=>gt,bT:()=>Tt,Yq:()=>Pt,Ah:()=>wt,ic:()=>xt,wg:()=>Le,Cn:()=>it,JJ:()=>sr,dD:()=>nt,qb:()=>N,Y1:()=>Ar,Ko:()=>qr,WI:()=>tt,up:()=>Te,Q2:()=>Ee,LL:()=>Ae,U2:()=>Lt,qZ:()=>Be,ec:()=>L,nK:()=>Ft,Uc:()=>Br,G:()=>Kr,mx:()=>Hr,C3:()=>He,qp:()=>jr,Zq:()=>Ur,Y8:()=>_t,i8:()=>Gr,ZK:()=>o,YP:()=>kt,m0:()=>At,w5:()=>et,wy:()=>ee,HX:()=>ot});var s=r(2262),n=r(3577);const i=[];function o(t,...e){(0,s.Jd)();const r=i.length?i[i.length-1].component:null,n=r&&r.appContext.config.warnHandler,o=function(){let t=i[i.length-1];if(!t)return[];const e=[];for(;t;){const r=e[0];r&&r.vnode===t?r.recurseCount++:e.push({vnode:t,recurseCount:0});const s=t.component&&t.component.parent;t=s&&s.vnode}return e}();if(n)l(n,r,11,[t+e.join(""),r&&r.proxy,o.map((({vnode:t})=>`at <${Nr(r,t.type)}>`)).join("\n"),o]);else{const r=[`[Vue warn]: ${t}`,...e];o.length&&r.push("\n",...function(t){const e=[];return t.forEach(((t,r)=>{e.push(...0===r?[]:["\n"],...function({vnode:t,recurseCount:e}){const r=e>0?`... (${e} recursive calls)`:"",s=!!t.component&&null==t.component.parent,n=` at <${Nr(t.component,t.type,s)}`,i=">"+r;return t.props?[n,...a(t.props),i]:[n+i]}(t))})),e}(o)),console.warn(...r)}(0,s.lk)()}function a(t){const e=[],r=Object.keys(t);return r.slice(0,3).forEach((r=>{e.push(...c(r,t[r]))})),r.length>3&&e.push(" ..."),e}function c(t,e,r){return(0,n.HD)(e)?(e=JSON.stringify(e),r?e:[`${t}=${e}`]):"number"==typeof e||"boolean"==typeof e||null==e?r?e:[`${t}=${e}`]:(0,s.dq)(e)?(e=c(t,(0,s.IU)(e.value),!0),r?e:[`${t}=Ref<`,e,">"]):(0,n.mf)(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=(0,s.IU)(e),r?e:[`${t}=`,e])}function l(t,e,r,s){let n;try{n=s?t(...s):t()}catch(t){h(t,e,r)}return n}function u(t,e,r,s){if((0,n.mf)(t)){const i=l(t,e,r,s);return i&&(0,n.tI)(i)&&i.catch((t=>{h(t,e,r)})),i}const i=[];for(let n=0;n<t.length;n++)i.push(u(t[n],e,r,s));return i}function h(t,e,r,s=!0){e&&e.vnode;if(e){let s=e.parent;const n=e.proxy,i=r;for(;s;){const e=s.ec;if(e)for(let r=0;r<e.length;r++)if(!1===e[r](t,n,i))return;s=s.parent}const o=e.appContext.config.errorHandler;if(o)return void l(o,null,10,[t,n,i])}!function(t,e,r,s=!0){console.error(t)}(t,0,0,s)}let p=!1,d=!1;const f=[];let m=0;const y=[];let g=null,v=0;const x=[];let b=null,w=0;const P=Promise.resolve();let T=null,S=null;function A(t){const e=T||P;return t?e.then(this?t.bind(this):t):e}function E(t){f.length&&f.includes(t,p&&t.allowRecurse?m+1:m)||t===S||(f.push(t),k())}function k(){p||d||(d=!0,T=P.then(D))}function C(t,e,r,s){(0,n.kJ)(t)?r.push(...t):e&&e.includes(t,t.allowRecurse?s+1:s)||r.push(t),k()}function N(t){C(t,b,x,w)}function I(t,e=null){if(y.length){for(S=e,g=[...new Set(y)],y.length=0,v=0;v<g.length;v++)g[v]();g=null,v=0,S=null,I(t,e)}}function _(t){if(x.length){const t=[...new Set(x)];if(x.length=0,b)return void b.push(...t);for(b=t,b.sort(((t,e)=>O(t)-O(e))),w=0;w<b.length;w++)b[w]();b=null,w=0}}const O=t=>null==t.id?1/0:t.id;function D(t){d=!1,p=!0,I(t),f.sort(((t,e)=>O(t)-O(e)));try{for(m=0;m<f.length;m++){const t=f[m];t&&l(t,null,14)}}finally{m=0,f.length=0,_(),p=!1,T=null,(f.length||x.length)&&D(t)}}new Set;new Map;let M;function L(t){M=t}function R(t,e,...r){const s=t.vnode.props||n.kT;let i=r;const o=e.startsWith("update:"),a=o&&e.slice(7);if(a&&a in s){const t=`${"modelValue"===a?"model":a}Modifiers`,{number:e,trim:o}=s[t]||n.kT;o?i=r.map((t=>t.trim())):e&&(i=r.map(n.He))}let c=(0,n.hR)((0,n._A)(e)),l=s[c];!l&&o&&(c=(0,n.hR)((0,n.rs)(e)),l=s[c]),l&&u(l,t,6,i);const h=s[c+"Once"];if(h){if(t.emitted){if(t.emitted[c])return}else(t.emitted={})[c]=!0;u(h,t,6,i)}}function j(t,e,r=!1){if(!e.deopt&&void 0!==t.__emits)return t.__emits;const s=t.emits;let i={},o=!1;if(!(0,n.mf)(t)){const s=t=>{o=!0,(0,n.l7)(i,j(t,e,!0))};!r&&e.mixins.length&&e.mixins.forEach(s),t.extends&&s(t.extends),t.mixins&&t.mixins.forEach(s)}return s||o?((0,n.kJ)(s)?s.forEach((t=>i[t]=null)):(0,n.l7)(i,s),t.__emits=i):t.__emits=null}function F(t,e){return!(!t||!(0,n.F7)(e))&&(e=e.replace(/Once$/,""),(0,n.RI)(t,e[2].toLowerCase()+e.slice(3))||(0,n.RI)(t,e.slice(2)))}let B=null;function U(t){B=t}function V(t){const{type:e,vnode:r,proxy:s,withProxy:i,props:o,propsOptions:[a],slots:c,attrs:l,emit:u,render:p,renderCache:d,data:f,setupState:m,ctx:y}=t;let g;B=t;try{let t;if(4&r.shapeFlag){const e=i||s;g=Ze(p.call(e,e,d,o,m,f,y)),t=l}else{const r=e;0,g=Ze(r.length>1?r(o,{attrs:l,slots:c,emit:u}):r(o,null)),t=e.props?l:H(l)}let h=g;if(!1!==e.inheritAttrs&&t){const e=Object.keys(t),{shapeFlag:r}=h;e.length&&(1&r||6&r)&&(a&&e.some(n.tR)&&(t=$(t,a)),h=Je(h,t))}r.dirs&&(h.dirs=h.dirs?h.dirs.concat(r.dirs):r.dirs),r.transition&&(h.transition=r.transition),g=h}catch(e){h(e,t,1),g=ze(_e)}return B=null,g}function q(t){const e=t.filter((t=>!(Ve(t)&&t.type===_e&&"v-if"!==t.children)));return 1===e.length&&Ve(e[0])?e[0]:null}const H=t=>{let e;for(const r in t)("class"===r||"style"===r||(0,n.F7)(r))&&((e||(e={}))[r]=t[r]);return e},$=(t,e)=>{const r={};for(const s in t)(0,n.tR)(s)&&s.slice(9)in e||(r[s]=t[s]);return r};function G(t,e,r){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let n=0;n<s.length;n++){const i=s[n];if(e[i]!==t[i]&&!F(r,i))return!0}return!1}function K({vnode:t,parent:e},r){for(;e&&e.subTree===t;)(t=e.vnode).el=r,e=e.parent}const z={__isSuspense:!0,process(t,e,r,s,i,o,a,c,l){null==t?function(t,e,r,s,n,i,o,a){const{p:c,o:{createElement:l}}=a,u=l("div"),h=t.suspense=W(t,n,s,e,u,r,i,o,a);c(null,h.pendingBranch=t.ssContent,u,null,s,h,i),h.deps>0?(c(null,t.ssFallback,e,r,s,null,i),Y(h,t.ssFallback)):h.resolve()}(e,r,s,i,o,a,c,l):function(t,e,r,s,i,o,{p:a,um:c,o:{createElement:l}}){const u=e.suspense=t.suspense;u.vnode=e,e.el=t.el;const h=e.ssContent,p=e.ssFallback,{activeBranch:d,pendingBranch:f,isInFallback:m,isHydrating:y}=u;if(f)u.pendingBranch=h,qe(h,f)?(a(f,h,u.hiddenContainer,null,i,u,o),u.deps<=0?u.resolve():m&&(a(d,p,r,s,i,null,o),Y(u,p))):(u.pendingId++,y?(u.isHydrating=!1,u.activeBranch=f):c(f,i,u),u.deps=0,u.effects.length=0,u.hiddenContainer=l("div"),m?(a(null,h,u.hiddenContainer,null,i,u,o),u.deps<=0?u.resolve():(a(d,p,r,s,i,null,o),Y(u,p))):d&&qe(h,d)?(a(d,h,r,s,i,u,o),u.resolve(!0)):(a(null,h,u.hiddenContainer,null,i,u,o),u.deps<=0&&u.resolve()));else if(d&&qe(h,d))a(d,h,r,s,i,u,o),Y(u,h);else{const t=e.props&&e.props.onPending;if((0,n.mf)(t)&&t(),u.pendingBranch=h,u.pendingId++,a(null,h,u.hiddenContainer,null,i,u,o),u.deps<=0)u.resolve();else{const{timeout:t,pendingId:e}=u;t>0?setTimeout((()=>{u.pendingId===e&&u.fallback(p)}),t):0===t&&u.fallback(p)}}}(t,e,r,s,i,a,l)},hydrate:function(t,e,r,s,n,i,o,a){const c=e.suspense=W(e,s,r,t.parentNode,document.createElement("div"),null,n,i,o,!0),l=a(t,c.pendingBranch=e.ssContent,r,c,i);0===c.deps&&c.resolve();return l},create:W};function W(t,e,r,s,i,o,a,c,l,u=!1){const{p,m:d,um:f,n:m,o:{parentNode:y,remove:g}}=l,v=(0,n.He)(t.props&&t.props.timeout),x={vnode:t,parent:e,parentComponent:r,isSVG:a,container:s,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:"number"==typeof v?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(t=!1){const{vnode:e,activeBranch:r,pendingBranch:s,pendingId:i,effects:o,parentComponent:a,container:c}=x;if(x.isHydrating)x.isHydrating=!1;else if(!t){const t=r&&s.transition&&"out-in"===s.transition.mode;t&&(r.transition.afterLeave=()=>{i===x.pendingId&&d(s,c,e,0)});let{anchor:e}=x;r&&(e=m(r),f(r,a,x,!0)),t||d(s,c,e,0)}Y(x,s),x.pendingBranch=null,x.isInFallback=!1;let l=x.parent,u=!1;for(;l;){if(l.pendingBranch){l.effects.push(...o),u=!0;break}l=l.parent}u||N(o),x.effects=[];const h=e.props&&e.props.onResolve;(0,n.mf)(h)&&h()},fallback(t){if(!x.pendingBranch)return;const{vnode:e,activeBranch:r,parentComponent:s,container:i,isSVG:o}=x,a=e.props&&e.props.onFallback;(0,n.mf)(a)&&a();const c=m(r),l=()=>{x.isInFallback&&(p(null,t,i,c,s,null,o),Y(x,t))},u=t.transition&&"out-in"===t.transition.mode;u&&(r.transition.afterLeave=l),f(r,s,null,!0),x.isInFallback=!0,u||l()},move(t,e,r){x.activeBranch&&d(x.activeBranch,t,e,r),x.container=t},next:()=>x.activeBranch&&m(x.activeBranch),registerDep(t,e){if(!x.pendingBranch)return;const r=t.vnode.el;x.deps++,t.asyncDep.catch((e=>{h(e,t,0)})).then((s=>{if(t.isUnmounted||x.isUnmounted||x.pendingId!==t.suspenseId)return;x.deps--,t.asyncResolved=!0;const{vnode:n}=t;Sr(t,s),r&&(n.el=r);const i=!r&&t.subTree.el;e(t,n,y(r||t.subTree.el),r?null:m(t.subTree),x,a,c),i&&g(i),K(t,n.el),0===x.deps&&x.resolve()}))},unmount(t,e){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,r,t,e),x.pendingBranch&&f(x.pendingBranch,r,t,e)}};return x}function J(t){if((0,n.mf)(t)&&(t=t()),(0,n.kJ)(t)){0,t=q(t)}return Ze(t)}function X(t,e){e&&e.pendingBranch?(0,n.kJ)(t)?e.effects.push(...t):e.effects.push(t):N(t)}function Y(t,e){t.activeBranch=e;const{vnode:r,parentComponent:s}=t,n=r.el=e.el;s&&s.subTree===r&&(s.vnode.el=n,K(s,n))}let Q=0;const Z=t=>Q+=t;function tt(t,e,r={},s){let n=t[e];Q++;const i=(Le(),Ue(Ne,{key:r.key},n?n(r):s?s():[],1===t._?64:-2));return Q--,i}function et(t,e=B){if(!e)return t;const r=(...r)=>{Q||Le(!0);const s=B;U(e);const n=t(...r);return U(s),Q||Re(),n};return r._c=!0,r}let rt=null;const st=[];function nt(t){st.push(rt=t)}function it(){st.pop(),rt=st[st.length-1]||null}function ot(t){return e=>et((function(){nt(t);const r=e.apply(this,arguments);return it(),r}))}function at(t,e,r,i){const[o,a]=t.propsOptions;if(e)for(const s in e){const a=e[s];if((0,n.Gg)(s))continue;let c;o&&(0,n.RI)(o,c=(0,n._A)(s))?r[c]=a:F(t.emitsOptions,s)||(i[s]=a)}if(a){const e=(0,s.IU)(r);for(let s=0;s<a.length;s++){const n=a[s];r[n]=ct(o,e,n,e[n],t)}}}function ct(t,e,r,s,i){const o=t[r];if(null!=o){const t=(0,n.RI)(o,"default");if(t&&void 0===s){const t=o.default;o.type!==Function&&(0,n.mf)(t)?(wr(i),s=t(e),wr(null)):s=t}o[0]&&((0,n.RI)(e,r)||t?!o[1]||""!==s&&s!==(0,n.rs)(r)||(s=!0):s=!1)}return s}function lt(t,e,r=!1){if(!e.deopt&&t.__props)return t.__props;const s=t.props,i={},o=[];let a=!1;if(!(0,n.mf)(t)){const s=t=>{a=!0;const[r,s]=lt(t,e,!0);(0,n.l7)(i,r),s&&o.push(...s)};!r&&e.mixins.length&&e.mixins.forEach(s),t.extends&&s(t.extends),t.mixins&&t.mixins.forEach(s)}if(!s&&!a)return t.__props=n.Z6;if((0,n.kJ)(s))for(let t=0;t<s.length;t++){0;const e=(0,n._A)(s[t]);ut(e)&&(i[e]=n.kT)}else if(s){0;for(const t in s){const e=(0,n._A)(t);if(ut(e)){const r=s[t],a=i[e]=(0,n.kJ)(r)||(0,n.mf)(r)?{type:r}:r;if(a){const t=dt(Boolean,a.type),r=dt(String,a.type);a[0]=t>-1,a[1]=r<0||t<r,(t>-1||(0,n.RI)(a,"default"))&&o.push(e)}}}}return t.__props=[i,o]}function ut(t){return"$"!==t[0]}function ht(t){const e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function pt(t,e){return ht(t)===ht(e)}function dt(t,e){if((0,n.kJ)(e)){for(let r=0,s=e.length;r<s;r++)if(pt(e[r],t))return r}else if((0,n.mf)(e))return pt(e,t)?0:-1;return-1}function ft(t,e,r=xr,n=!1){if(r){const i=r[t]||(r[t]=[]),o=e.__weh||(e.__weh=(...n)=>{if(r.isUnmounted)return;(0,s.Jd)(),wr(r);const i=u(e,r,t,n);return wr(null),(0,s.lk)(),i});return n?i.unshift(o):i.push(o),o}}const mt=t=>(e,r=xr)=>!Tr&&ft(t,e,r),yt=mt("bm"),gt=mt("m"),vt=mt("bu"),xt=mt("u"),bt=mt("bum"),wt=mt("um"),Pt=mt("rtg"),Tt=mt("rtc"),St=(t,e=xr)=>{ft("ec",t,e)};function At(t,e){return Ct(t,null,e)}const Et={};function kt(t,e,r){return Ct(t,e,r)}function Ct(t,e,{immediate:r,deep:i,flush:o,onTrack:a,onTrigger:c}=n.kT,h=xr){let p,d,f=!1;if((0,s.dq)(t)?(p=()=>t.value,f=!!t._shallow):(0,s.PG)(t)?(p=()=>t,i=!0):p=(0,n.kJ)(t)?()=>t.map((t=>(0,s.dq)(t)?t.value:(0,s.PG)(t)?It(t):(0,n.mf)(t)?l(t,h,2):void 0)):(0,n.mf)(t)?e?()=>l(t,h,2):()=>{if(!h||!h.isUnmounted)return d&&d(),l(t,h,3,[m])}:n.dG,e&&i){const t=p;p=()=>It(t())}const m=t=>{d=P.options.onStop=()=>{l(t,h,4)}};let x=(0,n.kJ)(t)?[]:Et;const b=()=>{if(P.active)if(e){const t=P();(i||f||(0,n.aU)(t,x))&&(d&&d(),u(e,h,3,[t,x===Et?void 0:x,m]),x=t)}else P()};let w;b.allowRecurse=!!e,w="sync"===o?b:"post"===o?()=>he(b,h&&h.suspense):()=>{!h||h.isMounted?function(t){C(t,g,y,v)}(b):b()};const P=(0,s.cE)(p,{lazy:!0,onTrack:a,onTrigger:c,scheduler:w});return kr(P),e?r?b():x=P():"post"===o?he(P,h&&h.suspense):P(),()=>{(0,s.sT)(P),h&&(0,n.Od)(h.effects,P)}}function Nt(t,e,r){const s=this.proxy;return Ct((0,n.HD)(t)?()=>s[t]:t.bind(s),e.bind(s),r,this)}function It(t,e=new Set){if(!(0,n.Kn)(t)||e.has(t))return t;if(e.add(t),(0,s.dq)(t))It(t.value,e);else if((0,n.kJ)(t))for(let r=0;r<t.length;r++)It(t[r],e);else if((0,n.DM)(t)||(0,n._N)(t))t.forEach((t=>{It(t,e)}));else for(const r in t)It(t[r],e);return t}function _t(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt((()=>{t.isMounted=!0})),bt((()=>{t.isUnmounting=!0})),t}const Ot=[Function,Array],Dt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ot,onEnter:Ot,onAfterEnter:Ot,onEnterCancelled:Ot,onBeforeLeave:Ot,onLeave:Ot,onAfterLeave:Ot,onLeaveCancelled:Ot,onBeforeAppear:Ot,onAppear:Ot,onAfterAppear:Ot,onAppearCancelled:Ot},setup(t,{slots:e}){const r=br(),n=_t();let i;return()=>{const o=e.default&&Bt(e.default(),!0);if(!o||!o.length)return;const a=(0,s.IU)(t),{mode:c}=a;const l=o[0];if(n.isLeaving)return Rt(l);const u=jt(l);if(!u)return Rt(l);const h=Lt(u,a,n,r);Ft(u,h);const p=r.subTree,d=p&&jt(p);let f=!1;const{getTransitionKey:m}=u.type;if(m){const t=m();void 0===i?i=t:t!==i&&(i=t,f=!0)}if(d&&d.type!==_e&&(!qe(u,d)||f)){const t=Lt(d,a,n,r);if(Ft(d,t),"out-in"===c)return n.isLeaving=!0,t.afterLeave=()=>{n.isLeaving=!1,r.update()},Rt(l);"in-out"===c&&(t.delayLeave=(t,e,r)=>{Mt(n,d)[String(d.key)]=d,t._leaveCb=()=>{e(),t._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=r})}return l}}};function Mt(t,e){const{leavingVNodes:r}=t;let s=r.get(e.type);return s||(s=Object.create(null),r.set(e.type,s)),s}function Lt(t,e,r,s){const{appear:n,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:h,onBeforeLeave:p,onLeave:d,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:y,onAppear:g,onAfterAppear:v,onAppearCancelled:x}=e,b=String(t.key),w=Mt(r,t),P=(t,e)=>{t&&u(t,s,9,e)},T={mode:i,persisted:o,beforeEnter(e){let s=a;if(!r.isMounted){if(!n)return;s=y||a}e._leaveCb&&e._leaveCb(!0);const i=w[b];i&&qe(t,i)&&i.el._leaveCb&&i.el._leaveCb(),P(s,[e])},enter(t){let e=c,s=l,i=h;if(!r.isMounted){if(!n)return;e=g||c,s=v||l,i=x||h}let o=!1;const a=t._enterCb=e=>{o||(o=!0,P(e?i:s,[t]),T.delayedLeave&&T.delayedLeave(),t._enterCb=void 0)};e?(e(t,a),e.length<=1&&a()):a()},leave(e,s){const n=String(t.key);if(e._enterCb&&e._enterCb(!0),r.isUnmounting)return s();P(p,[e]);let i=!1;const o=e._leaveCb=r=>{i||(i=!0,s(),P(r?m:f,[e]),e._leaveCb=void 0,w[n]===t&&delete w[n])};w[n]=t,d?(d(e,o),d.length<=1&&o()):o()},clone:t=>Lt(t,e,r,s)};return T}function Rt(t){if(Ut(t))return(t=Je(t)).children=null,t}function jt(t){return Ut(t)?t.children?t.children[0]:void 0:t}function Ft(t,e){6&t.shapeFlag&&t.component?Ft(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 Bt(t,e=!1){let r=[],s=0;for(let n=0;n<t.length;n++){const i=t[n];i.type===Ne?(128&i.patchFlag&&s++,r=r.concat(Bt(i.children,e))):(e||i.type!==_e)&&r.push(i)}if(s>1)for(let t=0;t<r.length;t++)r[t].patchFlag=-2;return r}const Ut=t=>t.type.__isKeepAlive,Vt={name:"KeepAlive",__isKeepAlive:!0,inheritRef:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=new Map,s=new Set;let i=null;const o=br(),a=o.suspense,c=o.ctx,{renderer:{p:l,m:u,um:h,o:{createElement:p}}}=c,d=p("div");function f(t){Wt(t),h(t,o,a)}function m(t){r.forEach(((e,r)=>{const s=qt(e.type);!s||t&&t(s)||y(r)}))}function y(t){const e=r.get(t);i&&e.type===i.type?i&&Wt(i):f(e),r.delete(t),s.delete(t)}c.activate=(t,e,r,s,i)=>{const o=t.component;u(t,e,r,0,a),l(o.vnode,t,e,r,o,a,s,i),he((()=>{o.isDeactivated=!1,o.a&&(0,n.ir)(o.a);const e=t.props&&t.props.onVnodeMounted;e&&ye(e,o.parent,t)}),a)},c.deactivate=t=>{const e=t.component;u(t,d,null,1,a),he((()=>{e.da&&(0,n.ir)(e.da);const r=t.props&&t.props.onVnodeUnmounted;r&&ye(r,e.parent,t),e.isDeactivated=!0}),a)},kt((()=>[t.include,t.exclude]),(([t,e])=>{t&&m((e=>Ht(t,e))),e&&m((t=>!Ht(e,t)))}),{flush:"post"});let g=null;const v=()=>{null!=g&&r.set(g,Jt(o.subTree))};return gt(v),xt(v),bt((()=>{r.forEach((t=>{const{subTree:e,suspense:r}=o,s=Jt(e);if(t.type!==s.type)f(t);else{Wt(s);const t=s.component.da;t&&he(t,r)}}))})),()=>{if(g=null,!e.default)return null;const n=e.default(),o=n[0];if(n.length>1)return i=null,n;if(!(Ve(o)&&(4&o.shapeFlag||128&o.shapeFlag)))return i=null,o;let a=Jt(o);const c=a.type,l=qt(c),{include:u,exclude:h,max:p}=t;if(u&&(!l||!Ht(u,l))||h&&l&&Ht(h,l))return i=a,o;const d=null==a.key?c:a.key,f=r.get(d);return a.el&&(a=Je(a),128&o.shapeFlag&&(o.ssContent=a)),g=d,f?(a.el=f.el,a.component=f.component,a.transition&&Ft(a,a.transition),a.shapeFlag|=512,s.delete(d),s.add(d)):(s.add(d),p&&s.size>parseInt(p,10)&&y(s.values().next().value)),a.shapeFlag|=256,i=a,o}}};function qt(t){return t.displayName||t.name}function Ht(t,e){return(0,n.kJ)(t)?t.some((t=>Ht(t,e))):(0,n.HD)(t)?t.split(",").indexOf(e)>-1:!!t.test&&t.test(e)}function $t(t,e){Kt(t,"a",e)}function Gt(t,e){Kt(t,"da",e)}function Kt(t,e,r=xr){const s=t.__wdc||(t.__wdc=()=>{let e=r;for(;e;){if(e.isDeactivated)return;e=e.parent}t()});if(ft(e,s,r),r){let t=r.parent;for(;t&&t.parent;)Ut(t.parent.vnode)&&zt(s,e,r,t),t=t.parent}}function zt(t,e,r,s){const i=ft(e,t,s,!0);wt((()=>{(0,n.Od)(s[e],i)}),r)}function Wt(t){let e=t.shapeFlag;256&e&&(e-=256),512&e&&(e-=512),t.shapeFlag=e}function Jt(t){return 128&t.shapeFlag?t.ssContent:t}const Xt=t=>"_"===t[0]||"$stable"===t,Yt=t=>(0,n.kJ)(t)?t.map(Ze):[Ze(t)],Qt=(t,e,r)=>et((t=>Yt(e(t))),r),Zt=(t,e)=>{const r=t._ctx;for(const s in t){if(Xt(s))continue;const i=t[s];if((0,n.mf)(i))e[s]=Qt(0,i,r);else if(null!=i){0;const t=Yt(i);e[s]=()=>t}}},te=(t,e)=>{const r=Yt(e);t.slots.default=()=>r};function ee(t,e){if(null===B)return t;const r=B.proxy,s=t.dirs||(t.dirs=[]);for(let t=0;t<e.length;t++){let[i,o,a,c=n.kT]=e[t];(0,n.mf)(i)&&(i={mounted:i,updated:i}),s.push({dir:i,instance:r,value:o,oldValue:void 0,arg:a,modifiers:c})}return t}function re(t,e,r,s){const n=t.dirs,i=e&&e.dirs;for(let o=0;o<n.length;o++){const a=n[o];i&&(a.oldValue=i[o].value);const c=a.dir[s];c&&u(c,r,8,[t.el,a,t,e])}}function se(){return{app:null,config:{isNativeTag:n.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},isCustomElement:n.NO,errorHandler:void 0,warnHandler:void 0},mixins:[],components:{},directives:{},provides:Object.create(null)}}let ne=0;function ie(t,e){return function(r,s=null){null==s||(0,n.Kn)(s)||(s=null);const i=se(),o=new Set;let a=!1;const c=i.app={_uid:ne++,_component:r,_props:s,_container:null,_context:i,version:Gr,get config(){return i.config},set config(t){0},use:(t,...e)=>(o.has(t)||(t&&(0,n.mf)(t.install)?(o.add(t),t.install(c,...e)):(0,n.mf)(t)&&(o.add(t),t(c,...e))),c),mixin:t=>(i.mixins.includes(t)||(i.mixins.push(t),(t.props||t.emits)&&(i.deopt=!0)),c),component:(t,e)=>e?(i.components[t]=e,c):i.components[t],directive:(t,e)=>e?(i.directives[t]=e,c):i.directives[t],mount(n,o){if(!a){const l=ze(r,s);return l.appContext=i,o&&e?e(l,n):t(l,n),a=!0,c._container=n,n.__vue_app__=c,l.component.proxy}},unmount(){a&&t(null,c._container)},provide:(t,e)=>(i.provides[t]=e,c)};return c}}let oe=!1;const ae=t=>/svg/.test(t.namespaceURI)&&"foreignObject"!==t.tagName,ce=t=>8===t.nodeType;function le(t){const{mt:e,p:r,o:{patchProp:s,nextSibling:i,parentNode:o,remove:a,insert:c,createComment:l}}=t,u=(r,s,n,a,c=!1)=>{const l=ce(r)&&"["===r.data,y=()=>f(r,s,n,a,l),{type:g,ref:v,shapeFlag:x}=s,b=r.nodeType;s.el=r;let w=null;switch(g){case Ie:3!==b?w=y():(r.data!==s.children&&(oe=!0,r.data=s.children),w=i(r));break;case _e:w=8!==b||l?y():i(r);break;case Oe:if(1===b){w=r;const t=!s.children.length;for(let e=0;e<s.staticCount;e++)t&&(s.children+=w.outerHTML),e===s.staticCount-1&&(s.anchor=w),w=i(w);return w}w=y();break;case Ne:w=l?d(r,s,n,a,c):y();break;default:if(1&x)w=1!==b||s.type!==r.tagName.toLowerCase()?y():h(r,s,n,a,c);else if(6&x){const t=o(r),u=()=>{e(s,t,null,n,a,ae(t),c)},h=s.type.__asyncLoader;h?h().then(u):u(),w=l?m(r):i(r)}else 64&x?w=8!==b?y():s.type.hydrate(r,s,n,a,c,t,p):128&x&&(w=s.type.hydrate(r,s,n,a,ae(o(r)),c,t,u))}return null!=v&&n&&pe(v,null,n,a,s),w},h=(t,e,r,i,o)=>{o=o||!!e.dynamicChildren;const{props:c,patchFlag:l,shapeFlag:u,dirs:h}=e;if(-1!==l){if(h&&re(e,null,r,"created"),c)if(!o||16&l||32&l)for(const e in c)!(0,n.Gg)(e)&&(0,n.F7)(e)&&s(t,e,null,c[e]);else c.onClick&&s(t,"onClick",null,c.onClick);let d;if((d=c&&c.onVnodeBeforeMount)&&ye(d,r,e),h&&re(e,null,r,"beforeMount"),((d=c&&c.onVnodeMounted)||h)&&X((()=>{d&&ye(d,r,e),h&&re(e,null,r,"mounted")}),i),16&u&&(!c||!c.innerHTML&&!c.textContent)){let s=p(t.firstChild,e,t,r,i,o);for(;s;){oe=!0;const t=s;s=s.nextSibling,a(t)}}else 8&u&&t.textContent!==e.children&&(oe=!0,t.textContent=e.children)}return t.nextSibling},p=(t,e,s,n,i,o)=>{o=o||!!e.dynamicChildren;const a=e.children,c=a.length;for(let e=0;e<c;e++){const c=o?a[e]:a[e]=Ze(a[e]);t?t=u(t,c,n,i,o):(oe=!0,r(null,c,s,null,n,i,ae(s)))}return t},d=(t,e,r,s,n)=>{const a=o(t),u=p(i(t),e,a,r,s,n);return u&&ce(u)&&"]"===u.data?i(e.anchor=u):(oe=!0,c(e.anchor=l("]"),a,u),u)},f=(t,e,s,n,c)=>{if(oe=!0,e.el=null,c){const e=m(t);for(;;){const r=i(t);if(!r||r===e)break;a(r)}}const l=i(t),u=o(t);return a(t),r(null,e,u,l,s,n,ae(u)),l},m=t=>{let e=0;for(;t;)if((t=i(t))&&ce(t)&&("["===t.data&&e++,"]"===t.data)){if(0===e)return i(t);e--}return t};return[(t,e)=>{oe=!1,u(e.firstChild,t,null,null),_(),oe&&console.error("Hydration completed but contains mismatches.")},u]}const ue={scheduler:E,allowRecurse:!0};const he=X,pe=(t,e,r,i,o)=>{if((0,n.kJ)(t))return void t.forEach(((t,s)=>pe(t,e&&((0,n.kJ)(e)?e[s]:e),r,i,o)));let a;a=o?4&o.shapeFlag?o.component.exposed||o.component.proxy:o.el:null;const{i:c,r:u}=t;const h=e&&e.r,p=c.refs===n.kT?c.refs={}:c.refs,d=c.setupState;if(null!=h&&h!==u&&((0,n.HD)(h)?(p[h]=null,(0,n.RI)(d,h)&&(d[h]=null)):(0,s.dq)(h)&&(h.value=null)),(0,n.HD)(u)){const t=()=>{p[u]=a,(0,n.RI)(d,u)&&(d[u]=a)};a?(t.id=-1,he(t,i)):t()}else if((0,s.dq)(u)){const t=()=>{u.value=a};a?(t.id=-1,he(t,i)):t()}else(0,n.mf)(u)&&l(u,r,12,[a,p])};function de(t){return me(t)}function fe(t){return me(t,le)}function me(t,e){const{insert:r,remove:i,patchProp:o,forcePatchProp:a,createElement:c,createText:u,createComment:h,setText:p,setElementText:d,parentNode:m,nextSibling:y,setScopeId:g=n.dG,cloneNode:v,insertStaticContent:x}=t,b=(t,e,r,s=null,n=null,i=null,o=!1,a=!1)=>{t&&!qe(t,e)&&(s=tt(t),J(t,n,i,!0),t=null),-2===e.patchFlag&&(a=!1,e.dynamicChildren=null);const{type:c,ref:l,shapeFlag:u}=e;switch(c){case Ie:w(t,e,r,s);break;case _e:P(t,e,r,s);break;case Oe:null==t&&T(e,r,s,o);break;case Ne:D(t,e,r,s,n,i,o,a);break;default:1&u?S(t,e,r,s,n,i,o,a):6&u?M(t,e,r,s,n,i,o,a):(64&u||128&u)&&c.process(t,e,r,s,n,i,o,a,rt)}null!=l&&n&&pe(l,t&&t.ref,n,i,e)},w=(t,e,s,n)=>{if(null==t)r(e.el=u(e.children),s,n);else{const r=e.el=t.el;e.children!==t.children&&p(r,e.children)}},P=(t,e,s,n)=>{null==t?r(e.el=h(e.children||""),s,n):e.el=t.el},T=(t,e,r,s)=>{[t.el,t.anchor]=x(t.children,e,r,s)},S=(t,e,r,s,n,i,o,a)=>{o=o||"svg"===e.type,null==t?A(e,r,s,n,i,o,a):C(t,e,n,i,o,a)},A=(t,e,s,i,a,l,u)=>{let h,p;const{type:f,props:m,shapeFlag:y,transition:g,scopeId:x,patchFlag:b,dirs:w}=t;if(t.el&&void 0!==v&&-1===b)h=t.el=v(t.el);else{if(h=t.el=c(t.type,l,m&&m.is),8&y?d(h,t.children):16&y&&k(t.children,h,null,i,a,l&&"foreignObject"!==f,u||!!t.dynamicChildren),w&&re(t,null,i,"created"),m){for(const e in m)(0,n.Gg)(e)||o(h,e,null,m[e],l,t.children,i,a,Z);(p=m.onVnodeBeforeMount)&&ye(p,i,t)}E(h,x,t,i)}w&&re(t,null,i,"beforeMount");const P=(!a||a&&!a.pendingBranch)&&g&&!g.persisted;P&&g.beforeEnter(h),r(h,e,s),((p=m&&m.onVnodeMounted)||P||w)&&he((()=>{p&&ye(p,i,t),P&&g.enter(h),w&&re(t,null,i,"mounted")}),a)},E=(t,e,r,s)=>{if(e&&g(t,e),s){const n=s.type.__scopeId;n&&n!==e&&g(t,n+"-s"),0,r===s.subTree&&E(t,s.vnode.scopeId,s.vnode,s.parent)}},k=(t,e,r,s,n,i,o,a=0)=>{for(let c=a;c<t.length;c++){const a=t[c]=o?tr(t[c]):Ze(t[c]);b(null,a,e,r,s,n,i,o)}},C=(t,e,r,s,i,c)=>{const l=e.el=t.el;let{patchFlag:u,dynamicChildren:h,dirs:p}=e;u|=16&t.patchFlag;const f=t.props||n.kT,m=e.props||n.kT;let y;if((y=m.onVnodeBeforeUpdate)&&ye(y,r,e,t),p&&re(e,t,r,"beforeUpdate"),u>0){if(16&u)O(l,e,f,m,r,s,i);else if(2&u&&f.class!==m.class&&o(l,"class",null,m.class,i),4&u&&o(l,"style",f.style,m.style,i),8&u){const n=e.dynamicProps;for(let e=0;e<n.length;e++){const c=n[e],u=f[c],h=m[c];(h!==u||a&&a(l,c))&&o(l,c,u,h,i,t.children,r,s,Z)}}1&u&&t.children!==e.children&&d(l,e.children)}else c||null!=h||O(l,e,f,m,r,s,i);const g=i&&"foreignObject"!==e.type;h?N(t.dynamicChildren,h,l,r,s,g):c||H(t,e,l,null,r,s,g),((y=m.onVnodeUpdated)||p)&&he((()=>{y&&ye(y,r,e,t),p&&re(e,t,r,"updated")}),s)},N=(t,e,r,s,n,i)=>{for(let o=0;o<e.length;o++){const a=t[o],c=e[o],l=a.type===Ne||!qe(a,c)||6&a.shapeFlag||64&a.shapeFlag?m(a.el):r;b(a,c,l,null,s,n,i,!0)}},O=(t,e,r,s,i,c,l)=>{if(r!==s){for(const u in s){if((0,n.Gg)(u))continue;const h=s[u],p=r[u];(h!==p||a&&a(t,u))&&o(t,u,p,h,l,e.children,i,c,Z)}if(r!==n.kT)for(const a in r)(0,n.Gg)(a)||a in s||o(t,a,r[a],null,l,e.children,i,c,Z)}},D=(t,e,s,n,i,o,a,c)=>{const l=e.el=t?t.el:u(""),h=e.anchor=t?t.anchor:u("");let{patchFlag:p,dynamicChildren:d}=e;p>0&&(c=!0),null==t?(r(l,s,n),r(h,s,n),k(e.children,s,h,i,o,a,c)):p>0&&64&p&&d?(N(t.dynamicChildren,d,s,i,o,a),(null!=e.key||i&&e===i.subTree)&&ge(t,e,!0)):H(t,e,s,h,i,o,a,c)},M=(t,e,r,s,n,i,o,a)=>{null==t?512&e.shapeFlag?n.ctx.activate(e,r,s,o,a):L(e,r,s,n,i,o,a):B(t,e,a)},L=(t,e,r,i,o,a,c)=>{const u=t.component=function(t,e,r){const s=t.type,i=(e?e.appContext:t.appContext)||gr,o={uid:vr++,vnode:t,type:s,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:lt(s,i),emitsOptions:j(s,i),emit:null,emitted:null,ctx:n.kT,data:n.kT,props:n.kT,attrs:n.kT,slots:n.kT,refs:n.kT,setupState:n.kT,setupContext:null,suspense:r,suspenseId:r?r.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};o.ctx={_:o};o.root=e?e.root:o,o.emit=R.bind(null,o),!1;return o}(t,i,o);if(Ut(t)&&(u.ctx.renderer=rt),function(t,e=!1){Tr=e;const{props:r,children:i,shapeFlag:o}=t.vnode,a=4&o;(function(t,e,r,i=!1){const o={},a={};(0,n.Nj)(a,$e,1),at(t,e,o,a),r?t.props=i?o:(0,s.Um)(o):t.type.props?t.props=o:t.props=a,t.attrs=a})(t,r,a,e),((t,e)=>{if(32&t.vnode.shapeFlag){const r=e._;r?(t.slots=e,(0,n.Nj)(e,"_",r)):Zt(e,t.slots={})}else t.slots={},e&&te(t,e);(0,n.Nj)(t.slots,$e,1)})(t,i);const c=a?function(t,e){const r=t.type;0;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,mr),!1;const{setup:i}=r;if(i){const r=t.setupContext=i.length>1?function(t){const e=e=>{t.exposed=(0,s.WL)(e)};return{attrs:t.attrs,slots:t.slots,emit:t.emit,expose:e}}(t):null;xr=t,(0,s.Jd)();const o=l(i,t,0,[t.props,r]);if((0,s.lk)(),xr=null,(0,n.tI)(o)){if(e)return o.then((e=>{Sr(t,e)}));t.asyncDep=o}else Sr(t,o)}else Er(t)}(t,e):void 0;Tr=!1}(u),u.asyncDep){if(o&&o.registerDep(u,U),!t.el){const t=u.subTree=ze(_e);P(null,t,e,r)}}else U(u,t,e,r,o,a,c)},B=(t,e,r)=>{const s=e.component=t.component;if(function(t,e,r){const{props:s,children:n,component:i}=t,{props:o,children:a,patchFlag:c}=e,l=i.emitsOptions;if(e.dirs||e.transition)return!0;if(!(r&&c>=0))return!(!n&&!a||a&&a.$stable)||s!==o&&(s?!o||G(s,o,l):!!o);if(1024&c)return!0;if(16&c)return s?G(s,o,l):!!o;if(8&c){const t=e.dynamicProps;for(let e=0;e<t.length;e++){const r=t[e];if(o[r]!==s[r]&&!F(l,r))return!0}}return!1}(t,e,r)){if(s.asyncDep&&!s.asyncResolved)return void q(s,e,r);s.next=e,function(t){const e=f.indexOf(t);e>-1&&f.splice(e,1)}(s.update),s.update()}else e.component=t.component,e.el=t.el,s.vnode=e},U=(t,e,r,i,o,a,c)=>{t.update=(0,s.cE)((function(){if(t.isMounted){let e,{next:r,bu:s,u:i,parent:l,vnode:u}=t,h=r;0,r?(r.el=u.el,q(t,r,c)):r=u,s&&(0,n.ir)(s),(e=r.props&&r.props.onVnodeBeforeUpdate)&&ye(e,l,r,u);const p=V(t);0;const d=t.subTree;t.subTree=p,b(d,p,m(d.el),tt(d),t,o,a),r.el=p.el,null===h&&K(t,p.el),i&&he(i,o),(e=r.props&&r.props.onVnodeUpdated)&&he((()=>{ye(e,l,r,u)}),o)}else{let s;const{el:c,props:l}=e,{bm:u,m:h,parent:p}=t;u&&(0,n.ir)(u),(s=l&&l.onVnodeBeforeMount)&&ye(s,p,e);const d=t.subTree=V(t);0,c&&nt?nt(e.el,d,t,o):(b(null,d,r,i,t,o,a),e.el=d.el),h&&he(h,o),(s=l&&l.onVnodeMounted)&&he((()=>{ye(s,p,e)}),o);const{a:f}=t;f&&256&e.shapeFlag&&he(f,o),t.isMounted=!0}}),ue)},q=(t,e,r)=>{e.component=t;const i=t.vnode.props;t.vnode=e,t.next=null,function(t,e,r,i){const{props:o,attrs:a,vnode:{patchFlag:c}}=t,l=(0,s.IU)(o),[u]=t.propsOptions;if(!(i||c>0)||16&c){let s;at(t,e,o,a);for(const i in l)e&&((0,n.RI)(e,i)||(s=(0,n.rs)(i))!==i&&(0,n.RI)(e,s))||(u?!r||void 0===r[i]&&void 0===r[s]||(o[i]=ct(u,e||n.kT,i,void 0,t)):delete o[i]);if(a!==l)for(const t in a)e&&(0,n.RI)(e,t)||delete a[t]}else if(8&c){const r=t.vnode.dynamicProps;for(let s=0;s<r.length;s++){const i=r[s],c=e[i];if(u)if((0,n.RI)(a,i))a[i]=c;else{const e=(0,n._A)(i);o[e]=ct(u,l,e,c,t)}else a[i]=c}}(0,s.X$)(t,"set","$attrs")}(t,e.props,i,r),((t,e)=>{const{vnode:r,slots:s}=t;let i=!0,o=n.kT;if(32&r.shapeFlag){const t=e._;t?1===t?i=!1:(0,n.l7)(s,e):(i=!e.$stable,Zt(e,s)),o=e}else e&&(te(t,e),o={default:1});if(i)for(const t in s)Xt(t)||t in o||delete s[t]})(t,e.children),I(void 0,t.update)},H=(t,e,r,s,n,i,o,a=!1)=>{const c=t&&t.children,l=t?t.shapeFlag:0,u=e.children,{patchFlag:h,shapeFlag:p}=e;if(h>0){if(128&h)return void z(c,u,r,s,n,i,o,a);if(256&h)return void $(c,u,r,s,n,i,o,a)}8&p?(16&l&&Z(c,n,i),u!==c&&d(r,u)):16&l?16&p?z(c,u,r,s,n,i,o,a):Z(c,n,i,!0):(8&l&&d(r,""),16&p&&k(u,r,s,n,i,o,a))},$=(t,e,r,s,i,o,a,c)=>{t=t||n.Z6,e=e||n.Z6;const l=t.length,u=e.length,h=Math.min(l,u);let p;for(p=0;p<h;p++){const s=e[p]=c?tr(e[p]):Ze(e[p]);b(t[p],s,r,null,i,o,a,c)}l>u?Z(t,i,o,!0,!1,h):k(e,r,s,i,o,a,c,h)},z=(t,e,r,s,i,o,a,c)=>{let l=0;const u=e.length;let h=t.length-1,p=u-1;for(;l<=h&&l<=p;){const s=t[l],n=e[l]=c?tr(e[l]):Ze(e[l]);if(!qe(s,n))break;b(s,n,r,null,i,o,a,c),l++}for(;l<=h&&l<=p;){const s=t[h],n=e[p]=c?tr(e[p]):Ze(e[p]);if(!qe(s,n))break;b(s,n,r,null,i,o,a,c),h--,p--}if(l>h){if(l<=p){const t=p+1,n=t<u?e[t].el:s;for(;l<=p;)b(null,e[l]=c?tr(e[l]):Ze(e[l]),r,n,i,o,a),l++}}else if(l>p)for(;l<=h;)J(t[l],i,o,!0),l++;else{const d=l,f=l,m=new Map;for(l=f;l<=p;l++){const t=e[l]=c?tr(e[l]):Ze(e[l]);null!=t.key&&m.set(t.key,l)}let y,g=0;const v=p-f+1;let x=!1,w=0;const P=new Array(v);for(l=0;l<v;l++)P[l]=0;for(l=d;l<=h;l++){const s=t[l];if(g>=v){J(s,i,o,!0);continue}let n;if(null!=s.key)n=m.get(s.key);else for(y=f;y<=p;y++)if(0===P[y-f]&&qe(s,e[y])){n=y;break}void 0===n?J(s,i,o,!0):(P[n-f]=l+1,n>=w?w=n:x=!0,b(s,e[n],r,null,i,o,a,c),g++)}const T=x?function(t){const e=t.slice(),r=[0];let s,n,i,o,a;const c=t.length;for(s=0;s<c;s++){const c=t[s];if(0!==c){if(n=r[r.length-1],t[n]<c){e[s]=n,r.push(s);continue}for(i=0,o=r.length-1;i<o;)a=(i+o)/2|0,t[r[a]]<c?i=a+1:o=a;c<t[r[i]]&&(i>0&&(e[s]=r[i-1]),r[i]=s)}}i=r.length,o=r[i-1];for(;i-- >0;)r[i]=o,o=e[o];return r}(P):n.Z6;for(y=T.length-1,l=v-1;l>=0;l--){const t=f+l,n=e[t],c=t+1<u?e[t+1].el:s;0===P[l]?b(null,n,r,c,i,o,a):x&&(y<0||l!==T[y]?W(n,r,c,2):y--)}}},W=(t,e,s,n,i=null)=>{const{el:o,type:a,transition:c,children:l,shapeFlag:u}=t;if(6&u)return void W(t.component.subTree,e,s,n);if(128&u)return void t.suspense.move(e,s,n);if(64&u)return void a.move(t,e,s,rt);if(a===Ne){r(o,e,s);for(let t=0;t<l.length;t++)W(l[t],e,s,n);return void r(t.anchor,e,s)}if(2!==n&&1&u&&c)if(0===n)c.beforeEnter(o),r(o,e,s),he((()=>c.enter(o)),i);else{const{leave:t,delayLeave:n,afterLeave:i}=c,a=()=>r(o,e,s),l=()=>{t(o,(()=>{a(),i&&i()}))};n?n(o,a,l):l()}else r(o,e,s)},J=(t,e,r,s=!1,n=!1)=>{const{type:i,props:o,ref:a,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:p}=t;if(null!=a&&e&&pe(a,null,e,r,null),256&u)return void e.ctx.deactivate(t);const d=1&u&&p;let f;if((f=o&&o.onVnodeBeforeUnmount)&&ye(f,e,t),6&u)Q(t.component,r,s);else{if(128&u)return void t.suspense.unmount(r,s);d&&re(t,null,e,"beforeUnmount"),l&&(i!==Ne||h>0&&64&h)?Z(l,e,r,!1,!0):(i===Ne&&(128&h||256&h)||!n&&16&u)&&Z(c,e,r),64&u&&(s||!ve(t.props))&&t.type.remove(t,rt),s&&X(t)}((f=o&&o.onVnodeUnmounted)||d)&&he((()=>{f&&ye(f,e,t),d&&re(t,null,e,"unmounted")}),r)},X=t=>{const{type:e,el:r,anchor:s,transition:n}=t;if(e===Ne)return void Y(r,s);const o=()=>{i(r),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&t.shapeFlag&&n&&!n.persisted){const{leave:e,delayLeave:s}=n,i=()=>e(r,o);s?s(t.el,o,i):i()}else o()},Y=(t,e)=>{let r;for(;t!==e;)r=y(t),i(t),t=r;i(e)},Q=(t,e,r)=>{const{bum:i,effects:o,update:a,subTree:c,um:l}=t;if(i&&(0,n.ir)(i),o)for(let t=0;t<o.length;t++)(0,s.sT)(o[t]);a&&((0,s.sT)(a),J(c,t,e,r)),l&&he(l,e),he((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},Z=(t,e,r,s=!1,n=!1,i=0)=>{for(let o=i;o<t.length;o++)J(t[o],e,r,s,n)},tt=t=>6&t.shapeFlag?tt(t.component.subTree):128&t.shapeFlag?t.suspense.next():y(t.anchor||t.el),et=(t,e)=>{null==t?e._vnode&&J(e._vnode,null,null,!0):b(e._vnode||null,t,e),_(),e._vnode=t},rt={p:b,um:J,m:W,r:X,mt:L,mc:k,pc:H,pbc:N,n:tt,o:t};let st,nt;return e&&([st,nt]=e(rt)),{render:et,hydrate:st,createApp:ie(et,st)}}function ye(t,e,r,s=null){u(t,e,7,[r,s])}function ge(t,e,r=!1){const s=t.children,i=e.children;if((0,n.kJ)(s)&&(0,n.kJ)(i))for(let t=0;t<s.length;t++){const e=s[t];let n=i[t];1&n.shapeFlag&&!n.dynamicChildren&&((n.patchFlag<=0||32===n.patchFlag)&&(n=i[t]=tr(i[t]),n.el=e.el),r||ge(e,n))}}const ve=t=>t&&(t.disabled||""===t.disabled),xe=(t,e)=>{const r=t&&t.to;if((0,n.HD)(r)){if(e){const t=e(r);return t}return null}return r};function be(t,e,r,{o:{insert:s},m:n},i=2){0===i&&s(t.targetAnchor,e,r);const{el:o,anchor:a,shapeFlag:c,children:l,props:u}=t,h=2===i;if(h&&s(o,e,r),(!h||ve(u))&&16&c)for(let t=0;t<l.length;t++)n(l[t],e,r,2);h&&s(a,e,r)}const we={__isTeleport:!0,process(t,e,r,s,n,i,o,a,c){const{mc:l,pc:u,pbc:h,o:{insert:p,querySelector:d,createText:f,createComment:m}}=c,y=ve(e.props),{shapeFlag:g,children:v}=e;if(null==t){const t=e.el=f(""),c=e.anchor=f("");p(t,r,s),p(c,r,s);const u=e.target=xe(e.props,d),h=e.targetAnchor=f("");u&&p(h,u);const m=(t,e)=>{16&g&&l(v,t,e,n,i,o,a)};y?m(r,c):u&&m(u,h)}else{e.el=t.el;const s=e.anchor=t.anchor,l=e.target=t.target,p=e.targetAnchor=t.targetAnchor,f=ve(t.props),m=f?r:l,g=f?s:p;if(e.dynamicChildren?(h(t.dynamicChildren,e.dynamicChildren,m,n,i,o),ge(t,e,!0)):a||u(t,e,m,g,n,i,o),y)f||be(e,r,s,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=xe(e.props,d);t&&be(e,t,null,c,0)}else f&&be(e,l,p,c,1)}},remove(t,{r:e,o:{remove:r}}){const{shapeFlag:s,children:n,anchor:i}=t;if(r(i),16&s)for(let t=0;t<n.length;t++)e(n[t])},move:be,hydrate:function(t,e,r,s,n,{o:{nextSibling:i,parentNode:o,querySelector:a}},c){const l=e.target=xe(e.props,a);if(l){const a=l._lpa||l.firstChild;16&e.shapeFlag&&(ve(e.props)?(e.anchor=c(i(t),e,o(t),r,s,n),e.targetAnchor=a):(e.anchor=i(t),e.targetAnchor=c(a,e,l,r,s,n)),l._lpa=e.targetAnchor&&i(e.targetAnchor))}return e.anchor&&i(e.anchor)}},Pe="components";function Te(t){return ke(Pe,t)||t}const Se=Symbol();function Ae(t){return(0,n.HD)(t)?ke(Pe,t,!1)||t:t||Se}function Ee(t){return ke("directives",t)}function ke(t,e,r=!0){const s=B||xr;if(s){const r=s.type;if(t===Pe){const t=r.displayName||r.name;if(t&&(t===e||t===(0,n._A)(e)||t===(0,n.kC)((0,n._A)(e))))return r}return Ce(s[t]||r[t],e)||Ce(s.appContext[t],e)}}function Ce(t,e){return t&&(t[e]||t[(0,n._A)(e)]||t[(0,n.kC)((0,n._A)(e))])}const Ne=Symbol(void 0),Ie=Symbol(void 0),_e=Symbol(void 0),Oe=Symbol(void 0),De=[];let Me=null;function Le(t=!1){De.push(Me=t?null:[])}function Re(){De.pop(),Me=De[De.length-1]||null}let je,Fe=1;function Be(t){Fe+=t}function Ue(t,e,r,s,i){const o=ze(t,e,r,s,i,!0);return o.dynamicChildren=Me||n.Z6,Re(),Fe>0&&Me&&Me.push(o),o}function Ve(t){return!!t&&!0===t.__v_isVNode}function qe(t,e){return t.type===e.type&&t.key===e.key}function He(t){je=t}const $e="__vInternal",Ge=({key:t})=>null!=t?t:null,Ke=({ref:t})=>null!=t?(0,n.kJ)(t)?t:{i:B,r:t}:null,ze=We;function We(t,e=null,r=null,i=0,o=null,a=!1){if(t&&t!==Se||(t=_e),Ve(t)){const s=Je(t,e,!0);return r&&er(s,r),s}if(Ir(t)&&(t=t.__vccOpts),e){((0,s.X3)(e)||$e in e)&&(e=(0,n.l7)({},e));let{class:t,style:r}=e;t&&!(0,n.HD)(t)&&(e.class=(0,n.C_)(t)),(0,n.Kn)(r)&&((0,s.X3)(r)&&!(0,n.kJ)(r)&&(r=(0,n.l7)({},r)),e.style=(0,n.j5)(r))}const c=(0,n.HD)(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:(0,n.Kn)(t)?4:(0,n.mf)(t)?2:0;const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ge(e),ref:e&&Ke(e),scopeId:rt,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:c,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null};if(er(l,r),128&c){const{content:t,fallback:e}=function(t){const{shapeFlag:e,children:r}=t;let s,n;return 32&e?(s=J(r.default),n=J(r.fallback)):(s=J(r),n=Ze(null)),{content:s,fallback:n}}(l);l.ssContent=t,l.ssFallback=e}return Fe>0&&!a&&Me&&(i>0||6&c)&&32!==i&&Me.push(l),l}function Je(t,e,r=!1){const{props:s,ref:i,patchFlag:o}=t,a=e?rr(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Ge(a),ref:e&&e.ref?r&&i?(0,n.kJ)(i)?i.concat(Ke(e)):[i,Ke(e)]:Ke(e):i,scopeId:t.scopeId,children:t.children,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ne?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Je(t.ssContent),ssFallback:t.ssFallback&&Je(t.ssFallback),el:t.el,anchor:t.anchor}}function Xe(t=" ",e=0){return ze(Ie,null,t,e)}function Ye(t,e){const r=ze(Oe,null,t);return r.staticCount=e,r}function Qe(t="",e=!1){return e?(Le(),Ue(_e,null,t)):ze(_e,null,t)}function Ze(t){return null==t||"boolean"==typeof t?ze(_e):(0,n.kJ)(t)?ze(Ne,null,t):"object"==typeof t?null===t.el?t:Je(t):ze(Ie,null,String(t))}function tr(t){return null===t.el?t:Je(t)}function er(t,e){let r=0;const{shapeFlag:s}=t;if(null==e)e=null;else if((0,n.kJ)(e))r=16;else if("object"==typeof e){if(1&s||64&s){const r=e.default;return void(r&&(r._c&&Z(1),er(t,r()),r._c&&Z(-1)))}{r=32;const s=e._;s||$e in e?3===s&&B&&(1024&B.vnode.patchFlag?(e._=2,t.patchFlag|=1024):e._=1):e._ctx=B}}else(0,n.mf)(e)?(e={default:e,_ctx:B},r=32):(e=String(e),64&s?(r=16,e=[Xe(e)]):r=8);t.children=e,t.shapeFlag|=r}function rr(...t){const e=(0,n.l7)({},t[0]);for(let r=1;r<t.length;r++){const s=t[r];for(const t in s)if("class"===t)e.class!==s.class&&(e.class=(0,n.C_)([e.class,s.class]));else if("style"===t)e.style=(0,n.j5)([e.style,s.style]);else if((0,n.F7)(t)){const r=e[t],n=s[t];r!==n&&(e[t]=r?[].concat(r,s[t]):n)}else""!==t&&(e[t]=s[t])}return e}function sr(t,e){if(xr){let r=xr.provides;const s=xr.parent&&xr.parent.provides;s===r&&(r=xr.provides=Object.create(s)),r[t]=e}else 0}function nr(t,e,r=!1){const s=xr||B;if(s){const i=null==s.parent?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(i&&t in i)return i[t];if(arguments.length>1)return r&&(0,n.mf)(e)?e():e}else 0}let ir=!1;function or(t,e,r=[],i=[],o=[],a=!1){const{mixins:c,extends:l,data:u,computed:h,methods:p,watch:d,provide:f,inject:m,components:y,directives:g,beforeMount:v,mounted:x,beforeUpdate:b,updated:w,activated:P,deactivated:T,beforeDestroy:S,beforeUnmount:A,destroyed:E,unmounted:k,render:C,renderTracked:N,renderTriggered:I,errorCaptured:_,expose:O}=e,D=t.proxy,M=t.ctx,L=t.appContext.mixins;a&&C&&t.render===n.dG&&(t.render=C),a||(ir=!0,ar("beforeCreate","bc",e,t,L),ir=!1,ur(t,L,r,i,o)),l&&or(t,l,r,i,o,!0),c&&ur(t,c,r,i,o);if(m)if((0,n.kJ)(m))for(let t=0;t<m.length;t++){const e=m[t];M[e]=nr(e)}else for(const t in m){const e=m[t];(0,n.Kn)(e)?M[t]=nr(e.from||t,e.default,!0):M[t]=nr(e)}if(p)for(const t in p){const e=p[t];(0,n.mf)(e)&&(M[t]=e.bind(D))}if(a?u&&r.push(u):(r.length&&r.forEach((e=>hr(t,e,D))),u&&hr(t,u,D)),h)for(const t in h){const e=h[t];0;const r=_r({get:(0,n.mf)(e)?e.bind(D,D):(0,n.mf)(e.get)?e.get.bind(D,D):n.dG,set:!(0,n.mf)(e)&&(0,n.mf)(e.set)?e.set.bind(D):n.dG});Object.defineProperty(M,t,{enumerable:!0,configurable:!0,get:()=>r.value,set:t=>r.value=t})}if(d&&i.push(d),!a&&i.length&&i.forEach((t=>{for(const e in t)pr(t[e],M,D,e)})),f&&o.push(f),!a&&o.length&&o.forEach((t=>{const e=(0,n.mf)(t)?t.call(D):t;for(const t in e)sr(t,e[t])})),a&&(y&&(0,n.l7)(t.components||(t.components=(0,n.l7)({},t.type.components)),y),g&&(0,n.l7)(t.directives||(t.directives=(0,n.l7)({},t.type.directives)),g)),a||ar("created","c",e,t,L),v&&yt(v.bind(D)),x&&gt(x.bind(D)),b&&vt(b.bind(D)),w&&xt(w.bind(D)),P&&$t(P.bind(D)),T&&Gt(T.bind(D)),_&&St(_.bind(D)),N&&Tt(N.bind(D)),I&&Pt(I.bind(D)),A&&bt(A.bind(D)),k&&wt(k.bind(D)),(0,n.kJ)(O))if(a)0;else if(O.length){const e=t.exposed||(t.exposed=(0,s.WL)({}));O.forEach((t=>{e[t]=(0,s.Vh)(D,t)}))}else t.exposed||(t.exposed=n.kT)}function ar(t,e,r,s,n){lr(t,e,n,s);const{extends:i,mixins:o}=r;i&&cr(t,e,i,s),o&&lr(t,e,o,s);const a=r[t];a&&u(a.bind(s.proxy),s,e)}function cr(t,e,r,s){r.extends&&cr(t,e,r.extends,s);const n=r[t];n&&u(n.bind(s.proxy),s,e)}function lr(t,e,r,s){for(let n=0;n<r.length;n++){const i=r[n].mixins;i&&lr(t,e,i,s);const o=r[n][t];o&&u(o.bind(s.proxy),s,e)}}function ur(t,e,r,s,n){for(let i=0;i<e.length;i++)or(t,e[i],r,s,n,!0)}function hr(t,e,r){const i=e.call(r,r);(0,n.Kn)(i)&&(t.data===n.kT?t.data=(0,s.qj)(i):(0,n.l7)(t.data,i))}function pr(t,e,r,s){const i=s.includes(".")?function(t,e){const r=e.split(".");return()=>{let e=t;for(let t=0;t<r.length&&e;t++)e=e[r[t]];return e}}(r,s):()=>r[s];if((0,n.HD)(t)){const r=e[t];(0,n.mf)(r)&&kt(i,r)}else if((0,n.mf)(t))kt(i,t.bind(r));else if((0,n.Kn)(t))if((0,n.kJ)(t))t.forEach((t=>pr(t,e,r,s)));else{const s=(0,n.mf)(t.handler)?t.handler.bind(r):e[t.handler];(0,n.mf)(s)&&kt(i,s,t)}else 0}function dr(t,e,r){const s=r.appContext.config.optionMergeStrategies,{mixins:i,extends:o}=e;o&&dr(t,o,r),i&&i.forEach((e=>dr(t,e,r)));for(const i in e)s&&(0,n.RI)(s,i)?t[i]=s[i](t[i],e[i],r.proxy,i):t[i]=e[i]}const fr=(0,n.l7)(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:r,mixins:s,extends:n}=e;if(r)return r;const i=t.appContext.mixins;if(!i.length&&!s&&!n)return e;const o={};return i.forEach((e=>dr(o,e,t))),dr(o,e,t),e.__merged=o}(t),$forceUpdate:t=>()=>E(t.update),$nextTick:t=>A.bind(t.proxy),$watch:t=>Nt.bind(t)}),mr={get({_:t},e){const{ctx:r,setupState:i,data:o,props:a,accessCache:c,type:l,appContext:u}=t;if("__v_skip"===e)return!0;let h;if("$"!==e[0]){const s=c[e];if(void 0!==s)switch(s){case 0:return i[e];case 1:return o[e];case 3:return r[e];case 2:return a[e]}else{if(i!==n.kT&&(0,n.RI)(i,e))return c[e]=0,i[e];if(o!==n.kT&&(0,n.RI)(o,e))return c[e]=1,o[e];if((h=t.propsOptions[0])&&(0,n.RI)(h,e))return c[e]=2,a[e];if(r!==n.kT&&(0,n.RI)(r,e))return c[e]=3,r[e];ir||(c[e]=4)}}const p=fr[e];let d,f;return p?("$attrs"===e&&(0,s.j)(t,"get",e),p(t)):(d=l.__cssModules)&&(d=d[e])?d:r!==n.kT&&(0,n.RI)(r,e)?(c[e]=3,r[e]):(f=u.config.globalProperties,(0,n.RI)(f,e)?f[e]:void 0)},set({_:t},e,r){const{data:s,setupState:i,ctx:o}=t;if(i!==n.kT&&(0,n.RI)(i,e))i[e]=r;else if(s!==n.kT&&(0,n.RI)(s,e))s[e]=r;else if(e in t.props)return!1;return("$"!==e[0]||!(e.slice(1)in t))&&(o[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:s,appContext:i,propsOptions:o}},a){let c;return void 0!==r[a]||t!==n.kT&&(0,n.RI)(t,a)||e!==n.kT&&(0,n.RI)(e,a)||(c=o[0])&&(0,n.RI)(c,a)||(0,n.RI)(s,a)||(0,n.RI)(fr,a)||(0,n.RI)(i.config.globalProperties,a)}};const yr=(0,n.l7)({},mr,{get(t,e){if(e!==Symbol.unscopables)return mr.get(t,e,t)},has:(t,e)=>"_"!==e[0]&&!(0,n.e1)(e)});const gr=se();let vr=0;let xr=null;const br=()=>xr||B,wr=t=>{xr=t};let Pr,Tr=!1;function Sr(t,e,r){(0,n.mf)(e)?t.render=e:(0,n.Kn)(e)&&(t.setupState=(0,s.WL)(e)),Er(t)}function Ar(t){Pr=t}function Er(t,e){const r=t.type;t.render||(Pr&&r.template&&!r.render&&(r.render=Pr(r.template,{isCustomElement:t.appContext.config.isCustomElement,delimiters:r.delimiters})),t.render=r.render||n.dG,t.render._rc&&(t.withProxy=new Proxy(t.ctx,yr))),xr=t,or(t,r),xr=null}function kr(t){xr&&(xr.effects||(xr.effects=[])).push(t)}const Cr=/(?:^|[-_])(\w)/g;function Nr(t,e,r=!1){let s=(0,n.mf)(e)&&e.displayName||e.name;if(!s&&e.__file){const t=e.__file.match(/([^/\\]+)\.vue$/);t&&(s=t[1])}if(!s&&t&&t.parent){const r=t=>{for(const r in t)if(t[r]===e)return r};s=r(t.components||t.parent.type.components)||r(t.appContext.components)}return s?s.replace(Cr,(t=>t.toUpperCase())).replace(/[-_]/g,""):r?"App":"Anonymous"}function Ir(t){return(0,n.mf)(t)&&"__vccOpts"in t}function _r(t){const e=(0,s.Fl)(t);return kr(e.effect),e}function Or(t){return(0,n.mf)(t)?{setup:t,name:t.name}:t}function Dr(t){(0,n.mf)(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:i,delay:o=200,timeout:a,suspensible:c=!0,onError:l}=t;let u,p=null,d=0;const f=()=>{let t;return p||(t=p=e().catch((t=>{if(t=t instanceof Error?t:new Error(String(t)),l)return new Promise(((e,r)=>{l(t,(()=>e((d++,p=null,f()))),(()=>r(t)),d+1)}));throw t})).then((e=>t!==p&&p?p:(e&&(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),u=e,e))))};return Or({__asyncLoader:f,name:"AsyncComponentWrapper",setup(){const t=xr;if(u)return()=>Mr(u,t);const e=e=>{p=null,h(e,t,13,!i)};if(c&&t.suspense)return f().then((e=>()=>Mr(e,t))).catch((t=>(e(t),()=>i?ze(i,{error:t}):null)));const n=(0,s.iH)(!1),l=(0,s.iH)(),d=(0,s.iH)(!!o);return o&&setTimeout((()=>{d.value=!1}),o),null!=a&&setTimeout((()=>{if(!n.value&&!l.value){const t=new Error(`Async component timed out after ${a}ms.`);e(t),l.value=t}}),a),f().then((()=>{n.value=!0})).catch((t=>{e(t),l.value=t})),()=>n.value&&u?Mr(u,t):l.value&&i?ze(i,{error:l.value}):r&&!d.value?ze(r):void 0}})}function Mr(t,{vnode:{props:e,children:r}}){return ze(t,e,r)}function Lr(t){return null}function Rr(t){return null}function jr(){return br().setupContext}function Fr(t,e,r){const s=arguments.length;return 2===s?(0,n.Kn)(e)&&!(0,n.kJ)(e)?Ve(e)?ze(t,null,[e]):ze(t,e):ze(t,null,e):(s>3?r=Array.prototype.slice.call(arguments,2):3===s&&Ve(r)&&(r=[r]),ze(t,e,r))}const Br=Symbol(""),Ur=()=>{{const t=nr(Br);return t||o("Server rendering context not provided. Make sure to only call useSsrContext() conditionally in the server build."),t}};function Vr(){return void 0}function qr(t,e){let r;if((0,n.kJ)(t)||(0,n.HD)(t)){r=new Array(t.length);for(let s=0,n=t.length;s<n;s++)r[s]=e(t[s],s)}else if("number"==typeof t){0,r=new Array(t);for(let s=0;s<t;s++)r[s]=e(s+1,s)}else if((0,n.Kn)(t))if(t[Symbol.iterator])r=Array.from(t,e);else{const s=Object.keys(t);r=new Array(s.length);for(let n=0,i=s.length;n<i;n++){const i=s[n];r[n]=e(t[i],i,n)}}else r=[];return r}function Hr(t){const e={};for(const r in t)e[(0,n.hR)(r)]=t[r];return e}function $r(t,e){for(let r=0;r<e.length;r++){const s=e[r];if((0,n.kJ)(s))for(let e=0;e<s.length;e++)t[s[e].name]=s[e].fn;else s&&(t[s.name]=s.fn)}return t}const Gr="3.0.3",Kr=null},9963:(t,e,r)=>{"use strict";r.r(e),r.d(e,{BaseTransition:()=>n.P$,Comment:()=>n.sv,Fragment:()=>n.HY,KeepAlive:()=>n.Ob,Static:()=>n.qG,Suspense:()=>n.n4,Teleport:()=>n.lR,Text:()=>n.xv,callWithAsyncErrorHandling:()=>n.$d,callWithErrorHandling:()=>n.KU,camelize:()=>n._A,capitalize:()=>n.kC,cloneVNode:()=>n.Ho,computed:()=>n.Fl,createBlock:()=>n.j4,createCommentVNode:()=>n.ry,createHydrationRenderer:()=>n.Eo,createRenderer:()=>n.Us,createSlots:()=>n.Nv,createStaticVNode:()=>n.uE,createTextVNode:()=>n.Uk,createVNode:()=>n.Wm,customRef:()=>n.ZM,defineAsyncComponent:()=>n.RC,defineComponent:()=>n.aZ,defineEmit:()=>n.zX,defineProps:()=>n.MW,devtools:()=>n.mW,getCurrentInstance:()=>n.FN,getTransitionRawChildren:()=>n.Q6,h:()=>n.h,handleError:()=>n.S3,initCustomFormatter:()=>n.Mr,inject:()=>n.f3,isProxy:()=>n.X3,isReactive:()=>n.PG,isReadonly:()=>n.$y,isRef:()=>n.dq,isVNode:()=>n.lA,markRaw:()=>n.Xl,mergeProps:()=>n.dG,nextTick:()=>n.Y3,onActivated:()=>n.dl,onBeforeMount:()=>n.wF,onBeforeUnmount:()=>n.Jd,onBeforeUpdate:()=>n.Xn,onDeactivated:()=>n.se,onErrorCaptured:()=>n.d1,onMounted:()=>n.bv,onRenderTracked:()=>n.bT,onRenderTriggered:()=>n.Yq,onUnmounted:()=>n.Ah,onUpdated:()=>n.ic,openBlock:()=>n.wg,popScopeId:()=>n.Cn,provide:()=>n.JJ,proxyRefs:()=>n.WL,pushScopeId:()=>n.dD,queuePostFlushCb:()=>n.qb,reactive:()=>n.qj,readonly:()=>n.OT,ref:()=>n.iH,registerRuntimeCompiler:()=>n.Y1,renderList:()=>n.Ko,renderSlot:()=>n.WI,resolveComponent:()=>n.up,resolveDirective:()=>n.Q2,resolveDynamicComponent:()=>n.LL,resolveTransitionHooks:()=>n.U2,setBlockTracking:()=>n.qZ,setDevtoolsHook:()=>n.ec,setTransitionHooks:()=>n.nK,shallowReactive:()=>n.Um,shallowReadonly:()=>n.YS,shallowRef:()=>n.XI,ssrContextKey:()=>n.Uc,ssrUtils:()=>n.G,toDisplayString:()=>n.zw,toHandlerKey:()=>n.hR,toHandlers:()=>n.mx,toRaw:()=>n.IU,toRef:()=>n.Vh,toRefs:()=>n.BK,transformVNodeArgs:()=>n.C3,triggerRef:()=>n.oR,unref:()=>n.SU,useContext:()=>n.qp,useSSRContext:()=>n.Zq,useTransitionState:()=>n.Y8,version:()=>n.i8,warn:()=>n.ZK,watch:()=>n.YP,watchEffect:()=>n.m0,withCtx:()=>n.w5,withDirectives:()=>n.wy,withScopeId:()=>n.HX,Transition:()=>N,TransitionGroup:()=>H,createApp:()=>bt,createSSRApp:()=>wt,hydrate:()=>xt,render:()=>vt,useCssModule:()=>S,useCssVars:()=>A,vModelCheckbox:()=>Y,vModelDynamic:()=>nt,vModelRadio:()=>Z,vModelSelect:()=>tt,vModelText:()=>X,vShow:()=>ht,withKeys:()=>ut,withModifiers:()=>ct});var s=r(3577),n=r(6252),i=r(2262);const o="http://www.w3.org/2000/svg",a="undefined"!=typeof document?document:null;let c,l;const u={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r)=>e?a.createElementNS(o,t):a.createElement(t,r?{is:r}:void 0),createText:t=>a.createTextNode(t),createComment:t=>a.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>a.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},cloneNode:t=>t.cloneNode(!0),insertStaticContent(t,e,r,s){const n=s?l||(l=a.createElementNS(o,"svg")):c||(c=a.createElement("div"));n.innerHTML=t;const i=n.firstChild;let h=i,p=h;for(;h;)p=h,u.insert(h,e,r),h=n.firstChild;return[i,p]}};const h=/\s*!important$/;function p(t,e,r){if((0,s.kJ)(r))r.forEach((r=>p(t,e,r)));else if(e.startsWith("--"))t.setProperty(e,r);else{const n=function(t,e){const r=f[e];if(r)return r;let n=(0,s._A)(e);if("filter"!==n&&n in t)return f[e]=n;n=(0,s.kC)(n);for(let r=0;r<d.length;r++){const s=d[r]+n;if(s in t)return f[e]=s}return e}(t,e);h.test(r)?t.setProperty((0,s.rs)(n),r.replace(h,""),"important"):t[n]=r}}const d=["Webkit","Moz","ms"],f={};const m="http://www.w3.org/1999/xlink";let y=Date.now;"undefined"!=typeof document&&y()>document.createEvent("Event").timeStamp&&(y=()=>performance.now());let g=0;const v=Promise.resolve(),x=()=>{g=0};function b(t,e,r,s){t.addEventListener(e,r,s)}function w(t,e,r,i,o=null){const a=t._vei||(t._vei={}),c=a[e];if(i&&c)c.value=i;else{const[r,l]=function(t){let e;if(P.test(t)){let r;for(e={};r=t.match(P);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t.slice(2).toLowerCase(),e]}(e);if(i){b(t,r,a[e]=function(t,e){const r=t=>{(t.timeStamp||y())>=r.attached-1&&(0,n.$d)(function(t,e){if((0,s.kJ)(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t(e)))}return e}(t,r.value),e,5,[t])};return r.value=t,r.attached=(()=>g||(v.then(x),g=y()))(),r}(i,o),l)}else c&&(!function(t,e,r,s){t.removeEventListener(e,r,s)}(t,r,c,l),a[e]=void 0)}}const P=/(?:Once|Passive|Capture)$/;const T=/^on[a-z]/;function S(t="$style"){{const e=(0,n.FN)();if(!e)return s.kT;const r=e.type.__cssModules;if(!r)return s.kT;const i=r[t];return i||s.kT}}function A(t){const e=(0,n.FN)();if(!e)return;const r=()=>E(e.subTree,t(e.proxy));(0,n.bv)((()=>(0,n.m0)(r,{flush:"post"}))),(0,n.ic)(r)}function E(t,e){if(128&t.shapeFlag){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push((()=>{E(r.activeBranch,e)}))}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el){const r=t.el.style;for(const t in e)r.setProperty(`--${t}`,e[t])}else t.type===n.HY&&t.children.forEach((t=>E(t,e)))}const k="transition",C="animation",N=(t,{slots:e})=>(0,n.h)(n.P$,O(t),e);N.displayName="Transition";const I={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},_=N.props=(0,s.l7)({},n.P$.props,I);function O(t){let{name:e="v",type:r,css:n=!0,duration:i,enterFromClass:o=`${e}-enter-from`,enterActiveClass:a=`${e}-enter-active`,enterToClass:c=`${e}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:h=c,leaveFromClass:p=`${e}-leave-from`,leaveActiveClass:d=`${e}-leave-active`,leaveToClass:f=`${e}-leave-to`}=t;const m={};for(const e in t)e in I||(m[e]=t[e]);if(!n)return m;const y=function(t){if(null==t)return null;if((0,s.Kn)(t))return[D(t.enter),D(t.leave)];{const e=D(t);return[e,e]}}(i),g=y&&y[0],v=y&&y[1],{onBeforeEnter:x,onEnter:b,onEnterCancelled:w,onLeave:P,onLeaveCancelled:T,onBeforeAppear:S=x,onAppear:A=b,onAppearCancelled:E=w}=m,k=(t,e,r)=>{L(t,e?h:c),L(t,e?u:a),r&&r()},C=(t,e)=>{L(t,f),L(t,d),e&&e()},N=t=>(e,s)=>{const n=t?A:b,i=()=>k(e,t,s);n&&n(e,i),R((()=>{L(e,t?l:o),M(e,t?h:c),n&&n.length>1||(g?setTimeout(i,g):j(e,r,i))}))};return(0,s.l7)(m,{onBeforeEnter(t){x&&x(t),M(t,a),M(t,o)},onBeforeAppear(t){S&&S(t),M(t,u),M(t,l)},onEnter:N(!1),onAppear:N(!0),onLeave(t,e){const s=()=>C(t,e);M(t,d),M(t,p),R((()=>{L(t,p),M(t,f),P&&P.length>1||(v?setTimeout(s,v):j(t,r,s))})),P&&P(t,s)},onEnterCancelled(t){k(t,!1),w&&w(t)},onAppearCancelled(t){k(t,!0),E&&E(t)},onLeaveCancelled(t){C(t),T&&T(t)}})}function D(t){return(0,s.He)(t)}function M(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t._vtc||(t._vtc=new Set)).add(e)}function L(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function R(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}function j(t,e,r){const{type:s,timeout:n,propCount:i}=F(t,e);if(!s)return r();const o=s+"end";let a=0;const c=()=>{t.removeEventListener(o,l),r()},l=e=>{e.target===t&&++a>=i&&c()};setTimeout((()=>{a<i&&c()}),n+1),t.addEventListener(o,l)}function F(t,e){const r=window.getComputedStyle(t),s=t=>(r[t]||"").split(", "),n=s("transitionDelay"),i=s("transitionDuration"),o=B(n,i),a=s("animationDelay"),c=s("animationDuration"),l=B(a,c);let u=null,h=0,p=0;e===k?o>0&&(u=k,h=o,p=i.length):e===C?l>0&&(u=C,h=l,p=c.length):(h=Math.max(o,l),u=h>0?o>l?k:C:null,p=u?u===k?i.length:c.length:0);return{type:u,timeout:h,propCount:p,hasTransform:u===k&&/\b(transform|all)(,|$)/.test(r.transitionProperty)}}function B(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map(((e,r)=>U(e)+U(t[r]))))}function U(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}const V=new WeakMap,q=new WeakMap,H={name:"TransitionGroup",props:(0,s.l7)({},_,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=(0,n.FN)(),s=(0,n.Y8)();let o,a;return(0,n.ic)((()=>{if(!o.length)return;const e=t.moveClass||`${t.name||"v"}-move`;if(!function(t,e,r){const s=t.cloneNode();t._vtc&&t._vtc.forEach((t=>{t.split(/\s+/).forEach((t=>t&&s.classList.remove(t)))}));r.split(/\s+/).forEach((t=>t&&s.classList.add(t))),s.style.display="none";const n=1===e.nodeType?e:e.parentNode;n.appendChild(s);const{hasTransform:i}=F(s);return n.removeChild(s),i}(o[0].el,r.vnode.el,e))return;o.forEach($),o.forEach(G);const s=o.filter(K);document.body.offsetHeight,s.forEach((t=>{const r=t.el,s=r.style;M(r,e),s.transform=s.webkitTransform=s.transitionDuration="";const n=r._moveCb=t=>{t&&t.target!==r||t&&!/transform$/.test(t.propertyName)||(r.removeEventListener("transitionend",n),r._moveCb=null,L(r,e))};r.addEventListener("transitionend",n)}))})),()=>{const c=(0,i.IU)(t),l=O(c),u=c.tag||n.HY;o=a,a=e.default?(0,n.Q6)(e.default()):[];for(let t=0;t<a.length;t++){const e=a[t];null!=e.key&&(0,n.nK)(e,(0,n.U2)(e,l,s,r))}if(o)for(let t=0;t<o.length;t++){const e=o[t];(0,n.nK)(e,(0,n.U2)(e,l,s,r)),V.set(e,e.el.getBoundingClientRect())}return(0,n.Wm)(u,null,a)}}};function $(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function G(t){q.set(t,t.el.getBoundingClientRect())}function K(t){const e=V.get(t),r=q.get(t),s=e.left-r.left,n=e.top-r.top;if(s||n){const e=t.el.style;return e.transform=e.webkitTransform=`translate(${s}px,${n}px)`,e.transitionDuration="0s",t}}const z=t=>{const e=t.props["onUpdate:modelValue"];return(0,s.kJ)(e)?t=>(0,s.ir)(e,t):e};function W(t){t.target.composing=!0}function J(t){const e=t.target;e.composing&&(e.composing=!1,function(t,e){const r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}(e,"input"))}const X={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t._assign=z(i);const o=n||"number"===t.type;b(t,e?"change":"input",(e=>{if(e.target.composing)return;let n=t.value;r?n=n.trim():o&&(n=(0,s.He)(n)),t._assign(n)})),r&&b(t,"change",(()=>{t.value=t.value.trim()})),e||(b(t,"compositionstart",W),b(t,"compositionend",J),b(t,"change",J))},mounted(t,{value:e}){t.value=null==e?"":e},beforeUpdate(t,{value:e,modifiers:{trim:r,number:n}},i){if(t._assign=z(i),t.composing)return;if(document.activeElement===t){if(r&&t.value.trim()===e)return;if((n||"number"===t.type)&&(0,s.He)(t.value)===e)return}const o=null==e?"":e;t.value!==o&&(t.value=o)}},Y={created(t,e,r){Q(t,e,r),t._assign=z(r),b(t,"change",(()=>{const e=t._modelValue,r=rt(t),n=t.checked,i=t._assign;if((0,s.kJ)(e)){const t=(0,s.hq)(e,r),o=-1!==t;if(n&&!o)i(e.concat(r));else if(!n&&o){const r=[...e];r.splice(t,1),i(r)}}else(0,s.DM)(e)?n?e.add(r):e.delete(r):i(st(t,n))}))},beforeUpdate(t,e,r){t._assign=z(r),Q(t,e,r)}};function Q(t,{value:e,oldValue:r},n){t._modelValue=e,(0,s.kJ)(e)?t.checked=(0,s.hq)(e,n.props.value)>-1:(0,s.DM)(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=(0,s.WV)(e,st(t,!0)))}const Z={created(t,{value:e},r){t.checked=(0,s.WV)(e,r.props.value),t._assign=z(r),b(t,"change",(()=>{t._assign(rt(t))}))},beforeUpdate(t,{value:e,oldValue:r},n){t._assign=z(n),e!==r&&(t.checked=(0,s.WV)(e,n.props.value))}},tt={created(t,{modifiers:{number:e}},r){b(t,"change",(()=>{const r=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>e?(0,s.He)(rt(t)):rt(t)));t._assign(t.multiple?r:r[0])})),t._assign=z(r)},mounted(t,{value:e}){et(t,e)},beforeUpdate(t,e,r){t._assign=z(r)},updated(t,{value:e}){et(t,e)}};function et(t,e){const r=t.multiple;if(!r||(0,s.kJ)(e)||(0,s.DM)(e)){for(let n=0,i=t.options.length;n<i;n++){const i=t.options[n],o=rt(i);if(r)(0,s.kJ)(e)?i.selected=(0,s.hq)(e,o)>-1:i.selected=e.has(o);else if((0,s.WV)(rt(i),e))return void(t.selectedIndex=n)}r||(t.selectedIndex=-1)}}function rt(t){return"_value"in t?t._value:t.value}function st(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const nt={created(t,e,r){it(t,e,r,null,"created")},mounted(t,e,r){it(t,e,r,null,"mounted")},beforeUpdate(t,e,r,s){it(t,e,r,s,"beforeUpdate")},updated(t,e,r,s){it(t,e,r,s,"updated")}};function it(t,e,r,s,n){let i;switch(t.tagName){case"SELECT":i=tt;break;case"TEXTAREA":i=X;break;default:switch(r.props&&r.props.type){case"checkbox":i=Y;break;case"radio":i=Z;break;default:i=X}}const o=i[n];o&&o(t,e,r,s)}const ot=["ctrl","shift","alt","meta"],at={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)=>ot.some((r=>t[`${r}Key`]&&!e.includes(r)))},ct=(t,e)=>(r,...s)=>{for(let t=0;t<e.length;t++){const s=at[e[t]];if(s&&s(r,e))return}return t(r,...s)},lt={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ut=(t,e)=>r=>{if(!("key"in r))return;const n=(0,s.rs)(r.key);return e.some((t=>t===n||lt[t]===n))?t(r):void 0},ht={beforeMount(t,{value:e},{transition:r}){t._vod="none"===t.style.display?"":t.style.display,r&&e?r.beforeEnter(t):pt(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:s}){!e!=!r&&(s?e?(s.beforeEnter(t),pt(t,!0),s.enter(t)):s.leave(t,(()=>{pt(t,!1)})):pt(t,e))},beforeUnmount(t,{value:e}){pt(t,e)}};function pt(t,e){t.style.display=e?t._vod:"none"}const dt=(0,s.l7)({patchProp:(t,e,r,n,i=!1,o,a,c,l)=>{switch(e){case"class":!function(t,e,r){if(null==e&&(e=""),r)t.setAttribute("class",e);else{const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),t.className=e}}(t,n,i);break;case"style":!function(t,e,r){const n=t.style;if(r)if((0,s.HD)(r))e!==r&&(n.cssText=r);else{for(const t in r)p(n,t,r[t]);if(e&&!(0,s.HD)(e))for(const t in e)null==r[t]&&p(n,t,"")}else t.removeAttribute("style")}(t,r,n);break;default:(0,s.F7)(e)?(0,s.tR)(e)||w(t,e,0,n,a):function(t,e,r,n){if(n)return"innerHTML"===e||!!(e in t&&T.test(e)&&(0,s.mf)(r));if("spellcheck"===e||"draggable"===e)return!1;if("form"===e&&"string"==typeof r)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if(T.test(e)&&(0,s.HD)(r))return!1;return e in t}(t,e,n,i)?function(t,e,r,s,n,i,o){if("innerHTML"===e||"textContent"===e)return s&&o(s,n,i),void(t[e]=null==r?"":r);if("value"!==e||"PROGRESS"===t.tagName)if(""===r&&"boolean"==typeof t[e])t[e]=!0;else if(null==r&&"string"==typeof t[e])t[e]="",t.removeAttribute(e);else try{t[e]=r}catch(t){}else{t._value=r;const e=null==r?"":r;t.value!==e&&(t.value=e)}}(t,e,n,o,a,c,l):("true-value"===e?t._trueValue=n:"false-value"===e&&(t._falseValue=n),function(t,e,r,n){if(n&&e.startsWith("xlink:"))null==r?t.removeAttributeNS(m,e.slice(6,e.length)):t.setAttributeNS(m,e,r);else{const n=(0,s.Pq)(e);null==r||n&&!1===r?t.removeAttribute(e):t.setAttribute(e,n?"":r)}}(t,e,n,i))}},forcePatchProp:(t,e)=>"value"===e},u);let ft,mt=!1;function yt(){return ft||(ft=(0,n.Us)(dt))}function gt(){return ft=mt?ft:(0,n.Eo)(dt),mt=!0,ft}const vt=(...t)=>{yt().render(...t)},xt=(...t)=>{gt().hydrate(...t)},bt=(...t)=>{const e=yt().createApp(...t);const{mount:r}=e;return e.mount=t=>{const n=Pt(t);if(!n)return;const i=e._component;(0,s.mf)(i)||i.render||i.template||(i.template=n.innerHTML),n.innerHTML="";const o=r(n);return n.removeAttribute("v-cloak"),n.setAttribute("data-v-app",""),o},e},wt=(...t)=>{const e=gt().createApp(...t);const{mount:r}=e;return e.mount=t=>{const e=Pt(t);if(e)return r(e,!0)},e};function Pt(t){if((0,s.HD)(t)){return document.querySelector(t)}return t}},3577:(t,e,r)=>{"use strict";function s(t,e){const r=Object.create(null),s=t.split(",");for(let t=0;t<s.length;t++)r[s[t]]=!0;return e?t=>!!r[t.toLowerCase()]:t=>!!r[t]}r.d(e,{Z6:()=>w,kT:()=>b,NO:()=>T,dG:()=>P,m:()=>n,_A:()=>W,kC:()=>Y,Nj:()=>et,l7:()=>k,aU:()=>Z,RI:()=>I,rs:()=>X,ir:()=>tt,kJ:()=>_,mf:()=>L,e1:()=>i,eS:()=>d,S0:()=>$,_N:()=>O,tR:()=>E,Kn:()=>F,F7:()=>A,tI:()=>B,Gg:()=>G,aN:()=>f,DM:()=>D,Pq:()=>a,HD:()=>R,yk:()=>j,WB:()=>m,WV:()=>y,hq:()=>g,fY:()=>s,C_:()=>p,j5:()=>c,yL:()=>h,Od:()=>C,zw:()=>v,hR:()=>Q,He:()=>rt,W7:()=>q});const n={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=s("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl");const o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a=s(o);function c(t){if(_(t)){const e={};for(let r=0;r<t.length;r++){const s=t[r],n=c(R(s)?h(s):s);if(n)for(const t in n)e[t]=n[t]}return e}if(F(t))return t}const l=/;(?![^(]*\))/g,u=/:(.+)/;function h(t){const e={};return t.split(l).forEach((t=>{if(t){const r=t.split(u);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}function p(t){let e="";if(R(t))e=t;else if(_(t))for(let r=0;r<t.length;r++)e+=p(t[r])+" ";else if(F(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}const d=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),f=s("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),m=s("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr");function y(t,e){if(t===e)return!0;let r=M(t),s=M(e);if(r||s)return!(!r||!s)&&t.getTime()===e.getTime();if(r=_(t),s=_(e),r||s)return!(!r||!s)&&function(t,e){if(t.length!==e.length)return!1;let r=!0;for(let s=0;r&&s<t.length;s++)r=y(t[s],e[s]);return r}(t,e);if(r=F(t),s=F(e),r||s){if(!r||!s)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t){const s=t.hasOwnProperty(r),n=e.hasOwnProperty(r);if(s&&!n||!s&&n||!y(t[r],e[r]))return!1}}return String(t)===String(e)}function g(t,e){return t.findIndex((t=>y(t,e)))}const v=t=>null==t?"":F(t)?JSON.stringify(t,x,2):String(t),x=(t,e)=>O(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,r])=>(t[`${e} =>`]=r,t)),{})}:D(e)?{[`Set(${e.size})`]:[...e.values()]}:!F(e)||_(e)||H(e)?e:String(e),b={},w=[],P=()=>{},T=()=>!1,S=/^on[^a-z]/,A=t=>S.test(t),E=t=>t.startsWith("onUpdate:"),k=Object.assign,C=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},N=Object.prototype.hasOwnProperty,I=(t,e)=>N.call(t,e),_=Array.isArray,O=t=>"[object Map]"===V(t),D=t=>"[object Set]"===V(t),M=t=>t instanceof Date,L=t=>"function"==typeof t,R=t=>"string"==typeof t,j=t=>"symbol"==typeof t,F=t=>null!==t&&"object"==typeof t,B=t=>F(t)&&L(t.then)&&L(t.catch),U=Object.prototype.toString,V=t=>U.call(t),q=t=>V(t).slice(8,-1),H=t=>"[object Object]"===V(t),$=t=>R(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,G=s(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),K=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},z=/-(\w)/g,W=K((t=>t.replace(z,((t,e)=>e?e.toUpperCase():"")))),J=/\B([A-Z])/g,X=K((t=>t.replace(J,"-$1").toLowerCase())),Y=K((t=>t.charAt(0).toUpperCase()+t.slice(1))),Q=K((t=>t?`on${Y(t)}`:"")),Z=(t,e)=>t!==e&&(t==t||e==e),tt=(t,e)=>{for(let r=0;r<t.length;r++)t[r](e)},et=(t,e,r)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},rt=t=>{const e=parseFloat(t);return isNaN(e)?t:e}},4511:(t,e,r)=>{"use strict";r.r(e);var s=r(7757),n=r.n(s);function i(t,e,r,s,n,i,o){try{var a=t[i](o),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(s,n)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(s,n){var o=t.apply(e,r);function a(t){i(o,s,n,a,c,"next",t)}function c(t){i(o,s,n,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 r=arguments;return o(n().mark((function s(){var i,o,c,l,u,h,p;return n().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return i=r.length>2&&void 0!==r[2]?r[2]:"POST",o=r.length>3&&void 0!==r[3]&&r[3],c=a,o&&(c["Content-Type"]="multipart/form-data"),l={method:i,headers:c},e&&(o?l.body=e:"GET"===i?(u=Object.keys(e).map((function(t){var r=encodeURIComponent(t),s=e[t];if(s.constructor===Array){var n=[];return s.forEach((function(t){n.push(r+"[]="+encodeURIComponent(t))})),n.join("&")}return r+"="+encodeURIComponent(s)})).join("&"),t=t+"?"+u):l.body=JSON.stringify(e)),s.next=8,fetch(t,l);case 8:return h=s.sent,s.prev=9,s.next=12,h.json();case 12:return p=s.sent,s.abrupt("return",p);case 16:return s.prev=16,s.t0=s.catch(9),s.abrupt("return",h);case 19:case"end":return s.stop()}}),s,null,[[9,16]])})))()},get:function(t,e){var r=this;return o(n().mark((function s(){return n().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",r.send(t,e,"GET"));case 1:case"end":return s.stop()}}),s)})))()},post:function(t,e){var r=arguments,s=this;return o(n().mark((function i(){var o;return n().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]&&r[2],n.abrupt("return",s.send(t,e,"POST",o));case 2:case"end":return n.stop()}}),i)})))()},put:function(t,e){var r=this;return o(n().mark((function s(){return n().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",r.send(t,e,"PUT"));case 1:case"end":return s.stop()}}),s)})))()},delete:function(t,e){var r=this;return o(n().mark((function s(){return n().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",r.send(t,e,"DELETE"));case 1:case"end":return s.stop()}}),s)})))()}};window.collect=r(131),window.api=c},2606:(t,e,r)=>{var s=r(6197);t.exports=function(t,e){if(void 0!==s[t])return document.querySelector("base").getAttribute("href")+"/"+s[t].split("/").map((function(t){if("{"==t[0]){var r=t.substring(1,t.length-1);return e[r]?e[r]:e.id?e.id:r}return t})).join("/");console.error("Unknown route ",t)}},1536:t=>{"use strict";t.exports=function(t){var e,r=void 0;Array.isArray(t)?(e=r=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(t)):(r={},Object.keys(t).forEach((function(e){r[e]=t[e]})));return r}},1242: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={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,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}t.exports=function(t){var r=[];return Array.isArray(t)?r.push.apply(r,e(t)):"Collection"===t.constructor.name?r.push.apply(r,e(t.all())):Object.keys(t).forEach((function(e){return r.push(t[e])})),r}},725:t=>{"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},131:(t,e,r)=>{"use strict";var 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};function n(t){void 0===t||Array.isArray(t)||"object"===(void 0===t?"undefined":s(t))?t instanceof this.constructor?this.items=t.all():this.items=t||[]:this.items=[t]}var i=r(9874);"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=i),n.prototype.toJSON=function(){return this.items},n.prototype.all=r(9446),n.prototype.average=r(7722),n.prototype.avg=r(7699),n.prototype.chunk=r(5838),n.prototype.collapse=r(4940),n.prototype.combine=r(451),n.prototype.concat=r(6618),n.prototype.contains=r(1567),n.prototype.count=r(2658),n.prototype.countBy=r(2137),n.prototype.crossJoin=r(2098),n.prototype.dd=r(2797),n.prototype.diff=r(7293),n.prototype.diffAssoc=r(9582),n.prototype.diffKeys=r(7691),n.prototype.dump=r(4387),n.prototype.duplicates=r(7332),n.prototype.each=r(9577),n.prototype.eachSpread=r(5881),n.prototype.every=r(5711),n.prototype.except=r(5949),n.prototype.filter=r(7435),n.prototype.first=r(6126),n.prototype.firstWhere=r(1692),n.prototype.flatMap=r(8374),n.prototype.flatten=r(7048),n.prototype.flip=r(6447),n.prototype.forPage=r(1671),n.prototype.forget=r(64),n.prototype.get=r(4026),n.prototype.groupBy=r(8925),n.prototype.has=r(3605),n.prototype.implode=r(3399),n.prototype.intersect=r(2006),n.prototype.intersectByKeys=r(4368),n.prototype.isEmpty=r(5614),n.prototype.isNotEmpty=r(4247),n.prototype.join=r(2663),n.prototype.keyBy=r(5914),n.prototype.keys=r(3008),n.prototype.last=r(4262),n.prototype.macro=r(78),n.prototype.make=r(9252),n.prototype.map=r(8920),n.prototype.mapSpread=r(2235),n.prototype.mapToDictionary=r(2241),n.prototype.mapInto=r(5170),n.prototype.mapToGroups=r(9720),n.prototype.mapWithKeys=r(5294),n.prototype.max=r(9861),n.prototype.median=r(3783),n.prototype.merge=r(4898),n.prototype.mergeRecursive=r(8524),n.prototype.min=r(5782),n.prototype.mode=r(3075),n.prototype.nth=r(1577),n.prototype.only=r(5840),n.prototype.pad=r(1668),n.prototype.partition=r(2842),n.prototype.pipe=r(9368),n.prototype.pluck=r(3824),n.prototype.pop=r(5682),n.prototype.prepend=r(9531),n.prototype.pull=r(7003),n.prototype.push=r(3817),n.prototype.put=r(9418),n.prototype.random=r(6849),n.prototype.reduce=r(5102),n.prototype.reject=r(2820),n.prototype.replace=r(9797),n.prototype.replaceRecursive=r(7287),n.prototype.reverse=r(9469),n.prototype.search=r(5334),n.prototype.shift=r(6561),n.prototype.shuffle=r(2882),n.prototype.skip=r(7692),n.prototype.skipUntil=r(6825),n.prototype.skipWhile=r(1190),n.prototype.slice=r(2867),n.prototype.some=r(9101),n.prototype.sort=r(8766),n.prototype.sortDesc=r(7783),n.prototype.sortBy=r(1127),n.prototype.sortByDesc=r(7738),n.prototype.sortKeys=r(6536),n.prototype.sortKeysDesc=r(4989),n.prototype.splice=r(4947),n.prototype.split=r(4481),n.prototype.sum=r(6149),n.prototype.take=r(496),n.prototype.takeUntil=r(4270),n.prototype.takeWhile=r(1548),n.prototype.tap=r(4265),n.prototype.times=r(2668),n.prototype.toArray=r(2903),n.prototype.toJson=r(1245),n.prototype.transform=r(4583),n.prototype.unless=r(5553),n.prototype.unlessEmpty=r(3339),n.prototype.unlessNotEmpty=r(4721),n.prototype.union=r(4464),n.prototype.unique=r(5547),n.prototype.unwrap=r(794),n.prototype.values=r(7615),n.prototype.when=r(1005),n.prototype.whenEmpty=r(4721),n.prototype.whenNotEmpty=r(3339),n.prototype.where=r(4295),n.prototype.whereBetween=r(4835),n.prototype.whereIn=r(5524),n.prototype.whereInstanceOf=r(7848),n.prototype.whereNotBetween=r(2787),n.prototype.whereNotIn=r(5839),n.prototype.whereNull=r(609),n.prototype.whereNotNull=r(1590),n.prototype.wrap=r(8711),n.prototype.zip=r(3585);var o=function(t){return new n(t)};t.exports=o,t.exports.collect=o,t.exports.default=o,t.exports.Collection=n},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,r)=>{"use strict";var s=r(7722);t.exports=s},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 r=this,s=[],n=0;if(Array.isArray(this.items))do{var i=this.items.slice(n,n+t),o=new this.constructor(i);s.push(o),n+=t}while(n<this.items.length);else if("object"===e(this.items)){var a=Object.keys(this.items),c=function(){var e=a.slice(n,n+t),i=new r.constructor({});e.forEach((function(t){return i.put(t,r.items[t])})),s.push(i),n+=t};do{c()}while(n<a.length)}else s.push(new this.constructor([this.items]));return new this.constructor(s)}},4940:t=>{"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,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(this.items)))}},451: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 r=[],s=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){n=!0,i=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},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};t.exports=function(t){var s=this,n=t;n instanceof this.constructor&&(n=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(n))this.items.forEach((function(t,e){i[t]=n[e]}));else if("object"===r(this.items)&&"object"===(void 0===n?"undefined":r(n)))Object.keys(this.items).forEach((function(t,e){i[s.items[t]]=n[Object.keys(n)[e]]}));else if(Array.isArray(this.items))i[this.items[0]]=n;else if("string"==typeof this.items&&Array.isArray(n)){var o=e(n,1);i[this.items]=o[0]}else"string"==typeof this.items&&(i[this.items]=n);return new this.constructor(i)}},6618:(t,e,r)=>{"use strict";var 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},n=r(1536);t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":s(t))&&(e=[],Object.keys(t).forEach((function(r){e.push(t[r])})));var r=n(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":s(t))?Object.keys(t).forEach((function(e){return r.push(t[e])})):r.push(t)})),new this.constructor(r)}},1567:(t,e,r)=>{"use strict";var s=r(7055),n=r(1242).isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(r){return void 0!==r[t]&&r[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(n(t))return this.items.filter((function(e,r){return t(e,r)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var r=s(this.items);return r.push.apply(r,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(Object.keys(this.items))),-1!==r.indexOf(t)}},2658:t=>{"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,r,s){var n=s[0];n instanceof r&&(n=n.all());for(var i=s.slice(1),o=!i.length,a=[],c=0;c<n.length;c+=1){var l=e.slice();l.push(n[c]),o?a.push(l):a=a.concat(t(l,r,i))}return a}for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];return new this.constructor(t([],this.constructor,[].concat([this.items],r)))}},2797:(t,e,r)=>{"use strict";var s=r(4155);t.exports=function(){this.dump(),void 0!==s&&s.exit(1)}},7293:t=>{"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=this.items.filter((function(t){return-1===e.indexOf(t)}));return new this.constructor(r)}},9582:t=>{"use strict";t.exports=function(t){var e=this,r=t;t instanceof this.constructor&&(r=t.all());var s={};return Object.keys(this.items).forEach((function(t){void 0!==r[t]&&r[t]===e.items[t]||(s[t]=e.items[t])})),new this.constructor(s)}},7691:t=>{"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=Object.keys(e),s=Object.keys(this.items).filter((function(t){return-1===r.indexOf(t)}));return new this.constructor(this.items).only(s)}},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,r=[],s={},n=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 i=n(t);-1===r.indexOf(i)?r.push(i):s[e]=t})):"object"===e(this.items)&&Object.keys(this.items).forEach((function(e){var i=n(t.items[e]);-1===r.indexOf(i)?r.push(i):s[e]=t.items[e]})),new this.constructor(s)}},9577:t=>{"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var r=this.items.length,s=0;s<r&&!e;s+=1)e=!1===t(this.items[s],s,this.items);else for(var n=Object.keys(this.items),i=n.length,o=0;o<i&&!e;o+=1){var a=n[o];e=!1===t(this.items[a],a,this.items)}return this}},5881:t=>{"use strict";t.exports=function(t){return this.each((function(e,r){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(e).concat([r]))})),this}},5711:(t,e,r)=>{"use strict";var s=r(7055);t.exports=function(t){return s(this.items).every(t)}},5949:(t,e,r)=>{"use strict";var s=r(725);t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=s(r);if(Array.isArray(this.items)){var o=this.items.filter((function(t){return-1===i.indexOf(t)}));return new this.constructor(o)}var a={};return Object.keys(this.items).forEach((function(e){-1===i.indexOf(e)&&(a[e]=t.items[e])})),new this.constructor(a)}},7435: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};function r(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,s=null;return s=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var s=[],n=0;n<e.length;n+=1){var i=e[n];r(i)||s.push(i)}return s}(e,this.items):function(t,e){var s={};return Object.keys(e).forEach((function(n){t?t(e[n],n)&&(s[n]=e[n]):r(e[n])||(s[n]=e[n])})),s}(e,this.items),new this.constructor(s)}},6126:(t,e,r)=>{"use strict";var s=r(1242).isFunction;t.exports=function(t,e){if(s(t)){for(var r=0,n=this.items.length;r<n;r+=1){var i=this.items[r];if(t(i))return i}return s(e)?e():e}if(Array.isArray(this.items)&&this.items.length||Object.keys(this.items).length){if(Array.isArray(this.items))return this.items[0];var o=Object.keys(this.items)[0];return this.items[o]}return s(e)?e():e}},1692:t=>{"use strict";t.exports=function(t,e,r){return this.where(t,e,r).first()||null}},8374:t=>{"use strict";t.exports=function(t){return this.map(t).collapse()}},7048:(t,e,r)=>{"use strict";var s=r(1242),n=s.isArray,i=s.isObject;t.exports=function(t){var e=t||1/0,r=!1,s=[],o=function(t){s=[],n(t)?t.forEach((function(t){n(t)?s=s.concat(t):i(t)?Object.keys(t).forEach((function(e){s=s.concat(t[e])})):s.push(t)})):Object.keys(t).forEach((function(e){n(t[e])?s=s.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(r){s=s.concat(t[e][r])})):s.push(t[e])})),r=0===(r=s.filter((function(t){return i(t)}))).length,e-=1};for(o(this.items);!r&&e>0;)o(s);return new this.constructor(s)}},6447:t=>{"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(r){e[t.items[r]]=Number(r)})):Object.keys(this.items).forEach((function(r){e[t.items[r]]=r})),new this.constructor(e)}},1671:t=>{"use strict";t.exports=function(t,e){var r=this,s={};return Array.isArray(this.items)?s=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){s[t]=r.items[t]})),new this.constructor(s)}},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,r)=>{"use strict";var s=r(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]:s(e)?e():null!==e?e:null}},8925:(t,e,r)=>{"use strict";var s=r(6429),n=r(1242).isFunction;t.exports=function(t){var e=this,r={};return this.items.forEach((function(i,o){var a=void 0;a=n(t)?t(i,o):s(i,t)||0===s(i,t)?s(i,t):"",void 0===r[a]&&(r[a]=new e.constructor([])),r[a].push(i)})),new this.constructor(r)}},3605:(t,e,r)=>{"use strict";var s=r(725);t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=s(r);return i.filter((function(e){return t.items[e]})).length===i.length}},3399:t=>{"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 r=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(r)}},4368:t=>{"use strict";t.exports=function(t){var e=this,r=Object.keys(t);t instanceof this.constructor&&(r=Object.keys(t.all()));var s={};return Object.keys(this.items).forEach((function(t){-1!==r.indexOf(t)&&(s[t]=e.items[t])})),new this.constructor(s)}},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 r=this.values();if(void 0===e)return r.implode(t);var s=r.count();if(0===s)return"";if(1===s)return r.last();var n=r.pop();return r.implode(t)+e+n}},5914:(t,e,r)=>{"use strict";var s=r(6429),n=r(1242).isFunction;t.exports=function(t){var e={};return n(t)?this.items.forEach((function(r){e[t(r)]=r})):this.items.forEach((function(r){var n=s(r,t);e[n||""]=r})),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,r)=>{"use strict";var s=r(1242).isFunction;t.exports=function(t,e){var r=this.items;if(s(t)&&(r=this.filter(t).all()),Array.isArray(r)&&!r.length||!Object.keys(r).length)return s(e)?e():e;if(Array.isArray(r))return r[r.length-1];var n=Object.keys(r);return r[n[n.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 r={};return Object.keys(this.items).forEach((function(s){r[s]=t(e.items[s],s)})),new this.constructor(r)}},5170:t=>{"use strict";t.exports=function(t){return this.map((function(e,r){return new t(e,r)}))}},2235:t=>{"use strict";t.exports=function(t){return this.map((function(e,r){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}(e).concat([r]))}))}},2241: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 r=[],s=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){n=!0,i=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var r={};return this.items.forEach((function(s,n){var i=t(s,n),o=e(i,2),a=o[0],c=o[1];void 0===r[a]?r[a]=[c]:r[a].push(c)})),new this.constructor(r)}},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 r=[],s=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){n=!0,i=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var r={};return this.items.forEach((function(s,n){var i=t(s,n),o=e(i,2),a=o[0],c=o[1];void 0===r[a]?r[a]=[c]:r[a].push(c)})),new this.constructor(r)}},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 r=[],s=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){n=!0,i=t}finally{try{!s&&a.return&&a.return()}finally{if(n)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var r=this,s={};return Array.isArray(this.items)?this.items.forEach((function(r){var n=t(r),i=e(n,2),o=i[0],a=i[1];s[o]=a})):Object.keys(this.items).forEach((function(n){var i=t(r.items[n]),o=e(i,2),a=o[0],c=o[1];s[a]=c})),new this.constructor(s)}},9861:t=>{"use strict";function e(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}t.exports=function(t){if("string"==typeof t){var r=this.items.filter((function(e){return void 0!==e[t]}));return Math.max.apply(Math,e(r.map((function(e){return e[t]}))))}return Math.max.apply(Math,e(this.items))}},3783:t=>{"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 r=JSON.parse(JSON.stringify(this.items));return Object.keys(e).forEach((function(t){r[t]=e[t]})),new this.constructor(r)}},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 r=function t(r,s){var n={};return Object.keys(Object.assign({},r,s)).forEach((function(i){void 0===r[i]&&void 0!==s[i]?n[i]=s[i]:void 0!==r[i]&&void 0===s[i]?n[i]=r[i]:void 0!==r[i]&&void 0!==s[i]&&(r[i]===s[i]?n[i]=r[i]:Array.isArray(r[i])||"object"!==e(r[i])||Array.isArray(s[i])||"object"!==e(s[i])?n[i]=[].concat(r[i],s[i]):n[i]=t(r[i],s[i]))})),n};return t?"Collection"===t.constructor.name?new this.constructor(r(this.items,t.all())):new this.constructor(r(this.items,t)):this}},5782:t=>{"use strict";function e(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}t.exports=function(t){if(void 0!==t){var r=this.items.filter((function(e){return void 0!==e[t]}));return Math.min.apply(Math,e(r.map((function(e){return e[t]}))))}return Math.min.apply(Math,e(this.items))}},3075:t=>{"use strict";t.exports=function(t){var e=[],r=1;return this.items.length?(this.items.forEach((function(s){var n=e.filter((function(e){return void 0!==t?e.key===s[t]:e.key===s}));if(n.length){n[0].count+=1;var i=n[0].count;i>r&&(r=i)}else void 0!==t?e.push({key:s[t],count:1}):e.push({key:s,count:1})})),e.filter((function(t){return t.count===r})).map((function(t){return t.key}))):null}},1577:(t,e,r)=>{"use strict";var s=r(7055);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=s(this.items),n=r.slice(e).filter((function(e,r){return r%t==0}));return new this.constructor(n)}},5840:(t,e,r)=>{"use strict";var s=r(725);t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=s(r);if(Array.isArray(this.items)){var o=this.items.filter((function(t){return-1!==i.indexOf(t)}));return new this.constructor(o)}var a={};return Object.keys(this.items).forEach((function(e){-1!==i.indexOf(e)&&(a[e]=t.items[e])})),new this.constructor(a)}},1668:(t,e,r)=>{"use strict";var s=r(1536);t.exports=function(t,e){var r=Math.abs(t),n=this.count();if(r<=n)return this;for(var i=r-n,o=s(this.items),a=Array.isArray(this.items),c=t<0,l=0;l<i;)a?c?o.unshift(e):o.push(e):void 0!==o[l]?i+=1:o[l]=e,l+=1;return new this.constructor(o)}},2842:t=>{"use strict";t.exports=function(t){var e=this,r=void 0;return Array.isArray(this.items)?(r=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(e){!0===t(e)?r[0].push(e):r[1].push(e)}))):(r=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(s){var n=e.items[s];!0===t(n)?r[0].put(s,n):r[1].put(s,n)}))),new this.constructor(r)}},9368:t=>{"use strict";t.exports=function(t){return t(this)}},3824:(t,e,r)=>{"use strict";var s=r(1242),n=s.isArray,i=s.isObject,o=r(6429);t.exports=function(t,e){if(-1!==t.indexOf("*")){var r=(d=this.items,f={},d.forEach((function(t,e){!function t(e,r){i(e)?Object.keys(e).forEach((function(s){t(e[s],r+"."+s)})):n(e)&&e.forEach((function(e,s){t(e,r+"."+s)})),f[r]=e}(t,e)})),f),s=[];if(void 0!==e){var a=new RegExp("0."+e,"g"),c=("0."+e).split(".").length;Object.keys(r).forEach((function(t){var e=t.match(a);if(e){var n=e[0];n.split(".").length===c&&s.push(r[n])}}))}var l=[],u=new RegExp("0."+t,"g"),h=("0."+t).split(".").length;if(Object.keys(r).forEach((function(t){var e=t.match(u);if(e){var s=e[0];s.split(".").length===h&&l.push(r[s])}})),void 0!==e){var p={};return this.items.forEach((function(t,e){p[s[e]||""]=l})),new this.constructor(p)}return new this.constructor([l])}var d,f;if(void 0!==e){var m={};return this.items.forEach((function(r){void 0!==o(r,t)?m[r[e]||""]=o(r,t):m[r[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],r=this.items[e];return delete this.items[e],r}},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,r)=>{"use strict";var s=r(1242).isFunction;t.exports=function(t,e){var r=this.items[t]||null;return r||void 0===e||(r=s(e)?e():e),delete this.items[t],r}},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,r)=>{"use strict";var s=r(7055);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=s(this.items),r=new this.constructor(e).shuffle();return t!==parseInt(t,10)?r.first():r.take(t)}},5102:t=>{"use strict";t.exports=function(t,e){var r=this,s=null;return void 0!==e&&(s=e),Array.isArray(this.items)?this.items.forEach((function(e){s=t(s,e)})):Object.keys(this.items).forEach((function(e){s=t(s,r.items[e],e)})),s}},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,r){return t[r]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var r=Object.assign({},this.items,t.all());return new this.constructor(r)}var s=Object.assign({},this.items,t);return new this.constructor(s)}},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 r=function t(r,s){var n=Object.assign({},r);return Object.keys(Object.assign({},r,s)).forEach((function(i){Array.isArray(s[i])||"object"!==e(s[i])?void 0===r[i]&&void 0!==s[i]?"object"===e(r[i])?n[i]=Object.assign({},s[i]):n[i]=s[i]:void 0!==r[i]&&void 0===s[i]?"object"===e(r[i])?n[i]=Object.assign({},r[i]):n[i]=r[i]:void 0!==r[i]&&void 0!==s[i]&&("object"===e(s[i])?n[i]=Object.assign({},s[i]):n[i]=s[i]):n[i]=t(r[i],s[i])})),n};return t?Array.isArray(t)||"object"===(void 0===t?"undefined":e(t))?"Collection"===t.constructor.name?new this.constructor(r(this.items,t.all())):new this.constructor(r(this.items,t)):new this.constructor(r(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,r)=>{"use strict";var s=r(1242),n=s.isArray,i=s.isObject,o=s.isFunction;t.exports=function(t,e){var r=this,s=void 0,a=function(s,n){return o(t)?t(r.items[n],n):e?r.items[n]===t:r.items[n]==t};return n(this.items)?s=this.items.findIndex(a):i(this.items)&&(s=Object.keys(this.items).find((function(t){return a(r.items[t],t)}))),!(void 0===s||s<0)&&s}},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,r)=>{"use strict";var s=r(7055);t.exports=function(){var t=s(this.items),e=void 0,r=void 0,n=void 0;for(n=t.length;n;n-=1)e=Math.floor(Math.random()*n),r=t[n-1],t[n-1]=t[e],t[e]=r;return this.items=t,this}},7692:(t,e,r)=>{"use strict";var s=r(1242).isObject;t.exports=function(t){var e=this;return s(this.items)?new this.constructor(Object.keys(this.items).reduce((function(r,s,n){return n+1>t&&(r[s]=e.items[s]),r}),{})):new this.constructor(this.items.slice(t))}},6825:(t,e,r)=>{"use strict";var s=r(1242),n=s.isArray,i=s.isObject,o=s.isFunction;t.exports=function(t){var e=this,r=null,s=void 0,a=function(e){return e===t};return o(t)&&(a=t),n(this.items)&&(s=this.items.filter((function(t){return!0!==r&&(r=a(t)),r}))),i(this.items)&&(s=Object.keys(this.items).reduce((function(t,s){return!0!==r&&(r=a(e.items[s])),!1!==r&&(t[s]=e.items[s]),t}),{})),new this.constructor(s)}},1190:(t,e,r)=>{"use strict";var s=r(1242),n=s.isArray,i=s.isObject,o=s.isFunction;t.exports=function(t){var e=this,r=null,s=void 0,a=function(e){return e===t};return o(t)&&(a=t),n(this.items)&&(s=this.items.filter((function(t){return!0!==r&&(r=!a(t)),r}))),i(this.items)&&(s=Object.keys(this.items).reduce((function(t,s){return!0!==r&&(r=!a(e.items[s])),!1!==r&&(t[s]=e.items[s]),t}),{})),new this.constructor(s)}},2867:t=>{"use strict";t.exports=function(t,e){var r=this.items.slice(t);return void 0!==e&&(r=r.slice(0,e)),new this.constructor(r)}},9101:(t,e,r)=>{"use strict";var s=r(1567);t.exports=s},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,r)=>{"use strict";var s=r(6429),n=r(1242).isFunction;t.exports=function(t){var e=[].concat(this.items),r=function(e){return n(t)?t(e):s(e,t)};return e.sort((function(t,e){var s=r(t),n=r(e);return null==s?1:null==n||s<n?-1:s>n?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(r){e[r]=t.items[r]})),new this.constructor(e)}},4989:t=>{"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},4947:t=>{"use strict";t.exports=function(t,e,r){var s=this.slice(t,e);if(this.items=this.diff(s.all()).all(),Array.isArray(r))for(var n=0,i=r.length;n<i;n+=1)this.items.splice(t+n,0,r[n]);return s}},4481:t=>{"use strict";t.exports=function(t){for(var e=Math.round(this.items.length/t),r=JSON.parse(JSON.stringify(this.items)),s=[],n=0;n<t;n+=1)s.push(new this.constructor(r.splice(0,e)));return new this.constructor(s)}},6149:(t,e,r)=>{"use strict";var s=r(7055),n=r(1242).isFunction;t.exports=function(t){var e=s(this.items),r=0;if(void 0===t)for(var i=0,o=e.length;i<o;i+=1)r+=parseFloat(e[i]);else if(n(t))for(var a=0,c=e.length;a<c;a+=1)r+=parseFloat(t(e[a]));else for(var l=0,u=e.length;l<u;l+=1)r+=parseFloat(e[l][t]);return parseFloat(r.toPrecision(12))}},9874:t=>{"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 r=this;if(!Array.isArray(this.items)&&"object"===e(this.items)){var s=Object.keys(this.items),n=void 0;n=t<0?s.slice(t):s.slice(0,t);var i={};return s.forEach((function(t){-1!==n.indexOf(t)&&(i[t]=r.items[t])})),new this.constructor(i)}return t<0?new this.constructor(this.items.slice(t)):new this.constructor(this.items.slice(0,t))}},4270:(t,e,r)=>{"use strict";var s=r(1242),n=s.isArray,i=s.isObject,o=s.isFunction;t.exports=function(t){var e=this,r=null,s=void 0,a=function(e){return e===t};return o(t)&&(a=t),n(this.items)&&(s=this.items.filter((function(t){return!1!==r&&(r=!a(t)),r}))),i(this.items)&&(s=Object.keys(this.items).reduce((function(t,s){return!1!==r&&(r=!a(e.items[s])),!1!==r&&(t[s]=e.items[s]),t}),{})),new this.constructor(s)}},1548:(t,e,r)=>{"use strict";var s=r(1242),n=s.isArray,i=s.isObject,o=s.isFunction;t.exports=function(t){var e=this,r=null,s=void 0,a=function(e){return e===t};return o(t)&&(a=t),n(this.items)&&(s=this.items.filter((function(t){return!1!==r&&(r=a(t)),r}))),i(this.items)&&(s=Object.keys(this.items).reduce((function(t,s){return!1!==r&&(r=a(e.items[s])),!1!==r&&(t[s]=e.items[s]),t}),{})),new this.constructor(s)}},4265:t=>{"use strict";t.exports=function(t){return t(this),this}},2668:t=>{"use strict";t.exports=function(t,e){for(var r=1;r<=t;r+=1)this.items.push(e(r));return this}},2903:t=>{"use strict";t.exports=function(){var t=this.constructor;function e(r,s){var n=[];r instanceof t?(r.items.forEach((function(t){return e(t,n)})),s.push(n)):Array.isArray(r)?(r.forEach((function(t){return e(t,n)})),s.push(n)):s.push(r)}if(Array.isArray(this.items)){var r=[];return this.items.forEach((function(t){e(t,r)})),r}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 r={};Object.keys(this.items).forEach((function(s){r[s]=t(e.items[s],s)})),this.items=r}return this}},4464:t=>{"use strict";t.exports=function(t){var e=this,r=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(s){void 0===e.items[s]&&(r[s]=t[s])})),new this.constructor(r)}},5547:(t,e,r)=>{"use strict";var s=r(1242).isFunction;t.exports=function(t){var e=void 0;if(void 0===t)e=this.items.filter((function(t,e,r){return r.indexOf(t)===e}));else{e=[];for(var r=[],n=0,i=this.items.length;n<i;n+=1){var o=void 0;o=s(t)?t(this.items[n]):this.items[n][t],-1===r.indexOf(o)&&(e.push(this.items[n]),r.push(o))}}return new this.constructor(e)}},5553:t=>{"use strict";t.exports=function(t,e,r){t?r(this):e(this)}},794:t=>{"use strict";t.exports=function(t){return t instanceof this.constructor?t.all():t}},7615:(t,e,r)=>{"use strict";var s=r(7055);t.exports=function(){return new this.constructor(s(this.items))}},1005:t=>{"use strict";t.exports=function(t,e,r){return t?e(this,t):r?r(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,r)=>{"use strict";var s=r(7055),n=r(6429);t.exports=function(t,e,r){var i=e,o=r,a=s(this.items);if(void 0===e||!0===e)return new this.constructor(a.filter((function(e){return n(e,t)})));if(!1===e)return new this.constructor(a.filter((function(e){return!n(e,t)})));void 0===r&&(o=e,i="===");var c=a.filter((function(e){switch(i){case"==":return n(e,t)===Number(o)||n(e,t)===o.toString();default:case"===":return n(e,t)===o;case"!=":case"<>":return n(e,t)!==Number(o)&&n(e,t)!==o.toString();case"!==":return n(e,t)!==o;case"<":return n(e,t)<o;case"<=":return n(e,t)<=o;case">":return n(e,t)>o;case">=":return n(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,r)=>{"use strict";var s=r(7055),n=r(6429);t.exports=function(t,e){var r=s(e),i=this.items.filter((function(e){return-1!==r.indexOf(n(e,t))}));return new this.constructor(i)}},7848:t=>{"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},2787:(t,e,r)=>{"use strict";var s=r(6429);t.exports=function(t,e){return this.filter((function(r){return s(r,t)<e[0]||s(r,t)>e[e.length-1]}))}},5839:(t,e,r)=>{"use strict";var s=r(7055),n=r(6429);t.exports=function(t,e){var r=s(e),i=this.items.filter((function(e){return-1===r.indexOf(n(e,t))}));return new this.constructor(i)}},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,r=t;r instanceof this.constructor&&(r=r.all());var s=this.items.map((function(t,s){return new e.constructor([t,r[s]])}));return new this.constructor(s)}},4155:t=>{var e,r,s=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:n}catch(t){e=n}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var a,c=[],l=!1,u=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&p())}function p(){if(!l){var t=o(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++u<e;)a&&a[u].run();u=-1,e=c.length}a=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function f(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||l||o(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},5666:t=>{var e=function(t){"use strict";var e,r=Object.prototype,s=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function l(t,e,r,s){var n=e&&e.prototype instanceof y?e:y,i=Object.create(n.prototype),o=new C(s||[]);return i._invoke=function(t,e,r){var s=h;return function(n,i){if(s===d)throw new Error("Generator is already running");if(s===f){if("throw"===n)throw i;return I()}for(r.method=n,r.arg=i;;){var o=r.delegate;if(o){var a=A(o,r);if(a){if(a===m)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(s===h)throw s=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);s=d;var c=u(t,e,r);if("normal"===c.type){if(s=r.done?f:p,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(s=f,r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",f="completed",m={};function y(){}function g(){}function v(){}var x={};x[i]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(N([])));w&&w!==r&&s.call(w,i)&&(x=w);var P=v.prototype=y.prototype=Object.create(x);function T(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(n,i,o,a){var c=u(t[n],t,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&s.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,o,a)}),(function(t){r("throw",t,o,a)})):e.resolve(h).then((function(t){l.value=t,o(l)}),(function(t){return r("throw",t,o,a)}))}a(c.arg)}var n;this._invoke=function(t,s){function i(){return new e((function(e,n){r(t,s,e,n)}))}return n=n?n.then(i,i):i()}}function A(t,r){var s=t.iterator[r.method];if(s===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=u(s,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;var i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function E(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function r(){for(;++n<t.length;)if(s.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:I}}function I(){return{value:e,done:!0}}return g.prototype=P.constructor=v,v.constructor=g,g.displayName=c(v,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,a,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},T(S.prototype),S.prototype[o]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,s,n,i){void 0===i&&(i=Promise);var o=new S(l(e,r,s,n),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},T(P),c(P,a,"Generator"),P[i]=function(){return this},P.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var s=e.pop();if(s in t)return r.value=s,r.done=!1,r}return r.done=!0,r}},t.values=N,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(s,n){return a.type="throw",a.arg=t,r.next=s,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=s.call(o,"catchLoc"),l=s.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var s=r.completion;if("throw"===s.type){var n=s.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,s){return this.delegate={iterator:N(t),resultName:r,nextLoc:s},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},1474:(t,e,r)=>{"use strict";function s(t){return(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)}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},s=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(s=s.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),s.forEach((function(e){n(t,e,r[e])}))}return t}function a(t,e){if(null==t)return{};var r,s,n=function(t,e){if(null==t)return{};var r,s,n={},i=Object.keys(t);for(s=0;s<i.length;s++)r=i[s],e.indexOf(r)>=0||(n[r]=t[r]);return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function c(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}r.r(e),r.d(e,{default:()=>Pe,MultiDrag:()=>xe,Sortable:()=>Ut,Swap:()=>ce});function l(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var u=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),h=l(/Edge/i),p=l(/firefox/i),d=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),f=l(/iP(ad|od|hone)/i),m=l(/chrome/i)&&l(/android/i),y={capture:!1,passive:!1};function g(t,e,r){t.addEventListener(e,r,!u&&y)}function v(t,e,r){t.removeEventListener(e,r,!u&&y)}function x(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function b(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function w(t,e,r,s){if(t){r=r||document;do{if(null!=e&&(">"===e[0]?t.parentNode===r&&x(t,e):x(t,e))||s&&t===r)return t;if(t===r)break}while(t=b(t))}return null}var P,T=/\s+/g;function S(t,e,r){if(t&&e)if(t.classList)t.classList[r?"add":"remove"](e);else{var s=(" "+t.className+" ").replace(T," ").replace(" "+e+" "," ");t.className=(s+(r?" "+e:"")).replace(T," ")}}function A(t,e,r){var s=t&&t.style;if(s){if(void 0===r)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(r=t.currentStyle),void 0===e?r:r[e];e in s||-1!==e.indexOf("webkit")||(e="-webkit-"+e),s[e]=r+("string"==typeof r?"":"px")}}function E(t,e){var r="";if("string"==typeof t)r=t;else do{var s=A(t,"transform");s&&"none"!==s&&(r=s+" "+r)}while(!e&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(r)}function k(t,e,r){if(t){var s=t.getElementsByTagName(e),n=0,i=s.length;if(r)for(;n<i;n++)r(s[n],n);return s}return[]}function C(){var t=document.scrollingElement;return t||document.documentElement}function N(t,e,r,s,n){if(t.getBoundingClientRect||t===window){var i,o,a,c,l,h,p;if(t!==window&&t!==C()?(o=(i=t.getBoundingClientRect()).top,a=i.left,c=i.bottom,l=i.right,h=i.height,p=i.width):(o=0,a=0,c=window.innerHeight,l=window.innerWidth,h=window.innerHeight,p=window.innerWidth),(e||r)&&t!==window&&(n=n||t.parentNode,!u))do{if(n&&n.getBoundingClientRect&&("none"!==A(n,"transform")||r&&"static"!==A(n,"position"))){var d=n.getBoundingClientRect();o-=d.top+parseInt(A(n,"border-top-width")),a-=d.left+parseInt(A(n,"border-left-width")),c=o+i.height,l=a+i.width;break}}while(n=n.parentNode);if(s&&t!==window){var f=E(n||t),m=f&&f.a,y=f&&f.d;f&&(c=(o/=y)+(h/=y),l=(a/=m)+(p/=m))}return{top:o,left:a,bottom:c,right:l,width:p,height:h}}}function I(t,e,r){for(var s=L(t,!0),n=N(t)[e];s;){var i=N(s)[r];if(!("top"===r||"left"===r?n>=i:n<=i))return s;if(s===C())break;s=L(s,!1)}return!1}function _(t,e,r){for(var s=0,n=0,i=t.children;n<i.length;){if("none"!==i[n].style.display&&i[n]!==Ut.ghost&&i[n]!==Ut.dragged&&w(i[n],r.draggable,t,!1)){if(s===e)return i[n];s++}n++}return null}function O(t,e){for(var r=t.lastElementChild;r&&(r===Ut.ghost||"none"===A(r,"display")||e&&!x(r,e));)r=r.previousElementSibling;return r||null}function D(t,e){var r=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ut.clone||e&&!x(t,e)||r++;return r}function M(t){var e=0,r=0,s=C();if(t)do{var n=E(t),i=n.a,o=n.d;e+=t.scrollLeft*i,r+=t.scrollTop*o}while(t!==s&&(t=t.parentNode));return[e,r]}function L(t,e){if(!t||!t.getBoundingClientRect)return C();var r=t,s=!1;do{if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var n=A(r);if(r.clientWidth<r.scrollWidth&&("auto"==n.overflowX||"scroll"==n.overflowX)||r.clientHeight<r.scrollHeight&&("auto"==n.overflowY||"scroll"==n.overflowY)){if(!r.getBoundingClientRect||r===document.body)return C();if(s||e)return r;s=!0}}}while(r=r.parentNode);return C()}function R(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function j(t,e){return function(){if(!P){var r=arguments,s=this;1===r.length?t.call(s,r[0]):t.apply(s,r),P=setTimeout((function(){P=void 0}),e)}}}function F(t,e,r){t.scrollLeft+=e,t.scrollTop+=r}function B(t){var e=window.Polymer,r=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}function U(t,e){A(t,"position","absolute"),A(t,"top",e.top),A(t,"left",e.left),A(t,"width",e.width),A(t,"height",e.height)}function V(t){A(t,"position",""),A(t,"top",""),A(t,"left",""),A(t,"width",""),A(t,"height","")}var q="Sortable"+(new Date).getTime();function H(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==A(t,"display")&&t!==Ut.ghost){e.push({target:t,rect:N(t)});var r=o({},e[e.length-1].rect);if(t.thisAnimationDuration){var s=E(t,!0);s&&(r.top-=s.f,r.left-=s.e)}t.fromRect=r}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var r in t)if(t.hasOwnProperty(r))for(var s in e)if(e.hasOwnProperty(s)&&e[s]===t[r][s])return Number(r);return-1}(e,{target:t}),1)},animateAll:function(r){var s=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof r&&r());var n=!1,i=0;e.forEach((function(t){var e=0,r=t.target,o=r.fromRect,a=N(r),c=r.prevFromRect,l=r.prevToRect,u=t.rect,h=E(r,!0);h&&(a.top-=h.f,a.left-=h.e),r.toRect=a,r.thisAnimationDuration&&R(c,a)&&!R(o,a)&&(u.top-a.top)/(u.left-a.left)==(o.top-a.top)/(o.left-a.left)&&(e=function(t,e,r,s){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))*s.animation}(u,c,l,s.options)),R(a,o)||(r.prevFromRect=o,r.prevToRect=a,e||(e=s.options.animation),s.animate(r,u,a,e)),e&&(n=!0,i=Math.max(i,e),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),e),r.thisAnimationDuration=e)})),clearTimeout(t),n?t=setTimeout((function(){"function"==typeof r&&r()}),i):"function"==typeof r&&r(),e=[]},animate:function(t,e,r,s){if(s){A(t,"transition",""),A(t,"transform","");var n=E(this.el),i=n&&n.a,o=n&&n.d,a=(e.left-r.left)/(i||1),c=(e.top-r.top)/(o||1);t.animatingX=!!a,t.animatingY=!!c,A(t,"transform","translate3d("+a+"px,"+c+"px,0)"),function(t){t.offsetWidth}(t),A(t,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),A(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){A(t,"transition",""),A(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),s)}}}}var $=[],G={initializeByDefault:!0},K={mount:function(t){for(var e in G)G.hasOwnProperty(e)&&!(e in t)&&(t[e]=G[e]);$.push(t)},pluginEvent:function(t,e,r){var s=this;this.eventCanceled=!1,r.cancel=function(){s.eventCanceled=!0};var n=t+"Global";$.forEach((function(s){e[s.pluginName]&&(e[s.pluginName][n]&&e[s.pluginName][n](o({sortable:e},r)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](o({sortable:e},r)))}))},initializePlugins:function(t,e,r,s){for(var n in $.forEach((function(s){var n=s.pluginName;if(t.options[n]||s.initializeByDefault){var o=new s(t,e,t.options);o.sortable=t,o.options=t.options,t[n]=o,i(r,o.defaults)}})),t.options)if(t.options.hasOwnProperty(n)){var o=this.modifyOption(t,n,t.options[n]);void 0!==o&&(t.options[n]=o)}},getEventProperties:function(t,e){var r={};return $.forEach((function(s){"function"==typeof s.eventProperties&&i(r,s.eventProperties.call(e[s.pluginName],t))})),r},modifyOption:function(t,e,r){var s;return $.forEach((function(n){t[n.pluginName]&&n.optionListeners&&"function"==typeof n.optionListeners[e]&&(s=n.optionListeners[e].call(t[n.pluginName],r))})),s}};function z(t){var e=t.sortable,r=t.rootEl,s=t.name,n=t.targetEl,i=t.cloneEl,a=t.toEl,c=t.fromEl,l=t.oldIndex,p=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,m=t.originalEvent,y=t.putSortable,g=t.extraEventProperties;if(e=e||r&&r[q]){var v,x=e.options,b="on"+s.charAt(0).toUpperCase()+s.substr(1);!window.CustomEvent||u||h?(v=document.createEvent("Event")).initEvent(s,!0,!0):v=new CustomEvent(s,{bubbles:!0,cancelable:!0}),v.to=a||r,v.from=c||r,v.item=n||r,v.clone=i,v.oldIndex=l,v.newIndex=p,v.oldDraggableIndex=d,v.newDraggableIndex=f,v.originalEvent=m,v.pullMode=y?y.lastPutMode:void 0;var w=o({},g,K.getEventProperties(s,e));for(var P in w)v[P]=w[P];r&&r.dispatchEvent(v),x[b]&&x[b].call(e,v)}}var W=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=r.evt,n=a(r,["evt"]);K.pluginEvent.bind(Ut)(t,e,o({dragEl:X,parentEl:Y,ghostEl:Q,rootEl:Z,nextEl:tt,lastDownEl:et,cloneEl:rt,cloneHidden:st,dragStarted:yt,putSortable:lt,activeSortable:Ut.active,originalEvent:s,oldIndex:nt,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:at,hideGhostForTarget:Rt,unhideGhostForTarget:jt,cloneNowHidden:function(){st=!0},cloneNowShown:function(){st=!1},dispatchSortableEvent:function(t){J({sortable:e,name:t,originalEvent:s})}},n))};function J(t){z(o({putSortable:lt,cloneEl:rt,targetEl:X,rootEl:Z,oldIndex:nt,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:at},t))}var X,Y,Q,Z,tt,et,rt,st,nt,it,ot,at,ct,lt,ut,ht,pt,dt,ft,mt,yt,gt,vt,xt,bt,wt=!1,Pt=!1,Tt=[],St=!1,At=!1,Et=[],kt=!1,Ct=[],Nt="undefined"!=typeof document,It=f,_t=h||u?"cssFloat":"float",Ot=Nt&&!m&&!f&&"draggable"in document.createElement("div"),Dt=function(){if(Nt){if(u)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Mt=function(t,e){var r=A(t),s=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),n=_(t,0,e),i=_(t,1,e),o=n&&A(n),a=i&&A(i),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+N(n).width,l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+N(i).width;if("flex"===r.display)return"column"===r.flexDirection||"column-reverse"===r.flexDirection?"vertical":"horizontal";if("grid"===r.display)return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&o.float&&"none"!==o.float){var u="left"===o.float?"left":"right";return!i||"both"!==a.clear&&a.clear!==u?"horizontal":"vertical"}return n&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||c>=s&&"none"===r[_t]||i&&"none"===r[_t]&&c+l>s)?"vertical":"horizontal"},Lt=function(t){function e(t,r){return function(s,n,i,o){var a=s.options.group.name&&n.options.group.name&&s.options.group.name===n.options.group.name;if(null==t&&(r||a))return!0;if(null==t||!1===t)return!1;if(r&&"clone"===t)return t;if("function"==typeof t)return e(t(s,n,i,o),r)(s,n,i,o);var c=(r?s:n).options.group.name;return!0===t||"string"==typeof t&&t===c||t.join&&t.indexOf(c)>-1}}var r={},n=t.group;n&&"object"==s(n)||(n={name:n}),r.name=n.name,r.checkPull=e(n.pull,!0),r.checkPut=e(n.put),r.revertClone=n.revertClone,t.group=r},Rt=function(){!Dt&&Q&&A(Q,"display","none")},jt=function(){!Dt&&Q&&A(Q,"display","")};Nt&&document.addEventListener("click",(function(t){if(Pt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Pt=!1,!1}),!0);var Ft=function(t){if(X){t=t.touches?t.touches[0]:t;var e=(n=t.clientX,i=t.clientY,Tt.some((function(t){if(!O(t)){var e=N(t),r=t[q].options.emptyInsertThreshold,s=n>=e.left-r&&n<=e.right+r,a=i>=e.top-r&&i<=e.bottom+r;return r&&s&&a?o=t:void 0}})),o);if(e){var r={};for(var s in t)t.hasOwnProperty(s)&&(r[s]=t[s]);r.target=r.rootEl=e,r.preventDefault=void 0,r.stopPropagation=void 0,e[q]._onDragOver(r)}}var n,i,o},Bt=function(t){X&&X.parentNode[q]._isOutsideThisEl(t.target)};function Ut(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=i({},e),t[q]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Mt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ut.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var s in K.initializePlugins(this,t,r),r)!(s in e)&&(e[s]=r[s]);for(var n in Lt(e),this)"_"===n.charAt(0)&&"function"==typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!e.forceFallback&&Ot,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(t,"pointerdown",this._onTapStart):(g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),Tt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),i(this,H())}function Vt(t,e,r,s,n,i,o,a){var c,l,p=t[q],d=p.options.onMove;return!window.CustomEvent||u||h?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=e,c.from=t,c.dragged=r,c.draggedRect=s,c.related=n||e,c.relatedRect=i||N(e),c.willInsertAfter=a,c.originalEvent=o,t.dispatchEvent(c),d&&(l=d.call(p,c,o)),l}function qt(t){t.draggable=!1}function Ht(){kt=!1}function $t(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,r=e.length,s=0;r--;)s+=e.charCodeAt(r);return s.toString(36)}function Gt(t){return setTimeout(t,0)}function Kt(t){return clearTimeout(t)}Ut.prototype={constructor:Ut,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(gt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,X):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,r=this.el,s=this.options,n=s.preventOnFilter,i=t.type,o=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(o||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,l=s.filter;if(function(t){Ct.length=0;var e=t.getElementsByTagName("input"),r=e.length;for(;r--;){var s=e[r];s.checked&&Ct.push(s)}}(r),!X&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||s.disabled||c.isContentEditable||(a=w(a,s.draggable,r,!1))&&a.animated||et===a)){if(nt=D(a),ot=D(a,s.draggable),"function"==typeof l){if(l.call(this,t,a,this))return J({sortable:e,rootEl:c,name:"filter",targetEl:a,toEl:r,fromEl:r}),W("filter",e,{evt:t}),void(n&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(s){if(s=w(c,s.trim(),r,!1))return J({sortable:e,rootEl:s,name:"filter",targetEl:a,fromEl:r,toEl:r}),W("filter",e,{evt:t}),!0}))))return void(n&&t.cancelable&&t.preventDefault());s.handle&&!w(c,s.handle,r,!1)||this._prepareDragStart(t,o,a)}}},_prepareDragStart:function(t,e,r){var s,n=this,i=n.el,o=n.options,a=i.ownerDocument;if(r&&!X&&r.parentNode===i){var c=N(r);if(Z=i,Y=(X=r).parentNode,tt=X.nextSibling,et=r,ct=o.group,Ut.dragged=X,ut={target:X,clientX:(e||t).clientX,clientY:(e||t).clientY},ft=ut.clientX-c.left,mt=ut.clientY-c.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,X.style["will-change"]="all",s=function(){W("delayEnded",n,{evt:t}),Ut.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!p&&n.nativeDraggable&&(X.draggable=!0),n._triggerDragStart(t,e),J({sortable:n,name:"choose",originalEvent:t}),S(X,o.chosenClass,!0))},o.ignore.split(",").forEach((function(t){k(X,t.trim(),qt)})),g(a,"dragover",Ft),g(a,"mousemove",Ft),g(a,"touchmove",Ft),g(a,"mouseup",n._onDrop),g(a,"touchend",n._onDrop),g(a,"touchcancel",n._onDrop),p&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),W("delayStart",this,{evt:t}),!o.delay||o.delayOnTouchOnly&&!e||this.nativeDraggable&&(h||u))s();else{if(Ut.eventCanceled)return void this._onDrop();g(a,"mouseup",n._disableDelayedDrag),g(a,"touchend",n._disableDelayedDrag),g(a,"touchcancel",n._disableDelayedDrag),g(a,"mousemove",n._delayedDragTouchMoveHandler),g(a,"touchmove",n._delayedDragTouchMoveHandler),o.supportPointer&&g(a,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,o.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&qt(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,e?"touchmove":"mousemove",this._onTouchMove):(g(X,"dragend",this),g(Z,"dragstart",this._onDragStart));try{document.selection?Gt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(wt=!1,Z&&X){W("dragStarted",this,{evt:e}),this.nativeDraggable&&g(document,"dragover",Bt);var r=this.options;!t&&S(X,r.dragClass,!1),S(X,r.ghostClass,!0),Ut.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ht){this._lastX=ht.clientX,this._lastY=ht.clientY,Rt();for(var t=document.elementFromPoint(ht.clientX,ht.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ht.clientX,ht.clientY))!==e;)e=t;if(X.parentNode[q]._isOutsideThisEl(t),e)do{if(e[q]){if(e[q]._onDragOver({clientX:ht.clientX,clientY:ht.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);jt()}},_onTouchMove:function(t){if(ut){var e=this.options,r=e.fallbackTolerance,s=e.fallbackOffset,n=t.touches?t.touches[0]:t,i=Q&&E(Q,!0),o=Q&&i&&i.a,a=Q&&i&&i.d,c=It&&bt&&M(bt),l=(n.clientX-ut.clientX+s.x)/(o||1)+(c?c[0]-Et[0]:0)/(o||1),u=(n.clientY-ut.clientY+s.y)/(a||1)+(c?c[1]-Et[1]:0)/(a||1);if(!Ut.active&&!wt){if(r&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Q){i?(i.e+=l-(pt||0),i.f+=u-(dt||0)):i={a:1,b:0,c:0,d:1,e:l,f:u};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");A(Q,"webkitTransform",h),A(Q,"mozTransform",h),A(Q,"msTransform",h),A(Q,"transform",h),pt=l,dt=u,ht=n}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Q){var t=this.options.fallbackOnBody?document.body:Z,e=N(X,!0,It,!0,t),r=this.options;if(It){for(bt=t;"static"===A(bt,"position")&&"none"===A(bt,"transform")&&bt!==document;)bt=bt.parentNode;bt!==document.body&&bt!==document.documentElement?(bt===document&&(bt=C()),e.top+=bt.scrollTop,e.left+=bt.scrollLeft):bt=C(),Et=M(bt)}S(Q=X.cloneNode(!0),r.ghostClass,!1),S(Q,r.fallbackClass,!0),S(Q,r.dragClass,!0),A(Q,"transition",""),A(Q,"transform",""),A(Q,"box-sizing","border-box"),A(Q,"margin",0),A(Q,"top",e.top),A(Q,"left",e.left),A(Q,"width",e.width),A(Q,"height",e.height),A(Q,"opacity","0.8"),A(Q,"position",It?"absolute":"fixed"),A(Q,"zIndex","100000"),A(Q,"pointerEvents","none"),Ut.ghost=Q,t.appendChild(Q),A(Q,"transform-origin",ft/parseInt(Q.style.width)*100+"% "+mt/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(t,e){var r=this,s=t.dataTransfer,n=r.options;W("dragStart",this,{evt:t}),Ut.eventCanceled?this._onDrop():(W("setupClone",this),Ut.eventCanceled||((rt=B(X)).draggable=!1,rt.style["will-change"]="",this._hideClone(),S(rt,this.options.chosenClass,!1),Ut.clone=rt),r.cloneId=Gt((function(){W("clone",r),Ut.eventCanceled||(r.options.removeCloneOnHide||Z.insertBefore(rt,X),r._hideClone(),J({sortable:r,name:"clone"}))})),!e&&S(X,n.dragClass,!0),e?(Pt=!0,r._loopId=setInterval(r._emulateDragOver,50)):(v(document,"mouseup",r._onDrop),v(document,"touchend",r._onDrop),v(document,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",n.setData&&n.setData.call(r,s,X)),g(document,"drop",r),A(X,"transform","translateZ(0)")),wt=!0,r._dragStartId=Gt(r._dragStarted.bind(r,e,t)),g(document,"selectstart",r),yt=!0,d&&A(document.body,"user-select","none"))},_onDragOver:function(t){var e,r,s,n,i=this.el,a=t.target,c=this.options,l=c.group,u=Ut.active,h=ct===l,p=c.sort,d=lt||u,f=this,m=!1;if(!kt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=w(a,c.draggable,i,!0),R("dragOver"),Ut.eventCanceled)return m;if(X.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||f._ignoreWhileAnimating===a)return B(!1);if(Pt=!1,u&&!c.disabled&&(h?p||(s=!Z.contains(X)):lt===this||(this.lastPutMode=ct.checkPull(this,u,X,t))&&l.checkPut(this,u,X,t))){if(n="vertical"===this._getDirection(t,a),e=N(X),R("dragOverValid"),Ut.eventCanceled)return m;if(s)return Y=Z,j(),this._hideClone(),R("revert"),Ut.eventCanceled||(tt?Z.insertBefore(X,tt):Z.appendChild(X)),B(!0);var y=O(i,c.draggable);if(!y||function(t,e,r){var s=N(O(r.el,r.options.draggable)),n=10;return e?t.clientX>s.right+n||t.clientX<=s.right&&t.clientY>s.bottom&&t.clientX>=s.left:t.clientX>s.right&&t.clientY>s.top||t.clientX<=s.right&&t.clientY>s.bottom+n}(t,n,this)&&!y.animated){if(y===X)return B(!1);if(y&&i===t.target&&(a=y),a&&(r=N(a)),!1!==Vt(Z,i,X,e,a,r,t,!!a))return j(),i.appendChild(X),Y=i,U(),B(!0)}else if(a.parentNode===i){r=N(a);var g,v,x,b=X.parentNode!==i,P=!function(t,e,r){var s=r?t.left:t.top,n=r?t.right:t.bottom,i=r?t.width:t.height,o=r?e.left:e.top,a=r?e.right:e.bottom,c=r?e.width:e.height;return s===o||n===a||s+i/2===o+c/2}(X.animated&&X.toRect||e,a.animated&&a.toRect||r,n),T=n?"top":"left",E=I(a,"top","top")||I(X,"top","top"),k=E?E.scrollTop:void 0;if(gt!==a&&(v=r[T],St=!1,At=!P&&c.invertSwap||b),0!==(g=function(t,e,r,s,n,i,o,a){var c=s?t.clientY:t.clientX,l=s?r.height:r.width,u=s?r.top:r.left,h=s?r.bottom:r.right,p=!1;if(!o)if(a&&xt<l*n){if(!St&&(1===vt?c>u+l*i/2:c<h-l*i/2)&&(St=!0),St)p=!0;else if(1===vt?c<u+xt:c>h-xt)return-vt}else if(c>u+l*(1-n)/2&&c<h-l*(1-n)/2)return function(t){return D(X)<D(t)?1:-1}(e);if((p=p||o)&&(c<u+l*i/2||c>h-l*i/2))return c>u+l/2?1:-1;return 0}(t,a,r,n,P?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,At,gt===a))){var C=D(X);do{C-=g,x=Y.children[C]}while(x&&("none"===A(x,"display")||x===Q))}if(0===g||x===a)return B(!1);gt=a,vt=g;var _=a.nextElementSibling,M=!1,L=Vt(Z,i,X,e,a,r,t,M=1===g);if(!1!==L)return 1!==L&&-1!==L||(M=1===L),kt=!0,setTimeout(Ht,30),j(),M&&!_?i.appendChild(X):a.parentNode.insertBefore(X,M?_:a),E&&F(E,0,k-E.scrollTop),Y=X.parentNode,void 0===v||At||(xt=Math.abs(v-N(a)[T])),U(),B(!0)}if(i.contains(X))return B(!1)}return!1}function R(c,l){W(c,f,o({evt:t,isOwner:h,axis:n?"vertical":"horizontal",revert:s,dragRect:e,targetRect:r,canSort:p,fromSortable:d,target:a,completed:B,onMove:function(r,s){return Vt(Z,i,X,e,r,N(r),t,s)},changed:U},l))}function j(){R("dragOverAnimationCapture"),f.captureAnimationState(),f!==d&&d.captureAnimationState()}function B(e){return R("dragOverCompleted",{insertion:e}),e&&(h?u._hideClone():u._showClone(f),f!==d&&(S(X,lt?lt.options.ghostClass:u.options.ghostClass,!1),S(X,c.ghostClass,!0)),lt!==f&&f!==Ut.active?lt=f:f===Ut.active&&lt&&(lt=null),d===f&&(f._ignoreWhileAnimating=a),f.animateAll((function(){R("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===X&&!X.animated||a===i&&!a.animated)&&(gt=null),c.dragoverBubble||t.rootEl||a===document||(X.parentNode[q]._isOutsideThisEl(t.target),!e&&Ft(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function U(){it=D(X),at=D(X,c.draggable),J({sortable:f,name:"change",toEl:i,newIndex:it,newDraggableIndex:at,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",Ft),v(document,"mousemove",Ft),v(document,"touchmove",Ft)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var e=this.el,r=this.options;it=D(X),at=D(X,r.draggable),W("drop",this,{evt:t}),Y=X&&X.parentNode,it=D(X),at=D(X,r.draggable),Ut.eventCanceled||(wt=!1,At=!1,St=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kt(this.cloneId),Kt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),d&&A(document.body,"user-select",""),A(X,"transform",""),t&&(yt&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(Z===Y||lt&&"clone"!==lt.lastPutMode)&&rt&&rt.parentNode&&rt.parentNode.removeChild(rt),X&&(this.nativeDraggable&&v(X,"dragend",this),qt(X),X.style["will-change"]="",yt&&!wt&&S(X,lt?lt.options.ghostClass:this.options.ghostClass,!1),S(X,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:Y,newIndex:null,newDraggableIndex:null,originalEvent:t}),Z!==Y?(it>=0&&(J({rootEl:Y,name:"add",toEl:Y,fromEl:Z,originalEvent:t}),J({sortable:this,name:"remove",toEl:Y,originalEvent:t}),J({rootEl:Y,name:"sort",toEl:Y,fromEl:Z,originalEvent:t}),J({sortable:this,name:"sort",toEl:Y,originalEvent:t})),lt&&lt.save()):it!==nt&&it>=0&&(J({sortable:this,name:"update",toEl:Y,originalEvent:t}),J({sortable:this,name:"sort",toEl:Y,originalEvent:t})),Ut.active&&(null!=it&&-1!==it||(it=nt,at=ot),J({sortable:this,name:"end",toEl:Y,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),Z=X=Y=Q=tt=rt=et=st=ut=ht=yt=it=at=nt=ot=gt=vt=lt=ct=Ut.dragged=Ut.ghost=Ut.clone=Ut.active=null,Ct.forEach((function(t){t.checked=!0})),Ct.length=pt=dt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":X&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],r=this.el.children,s=0,n=r.length,i=this.options;s<n;s++)w(t=r[s],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||$t(t));return e},sort:function(t){var e={},r=this.el;this.toArray().forEach((function(t,s){var n=r.children[s];w(n,this.options.draggable,r,!1)&&(e[t]=n)}),this),t.forEach((function(t){e[t]&&(r.removeChild(e[t]),r.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return w(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var r=this.options;if(void 0===e)return r[t];var s=K.modifyOption(this,t,e);r[t]=void 0!==s?s:e,"group"===t&&Lt(r)},destroy:function(){W("destroy",this);var t=this.el;t[q]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Tt.splice(Tt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!st){if(W("hideClone",this),Ut.eventCanceled)return;A(rt,"display","none"),this.options.removeCloneOnHide&&rt.parentNode&&rt.parentNode.removeChild(rt),st=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(st){if(W("showClone",this),Ut.eventCanceled)return;Z.contains(X)&&!this.options.group.revertClone?Z.insertBefore(rt,X):tt?Z.insertBefore(rt,tt):Z.appendChild(rt),this.options.group.revertClone&&this.animate(X,rt),A(rt,"display",""),st=!1}}else this._hideClone()}},Nt&&g(document,"touchmove",(function(t){(Ut.active||wt)&&t.cancelable&&t.preventDefault()})),Ut.utils={on:g,off:v,css:A,find:k,is:function(t,e){return!!w(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},throttle:j,closest:w,toggleClass:S,clone:B,index:D,nextTick:Gt,cancelNextTick:Kt,detectDirection:Mt,getChild:_},Ut.get=function(t){return t[q]},Ut.mount=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ut.utils=o({},Ut.utils,t.utils)),K.mount(t)}))},Ut.create=function(t,e){return new Ut(t,e)},Ut.version="1.10.2";var zt,Wt,Jt,Xt,Yt,Qt,Zt=[],te=!1;function ee(){Zt.forEach((function(t){clearInterval(t.pid)})),Zt=[]}function re(){clearInterval(Qt)}var se,ne=j((function(t,e,r,s){if(e.scroll){var n,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,c=e.scrollSpeed,l=C(),u=!1;Wt!==r&&(Wt=r,ee(),zt=e.scroll,n=e.scrollFn,!0===zt&&(zt=L(r,!0)));var h=0,p=zt;do{var d=p,f=N(d),m=f.top,y=f.bottom,g=f.left,v=f.right,x=f.width,b=f.height,w=void 0,P=void 0,T=d.scrollWidth,S=d.scrollHeight,E=A(d),k=d.scrollLeft,I=d.scrollTop;d===l?(w=x<T&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),P=b<S&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=x<T&&("auto"===E.overflowX||"scroll"===E.overflowX),P=b<S&&("auto"===E.overflowY||"scroll"===E.overflowY));var _=w&&(Math.abs(v-i)<=a&&k+x<T)-(Math.abs(g-i)<=a&&!!k),O=P&&(Math.abs(y-o)<=a&&I+b<S)-(Math.abs(m-o)<=a&&!!I);if(!Zt[h])for(var D=0;D<=h;D++)Zt[D]||(Zt[D]={});Zt[h].vx==_&&Zt[h].vy==O&&Zt[h].el===d||(Zt[h].el=d,Zt[h].vx=_,Zt[h].vy=O,clearInterval(Zt[h].pid),0==_&&0==O||(u=!0,Zt[h].pid=setInterval(function(){s&&0===this.layer&&Ut.active._onTouchMove(Yt);var e=Zt[this.layer].vy?Zt[this.layer].vy*c:0,r=Zt[this.layer].vx?Zt[this.layer].vx*c:0;"function"==typeof n&&"continue"!==n.call(Ut.dragged.parentNode[q],r,e,t,Yt,Zt[this.layer].el)||F(Zt[this.layer].el,r,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&p!==l&&(p=L(p,!1)));te=u}}),30),ie=function(t){var e=t.originalEvent,r=t.putSortable,s=t.dragEl,n=t.activeSortable,i=t.dispatchSortableEvent,o=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var c=r||n;o();var l=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(l.clientX,l.clientY);a(),c&&!c.el.contains(u)&&(i("spill"),this.onSpill({dragEl:s,putSortable:r}))}};function oe(){}function ae(){}function ce(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;se=e},dragOverValid:function(t){var e=t.completed,r=t.target,s=t.onMove,n=t.activeSortable,i=t.changed,o=t.cancel;if(n.options.swap){var a=this.sortable.el,c=this.options;if(r&&r!==a){var l=se;!1!==s(r)?(S(r,c.swapClass,!0),se=r):se=null,l&&l!==se&&S(l,c.swapClass,!1)}i(),e(!0),o()}},drop:function(t){var e=t.activeSortable,r=t.putSortable,s=t.dragEl,n=r||this.sortable,i=this.options;se&&S(se,i.swapClass,!1),se&&(i.swap||r&&r.options.swap)&&s!==se&&(n.captureAnimationState(),n!==e&&e.captureAnimationState(),function(t,e){var r,s,n=t.parentNode,i=e.parentNode;if(!n||!i||n.isEqualNode(e)||i.isEqualNode(t))return;r=D(t),s=D(e),n.isEqualNode(i)&&r<s&&s++;n.insertBefore(e,n.children[r]),i.insertBefore(t,i.children[s])}(s,se),n.animateAll(),n!==e&&e.animateAll())},nulling:function(){se=null}},i(t,{pluginName:"swap",eventProperties:function(){return{swapItem:se}}})}oe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var s=_(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(e,s):this.sortable.el.appendChild(e),this.sortable.animateAll(),r&&r.animateAll()},drop:ie},i(oe,{pluginName:"revertOnSpill"}),ae.prototype={onSpill:function(t){var e=t.dragEl,r=t.putSortable||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:ie},i(ae,{pluginName:"removeOnSpill"});var le,ue,he,pe,de,fe=[],me=[],ye=!1,ge=!1,ve=!1;function xe(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,r){var s="";fe.length&&ue===t?fe.forEach((function(t,e){s+=(e?", ":"")+t.textContent})):s=r.textContent,e.setData("Text",s)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;he=e},delayEnded:function(){this.isMultiDrag=~fe.indexOf(he)},setupClone:function(t){var e=t.sortable,r=t.cancel;if(this.isMultiDrag){for(var s=0;s<fe.length;s++)me.push(B(fe[s])),me[s].sortableIndex=fe[s].sortableIndex,me[s].draggable=!1,me[s].style["will-change"]="",S(me[s],this.options.selectedClass,!1),fe[s]===he&&S(me[s],this.options.chosenClass,!1);e._hideClone(),r()}},clone:function(t){var e=t.sortable,r=t.rootEl,s=t.dispatchSortableEvent,n=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||fe.length&&ue===e&&(be(!0,r),s("clone"),n()))},showClone:function(t){var e=t.cloneNowShown,r=t.rootEl,s=t.cancel;this.isMultiDrag&&(be(!1,r),me.forEach((function(t){A(t,"display","")})),e(),de=!1,s())},hideClone:function(t){var e=this,r=(t.sortable,t.cloneNowHidden),s=t.cancel;this.isMultiDrag&&(me.forEach((function(t){A(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),r(),de=!0,s())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),fe.forEach((function(t){t.sortableIndex=D(t)})),fe=fe.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),ve=!0},dragStarted:function(t){var e=this,r=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(r.captureAnimationState(),this.options.animation)){fe.forEach((function(t){t!==he&&A(t,"position","absolute")}));var s=N(he,!1,!0,!0);fe.forEach((function(t){t!==he&&U(t,s)})),ge=!0,ye=!0}r.animateAll((function(){ge=!1,ye=!1,e.options.animation&&fe.forEach((function(t){V(t)})),e.options.sort&&we()}))}},dragOver:function(t){var e=t.target,r=t.completed,s=t.cancel;ge&&~fe.indexOf(e)&&(r(!1),s())},revert:function(t){var e=t.fromSortable,r=t.rootEl,s=t.sortable,n=t.dragRect;fe.length>1&&(fe.forEach((function(t){s.addAnimationState({target:t,rect:ge?N(t):n}),V(t),t.fromRect=n,e.removeAnimationState(t)})),ge=!1,function(t,e){fe.forEach((function(r,s){var n=e.children[r.sortableIndex+(t?Number(s):0)];n?e.insertBefore(r,n):e.appendChild(r)}))}(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(t){var e=t.sortable,r=t.isOwner,s=t.insertion,n=t.activeSortable,i=t.parentEl,o=t.putSortable,a=this.options;if(s){if(r&&n._hideClone(),ye=!1,a.animation&&fe.length>1&&(ge||!r&&!n.options.sort&&!o)){var c=N(he,!1,!0,!0);fe.forEach((function(t){t!==he&&(U(t,c),i.appendChild(t))})),ge=!0}if(!r)if(ge||we(),fe.length>1){var l=de;n._showClone(e),n.options.animation&&!de&&l&&me.forEach((function(t){n.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null}))}else n._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,r=t.isOwner,s=t.activeSortable;if(fe.forEach((function(t){t.thisAnimationDuration=null})),s.options.animation&&!r&&s.multiDrag.isMultiDrag){pe=i({},e);var n=E(he,!0);pe.top-=n.f,pe.left-=n.e}},dragOverAnimationComplete:function(){ge&&(ge=!1,we())},drop:function(t){var e=t.originalEvent,r=t.rootEl,s=t.parentEl,n=t.sortable,i=t.dispatchSortableEvent,o=t.oldIndex,a=t.putSortable,c=a||this.sortable;if(e){var l=this.options,u=s.children;if(!ve)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(he,l.selectedClass,!~fe.indexOf(he)),~fe.indexOf(he))fe.splice(fe.indexOf(he),1),le=null,z({sortable:n,rootEl:r,name:"deselect",targetEl:he,originalEvt:e});else{if(fe.push(he),z({sortable:n,rootEl:r,name:"select",targetEl:he,originalEvt:e}),e.shiftKey&&le&&n.el.contains(le)){var h,p,d=D(le),f=D(he);if(~d&&~f&&d!==f)for(f>d?(p=d,h=f):(p=f,h=d+1);p<h;p++)~fe.indexOf(u[p])||(S(u[p],l.selectedClass,!0),fe.push(u[p]),z({sortable:n,rootEl:r,name:"select",targetEl:u[p],originalEvt:e}))}else le=he;ue=c}if(ve&&this.isMultiDrag){if((s[q].options.sort||s!==r)&&fe.length>1){var m=N(he),y=D(he,":not(."+this.options.selectedClass+")");if(!ye&&l.animation&&(he.thisAnimationDuration=null),c.captureAnimationState(),!ye&&(l.animation&&(he.fromRect=m,fe.forEach((function(t){if(t.thisAnimationDuration=null,t!==he){var e=ge?N(t):m;t.fromRect=e,c.addAnimationState({target:t,rect:e})}}))),we(),fe.forEach((function(t){u[y]?s.insertBefore(t,u[y]):s.appendChild(t),y++})),o===D(he))){var g=!1;fe.forEach((function(t){t.sortableIndex===D(t)||(g=!0)})),g&&i("update")}fe.forEach((function(t){V(t)})),c.animateAll()}ue=c}(r===s||a&&"clone"!==a.lastPutMode)&&me.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=ve=!1,me.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==ve&&ve||ue!==this.sortable||t&&w(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;fe.length;){var e=fe[0];S(e,this.options.selectedClass,!1),fe.shift(),z({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[q];e&&e.options.multiDrag&&!~fe.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),S(t,e.options.selectedClass,!0),fe.push(t))},deselect:function(t){var e=t.parentNode[q],r=fe.indexOf(t);e&&e.options.multiDrag&&~r&&(S(t,e.options.selectedClass,!1),fe.splice(r,1))}},eventProperties:function(){var t=this,e=[],r=[];return fe.forEach((function(s){var n;e.push({multiDragElement:s,index:s.sortableIndex}),n=ge&&s!==he?-1:ge?D(s,":not(."+t.options.selectedClass+")"):D(s),r.push({multiDragElement:s,index:n})})),{items:c(fe),clones:[].concat(me),oldIndicies:e,newIndicies:r}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function be(t,e){me.forEach((function(r,s){var n=e.children[r.sortableIndex+(t?Number(s):0)];n?e.insertBefore(r,n):e.appendChild(r)}))}function we(){fe.forEach((function(t){t!==he&&t.parentNode&&t.parentNode.removeChild(t)}))}Ut.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),re(),ee(),clearTimeout(P),P=void 0},nulling:function(){Yt=Wt=zt=te=Qt=Jt=Xt=null,Zt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var r=this,s=(t.touches?t.touches[0]:t).clientX,n=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(s,n);if(Yt=t,e||h||u||d){ne(t,this.options,i,e);var o=L(i,!0);!te||Qt&&s===Jt&&n===Xt||(Qt&&re(),Qt=setInterval((function(){var i=L(document.elementFromPoint(s,n),!0);i!==o&&(o=i,ee()),ne(t,r.options,i,e)}),10),Jt=s,Xt=n)}else{if(!this.options.bubbleScroll||L(i,!0)===C())return void ee();ne(t,this.options,L(i,!1),!1)}}},i(t,{pluginName:"scroll",initializeByDefault:!0})}),Ut.mount(ae,oe);const Pe=Ut},8253:(t,e,r)=>{"use strict";r.r(e),r.d(e,{BaseTransition:()=>s.BaseTransition,Comment:()=>s.Comment,Fragment:()=>s.Fragment,KeepAlive:()=>s.KeepAlive,Static:()=>s.Static,Suspense:()=>s.Suspense,Teleport:()=>s.Teleport,Text:()=>s.Text,Transition:()=>s.Transition,TransitionGroup:()=>s.TransitionGroup,callWithAsyncErrorHandling:()=>s.callWithAsyncErrorHandling,callWithErrorHandling:()=>s.callWithErrorHandling,camelize:()=>s.camelize,capitalize:()=>s.capitalize,cloneVNode:()=>s.cloneVNode,computed:()=>s.computed,createApp:()=>s.createApp,createBlock:()=>s.createBlock,createCommentVNode:()=>s.createCommentVNode,createHydrationRenderer:()=>s.createHydrationRenderer,createRenderer:()=>s.createRenderer,createSSRApp:()=>s.createSSRApp,createSlots:()=>s.createSlots,createStaticVNode:()=>s.createStaticVNode,createTextVNode:()=>s.createTextVNode,createVNode:()=>s.createVNode,customRef:()=>s.customRef,defineAsyncComponent:()=>s.defineAsyncComponent,defineComponent:()=>s.defineComponent,defineEmit:()=>s.defineEmit,defineProps:()=>s.defineProps,devtools:()=>s.devtools,getCurrentInstance:()=>s.getCurrentInstance,getTransitionRawChildren:()=>s.getTransitionRawChildren,h:()=>s.h,handleError:()=>s.handleError,hydrate:()=>s.hydrate,initCustomFormatter:()=>s.initCustomFormatter,inject:()=>s.inject,isProxy:()=>s.isProxy,isReactive:()=>s.isReactive,isReadonly:()=>s.isReadonly,isRef:()=>s.isRef,isVNode:()=>s.isVNode,markRaw:()=>s.markRaw,mergeProps:()=>s.mergeProps,nextTick:()=>s.nextTick,onActivated:()=>s.onActivated,onBeforeMount:()=>s.onBeforeMount,onBeforeUnmount:()=>s.onBeforeUnmount,onBeforeUpdate:()=>s.onBeforeUpdate,onDeactivated:()=>s.onDeactivated,onErrorCaptured:()=>s.onErrorCaptured,onMounted:()=>s.onMounted,onRenderTracked:()=>s.onRenderTracked,onRenderTriggered:()=>s.onRenderTriggered,onUnmounted:()=>s.onUnmounted,onUpdated:()=>s.onUpdated,openBlock:()=>s.openBlock,popScopeId:()=>s.popScopeId,provide:()=>s.provide,proxyRefs:()=>s.proxyRefs,pushScopeId:()=>s.pushScopeId,queuePostFlushCb:()=>s.queuePostFlushCb,reactive:()=>s.reactive,readonly:()=>s.readonly,ref:()=>s.ref,registerRuntimeCompiler:()=>s.registerRuntimeCompiler,render:()=>s.render,renderList:()=>s.renderList,renderSlot:()=>s.renderSlot,resolveComponent:()=>s.resolveComponent,resolveDirective:()=>s.resolveDirective,resolveDynamicComponent:()=>s.resolveDynamicComponent,resolveTransitionHooks:()=>s.resolveTransitionHooks,setBlockTracking:()=>s.setBlockTracking,setDevtoolsHook:()=>s.setDevtoolsHook,setTransitionHooks:()=>s.setTransitionHooks,shallowReactive:()=>s.shallowReactive,shallowReadonly:()=>s.shallowReadonly,shallowRef:()=>s.shallowRef,ssrContextKey:()=>s.ssrContextKey,ssrUtils:()=>s.ssrUtils,toDisplayString:()=>s.toDisplayString,toHandlerKey:()=>s.toHandlerKey,toHandlers:()=>s.toHandlers,toRaw:()=>s.toRaw,toRef:()=>s.toRef,toRefs:()=>s.toRefs,transformVNodeArgs:()=>s.transformVNodeArgs,triggerRef:()=>s.triggerRef,unref:()=>s.unref,useContext:()=>s.useContext,useCssModule:()=>s.useCssModule,useCssVars:()=>s.useCssVars,useSSRContext:()=>s.useSSRContext,useTransitionState:()=>s.useTransitionState,vModelCheckbox:()=>s.vModelCheckbox,vModelDynamic:()=>s.vModelDynamic,vModelRadio:()=>s.vModelRadio,vModelSelect:()=>s.vModelSelect,vModelText:()=>s.vModelText,vShow:()=>s.vShow,version:()=>s.version,warn:()=>s.warn,watch:()=>s.watch,watchEffect:()=>s.watchEffect,withCtx:()=>s.withCtx,withDirectives:()=>s.withDirectives,withKeys:()=>s.withKeys,withModifiers:()=>s.withModifiers,withScopeId:()=>s.withScopeId,compile:()=>c});var s=r(9963),n=r(6252),i=r(3577),o=r(8420);const a=Object.create(null);function c(t,e){if(!(0,i.HD)(t)){if(!t.nodeType)return i.dG;t=t.innerHTML}const r=t,n=a[r];if(n)return n;if("#"===t[0]){const e=document.querySelector(t);0,t=e?e.innerHTML:""}const{code:c}=(0,o.MY)(t,(0,i.l7)({hoistStatic:!0,onError(t){throw t}},e)),l=new Function("Vue",c)(s);return l._rc=!0,a[r]=l}(0,n.Y1)(c)},9980:function(t,e,r){var s;"undefined"!=typeof self&&self,s=function(t,e){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var n=e[s]={i:s,l:!1,exports:{}};return t[s].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(s,n,function(e){return t[e]}.bind(null,n));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"00ee":function(t,e,r){var s={};s[r("b622")("toStringTag")]="z",t.exports="[object z]"===String(s)},"0366":function(t,e,r){var s=r("1c0b");t.exports=function(t,e,r){if(s(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,s){return t.call(e,r,s)};case 3:return function(r,s,n){return t.call(e,r,s,n)}}return function(){return t.apply(e,arguments)}}},"057f":function(t,e,r){var s=r("fc6a"),n=r("241c").f,i={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return o&&"[object Window]"==i.call(t)?function(t){try{return n(t)}catch(t){return o.slice()}}(t):n(s(t))}},"06cf":function(t,e,r){var s=r("83ab"),n=r("d1e7"),i=r("5c6c"),o=r("fc6a"),a=r("c04e"),c=r("5135"),l=r("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=s?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(c(t,e))return i(!n.f.call(t,e),t[e])}},"0cfb":function(t,e,r){var s=r("83ab"),n=r("d039"),i=r("cc12");t.exports=!s&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(t,e,r){"use strict";var s=r("23e7"),n=r("d58f").left,i=r("a640"),o=r("ae40"),a=i("reduce"),c=o("reduce",{1:0});s({target:"Array",proto:!0,forced:!a||!c},{reduce:function(t){return n(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(t,e,r){var s=r("c6b6"),n=r("9263");t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==s(t))throw TypeError("RegExp#exec called on incompatible receiver");return n.call(t,e)}},"159b":function(t,e,r){var s=r("da84"),n=r("fdbc"),i=r("17c2"),o=r("9112");for(var a in n){var c=s[a],l=c&&c.prototype;if(l&&l.forEach!==i)try{o(l,"forEach",i)}catch(t){l.forEach=i}}},"17c2":function(t,e,r){"use strict";var s=r("b727").forEach,n=r("a640"),i=r("ae40"),o=n("forEach"),a=i("forEach");t.exports=o&&a?[].forEach:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}},"1be4":function(t,e,r){var s=r("d066");t.exports=s("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,r){var s=r("b622")("iterator"),n=!1;try{var i=0,o={next:function(){return{done:!!i++}},return:function(){n=!0}};o[s]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!n)return!1;var r=!1;try{var i={};i[s]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},"1d80":function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,r){var s=r("d039"),n=r("b622"),i=r("2d00"),o=n("species");t.exports=function(t){return i>=51||!s((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,r){var s=r("a691"),n=Math.max,i=Math.min;t.exports=function(t,e){var r=s(t);return r<0?n(r+e,0):i(r,e)}},"23e7":function(t,e,r){var s=r("da84"),n=r("06cf").f,i=r("9112"),o=r("6eeb"),a=r("ce4e"),c=r("e893"),l=r("94ca");t.exports=function(t,e){var r,u,h,p,d,f=t.target,m=t.global,y=t.stat;if(r=m?s:y?s[f]||a(f,{}):(s[f]||{}).prototype)for(u in e){if(p=e[u],h=t.noTargetGet?(d=n(r,u))&&d.value:r[u],!l(m?u:f+(y?".":"#")+u,t.forced)&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(t.sham||h&&h.sham)&&i(p,"sham",!0),o(r,u,p,t)}}},"241c":function(t,e,r){var s=r("ca84"),n=r("7839").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return s(t,n)}},"25f0":function(t,e,r){"use strict";var s=r("6eeb"),n=r("825a"),i=r("d039"),o=r("ad6d"),a="toString",c=RegExp.prototype,l=c.toString,u=i((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),h=l.name!=a;(u||h)&&s(RegExp.prototype,a,(function(){var t=n(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in c)?o.call(t):r)}),{unsafe:!0})},"2ca0":function(t,e,r){"use strict";var s,n=r("23e7"),i=r("06cf").f,o=r("50c4"),a=r("5a34"),c=r("1d80"),l=r("ab13"),u=r("c430"),h="".startsWith,p=Math.min,d=l("startsWith");n({target:"String",proto:!0,forced:!(!u&&!d&&(s=i(String.prototype,"startsWith"),s&&!s.writable)||d)},{startsWith:function(t){var e=String(c(this));a(t);var r=o(p(arguments.length>1?arguments[1]:void 0,e.length)),s=String(t);return h?h.call(e,s,r):e.slice(r,r+s.length)===s}})},"2d00":function(t,e,r){var s,n,i=r("da84"),o=r("342f"),a=i.process,c=a&&a.versions,l=c&&c.v8;l?n=(s=l.split("."))[0]+s[1]:o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=s[1]),t.exports=n&&+n},"342f":function(t,e,r){var s=r("d066");t.exports=s("navigator","userAgent")||""},"35a1":function(t,e,r){var s=r("f5df"),n=r("3f8c"),i=r("b622")("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||n[s(t)]}},"37e8":function(t,e,r){var s=r("83ab"),n=r("9bf2"),i=r("825a"),o=r("df75");t.exports=s?Object.defineProperties:function(t,e){i(t);for(var r,s=o(e),a=s.length,c=0;a>c;)n.f(t,r=s[c++],e[r]);return t}},"3bbe":function(t,e,r){var s=r("861d");t.exports=function(t){if(!s(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,r){"use strict";var s=r("6547").charAt,n=r("69f3"),i=r("7dd0"),o="String Iterator",a=n.set,c=n.getterFor(o);i(String,"String",(function(t){a(this,{type:o,string:String(t),index:0})}),(function(){var t,e=c(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=s(r,n),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},4160:function(t,e,r){"use strict";var s=r("23e7"),n=r("17c2");s({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},"428f":function(t,e,r){var s=r("da84");t.exports=s},"44ad":function(t,e,r){var s=r("d039"),n=r("c6b6"),i="".split;t.exports=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==n(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,r){var s=r("b622"),n=r("7c73"),i=r("9bf2"),o=s("unscopables"),a=Array.prototype;null==a[o]&&i.f(a,o,{configurable:!0,value:n(null)}),t.exports=function(t){a[o][t]=!0}},"44e7":function(t,e,r){var s=r("861d"),n=r("c6b6"),i=r("b622")("match");t.exports=function(t){var e;return s(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==n(t))}},4930:function(t,e,r){var s=r("d039");t.exports=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())}))},"4d64":function(t,e,r){var s=r("fc6a"),n=r("50c4"),i=r("23cb"),o=function(t){return function(e,r,o){var a,c=s(e),l=n(c.length),u=i(o,l);if(t&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===r)return t||u||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(t,e,r){"use strict";var s=r("23e7"),n=r("b727").filter,i=r("1dde"),o=r("ae40"),a=i("filter"),c=o("filter");s({target:"Array",proto:!0,forced:!a||!c},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,r){"use strict";var s=r("0366"),n=r("7b0b"),i=r("9bdd"),o=r("e95a"),a=r("50c4"),c=r("8418"),l=r("35a1");t.exports=function(t){var e,r,u,h,p,d,f=n(t),m="function"==typeof this?this:Array,y=arguments.length,g=y>1?arguments[1]:void 0,v=void 0!==g,x=l(f),b=0;if(v&&(g=s(g,y>2?arguments[2]:void 0,2)),null==x||m==Array&&o(x))for(r=new m(e=a(f.length));e>b;b++)d=v?g(f[b],b):f[b],c(r,b,d);else for(p=(h=x.call(f)).next,r=new m;!(u=p.call(h)).done;b++)d=v?i(h,g,[u.value,b],!0):u.value,c(r,b,d);return r.length=b,r}},"4fad":function(t,e,r){var s=r("23e7"),n=r("6f53").entries;s({target:"Object",stat:!0},{entries:function(t){return n(t)}})},"50c4":function(t,e,r){var s=r("a691"),n=Math.min;t.exports=function(t){return t>0?n(s(t),9007199254740991):0}},5135:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},5319:function(t,e,r){"use strict";var s=r("d784"),n=r("825a"),i=r("7b0b"),o=r("50c4"),a=r("a691"),c=r("1d80"),l=r("8aa5"),u=r("14c3"),h=Math.max,p=Math.min,d=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;s("replace",2,(function(t,e,r,s){var y=s.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=s.REPLACE_KEEPS_$0,v=y?"$":"$0";return[function(r,s){var n=c(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,n,s):e.call(String(n),r,s)},function(t,s){if(!y&&g||"string"==typeof s&&-1===s.indexOf(v)){var i=r(e,t,this,s);if(i.done)return i.value}var c=n(t),d=String(this),f="function"==typeof s;f||(s=String(s));var m=c.global;if(m){var b=c.unicode;c.lastIndex=0}for(var w=[];;){var P=u(c,d);if(null===P)break;if(w.push(P),!m)break;""===String(P[0])&&(c.lastIndex=l(d,o(c.lastIndex),b))}for(var T,S="",A=0,E=0;E<w.length;E++){P=w[E];for(var k=String(P[0]),C=h(p(a(P.index),d.length),0),N=[],I=1;I<P.length;I++)N.push(void 0===(T=P[I])?T:String(T));var _=P.groups;if(f){var O=[k].concat(N,C,d);void 0!==_&&O.push(_);var D=String(s.apply(void 0,O))}else D=x(k,d,C,N,_,s);C>=A&&(S+=d.slice(A,C)+D,A=C+k.length)}return S+d.slice(A)}];function x(t,r,s,n,o,a){var c=s+t.length,l=n.length,u=m;return void 0!==o&&(o=i(o),u=f),e.call(a,u,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,s);case"'":return r.slice(c);case"<":a=o[i.slice(1,-1)];break;default:var u=+i;if(0===u)return e;if(u>l){var h=d(u/10);return 0===h?e:h<=l?void 0===n[h-1]?i.charAt(1):n[h-1]+i.charAt(1):e}a=n[u-1]}return void 0===a?"":a}))}}))},5692:function(t,e,r){var s=r("c430"),n=r("c6cd");(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,r){var s=r("d066"),n=r("241c"),i=r("7418"),o=r("825a");t.exports=s("Reflect","ownKeys")||function(t){var e=n.f(o(t)),r=i.f;return r?e.concat(r(t)):e}},"5a34":function(t,e,r){var s=r("44e7");t.exports=function(t){if(s(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5db7":function(t,e,r){"use strict";var s=r("23e7"),n=r("a2bf"),i=r("7b0b"),o=r("50c4"),a=r("1c0b"),c=r("65f0");s({target:"Array",proto:!0},{flatMap:function(t){var e,r=i(this),s=o(r.length);return a(t),(e=c(r,0)).length=n(e,r,r,s,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},6547:function(t,e,r){var s=r("a691"),n=r("1d80"),i=function(t){return function(e,r){var i,o,a=String(n(e)),c=s(r),l=a.length;return c<0||c>=l?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?t?a.charAt(c):i:t?a.slice(c,c+2):o-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(t,e,r){var s=r("861d"),n=r("e8b5"),i=r("b622")("species");t.exports=function(t,e){var r;return n(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!n(r.prototype)?s(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},"69f3":function(t,e,r){var s,n,i,o=r("7f9a"),a=r("da84"),c=r("861d"),l=r("9112"),u=r("5135"),h=r("f772"),p=r("d012"),d=a.WeakMap;if(o){var f=new d,m=f.get,y=f.has,g=f.set;s=function(t,e){return g.call(f,t,e),e},n=function(t){return m.call(f,t)||{}},i=function(t){return y.call(f,t)}}else{var v=h("state");p[v]=!0,s=function(t,e){return l(t,v,e),e},n=function(t){return u(t,v)?t[v]:{}},i=function(t){return u(t,v)}}t.exports={set:s,get:n,has:i,enforce:function(t){return i(t)?n(t):s(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=n(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},"6eeb":function(t,e,r){var s=r("da84"),n=r("9112"),i=r("5135"),o=r("ce4e"),a=r("8925"),c=r("69f3"),l=c.get,u=c.enforce,h=String(String).split("String");(t.exports=function(t,e,r,a){var c=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,p=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||n(r,"name",e),u(r).source=h.join("string"==typeof e?e:"")),t!==s?(c?!p&&t[e]&&(l=!0):delete t[e],l?t[e]=r:n(t,e,r)):l?t[e]=r:o(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},"6f53":function(t,e,r){var s=r("83ab"),n=r("df75"),i=r("fc6a"),o=r("d1e7").f,a=function(t){return function(e){for(var r,a=i(e),c=n(a),l=c.length,u=0,h=[];l>u;)r=c[u++],s&&!o.call(a,r)||h.push(t?[r,a[r]]:a[r]);return h}};t.exports={entries:a(!0),values:a(!1)}},"73d9":function(t,e,r){r("44d2")("flatMap")},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,r){var s=r("428f"),n=r("5135"),i=r("e538"),o=r("9bf2").f;t.exports=function(t){var e=s.Symbol||(s.Symbol={});n(e,t)||o(e,t,{value:i.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,r){var s=r("1d80");t.exports=function(t){return Object(s(t))}},"7c73":function(t,e,r){var s,n=r("825a"),i=r("37e8"),o=r("7839"),a=r("d012"),c=r("1be4"),l=r("cc12"),u=r("f772"),h=u("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},f=function(){try{s=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;f=s?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(s):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var r=o.length;r--;)delete f.prototype[o[r]];return f()};a[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p.prototype=n(t),r=new p,p.prototype=null,r[h]=t):r=f(),void 0===e?r:i(r,e)}},"7dd0":function(t,e,r){"use strict";var s=r("23e7"),n=r("9ed3"),i=r("e163"),o=r("d2bb"),a=r("d44e"),c=r("9112"),l=r("6eeb"),u=r("b622"),h=r("c430"),p=r("3f8c"),d=r("ae93"),f=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,y=u("iterator"),g="keys",v="values",x="entries",b=function(){return this};t.exports=function(t,e,r,u,d,w,P){n(r,e,u);var T,S,A,E=function(t){if(t===d&&_)return _;if(!m&&t in N)return N[t];switch(t){case g:case v:case x:return function(){return new r(this,t)}}return function(){return new r(this)}},k=e+" Iterator",C=!1,N=t.prototype,I=N[y]||N["@@iterator"]||d&&N[d],_=!m&&I||E(d),O="Array"==e&&N.entries||I;if(O&&(T=i(O.call(new t)),f!==Object.prototype&&T.next&&(h||i(T)===f||(o?o(T,f):"function"!=typeof T[y]&&c(T,y,b)),a(T,k,!0,!0),h&&(p[k]=b))),d==v&&I&&I.name!==v&&(C=!0,_=function(){return I.call(this)}),h&&!P||N[y]===_||c(N,y,_),p[e]=_,d)if(S={values:E(v),keys:w?_:E(g),entries:E(x)},P)for(A in S)(m||C||!(A in N))&&l(N,A,S[A]);else s({target:e,proto:!0,forced:m||C},S);return S}},"7f9a":function(t,e,r){var s=r("da84"),n=r("8925"),i=s.WeakMap;t.exports="function"==typeof i&&/native code/.test(n(i))},"825a":function(t,e,r){var s=r("861d");t.exports=function(t){if(!s(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,r){var s=r("d039");t.exports=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,r){"use strict";var s=r("c04e"),n=r("9bf2"),i=r("5c6c");t.exports=function(t,e,r){var o=s(e);o in t?n.f(t,o,i(0,r)):t[o]=r}},"861d":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},8875:function(t,e,r){var s,n,i;"undefined"!=typeof self&&self,n=[],void 0===(i="function"==typeof(s=function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var r,s,n,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||i.exec(t.stack),a=o&&o[1]||!1,c=o&&o[2]||!1,l=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");a===l&&(r=document.documentElement.outerHTML,s=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=r.replace(s,"$1").trim());for(var h=0;h<u.length;h++){if("interactive"===u[h].readyState)return u[h];if(u[h].src===a)return u[h];if(a===l&&u[h].innerHTML&&u[h].innerHTML.trim()===n)return u[h]}return null}}return t})?s.apply(e,n):s)||(t.exports=i)},8925:function(t,e,r){var s=r("c6cd"),n=Function.toString;"function"!=typeof s.inspectSource&&(s.inspectSource=function(t){return n.call(t)}),t.exports=s.inspectSource},"8aa5":function(t,e,r){"use strict";var s=r("6547").charAt;t.exports=function(t,e,r){return e+(r?s(t,e).length:1)}},"8bbf":function(e,r){e.exports=t},"90e3":function(t,e){var r=0,s=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+s).toString(36)}},9112:function(t,e,r){var s=r("83ab"),n=r("9bf2"),i=r("5c6c");t.exports=s?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9263:function(t,e,r){"use strict";var s,n,i=r("ad6d"),o=r("9f7f"),a=RegExp.prototype.exec,c=String.prototype.replace,l=a,u=(s=/a/,n=/b*/g,a.call(s,"a"),a.call(n,"a"),0!==s.lastIndex||0!==n.lastIndex),h=o.UNSUPPORTED_Y||o.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(u||p||h)&&(l=function(t){var e,r,s,n,o=this,l=h&&o.sticky,d=i.call(o),f=o.source,m=0,y=t;return l&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),y=String(t).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(f="(?: "+f+")",y=" "+y,m++),r=new RegExp("^(?:"+f+")",d)),p&&(r=new RegExp("^"+f+"$(?!\\s)",d)),u&&(e=o.lastIndex),s=a.call(l?r:o,y),l?s?(s.input=s.input.slice(m),s[0]=s[0].slice(m),s.index=o.lastIndex,o.lastIndex+=s[0].length):o.lastIndex=0:u&&s&&(o.lastIndex=o.global?s.index+s[0].length:e),p&&s&&s.length>1&&c.call(s[0],r,(function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(s[n]=void 0)})),s}),t.exports=l},"94ca":function(t,e,r){var s=r("d039"),n=/#|\.prototype\./,i=function(t,e){var r=a[o(t)];return r==l||r!=c&&("function"==typeof e?s(e):!!e)},o=i.normalize=function(t){return String(t).replace(n,".").toLowerCase()},a=i.data={},c=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},"99af":function(t,e,r){"use strict";var s=r("23e7"),n=r("d039"),i=r("e8b5"),o=r("861d"),a=r("7b0b"),c=r("50c4"),l=r("8418"),u=r("65f0"),h=r("1dde"),p=r("b622"),d=r("2d00"),f=p("isConcatSpreadable"),m=9007199254740991,y="Maximum allowed index exceeded",g=d>=51||!n((function(){var t=[];return t[f]=!1,t.concat()[0]!==t})),v=h("concat"),x=function(t){if(!o(t))return!1;var e=t[f];return void 0!==e?!!e:i(t)};s({target:"Array",proto:!0,forced:!g||!v},{concat:function(t){var e,r,s,n,i,o=a(this),h=u(o,0),p=0;for(e=-1,s=arguments.length;e<s;e++)if(x(i=-1===e?o:arguments[e])){if(p+(n=c(i.length))>m)throw TypeError(y);for(r=0;r<n;r++,p++)r in i&&l(h,p,i[r])}else{if(p>=m)throw TypeError(y);l(h,p++,i)}return h.length=p,h}})},"9bdd":function(t,e,r){var s=r("825a");t.exports=function(t,e,r,n){try{return n?e(s(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&s(i.call(t)),e}}},"9bf2":function(t,e,r){var s=r("83ab"),n=r("0cfb"),i=r("825a"),o=r("c04e"),a=Object.defineProperty;e.f=s?a:function(t,e,r){if(i(t),e=o(e,!0),i(r),n)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},"9ed3":function(t,e,r){"use strict";var s=r("ae93").IteratorPrototype,n=r("7c73"),i=r("5c6c"),o=r("d44e"),a=r("3f8c"),c=function(){return this};t.exports=function(t,e,r){var l=e+" Iterator";return t.prototype=n(s,{next:i(1,r)}),o(t,l,!1,!0),a[l]=c,t}},"9f7f":function(t,e,r){"use strict";var s=r("d039");function n(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=s((function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=s((function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a2bf:function(t,e,r){"use strict";var s=r("e8b5"),n=r("50c4"),i=r("0366"),o=function(t,e,r,a,c,l,u,h){for(var p,d=c,f=0,m=!!u&&i(u,h,3);f<a;){if(f in r){if(p=m?m(r[f],f,e):r[f],l>0&&s(p))d=o(t,e,p,n(p.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[d]=p}d++}f++}return d};t.exports=o},a352:function(t,r){t.exports=e},a434:function(t,e,r){"use strict";var s=r("23e7"),n=r("23cb"),i=r("a691"),o=r("50c4"),a=r("7b0b"),c=r("65f0"),l=r("8418"),u=r("1dde"),h=r("ae40"),p=u("splice"),d=h("splice",{ACCESSORS:!0,0:0,1:2}),f=Math.max,m=Math.min,y=9007199254740991,g="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!p||!d},{splice:function(t,e){var r,s,u,h,p,d,v=a(this),x=o(v.length),b=n(t,x),w=arguments.length;if(0===w?r=s=0:1===w?(r=0,s=x-b):(r=w-2,s=m(f(i(e),0),x-b)),x+r-s>y)throw TypeError(g);for(u=c(v,s),h=0;h<s;h++)(p=b+h)in v&&l(u,h,v[p]);if(u.length=s,r<s){for(h=b;h<x-s;h++)d=h+r,(p=h+s)in v?v[d]=v[p]:delete v[d];for(h=x;h>x-s+r;h--)delete v[h-1]}else if(r>s)for(h=x-s;h>b;h--)d=h+r-1,(p=h+s-1)in v?v[d]=v[p]:delete v[d];for(h=0;h<r;h++)v[h+b]=arguments[h+2];return v.length=x-s+r,u}})},a4d3:function(t,e,r){"use strict";var s=r("23e7"),n=r("da84"),i=r("d066"),o=r("c430"),a=r("83ab"),c=r("4930"),l=r("fdbf"),u=r("d039"),h=r("5135"),p=r("e8b5"),d=r("861d"),f=r("825a"),m=r("7b0b"),y=r("fc6a"),g=r("c04e"),v=r("5c6c"),x=r("7c73"),b=r("df75"),w=r("241c"),P=r("057f"),T=r("7418"),S=r("06cf"),A=r("9bf2"),E=r("d1e7"),k=r("9112"),C=r("6eeb"),N=r("5692"),I=r("f772"),_=r("d012"),O=r("90e3"),D=r("b622"),M=r("e538"),L=r("746f"),R=r("d44e"),j=r("69f3"),F=r("b727").forEach,B=I("hidden"),U="Symbol",V=D("toPrimitive"),q=j.set,H=j.getterFor(U),$=Object.prototype,G=n.Symbol,K=i("JSON","stringify"),z=S.f,W=A.f,J=P.f,X=E.f,Y=N("symbols"),Q=N("op-symbols"),Z=N("string-to-symbol-registry"),tt=N("symbol-to-string-registry"),et=N("wks"),rt=n.QObject,st=!rt||!rt.prototype||!rt.prototype.findChild,nt=a&&u((function(){return 7!=x(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(t,e,r){var s=z($,e);s&&delete $[e],W(t,e,r),s&&t!==$&&W($,e,s)}:W,it=function(t,e){var r=Y[t]=x(G.prototype);return q(r,{type:U,tag:t,description:e}),a||(r.description=e),r},ot=l?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof G},at=function(t,e,r){t===$&&at(Q,e,r),f(t);var s=g(e,!0);return f(r),h(Y,s)?(r.enumerable?(h(t,B)&&t[B][s]&&(t[B][s]=!1),r=x(r,{enumerable:v(0,!1)})):(h(t,B)||W(t,B,v(1,{})),t[B][s]=!0),nt(t,s,r)):W(t,s,r)},ct=function(t,e){f(t);var r=y(e),s=b(r).concat(pt(r));return F(s,(function(e){a&&!lt.call(r,e)||at(t,e,r[e])})),t},lt=function(t){var e=g(t,!0),r=X.call(this,e);return!(this===$&&h(Y,e)&&!h(Q,e))&&(!(r||!h(this,e)||!h(Y,e)||h(this,B)&&this[B][e])||r)},ut=function(t,e){var r=y(t),s=g(e,!0);if(r!==$||!h(Y,s)||h(Q,s)){var n=z(r,s);return!n||!h(Y,s)||h(r,B)&&r[B][s]||(n.enumerable=!0),n}},ht=function(t){var e=J(y(t)),r=[];return F(e,(function(t){h(Y,t)||h(_,t)||r.push(t)})),r},pt=function(t){var e=t===$,r=J(e?Q:y(t)),s=[];return F(r,(function(t){!h(Y,t)||e&&!h($,t)||s.push(Y[t])})),s};c||(C((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=O(t),r=function(t){this===$&&r.call(Q,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),nt(this,e,v(1,t))};return a&&st&&nt($,e,{configurable:!0,set:r}),it(e,t)}).prototype,"toString",(function(){return H(this).tag})),C(G,"withoutSetter",(function(t){return it(O(t),t)})),E.f=lt,A.f=at,S.f=ut,w.f=P.f=ht,T.f=pt,M.f=function(t){return it(D(t),t)},a&&(W(G.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),o||C($,"propertyIsEnumerable",lt,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),F(b(et),(function(t){L(t)})),s({target:U,stat:!0,forced:!c},{for:function(t){var e=String(t);if(h(Z,e))return Z[e];var r=G(e);return Z[e]=r,tt[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(h(tt,t))return tt[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),s({target:"Object",stat:!0,forced:!c,sham:!a},{create:function(t,e){return void 0===e?x(t):ct(x(t),e)},defineProperty:at,defineProperties:ct,getOwnPropertyDescriptor:ut}),s({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ht,getOwnPropertySymbols:pt}),s({target:"Object",stat:!0,forced:u((function(){T.f(1)}))},{getOwnPropertySymbols:function(t){return T.f(m(t))}}),K&&s({target:"JSON",stat:!0,forced:!c||u((function(){var t=G();return"[null]"!=K([t])||"{}"!=K({a:t})||"{}"!=K(Object(t))}))},{stringify:function(t,e,r){for(var s,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(s=e,(d(e)||void 0!==t)&&!ot(t))return p(e)||(e=function(t,e){if("function"==typeof s&&(e=s.call(this,t,e)),!ot(e))return e}),n[1]=e,K.apply(null,n)}}),G.prototype[V]||k(G.prototype,V,G.prototype.valueOf),R(G,U),_[B]=!0},a630:function(t,e,r){var s=r("23e7"),n=r("4df4");s({target:"Array",stat:!0,forced:!r("1c7e")((function(t){Array.from(t)}))},{from:n})},a640:function(t,e,r){"use strict";var s=r("d039");t.exports=function(t,e){var r=[][t];return!!r&&s((function(){r.call(null,e||function(){throw 1},1)}))}},a691:function(t,e){var r=Math.ceil,s=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?s:r)(t)}},ab13:function(t,e,r){var s=r("b622")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[s]=!1,"/./"[t](e)}catch(t){}}return!1}},ac1f:function(t,e,r){"use strict";var s=r("23e7"),n=r("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},ad6d:function(t,e,r){"use strict";var s=r("825a");t.exports=function(){var t=s(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ae40:function(t,e,r){var s=r("83ab"),n=r("d039"),i=r("5135"),o=Object.defineProperty,a={},c=function(t){throw t};t.exports=function(t,e){if(i(a,t))return a[t];e||(e={});var r=[][t],l=!!i(e,"ACCESSORS")&&e.ACCESSORS,u=i(e,0)?e[0]:c,h=i(e,1)?e[1]:void 0;return a[t]=!!r&&!n((function(){if(l&&!s)return!0;var t={length:-1};l?o(t,1,{enumerable:!0,get:c}):t[1]=1,r.call(t,u,h)}))}},ae93:function(t,e,r){"use strict";var s,n,i,o=r("e163"),a=r("9112"),c=r("5135"),l=r("b622"),u=r("c430"),h=l("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(n=o(o(i)))!==Object.prototype&&(s=n):p=!0),null==s&&(s={}),u||c(s,h)||a(s,h,(function(){return this})),t.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:p}},b041:function(t,e,r){"use strict";var s=r("00ee"),n=r("f5df");t.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},b0c0:function(t,e,r){var s=r("83ab"),n=r("9bf2").f,i=Function.prototype,o=i.toString,a=/^\s*function ([^ (]*)/,c="name";s&&!(c in i)&&n(i,c,{configurable:!0,get:function(){try{return o.call(this).match(a)[1]}catch(t){return""}}})},b622:function(t,e,r){var s=r("da84"),n=r("5692"),i=r("5135"),o=r("90e3"),a=r("4930"),c=r("fdbf"),l=n("wks"),u=s.Symbol,h=c?u:u&&u.withoutSetter||o;t.exports=function(t){return i(l,t)||(a&&i(u,t)?l[t]=u[t]:l[t]=h("Symbol."+t)),l[t]}},b64b:function(t,e,r){var s=r("23e7"),n=r("7b0b"),i=r("df75");s({target:"Object",stat:!0,forced:r("d039")((function(){i(1)}))},{keys:function(t){return i(n(t))}})},b727:function(t,e,r){var s=r("0366"),n=r("44ad"),i=r("7b0b"),o=r("50c4"),a=r("65f0"),c=[].push,l=function(t){var e=1==t,r=2==t,l=3==t,u=4==t,h=6==t,p=5==t||h;return function(d,f,m,y){for(var g,v,x=i(d),b=n(x),w=s(f,m,3),P=o(b.length),T=0,S=y||a,A=e?S(d,P):r?S(d,0):void 0;P>T;T++)if((p||T in b)&&(v=w(g=b[T],T,x),t))if(e)A[T]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return T;case 2:c.call(A,g)}else if(u)return!1;return h?-1:l||u?u:A}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},c04e:function(t,e,r){var s=r("861d");t.exports=function(t,e){if(!s(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!s(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!s(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!s(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},c6cd:function(t,e,r){var s=r("da84"),n=r("ce4e"),i="__core-js_shared__",o=s[i]||n(i,{});t.exports=o},c740:function(t,e,r){"use strict";var s=r("23e7"),n=r("b727").findIndex,i=r("44d2"),o=r("ae40"),a="findIndex",c=!0,l=o(a);a in[]&&Array(1).findIndex((function(){c=!1})),s({target:"Array",proto:!0,forced:c||!l},{findIndex:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},c975:function(t,e,r){"use strict";var s=r("23e7"),n=r("4d64").indexOf,i=r("a640"),o=r("ae40"),a=[].indexOf,c=!!a&&1/[1].indexOf(1,-0)<0,l=i("indexOf"),u=o("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:c||!l||!u},{indexOf:function(t){return c?a.apply(this,arguments)||0:n(this,t,arguments.length>1?arguments[1]:void 0)}})},ca84:function(t,e,r){var s=r("5135"),n=r("fc6a"),i=r("4d64").indexOf,o=r("d012");t.exports=function(t,e){var r,a=n(t),c=0,l=[];for(r in a)!s(o,r)&&s(a,r)&&l.push(r);for(;e.length>c;)s(a,r=e[c++])&&(~i(l,r)||l.push(r));return l}},caad:function(t,e,r){"use strict";var s=r("23e7"),n=r("4d64").includes,i=r("44d2");s({target:"Array",proto:!0,forced:!r("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(t,e,r){var s=r("da84"),n=r("861d"),i=s.document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},ce4e:function(t,e,r){var s=r("da84"),n=r("9112");t.exports=function(t,e){try{n(s,t,e)}catch(r){s[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},d066:function(t,e,r){var s=r("428f"),n=r("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(s[t])||i(n[t]):s[t]&&s[t][e]||n[t]&&n[t][e]}},d1e7:function(t,e,r){"use strict";var s={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!s.call({1:2},1);e.f=i?function(t){var e=n(this,t);return!!e&&e.enumerable}:s},d28b:function(t,e,r){r("746f")("iterator")},d2bb:function(t,e,r){var s=r("825a"),n=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return s(r),n(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},d3b7:function(t,e,r){var s=r("00ee"),n=r("6eeb"),i=r("b041");s||n(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(t,e,r){var s=r("9bf2").f,n=r("5135"),i=r("b622")("toStringTag");t.exports=function(t,e,r){t&&!n(t=r?t:t.prototype,i)&&s(t,i,{configurable:!0,value:e})}},d58f:function(t,e,r){var s=r("1c0b"),n=r("7b0b"),i=r("44ad"),o=r("50c4"),a=function(t){return function(e,r,a,c){s(r);var l=n(e),u=i(l),h=o(l.length),p=t?h-1:0,d=t?-1:1;if(a<2)for(;;){if(p in u){c=u[p],p+=d;break}if(p+=d,t?p<0:h<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:h>p;p+=d)p in u&&(c=r(c,u[p],p,l));return c}};t.exports={left:a(!1),right:a(!0)}},d784:function(t,e,r){"use strict";r("ac1f");var s=r("6eeb"),n=r("d039"),i=r("b622"),o=r("9263"),a=r("9112"),c=i("species"),l=!n((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),u="$0"==="a".replace(/./,"$0"),h=i("replace"),p=!!/./[h]&&""===/./[h]("a","$0"),d=!n((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,h){var f=i(t),m=!n((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),y=m&&!n((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!m||!y||"replace"===t&&(!l||!u||p)||"split"===t&&!d){var g=/./[f],v=r(f,""[t],(function(t,e,r,s,n){return e.exec===o?m&&!n?{done:!0,value:g.call(e,r,s)}:{done:!0,value:t.call(r,e,s)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),x=v[0],b=v[1];s(String.prototype,t,x),s(RegExp.prototype,f,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}h&&a(RegExp.prototype[f],"sham",!0)}},d81d:function(t,e,r){"use strict";var s=r("23e7"),n=r("b727").map,i=r("1dde"),o=r("ae40"),a=i("map"),c=o("map");s({target:"Array",proto:!0,forced:!a||!c},{map:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},da84:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r("c8ba"))},dbb4:function(t,e,r){var s=r("23e7"),n=r("83ab"),i=r("56ef"),o=r("fc6a"),a=r("06cf"),c=r("8418");s({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(t){for(var e,r,s=o(t),n=a.f,l=i(s),u={},h=0;l.length>h;)void 0!==(r=n(s,e=l[h++]))&&c(u,e,r);return u}})},dbf1:function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return s}));var s="undefined"!=typeof window?window.console:t.console}).call(this,r("c8ba"))},ddb0:function(t,e,r){var s=r("da84"),n=r("fdbc"),i=r("e260"),o=r("9112"),a=r("b622"),c=a("iterator"),l=a("toStringTag"),u=i.values;for(var h in n){var p=s[h],d=p&&p.prototype;if(d){if(d[c]!==u)try{o(d,c,u)}catch(t){d[c]=u}if(d[l]||o(d,l,h),n[h])for(var f in i)if(d[f]!==i[f])try{o(d,f,i[f])}catch(t){d[f]=i[f]}}}},df75:function(t,e,r){var s=r("ca84"),n=r("7839");t.exports=Object.keys||function(t){return s(t,n)}},e01a:function(t,e,r){"use strict";var s=r("23e7"),n=r("83ab"),i=r("da84"),o=r("5135"),a=r("861d"),c=r("9bf2").f,l=r("e893"),u=i.Symbol;if(n&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var h={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new u(t):void 0===t?u():u(t);return""===t&&(h[e]=!0),e};l(p,u);var d=p.prototype=u.prototype;d.constructor=p;var f=d.toString,m="Symbol(test)"==String(u("test")),y=/^Symbol\((.*)\)[^)]+$/;c(d,"description",{configurable:!0,get:function(){var t=a(this)?this.valueOf():this,e=f.call(t);if(o(h,t))return"";var r=m?e.slice(7,-1):e.replace(y,"$1");return""===r?void 0:r}}),s({global:!0,forced:!0},{Symbol:p})}},e163:function(t,e,r){var s=r("5135"),n=r("7b0b"),i=r("f772"),o=r("e177"),a=i("IE_PROTO"),c=Object.prototype;t.exports=o?Object.getPrototypeOf:function(t){return t=n(t),s(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},e177:function(t,e,r){var s=r("d039");t.exports=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,r){"use strict";var s=r("fc6a"),n=r("44d2"),i=r("3f8c"),o=r("69f3"),a=r("7dd0"),c="Array Iterator",l=o.set,u=o.getterFor(c);t.exports=a(Array,"Array",(function(t,e){l(this,{type:c,target:s(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,r=t.kind,s=t.index++;return!e||s>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:s,done:!1}:"values"==r?{value:e[s],done:!1}:{value:[s,e[s]],done:!1}}),"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},e439:function(t,e,r){var s=r("23e7"),n=r("d039"),i=r("fc6a"),o=r("06cf").f,a=r("83ab"),c=n((function(){o(1)}));s({target:"Object",stat:!0,forced:!a||c,sham:!a},{getOwnPropertyDescriptor:function(t,e){return o(i(t),e)}})},e538:function(t,e,r){var s=r("b622");e.f=s},e893:function(t,e,r){var s=r("5135"),n=r("56ef"),i=r("06cf"),o=r("9bf2");t.exports=function(t,e){for(var r=n(e),a=o.f,c=i.f,l=0;l<r.length;l++){var u=r[l];s(t,u)||a(t,u,c(e,u))}}},e8b5:function(t,e,r){var s=r("c6b6");t.exports=Array.isArray||function(t){return"Array"==s(t)}},e95a:function(t,e,r){var s=r("b622"),n=r("3f8c"),i=s("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},f5df:function(t,e,r){var s=r("00ee"),n=r("c6b6"),i=r("b622")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=s?n:function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},f772:function(t,e,r){var s=r("5692"),n=r("90e3"),i=s("keys");t.exports=function(t){return i[t]||(i[t]=n(t))}},fb15:function(t,e,r){"use strict";if(r.r(e),"undefined"!=typeof window){var s=window.document.currentScript,n=r("8875");s=n(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:n});var i=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}function u(t,e){if(t){if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(t,e):void 0}}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],s=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(s=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){n=!0,i=t}finally{try{s||null==a.return||a.return()}finally{if(n)throw i}}return r}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r("99af"),r("4de4"),r("4160"),r("c975"),r("d81d"),r("a434"),r("159b"),r("a4d3"),r("e439"),r("dbb4"),r("b64b"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0"),r("a630"),r("fb6a"),r("b0c0"),r("25f0");var d=r("a352"),f=r.n(d);function m(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function y(t,e,r){var s=0===r?t.children[0]:t.children[r-1].nextSibling;t.insertBefore(e,s)}var g=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");var v,x,b=/-(\w)/g,w=(v=function(t){return t.replace(b,(function(t,e){return e.toUpperCase()}))},x=Object.create(null),function(t){return x[t]||(x[t]=v(t))}),P=(r("5db7"),r("73d9"),["Start","Add","Remove","Update","End"]),T=["Choose","Unchoose","Sort","Filter","Clone"],S=["Move"],A=[S,P,T].flatMap((function(t){return t})).map((function(t){return"on".concat(t)})),E={manage:S,manageAndEmit:P,emit:T};r("caad"),r("2ca0");var k=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function C(t){return["id","class"].includes(t)||t.startsWith("data-")}function N(t){return t.reduce((function(t,e){var r=h(e,2),s=r[0],n=r[1];return t[s]=n,t}),{})}function I(t){return Object.entries(t).filter((function(t){var e=h(t,2),r=e[0];return e[1],!C(r)})).map((function(t){var e=h(t,2),r=e[0],s=e[1];return[w(r),s]})).filter((function(t){var e,r=h(t,2),s=r[0];return r[1],e=s,!(-1!==A.indexOf(e))}))}function _(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}r("c740");var O=function(t){return t.el},D=function(t){return t.__draggable_context},M=function(){function t(e){var r=e.nodes,s=r.header,n=r.default,i=r.footer,o=e.root,a=e.realList;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.defaultNodes=n,this.children=[].concat(p(s),p(n),p(i)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=a}var e,r,s;return e=t,(r=[{key:"render",value:function(t,e){var r=this.tag,s=this.children;return t(r,e,this._isRootComponent?{default:function(){return s}}:s)}},{key:"updated",value:function(){var t=this.defaultNodes,e=this.realList;t.forEach((function(t,r){var s,n;s=O(t),n={element:e[r],index:r},s.__draggable_context=n}))}},{key:"getUnderlyingVm",value:function(t){return D(t)}},{key:"getVmIndexFromDomIndex",value:function(t,e){var r=this.defaultNodes,s=r.length,n=e.children,i=n.item(t);if(null===i)return s;var o=D(i);if(o)return o.index;if(0===s)return 0;var a=O(r[0]);return t<p(n).findIndex((function(t){return t===a}))?0:s}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}])&&_(e.prototype,r),s&&_(e,s),t}(),L=r("8bbf");function R(t){var e=["transition-group","TransitionGroup"].includes(t),r=!function(t){return k.includes(t)}(t)&&!e;return{transition:e,externalComponent:r,tag:r?Object(L.resolveComponent)(t):e?L.TransitionGroup:t}}function j(t){var e=t.$slots,r=t.tag,s=t.realList,n=function(t){var e=t.$slots,r=t.realList,s=t.getKey,n=r||[],i=h(["header","footer"].map((function(t){return(r=e[t])?r():[];var r})),2),o=i[0],a=i[1],l=e.item;if(!l)throw new Error("draggable element must have an item slot");var u=n.flatMap((function(t,e){return l({element:t,index:e}).map((function(e){return e.key=s(t),e.props=c(c({},e.props||{}),{},{"data-draggable":!0}),e}))}));if(u.length!==n.length)throw new Error("Item slot must have only one child");return{header:o,footer:a,default:u}}({$slots:e,realList:s,getKey:t.getKey}),i=R(r);return new M({nodes:n,root:i,realList:s})}function F(t,e){var r=this;Object(L.nextTick)((function(){return r.$emit(t.toLowerCase(),e)}))}function B(t){var e=this;return function(r,s){if(null!==e.realList)return e["onDrag".concat(t)](r,s)}}function U(t){var e=this,r=B.call(this,t);return function(s,n){r.call(e,s,n),F.call(e,t,s)}}var V=null,q={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(t){return t}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},H=["update:modelValue","change"].concat(p([].concat(p(E.manageAndEmit),p(E.emit)).map((function(t){return t.toLowerCase()})))),$=Object(L.defineComponent)({name:"draggable",inheritAttrs:!1,props:q,emits:H,data:function(){return{error:!1}},render:function(){try{this.error=!1;var t=this.$slots,e=this.$attrs,r=this.tag,s=this.componentData,n=j({$slots:t,tag:r,realList:this.realList,getKey:this.getKey});this.componentStructure=n;var i=function(t){var e=t.$attrs,r=t.componentData,s=void 0===r?{}:r;return c(c({},N(Object.entries(e).filter((function(t){var e=h(t,2),r=e[0];return e[1],C(r)})))),s)}({$attrs:e,componentData:s});return n.render(L.h,i)}catch(t){return this.error=!0,Object(L.h)("pre",{style:{color:"red"}},t.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&g.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var t=this;if(!this.error){var e=this.$attrs,r=this.$el;this.componentStructure.updated();var s=function(t){var e=t.$attrs,r=t.callBackBuilder,s=N(I(e));Object.entries(r).forEach((function(t){var e=h(t,2),r=e[0],n=e[1];E[r].forEach((function(t){s["on".concat(t)]=n(t)}))}));var n="[data-draggable]".concat(s.draggable||"");return c(c({},s),{},{draggable:n})}({$attrs:e,callBackBuilder:{manageAndEmit:function(e){return U.call(t,e)},emit:function(e){return F.bind(t,e)},manage:function(e){return B.call(t,e)}}}),n=1===r.nodeType?r:r.parentElement;this._sortable=new f.a(n,s),this.targetDomElement=n,n.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var t=this.list;return t||this.modelValue},getKey:function(){var t=this.itemKey;return"function"==typeof t?t:function(e){return e[t]}}},watch:{$attrs:{handler:function(t){var e=this._sortable;I(t).forEach((function(t){var r=h(t,2),s=r[0],n=r[1];e.option(s,n)}))},deep:!0}},methods:{getUnderlyingVm:function(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent:function(t){return t.__draggable_component__},emitChanges:function(t){var e=this;Object(L.nextTick)((function(){return e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=p(this.modelValue);t(e),this.$emit("update:modelValue",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,p(t))};this.alterList(e)},updatePosition:function(t,e){var r=function(r){return r.splice(e,0,r.splice(t,1)[0])};this.alterList(r)},getRelatedContextFromMoveEvent:function(t){var e=t.to,r=t.related,s=this.getUnderlyingPotencialDraggableComponent(e);if(!s)return{component:s};var n=s.realList,i={list:n,component:s};return e!==r&&n?c(c({},s.getUnderlyingVm(r)||{}),i):i},getVmIndexFromDomIndex:function(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),V=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){m(t.item);var r=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(r,0,e);var s={element:e,newIndex:r};this.emitChanges({added:s})}},onDragRemove:function(t){if(y(this.$el,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context,r=e.index,s=e.element;this.spliceList(r,1);var n={element:s,oldIndex:r};this.emitChanges({removed:n})}else m(t.clone)},onDragUpdate:function(t){m(t.item),y(t.from,t.item,t.oldIndex);var e=this.context.index,r=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(e,r);var s={element:this.context.element,oldIndex:e,newIndex:r};this.emitChanges({moved:s})},computeFutureIndex:function(t,e){if(!t.element)return 0;var r=p(e.to.children).filter((function(t){return"none"!==t.style.display})),s=r.indexOf(e.related),n=t.component.getVmIndexFromDomIndex(s);return-1===r.indexOf(V)&&e.willInsertAfter?n+1:n},onDragMove:function(t,e){var r=this.move,s=this.realList;if(!r||!s)return!0;var n=this.getRelatedContextFromMoveEvent(t),i=this.computeFutureIndex(n,t),o=c(c({},this.context),{},{futureIndex:i});return r(c(c({},t),{},{relatedContext:n,draggedContext:o}),e)},onDragEnd:function(){V=null}}});e.default=$},fb6a:function(t,e,r){"use strict";var s=r("23e7"),n=r("861d"),i=r("e8b5"),o=r("23cb"),a=r("50c4"),c=r("fc6a"),l=r("8418"),u=r("b622"),h=r("1dde"),p=r("ae40"),d=h("slice"),f=p("slice",{ACCESSORS:!0,0:0,1:2}),m=u("species"),y=[].slice,g=Math.max;s({target:"Array",proto:!0,forced:!d||!f},{slice:function(t,e){var r,s,u,h=c(this),p=a(h.length),d=o(t,p),f=o(void 0===e?p:e,p);if(i(h)&&("function"!=typeof(r=h.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[m])&&(r=void 0):r=void 0,r===Array||void 0===r))return y.call(h,d,f);for(s=new(void 0===r?Array:r)(g(f-d,0)),u=0;d<f;d++,u++)d in h&&l(s,u,h[d]);return s.length=u,s}})},fc6a:function(t,e,r){var s=r("44ad"),n=r("1d80");t.exports=function(t){return s(n(t))}},fdbc:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(t,e,r){var s=r("4930");t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default},t.exports=s(r(8253),r(1474))},5043:(t,e,r)=>{"use strict";var s=r(8253),n="store";var i=("undefined"!=typeof window?window:void 0!==r.g?r.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var r,s=(r=function(e){return e.original===t},e.filter(r)[0]);if(s)return s.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach((function(r){n[r]=o(t[r],e)})),n}function a(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function c(t){return null!==t&&"object"==typeof t}var l=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"==typeof r?r():r)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(t,e){this._children[t]=e},l.prototype.removeChild=function(t){delete this._children[t]},l.prototype.getChild=function(t){return this._children[t]},l.prototype.hasChild=function(t){return t in this._children},l.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},l.prototype.forEachChild=function(t){a(this._children,t)},l.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},l.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},l.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(l.prototype,u);var h=function(t){this.register([],t,!1)};function p(t,e,r){if(e.update(r),r.modules)for(var s in r.modules){if(!e.getChild(s))return void 0;p(t.concat(s),e.getChild(s),r.modules[s])}}h.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},h.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return t+((e=e.getChild(r)).namespaced?r+"/":"")}),"")},h.prototype.update=function(t){p([],this.root,t)},h.prototype.register=function(t,e,r){var s=this;void 0===r&&(r=!0);var n=new l(e,r);0===t.length?this.root=n:this.get(t.slice(0,-1)).addChild(t[t.length-1],n);e.modules&&a(e.modules,(function(e,n){s.register(t.concat(n),e,r)}))},h.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],s=e.getChild(r);s&&s.runtime&&e.removeChild(r)},h.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return!!e&&e.hasChild(r)};var d=function(t){var e=this;void 0===t&&(t={});var r=t.plugins;void 0===r&&(r=[]);var s=t.strict;void 0===s&&(s=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null);var n=this,o=this.dispatch,a=this.commit;this.dispatch=function(t,e){return o.call(n,t,e)},this.commit=function(t,e,r){return a.call(n,t,e,r)},this.strict=s;var c=this._modules.root.state;v(this,c,[],this._modules.root),g(this,c),r.forEach((function(t){return t(e)})),(void 0===t.devtools||t.devtools)&&function(t){i&&(t._devtoolHook=i,i.emit("vuex:init",t),i.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){i.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){i.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function m(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function y(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;v(t,r,[],t._modules.root,!0),g(t,r,e)}function g(t,e,r){var n=t._state;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};a(i,(function(e,r){o[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return o[r]()},enumerable:!0})})),t._state=s.reactive({data:e}),t.strict&&function(t){s.watch((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}(t),n&&r&&t._withCommit((function(){n.data=null}))}function v(t,e,r,s,n){var i=!r.length,o=t._modules.getNamespace(r);if(s.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=s),!i&&!n){var a=x(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){a[c]=s.state}))}var l=s.context=function(t,e,r){var s=""===e,n={dispatch:s?t.dispatch:function(r,s,n){var i=b(r,s,n),o=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,o)},commit:s?t.commit:function(r,s,n){var i=b(r,s,n),o=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,o,a)}};return Object.defineProperties(n,{getters:{get:s?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},s=e.length;Object.keys(t.getters).forEach((function(n){if(n.slice(0,s)===e){var i=n.slice(s);Object.defineProperty(r,i,{get:function(){return t.getters[n]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return x(t.state,r)}}}),n}(t,o,r);s.forEachMutation((function(e,r){!function(t,e,r,s){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,s.state,e)}))}(t,o+r,e,l)})),s.forEachAction((function(e,r){var s=e.root?r:o+r,n=e.handler||e;!function(t,e,r,s){(t._actions[e]||(t._actions[e]=[])).push((function(e){var n,i=r.call(t,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:t.getters,rootState:t.state},e);return(n=i)&&"function"==typeof n.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,s,n,l)})),s.forEachGetter((function(e,r){!function(t,e,r,s){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(s.state,s.getters,t.state,t.getters)}}(t,o+r,e,l)})),s.forEachChild((function(s,i){v(t,e,r.concat(i),s,n)}))}function x(t,e){return e.reduce((function(t,e){return t[e]}),t)}function b(t,e,r){return c(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}d.prototype.install=function(t,e){t.provide(e||n,this),t.config.globalProperties.$store=this},f.state.get=function(){return this._state.data},f.state.set=function(t){0},d.prototype.commit=function(t,e,r){var s=this,n=b(t,e,r),i=n.type,o=n.payload,a=(n.options,{type:i,payload:o}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(o)}))})),this._subscribers.slice().forEach((function(t){return t(a,s.state)})))},d.prototype.dispatch=function(t,e){var r=this,s=b(t,e),n=s.type,i=s.payload,o={type:n,payload:i},a=this._actions[n];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,r.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,r.state,t)}))}catch(t){0}e(t)}))}))}},d.prototype.subscribe=function(t,e){return m(t,this._subscribers,e)},d.prototype.subscribeAction=function(t,e){return m("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},d.prototype.watch=function(t,e,r){var n=this;return s.watch((function(){return t(n.state,n.getters)}),e,Object.assign({},r))},d.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._state.data=t}))},d.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),r.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){delete x(e.state,t.slice(0,-1))[t[t.length-1]]})),y(this)},d.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},d.prototype.hotUpdate=function(t){this._modules.update(t),y(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,f);var w=E((function(t,e){var r={};return A(e).forEach((function(e){var s=e.key,n=e.val;r[s]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var s=k(this.$store,"mapState",t);if(!s)return;e=s.context.state,r=s.context.getters}return"function"==typeof n?n.call(this,e,r):e[n]},r[s].vuex=!0})),r})),P=E((function(t,e){var r={};return A(e).forEach((function(e){var s=e.key,n=e.val;r[s]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var s=this.$store.commit;if(t){var i=k(this.$store,"mapMutations",t);if(!i)return;s=i.context.commit}return"function"==typeof n?n.apply(this,[s].concat(e)):s.apply(this.$store,[n].concat(e))}})),r})),T=E((function(t,e){var r={};return A(e).forEach((function(e){var s=e.key,n=e.val;n=t+n,r[s]=function(){if(!t||k(this.$store,"mapGetters",t))return this.$store.getters[n]},r[s].vuex=!0})),r})),S=E((function(t,e){var r={};return A(e).forEach((function(e){var s=e.key,n=e.val;r[s]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var s=this.$store.dispatch;if(t){var i=k(this.$store,"mapActions",t);if(!i)return;s=i.context.dispatch}return"function"==typeof n?n.apply(this,[s].concat(e)):s.apply(this.$store,[n].concat(e))}})),r}));function A(t){return function(t){return Array.isArray(t)||c(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function E(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function k(t,e,r){return t._modulesNamespaceMap[r]}function C(t,e,r){var s=r?t.groupCollapsed:t.group;try{s.call(t,e)}catch(r){t.log(e)}}function N(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function I(){var t=new Date;return" @ "+_(t.getHours(),2)+":"+_(t.getMinutes(),2)+":"+_(t.getSeconds(),2)+"."+_(t.getMilliseconds(),3)}function _(t,e){return r="0",s=e-t.toString().length,new Array(s+1).join(r)+t;var r,s}var O={version:"4.0.0-rc.2",createStore:function(t){return new d(t)},Store:d,useStore:function(t){return void 0===t&&(t=null),s.inject(null!==t?t:n)},mapState:w,mapMutations:P,mapGetters:T,mapActions:S,createNamespacedHelpers:function(t){return{mapState:w.bind(null,t),mapGetters:T.bind(null,t),mapMutations:P.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var s=t.transformer;void 0===s&&(s=function(t){return t});var n=t.mutationTransformer;void 0===n&&(n=function(t){return t});var i=t.actionFilter;void 0===i&&(i=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var l=t.logActions;void 0===l&&(l=!0);var u=t.logger;return void 0===u&&(u=console),function(t){var h=o(t.state);void 0!==u&&(c&&t.subscribe((function(t,i){var a=o(i);if(r(t,h,a)){var c=I(),l=n(t),p="mutation "+t.type+c;C(u,p,e),u.log("%c prev state","color: #9E9E9E; font-weight: bold",s(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",s(a)),N(u)}h=a})),l&&t.subscribeAction((function(t,r){if(i(t,r)){var s=I(),n=a(t),o="action "+t.type+s;C(u,o,e),u.log("%c action","color: #03A9F4; font-weight: bold",n),N(u)}})))}}};t.exports=O},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 r(s){var n=e[s];if(void 0!==n)return n.exports;var i=e[s]={exports:{}};return t[s].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t=r(8253),e=r(5043);const{version:s,createStore:n,Store:i,install:o,useStore:a,mapState:c,mapMutations:l,mapGetters:u,mapActions:h,createNamespacedHelpers:p,createLogger:d}=e;var f=r(2606),m=r.n(f);window.route=m();const y={methods:{route:function(t){function e(e,r){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 g=r(7757),v=r.n(g);function x(t,e,r,s,n,i,o){try{var a=t[i](o),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(s,n)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(s,n){var i=t.apply(e,r);function o(t){x(i,s,n,o,a,"next",t)}function a(t){x(i,s,n,o,a,"throw",t)}o(void 0)}))}}const w={namespaced:!0,state:{groups:[]},getters:{groups:function(t){return t.groups},selectedGroup:function(t){return(t.groups?t.groups:[]).find((function(t){return t.is_selected}))}},actions:{indexActive:function(t){return b(v().mark((function e(){var r,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,e.next=3,api.get(route("group.index_active"));case 3:s=e.sent,r("setGroups",s);case 5:case"end":return e.stop()}}),e)})))()},indexMyGroups:function(t){return b(v().mark((function e(){var r,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,e.next=3,api.get(route("group.my_groups"));case 3:s=e.sent,r("setGroups",s);case 5:case"end":return e.stop()}}),e)})))()},show:function(t,e){var r=t.getters,s=t.dispatch,n=(t.rootGetters,e.group),i=e.folder,o=r.selectedGroup;n?Number.isInteger(n)&&(n=r.groups.find((function(t){return t.id===n}))):n=o,s("selectGroup",n),s("documents/selectDocuments",[],{root:!0}),api.get(route("group.show",n)).then((function(t){s("folders/index",i?{folders:t,show:i}:{folders:t},{root:!0})}))},selectGroup:function(t,e){var r=t.commit,s=t.getters;Number.isInteger(e)&&(e=s.groups.find((function(t){return t.id===e}))),r("setSelectedGroup",e)},updateGroup:function(t,e){var r=t.dispatch,s=e.group,n=e.newProperties;api.put(route("group.update",s),n).then((function(t){r("updateProperties",{groupId:s.id,newProperties:t})}))},deleteGroup:function(t,e){var r=t.commit;api.delete(route("group.destroy",e)).then((function(t){r("setGroups",t)}))},updateProperties:function(t,e){var r=t.commit,s=t.getters,n=e.groupId,i=e.newProperties,o=s.groups.find((function(t){return t.id==n}));o?r("update",{group:o,newProperties:i}):console.warn("Group #"+n+" not found")},createGroup:function(t,e){var r=t.commit;api.post(route("group.store"),e).then((function(t){r("setGroups",t)}))},updatePositions:function(t,e){var r=t.getters,s=t.commit,n=e.positions;for(var i in n){var o=r.groups.find((function(t){return t.id==i}));if(!o)return void console.warn("Group #"+i+" not found");s("updatePosition",{group:o,position:n[i]})}api.post(route("group.update_positions"),{positions:n})}},mutations:{setGroups:function(t,e){t.groups=e},setSelectedGroup:function(t,e){t.groups.find((function(t){return t.is_selected=!1})),e.is_selected=!0},update:function(t,e){var r=e.group,s=e.newProperties;for(var n in s)r[n]=s[n]},updatePosition:function(t,e){var r=e.group,s=e.position;r.pivot.position=s}}};var P={class:"flex w-full h-screen"},T={class:"w-1/2 h-screen flex flex-col"},S={class:"h-1/2 overflow-auto"},A={class:"w-1/2 bg-gray-50 dark:bg-gray-850"},E={class:"flex justify-between items-center w-full"},k={class:"mr-4"},C={class:"list vertical striped spaced items-rounded"};var N={class:"list-item"},I={class:"handle"},_={fill:"currentColor",width:"16",height:"16"},O={class:"flex-grow flex justify-between"},D={class:"text-black dark:text-white"},M={key:0,class:"mb-1"},L={class:"mb-1"},R={class:"flex items-center space-x-1"},j={class:"badges"},F={fill:"currentColor",width:"16",height:"16"},B={fill:"currentColor",width:"16",height:"16"},U={fill:"currentColor",width:"16",height:"16"},V={fill:"currentColor",width:"16",height:"16"};const q={props:["group","movable"],computed:{status:function(){var t=this;if(t.group.pivot)switch(t.group.pivot.status){case"own":return t.__("My own group");case"created":return t.__("Created by me");case"invited":return t.__("Invited to join");case"accepted":return t.__("Accepted");case"rejected":return t.__("Rejected");case"left":return t.__("Group left");case"joining":return t.__("Waiting for joining")}}},methods:{select:function(){this.$emit("selected")}},render:function(e,r,s,n,i,o){return(0,t.openBlock)(),(0,t.createBlock)("div",N,[(0,t.createVNode)("div",I,[((0,t.openBlock)(),(0,t.createBlock)("svg",_,[(0,t.createVNode)("use",{"xlink:href":e.icon("move-v")},null,8,["xlink:href"])]))]),(0,t.createVNode)("div",O,[(0,t.createVNode)("div",null,[(0,t.createVNode)("h2",D,(0,t.toDisplayString)(s.group.name),1),s.group.creator?((0,t.openBlock)(),(0,t.createBlock)("div",M,(0,t.toDisplayString)(e.__("Created by"))+" "+(0,t.toDisplayString)(s.group.creator.name),1)):(0,t.createCommentVNode)("",!0),(0,t.createVNode)("div",L,(0,t.toDisplayString)(s.group.description),1),(0,t.createVNode)("div",R,[s.group.pivot?((0,t.openBlock)(),(0,t.createBlock)("span",{key:0,class:["badge","group-status-"+s.group.pivot.status]},(0,t.toDisplayString)(o.status),3)):(0,t.createCommentVNode)("",!0),s.group.invite_only?((0,t.openBlock)(),(0,t.createBlock)("span",{key:1,class:["badge default",{"group-invite-only":s.group.invite_only}]},(0,t.toDisplayString)(e.__("Invite only")),3)):(0,t.createCommentVNode)("",!0),s.group.invite_only?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)("span",{key:2,class:["badge",{success:s.group.auto_accept_users,warning:!s.group.auto_accept_users}]},(0,t.toDisplayString)(s.group.auto_accept_users?e.__("Auto-accept users"):e.__("New users must be approved")),3))])])]),(0,t.createVNode)("div",j,[s.group.pending_users_count>0?((0,t.openBlock)(),(0,t.createBlock)("span",{key:0,class:"badge warning",title:e.__("Pending users")},[((0,t.openBlock)(),(0,t.createBlock)("svg",F,[(0,t.createVNode)("use",{"xlink:href":e.icon("group")},null,8,["xlink:href"])])),(0,t.createTextVNode)((0,t.toDisplayString)(s.group.pending_users_count),1)],8,["title"])):(0,t.createCommentVNode)("",!0),(0,t.createVNode)("span",{class:"badge success",title:e.__("Active users")},[((0,t.openBlock)(),(0,t.createBlock)("svg",B,[(0,t.createVNode)("use",{"xlink:href":e.icon("group")},null,8,["xlink:href"])])),(0,t.createTextVNode)((0,t.toDisplayString)(s.group.active_users_count),1)],8,["title"]),s.group.pivot?((0,t.openBlock)(),(0,t.createBlock)("button",{key:1,class:"info",onClick:r[1]||(r[1]=function(t){return e.$emit("selected",s.group)})},[((0,t.openBlock)(),(0,t.createBlock)("svg",U,[(0,t.createVNode)("use",{"xlink:href":e.icon("update")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.__("Edit")),1)])):(0,t.createCommentVNode)("",!0),s.group.pivot?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)("button",{key:2,class:"success",onClick:r[2]||(r[2]=function(t){return e.$emit("join",s.group)})},[((0,t.openBlock)(),(0,t.createBlock)("svg",V,[(0,t.createVNode)("use",{"xlink:href":e.icon("join")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(s.group.auto_accept_users?e.__("Join"):e.__("Apply")),1)]))])])}},H=q;var $={class:"body"},G={class:"form-group"},K={class:"form-group"},z={class:"form-group"},W={class:"my-0"},J={class:"ml-2"},X={class:"form-group"},Y={class:"my-0"},Q={class:"ml-2"},Z={class:"flex justify-between mt-4"},tt={class:"success",type:"submit"},et={fill:"currentColor",width:"16",height:"16"},rt={key:0,class:"flex items-center space-x-2"},st={fill:"currentColor",width:"16",height:"16"},nt={fill:"currentColor",width:"16",height:"16"},it={class:"form-group"},ot={class:"input-group"},at={type:"submit",class:"info"},ct={fill:"currentColor",width:"16",height:"16"},lt={key:3,class:"mt-4 flex items-center justify-between"},ut={fill:"currentColor",width:"16",height:"16"},ht={fill:"currentColor",width:"16",height:"16"},pt={key:4,class:"mt-4"},dt={fill:"currentColor",width:"16",height:"16"};const ft={props:["group"],data:function(){return{id:null,name:null,description:null,inviteOnly:!1,autoAcceptUsers:!1,inviteEmail:null}},computed:{title:function(){return this.group?this.group.name:this.__("Create group")}},watch:{group:function(t){t?(this.id=t.id,this.name=t.name,this.description=t.description,this.inviteOnly=t.invite_only,this.autoAcceptUsers=t.auto_accept_users):(this.id=null,this.name=null,this.description=null,this.inviteOnly=!1,this.autoAcceptUsers=!1),this.$forceUpdate()}},methods:{onSubmit:function(){var t=this,e={name:t.name,description:t.description,invite_only:t.inviteOnly,auto_accept_users:t.autoAcceptUsers};e.name&&(t.id?(e.id=t.id,t.$emit("group-updated",e)):(t.$emit("group-created",e),t.id=null,t.name=null,t.description=null,t.inviteOnly=!1,t.autoAcceptUsers=!1))},onInviteSubmit:function(){var t=this;if(!t.inviteEmail)return!1;api.post(route("group.invite_user",t.group),{email:t.inviteEmail}).then((function(e){t.inviteEmail=null,t.$emit("invitation-sent")}))}},render:function(e,r,s,n,i,o){return(0,t.openBlock)(),(0,t.createBlock)("article",null,[(0,t.createVNode)("header",null,[(0,t.createVNode)("h1",null,(0,t.toDisplayString)(o.title),1)]),(0,t.createVNode)("div",$,[s.group&&s.group.description?((0,t.openBlock)(),(0,t.createBlock)("div",{key:0,innerHTML:s.group.description},null,8,["innerHTML"])):(0,t.createCommentVNode)("",!0),!s.group||s.group&&("own"===s.group.pivot.status||"created"===s.group.pivot.status)?((0,t.openBlock)(),(0,t.createBlock)("form",{key:1,onSubmit:r[8]||(r[8]=(0,t.withModifiers)((function(){return o.onSubmit&&o.onSubmit.apply(o,arguments)}),["prevent"]))},[(0,t.withDirectives)((0,t.createVNode)("input",{type:"hidden",name:"id","onUpdate:modelValue":r[1]||(r[1]=function(t){return e.id=t})},null,512),[[t.vModelText,e.id]]),(0,t.createVNode)("div",G,[(0,t.withDirectives)((0,t.createVNode)("input",{type:"text","onUpdate:modelValue":r[2]||(r[2]=function(t){return e.name=t}),placeholder:e.__("Group name")},null,8,["placeholder"]),[[t.vModelText,e.name]])]),(0,t.createVNode)("div",K,[(0,t.withDirectives)((0,t.createVNode)("input",{type:"text","onUpdate:modelValue":r[3]||(r[3]=function(t){return e.description=t}),placeholder:e.__("Description")},null,8,["placeholder"]),[[t.vModelText,e.description]])]),(0,t.createVNode)("div",z,[(0,t.createVNode)("label",W,[(0,t.withDirectives)((0,t.createVNode)("input",{type:"checkbox","onUpdate:modelValue":r[4]||(r[4]=function(t){return e.inviteOnly=t})},null,512),[[t.vModelCheckbox,e.inviteOnly]]),(0,t.createVNode)("span",J,(0,t.toDisplayString)(e.__("Invite only")),1)])]),(0,t.createVNode)("div",X,[(0,t.createVNode)("label",Y,[(0,t.withDirectives)((0,t.createVNode)("input",{type:"checkbox","onUpdate:modelValue":r[5]||(r[5]=function(t){return e.autoAcceptUsers=t})},null,512),[[t.vModelCheckbox,e.autoAcceptUsers]]),(0,t.createVNode)("span",Q,(0,t.toDisplayString)(e.__("Auto-accept users")),1)])]),(0,t.createVNode)("div",Z,[(0,t.createVNode)("button",tt,[((0,t.openBlock)(),(0,t.createBlock)("svg",et,[(0,t.createVNode)("use",{"xlink:href":e.icon(e.id?"update":"add")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.id?e.__("Update group"):e.__("Create group")),1)]),null!==e.id?((0,t.openBlock)(),(0,t.createBlock)("div",rt,[(0,t.createVNode)("button",{class:"secondary",onClick:r[6]||(r[6]=(0,t.withModifiers)((function(t){return e.$emit("unselect")}),["stop","prevent"]))},[((0,t.openBlock)(),(0,t.createBlock)("svg",st,[(0,t.createVNode)("use",{"xlink:href":e.icon("cancel")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.__("Cancel")),1)]),"own"!==s.group.pivot.status?((0,t.openBlock)(),(0,t.createBlock)("button",{key:0,class:"danger",onClick:r[7]||(r[7]=(0,t.withModifiers)((function(t){return e.$emit("group-deleted",s.group)}),["stop","prevent"]))},[((0,t.openBlock)(),(0,t.createBlock)("svg",nt,[(0,t.createVNode)("use",{"xlink:href":e.icon("trash")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.__("Delete")),1)])):(0,t.createCommentVNode)("",!0)])):(0,t.createCommentVNode)("",!0)])],32)):(0,t.createCommentVNode)("",!0),!s.group||"own"!==s.group.pivot.status&&"created"!==s.group.pivot.status?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)("form",{key:2,onSubmit:r[10]||(r[10]=(0,t.withModifiers)((function(){return o.onInviteSubmit&&o.onInviteSubmit.apply(o,arguments)}),["prevent"]))},[(0,t.createVNode)("div",it,[(0,t.createVNode)("div",ot,[(0,t.withDirectives)((0,t.createVNode)("input",{type:"text",name:"title","onUpdate:modelValue":r[9]||(r[9]=function(t){return e.inviteEmail=t}),placeholder:e.__("E-Mail Address")},null,8,["placeholder"]),[[t.vModelText,e.inviteEmail]]),(0,t.createVNode)("button",at,[((0,t.openBlock)(),(0,t.createBlock)("svg",ct,[(0,t.createVNode)("use",{"xlink:href":e.icon("join")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.__("Invite in group")),1)])])])],32)),s.group&&"invited"===s.group.pivot.status?((0,t.openBlock)(),(0,t.createBlock)("div",lt,[(0,t.createVNode)("button",{class:"success",onClick:r[11]||(r[11]=function(t){return e.$emit("invitation-accepted",s.group)})},[((0,t.openBlock)(),(0,t.createBlock)("svg",ut,[(0,t.createVNode)("use",{"xlink:href":e.icon("check")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.__("Accept invitation")),1)]),(0,t.createVNode)("button",{class:"danger",onClick:r[12]||(r[12]=function(t){return e.$emit("invitation-declined",s.group)})},[((0,t.openBlock)(),(0,t.createBlock)("svg",ht,[(0,t.createVNode)("use",{"xlink:href":e.icon("cancel")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.__("Decline invitation")),1)])])):(0,t.createCommentVNode)("",!0),!s.group||"accepted"!==s.group.pivot.status&&"joining"!==s.group.pivot.status?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)("div",pt,[(0,t.createVNode)("button",{class:"danger",onClick:r[13]||(r[13]=function(t){return e.$emit("leave",s.group)})},[((0,t.openBlock)(),(0,t.createBlock)("svg",dt,[(0,t.createVNode)("use",{"xlink:href":e.icon("logout")},null,8,["xlink:href"])])),(0,t.createVNode)("span",null,(0,t.toDisplayString)(e.__("Leave the group")),1)])]))])])}},mt=ft;var yt=r(9980);function gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gt(Object(r),!0).forEach((function(e){xt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const bt={components:{draggable:r.n(yt)(),GroupForm:mt,GroupsBrowserItem:H},data:function(){return{positions:[],selectedGroup:null,publicGroups:[],search:"",drag:!1}},mounted:function(){this.indexMyGroups(),this.loadPublicGroups()},computed:vt(vt({},u({myGroups:"groups/groups"})),{},{myGroupsSorted:{get:function(){return collect(this.myGroups).sortBy("pivot.position").all()},set:function(t){var e=collect(t),r={};e.each((function(t,e){r[t.id]=e})),this.updatePositions({positions:r})}}}),watch:{search:function(t){this.loadPublicGroups()}},methods:vt(vt({},h({indexMyGroups:"groups/indexMyGroups",createGroup:"groups/createGroup",updateGroup:"groups/updateGroup",updateGroupProperties:"groups/updateProperties",deleteGroup:"groups/deleteGroup",updatePositions:"groups/updatePositions"})),{},{loadPublicGroups:function(){var t=this;api.get(route("group.index"),{search:t.search}).then((function(e){t.publicGroups=e.data}))},onGroupCreated:function(t){this.createGroup(t)},onGroupUpdated:function(t){this.updateGroup({group:t,newProperties:t})},onGroupDeleted:function(t){var e=this;e.deleteGroup(t).then((function(){e.selectedGroup=null}))},onInvitationSent:function(t){this.updateGroupProperties({groupId:this.selectedGroup.id,newProperties:t})},onInvitationAccepted:function(t){var e=this;api.post(route("group.accept_invitation",t)).then((function(t){e.updateGroupProperties({groupId:t.id,newProperties:t})}))},onInvitationDeclined:function(t){var e=this;api.post(route("group.reject_invitation",t)).then((function(t){e.updateGroupProperties({groupId:t.id,newProperties:t})}))},onLeaveGroup:function(t){var e=this;api.post(route("group.leave",t)).then((function(){e.indexMyGroups(),e.loadPublicGroups(),e.selectedGroup=null}))},onJoinGroup:function(t){var e=this;api.post(route("group.join",t)).then((function(){e.indexMyGroups(),e.loadPublicGroups(),e.selectedGroup=null}))}}),render:function(e,r,s,n,i,o){var a=(0,t.resolveComponent)("groups-browser-item"),c=(0,t.resolveComponent)("draggable"),l=(0,t.resolveComponent)("group-form");return(0,t.openBlock)(),(0,t.createBlock)("div",P,[(0,t.createVNode)("div",T,[(0,t.createVNode)("div",S,[(0,t.createVNode)(c,{class:"list vertical striped spaced items-rounded",modelValue:o.myGroupsSorted,"onUpdate:modelValue":r[1]||(r[1]=function(t){return o.myGroupsSorted=t}),group:"myGroups",onStart:r[2]||(r[2]=function(t){return e.drag=!0}),onEnd:r[3]||(r[3]=function(t){return e.drag=!1}),"item-key":"id","force-fallback":!0,"fallback-tolerance":10,handle:".handle"},{item:(0,t.withCtx)((function(r){var s=r.element;return[(0,t.createVNode)(a,{class:["select-none",{selected:e.selectedGroup===s}],group:s,movable:!0,onSelected:function(t){return e.selectedGroup=s}},null,8,["group","onSelected","class"])]})),_:1},8,["modelValue"])]),(0,t.createVNode)(l,{class:"h-1/2",group:e.selectedGroup,onUnselect:r[4]||(r[4]=function(t){return e.selectedGroup=null}),onGroupCreated:o.onGroupCreated,onGroupUpdated:o.onGroupUpdated,onGroupDeleted:o.onGroupDeleted,onInvitationSent:o.onInvitationSent,onInvitationAccepted:o.onInvitationAccepted,onInvitationDeclined:o.onInvitationDeclined,onLeave:o.onLeaveGroup},null,8,["group","onGroupCreated","onGroupUpdated","onGroupDeleted","onInvitationSent","onInvitationAccepted","onInvitationDeclined","onLeave"])]),(0,t.createVNode)("div",A,[(0,t.createVNode)("article",null,[(0,t.createVNode)("header",null,[(0,t.createVNode)("h1",null,[(0,t.createVNode)("div",E,[(0,t.createVNode)("div",k,(0,t.toDisplayString)(e.__("Public groups")),1),(0,t.withDirectives)((0,t.createVNode)("input",{type:"search",placeholder:e.__("Search"),"onUpdate:modelValue":r[5]||(r[5]=function(t){return e.search=t})},null,8,["placeholder"]),[[t.vModelText,e.search]])])])]),(0,t.createVNode)("div",C,[((0,t.openBlock)(!0),(0,t.createBlock)(t.Fragment,null,(0,t.renderList)(e.publicGroups,(function(e){return(0,t.openBlock)(),(0,t.createBlock)(a,{group:e,key:e.id,movable:!1,onJoin:o.onJoinGroup},null,8,["group","onJoin"])})),128))])])])])}},wt=bt;r(4511);var Pt=n({modules:{groups:w},strict:!1});(0,t.createApp)({components:{GroupsBrowser:wt},el:"#app"}).mixin(y).use(Pt).mount("#app")})()})();