@trojanbox-vcp-test/site-edit-engine 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/dist/index.js +127 -2
- package/dist/internal/protocol/operation.d.ts +2 -0
- package/dist/internal/protocol/render.d.ts +3 -30
- package/dist/internal/protocol.d.ts +1 -1
- package/dist/next-app-router.js +1 -140
- package/dist/preview-runtime.d.ts +249 -303
- package/dist/runtime-sync.d.ts +8 -8
- package/dist/runtime.d.ts +1 -127
- package/dist/site-edit-instrumentation.d.ts +1 -1
- package/dist/source-watcher.js +1 -150
- package/dist/types.d.ts +12 -14
- package/dist/webpack-loader.cjs +50 -588
- package/package.json +2 -2
- package/dist/execute-integration/execute-fixture-harness.d.ts +0 -25
- package/dist/execute-integration/execute-fixture-harness.js +0 -37
- package/dist/internal/ast/diagnostics/index.d.ts +0 -5
- package/dist/internal/ast/diagnostics/index.js +0 -25
- package/dist/internal/ast/history/index.d.ts +0 -15
- package/dist/internal/ast/history/index.js +0 -62
- package/dist/internal/ast/index.d.ts +0 -8
- package/dist/internal/ast/index.js +0 -5
- package/dist/internal/ast/locators/index.d.ts +0 -1
- package/dist/internal/ast/locators/index.js +0 -1
- package/dist/internal/ast/locators/resolve-locator.d.ts +0 -16
- package/dist/internal/ast/locators/resolve-locator.js +0 -920
- package/dist/internal/ast/parser/SourceParser.d.ts +0 -30
- package/dist/internal/ast/parser/SourceParser.js +0 -49
- package/dist/internal/ast/parser/index.d.ts +0 -21
- package/dist/internal/ast/parser/index.js +0 -64
- package/dist/internal/ast/primitives/conditional/conditional-primitives.d.ts +0 -18
- package/dist/internal/ast/primitives/conditional/conditional-primitives.js +0 -237
- package/dist/internal/ast/primitives/conditional/index.d.ts +0 -1
- package/dist/internal/ast/primitives/conditional/index.js +0 -1
- package/dist/internal/ast/primitives/imports/add-import.d.ts +0 -18
- package/dist/internal/ast/primitives/imports/add-import.js +0 -111
- package/dist/internal/ast/primitives/imports/index.d.ts +0 -2
- package/dist/internal/ast/primitives/imports/index.js +0 -2
- package/dist/internal/ast/primitives/imports/remove-import.d.ts +0 -15
- package/dist/internal/ast/primitives/imports/remove-import.js +0 -72
- package/dist/internal/ast/primitives/index.d.ts +0 -10
- package/dist/internal/ast/primitives/index.js +0 -10
- package/dist/internal/ast/primitives/jsx/index.d.ts +0 -4
- package/dist/internal/ast/primitives/jsx/index.js +0 -4
- package/dist/internal/ast/primitives/jsx/insert-child.d.ts +0 -11
- package/dist/internal/ast/primitives/jsx/insert-child.js +0 -69
- package/dist/internal/ast/primitives/jsx/move-node.d.ts +0 -9
- package/dist/internal/ast/primitives/jsx/move-node.js +0 -76
- package/dist/internal/ast/primitives/jsx/remove-node.d.ts +0 -7
- package/dist/internal/ast/primitives/jsx/remove-node.js +0 -36
- package/dist/internal/ast/primitives/jsx/update-text.d.ts +0 -8
- package/dist/internal/ast/primitives/jsx/update-text.js +0 -81
- package/dist/internal/ast/primitives/next/index.d.ts +0 -1
- package/dist/internal/ast/primitives/next/index.js +0 -1
- package/dist/internal/ast/primitives/next/next-primitives.d.ts +0 -43
- package/dist/internal/ast/primitives/next/next-primitives.js +0 -211
- package/dist/internal/ast/primitives/shared.d.ts +0 -60
- package/dist/internal/ast/primitives/shared.js +0 -176
- package/dist/internal/ast/primitives/style/class-expression.d.ts +0 -23
- package/dist/internal/ast/primitives/style/class-expression.js +0 -174
- package/dist/internal/ast/primitives/style/index.d.ts +0 -1
- package/dist/internal/ast/primitives/style/index.js +0 -1
- package/dist/internal/ast/primitives/style/style-primitives.d.ts +0 -49
- package/dist/internal/ast/primitives/style/style-primitives.js +0 -555
- package/dist/internal/ast/primitives/values/index.d.ts +0 -1
- package/dist/internal/ast/primitives/values/index.js +0 -1
- package/dist/internal/ast/primitives/values/value-primitives.d.ts +0 -42
- package/dist/internal/ast/primitives/values/value-primitives.js +0 -158
- package/dist/internal/ast/printer/SourcePrinter.d.ts +0 -21
- package/dist/internal/ast/printer/SourcePrinter.js +0 -76
- package/dist/internal/ast/printer/index.d.ts +0 -6
- package/dist/internal/ast/printer/index.js +0 -126
- package/dist/internal/ast/types.d.ts +0 -190
- package/dist/internal/ast/types.js +0 -1
- package/dist/internal/capability/capability-resolver.d.ts +0 -16
- package/dist/internal/capability/capability-resolver.js +0 -127
- package/dist/internal/classname-source.d.ts +0 -24
- package/dist/internal/classname-source.js +0 -220
- package/dist/internal/contracts/IEditEngineRuntime.d.ts +0 -18
- package/dist/internal/contracts/IEditEngineRuntime.js +0 -1
- package/dist/internal/domain/EditDiagnostic.d.ts +0 -38
- package/dist/internal/domain/EditDiagnostic.js +0 -43
- package/dist/internal/events/event-bus.d.ts +0 -14
- package/dist/internal/events/event-bus.js +0 -21
- package/dist/internal/graph/graph-builder.d.ts +0 -12
- package/dist/internal/graph/graph-builder.js +0 -1371
- package/dist/internal/graph/import-resolver.d.ts +0 -31
- package/dist/internal/graph/import-resolver.js +0 -109
- package/dist/internal/graph/project-graph-builder.d.ts +0 -32
- package/dist/internal/graph/project-graph-builder.js +0 -133
- package/dist/internal/graph/types.d.ts +0 -114
- package/dist/internal/graph/types.js +0 -6
- package/dist/internal/history/undo-redo.d.ts +0 -28
- package/dist/internal/history/undo-redo.js +0 -42
- package/dist/internal/index.d.ts +0 -2
- package/dist/internal/index.js +0 -1
- package/dist/internal/planner/planner.d.ts +0 -104
- package/dist/internal/planner/planner.js +0 -2533
- package/dist/internal/planner/types.d.ts +0 -275
- package/dist/internal/planner/types.js +0 -6
- package/dist/internal/protocol/boundary.js +0 -3
- package/dist/internal/protocol/capability.js +0 -8
- package/dist/internal/protocol/error.js +0 -38
- package/dist/internal/protocol/event.js +0 -3
- package/dist/internal/protocol/identity.js +0 -30
- package/dist/internal/protocol/operation.js +0 -8
- package/dist/internal/protocol/render.js +0 -3
- package/dist/internal/protocol.js +0 -2
- package/dist/internal/provenance/binding-graph.d.ts +0 -39
- package/dist/internal/provenance/binding-graph.js +0 -184
- package/dist/internal/provenance/capability-policy.d.ts +0 -15
- package/dist/internal/provenance/capability-policy.js +0 -96
- package/dist/internal/provenance/data-source-classifier.d.ts +0 -14
- package/dist/internal/provenance/data-source-classifier.js +0 -281
- package/dist/internal/provenance/resolve-text-provenance.d.ts +0 -45
- package/dist/internal/provenance/resolve-text-provenance.js +0 -3090
- package/dist/internal/provenance/types.d.ts +0 -89
- package/dist/internal/provenance/types.js +0 -1
- package/dist/internal/render/component-semantic.d.ts +0 -11
- package/dist/internal/render/component-semantic.js +0 -141
- package/dist/internal/render/content-model.d.ts +0 -3
- package/dist/internal/render/content-model.js +0 -89
- package/dist/internal/render/media-model.d.ts +0 -3
- package/dist/internal/render/media-model.js +0 -45
- package/dist/internal/render/provenance-types.d.ts +0 -33
- package/dist/internal/render/provenance-types.js +0 -1
- package/dist/internal/render/render-projection.d.ts +0 -24
- package/dist/internal/render/render-projection.js +0 -281
- package/dist/internal/render/tailwind-style-model.d.ts +0 -19
- package/dist/internal/render/tailwind-style-model.js +0 -1187
- package/dist/internal/runtime/EditEngineRuntime.d.ts +0 -25
- package/dist/internal/runtime/EditEngineRuntime.js +0 -89
- package/dist/internal/runtime/EditEngineRuntimeSnapshot.d.ts +0 -31
- package/dist/internal/runtime/EditEngineRuntimeSnapshot.js +0 -15
- package/dist/internal/runtime/InternalEditEngine.d.ts +0 -44
- package/dist/internal/runtime/InternalEditEngine.js +0 -1391
- package/dist/internal/runtime.d.ts +0 -3
- package/dist/internal/runtime.js +0 -1
- package/dist/internal/topology/topology.d.ts +0 -6
- package/dist/internal/topology/topology.js +0 -98
- package/dist/internal/topology/types.d.ts +0 -35
- package/dist/internal/topology/types.js +0 -5
- package/dist/internal/types.d.ts +0 -1
- package/dist/internal/types.js +0 -1
- package/dist/internal/writeback/in-memory-fs.d.ts +0 -7
- package/dist/internal/writeback/in-memory-fs.js +0 -44
- package/dist/internal/writeback/types.d.ts +0 -45
- package/dist/internal/writeback/types.js +0 -7
- package/dist/internal/writeback/writeback-service.d.ts +0 -7
- package/dist/internal/writeback/writeback-service.js +0 -568
- package/dist/internal-adapter.d.ts +0 -18
- package/dist/internal-adapter.js +0 -350
- package/dist/next-app-router-fs.js +0 -64
- package/dist/preview-runtime.js +0 -102
- package/dist/public-file-system.js +0 -1
- package/dist/runtime-sync.js +0 -321
- package/dist/runtime.js +0 -134
- package/dist/site-edit-instrumentation.js +0 -322
- package/dist/snapshot-file-system.d.ts +0 -19
- package/dist/snapshot-file-system.js +0 -49
- package/dist/source-writeback-test-harness.d.ts +0 -244
- package/dist/source-writeback-test-harness.js +0 -119
- package/dist/types.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,127 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
var mL=Object.create;var Zl=Object.defineProperty;var yL=Object.getOwnPropertyDescriptor;var gL=Object.getOwnPropertyNames;var xL=Object.getPrototypeOf,SL=Object.prototype.hasOwnProperty;var b0=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var bL=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dn=(e,t)=>{for(var r in t)Zl(e,r,{get:t[r],enumerable:!0})},v0=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gL(t))!SL.call(e,n)&&n!==r&&Zl(e,n,{get:()=>t[n],enumerable:!(i=yL(t,n))||i.enumerable});return e};var lt=(e,t,r)=>(r=e!=null?mL(xL(e)):{},v0(t||!e||!e.__esModule?Zl(r,"default",{value:e,enumerable:!0}):r,e)),vL=e=>v0(Zl({},"__esModule",{value:!0}),e);var en=R(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});function L2(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var bn=class{constructor(t,r,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=i}},aa=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function pr(e,t){let{line:r,column:i,index:n}=e;return new bn(r,i+t,n+t)}var iA="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",R2={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:iA},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:iA}},sA={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Qu=e=>e.type==="UpdateExpression"?sA.UpdateExpression[`${e.prefix}`]:sA[e.type],M2={AccessorIsGenerator:({kind:e})=>`A ${e}ter 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.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor 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:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',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:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
2
|
+
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
|
3
|
+
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Qu(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Qu(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Qu(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} 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:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",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.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,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:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' 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.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,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 or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",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:({keyword:e})=>`Unexpected keyword '${e}'.`,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 or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,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.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},F2={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' 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."},B2={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},z2=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),U2=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Qu({type:e})}; please wrap it in parentheses.`},{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:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),K2=["message"];function aA(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function V2({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let n=r==="MissingPlugin"||r==="MissingOneOfPlugins",s={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return s[r]&&(r=s[r]),function a(o,c){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=i,n&&(u.missingPlugin=c.missingPlugin),aA(u,"clone",function(d={}){var h;let{line:y,column:T,index:w}=(h=d.loc)!=null?h:o;return a(new bn(y,T,w),Object.assign({},c,d.details))}),aA(u,"details",c),Object.defineProperty(u,"message",{configurable:!0,get(){let p=`${e(c)} (${o.line}:${o.column})`;return this.message=p,p},set(p){Object.defineProperty(this,"message",{value:p,writable:!0})}}),u}}function xn(e,t){if(Array.isArray(e))return i=>xn(i,e[0]);let r={};for(let i of Object.keys(e)){let n=e[i],s=typeof n=="string"?{message:()=>n}:typeof n=="function"?{message:n}:n,{message:a}=s,o=L2(s,K2),c=typeof a=="string"?()=>a:a;r[i]=V2(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:c},t?{syntaxPlugin:t}:{},o))}return r}var _=Object.assign({},xn(R2),xn(M2),xn(F2),xn(B2),xn`pipelineOperator`(U2));function q2(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function W2(e){let t=q2();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:J2}=Object,oA=(e,t)=>{e&&J2(e,t,{enumerable:!1,value:e[t]})};function Bo(e){return oA(e.loc.start,"index"),oA(e.loc.end,"index"),e}var X2=e=>class extends e{parse(){let r=Bo(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(Bo)),r}parseRegExpLiteral({pattern:r,flags:i}){let n=null;try{n=new RegExp(r,i)}catch{}let s=this.estreeParseLiteral(n);return s.regex={pattern:r,flags:i},s}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let n=this.estreeParseLiteral(i);return n.bigint=String(n.value||r),n}parseDecimalLiteral(r){let n=this.estreeParseLiteral(null);return n.decimal=String(n.value||r),n}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,i){let n=this.startNodeAtNode(r);return n.expression=r,this.finishNodeAt(n,"ChainExpression",i)}directiveToStmt(r){let i=r.value;delete r.value,this.castNodeTo(i,"Literal"),i.raw=i.extra.raw,i.value=i.extra.expressionValue;let n=this.castNodeTo(r,"ExpressionStatement");return n.expression=i,n.directive=i.extra.rawValue,delete i.extra,n}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:i,end:n,loc:s,range:a,raw:o,value:c}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=i,u.end=n,u.loc=s,u.range=a,u.raw=o,u.value=c,u}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,n,s,a){super.parseBlockBody(r,i,n,s,a);let o=r.directives.map(c=>this.directiveToStmt(c));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return delete r.id,r.name=i,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let n=super.parseLiteral(r,i);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(r,i,n=!1){super.parseFunctionBody(r,i,n),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,n,s,a,o,c=!1){let u=this.startNode();u.kind=r.kind,u=super.parseMethod(u,i,n,s,a,o,c),delete u.kind;let{typeParameters:p}=r;p&&(delete r.typeParameters,u.typeParameters=p,this.resetStartLocationFromNode(u,p));let d=this.castNodeTo(u,"FunctionExpression");return r.value=d,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(i,"PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(i,"PropertyDefinition"),i.computed=!1),i}parseClassAccessorProperty(r){let i=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(i.abstract&&this.hasPlugin("typescript")?(delete i.abstract,this.castNodeTo(i,"TSAbstractAccessorProperty")):this.castNodeTo(i,"AccessorProperty")),i}parseObjectProperty(r,i,n,s){let a=super.parseObjectProperty(r,i,n,s);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,i,n,s){return r==="Property"?"value":super.isValidLVal(r,i,n,s)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:n,value:s}=r;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(s,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,n){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(_.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(_.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,n)}finishCallExpression(r,i){let n=super.finishCallExpression(r,i);if(n.callee.type==="Import"){var s,a;this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=(s=n.arguments[1])!=null?s:null,n.attributes=(a=n.arguments[1])!=null?a:null,delete n.arguments,delete n.callee}else n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1;return n}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let n=this.state.lastTokStartLoc,s=super.parseExport(r,i);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(s,"ExportAllDeclaration"),s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=s;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===s.start&&this.resetStartLocation(s,n)}break}return s}stopParseSubscript(r,i){let n=super.stopParseSubscript(r,i);return i.optionalChainMember?this.estreeParseChainExpression(n,r.loc.end):n}parseMember(r,i,n,s,a){let o=super.parseMember(r,i,n,s,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,i){let n=super.castNodeTo(r,i);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(r){let i=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(i),i}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,i,n){return Bo(super.finishNodeAt(r,i,n))}finishNode(r,i){let n=super.finishNode(r,i);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(r,i){super.resetStartLocation(r,i),Bo(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),Bo(r)}},qi=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},rt={brace:new qi("{"),j_oTag:new qi("<tag"),j_cTag:new qi("</tag"),j_expr:new qi("<tag>...</tag>",!0)};rt.template=new qi("`",!0);var Re=!0,oe=!0,mS=!0,zo=!0,li=!0,Z2=!0,rp=class{constructor(t,r={}){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.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},US=new Map;function Ze(e,t={}){t.keyword=e;let r=be(e,t);return US.set(e,r),r}function ur(e,t){return be(e,{beforeExpr:Re,binop:t})}var qo=-1,Rn=[],KS=[],VS=[],qS=[],WS=[],JS=[];function be(e,t={}){var r,i,n,s;return++qo,KS.push(e),VS.push((r=t.binop)!=null?r:-1),qS.push((i=t.beforeExpr)!=null?i:!1),WS.push((n=t.startsExpr)!=null?n:!1),JS.push((s=t.prefix)!=null?s:!1),Rn.push(new rp(e,t)),qo}function ze(e,t={}){var r,i,n,s;return++qo,US.set(e,qo),KS.push(e),VS.push((r=t.binop)!=null?r:-1),qS.push((i=t.beforeExpr)!=null?i:!1),WS.push((n=t.startsExpr)!=null?n:!1),JS.push((s=t.prefix)!=null?s:!1),Rn.push(new rp("name",t)),qo}var Y2={bracketL:be("[",{beforeExpr:Re,startsExpr:oe}),bracketHashL:be("#[",{beforeExpr:Re,startsExpr:oe}),bracketBarL:be("[|",{beforeExpr:Re,startsExpr:oe}),bracketR:be("]"),bracketBarR:be("|]"),braceL:be("{",{beforeExpr:Re,startsExpr:oe}),braceBarL:be("{|",{beforeExpr:Re,startsExpr:oe}),braceHashL:be("#{",{beforeExpr:Re,startsExpr:oe}),braceR:be("}"),braceBarR:be("|}"),parenL:be("(",{beforeExpr:Re,startsExpr:oe}),parenR:be(")"),comma:be(",",{beforeExpr:Re}),semi:be(";",{beforeExpr:Re}),colon:be(":",{beforeExpr:Re}),doubleColon:be("::",{beforeExpr:Re}),dot:be("."),question:be("?",{beforeExpr:Re}),questionDot:be("?."),arrow:be("=>",{beforeExpr:Re}),template:be("template"),ellipsis:be("...",{beforeExpr:Re}),backQuote:be("`",{startsExpr:oe}),dollarBraceL:be("${",{beforeExpr:Re,startsExpr:oe}),templateTail:be("...`",{startsExpr:oe}),templateNonTail:be("...${",{beforeExpr:Re,startsExpr:oe}),at:be("@"),hash:be("#",{startsExpr:oe}),interpreterDirective:be("#!..."),eq:be("=",{beforeExpr:Re,isAssign:zo}),assign:be("_=",{beforeExpr:Re,isAssign:zo}),slashAssign:be("_=",{beforeExpr:Re,isAssign:zo}),xorAssign:be("_=",{beforeExpr:Re,isAssign:zo}),moduloAssign:be("_=",{beforeExpr:Re,isAssign:zo}),incDec:be("++/--",{prefix:li,postfix:Z2,startsExpr:oe}),bang:be("!",{beforeExpr:Re,prefix:li,startsExpr:oe}),tilde:be("~",{beforeExpr:Re,prefix:li,startsExpr:oe}),doubleCaret:be("^^",{startsExpr:oe}),doubleAt:be("@@",{startsExpr:oe}),pipeline:ur("|>",0),nullishCoalescing:ur("??",1),logicalOR:ur("||",1),logicalAND:ur("&&",2),bitwiseOR:ur("|",3),bitwiseXOR:ur("^",4),bitwiseAND:ur("&",5),equality:ur("==/!=/===/!==",6),lt:ur("</>/<=/>=",7),gt:ur("</>/<=/>=",7),relational:ur("</>/<=/>=",7),bitShift:ur("<</>>/>>>",8),bitShiftL:ur("<</>>/>>>",8),bitShiftR:ur("<</>>/>>>",8),plusMin:be("+/-",{beforeExpr:Re,binop:9,prefix:li,startsExpr:oe}),modulo:be("%",{binop:10,startsExpr:oe}),star:be("*",{binop:10}),slash:ur("/",10),exponent:be("**",{beforeExpr:Re,binop:11,rightAssociative:!0}),_in:Ze("in",{beforeExpr:Re,binop:7}),_instanceof:Ze("instanceof",{beforeExpr:Re,binop:7}),_break:Ze("break"),_case:Ze("case",{beforeExpr:Re}),_catch:Ze("catch"),_continue:Ze("continue"),_debugger:Ze("debugger"),_default:Ze("default",{beforeExpr:Re}),_else:Ze("else",{beforeExpr:Re}),_finally:Ze("finally"),_function:Ze("function",{startsExpr:oe}),_if:Ze("if"),_return:Ze("return",{beforeExpr:Re}),_switch:Ze("switch"),_throw:Ze("throw",{beforeExpr:Re,prefix:li,startsExpr:oe}),_try:Ze("try"),_var:Ze("var"),_const:Ze("const"),_with:Ze("with"),_new:Ze("new",{beforeExpr:Re,startsExpr:oe}),_this:Ze("this",{startsExpr:oe}),_super:Ze("super",{startsExpr:oe}),_class:Ze("class",{startsExpr:oe}),_extends:Ze("extends",{beforeExpr:Re}),_export:Ze("export"),_import:Ze("import",{startsExpr:oe}),_null:Ze("null",{startsExpr:oe}),_true:Ze("true",{startsExpr:oe}),_false:Ze("false",{startsExpr:oe}),_typeof:Ze("typeof",{beforeExpr:Re,prefix:li,startsExpr:oe}),_void:Ze("void",{beforeExpr:Re,prefix:li,startsExpr:oe}),_delete:Ze("delete",{beforeExpr:Re,prefix:li,startsExpr:oe}),_do:Ze("do",{isLoop:mS,beforeExpr:Re}),_for:Ze("for",{isLoop:mS}),_while:Ze("while",{isLoop:mS}),_as:ze("as",{startsExpr:oe}),_assert:ze("assert",{startsExpr:oe}),_async:ze("async",{startsExpr:oe}),_await:ze("await",{startsExpr:oe}),_defer:ze("defer",{startsExpr:oe}),_from:ze("from",{startsExpr:oe}),_get:ze("get",{startsExpr:oe}),_let:ze("let",{startsExpr:oe}),_meta:ze("meta",{startsExpr:oe}),_of:ze("of",{startsExpr:oe}),_sent:ze("sent",{startsExpr:oe}),_set:ze("set",{startsExpr:oe}),_source:ze("source",{startsExpr:oe}),_static:ze("static",{startsExpr:oe}),_using:ze("using",{startsExpr:oe}),_yield:ze("yield",{startsExpr:oe}),_asserts:ze("asserts",{startsExpr:oe}),_checks:ze("checks",{startsExpr:oe}),_exports:ze("exports",{startsExpr:oe}),_global:ze("global",{startsExpr:oe}),_implements:ze("implements",{startsExpr:oe}),_intrinsic:ze("intrinsic",{startsExpr:oe}),_infer:ze("infer",{startsExpr:oe}),_is:ze("is",{startsExpr:oe}),_mixins:ze("mixins",{startsExpr:oe}),_proto:ze("proto",{startsExpr:oe}),_require:ze("require",{startsExpr:oe}),_satisfies:ze("satisfies",{startsExpr:oe}),_keyof:ze("keyof",{startsExpr:oe}),_readonly:ze("readonly",{startsExpr:oe}),_unique:ze("unique",{startsExpr:oe}),_abstract:ze("abstract",{startsExpr:oe}),_declare:ze("declare",{startsExpr:oe}),_enum:ze("enum",{startsExpr:oe}),_module:ze("module",{startsExpr:oe}),_namespace:ze("namespace",{startsExpr:oe}),_interface:ze("interface",{startsExpr:oe}),_type:ze("type",{startsExpr:oe}),_opaque:ze("opaque",{startsExpr:oe}),name:be("name",{startsExpr:oe}),placeholder:be("%%",{startsExpr:oe}),string:be("string",{startsExpr:oe}),num:be("num",{startsExpr:oe}),bigint:be("bigint",{startsExpr:oe}),decimal:be("decimal",{startsExpr:oe}),regexp:be("regexp",{startsExpr:oe}),privateName:be("#name",{startsExpr:oe}),eof:be("eof"),jsxName:be("jsxName"),jsxText:be("jsxText",{beforeExpr:Re}),jsxTagStart:be("jsxTagStart",{startsExpr:oe}),jsxTagEnd:be("jsxTagEnd")};function st(e){return e>=93&&e<=133}function G2(e){return e<=92}function Qr(e){return e>=58&&e<=133}function SA(e){return e>=58&&e<=137}function H2(e){return qS[e]}function Ko(e){return WS[e]}function Q2(e){return e>=29&&e<=33}function lA(e){return e>=129&&e<=131}function e4(e){return e>=90&&e<=92}function XS(e){return e>=58&&e<=92}function t4(e){return e>=39&&e<=59}function r4(e){return e===34}function n4(e){return JS[e]}function i4(e){return e>=121&&e<=123}function s4(e){return e>=124&&e<=130}function ui(e){return KS[e]}function ep(e){return VS[e]}function a4(e){return e===57}function np(e){return e>=24&&e<=25}function Ln(e){return Rn[e]}Rn[8].updateContext=e=>{e.pop()};Rn[5].updateContext=Rn[7].updateContext=Rn[23].updateContext=e=>{e.push(rt.brace)};Rn[22].updateContext=e=>{e[e.length-1]===rt.template?e.pop():e.push(rt.template)};Rn[143].updateContext=e=>{e.push(rt.j_expr,rt.j_oTag)};var ZS="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",bA="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",o4=new RegExp("["+ZS+"]"),l4=new RegExp("["+ZS+bA+"]");ZS=bA=null;var vA=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,38,6,186,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,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,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,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],c4=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function vS(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Sn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&o4.test(String.fromCharCode(e)):vS(e,vA)}function Wi(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&l4.test(String.fromCharCode(e)):vS(e,vA)||vS(e,c4)}var YS={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},u4=new Set(YS.keyword),p4=new Set(YS.strict),d4=new Set(YS.strictBind);function TA(e,t){return t&&e==="await"||e==="enum"}function EA(e,t){return TA(e,t)||p4.has(e)}function PA(e){return d4.has(e)}function _A(e,t){return EA(e,t)||PA(e)}function f4(e){return u4.has(e)}function h4(e,t,r){return e===64&&t===64&&Sn(r)}var m4=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","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function y4(e){return m4.has(e)}var Wo=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},Jo=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Wo(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,i){let n=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(n,t,r,i);let s=n.names.get(t)||0;r&16?s=s|4:(n.firstLexicalName||(n.firstLexicalName=t),s=s|2),n.names.set(t,s),r&8&&this.maybeExportDefined(n,t)}else if(r&4)for(let s=this.scopeStack.length-1;s>=0&&(n=this.scopeStack[s],this.checkRedeclarationInScope(n,t,r,i),n.names.set(t,(n.names.get(t)||0)|1),this.maybeExportDefined(n,t),!(n.flags&1667));--s);this.parser.inModule&&n.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,i,n){this.isRedeclaredInScope(t,r,i)&&this.parser.raise(_.VarRedeclaration,n,{identifierName:r})}isRedeclaredInScope(t,r,i){if(!(i&1))return!1;if(i&8)return t.names.has(r);let n=t.names.get(r)||0;return i&16?(n&2)>0||!this.treatFunctionsAsVarInScope(t)&&(n&1)>0:(n&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(n&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},TS=class extends Wo{constructor(...t){super(...t),this.declareFunctions=new Set}},ES=class extends Jo{createScope(t){return new TS(t)}declareName(t,r,i){let n=this.currentScope();if(r&2048){this.checkRedeclarationInScope(n,t,r,i),this.maybeExportDefined(n,t),n.declareFunctions.add(t);return}super.declareName(t,r,i)}isRedeclaredInScope(t,r,i){if(super.isRedeclaredInScope(t,r,i))return!0;if(i&2048&&!t.declareFunctions.has(r)){let n=t.names.get(r);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},g4=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ve=xn`flow`({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:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,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:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",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.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",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:({reservedType:e})=>`Unexpected reserved type ${e}.`,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:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function x4(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function cA(e){return e.importKind==="type"||e.importKind==="typeof"}var S4={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function b4(e,t){let r=[],i=[];for(let n=0;n<e.length;n++)(t(e[n],n,e)?r:i).push(e[n]);return[r,i]}var v4=/\*?\s*@((?:no)?flow)\b/,T4=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return ES}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,i){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=v4.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let n=this.flowParseType();return this.state.inType=i,n}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(ve.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,n=null;return this.match(54)?(this.state.inType=r,n=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(n=this.flowParsePredicate())),[i,n]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),n=this.startNode(),s=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return n.params=a.params,n.rest=a.rest,n.this=a._this,this.expect(11),[n.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(ve.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(134)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),n=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ve.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(o))):(this.expectContextual(125,ve.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let s=null,a=!1;return n.forEach(o=>{x4(o)?(s==="CommonJS"&&this.raise(ve.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(ve.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(ve.AmbiguousDeclareModuleKind,o),s="CommonJS",a=!0)}),r.kind=s||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let n=this.state.value;throw this.raise(ve.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:S4[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"?(r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return this.castNodeTo(i,"DeclareTypeAlias"),i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return this.castNodeTo(i,"DeclareOpaqueType"),i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(ve.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,n){g4.has(r)&&this.raise(n?ve.AssignReservedType:ve.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifierName(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,i){let n=this.startNode(),s=this.flowParseRestrictedIdentifierName(r,i);return this.createIdentifier(n,s)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let i=this.state.startLoc,n=this.startNode(),s=this.flowParseVariance();return n.name=this.flowParseRestrictedIdentifierName(),n.variance=s,n.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),n.default=this.flowParseType()):r&&this.raise(ve.MissingTypeParamDefault,i),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let s=this.flowParseTypeParameter(n);i.params.push(s),s.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==rt.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=i,!this.state.inType&&this.curContext()===rt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,n){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=n,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let n=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(n),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:n,allowProto:s,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];let u,p,d=!1;for(i&&this.match(6)?(this.expect(6),u=9,p=!0):(this.expect(5),u=8,p=!1),c.exact=p;!this.match(u);){let y=!1,T=null,w=null,k=this.startNode();if(s&&this.isContextual(118)){let D=this.lookahead();D.type!==14&&D.type!==17&&(this.next(),T=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let D=this.lookahead();D.type!==14&&D.type!==17&&(this.next(),y=!0)}let C=this.flowParseVariance();if(this.eat(0))T!=null&&this.unexpected(T),this.eat(0)?(C&&this.unexpected(C.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(k,y))):c.indexers.push(this.flowParseObjectTypeIndexer(k,y,C));else if(this.match(10)||this.match(47))T!=null&&this.unexpected(T),C&&this.unexpected(C.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(k,y));else{let D="init";if(this.isContextual(99)||this.isContextual(104)){let z=this.lookahead();SA(z.type)&&(D=this.state.value,this.next())}let U=this.flowParseObjectTypeProperty(k,y,T,C,D,n,a??!p);U===null?(d=!0,w=this.state.lastTokStartLoc):c.properties.push(U)}this.flowObjectTypeSemicolon(),w&&!this.match(8)&&!this.match(9)&&this.raise(ve.UnexpectedExplicitInexactInObject,w)}this.expect(u),n&&(c.inexact=d);let h=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=o,h}flowParseObjectTypeProperty(r,i,n,s,a,o,c){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?c||this.raise(ve.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ve.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(ve.InexactVariance,s),null):(o||this.raise(ve.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),s&&this.raise(ve.SpreadVariance,s),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=n!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,n!=null&&this.unexpected(n),s&&this.unexpected(s.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(ve.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=s),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,n=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?ve.GetterMayNotHaveThisParam:ve.SetterMayNotHaveThisParam,r.value.this),n!==i&&this.raise(r.kind==="get"?_.BadGetterArity:_.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(_.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){r??(r=this.state.startLoc);let n=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let s=this.startNodeAt(r);s.qualification=n,s.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(s,"QualifiedTypeIdentifier")}return n}flowParseGenericType(r,i){let n=this.startNodeAt(r);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,n=!1,s=null,a=this.startNode(),o=this.lookahead(),c=this.state.type===78;return o.type===14||o.type===17?(c&&!r&&this.raise(ve.ThisParamMustBeFirst,a),i=this.parseIdentifier(c),this.eat(17)&&(n=!0,c&&this.raise(ve.ThisParamMayNotBeOptional,a)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),a.name=i,a.optional=n,a.typeAnnotation=s,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:n}}flowIdentToTypeAnnotation(r,i,n){switch(n.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(r,n)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),n,s,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=o,s;case 47:{let c=this.startNode();return c.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),c.params=n.params,c.rest=n.rest,c.this=n._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),this.finishNode(c,"FunctionTypeAnnotation")}case 10:{let c=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(st(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),s;this.eat(12)}return s?n=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):n=this.flowParseFunctionTypeParams(),c.params=n.params,c.rest=n.rest,c.this=n._this,this.expect(11),this.expect(19),c.returnType=this.flowParseType(),c.typeParameters=null,this.finishNode(c,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(ve.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(XS(this.state.type)){let c=ui(this.state.type);return this.next(),super.createIdentifier(i,c)}else if(st(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let s=this.startNodeAt(r),a=this.eat(18);n=n||a,this.expect(0),!a&&this.match(3)?(s.elementType=i,this.next(),i=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=i,s.indexType=this.flowParseType(),this.expect(3),n?(s.optional=a,i=this.finishNode(s,"OptionalIndexedAccessType")):i=this.finishNode(s,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),i=this.parseIdentifierName();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),this.createIdentifier(r,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,n=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,n));return}super.parseFunctionBody(r,!1,n)}parseFunctionBodyAndFinish(r,i,n=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,n)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(Qr(n.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,n){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||st(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(st(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,n)}shouldParseExportDeclaration(){let{type:r}=this.state;return r===126||lA(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||lA(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,n){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let h=this.lookaheadCharCode();if(h===44||h===61||h===58||h===41)return this.setOptionalParametersError(n),r}this.expect(17);let s=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:c,failed:u}=this.tryParseConditionalConsequent(),[p,d]=this.getArrowLikeExpressions(c);if(u||d.length>0){let h=[...a];if(d.length>0){this.state=s,this.state.noArrowAt=h;for(let y=0;y<d.length;y++)h.push(d[y].start);({consequent:c,failed:u}=this.tryParseConditionalConsequent()),[p,d]=this.getArrowLikeExpressions(c)}u&&p.length>1&&this.raise(ve.AmbiguousConditionalArrow,s.startLoc),u&&p.length===1&&(this.state=s,h.push(p[0].start),this.state.noArrowAt=h,{consequent:c,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=c,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let n=[r],s=[];for(;n.length!==0;){let a=n.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):s.push(a),n.push(a.body)):a.type==="ConditionalExpression"&&(n.push(a.consequent),n.push(a.alternate))}return i?(s.forEach(a=>this.finishArrowValidation(a)),[s,[]]):b4(s,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=i(),this.state.noArrowParamsConversionAt.pop()):n=i(),n}parseParenItem(r,i){let n=super.parseParenItem(r,i);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(i);return s.expression=n,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return n}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,n=super.maybeParseExportNamespaceSpecifier(r);return n&&r.exportKind==="type"&&this.unexpected(i),n}parseClassId(r,i,n){super.parseClassId(r,i,n),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,n){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,n),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(ve.DeclareClassElement,s):i.value&&this.raise(ve.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(_.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):h4(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,n){for(let s=0;s<r.length;s++){let a=r[s];a?.type==="TypeCastExpression"&&(r[s]=this.typeCastToParameter(a))}super.toAssignableList(r,i,n)}toReferencedList(r,i){for(let s=0;s<r.length;s++){var n;let a=r[s];a&&a.type==="TypeCastExpression"&&!((n=a.extra)!=null&&n.parenthesized)&&(r.length>1||!i)&&this.raise(ve.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,n){let s=super.parseArrayLike(r,i,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(r,i,n,s){return r==="TypeCastExpression"||super.isValidLVal(r,i,n,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,n,s,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,n,s,a,o),i.params&&a){let c=i.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ve.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&a&&i.value.params){let c=i.value.params;c.length>0&&this.isThisParam(c[0])&&this.raise(ve.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,n,s){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,n,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let i=r.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,i.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let n=i[0];this.isThisParam(n)&&r.kind==="get"?this.raise(ve.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(ve.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,n,s,a,o,c){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let p=super.parseObjPropValue(r,i,n,s,a,o,c);return u&&((p.value||p).typeParameters=u),p}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(ve.PatternIsOptional,r),this.isThisParam(r)&&this.raise(ve.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(ve.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(ve.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let n=super.parseMaybeDefault(r,i);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(ve.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(ve.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,n){i.local=cA(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,n))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,n,s){if(super.applyImportPhase(r,i,n,s),i){if(!n&&this.match(65))return;r.exportKind=n==="type"?n:"value"}else n==="type"&&this.match(55)&&this.unexpected(),r.importKind=n==="type"||n==="typeof"?n:"value"}parseImportSpecifier(r,i,n,s,a){let o=r.imported,c=null;o.type==="Identifier"&&(o.name==="type"?c="type":o.name==="typeof"&&(c="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let d=this.parseIdentifier(!0);c!==null&&!Qr(this.state.type)?(r.imported=d,r.importKind=c,r.local=this.cloneIdentifier(d)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(c!==null&&Qr(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=c;else{if(i)throw this.raise(_.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=this.cloneIdentifier(r.imported))}let p=cA(r);return n&&p&&this.raise(ve.ImportTypeShorthandOnlyInPureImport,r),(n||p)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!n&&!p&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,i){let n=r.kind;n!=="get"&&n!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var n;let s=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(s=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),s),!a.error)return a.node;let{context:u}=this.state,p=u[u.length-1];(p===rt.j_oTag||p===rt.j_expr)&&u.pop()}if((n=a)!=null&&n.error||this.match(47)){var o,c;s=s||this.state.clone();let u,p=this.tryParse(h=>{var y;u=this.flowParseTypeParameterDeclaration();let T=this.forwardNoArrowParamsConversionAt(u,()=>{let k=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(k,u),k});(y=T.extra)!=null&&y.parenthesized&&h();let w=this.maybeUnwrapTypeCastExpression(T);return w.type!=="ArrowFunctionExpression"&&h(),w.typeParameters=u,this.resetStartLocationFromNode(w,u),T},s),d=null;if(p.node&&this.maybeUnwrapTypeCastExpression(p.node).type==="ArrowFunctionExpression"){if(!p.error&&!p.aborted)return p.node.async&&this.raise(ve.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),p.node;d=p.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(d)return this.state=p.failState,d;throw(c=a)!=null&&c.thrown?a.error:p.thrown?p.error:this.raise(ve.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return[s.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,n,s=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(ve.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,n,s)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,i,n){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let s=this.startNodeAt(i);s.callee=r,s.arguments=super.parseCallExpressionArguments(),r=this.finishNode(s,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let s=this.state.clone(),a=this.tryParse(c=>this.parseAsyncArrowWithTypeParameters(i)||c(),s);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,n),s);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,n)}parseSubscript(r,i,n,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,n)return s.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,n,s)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let n=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(ve.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ve.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let n=this.input.charCodeAt(i+r),s=this.input.charCodeAt(i+r+1);return n===58&&s===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:n===58&&s!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:n}){this.raise(ve.EnumBooleanMemberNotInitialized,r,{memberName:n,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?ve.EnumInvalidMemberInitializerSymbolType:ve.EnumInvalidMemberInitializerPrimaryType:ve.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(ve.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(ve.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 134:{let n=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:n}}flowEnumCheckExplicitTypeMismatch(r,i,n){let{explicitType:s}=i;s!==null&&s!==n&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:c,init:u}=this.flowEnumMemberRaw(),p=c.name;if(p==="")continue;/^[a-z]/.test(p)&&this.raise(ve.EnumInvalidMemberName,c,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:r}),n.has(p)&&this.raise(ve.EnumDuplicateMemberName,c,{memberName:p,enumName:r}),n.add(p);let d={enumName:r,explicitType:i,memberName:p};switch(o.id=c,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,d,"boolean"),o.init=u.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,d,"number"),o.init=u.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,d,"string"),o.init=u.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,d);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,d);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,d);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:n}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return i}else{for(let s of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!st(this.state.type))throw this.raise(ve.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(ve.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let n=i.name,s=i.loc.start,a=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:o,hasUnknownMembers:c}=this.flowEnumMembers({enumName:n,explicitType:a});switch(r.hasUnknownMembers=c,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let p=o.booleanMembers.length,d=o.numberMembers.length,h=o.stringMembers.length,y=o.defaultedMembers.length;if(!p&&!d&&!h&&!y)return u();if(!p&&!d)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!d&&!h&&p>=y){for(let T of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(T.loc.start,{enumName:n,memberName:T.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!p&&!h&&d>=y){for(let T of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(T.loc.start,{enumName:n,memberName:T.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(ve.EnumInconsistentMemberValues,s,{enumName:n}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},E4={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},P4=/\r\n|[\r\n\u2028\u2029]/,Gu=new RegExp(P4.source,"g");function ia(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function uA(e,t,r){for(let i=t;i<r;i++)if(ia(e.charCodeAt(i)))return!0;return!1}var yS=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,gS=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function _4(e){switch(e){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}}var Vi=xn`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,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 ci(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function na(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return na(e.object)+"."+na(e.property);throw new Error("Node had unexpected type: "+e.type)}var k4=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Vi.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}r+=this.input.slice(i,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:default:ia(n)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=r?`
|
|
4
|
+
`:`\r
|
|
5
|
+
`):n=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(r){let i="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_.UnterminatedString,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);if(s===r)break;s===38?(i+=this.input.slice(n,this.state.pos),i+=this.jsxReadEntity(),n=this.state.pos):ia(s)?(i+=this.input.slice(n,this.state.pos),i+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}i+=this.input.slice(n,this.state.pos++),this.finishToken(134,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let n=this.readInt(i,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let i=0,n=!1;for(;i++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){let s=this.input.slice(r,this.state.pos),a=E4[s];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(Wi(r)||r===45);this.finishToken(141,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:XS(this.state.type)?r.name=ui(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let n=this.startNodeAt(r);return n.namespace=i,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let n=this.startNodeAt(r);n.object=i,n.property=this.jsxParseIdentifier(),i=this.finishNode(n,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(rt.brace),this.next(),r=this.jsxParseExpressionContainer(r,rt.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(Vi.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Vi.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(rt.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let n=this.parseExpression();r.expression=n}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(rt.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(rt.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(144);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(144)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(144),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),n=[],s=this.jsxParseOpeningElementAt(r),a=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}n.push(this.jsxParseElementAt(r));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(rt.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(o)):n.push(this.jsxParseExpressionContainer(o,rt.j_expr));break}default:this.unexpected()}ci(s)&&!ci(a)&&a!==null?this.raise(Vi.MissingClosingTagFragment,a):!ci(s)&&ci(a)?this.raise(Vi.MissingClosingTagElement,a,{openingTagName:na(s.name)}):!ci(s)&&!ci(a)&&na(a.name)!==na(s.name)&&this.raise(Vi.MissingClosingTagElement,a,{openingTagName:na(s.name)})}if(ci(s)?(i.openingFragment=s,i.closingFragment=a):(i.openingElement=s,i.closingElement=a),i.children=n,this.match(47))throw this.raise(Vi.UnwrappedAdjacentJSXElements,this.state.startLoc);return ci(s)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===rt.j_expr){this.jsxReadToken();return}if(i===rt.j_oTag||i===rt.j_cTag){if(Sn(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&i===rt.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:n}=this.state;if(n===56&&r===143)i.splice(-2,2,rt.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)i.push(rt.j_oTag);else if(n===144){let s=i[i.length-1];s===rt.j_oTag&&r===56||s===rt.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===rt.j_expr):(this.setContext(rt.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=H2(n)}},PS=class extends Wo{constructor(...t){super(...t),this.tsNames=new Map}},_S=class extends Jo{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new PS(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(t))return!0;if(!r&&i>1){for(let n=0;n<i-1;n++)if(this.importsStack[n].has(t))return!0}return!1}declareName(t,r,i){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(_.VarRedeclaration,i,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let n=this.currentScope(),s=n.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(n,t),n.tsNames.set(t,s|16);return}super.declareName(t,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(n,t,r,i),this.maybeExportDefined(n,t)),s=s|1),r&256&&(s=s|2),r&512&&(s=s|4),r&128&&(s=s|8),s&&n.tsNames.set(t,s)}isRedeclaredInScope(t,r,i){let n=t.tsNames.get(r);if((n&2)>0){if(i&256){let s=!!(i&512),a=(n&4)>0;return s!==a}return!0}return i&128&&(n&8)>0?t.names.get(r)&2?!!(i&1):!1:i&2&&(n&1)>0?!0:super.isRedeclaredInScope(t,r,i)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let n=i-1;n>=0;n--){let a=this.scopeStack[n].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},kS=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function tp(e,t){return(e?2:0)|(t?1:0)}var IS=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,i]=t;if(!this.hasPlugin(r))return!1;let n=this.plugins.get(r);for(let s of Object.keys(i))if(n?.[s]!==i[s])return!1;return!0}}getPluginOption(t,r){var i;return(i=this.plugins.get(t))==null?void 0:i[r]}};function kA(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function I4(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Xo(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Hr(e,t,r){let i=null,n=t.length;for(;i===null&&n>0;)i=t[--n];i===null||i.start>r.start?Xo(e,r.comments):kA(i,r.comments)}var AS=class extends IS{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let n=i-1,s=r[n];s.start===t.end&&(s.leadingNode=t,n--);let{start:a}=t;for(;n>=0;n--){let o=r[n],c=o.end;if(c>a)o.containingNode=t,this.finalizeComment(o),r.splice(n,1);else{c===a&&(o.trailingNode=t);break}}}finalizeComment(t){var r;let{comments:i}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&kA(t.leadingNode,i),t.trailingNode!==null&&I4(t.trailingNode,i);else{let n=t.containingNode,s=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(s)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":Hr(n,n.properties,t);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Hr(n,n.arguments,t);break;case"ImportExpression":Hr(n,[n.source,(r=n.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Hr(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":Hr(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Hr(n,n.specifiers,t);break;case"TSEnumDeclaration":Hr(n,n.members,t);break;case"TSEnumBody":Hr(n,n.members,t);break;case"TSInterfaceBody":Hr(n,n.body,t);break;default:{if(n.type==="RecordExpression"){Hr(n,n.properties,t);break}if(n.type==="TupleExpression"){Hr(n,n.elements,t);break}Xo(n,i)}}else Xo(n,i)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let n=r[i-1];n.leadingNode===t&&(n.leadingNode=null)}takeSurroundingComments(t,r,i){let{commentStack:n}=this.state,s=n.length;if(s===0)return;let a=s-1;for(;a>=0;a--){let o=n[a],c=o.end;if(o.start===i)o.leadingNode=t;else if(c===r)o.trailingNode=t;else if(c<r)break}}},wS=class e{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[rt.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:i,startLine:n,startColumn:s}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=i,this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new bn(n,s,i)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new bn(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},A4=function(t){return t>=48&&t<=57},pA={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Hu={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function dA(e,t,r,i,n,s){let a=r,o=i,c=n,u="",p=null,d=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,c),u+=t.slice(d,r);break}let y=t.charCodeAt(r);if(w4(e,y,t,r)){u+=t.slice(d,r);break}if(y===92){u+=t.slice(d,r);let T=C4(t,r,i,n,e==="template",s);T.ch===null&&!p?p={pos:r,lineStart:i,curLine:n}:u+=T.ch,{pos:r,lineStart:i,curLine:n}=T,d=r}else y===8232||y===8233?(++r,++n,i=r):y===10||y===13?e==="template"?(u+=t.slice(d,r)+`
|
|
6
|
+
`,++r,y===13&&t.charCodeAt(r)===10&&++r,++n,d=i=r):s.unterminated(a,o,c):++r}return{pos:r,str:u,firstInvalidLoc:p,lineStart:i,curLine:n,containsInvalid:!!p}}function w4(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function C4(e,t,r,i,n,s){let a=!n;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),c=e.charCodeAt(t++);switch(c){case 110:return o(`
|
|
7
|
+
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=CS(e,t,r,i,2,!1,a,s),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=AA(e,t,r,i,a,s),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,r,i);default:if(c>=48&&c<=55){let u=t-1,d=/^[0-7]+/.exec(e.slice(u,t+2))[0],h=parseInt(d,8);h>255&&(d=d.slice(0,-1),h=parseInt(d,8)),t+=d.length-1;let y=e.charCodeAt(t);if(d!=="0"||y===56||y===57){if(n)return o(null);s.strictNumericEscape(u,r,i)}return o(String.fromCharCode(h))}return o(String.fromCharCode(c))}}function CS(e,t,r,i,n,s,a,o){let c=t,u;return{n:u,pos:t}=IA(e,t,r,i,16,n,s,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(c,r,i):t=c-1),{code:u,pos:t}}function IA(e,t,r,i,n,s,a,o,c,u){let p=t,d=n===16?pA.hex:pA.decBinOct,h=n===16?Hu.hex:n===10?Hu.dec:n===8?Hu.oct:Hu.bin,y=!1,T=0;for(let w=0,k=s??1/0;w<k;++w){let C=e.charCodeAt(t),D;if(C===95&&o!=="bail"){let U=e.charCodeAt(t-1),z=e.charCodeAt(t+1);if(o){if(Number.isNaN(z)||!h(z)||d.has(U)||d.has(z)){if(u)return{n:null,pos:t};c.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(C>=97?D=C-97+10:C>=65?D=C-65+10:A4(C)?D=C-48:D=1/0,D>=n){if(D<=9&&u)return{n:null,pos:t};if(D<=9&&c.invalidDigit(t,r,i,n))D=0;else if(a)D=0,y=!0;else break}++t,T=T*n+D}return t===p||s!=null&&t-p!==s||y?{n:null,pos:t}:{n:T,pos:t}}function AA(e,t,r,i,n,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=CS(e,t,r,i,e.indexOf("}",t)-t,!0,n,s),++t,o!==null&&o>1114111)if(n)s.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=CS(e,t,r,i,4,!1,n,s));return{code:o,pos:t}}function Uo(e,t,r){return new bn(r,e-t,e)}var N4=new Set([103,109,115,105,121,117,100,118]),gn=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new aa(t.startLoc,t.endLoc)}},NS=class extends AS{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,n,s,a)=>this.optionFlags&2048?(this.raise(_.InvalidDigit,Uo(i,n,s),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(_.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,n,s)=>{this.recordStrictModeErrors(_.StrictNumericEscape,Uo(i,n,s))},unterminated:(i,n,s)=>{throw this.raise(_.UnterminatedString,Uo(i-1,n,s))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_.StrictNumericEscape),unterminated:(i,n,s)=>{throw this.raise(_.UnterminatedTemplate,Uo(i,n,s))}}),this.state=new wS,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new gn(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return yS.lastIndex=t,yS.test(this.input)?yS.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return gS.lastIndex=t,gS.test(this.input)?gS.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let i=this.input.charCodeAt(t);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,n=this.input.indexOf(t,i+2);if(n===-1)throw this.raise(_.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+t.length,Gu.lastIndex=i+2;Gu.test(this.input)&&Gu.lastIndex<=n;)++this.state.curLine,this.state.lineStart=Gu.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(i+2,n),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(n+t.length),loc:new aa(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(s),s}skipLineComment(t){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!ia(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s),loc:new aa(i,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++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:{let n=this.skipBlockComment("*/");n!==void 0&&(this.addComment(n),r?.push(n));break}case 47:{let n=this.skipLineComment(2);n!==void 0&&(this.addComment(n),r?.push(n));break}default:break e}break;default:if(_4(i))++this.state.pos;else if(i===45&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(t===0||this.state.lineStart>t)){let s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),r?.push(s))}else break e}else if(i===60&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),r?.push(s))}else break e}else break e}}if(r?.length>0){let i=this.state.pos,n={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(_.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?_.RecordExpressionHashIncorrectStartSyntaxType:_.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Sn(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!ia(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(t){let r=t===42?55:54,i=1,n=this.input.charCodeAt(this.state.pos+1);t===42&&n===42&&(i++,n=this.input.charCodeAt(this.state.pos+2),r=57),n===61&&!this.state.inType&&(i++,r=t===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let i=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(_.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Sn(t)){this.readWord(t);return}}throw this.raise(_.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,i)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,i,n,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(_.UnterminatedRegExp,pr(t,1));let u=this.input.charCodeAt(s);if(ia(u))throw this.raise(_.UnterminatedRegExp,pr(t,1));if(i)i=!1;else{if(u===91)n=!0;else if(u===93&&n)n=!1;else if(u===47&&!n)break;i=u===92}}let a=this.input.slice(r,s);++s;let o="",c=()=>pr(t,s+2-r);for(;s<this.length;){let u=this.codePointAtPos(s),p=String.fromCharCode(u);if(N4.has(u))u===118?o.includes("u")&&this.raise(_.IncompatibleRegExpUVFlags,c()):u===117&&o.includes("v")&&this.raise(_.IncompatibleRegExpUVFlags,c()),o.includes(p)&&this.raise(_.DuplicateRegExpFlags,c());else if(Wi(u)||u===92)this.raise(_.MalformedRegExpFlags,c());else break;++s,o+=p}this.state.pos=s,this.finishToken(138,{pattern:a,flags:o})}readInt(t,r,i=!1,n=!0){let{n:s,pos:a}=IA(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,n,this.errorHandlers_readInt,!1);return this.state.pos=a,s}readRadixNumber(t){let r=this.state.pos,i=this.state.curPosition(),n=!1;this.state.pos+=2;let s=this.readInt(t);s==null&&this.raise(_.InvalidDigit,pr(i,2),{radix:t});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,n=!0;else if(a===109)throw this.raise(_.InvalidDecimal,i);if(Sn(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());if(n){let o=this.input.slice(r,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,s)}readNumber(t){let r=this.state.pos,i=this.state.curPosition(),n=!1,s=!1,a=!1,o=!1;!t&&this.readInt(10)===null&&this.raise(_.InvalidNumber,this.state.curPosition());let c=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(c){let y=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(_.StrictOctalLiteral,i),!this.state.strict){let T=y.indexOf("_");T>0&&this.raise(_.ZeroDigitNumericSeparator,pr(i,T))}o=c&&!/[89]/.test(y)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!o&&(++this.state.pos,this.readInt(10),n=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!o&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(_.InvalidOrMissingExponent,i),n=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((n||c)&&this.raise(_.InvalidBigIntLiteral,i),++this.state.pos,s=!0),u===109){this.expectPlugin("decimal",this.state.curPosition()),(a||c)&&this.raise(_.InvalidDecimal,i),++this.state.pos;var p=!0}if(Sn(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,this.state.curPosition());let d=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(136,d);return}if(p){this.finishToken(137,d);return}let h=o?parseInt(d,8):parseFloat(d);this.finishToken(135,h)}readCodePoint(t){let{code:r,pos:i}=AA(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(t){let{str:r,pos:i,curLine:n,lineStart:s}=dA(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(134,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:n,curLine:s,lineStart:a}=dA("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=a,this.state.curLine=s,i&&(this.state.firstInvalidTemplateEscapePos=new bn(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),this.input.codePointAt(n)===96?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(t,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(t,r):this.state.strictErrors.set(i,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",i=this.state.pos,n=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let s=this.codePointAtPos(this.state.pos);if(Wi(s))this.state.pos+=s<=65535?1:2;else if(s===92){this.state.containsEsc=!0,r+=this.input.slice(n,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?Sn:Wi;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(_.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;let c=this.readCodePoint(!0);c!==null&&(o(c)||this.raise(_.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(c)),n=this.state.pos}else break}return r+this.input.slice(n,this.state.pos)}readWord(t){let r=this.readWord1(t),i=US.get(r);i!==void 0?this.finishToken(i,ui(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;XS(t)&&this.state.containsEsc&&this.raise(_.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:ui(t)})}raise(t,r,i={}){let n=r instanceof bn?r:r.loc.start,s=t(n,i);if(!(this.optionFlags&2048))throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(t,r,i={}){let n=r instanceof bn?r:r.loc.start,s=n.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let c=a[o];if(c.loc.index===s)return a[o]=t(n,i);if(c.loc.index<s)break}return this.raise(t,r,i)}updateContext(t){}unexpected(t,r){throw this.raise(_.UnexpectedToken,t??this.state.startLoc,{expected:r?ui(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(_.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(_.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,i,n)=>{this.raise(t,Uo(r,i,n))}}},OS=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},DS=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new OS)}exit(){let t=this.stack.pop(),r=this.current();for(let[i,n]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,n):this.parser.raise(_.InvalidPrivateFieldResolution,n,{identifierName:i})}declarePrivateName(t,r,i){let{privateNames:n,loneAccessors:s,undefinedPrivateNames:a}=this.current(),o=n.has(t);if(r&3){let c=o&&s.get(t);if(c){let u=c&4,p=r&4,d=c&3,h=r&3;o=d===h||u!==p,o||s.delete(t)}else o||s.set(t,r)}o&&this.parser.raise(_.PrivateNameRedeclaration,i,{identifierName:t}),n.add(t),a.delete(t)}usePrivateName(t,r){let i;for(i of this.stack)if(i.privateNames.has(t))return;i?i.undefinedPrivateNames.set(t,r):this.parser.raise(_.InvalidPrivateFieldResolution,r,{identifierName:t})}},oa=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},ip=class extends oa{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let i=r.index;this.declarationErrors.set(i,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},$S=class{constructor(t){this.parser=void 0,this.stack=[new oa],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let i=r.loc.start,{stack:n}=this,s=n.length-1,a=n[s];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return;a=n[--s]}this.parser.raise(t,i)}recordArrowParameterBindingError(t,r){let{stack:i}=this,n=i[i.length-1],s=r.loc.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(t,s);else if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(t,s);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,i=r.length-1,n=r[i];for(;n.canBeArrowParameterDeclaration();)n.type===2&&n.recordDeclarationError(_.AwaitBindingIdentifier,t),n=r[--i]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,n])=>{this.parser.raise(i,n);let s=t.length-2,a=t[s];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(n.index),a=t[--s]})}};function O4(){return new oa(3)}function D4(){return new ip(1)}function $4(){return new ip(2)}function wA(){return new oa}var jS=class extends NS{addExtra(t,r,i,n=!0){if(!t)return;let{extra:s}=t;s==null&&(s={},t.extra=s),n?s[r]=i:Object.defineProperty(s,r,{enumerable:n,value:i})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let i=this.input.charCodeAt(t+r.length);return!(Wi(i)||(i&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return uA(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return uA(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(_.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let i={node:null};try{let n=t((s=null)=>{throw i.node=s,i});if(this.state.errors.length>r.errors.length){let s=this.state;return this.state=r,this.state.tokensLength=s.tokensLength,{node:n,error:s.errors[r.errors.length],thrown:!1,aborted:!1,failState:s}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let s=this.state;if(this.state=r,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:s};if(n===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:s};throw n}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:n,privateKeyLoc:s,optionalParametersLoc:a,voidPatternLoc:o}=t,c=!!i||!!n||!!a||!!s||!!o;if(!r)return c;i!=null&&this.raise(_.InvalidCoverInitializedName,i),n!=null&&this.raise(_.DuplicateProto,n),s!=null&&this.raise(_.UnexpectedPrivateField,s),a!=null&&this.unexpected(a),o!=null&&this.raise(_.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return SA(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=t;let s=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new kS;let c=this.classScope;this.classScope=new DS(this);let u=this.expressionScope;return this.expressionScope=new $S(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=n,this.scope=s,this.prodParam=o,this.classScope=c,this.expressionScope=u}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let i=r?514:1;this.optionFlags&4&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},sa=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},la=class{constructor(t,r,i){this.type="",this.start=r,this.end=0,this.loc=new aa(i),t?.optionFlags&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},LS=la.prototype;LS.__clone=function(){let e=new la(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){let n=t[r];n!=="leadingComments"&&n!=="trailingComments"&&n!=="innerComments"&&(e[n]=this[n])}return e};var RS=class extends jS{startNode(){let t=this.state.startLoc;return new la(this,t.index,t)}startNodeAt(t){return new la(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,i){return t.type=r,t.end=i.index,t.loc.end=i,this.optionFlags&128&&(t.range[1]=i.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:i,end:n,loc:s,range:a,name:o}=t,c=Object.create(LS);return c.type=r,c.start=i,c.end=n,c.loc=s,c.range=a,c.name=o,t.extra&&(c.extra=t.extra),c}cloneStringLiteral(t){let{type:r,start:i,end:n,loc:s,range:a,extra:o}=t,c=Object.create(LS);return c.type=r,c.start=i,c.end=n,c.loc=s,c.range=a,c.extra=o,c.value=t.value,c}},MS=e=>e.type==="ParenthesizedExpression"?MS(e.expression):e,FS=class extends RS{toAssignable(t,r=!1){var i,n;let s;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(s=MS(t),r?s.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment,t):s.type!=="CallExpression"&&s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)&&this.raise(_.InvalidParenthesizedAssignment,t):this.raise(_.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let o=0,c=t.properties.length,u=c-1;o<c;o++){var a;let p=t.properties[o],d=o===u;this.toAssignableObjectExpressionProp(p,d,r),d&&p.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(_.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:c}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(c,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,(n=t.extra)==null?void 0:n.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(_.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(_.VoidPatternInitializer,t.left),this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(s,r);break}}toAssignableObjectExpressionProp(t,r,i){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?_.PatternHasAccessor:_.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let n=t.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,i),r||this.raise(_.RestTrailingComma,t)}else this.toAssignable(t,i)}toAssignableList(t,r,i){let n=t.length-1;for(let s=0;s<=n;s++){let a=t[s];a&&(this.toAssignableListItem(t,s,i),a.type==="RestElement"&&(s<n?this.raise(_.RestTrailingComma,a):r&&this.raise(_.RestTrailingComma,r)))}}toAssignableListItem(t,r,i){let n=t[r];if(n.type==="SpreadElement"){this.castNodeTo(n,"RestElement");let s=n.argument;this.checkToRestConversion(s,!0),this.toAssignable(s,i)}else this.toAssignable(n,i)}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let i=t.properties.length-1;return t.properties.every((n,s)=>n.type!=="ObjectMethod"&&(s===i||n.type!=="SpreadElement")&&this.isAssignable(n))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let i of t)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(_.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,i){let n=i&1,s=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),n&&this.match(12))s.push(null);else{if(this.eat(t))break;if(this.match(21)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||i&2)&&(o=this.parseFunctionParamType(o)),s.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(i&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(_.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());s.push(this.parseBindingElement(i,o))}}return s}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(_.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseBindingElement(t,r){let i=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(i),r.length&&(i.decorators=r,this.resetStartLocationFromNode(i,r[0])),this.parseMaybeDefault(i.loc.start,i)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(_.VoidPatternInitializer,r),i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,r,i,n){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,n=!1,s=!1,a=!1,o=!1){var c;let u=t.type;if(this.isObjectMethod(t))return;let p=this.isOptionalMemberExpression(t);if(p||u==="MemberExpression"){p&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(_.InvalidLhsOptionalChaining,t,{ancestor:r})),i!==64&&this.raise(_.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,i,s);let{name:C}=t;n&&(n.has(C)?this.raise(_.ParamDupe,t):n.add(C));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(_.VoidPatternCatchClauseParam,t);let d=MS(t);o||(o=d.type==="CallExpression"&&(d.callee.type==="Import"||d.callee.type==="Super"));let h=this.isValidLVal(u,o,!(a||(c=t.extra)!=null&&c.parenthesized)&&r.type==="AssignmentExpression",i);if(h===!0)return;if(h===!1){let C=i===64?_.InvalidLhs:_.InvalidLhsBinding;this.raise(C,t,{ancestor:r});return}let y,T;typeof h=="string"?(y=h,T=u==="ParenthesizedExpression"):[y,T]=h;let w=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,k=t[y];if(Array.isArray(k))for(let C of k)C&&this.checkLVal(C,w,i,n,s,T,!0);else k&&this.checkLVal(k,w,i,n,s,T,o)}checkIdentifier(t,r,i=!1){this.state.strict&&(i?_A(t.name,this.inModule):PA(t.name))&&(r===64?this.raise(_.StrictEvalArguments,t,{referenceName:t.name}):this.raise(_.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(_.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(_.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?_.RestTrailingComma:_.ElementAfterRest,this.state.startLoc),!0):!1}},xS=/in(?:stanceof)?|as|satisfies/y;function j4(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function fA(e){if(!e)throw new Error("Assert fail")}var me=xn`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",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:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function L4(e){switch(e){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}}function hA(e){return e==="private"||e==="public"||e==="protected"}function R4(e){return e==="in"||e==="out"}var M4=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:me.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:me.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:me.InvalidModifierOnTypeParameter})}getScopeHandler(){return _S}tsIsIdentifier(){return st(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i,n){if(!st(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.includes(s)){if(n&&this.match(106)||i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:n,errorTemplate:s=me.InvalidModifierOnTypeMember},a){let o=(u,p,d,h)=>{p===d&&a[h]&&this.raise(me.InvalidModifiersOrder,u,{orderedModifiers:[d,h]})},c=(u,p,d,h)=>{(a[d]&&p===h||a[h]&&p===d)&&this.raise(me.IncompatibleModifiers,u,{modifiers:[d,h]})};for(;;){let{startLoc:u}=this.state,p=this.tsParseModifier(r.concat(i??[]),n,a.static);if(!p)break;hA(p)?a.accessibility?this.raise(me.DuplicateAccessibilityModifier,u,{modifier:p}):(o(u,p,p,"override"),o(u,p,p,"static"),o(u,p,p,"readonly"),a.accessibility=p):R4(p)?(a[p]&&this.raise(me.DuplicateModifier,u,{modifier:p}),a[p]=!0,o(u,p,"in","out")):(hasOwnProperty.call(a,p)?this.raise(me.DuplicateModifier,u,{modifier:p}):(o(u,p,"static","readonly"),o(u,p,"static","override"),o(u,p,"override","readonly"),o(u,p,"abstract","override"),c(u,p,"declare","override"),c(u,p,"static","abstract")),a[p]=!0),i!=null&&i.includes(p)&&this.raise(s,u,{modifier:p})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let n=[];for(;!this.tsIsListTerminator(r);)n.push(i());return n}tsParseDelimitedList(r,i,n){return j4(this.tsParseDelimitedListWorker(r,i,!0,n))}tsParseDelimitedListWorker(r,i,n,s){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let c=i();if(c==null)return;if(a.push(c),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;n&&this.expect(12);return}return s&&(s.value=o),a}tsParseBracketedList(r,i,n,s,a){s||(n?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return n?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(me.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let i=this.startNode();return this.isContextual(76)?(i.method=!1,i.key=this.parseIdentifier(!0),i.computed=!1,i.shorthand=!1):this.unexpected(null,76),this.expect(14),i.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(i)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),i=[];for(this.expect(5);!this.match(8);){let n=this.state.type;st(n)||n===134?i.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=i,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let i;if(r&1&&this.match(78))if(r&2)i=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),i=this.finishNode(n,"ThisExpression")}else i=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let n=this.startNodeAtNode(i);n.left=i,n.right=this.parseIdentifier(!!(r&1)),i=this.finishNode(n,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,n),i.params.length===0&&this.raise(me.EmptyTypeParameters,i),n.value!==-1&&this.addExtra(i,"trailingComma",n.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let n=r===19,s="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[s]=this.tsParseBindingListForSignature(),n?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:n}=i;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(me.UnsupportedSignatureParameterKind,i,{type:n})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),st(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){i&&this.raise(me.ReadonlyForMethodSignature,r);let n=r;n.kind&&this.match(47)&&this.raise(me.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let s="parameters",a="typeAnnotation";if(n.kind==="get")n[s].length>0&&(this.raise(_.BadGetterArity,this.state.curPosition()),this.isThisParam(n[s][0])&&this.raise(me.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[s].length!==1)this.raise(_.BadSetterArity,this.state.curPosition());else{let o=n[s][0];this.isThisParam(o)&&this.raise(me.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(me.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(me.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[a]&&this.raise(me.SetAccessorCannotHaveReturnType,n[a])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=r;i&&(n.readonly=!0);let s=this.tsTryParseTypeAnnotation();return s&&(n.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(n=>{let{type:s}=n;i&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&n.optional)&&this.raise(me.OptionalTypeBeforeRequired,n),i||(i=s==="TSNamedTupleMember"&&n.optional||s==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,i=this.eat(21),{startLoc:n}=this.state,s,a,o,c,p=Qr(this.state.type)?this.lookaheadCharCode():null;if(p===58)s=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),c=this.tsParseType();else if(p===63){o=!0;let d=this.state.value,h=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,a=this.createIdentifier(this.startNodeAt(n),d),this.expect(17),this.expect(14),c=this.tsParseType()):(s=!1,c=h,this.expect(17))}else c=this.tsParseType(),o=this.eat(17),s=this.eat(14);if(s){let d;a?(d=this.startNodeAt(n),d.optional=o,d.label=a,d.elementType=c,this.eat(17)&&(d.optional=!0,this.raise(me.TupleOptionalAfterType,this.state.lastTokStartLoc))):(d=this.startNodeAt(n),d.optional=o,this.raise(me.InvalidTupleMemberLabel,c),d.label=c,d.elementType=this.tsParseType()),c=this.finishNode(d,"TSNamedTupleMember")}else if(o){let d=this.startNodeAt(n);d.typeAnnotation=c,c=this.finishNode(d,"TSOptionalType")}if(i){let d=this.startNodeAt(r);d.typeAnnotation=c,c=this.finishNode(d,"TSRestType")}return c}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let n=this.startNode();return r==="TSConstructorType"&&(n.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==135&&i.type!==136&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(st(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":L4(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,i)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,i=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(r);n.elementType=i,this.expect(3),i=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(r);n.objectType=i,n.indexType=this.tsParseType(),this.expect(3),i=this.finishNode(n,"TSIndexedAccessType")}return i}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(me.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return i4(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,n){let s=this.startNode(),a=this.eat(n),o=[];do o.push(i());while(this.eat(n));return o.length===1&&!a?o[0]:(s.types=o,this.finishNode(s,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(st(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let n=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let c=this.tsParseThisTypeOrThisTypePredicate();return c.type==="TSThisType"?(n.parameterName=c,n.asserts=!0,n.typeAnnotation=null,c=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(c,n),c.asserts=!0),i.typeAnnotation=c,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return s?(n.parameterName=this.parseIdentifier(),n.asserts=s,n.typeAnnotation=null,i.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return n.parameterName=a,n.typeAnnotation=o,n.asserts=s,i.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!st(this.state.type)&&!this.match(78)?!1:(r&&this.raise(_.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){fA(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(me.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{let s=this.startNode();return s.expression=this.tsParseEntityName(3),this.match(47)&&(s.typeParameters=this.tsParseTypeArguments()),this.finishNode(s,"TSExpressionWithTypeArguments")});return n.length||this.raise(me.EmptyHeritageClauseType,i,{token:r}),n}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),st(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(me.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==rt.brace){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}else return r()}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let n=this.startNode();this.tsParseModuleOrNamespaceDeclaration(n,!0),r.body=n}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,n){r.isExport=n||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let s=this.tsParseModuleReference();return r.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(me.ImportAliasHasImportType,s),r.moduleReference=s,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),n=r();return this.state=i,n}tsTryParseAndCatch(r){let i=this.tryParse(n=>r()||n());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),n=r();if(n!==void 0&&n!==!1)return n;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type;return this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(me.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(me.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(r,{declare:!0});if(n)return n}default:if(st(i))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,i,n,s){switch(i){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||st(this.state.type)))return this.tsParseAbstractDeclaration(r,s);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(st(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(n)&&st(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(n)&&st(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(r);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=i,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(me.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===rt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return s4(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,i){let n=i.length?i[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let a=s.accessibility,o=s.override,c=s.readonly;!(r&4)&&(a||c||o)&&this.raise(me.UnexpectedParameterModifier,n);let u=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(u);let p=this.parseMaybeDefault(u.loc.start,u);if(a||c||o){let d=this.startNodeAt(n);return i.length&&(d.decorators=i),a&&(d.accessibility=a),c&&(d.readonly=c),o&&(d.override=o),p.type!=="Identifier"&&p.type!=="AssignmentPattern"&&this.raise(me.UnsupportedParameterPropertyKind,d),d.parameter=p,this.finishNode(d,"TSParameterProperty")}return i.length&&(u.decorators=i),p}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(me.PatternIsOptional,i)}setArrowFunctionParameters(r,i,n){super.setArrowFunctionParameters(r,i,n),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,n=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(me.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,s,n):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,n))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(me.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,n){let s=super.parseArrayLike(r,i,n);return s.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(r,i,n,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return s.stop=!0,r;s.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,c=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(r)){let h=this.tsTryParseGenericAsyncArrowFunction(i);if(h)return s.stop=!0,h}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(np(this.state.type)){let h=super.parseTaggedTemplateExpression(r,i,s);return h.typeParameters=u,h}if(!n&&this.eat(10)){let h=this.startNodeAt(i);return h.callee=r,h.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(h.arguments),h.typeParameters=u,s.optionalChainMember&&(h.optional=a),this.finishCallExpression(h,s.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&p!==93&&p!==120&&Ko(p)&&!this.hasPrecedingLineBreak())return;let d=this.startNodeAt(i);return d.expression=r,d.typeParameters=u,this.finishNode(d,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),c)return c.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(me.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(c.expression=super.stopParseSubscript(r,s))),c}return super.parseSubscript(r,i,n,s)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:n}=r;n.type==="TSInstantiationExpression"&&!((i=n.extra)!=null&&i.parenthesized)&&(r.typeParameters=n.typeParameters,r.callee=n.expression)}parseExprOp(r,i,n){let s;if(ep(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(_.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,n)}return super.parseExprOp(r,i,n)}checkReservedWord(r,i,n,s){this.state.isAmbientContext||super.checkReservedWord(r,i,n,s)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(me.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,n,s){super.applyImportPhase(r,i,n,s),i?r.exportKind=n==="type"?"type":"value":r.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let i;if(st(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,n);i=super.parseImportSpecifiersAndAfter(r,n)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(me.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){let n=r;this.next();let s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(n,!1):n.importKind="value",this.tsParseImportEqualsDeclaration(n,s,!0)}else if(this.eat(29)){let n=r;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=r;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,n=!1){let{isAmbientContext:s}=this.state,a=super.parseVarStatement(r,i,n||s);if(!s)return a;if(!r.declare&&(i==="using"||i==="await using"))return this.raiseOverwrite(me.UsingDeclarationInAmbientContext,r,i),a;for(let{id:o,init:c}of a.declarations)c&&(i==="var"||i==="let"||o.typeAnnotation?this.raise(me.InitializerNotAllowedInAmbientContext,c):B4(c,this.hasPlugin("estree"))||this.raise(me.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,c));return a}parseStatementContent(r,i){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,s=this.startNode();this.next();let a=n===125?this.tsTryParseDeclare(s):this.tsParseAbstractDeclaration(s,i);return a?(n===125&&(a.declare=!0),a):(s.expression=this.createIdentifier(this.startNodeAt(s.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(s,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let s=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(s)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,i)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,i)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(n=>hA(n)?r.accessibility===n:!!r[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,n){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:me.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,s)&&this.raise(me.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,n,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,n,s){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(me.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(me.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(me.IndexSignatureHasDeclare,i),i.override&&this.raise(me.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(me.NonAbstractClassHasAbstractMethod,i),i.override&&(n.hadSuperClass||this.raise(me.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,n,s)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(me.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(me.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,n){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let s=this.lookaheadCharCode();if(s===44||s===61||s===58||s===41)return this.setOptionalParametersError(n),r}return super.parseConditional(r,i,n)}parseParenItem(r,i){let n=super.parseParenItem(r,i);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(i);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(me.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=st(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||n)&&(r.exportKind="type"),n&&a.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,n,s){if((!i||n)&&this.isContextual(113))return;super.parseClassId(r,i,n,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(me.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(me.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(me.PrivateElementHasAbstract,r),r.accessibility&&this.raise(me.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(me.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,n,s,a,o){let c=this.tsTryParseTypeParameters(this.tsParseConstModifier);c&&a&&this.raise(me.ConstructorHasTypeParameters,c);let{declare:u=!1,kind:p}=i;u&&(p==="get"||p==="set")&&this.raise(me.DeclareAccessor,i,{kind:p}),c&&(i.typeParameters=c),super.pushClassMethod(r,i,n,s,a,o)}pushClassPrivateMethod(r,i,n,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,n,s)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&r.value.body==null||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass)if(r.superClass.type==="TSInstantiationExpression"){let i=r.superClass,n=i.expression;this.takeSurroundingComments(n,n.start,n.end);let s=i.typeParameters;this.takeSurroundingComments(s,s.start,s.end),r.superClass=n,r.superTypeParameters=s}else(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,n,s,a,o,c){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,n,s,a,o,c)}parseFunctionParams(r,i){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(r.typeParameters=n),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(r.id.typeAnnotation=n,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var n,s,a,o,c;let u,p,d;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),p=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!p.error)return p.node;let{context:T}=this.state,w=T[T.length-1];(w===rt.j_oTag||w===rt.j_expr)&&T.pop()}if(!((n=p)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let h,y=this.tryParse(T=>{var w,k;h=this.tsParseTypeParameters(this.tsParseConstModifier);let C=super.parseMaybeAssign(r,i);return(C.type!=="ArrowFunctionExpression"||(w=C.extra)!=null&&w.parenthesized)&&T(),((k=h)==null?void 0:k.params.length)!==0&&this.resetStartLocationFromNode(C,h),C.typeParameters=h,C},u);if(!y.error&&!y.aborted)return h&&this.reportReservedArrowTypeParam(h),y.node;if(!p&&(fA(!this.hasPlugin("jsx")),d=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!d.error))return d.node;if((s=p)!=null&&s.node)return this.state=p.failState,p.node;if(y.node)return this.state=y.failState,h&&this.reportReservedArrowTypeParam(h),y.node;if((a=d)!=null&&a.node)return this.state=d.failState,d.node;throw((o=p)==null?void 0:o.error)||y.error||((c=d)==null?void 0:c.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(me.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(n=>{let s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),s});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(me.UnexpectedTypeCastInParameter,r):this.raise(me.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,n,s){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!n)&&["expression",!0];default:return super.isValidLVal(r,i,n,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,i){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r,i);return s.typeParameters=n,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,i)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let n=super.parseMaybeDefault(r,i);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(me.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableListItem(r,i,n){let s=r[i];s.type==="TSTypeCastExpression"&&(r[i]=this.typeCastToParameter(s)),super.toAssignableListItem(r,i,n)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),s=this.getObjectOrClassMethodParams(r)[0];return s&&this.isThisParam(s)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=n}}parseClass(r,i,n){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,n)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(r.abstract=!0,this.raise(me.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r));throw this.unexpected(null,80)}parseMethod(r,i,n,s,a,o,c){let u=super.parseMethod(r,i,n,s,a,o,c);if((u.abstract||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:h}=u;this.raise(me.AbstractMethodHasImplementation,u,{methodName:h.type==="Identifier"&&!u.computed?h.name:`[${this.input.slice(this.offsetToSourcePos(h.start),this.offsetToSourcePos(h.end))}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,n,s){return!i&&s?(this.parseTypeOnlyImportExportSpecifier(r,!1,n),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,n,s))}parseImportSpecifier(r,i,n,s,a){return!i&&s?(this.parseTypeOnlyImportExportSpecifier(r,!0,n),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,n,s,n?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,n){let s=i?"imported":"local",a=i?"local":"exported",o=r[s],c,u=!1,p=!0,d=o.loc.start;if(this.isContextual(93)){let y=this.parseIdentifier();if(this.isContextual(93)){let T=this.parseIdentifier();Qr(this.state.type)?(u=!0,o=y,c=i?this.parseIdentifier():this.parseModuleExportName(),p=!1):(c=T,p=!1)}else Qr(this.state.type)?(p=!1,c=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=y)}else Qr(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&n&&this.raise(i?me.TypeModifierIsUsedInTypeImports:me.TypeModifierIsUsedInTypeExports,d),r[s]=o,r[a]=c;let h=i?"importKind":"exportKind";r[h]=u?"type":"value",p&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=this.cloneIdentifier(r[s])),i&&this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var i,n,s,a,o,c,u,p,d,h,y,T,w,k,C,D,U,z,q,ye,we,Pe,Qe,yt,wt,br,$,te,le,pe,K,B,j,G,xe,ke,je,De,et,We,Le,it,gt,Ue,dt,ft,Vt,zt;switch(r.type){case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(n=r.decorators)!=null||(r.decorators=[]),(s=r.optional)!=null||(r.optional=!1),(a=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(c=r.decorators)!=null||(r.decorators=[]),(u=r.override)!=null||(r.override=!1),(p=r.readonly)!=null||(r.readonly=!1),(d=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(h=r.declare)!=null||(r.declare=!1),(y=r.returnType)!=null||(r.returnType=void 0),(T=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(w=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(k=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(C=r.accessibility)!=null||(r.accessibility=void 0),(D=r.readonly)!=null||(r.readonly=!1),(U=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(z=r.declare)!=null||(r.declare=!1),(q=r.definite)!=null||(r.definite=!1),(ye=r.readonly)!=null||(r.readonly=!1),(we=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(Pe=r.accessibility)!=null||(r.accessibility=void 0),(Qe=r.decorators)!=null||(r.decorators=[]),(yt=r.override)!=null||(r.override=!1),(wt=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(br=r.id)!=null||(r.id=null);case"ClassDeclaration":($=r.abstract)!=null||(r.abstract=!1),(te=r.declare)!=null||(r.declare=!1),(le=r.decorators)!=null||(r.decorators=[]),(pe=r.implements)!=null||(r.implements=[]),(K=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(B=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(j=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(G=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(xe=r.const)!=null||(r.const=!1),(ke=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(je=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(De=r.qualifier)!=null||(r.qualifier=null),(et=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(We=r.declare)!=null||(r.declare=!1),(Le=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(it=r.optional)!=null||(r.optional=!1),(gt=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(Ue=r.declare)!=null||(r.declare=!1),(dt=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(ft=r.const)!=null||(r.const=!1),(Vt=r.in)!=null||(r.in=!1),(zt=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,i){if(Sn(r)){if(xS.lastIndex=i,xS.test(this.input)){let n=this.codePointAtPos(xS.lastIndex);if(!Wi(n)&&n!==92)return!1}return!0}else return r===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(i,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),i=this.codePointAtPos(r);return this.chStartsBindingIdentifier(i,r)||i===34||i===39}};function F4(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:NA(e.object)}function B4(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(i==="Literal"){let{value:n}=e;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(CA(e,t)||z4(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||F4(e))}function CA(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function z4(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&CA(i,t))return!0}return!1}function NA(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:NA(e.object)}var mA=xn`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),U4=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let n=r;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=i,n}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,n,s){r!==void 0&&super.checkReservedWord(r,i,n,s)}cloneIdentifier(r){let i=super.cloneIdentifier(r);return i.type==="Placeholder"&&(i.expectedNode=r.expectedNode),i}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,n,s){return r==="Placeholder"||super.isValidLVal(r,i,n,s)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){if(super.chStartsBindingIdentifier(r,i))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(r,i){var n;((n=r.label)==null?void 0:n.type)!=="Placeholder"&&super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var n;if(i.type!=="Placeholder"||(n=i.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(i,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let s=r;return s.name=i.name,this.finishPlaceholder(s,"Statement")}parseBlock(r,i,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,n)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,n){let s=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else{if(n||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,s);throw this.raise(mA.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,n);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,s)}parseExport(r,i){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(r,i);let s=r;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=n,s.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(s,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(ui(133),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var n;return(n=r.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(n=>n.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let n=this.startNodeAtNode(i);return n.local=i,r.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(mA.UnexpectedSpace,this.state.lastTokEndLoc)}},K4=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),st(this.state.type)){let n=this.parseIdentifierName(),s=this.createIdentifier(i,n);if(this.castNodeTo(s,"V8IntrinsicIdentifier"),this.match(10))return s}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},yA=["minimal","fsharp","hack","smart"],gA=["^^","@@","^","%","#"];function V4(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let i=e.get("decorators").decoratorsBeforeExport;if(i!=null&&typeof i!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let n=e.get("decorators").allowCallParenthesized;if(n!=null&&typeof n!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let i=e.get("pipelineOperator").proposal;if(!yA.includes(i)){let n=yA.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`)}if(i==="hack"){var r;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let n=e.get("pipelineOperator").topicToken;if(!gA.includes(n)){let s=gA.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(n==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(i==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let i=e.get("recordAndTuple").syntaxType;if(i!=null){let n=["hash","bar"];if(!n.includes(i))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+n.map(s=>`'${s}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let i=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw i.missingPlugins="doExpressions",i}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var OA={estree:X2,jsx:k4,flow:T4,typescript:M4,v8intrinsic:K4,placeholders:U4},q4=Object.keys(OA),BS=class extends FS{checkProto(t,r,i,n){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return i;let s=t.key;return(s.type==="Identifier"?s.name:s.value)==="__proto__"?r?(this.raise(_.RecordNoProto,s),!0):(i&&(n?n.doubleProtoLoc===null&&(n.doubleProtoLoc=s.loc.start):this.raise(_.DuplicateProto,s)),!0):i}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(_.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(_.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,i=this.parseMaybeAssign(t);if(this.match(12)){let n=this.startNodeAt(r);for(n.expressions=[i];this.eat(12);)n.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let i=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();let c=this.parseYield(i);return r&&(c=r.call(this,c,i)),c}let s;t?s=!1:(t=new sa,s=!0);let{type:a}=this.state;(a===10||st(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,i)),Q2(this.state.type)){let c=this.startNodeAt(i),u=this.state.value;if(c.operator=u,this.match(29)){this.toAssignable(o,!0),c.left=o;let p=i.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=p&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=p&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=p&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=p&&(t.voidPatternLoc=null)}else c.left=o;return this.next(),c.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(c,"AssignmentExpression"),void 0,void 0,void 0,void 0,u==="||="||u==="&&="||u==="??="),c}else s&&this.checkExpressionErrors(t,!0);if(n){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?Ko(c):Ko(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_.YieldNotInGeneratorFunction,i),this.parseYield(i)}return o}parseMaybeConditional(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprOps(t);return this.shouldExitDescending(n,i)?n:this.parseConditional(n,r,t)}parseConditional(t,r,i){if(this.eat(17)){let n=this.startNodeAt(r);return n.test=t,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(n,i)?n:this.parseExprOp(n,r,-1)}parseExprOp(t,r,i){if(this.isPrivateName(t)){let s=this.getPrivateNameSV(t);(i>=ep(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_.PrivateInExpectedIn,t,{identifierName:s}),this.classScope.usePrivateName(s,t.loc.start)}let n=this.state.type;if(t4(n)&&(this.prodParam.hasIn||!this.match(58))){let s=ep(n);if(s>i){if(n===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=n===41||n===42,c=n===40;if(c&&(s=ep(42)),this.next(),n===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(_.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(n,s);let u=this.finishNode(a,o||c?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(c&&(p===41||p===42)||o&&p===40)throw this.raise(_.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,r,i)}}return t}parseExprOpRightExpr(t,r){let i=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),i)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,a4(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return z2.has(i.type)&&!((t=i.extra)!=null&&t.parenthesized)&&this.raise(_.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipeTopicUnused,r),i}checkExponentialAfterUnary(t){this.match(57)&&this.raise(_.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let i=this.state.startLoc,n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();let c=this.parseAwait(i);return r||this.checkExponentialAfterUnary(c),c}let s=this.match(34),a=this.startNode();if(n4(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let c=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&c){let u=a.argument;u.type==="Identifier"?this.raise(_.StrictDelete,a):this.hasPropertyAsPrivateName(u)&&this.raise(_.DeletePrivateField,a)}if(!s)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,s,t);if(n){let{type:c}=this.state;if((this.hasPlugin("v8intrinsic")?Ko(c):Ko(c)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(_.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(t,r,i){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let n=this.state.startLoc,s=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return s;for(;r4(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(n);a.operator=this.state.value,a.prefix=!1,a.argument=s,this.next(),this.checkLVal(s,s=this.finishNode(a,"UpdateExpression"))}return s}parseExprSubscripts(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,n=this.parseExprAtom(t);return this.shouldExitDescending(n,i)?n:this.parseSubscripts(n,r)}parseSubscripts(t,r,i){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,i,n),n.maybeAsyncArrow=!1;while(!n.stop);return t}parseSubscript(t,r,i,n){let{type:s}=this.state;if(!i&&s===15)return this.parseBind(t,r,i,n);if(np(s))return this.parseTaggedTemplateExpression(t,r,n);let a=!1;if(s===18){if(i&&(this.raise(_.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,n);n.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,n,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,n,o,a):this.stopParseSubscript(t,n)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,i,n,s){let a=this.startNodeAt(r);return a.object=t,a.computed=n,n?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(_.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=s,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,i,n){let s=this.startNodeAt(r);return s.object=t,this.next(),s.callee=this.parseNoCallExpr(),n.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(t,r,i,n){let s=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:c,optionalChainMember:u}=i;c&&(this.expressionScope.enter($4()),a=new sa),u&&(o.optional=n),n?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(t.type!=="Super",o,a);let p=this.finishCallExpression(o,u);return c&&this.shouldParseAsyncArrow()&&!n?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),p)):(c&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=s,p}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,i){let n=this.startNodeAt(r);return n.tag=t,n.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(_.OptionalChainingNoTemplate,r),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(_.ImportCallArity,t);else for(let i of t.arguments)i.type==="SpreadElement"&&this.raise(_.ImportCallSpreadArgument,i);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,i){let n=[],s=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(s)s=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(11,!1,i,t))}return this.state.inFSharpPipelineDirectBody=a,n}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&Xo(t,r.innerComments),r.callee.trailingComments&&Xo(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,i=null,{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(_.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let s=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(s)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let s=r.callee=this.parseNoCallExpr();if(s.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(_.UnsupportedBind,s)}case 139:return this.raise(_.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);throw this.unexpected()}case 47:{let s=this.input.codePointAt(this.nextTokenStart());throw Sn(s)||s===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(n===137)return this.parseDecimalLiteral(this.state.value);if(n===2||n===1)return this.parseArrayLike(this.state.type===2?4:3,!0);if(n===6||n===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(st(n)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let s=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:c}=this.state;if(c===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(st(c))return s&&this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(c===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return s&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=pr(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),i=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(r,i,t,n)}finishTopicReference(t,r,i,n){if(this.testTopicReferenceConfiguration(i,r,n))return i==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(_.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(_.PipeTopicUnconfiguredToken,r,{token:ui(n)})}testTopicReferenceConfiguration(t,r,i){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:ui(i)}]);case"smart":return i===27;default:throw this.raise(_.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(tp(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=i,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.optionFlags&16||this.raise(_.SuperNotAllowed,t):this.scope.allowSuper||this.optionFlags&16||this.raise(_.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(_.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(pr(this.state.startLoc,1)),i=this.state.value;return this.next(),t.id=this.createIdentifier(r,i),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,i){t.meta=r;let n=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==i||n)&&this.raise(_.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(_.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,i){return this.addExtra(i,"rawValue",t),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=t,this.next(),this.finishNode(i,r)}parseLiteral(t,r){let i=this.startNode();return this.parseLiteralAtNode(t,r,i)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(D4());let n=this.state.maybeInArrowParameters,s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],c=new sa,u=!0,p,d;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,c.optionalParametersLoc===null?null:c.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let T=this.state.startLoc;if(p=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),T)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,c,this.parseParenItem))}let h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=n,this.state.inFSharpPipelineDirectBody=s;let y=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(y=this.parseArrow(y))?(this.checkDestructuringPrivate(c),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(y,o,!1),y):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),p&&this.unexpected(p),this.checkExpressionErrors(c,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,h)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(t);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let i=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(_.UnexpectedNewTarget,i),i}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),i=this.parseNoCallExpr();t.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(_.ImportCallNotNewExpression,i)}parseTemplateElement(t){let{start:r,startLoc:i,end:n,value:s}=this.state,a=r+1,o=this.startNodeAt(pr(i,1));s===null&&(t||this.raise(_.InvalidEscapeSequenceTemplate,pr(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),u=c?-1:-2,p=n+u;o.value={raw:this.input.slice(a,p).replace(/\r\n?/g,`
|
|
8
|
+
`),cooked:s===null?null:s.slice(1,u)},o.tail=c,this.next();let d=this.finishNode(o,"TemplateElement");return this.resetEndLocation(d,pr(this.state.lastTokEndLoc,u)),d}parseTemplate(t){let r=this.startNode(),i=this.parseTemplateElement(t),n=[i],s=[];for(;!i.tail;)s.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(i=this.parseTemplateElement(t));return r.expressions=s,r.quasis=n,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,i,n){i&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,c=this.startNode();for(c.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(c);break}let p;r?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(n),a=this.checkProto(p,i,a,n)),i&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(_.InvalidRecordProperty,p),p.shorthand&&this.addExtra(p,"shorthand",!0),c.properties.push(p)}this.next(),this.state.inFSharpPipelineDirectBody=s;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(c,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(_.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),n=!1,s=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let c=this.state.containsEsc;if(this.parsePropertyName(i,t),!o&&!c&&this.maybeAsyncOrAccessorProp(i)){let{key:u}=i,p=u.name;p==="async"&&!this.hasPrecedingLineBreak()&&(n=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(p==="get"||p==="set")&&(s=!0,this.resetPreviousNodeTrailingComments(u),i.kind=p,this.match(55)&&(o=!0,this.raise(_.AccessorIsGenerator,this.state.curPosition(),{kind:p}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,n,!1,s,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let i=this.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t);n.length!==i&&this.raise(t.kind==="get"?_.BadGetterArity:_.BadSetterArity,t),t.kind==="set"&&((r=n[n.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(_.BadSetterRestParameter,t)}parseObjectMethod(t,r,i,n,s){if(s){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return n&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,i,n){if(t.shorthand=!1,this.eat(14))return t.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,n),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),i)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let s=this.state.startLoc;n!=null?n.shorthandAssignLoc===null&&(n.shorthandAssignLoc=s):this.raise(_.InvalidCoverInitializedName,s),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,i,n,s,a,o){let c=this.parseObjectMethod(t,i,n,s,a)||this.parseObjectProperty(t,r,s,o);return c||this.unexpected(),c}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:n}=this.state,s;if(Qr(i))s=this.parseIdentifier(!0);else switch(i){case 135:s=this.parseNumericLiteral(n);break;case 134:s=this.parseStringLiteral(n);break;case 136:s=this.parseBigIntLiteral(n);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(_.UnexpectedPrivateField,a),s=this.parsePrivateName();break}default:if(i===137){s=this.parseDecimalLiteral(n);break}this.unexpected()}t.key=s,i!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,i,n,s,a,o=!1){this.initFunction(t,i),t.generator=r,this.scope.enter(530|(o?576:0)|(s?32:0)),this.prodParam.enter(tp(i,t.generator)),this.parseFunctionParams(t,n);let c=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),c}parseArrayLike(t,r,i){r&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=this.startNode();return this.next(),s.elements=this.parseExprList(t,!r,i,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,i,n){this.scope.enter(518);let s=tp(i,!1);!this.match(5)&&this.prodParam.hasIn&&(s|=8),this.prodParam.enter(s),this.initFunction(t,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,n)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,!1),t.params=r}parseFunctionBodyAndFinish(t,r,i=!1){return this.parseFunctionBody(t,!1,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=!1){let n=r&&!this.match(5);if(this.expressionScope.enter(wA()),n)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let s=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let c=!this.isSimpleParamList(t.params);o&&c&&this.raise(_.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let u=!s&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!c,r,u),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,i=t.length;r<i;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,i,n=!0){let s=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,s,n)}parseExprList(t,r,i,n){let s=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}s.push(this.parseExprListItem(t,r,i))}return s}parseExprListItem(t,r,i,n){let s;if(this.match(12))r||this.raise(_.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){let a=this.state.startLoc;s=this.parseParenItem(this.parseSpread(i),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(_.UnexpectedArgumentPlaceholder,this.state.startLoc);let a=this.startNode();this.next(),s=this.finishNode(a,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowInOrVoidPattern(t,i,this.parseParenItem);return s}parseIdentifier(t){let r=this.startNode(),i=this.parseIdentifierName(t);return this.createIdentifier(r,i)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}createIdentifierAt(t,r,i){return t.name=r,t.loc.identifierName=r,this.finishNodeAt(t,"Identifier",i)}parseIdentifierName(t){let r,{startLoc:i,type:n}=this.state;Qr(n)?r=this.state.value:this.unexpected();let s=G2(n);return t?s&&this.replaceToken(132):this.checkReservedWord(r,i,s,!1),this.next(),r}checkReservedWord(t,r,i,n){if(t.length>10||!y4(t))return;if(i&&f4(t)){this.raise(_.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?n?_A:EA:TA)(t,this.inModule)){this.raise(_.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||np(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(_.YieldInParameter,r);let i=!1,n=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:n=this.parseMaybeAssign()}return r.delegate=i,r.argument=n,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(_.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(_.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let i=this.startNodeAt(r);return i.callee=t,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=t,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=i,n}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,i){if(r!=null&&this.match(88)){let n=this.lookaheadCharCode();if(n===44||n===(t===3?93:t===8?125:41)||n===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,i)}parsePropertyNamePrefixOperator(t){}},SS={kind:1},W4={kind:2},J4=/[\uD800-\uDFFF]/u,bS=/in(?:stanceof)?/y;function X4(e,t,r){for(let i=0;i<e.length;i++){let n=e[i],{type:s}=n;if(typeof s=="number"){if(s===139){let{loc:a,start:o,value:c,end:u}=n,p=o+1,d=pr(a.start,1);e.splice(i,1,new gn({type:Ln(27),value:"#",start:o,end:p,startLoc:a.start,endLoc:d}),new gn({type:Ln(132),value:c,start:p,end:u,startLoc:d,endLoc:a.end})),i++;continue}if(np(s)){let{loc:a,start:o,value:c,end:u}=n,p=o+1,d=pr(a.start,1),h;t.charCodeAt(o-r)===96?h=new gn({type:Ln(22),value:"`",start:o,end:p,startLoc:a.start,endLoc:d}):h=new gn({type:Ln(8),value:"}",start:o,end:p,startLoc:a.start,endLoc:d});let y,T,w,k;s===24?(T=u-1,w=pr(a.end,-1),y=c===null?null:c.slice(1,-1),k=new gn({type:Ln(22),value:"`",start:T,end:u,startLoc:w,endLoc:a.end})):(T=u-2,w=pr(a.end,-2),y=c===null?null:c.slice(1,-2),k=new gn({type:Ln(23),value:"${",start:T,end:u,startLoc:w,endLoc:a.end})),e.splice(i,1,h,new gn({type:Ln(20),value:y,start:p,end:T,startLoc:d,endLoc:w}),k),i+=2;continue}n.type=Ln(s)}}return e}var zS=class extends BS{parseTopLevel(t,r){return t.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=X4(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,r,i){if(t.sourceType=i,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[s,a]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,a,{localName:s});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let n;return r===140?n=this.finishNode(t,"Program"):n=this.finishNodeAt(t,"Program",pr(this.state.startLoc,-1)),n}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),i=this.castNodeTo(t.expression,"DirectiveLiteral"),n=i.value,s=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),a=i.value=s.slice(1,-1);return this.addExtra(i,"raw",s),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",n),r.value=i,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let i=this.lookaheadCharCodeSince(t+2);if(i!==61&&i!==58&&i!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(Sn(t)){if(bS.lastIndex=r,bS.test(this.input)){let i=this.codePointAtPos(bS.lastIndex);if(!Wi(i)&&i!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let i=this.state.type,n=this.startNode(),s=!!(t&2),a=!!(t&4),o=t&1;switch(i){case 60:return this.parseBreakContinueStatement(n,!0);case 63:return this.parseBreakContinueStatement(n,!1);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!s&&a);case 80:return s||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,n),!0);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(this.isAwaitUsing())return this.allowsUsing()?s?this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,n):this.raise(_.UnexpectedLexicalDeclaration,n):this.raise(_.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?s||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(_.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc)break;let p=this.nextTokenStart(),d=this.codePointAtPos(p);if(d!==91&&(!s&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,p)&&d!==123))break}case 75:s||this.raise(_.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let p=this.state.value;return this.parseVarStatement(n,p)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{let p=this.lookaheadCharCode();if(p===40||p===46)break}case 82:{!(this.optionFlags&8)&&!o&&this.raise(_.UnexpectedImportExport,this.state.startLoc),this.next();let p;return i===83?p=this.parseImport(n):p=this.parseExport(n,r),this.assertModuleNodeAllowed(p),p}default:if(this.isAsyncFunction())return s||this.raise(_.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!s&&a)}let c=this.state.value,u=this.parseExpression();return st(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(n,c,u,t):this.parseExpressionStatement(n,u,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(_.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,i){if(t){var n;(n=r.decorators)!=null&&n.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(_.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),i&&this.resetStartLocationFromNode(i,r)}return r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let n=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(n,i);let s=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(i,n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==i&&this.raise(_.DecoratorArgumentsOutsideParentheses,s)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let n=this.startNodeAt(r);n.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()):n.property=this.parseIdentifier(!0),n.computed=!1,i=this.finishNode(n,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(i,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let i=this.startNodeAt(r);return i.callee=t,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let i;for(i=0;i<this.state.labels.length;++i){let n=this.state.labels[i];if((t.label==null||n.name===t.label.name)&&(n.kind!=null&&(r||n.kind===1)||t.label&&r))break}if(i===this.state.labels.length){let n=r?"BreakStatement":"ContinueStatement";this.raise(_.IllegalBreakContinue,t,{type:n})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(SS),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(SS);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let i=this.isContextual(100);{let c=this.isAwaitUsing(),u=c||this.isForUsing(),p=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||p){let d=this.startNode(),h;c?(h="await using",this.recordAwaitIfAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):h=this.state.value,this.next(),this.parseVar(d,!0,h);let y=this.finishNode(d,"VariableDeclaration"),T=this.match(58);return T&&u&&this.raise(_.ForInUsing,y),(T||this.isContextual(102))&&y.declarations.length===1?this.parseForIn(t,y,r):(r!==null&&this.unexpected(r),this.parseFor(t,y))}}let n=this.isContextual(95),s=new sa,a=this.parseExpression(!0,s),o=this.isContextual(102);if(o&&(i&&this.raise(_.ForOfLet,a),r===null&&n&&a.type==="Identifier"&&this.raise(_.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(s),this.toAssignable(a,!0);let c=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:c}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(s,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,i){return this.next(),this.parseFunction(t,1|(i?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(_.IllegalReturn,this.state.startLoc),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();let r=t.cases=[];this.expect(5),this.state.labels.push(W4),this.scope.enter(256);let i;for(let n;!this.match(8);)if(this.match(61)||this.match(65)){let s=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),s?i.test=this.parseExpression():(n&&this.raise(_.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),n=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(_.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,i=!1){return this.next(),this.parseVar(t,!1,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(SS),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(_.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,i,n){for(let a of this.state.labels)a.name===r&&this.raise(_.LabelRedeclaration,i,{labelName:r});let s=e4(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.sourceToOffsetPos(this.state.start),o.kind=s;else break}return this.state.labels.push({name:r,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=n&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,i){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,i){let n=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(n,t,!1,8,i),r&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,i,n,s){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,n,s)}parseBlockOrModuleBlockBody(t,r,i,n,s){let a=this.state.strict,o=!1,c=!1;for(;!this.match(n);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!c){if(this.isValidDirective(u)){let p=this.stmtToDirective(u);r.push(p),!o&&p.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}c=!0,this.state.strictErrors.clear()}t.push(u)}s?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,i){let n=this.match(58);return this.next(),n?i!==null&&this.unexpected(i):t.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(_.ForInOfLoopInitializer,r,{type:n?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(_.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,n?"ForInStatement":"ForOfStatement")}parseVar(t,r,i,n=!1){let s=t.declarations=[];for(t.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!n&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(_.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),s.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let i=this.parseBindingAtom();r==="using"||r==="await using"?(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(_.UsingDeclarationHasBindingPattern,i.loc.start):i.type==="VoidPattern"&&this.raise(_.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=i}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let i=r&2,n=!!(r&1),s=n&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(i&&this.raise(_.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),n&&(t.id=this.parseFunctionId(s));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(tp(a,t.generator)),n||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,n?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),n&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||st(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(O4()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,i){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,i),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,n),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:t},n=[],s=this.startNode();if(s.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(n.length>0)throw this.raise(_.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){n.push(this.parseDecorator());continue}let a=this.startNode();n.length&&(a.decorators=n,this.resetStartLocationFromNode(a,n[0]),n=[]),this.parseClassMember(s,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(_.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),n.length)throw this.raise(_.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(t,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let n=r;return n.kind="method",n.computed=!1,n.key=i,n.static=!1,this.pushClassMethod(t,n,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let n=r;return n.computed=!1,n.key=i,n.static=!1,t.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(t,r,i){let n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,i,n)}parseClassMemberWithIsStatic(t,r,i,n){let s=r,a=r,o=r,c=r,u=r,p=s,d=s;if(r.static=n,this.parsePropertyNamePrefixOperator(r),this.eat(55)){p.kind="method";let C=this.match(139);if(this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),C){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(s)&&this.raise(_.ConstructorIsGenerator,s.key),this.pushClassMethod(t,s,!0,!1,!1,!1);return}let h=!this.state.containsEsc&&st(this.state.type),y=this.parseClassElementName(r),T=h?y.name:null,w=this.isPrivateName(y),k=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(p.kind="method",w){this.pushClassPrivateMethod(t,a,!1,!1);return}let C=this.isNonstaticConstructor(s),D=!1;C&&(s.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(_.DuplicateConstructor,y),C&&this.hasPlugin("typescript")&&r.override&&this.raise(_.OverrideOnConstructor,y),i.hadConstructor=!0,D=i.hadSuperClass),this.pushClassMethod(t,s,!1,!1,C,D)}else if(this.isClassProperty())w?this.pushClassPrivateProperty(t,c):this.pushClassProperty(t,o);else if(T==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(y);let C=this.eat(55);d.optional&&this.unexpected(k),p.kind="method";let D=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(d),D?this.pushClassPrivateMethod(t,a,C,!0):(this.isNonstaticConstructor(s)&&this.raise(_.ConstructorIsAsync,s.key),this.pushClassMethod(t,s,C,!0,!1,!1))}else if((T==="get"||T==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(y),p.kind=T;let C=this.match(139);this.parseClassElementName(s),C?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(s)&&this.raise(_.ConstructorIsAccessor,s.key),this.pushClassMethod(t,s,!1,!1,!1,!1)),this.checkGetterSetterParams(s)}else if(T==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(y);let C=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,C)}else this.isLineTerminator()?w?this.pushClassPrivateProperty(t,c):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:i}=this.state;if((r===132||r===134)&&t.static&&i==="prototype"&&this.raise(_.StaticPrototype,this.state.startLoc),r===139){i==="constructor"&&this.raise(_.ConstructorClassPrivateField,this.state.startLoc);let n=this.parsePrivateName();return t.key=n,n}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var i;this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(_.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(_.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let i=this.parseClassPrivateProperty(r);t.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(t,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(_.ConstructorClassField,r.key);let n=this.parseClassAccessorProperty(r);t.body.push(n),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassMethod(t,r,i,n,s,a){t.body.push(this.parseMethod(r,i,n,s,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,i,n){let s=this.parseMethod(r,i,n,!1,!1,"ClassPrivateMethod",!0);t.body.push(s);let a=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(wA()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,i,n=8331){if(st(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,n);else if(i||!r)t.id=null;else throw this.raise(_.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let i=this.parseMaybeImportPhase(t,!0),n=this.maybeParseExportDefaultSpecifier(t,i),s=!n||this.eat(12),a=s&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),c=s&&(!o||this.eat(12)),u=n||a;if(a&&!o){if(n&&this.unexpected(),r)throw this.raise(_.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let p=this.maybeParseExportNamedSpecifiers(t);n&&s&&!a&&!p&&this.unexpected(null,5),o&&c&&this.unexpected(null,98);let d;if(u||p){if(d=!1,r)throw this.raise(_.UnsupportedDecoratorExport,t);this.parseExportFrom(t,u)}else d=this.maybeParseExportDeclaration(t);if(u||p||d){var h;let y=t;if(this.checkExport(y,!0,!1,!!y.source),((h=y.declaration)==null?void 0:h.type)==="ClassDeclaration")this.maybeTakeDecorators(r,y.declaration,y);else if(r)throw this.raise(_.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(y,"ExportNamedDeclaration")}if(this.eat(65)){let y=t,T=this.parseExportDefaultExpression();if(y.declaration=T,T.type==="ClassDeclaration")this.maybeTakeDecorators(r,T,y);else if(r)throw this.raise(_.UnsupportedDecoratorExport,t);return this.checkExport(y,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(y,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),n=this.startNodeAtNode(i);return n.exported=i,t.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,i;(i=(r=t).specifiers)!=null||(r.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(_.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(st(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let n=this.nextTokenStart(),s=this.input.charCodeAt(n);if(s===123||this.chStartsBindingIdentifier(s,n)&&!this.input.startsWith("from",n))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||st(this.state.type)&&i)return!0;if(this.match(65)&&i){let n=this.input.charCodeAt(this.nextTokenStartSince(r+4));return n===34||n===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(_.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(_.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,i,n){if(r){var s;if(i){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,o)}}else if((s=t.specifiers)!=null&&s.length)for(let o of t.specifiers){let{exported:c}=o,u=c.type==="Identifier"?c.name:c.value;if(this.checkDuplicateExports(o,u),!n&&o.local){let{local:p}=o;p.type!=="Identifier"?this.raise(_.ExportBindingIsString,o,{localName:p.value,exportName:u}):(this.checkReservedWord(p.name,p.loc.start,!0,!1),this.scope.checkLocalExport(p))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:c}=o;if(!c)throw new Error("Assertion failure");this.checkDuplicateExports(t,c.name)}else if(o.type==="VariableDeclaration")for(let c of o.declarations)this.checkDeclaration(c.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(_.DuplicateDefaultExport,t):this.raise(_.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let n=this.isContextual(130),s=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,s,t,n))}return r}parseExportSpecifier(t,r,i,n){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=J4.exec(t.value);return r&&this.raise(_.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,i=r.length===1?r[0].type:null;if(t.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(_.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(_.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var n;i!=="ImportDefaultSpecifier"&&this.raise(_.ImportReflectionNotBinding,r[0].loc.start),((n=t.assertions)==null?void 0:n.length)>0&&this.raise(_.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let i=r.find(n=>{let s;if(n.type==="ExportSpecifier"?s=n.local:n.type==="ImportSpecifier"&&(s=n.imported),s!==void 0)return s.type==="Identifier"?s.name!=="default":s.value!=="default"});i!==void 0&&this.raise(_.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,n){r||(i==="module"?(this.expectPlugin("importReflection",n),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",n),t.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",n),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let i=this.startNode(),n=this.parseIdentifierName(!0),{type:s}=this.state;return(Qr(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.applyImportPhase(t,r,n,i.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(i,n))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return st(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),s=n&&this.maybeParseStarImportSpecifier(t);return n&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,i){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(t,r,i=8201){return this.checkLVal(t.local,{type:r},i),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),n=this.state.value;if(r.has(n)&&this.raise(_.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),r.add(n),this.match(134)?i.key=this.parseStringLiteral(n):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(_.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(_.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;var i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(_.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!i&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,t.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(Qr(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),n=this.match(134),s=this.isContextual(130);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,n,t.importKind==="type"||t.importKind==="typeof",s,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,i,n,s){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(_.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",s)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},sp=class extends zS{constructor(t,r,i){let n=W2(t);super(n,r),this.options=n,this.initializeScopes(),this.plugins=i,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let s=0;n.allowAwaitOutsideFunction&&(s|=1),n.allowReturnOutsideFunction&&(s|=2),n.allowImportExportEverywhere&&(s|=8),n.allowSuperOutsideMethod&&(s|=16),n.allowUndeclaredExports&&(s|=64),n.allowNewTargetOutsideFunction&&(s|=4),n.allowYieldOutsideFunction&&(s|=32),n.ranges&&(s|=128),n.tokens&&(s|=256),n.createImportExpressions&&(s|=512),n.createParenthesizedExpressions&&(s|=1024),n.errorRecovery&&(s|=2048),n.attachComment&&(s|=4096),n.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return Jo}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let i=this.parseTopLevel(t,r);return i.errors=this.state.errors,i.comments.length=this.state.commentsLen,i}};function Z4(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=Vo(t,e),n=i.parse();if(i.sawUnambiguousESM)return n;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Vo(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(i){try{return t.sourceType="script",Vo(t,e).parse()}catch{}throw i}}else return Vo(t,e).parse()}function Y4(e,t){let r=Vo(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function G4(e){let t={};for(let r of Object.keys(e))t[r]=Ln(e[r]);return t}var H4=G4(Y2);function Vo(e,t){let r=sp,i=new Map;if(e!=null&&e.plugins){for(let n of e.plugins){let s,a;typeof n=="string"?s=n:[s,a]=n,i.has(s)||i.set(s,a||{})}V4(i),r=Q4(i)}return new r(e,t,i)}var xA=new Map;function Q4(e){let t=[];for(let n of q4)e.has(n)&&t.push(n);let r=t.join("|"),i=xA.get(r);if(!i){i=sp;for(let n of t)i=OA[n](i);xA.set(r,i)}return i}Zo.parse=Z4;Zo.parseExpression=Y4;Zo.tokTypes=H4});var GS=R(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.Var=Ke.User=Ke.Statement=Ke.SpreadProperty=Ke.Scope=Ke.RestProperty=Ke.ReferencedMemberExpression=Ke.ReferencedIdentifier=Ke.Referenced=Ke.Pure=Ke.NumericLiteralTypeAnnotation=Ke.Generated=Ke.ForAwaitStatement=Ke.Flow=Ke.Expression=Ke.ExistentialTypeParam=Ke.BlockScoped=Ke.BindingIdentifier=void 0;var u_e=Ke.ReferencedIdentifier=["Identifier","JSXIdentifier"],p_e=Ke.ReferencedMemberExpression=["MemberExpression"],d_e=Ke.BindingIdentifier=["Identifier"],f_e=Ke.Statement=["Statement"],h_e=Ke.Expression=["Expression"],m_e=Ke.Scope=["Scopable","Pattern"],y_e=Ke.Referenced=null,g_e=Ke.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],x_e=Ke.Var=["VariableDeclaration"],S_e=Ke.User=null,b_e=Ke.Generated=null,v_e=Ke.Pure=null,T_e=Ke.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],E_e=Ke.RestProperty=["RestElement"],P_e=Ke.SpreadProperty=["RestElement"],__e=Ke.ExistentialTypeParam=["ExistsTypeAnnotation"],k_e=Ke.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],I_e=Ke.ForAwaitStatement=["ForOfStatement"]});var $A=R((w_e,DA)=>{var ca=1e3,ua=ca*60,pa=ua*60,Ji=pa*24,eB=Ji*7,tB=Ji*365.25;DA.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return rB(e);if(r==="number"&&isFinite(e))return t.long?iB(e):nB(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function rB(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*tB;case"weeks":case"week":case"w":return r*eB;case"days":case"day":case"d":return r*Ji;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pa;case"minutes":case"minute":case"mins":case"min":case"m":return r*ua;case"seconds":case"second":case"secs":case"sec":case"s":return r*ca;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function nB(e){var t=Math.abs(e);return t>=Ji?Math.round(e/Ji)+"d":t>=pa?Math.round(e/pa)+"h":t>=ua?Math.round(e/ua)+"m":t>=ca?Math.round(e/ca)+"s":e+"ms"}function iB(e){var t=Math.abs(e);return t>=Ji?ap(e,t,Ji,"day"):t>=pa?ap(e,t,pa,"hour"):t>=ua?ap(e,t,ua,"minute"):t>=ca?ap(e,t,ca,"second"):e+" ms"}function ap(e,t,r,i){var n=t>=r*1.5;return Math.round(e/r)+" "+i+(n?"s":"")}});var HS=R((C_e,jA)=>{function sB(e){r.debug=r,r.default=r,r.coerce=c,r.disable=a,r.enable=n,r.enabled=o,r.humanize=$A(),r.destroy=u,Object.keys(e).forEach(p=>{r[p]=e[p]}),r.names=[],r.skips=[],r.formatters={};function t(p){let d=0;for(let h=0;h<p.length;h++)d=(d<<5)-d+p.charCodeAt(h),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(p){let d,h=null,y,T;function w(...k){if(!w.enabled)return;let C=w,D=Number(new Date),U=D-(d||D);C.diff=U,C.prev=d,C.curr=D,d=D,k[0]=r.coerce(k[0]),typeof k[0]!="string"&&k.unshift("%O");let z=0;k[0]=k[0].replace(/%([a-zA-Z%])/g,(ye,we)=>{if(ye==="%%")return"%";z++;let Pe=r.formatters[we];if(typeof Pe=="function"){let Qe=k[z];ye=Pe.call(C,Qe),k.splice(z,1),z--}return ye}),r.formatArgs.call(C,k),(C.log||r.log).apply(C,k)}return w.namespace=p,w.useColors=r.useColors(),w.color=r.selectColor(p),w.extend=i,w.destroy=r.destroy,Object.defineProperty(w,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(y!==r.namespaces&&(y=r.namespaces,T=r.enabled(p)),T),set:k=>{h=k}}),typeof r.init=="function"&&r.init(w),w}function i(p,d){let h=r(this.namespace+(typeof d>"u"?":":d)+p);return h.log=this.log,h}function n(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let d=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of d)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}function s(p,d){let h=0,y=0,T=-1,w=0;for(;h<p.length;)if(y<d.length&&(d[y]===p[h]||d[y]==="*"))d[y]==="*"?(T=y,w=h,y++):(h++,y++);else if(T!==-1)y=T+1,w++,h=w;else return!1;for(;y<d.length&&d[y]==="*";)y++;return y===d.length}function a(){let p=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),p}function o(p){for(let d of r.skips)if(s(p,d))return!1;for(let d of r.names)if(s(p,d))return!0;return!1}function c(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}jA.exports=sB});var LA=R((Pr,op)=>{Pr.formatArgs=oB;Pr.save=lB;Pr.load=cB;Pr.useColors=aB;Pr.storage=uB();Pr.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Pr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function aB(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function oB(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+op.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(i=r))}),e.splice(i,0,t)}Pr.log=console.debug||console.log||(()=>{});function lB(e){try{e?Pr.storage.setItem("debug",e):Pr.storage.removeItem("debug")}catch{}}function cB(){let e;try{e=Pr.storage.getItem("debug")||Pr.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function uB(){try{return localStorage}catch{}}op.exports=HS()(Pr);var{formatters:pB}=op.exports;pB.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var MA={};dn(MA,{createSupportsColor:()=>QS,default:()=>gB});import eb from"node:process";import dB from"node:os";import RA from"node:tty";function Fr(e,t=globalThis.Deno?globalThis.Deno.args:eb.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),n=t.indexOf("--");return i!==-1&&(n===-1||i<n)}function fB(){if(!("FORCE_COLOR"in _t))return;if(_t.FORCE_COLOR==="true")return 1;if(_t.FORCE_COLOR==="false")return 0;if(_t.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt(_t.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function hB(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function mB(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let i=fB();i!==void 0&&(lp=i);let n=r?lp:i;if(n===0)return 0;if(r){if(Fr("color=16m")||Fr("color=full")||Fr("color=truecolor"))return 3;if(Fr("color=256"))return 2}if("TF_BUILD"in _t&&"AGENT_NAME"in _t)return 1;if(e&&!t&&n===void 0)return 0;let s=n||0;if(_t.TERM==="dumb")return s;if(eb.platform==="win32"){let a=dB.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in _t)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in _t)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in _t)||_t.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in _t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(_t.TEAMCITY_VERSION)?1:0;if(_t.COLORTERM==="truecolor"||_t.TERM==="xterm-kitty"||_t.TERM==="xterm-ghostty"||_t.TERM==="wezterm")return 3;if("TERM_PROGRAM"in _t){let a=Number.parseInt((_t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(_t.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(_t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(_t.TERM)||"COLORTERM"in _t?1:s}function QS(e,t={}){let r=mB(e,{streamIsTTY:e&&e.isTTY,...t});return hB(r)}var _t,lp,yB,gB,FA=bL(()=>{({env:_t}=eb);Fr("no-color")||Fr("no-colors")||Fr("color=false")||Fr("color=never")?lp=0:(Fr("color")||Fr("colors")||Fr("color=true")||Fr("color=always"))&&(lp=1);yB={stdout:QS({isTTY:RA.isatty(1)}),stderr:QS({isTTY:RA.isatty(2)})},gB=yB});var zA=R((Wt,up)=>{var xB=b0("tty"),cp=b0("util");Wt.init=_B;Wt.log=TB;Wt.formatArgs=bB;Wt.save=EB;Wt.load=PB;Wt.useColors=SB;Wt.destroy=cp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Wt.colors=[6,2,3,4,5,1];try{let e=(FA(),vL(MA));e&&(e.stderr||e).level>=2&&(Wt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Wt.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(n,s)=>s.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function SB(){return"colors"in Wt.inspectOpts?!!Wt.inspectOpts.colors:xB.isatty(process.stderr.fd)}function bB(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,n="\x1B[3"+(i<8?i:"8;5;"+i),s=` ${n};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
|
|
9
|
+
`).join(`
|
|
10
|
+
`+s),e.push(n+"m+"+up.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=vB()+t+" "+e[0]}function vB(){return Wt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function TB(...e){return process.stderr.write(cp.formatWithOptions(Wt.inspectOpts,...e)+`
|
|
11
|
+
`)}function EB(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function PB(){return process.env.DEBUG}function _B(e){e.inspectOpts={};let t=Object.keys(Wt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Wt.inspectOpts[t[r]]}up.exports=HS()(Wt);var{formatters:BA}=up.exports;BA.o=function(e){return this.inspectOpts.colors=this.useColors,cp.inspect(e,this.inspectOpts).split(`
|
|
12
|
+
`).map(t=>t.trim()).join(" ")};BA.O=function(e){return this.inspectOpts.colors=this.useColors,cp.inspect(e,this.inspectOpts)}});var UA=R(($_e,tb)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?tb.exports=LA():tb.exports=zA()});var pp=R(rb=>{"use strict";Object.defineProperty(rb,"__esModule",{value:!0});rb.default=kB;function kB(e,t){let r=Object.keys(t);for(let i of r)if(e[i]!==t[i])return!1;return!0}});var da=R(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0});nb.default=IB;var KA=new Set;function IB(e,t,r="",i=e){if(KA.has(i))return;KA.add(i);let{internal:n,trace:s}=AB(1,2);n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
|
|
13
|
+
${s}`)}function AB(e,t){let{stackTraceLimit:r,prepareStackTrace:i}=Error,n;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){n=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!n)return{internal:!1,trace:""};let s=n.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(s[1].getFileName()),trace:s.map(a=>` at ${a}`).join(`
|
|
14
|
+
`)}}});var Ot=R(x=>{"use strict";Object.defineProperty(x,"__esModule",{value:!0});x.isAccessor=W9;x.isAnyTypeAnnotation=uz;x.isArgumentPlaceholder=F3;x.isArrayExpression=wB;x.isArrayPattern=I6;x.isArrayTypeAnnotation=pz;x.isArrowFunctionExpression=A6;x.isAssignmentExpression=CB;x.isAssignmentPattern=k6;x.isAwaitExpression=G6;x.isBigIntLiteral=Q6;x.isBinary=h9;x.isBinaryExpression=NB;x.isBindExpression=B3;x.isBlock=g9;x.isBlockParent=y9;x.isBlockStatement=jB;x.isBooleanLiteral=r6;x.isBooleanLiteralTypeAnnotation=fz;x.isBooleanTypeAnnotation=dz;x.isBreakStatement=LB;x.isCallExpression=RB;x.isCatchClause=MB;x.isClass=K9;x.isClassAccessorProperty=iz;x.isClassBody=w6;x.isClassDeclaration=N6;x.isClassExpression=C6;x.isClassImplements=mz;x.isClassMethod=K6;x.isClassPrivateMethod=az;x.isClassPrivateProperty=sz;x.isClassProperty=nz;x.isCompletionStatement=b9;x.isConditional=v9;x.isConditionalExpression=FB;x.isContinueStatement=BB;x.isDebuggerStatement=zB;x.isDecimalLiteral=W3;x.isDeclaration=C9;x.isDeclareClass=yz;x.isDeclareExportAllDeclaration=_z;x.isDeclareExportDeclaration=Pz;x.isDeclareFunction=gz;x.isDeclareInterface=xz;x.isDeclareModule=Sz;x.isDeclareModuleExports=bz;x.isDeclareOpaqueType=Tz;x.isDeclareTypeAlias=vz;x.isDeclareVariable=Ez;x.isDeclaredPredicate=kz;x.isDecorator=z3;x.isDirective=DB;x.isDirectiveLiteral=$B;x.isDoExpression=U3;x.isDoWhileStatement=UB;x.isEmptyStatement=KB;x.isEmptyTypeAnnotation=Rz;x.isEnumBody=Q9;x.isEnumBooleanBody=p3;x.isEnumBooleanMember=m3;x.isEnumDeclaration=u3;x.isEnumDefaultedMember=x3;x.isEnumMember=eK;x.isEnumNumberBody=d3;x.isEnumNumberMember=y3;x.isEnumStringBody=f3;x.isEnumStringMember=g3;x.isEnumSymbolBody=h3;x.isExistsTypeAnnotation=Iz;x.isExportAllDeclaration=O6;x.isExportDeclaration=V9;x.isExportDefaultDeclaration=D6;x.isExportDefaultSpecifier=K3;x.isExportNamedDeclaration=$6;x.isExportNamespaceSpecifier=ez;x.isExportSpecifier=j6;x.isExpression=f9;x.isExpressionStatement=VB;x.isExpressionWrapper=P9;x.isFile=qB;x.isFlow=X9;x.isFlowBaseAnnotation=Y9;x.isFlowDeclaration=G9;x.isFlowPredicate=H9;x.isFlowType=Z9;x.isFor=_9;x.isForInStatement=WB;x.isForOfStatement=L6;x.isForStatement=JB;x.isForXStatement=k9;x.isFunction=I9;x.isFunctionDeclaration=XB;x.isFunctionExpression=ZB;x.isFunctionParameter=N9;x.isFunctionParent=A9;x.isFunctionTypeAnnotation=Az;x.isFunctionTypeParam=wz;x.isGenericTypeAnnotation=Cz;x.isIdentifier=YB;x.isIfStatement=GB;x.isImmutable=L9;x.isImport=H6;x.isImportAttribute=cz;x.isImportDeclaration=R6;x.isImportDefaultSpecifier=M6;x.isImportExpression=z6;x.isImportNamespaceSpecifier=F6;x.isImportOrExportDeclaration=VA;x.isImportSpecifier=B6;x.isIndexedAccessType=S3;x.isInferredPredicate=Nz;x.isInterfaceDeclaration=Dz;x.isInterfaceExtends=Oz;x.isInterfaceTypeAnnotation=$z;x.isInterpreterDirective=OB;x.isIntersectionTypeAnnotation=jz;x.isJSX=tK;x.isJSXAttribute=v3;x.isJSXClosingElement=T3;x.isJSXClosingFragment=j3;x.isJSXElement=E3;x.isJSXEmptyExpression=P3;x.isJSXExpressionContainer=_3;x.isJSXFragment=D3;x.isJSXIdentifier=I3;x.isJSXMemberExpression=A3;x.isJSXNamespacedName=w3;x.isJSXOpeningElement=C3;x.isJSXOpeningFragment=$3;x.isJSXSpreadAttribute=N3;x.isJSXSpreadChild=k3;x.isJSXText=O3;x.isLVal=D9;x.isLabeledStatement=HB;x.isLiteral=j9;x.isLogicalExpression=i6;x.isLoop=T9;x.isMemberExpression=s6;x.isMetaProperty=U6;x.isMethod=M9;x.isMiscellaneous=rK;x.isMixedTypeAnnotation=Lz;x.isModuleDeclaration=pK;x.isModuleExpression=J3;x.isModuleSpecifier=q9;x.isNewExpression=a6;x.isNoop=L3;x.isNullLiteral=t6;x.isNullLiteralTypeAnnotation=hz;x.isNullableTypeAnnotation=Mz;x.isNumberLiteral=oK;x.isNumberLiteralTypeAnnotation=Fz;x.isNumberTypeAnnotation=Bz;x.isNumericLiteral=e6;x.isObjectExpression=l6;x.isObjectMember=F9;x.isObjectMethod=c6;x.isObjectPattern=V6;x.isObjectProperty=u6;x.isObjectTypeAnnotation=zz;x.isObjectTypeCallProperty=Kz;x.isObjectTypeIndexer=Vz;x.isObjectTypeInternalSlot=Uz;x.isObjectTypeProperty=qz;x.isObjectTypeSpreadProperty=Wz;x.isOpaqueType=Jz;x.isOptionalCallExpression=rz;x.isOptionalIndexedAccessType=b3;x.isOptionalMemberExpression=tz;x.isParenthesizedExpression=h6;x.isPattern=U9;x.isPatternLike=O9;x.isPipelineBareFunction=Y3;x.isPipelinePrimaryTopicReference=G3;x.isPipelineTopicExpression=Z3;x.isPlaceholder=R3;x.isPrivate=J9;x.isPrivateName=oz;x.isProgram=o6;x.isProperty=B9;x.isPureish=w9;x.isQualifiedTypeIdentifier=Xz;x.isRecordExpression=V3;x.isRegExpLiteral=n6;x.isRegexLiteral=lK;x.isRestElement=p6;x.isRestProperty=cK;x.isReturnStatement=d6;x.isScopable=m9;x.isSequenceExpression=f6;x.isSpreadElement=q6;x.isSpreadProperty=uK;x.isStandardized=d9;x.isStatement=x9;x.isStaticBlock=lz;x.isStringLiteral=QB;x.isStringLiteralTypeAnnotation=Zz;x.isStringTypeAnnotation=Yz;x.isSuper=W6;x.isSwitchCase=m6;x.isSwitchStatement=y6;x.isSymbolTypeAnnotation=Gz;x.isTSAnyKeyword=lU;x.isTSArrayType=AU;x.isTSAsExpression=XU;x.isTSBaseType=aK;x.isTSBigIntKeyword=uU;x.isTSBooleanKeyword=cU;x.isTSCallSignatureDeclaration=nU;x.isTSConditionalType=jU;x.isTSConstructSignatureDeclaration=iU;x.isTSConstructorType=EU;x.isTSDeclareFunction=eU;x.isTSDeclareMethod=tU;x.isTSEntityName=$9;x.isTSEnumBody=GU;x.isTSEnumDeclaration=HU;x.isTSEnumMember=QU;x.isTSExportAssignment=a9;x.isTSExpressionWithTypeArguments=KU;x.isTSExternalModuleReference=i9;x.isTSFunctionType=TU;x.isTSImportEqualsDeclaration=n9;x.isTSImportType=r9;x.isTSIndexSignature=oU;x.isTSIndexedAccessType=FU;x.isTSInferType=LU;x.isTSInstantiationExpression=JU;x.isTSInterfaceBody=qU;x.isTSInterfaceDeclaration=VU;x.isTSIntersectionType=$U;x.isTSIntrinsicKeyword=pU;x.isTSLiteralType=UU;x.isTSMappedType=BU;x.isTSMethodSignature=aU;x.isTSModuleBlock=t9;x.isTSModuleDeclaration=e9;x.isTSNamedTupleMember=OU;x.isTSNamespaceExportDeclaration=o9;x.isTSNeverKeyword=dU;x.isTSNonNullExpression=s9;x.isTSNullKeyword=fU;x.isTSNumberKeyword=hU;x.isTSObjectKeyword=mU;x.isTSOptionalType=CU;x.isTSParameterProperty=Q3;x.isTSParenthesizedType=RU;x.isTSPropertySignature=sU;x.isTSQualifiedName=rU;x.isTSRestType=NU;x.isTSSatisfiesExpression=ZU;x.isTSStringKeyword=yU;x.isTSSymbolKeyword=gU;x.isTSTemplateLiteralType=zU;x.isTSThisType=vU;x.isTSTupleType=wU;x.isTSType=sK;x.isTSTypeAliasDeclaration=WU;x.isTSTypeAnnotation=l9;x.isTSTypeAssertion=YU;x.isTSTypeElement=iK;x.isTSTypeLiteral=IU;x.isTSTypeOperator=MU;x.isTSTypeParameter=p9;x.isTSTypeParameterDeclaration=u9;x.isTSTypeParameterInstantiation=c9;x.isTSTypePredicate=_U;x.isTSTypeQuery=kU;x.isTSTypeReference=PU;x.isTSUndefinedKeyword=xU;x.isTSUnionType=DU;x.isTSUnknownKeyword=SU;x.isTSVoidKeyword=bU;x.isTaggedTemplateExpression=J6;x.isTemplateElement=X6;x.isTemplateLiteral=Z6;x.isTerminatorless=S9;x.isThisExpression=g6;x.isThisTypeAnnotation=Hz;x.isThrowStatement=x6;x.isTopicReference=X3;x.isTryStatement=S6;x.isTupleExpression=q3;x.isTupleTypeAnnotation=Qz;x.isTypeAlias=t3;x.isTypeAnnotation=r3;x.isTypeCastExpression=n3;x.isTypeParameter=i3;x.isTypeParameterDeclaration=s3;x.isTypeParameterInstantiation=a3;x.isTypeScript=nK;x.isTypeofTypeAnnotation=e3;x.isUnaryExpression=b6;x.isUnaryLike=z9;x.isUnionTypeAnnotation=o3;x.isUpdateExpression=v6;x.isUserWhitespacable=R9;x.isV8IntrinsicIdentifier=M3;x.isVariableDeclaration=T6;x.isVariableDeclarator=E6;x.isVariance=l3;x.isVoidPattern=H3;x.isVoidTypeAnnotation=c3;x.isWhile=E9;x.isWhileStatement=P6;x.isWithStatement=_6;x.isYieldExpression=Y6;var v=pp(),Yo=da();function wB(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,v.default)(e,t)}function CB(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,v.default)(e,t)}function NB(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,v.default)(e,t)}function OB(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,v.default)(e,t)}function DB(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,v.default)(e,t)}function $B(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,v.default)(e,t)}function jB(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,v.default)(e,t)}function LB(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,v.default)(e,t)}function RB(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,v.default)(e,t)}function MB(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,v.default)(e,t)}function FB(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,v.default)(e,t)}function BB(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,v.default)(e,t)}function zB(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,v.default)(e,t)}function UB(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,v.default)(e,t)}function KB(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,v.default)(e,t)}function VB(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,v.default)(e,t)}function qB(e,t){return!e||e.type!=="File"?!1:t==null||(0,v.default)(e,t)}function WB(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,v.default)(e,t)}function JB(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,v.default)(e,t)}function XB(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,v.default)(e,t)}function ZB(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,v.default)(e,t)}function YB(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,v.default)(e,t)}function GB(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,v.default)(e,t)}function HB(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,v.default)(e,t)}function QB(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,v.default)(e,t)}function e6(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,v.default)(e,t)}function t6(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,v.default)(e,t)}function r6(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,v.default)(e,t)}function n6(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,v.default)(e,t)}function i6(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,v.default)(e,t)}function s6(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,v.default)(e,t)}function a6(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,v.default)(e,t)}function o6(e,t){return!e||e.type!=="Program"?!1:t==null||(0,v.default)(e,t)}function l6(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,v.default)(e,t)}function c6(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,v.default)(e,t)}function u6(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,v.default)(e,t)}function p6(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,v.default)(e,t)}function d6(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,v.default)(e,t)}function f6(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,v.default)(e,t)}function h6(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,v.default)(e,t)}function m6(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,v.default)(e,t)}function y6(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,v.default)(e,t)}function g6(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,v.default)(e,t)}function x6(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,v.default)(e,t)}function S6(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,v.default)(e,t)}function b6(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,v.default)(e,t)}function v6(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,v.default)(e,t)}function T6(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,v.default)(e,t)}function E6(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,v.default)(e,t)}function P6(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,v.default)(e,t)}function _6(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,v.default)(e,t)}function k6(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,v.default)(e,t)}function I6(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,v.default)(e,t)}function A6(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,v.default)(e,t)}function w6(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,v.default)(e,t)}function C6(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,v.default)(e,t)}function N6(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,v.default)(e,t)}function O6(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,v.default)(e,t)}function D6(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,v.default)(e,t)}function $6(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,v.default)(e,t)}function j6(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,v.default)(e,t)}function L6(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,v.default)(e,t)}function R6(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,v.default)(e,t)}function M6(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,v.default)(e,t)}function F6(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,v.default)(e,t)}function B6(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,v.default)(e,t)}function z6(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,v.default)(e,t)}function U6(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,v.default)(e,t)}function K6(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,v.default)(e,t)}function V6(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,v.default)(e,t)}function q6(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,v.default)(e,t)}function W6(e,t){return!e||e.type!=="Super"?!1:t==null||(0,v.default)(e,t)}function J6(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,v.default)(e,t)}function X6(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,v.default)(e,t)}function Z6(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,v.default)(e,t)}function Y6(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,v.default)(e,t)}function G6(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,v.default)(e,t)}function H6(e,t){return!e||e.type!=="Import"?!1:t==null||(0,v.default)(e,t)}function Q6(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,v.default)(e,t)}function ez(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,v.default)(e,t)}function tz(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,v.default)(e,t)}function rz(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,v.default)(e,t)}function nz(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,v.default)(e,t)}function iz(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,v.default)(e,t)}function sz(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,v.default)(e,t)}function az(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,v.default)(e,t)}function oz(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,v.default)(e,t)}function lz(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,v.default)(e,t)}function cz(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,v.default)(e,t)}function uz(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function pz(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function dz(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function fz(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function hz(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function mz(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,v.default)(e,t)}function yz(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,v.default)(e,t)}function gz(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,v.default)(e,t)}function xz(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,v.default)(e,t)}function Sz(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,v.default)(e,t)}function bz(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,v.default)(e,t)}function vz(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,v.default)(e,t)}function Tz(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,v.default)(e,t)}function Ez(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,v.default)(e,t)}function Pz(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,v.default)(e,t)}function _z(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,v.default)(e,t)}function kz(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,v.default)(e,t)}function Iz(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Az(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function wz(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,v.default)(e,t)}function Cz(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Nz(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,v.default)(e,t)}function Oz(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,v.default)(e,t)}function Dz(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,v.default)(e,t)}function $z(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function jz(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Lz(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Rz(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Mz(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Fz(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Bz(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function zz(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Uz(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,v.default)(e,t)}function Kz(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,v.default)(e,t)}function Vz(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,v.default)(e,t)}function qz(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,v.default)(e,t)}function Wz(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,v.default)(e,t)}function Jz(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,v.default)(e,t)}function Xz(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,v.default)(e,t)}function Zz(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Yz(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Gz(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Hz(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function Qz(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function e3(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function t3(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,v.default)(e,t)}function r3(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function n3(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,v.default)(e,t)}function i3(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,v.default)(e,t)}function s3(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,v.default)(e,t)}function a3(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,v.default)(e,t)}function o3(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function l3(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,v.default)(e,t)}function c3(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function u3(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,v.default)(e,t)}function p3(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,v.default)(e,t)}function d3(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,v.default)(e,t)}function f3(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,v.default)(e,t)}function h3(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,v.default)(e,t)}function m3(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,v.default)(e,t)}function y3(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,v.default)(e,t)}function g3(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,v.default)(e,t)}function x3(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,v.default)(e,t)}function S3(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,v.default)(e,t)}function b3(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,v.default)(e,t)}function v3(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,v.default)(e,t)}function T3(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,v.default)(e,t)}function E3(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,v.default)(e,t)}function P3(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,v.default)(e,t)}function _3(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,v.default)(e,t)}function k3(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,v.default)(e,t)}function I3(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,v.default)(e,t)}function A3(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,v.default)(e,t)}function w3(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,v.default)(e,t)}function C3(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,v.default)(e,t)}function N3(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,v.default)(e,t)}function O3(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,v.default)(e,t)}function D3(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,v.default)(e,t)}function $3(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,v.default)(e,t)}function j3(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,v.default)(e,t)}function L3(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,v.default)(e,t)}function R3(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,v.default)(e,t)}function M3(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,v.default)(e,t)}function F3(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,v.default)(e,t)}function B3(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,v.default)(e,t)}function z3(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,v.default)(e,t)}function U3(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,v.default)(e,t)}function K3(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,v.default)(e,t)}function V3(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,v.default)(e,t)}function q3(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,v.default)(e,t)}function W3(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,v.default)(e,t)}function J3(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,v.default)(e,t)}function X3(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,v.default)(e,t)}function Z3(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,v.default)(e,t)}function Y3(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,v.default)(e,t)}function G3(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,v.default)(e,t)}function H3(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,v.default)(e,t)}function Q3(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,v.default)(e,t)}function eU(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,v.default)(e,t)}function tU(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,v.default)(e,t)}function rU(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,v.default)(e,t)}function nU(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,v.default)(e,t)}function iU(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,v.default)(e,t)}function sU(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,v.default)(e,t)}function aU(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,v.default)(e,t)}function oU(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,v.default)(e,t)}function lU(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,v.default)(e,t)}function cU(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,v.default)(e,t)}function uU(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,v.default)(e,t)}function pU(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,v.default)(e,t)}function dU(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,v.default)(e,t)}function fU(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,v.default)(e,t)}function hU(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,v.default)(e,t)}function mU(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,v.default)(e,t)}function yU(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,v.default)(e,t)}function gU(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,v.default)(e,t)}function xU(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,v.default)(e,t)}function SU(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,v.default)(e,t)}function bU(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,v.default)(e,t)}function vU(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,v.default)(e,t)}function TU(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,v.default)(e,t)}function EU(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,v.default)(e,t)}function PU(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,v.default)(e,t)}function _U(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,v.default)(e,t)}function kU(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,v.default)(e,t)}function IU(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,v.default)(e,t)}function AU(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,v.default)(e,t)}function wU(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,v.default)(e,t)}function CU(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,v.default)(e,t)}function NU(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,v.default)(e,t)}function OU(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,v.default)(e,t)}function DU(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,v.default)(e,t)}function $U(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,v.default)(e,t)}function jU(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,v.default)(e,t)}function LU(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,v.default)(e,t)}function RU(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,v.default)(e,t)}function MU(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,v.default)(e,t)}function FU(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,v.default)(e,t)}function BU(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,v.default)(e,t)}function zU(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,v.default)(e,t)}function UU(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,v.default)(e,t)}function KU(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,v.default)(e,t)}function VU(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,v.default)(e,t)}function qU(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,v.default)(e,t)}function WU(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,v.default)(e,t)}function JU(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,v.default)(e,t)}function XU(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,v.default)(e,t)}function ZU(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,v.default)(e,t)}function YU(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,v.default)(e,t)}function GU(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,v.default)(e,t)}function HU(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,v.default)(e,t)}function QU(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,v.default)(e,t)}function e9(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,v.default)(e,t)}function t9(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,v.default)(e,t)}function r9(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,v.default)(e,t)}function n9(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,v.default)(e,t)}function i9(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,v.default)(e,t)}function s9(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,v.default)(e,t)}function a9(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,v.default)(e,t)}function o9(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,v.default)(e,t)}function l9(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,v.default)(e,t)}function c9(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,v.default)(e,t)}function u9(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,v.default)(e,t)}function p9(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,v.default)(e,t)}function d9(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,v.default)(e,t)}function f9(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,v.default)(e,t)}function h9(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,v.default)(e,t)}function m9(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,v.default)(e,t)}function y9(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,v.default)(e,t)}function g9(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,v.default)(e,t)}function x9(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,v.default)(e,t)}function S9(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,v.default)(e,t)}function b9(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,v.default)(e,t)}function v9(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,v.default)(e,t)}function T9(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,v.default)(e,t)}function E9(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,v.default)(e,t)}function P9(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,v.default)(e,t)}function _9(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,v.default)(e,t)}function k9(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,v.default)(e,t)}function I9(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,v.default)(e,t)}function A9(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,v.default)(e,t)}function w9(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,v.default)(e,t)}function C9(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,v.default)(e,t)}function N9(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,v.default)(e,t)}function O9(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,v.default)(e,t)}function D9(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,v.default)(e,t)}function $9(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,v.default)(e,t)}function j9(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,v.default)(e,t)}function L9(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,v.default)(e,t)}function R9(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,v.default)(e,t)}function M9(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,v.default)(e,t)}function F9(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,v.default)(e,t)}function B9(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,v.default)(e,t)}function z9(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,v.default)(e,t)}function U9(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,v.default)(e,t)}function K9(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,v.default)(e,t)}function VA(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,v.default)(e,t)}function V9(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,v.default)(e,t)}function q9(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,v.default)(e,t)}function W9(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,v.default)(e,t)}function J9(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,v.default)(e,t)}function X9(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,v.default)(e,t)}function Z9(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,v.default)(e,t)}function Y9(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,v.default)(e,t)}function G9(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,v.default)(e,t)}function H9(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,v.default)(e,t)}function Q9(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,v.default)(e,t)}function eK(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,v.default)(e,t)}function tK(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,v.default)(e,t)}function rK(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,v.default)(e,t)}function nK(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,v.default)(e,t)}function iK(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,v.default)(e,t)}function sK(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,v.default)(e,t)}function aK(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,v.default)(e,t)}function oK(e,t){return(0,Yo.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,v.default)(e,t)}function lK(e,t){return(0,Yo.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,v.default)(e,t)}function cK(e,t){return(0,Yo.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,v.default)(e,t)}function uK(e,t){return(0,Yo.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,v.default)(e,t)}function pK(e,t){return(0,Yo.default)("isModuleDeclaration","isImportOrExportDeclaration"),VA(e,t)}});var sb=R(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});ib.default=dK;var Xi=Ot();function qA(e){return(0,Xi.isMemberExpression)(e)||(0,Xi.isMetaProperty)(e)}function dK(e,t,r){if(!qA(e))return!1;let i=Array.isArray(t)?t:t.split("."),n=[],s;for(s=e;qA(s);s=(a=s.object)!=null?a:s.meta){var a;n.push(s.property)}if(n.push(s),n.length<i.length||!r&&n.length>i.length)return!1;for(let o=0,c=n.length-1;o<i.length;o++,c--){let u=n[c],p;if((0,Xi.isIdentifier)(u))p=u.name;else if((0,Xi.isStringLiteral)(u))p=u.value;else if((0,Xi.isThisExpression)(u))p="this";else if((0,Xi.isSuper)(u))p="super";else if((0,Xi.isPrivateName)(u))p="#"+u.id.name;else return!1;if(i[o]!==p)return!1}return!0}});var ob=R(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0});ab.default=hK;var fK=sb();function hK(e,t){let r=e.split(".");return i=>(0,fK.default)(i,r,t)}});var WA=R(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.default=void 0;var mK=ob(),yK=(0,mK.default)("React.Component"),B_e=dp.default=yK});var JA=R(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0});lb.default=gK;function gK(e){return!!e&&/^[a-z]/.test(e)}});var fp=R(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});cb.default=xK;var XA=Br();function xK(e,t){if(e===t)return!0;if(e==null||XA.ALIAS_KEYS[t])return!1;let r=XA.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var pb=R(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});ub.default=bK;var SK=Br();function bK(e,t){if(e===t)return!0;let r=SK.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var fa=R(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});db.default=_K;var vK=pp(),TK=fp(),EK=pb(),PK=Br();function _K(e,t,r){return t?(0,TK.default)(t.type,e)?r===void 0?!0:(0,vK.default)(t,r):!r&&t.type==="Placeholder"&&e in PK.FLIPPED_ALIAS_KEYS?(0,EK.default)(t.expectedNode,e):!1:!1}});var QA=R(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.isIdentifierChar=HA;Go.isIdentifierName=wK;Go.isIdentifierStart=GA;var hb="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",ZA="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",kK=new RegExp("["+hb+"]"),IK=new RegExp("["+hb+ZA+"]");hb=ZA=null;var YA=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,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,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,38,6,186,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,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,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,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],AK=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,199,7,137,9,54,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,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function fb(e,t){let r=65536;for(let i=0,n=t.length;i<n;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function GA(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&kK.test(String.fromCharCode(e)):fb(e,YA)}function HA(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&IK.test(String.fromCharCode(e)):fb(e,YA)||fb(e,AK)}function wK(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((i&64512)===55296&&r+1<e.length){let n=e.charCodeAt(++r);(n&64512)===56320&&(i=65536+((i&1023)<<10)+(n&1023))}if(t){if(t=!1,!GA(i))return!1}else if(!HA(i))return!1}return!t}});var nw=R(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.isKeyword=$K;Zi.isReservedWord=ew;Zi.isStrictBindOnlyReservedWord=rw;Zi.isStrictBindReservedWord=DK;Zi.isStrictReservedWord=tw;var mb={keyword:["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"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},CK=new Set(mb.keyword),NK=new Set(mb.strict),OK=new Set(mb.strictBind);function ew(e,t){return t&&e==="await"||e==="enum"}function tw(e,t){return ew(e,t)||NK.has(e)}function rw(e){return OK.has(e)}function DK(e,t){return tw(e,t)||rw(e)}function $K(e){return CK.has(e)}});var Qo=R(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});Object.defineProperty(vn,"isIdentifierChar",{enumerable:!0,get:function(){return yb.isIdentifierChar}});Object.defineProperty(vn,"isIdentifierName",{enumerable:!0,get:function(){return yb.isIdentifierName}});Object.defineProperty(vn,"isIdentifierStart",{enumerable:!0,get:function(){return yb.isIdentifierStart}});Object.defineProperty(vn,"isKeyword",{enumerable:!0,get:function(){return Ho.isKeyword}});Object.defineProperty(vn,"isReservedWord",{enumerable:!0,get:function(){return Ho.isReservedWord}});Object.defineProperty(vn,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Ho.isStrictBindOnlyReservedWord}});Object.defineProperty(vn,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Ho.isStrictBindReservedWord}});Object.defineProperty(vn,"isStrictReservedWord",{enumerable:!0,get:function(){return Ho.isStrictReservedWord}});var yb=QA(),Ho=nw()});var ha=R(xb=>{"use strict";Object.defineProperty(xb,"__esModule",{value:!0});xb.default=jK;var gb=Qo();function jK(e,t=!0){return typeof e!="string"||t&&((0,gb.isKeyword)(e)||(0,gb.isStrictReservedWord)(e,!0))?!1:(0,gb.isIdentifierName)(e)}});var ow=R(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.readCodePoint=aw;el.readInt=sw;el.readStringContents=RK;var LK=function(t){return t>=48&&t<=57},iw={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},hp={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function RK(e,t,r,i,n,s){let a=r,o=i,c=n,u="",p=null,d=r,{length:h}=t;for(;;){if(r>=h){s.unterminated(a,o,c),u+=t.slice(d,r);break}let y=t.charCodeAt(r);if(MK(e,y,t,r)){u+=t.slice(d,r);break}if(y===92){u+=t.slice(d,r);let T=FK(t,r,i,n,e==="template",s);T.ch===null&&!p?p={pos:r,lineStart:i,curLine:n}:u+=T.ch,{pos:r,lineStart:i,curLine:n}=T,d=r}else y===8232||y===8233?(++r,++n,i=r):y===10||y===13?e==="template"?(u+=t.slice(d,r)+`
|
|
15
|
+
`,++r,y===13&&t.charCodeAt(r)===10&&++r,++n,d=i=r):s.unterminated(a,o,c):++r}return{pos:r,str:u,firstInvalidLoc:p,lineStart:i,curLine:n,containsInvalid:!!p}}function MK(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function FK(e,t,r,i,n,s){let a=!n;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),c=e.charCodeAt(t++);switch(c){case 110:return o(`
|
|
16
|
+
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Sb(e,t,r,i,2,!1,a,s),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=aw(e,t,r,i,a,s),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,r,i);default:if(c>=48&&c<=55){let u=t-1,d=/^[0-7]+/.exec(e.slice(u,t+2))[0],h=parseInt(d,8);h>255&&(d=d.slice(0,-1),h=parseInt(d,8)),t+=d.length-1;let y=e.charCodeAt(t);if(d!=="0"||y===56||y===57){if(n)return o(null);s.strictNumericEscape(u,r,i)}return o(String.fromCharCode(h))}return o(String.fromCharCode(c))}}function Sb(e,t,r,i,n,s,a,o){let c=t,u;return{n:u,pos:t}=sw(e,t,r,i,16,n,s,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(c,r,i):t=c-1),{code:u,pos:t}}function sw(e,t,r,i,n,s,a,o,c,u){let p=t,d=n===16?iw.hex:iw.decBinOct,h=n===16?hp.hex:n===10?hp.dec:n===8?hp.oct:hp.bin,y=!1,T=0;for(let w=0,k=s??1/0;w<k;++w){let C=e.charCodeAt(t),D;if(C===95&&o!=="bail"){let U=e.charCodeAt(t-1),z=e.charCodeAt(t+1);if(o){if(Number.isNaN(z)||!h(z)||d.has(U)||d.has(z)){if(u)return{n:null,pos:t};c.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(C>=97?D=C-97+10:C>=65?D=C-65+10:LK(C)?D=C-48:D=1/0,D>=n){if(D<=9&&u)return{n:null,pos:t};if(D<=9&&c.invalidDigit(t,r,i,n))D=0;else if(a)D=0,y=!0;else break}++t,T=T*n+D}return t===p||s!=null&&t-p!==s||y?{n:null,pos:t}:{n:T,pos:t}}function aw(e,t,r,i,n,s){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Sb(e,t,r,i,e.indexOf("}",t)-t,!0,n,s),++t,o!==null&&o>1114111)if(n)s.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=Sb(e,t,r,i,4,!1,n,s));return{code:o,pos:t}}});var ma=R(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.UPDATE_OPERATORS=Me.UNARY_OPERATORS=Me.STRING_UNARY_OPERATORS=Me.STATEMENT_OR_BLOCK_KEYS=Me.NUMBER_UNARY_OPERATORS=Me.NUMBER_BINARY_OPERATORS=Me.LOGICAL_OPERATORS=Me.INHERIT_KEYS=Me.FOR_INIT_KEYS=Me.FLATTENABLE_KEYS=Me.EQUALITY_BINARY_OPERATORS=Me.COMPARISON_BINARY_OPERATORS=Me.COMMENT_KEYS=Me.BOOLEAN_UNARY_OPERATORS=Me.BOOLEAN_NUMBER_BINARY_OPERATORS=Me.BOOLEAN_BINARY_OPERATORS=Me.BINARY_OPERATORS=Me.ASSIGNMENT_OPERATORS=void 0;var G_e=Me.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],H_e=Me.FLATTENABLE_KEYS=["body","expressions"],Q_e=Me.FOR_INIT_KEYS=["left","init"],eke=Me.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],BK=Me.LOGICAL_OPERATORS=["||","&&","??"],tke=Me.UPDATE_OPERATORS=["++","--"],zK=Me.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],UK=Me.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],KK=Me.COMPARISON_BINARY_OPERATORS=[...UK,"in","instanceof"],VK=Me.BOOLEAN_BINARY_OPERATORS=[...KK,...zK],lw=Me.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],rke=Me.BINARY_OPERATORS=["+",...lw,...VK,"|>"],nke=Me.ASSIGNMENT_OPERATORS=["=","+=",...lw.map(e=>e+"="),...BK.map(e=>e+"=")],qK=Me.BOOLEAN_UNARY_OPERATORS=["delete","!"],WK=Me.NUMBER_UNARY_OPERATORS=["+","-","~"],JK=Me.STRING_UNARY_OPERATORS=["typeof"],ike=Me.UNARY_OPERATORS=["void","throw",...qK,...WK,...JK],ske=Me.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};Me.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");Me.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var Tn=R(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.allExpandedTypes=qe.VISITOR_KEYS=qe.NODE_UNION_SHAPES__PRIVATE=qe.NODE_PARENT_VALIDATIONS=qe.NODE_FIELDS=qe.FLIPPED_ALIAS_KEYS=qe.DEPRECATED_KEYS=qe.BUILDER_KEYS=qe.ALIAS_KEYS=void 0;qe.arrayOf=uw;qe.arrayOfType=pw;qe.assertEach=dw;qe.assertNodeOrValueType=o8;qe.assertNodeType=yp;qe.assertOneOf=s8;qe.assertOptionalChainStart=c8;qe.assertShape=l8;qe.assertValueType=Eb;qe.chain=fw;qe.default=hw;qe.defineAliasedType=d8;qe.validate=Tb;qe.validateArrayOfType=i8;qe.validateOptional=r8;qe.validateOptionalType=n8;qe.validateType=t8;var cw=fa(),tl=gp(),XK=qe.VISITOR_KEYS={},ZK=qe.ALIAS_KEYS={},bb=qe.FLIPPED_ALIAS_KEYS={},YK=qe.NODE_FIELDS={},GK=qe.BUILDER_KEYS={},HK=qe.DEPRECATED_KEYS={},QK=qe.NODE_PARENT_VALIDATIONS={},e8=qe.NODE_UNION_SHAPES__PRIVATE={};function mp(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function Tb(e){return{validate:e}}function t8(...e){return Tb(yp(...e))}function r8(e){return{validate:e,optional:!0}}function n8(...e){return{validate:yp(...e),optional:!0}}function uw(e){return fw(Eb("array"),dw(e))}function pw(...e){return uw(yp(...e))}function i8(...e){return Tb(pw(...e))}function dw(e){let t=process.env.BABEL_TYPES_8_BREAKING?tl.validateChild:()=>{};function r(i,n,s){if(!Array.isArray(s))return;let a=0,o={toString(){return`${n}[${a}]`}};for(;a<s.length;a++){let c=s[a];e(i,o,c),t(i,o,c)}}return r.each=e,r}function s8(...e){function t(r,i,n){if(!e.includes(n))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`)}return t.oneOf=e,t}var a8=qe.allExpandedTypes=[];function yp(...e){let t=new Set;a8.push({types:e,set:t});function r(i,n,s){let a=s?.type;if(a!=null){if(t.has(a)){(0,tl.validateChild)(i,n,s);return}if(a==="Placeholder"){for(let o of e)if((0,cw.default)(o,s)){(0,tl.validateChild)(i,n,s);return}}}throw new TypeError(`Property ${n} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function o8(...e){function t(r,i,n){let s=mp(n);for(let a of e)if(s===a||(0,cw.default)(a,n)){(0,tl.validateChild)(r,i,n);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(n?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function Eb(e){function t(r,i,n){if(mp(n)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${mp(n)}`)}return t.type=e,t}function l8(e){let t=Object.keys(e);function r(i,n,s){let a=[];for(let o of t)try{(0,tl.validateField)(i,o,s[o],e[o])}catch(c){if(c instanceof TypeError){a.push(c.message);continue}throw c}if(a.length)throw new TypeError(`Property ${n} of ${i.type} expected to have the following:
|
|
17
|
+
${a.join(`
|
|
18
|
+
`)}`)}return r.shapeOf=e,r}function c8(){function e(t){var r;let i=t;for(;t;){let{type:n}=i;if(n==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(n==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return e}function fw(...e){function t(...r){for(let i of e)i(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var u8=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),p8=new Set(["default","optional","deprecated","validate"]),vb={};function d8(...e){return(t,r={})=>{let i=r.aliases;if(!i){var n;r.inherits&&(i=(n=vb[r.inherits].aliases)==null?void 0:n.slice()),i??(i=[]),r.aliases=i}let s=e.filter(a=>!i.includes(a));i.unshift(...s),hw(t,r)}}function hw(e,t={}){let r=t.inherits&&vb[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let c of o){let u=r.fields[c],p=u.default;if(Array.isArray(p)?p.length>0:p&&typeof p=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[c]={default:Array.isArray(p)?[]:p,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let n=t.visitor||r.visitor||[],s=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!u8.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(HK[t.deprecatedAlias]=e);for(let o of n.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let c=i[o];c.default!==void 0&&!a.includes(o)&&(c.optional=!0),c.default===void 0?c.default=null:!c.validate&&c.default!=null&&(c.validate=Eb(mp(c.default)));for(let u of Object.keys(c))if(!p8.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}XK[e]=t.visitor=n,GK[e]=t.builder=a,YK[e]=t.fields=i,ZK[e]=t.aliases=s,s.forEach(o=>{bb[o]=bb[o]||[],bb[o].push(e)}),t.validate&&(QK[e]=t.validate),t.unionShape&&(e8[e]=t.unionShape),vb[e]=t}});var nl=R(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.patternLikeCommon=Jt.importAttributes=Jt.functionTypeAnnotationCommon=Jt.functionDeclarationCommon=Jt.functionCommon=Jt.classMethodOrPropertyUnionShapeCommon=Jt.classMethodOrPropertyCommon=Jt.classMethodOrDeclareMethodCommon=void 0;var dr=fa(),f8=ha(),mw=Qo(),h8=ow(),ya=ma(),E=Tn(),rl=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,E.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});Jt.classMethodOrPropertyUnionShapeCommon=rl;var ie=(0,E.defineAliasedType)("Standardized");ie("ArrayExpression",{fields:{elements:{validate:(0,E.arrayOf)((0,E.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});ie("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,E.assertOneOf)(...ya.ASSIGNMENT_OPERATORS),t=(0,E.assertOneOf)("=");return function(r,i,n){((0,dr.default)("Pattern",r.left)?t:e)(r,i,n)}})(),{oneOf:ya.ASSIGNMENT_OPERATORS}):(0,E.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,E.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,E.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});ie("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,E.assertOneOf)(...ya.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,E.assertNodeType)("Expression"),t=(0,E.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,n,s){(i.operator==="in"?t:e)(i,n,s)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,E.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});ie("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}}});ie("Directive",{visitor:["value"],fields:{value:{validate:(0,E.assertNodeType)("DirectiveLiteral")}}});ie("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}}});ie("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,E.arrayOfType)("Directive"),default:[]},body:(0,E.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});ie("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,E.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});ie("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,E.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,E.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,E.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});ie("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,E.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});ie("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},consequent:{validate:(0,E.assertNodeType)("Expression")},alternate:{validate:(0,E.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});ie("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,E.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});ie("DebuggerStatement",{aliases:["Statement"]});ie("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});ie("EmptyStatement",{aliases:["Statement"]});ie("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,E.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});ie("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,E.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertEach)((0,E.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,E.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});ie("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,E.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}}});ie("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,E.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,E.assertNodeType)("Expression"),optional:!0},update:{validate:(0,E.assertNodeType)("Expression"),optional:!0},body:{validate:(0,E.assertNodeType)("Statement")}}});var ga=()=>({params:(0,E.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});Jt.functionCommon=ga;var Yi=()=>({returnType:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});Jt.functionTypeAnnotationCommon=Yi;var yw=()=>Object.assign({},ga(),{declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0}});Jt.functionDeclarationCommon=yw;ie("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},yw(),Yi(),{body:{validate:(0,E.assertNodeType)("BlockStatement")},predicate:{validate:(0,E.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,E.assertNodeType)("Identifier");return function(t,r,i){(0,dr.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});ie("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ga(),Yi(),{id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,E.assertNodeType)("BlockStatement")},predicate:{validate:(0,E.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var xa=()=>({typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}});Jt.patternLikeCommon=xa;ie("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},xa(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,f8.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,E.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,n]=i,s={computed:!1};if(n==="property"){if((0,dr.default)("MemberExpression",e,s)||(0,dr.default)("OptionalMemberExpression",e,s))return}else if(n==="key"){if((0,dr.default)("Property",e,s)||(0,dr.default)("Method",e,s))return}else if(n==="exported"){if((0,dr.default)("ExportSpecifier",e))return}else if(n==="imported"){if((0,dr.default)("ImportSpecifier",e,{imported:r}))return}else if(n==="meta"&&(0,dr.default)("MetaProperty",e,{meta:r}))return;if(((0,mw.isKeyword)(r.name)||(0,mw.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});ie("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},consequent:{validate:(0,E.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,E.assertNodeType)("Statement")}}});ie("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,E.assertNodeType)("Identifier")},body:{validate:(0,E.assertNodeType)("Statement")}}});ie("StringLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});ie("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,E.chain)((0,E.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});ie("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});ie("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});ie("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,E.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("string"),Object.assign(function(e,t,r){let i=/[^dgimsuvy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,E.assertValueType)("string"),default:""}}});ie("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,E.assertOneOf)(...ya.LOGICAL_OPERATORS)},left:{validate:(0,E.assertNodeType)("Expression")},right:{validate:(0,E.assertNodeType)("Expression")}}});ie("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,E.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,E.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,E.assertNodeType)("Expression","Super")},property:{validate:(function(){let e=(0,E.assertNodeType)("Identifier","PrivateName"),t=(0,E.assertNodeType)("Expression"),r=function(i,n,s){(i.computed?t:e)(i,n,s)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r})()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,E.assertValueType)("boolean"),optional:!0}})});ie("NewExpression",{inherits:"CallExpression"});ie("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,E.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,E.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,E.arrayOfType)("Directive"),default:[]},body:(0,E.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});ie("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,E.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});ie("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},rl(),{fields:Object.assign({},ga(),Yi(),{kind:Object.assign({validate:(0,E.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){let e=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,E.assertNodeType)("Expression"),r=function(i,n,s){(i.computed?t:e)(i,n,s)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r})()},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,E.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));ie("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,E.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:(function(){let e=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,E.assertNodeType)("Expression");return Object.assign(function(i,n,s){(i.computed?t:e)(i,n,s)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,E.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,dr.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,E.assertValueType)("boolean"),default:!1},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,E.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,E.assertNodeType)("Expression");return function(r,i,n){((0,dr.default)("ObjectPattern",r)?e:t)(n,"value",n.value)}})():void 0});ie("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},xa(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,n]=r;if(e[i].length>+n+1)throw new TypeError(`RestElement must be last element of ${i}`)}:void 0});ie("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,E.assertNodeType)("Expression"),optional:!0}}});ie("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,E.validateArrayOfType)("Expression")},aliases:["Expression"]});ie("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,E.assertNodeType)("Expression")}}});ie("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,E.assertNodeType)("Expression"),optional:!0},consequent:(0,E.validateArrayOfType)("Statement")}});ie("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,E.assertNodeType)("Expression")},cases:(0,E.validateArrayOfType)("SwitchCase")}});ie("ThisExpression",{aliases:["Expression"]});ie("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,E.assertNodeType)("Expression")}}});ie("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,E.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,E.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,E.assertNodeType)("BlockStatement")}}});ie("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,E.assertNodeType)("Expression")},operator:{validate:(0,E.assertOneOf)(...ya.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});ie("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","MemberExpression"):(0,E.assertNodeType)("Expression")},operator:{validate:(0,E.assertOneOf)(...ya.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});ie("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},kind:{validate:(0,E.assertOneOf)("var","let","const","using","await using")},declarations:(0,E.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,E.assertNodeType)("Identifier","Placeholder"),t=(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,E.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(i,n,s){let{kind:a,declarations:o}=s,c=(0,dr.default)("ForXStatement",i,{left:s});if(c&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${i.type}`);for(let u of o)a==="const"||a==="let"||a==="var"?!c&&!u.init?e(u,"id",u.id):t(u,"id",u.id):r(u,"id",u.id)}})():void 0});ie("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,E.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,E.assertValueType)("boolean")},init:{optional:!0,validate:(0,E.assertNodeType)("Expression")}}});ie("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}}});ie("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")}}});ie("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},xa(),{left:{validate:(0,E.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,E.assertNodeType)("Expression")},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}})});ie("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},xa(),{elements:{validate:(0,E.chain)((0,E.assertValueType)("array"),(0,E.assertEach)((0,E.assertNodeOrValueType)("null","PatternLike")))}})});ie("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ga(),Yi(),{expression:{validate:(0,E.assertValueType)("boolean")},body:{validate:(0,E.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,E.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});ie("ClassBody",{visitor:["body"],fields:{body:(0,E.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});ie("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,E.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,E.assertNodeType)("Expression")},superTypeParameters:{validate:(0,E.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,E.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,E.assertNodeType)("InterfaceExtends"),optional:!0}}});ie("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,E.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,E.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,E.assertNodeType)("Expression")},superTypeParameters:{validate:(0,E.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,E.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,E.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,E.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?(function(){let e=(0,E.assertNodeType)("Identifier");return function(t,r,i){(0,dr.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}})():void 0});var xp=Jt.importAttributes={attributes:{optional:!0,validate:(0,E.arrayOfType)("ImportAttribute")}};xp.assertions={deprecated:!0,optional:!0,validate:(0,E.arrayOfType)("ImportAttribute")};ie("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,E.assertNodeType)("StringLiteral")},exportKind:(0,E.validateOptional)((0,E.assertOneOf)("type","value"))},xp)});ie("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,E.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,E.validateOptional)((0,E.assertOneOf)("value"))}});ie("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,E.assertNodeType)("Declaration")}},xp,{specifiers:{default:[],validate:(0,E.arrayOf)((function(){let e=(0,E.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,E.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,i,n){(r.source?e:t)(r,i,n)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e})())},source:{validate:(0,E.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,E.validateOptional)((0,E.assertOneOf)("type","value"))})});ie("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")},exported:{validate:(0,E.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,E.assertOneOf)("type","value"),optional:!0}}});ie("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,E.assertNodeType)("VariableDeclaration","LVal");let e=(0,E.assertNodeType)("VariableDeclaration"),t=(0,E.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,i,n){(0,dr.default)("VariableDeclaration",n)?e(r,i,n):t(r,i,n)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,E.assertNodeType)("Expression")},body:{validate:(0,E.assertNodeType)("Statement")},await:{default:!1}}});ie("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},xp,{module:{optional:!0,validate:(0,E.assertValueType)("boolean")},phase:{default:null,validate:(0,E.assertOneOf)("source","defer")},specifiers:(0,E.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,E.assertNodeType)("StringLiteral")},importKind:{validate:(0,E.assertOneOf)("type","typeof","value"),optional:!0}})});ie("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")}}});ie("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")}}});ie("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,E.assertNodeType)("Identifier")},imported:{validate:(0,E.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,E.assertOneOf)("type","typeof","value"),optional:!0}}});ie("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,E.assertOneOf)("source","defer")},source:{validate:(0,E.assertNodeType)("Expression")},options:{validate:(0,E.assertNodeType)("Expression"),optional:!0}}});ie("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,dr.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,E.assertNodeType)("Identifier")},property:{validate:(0,E.assertNodeType)("Identifier")}}});var Sp=()=>({abstract:{validate:(0,E.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,E.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},key:{validate:(0,E.chain)((function(){let e=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,E.assertNodeType)("Expression");return function(r,i,n){(r.computed?t:e)(r,i,n)}})(),(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});Jt.classMethodOrPropertyCommon=Sp;var Pb=()=>Object.assign({},ga(),Sp(),{params:(0,E.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,E.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,E.chain)((0,E.assertValueType)("string"),(0,E.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0}});Jt.classMethodOrDeclareMethodCommon=Pb;ie("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},rl(),{fields:Object.assign({},Pb(),Yi(),{body:{validate:(0,E.assertNodeType)("BlockStatement")}})}));ie("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},xa(),{properties:(0,E.validateArrayOfType)("RestElement","ObjectProperty")})});ie("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,E.assertNodeType)("Expression")}}});ie("Super",{aliases:["Expression"]});ie("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,E.assertNodeType)("Expression")},quasi:{validate:(0,E.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,E.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});ie("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,E.chain)((0,E.assertShape)({raw:{validate:(0,E.assertValueType)("string")},cooked:{validate:(0,E.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,i=!1,n=()=>{throw new Error("Internal @babel/types error.")},{str:s,firstInvalidLoc:a}=(0,h8.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:n,invalidEscapeSequence:n,numericSeparatorInEscapeSequence:n,unexpectedNumericSeparator:n,invalidDigit:n,invalidCodePoint:n});if(!i)throw new Error("Invalid raw");t.value.cooked=a?null:s})},tail:{default:!1}}});ie("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,E.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,E.chain)((0,E.assertValueType)("array"),(0,E.assertEach)((0,E.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
|
|
19
|
+
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});ie("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,E.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,E.assertNodeType)("Expression")}}});ie("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,E.assertNodeType)("Expression")}}});ie("Import",{aliases:["Expression"]});ie("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,E.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});ie("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,E.assertNodeType)("Identifier")}}});ie("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,E.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,E.assertNodeType)("Identifier"),t=(0,E.assertNodeType)("Expression");return Object.assign(function(i,n,s){(i.computed?t:e)(i,n,s)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),(0,E.assertOptionalChainStart)()):(0,E.assertValueType)("boolean")}}});ie("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,E.assertNodeType)("Expression")},arguments:(0,E.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,E.chain)((0,E.assertValueType)("boolean"),(0,E.assertOptionalChainStart)()):(0,E.assertValueType)("boolean")},typeArguments:{validate:(0,E.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,E.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});ie("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},rl(),{fields:Object.assign({},Sp(),{value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}})}));ie("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},rl(!0),{fields:Object.assign({},Sp(),{key:{validate:(0,E.chain)((function(){let e=(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,E.assertNodeType)("Expression");return function(r,i,n){(r.computed?t:e)(r,i,n)}})(),(0,E.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},declare:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}})}));ie("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,E.assertNodeType)("PrivateName")},value:{validate:(0,E.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,E.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,E.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,E.assertValueType)("boolean"),default:!1},readonly:{validate:(0,E.assertValueType)("boolean"),optional:!0},optional:{validate:(0,E.assertValueType)("boolean"),optional:!0},definite:{validate:(0,E.assertValueType)("boolean"),optional:!0},variance:{validate:(0,E.assertNodeType)("Variance"),optional:!0}}});ie("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Pb(),Yi(),{kind:{validate:(0,E.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,E.assertNodeType)("PrivateName")},body:{validate:(0,E.assertNodeType)("BlockStatement")}})});ie("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,E.assertNodeType)("Identifier")}}});ie("StaticBlock",{visitor:["body"],fields:{body:(0,E.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});ie("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,E.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,E.assertNodeType)("StringLiteral")}}})});var xw=R(()=>{"use strict";var gw=nl(),L=Tn(),ge=(0,L.defineAliasedType)("Flow"),_b=e=>{let t=e==="DeclareClass";ge(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),extends:(0,L.validateOptional)((0,L.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,L.validateOptional)((0,L.arrayOfType)("InterfaceExtends")),implements:(0,L.validateOptional)((0,L.arrayOfType)("ClassImplements"))}:{},{body:(0,L.validateType)("ObjectTypeAnnotation")})})};ge("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,L.validateType)("FlowType")}});ge("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterInstantiation")}});_b("DeclareClass");ge("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),predicate:(0,L.validateOptionalType)("DeclaredPredicate")}});_b("DeclareInterface");ge("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier","StringLiteral"),body:(0,L.validateType)("BlockStatement"),kind:(0,L.validateOptional)((0,L.assertOneOf)("CommonJS","ES"))}});ge("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,L.validateType)("TypeAnnotation")}});ge("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),right:(0,L.validateType)("FlowType")}});ge("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,L.validateOptionalType)("FlowType"),impltype:(0,L.validateOptionalType)("FlowType")}});ge("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier")}});ge("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,L.validateOptionalType)("Flow"),specifiers:(0,L.validateOptional)((0,L.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,L.validateOptionalType)("StringLiteral"),default:(0,L.validateOptional)((0,L.assertValueType)("boolean"))},gw.importAttributes)});ge("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,L.validateType)("StringLiteral"),exportKind:(0,L.validateOptional)((0,L.assertOneOf)("type","value"))},gw.importAttributes)});ge("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,L.validateType)("Flow")}});ge("ExistsTypeAnnotation",{aliases:["FlowType"]});ge("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),params:(0,L.validateArrayOfType)("FunctionTypeParam"),rest:(0,L.validateOptionalType)("FunctionTypeParam"),this:(0,L.validateOptionalType)("FunctionTypeParam"),returnType:(0,L.validateType)("FlowType")}});ge("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,L.validateOptionalType)("Identifier"),typeAnnotation:(0,L.validateType)("FlowType"),optional:(0,L.validateOptional)((0,L.assertValueType)("boolean"))}});ge("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,L.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterInstantiation")}});ge("InferredPredicate",{aliases:["FlowPredicate"]});ge("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,L.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterInstantiation")}});_b("InterfaceDeclaration");ge("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,L.validateOptional)((0,L.arrayOfType)("InterfaceExtends")),body:(0,L.validateType)("ObjectTypeAnnotation")}});ge("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});ge("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,L.validateType)("FlowType")}});ge("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,L.validate)((0,L.assertValueType)("number"))}});ge("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,L.validate)((0,L.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,L.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,L.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,L.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,L.assertValueType)("boolean"),default:!1},inexact:(0,L.validateOptional)((0,L.assertValueType)("boolean"))}});ge("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,L.validateType)("Identifier"),value:(0,L.validateType)("FlowType"),optional:(0,L.validate)((0,L.assertValueType)("boolean")),static:(0,L.validate)((0,L.assertValueType)("boolean")),method:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,L.validateType)("FlowType"),static:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,L.validateOptionalType)("Identifier"),key:(0,L.validateType)("FlowType"),value:(0,L.validateType)("FlowType"),static:(0,L.validate)((0,L.assertValueType)("boolean")),variance:(0,L.validateOptionalType)("Variance")}});ge("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,L.validateType)("Identifier","StringLiteral"),value:(0,L.validateType)("FlowType"),kind:(0,L.validate)((0,L.assertOneOf)("init","get","set")),static:(0,L.validate)((0,L.assertValueType)("boolean")),proto:(0,L.validate)((0,L.assertValueType)("boolean")),optional:(0,L.validate)((0,L.assertValueType)("boolean")),variance:(0,L.validateOptionalType)("Variance"),method:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,L.validateType)("FlowType")}});ge("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,L.validateOptionalType)("FlowType"),impltype:(0,L.validateType)("FlowType")}});ge("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,L.validateType)("Identifier"),qualification:(0,L.validateType)("Identifier","QualifiedTypeIdentifier")}});ge("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,L.validate)((0,L.assertValueType)("string"))}});ge("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});ge("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,L.validateType)("FlowType")}});ge("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,L.validateType)("Identifier"),typeParameters:(0,L.validateOptionalType)("TypeParameterDeclaration"),right:(0,L.validateType)("FlowType")}});ge("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,L.validateType)("FlowType")}});ge("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,L.validateType)("Expression"),typeAnnotation:(0,L.validateType)("TypeAnnotation")}});ge("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,L.validate)((0,L.assertValueType)("string")),bound:(0,L.validateOptionalType)("TypeAnnotation"),default:(0,L.validateOptionalType)("FlowType"),variance:(0,L.validateOptionalType)("Variance")}});ge("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,L.validate)((0,L.arrayOfType)("TypeParameter"))}});ge("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});ge("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,L.validate)((0,L.arrayOfType)("FlowType"))}});ge("Variance",{builder:["kind"],fields:{kind:(0,L.validate)((0,L.assertOneOf)("minus","plus"))}});ge("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});ge("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,L.validateType)("Identifier"),body:(0,L.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});ge("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,L.validate)((0,L.assertValueType)("boolean")),members:(0,L.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,L.validate)((0,L.assertValueType)("boolean")),members:(0,L.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,L.validate)((0,L.assertValueType)("boolean")),members:(0,L.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,L.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,L.validate)((0,L.assertValueType)("boolean"))}});ge("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,L.validateType)("Identifier"),init:(0,L.validateType)("BooleanLiteral")}});ge("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,L.validateType)("Identifier"),init:(0,L.validateType)("NumericLiteral")}});ge("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,L.validateType)("Identifier"),init:(0,L.validateType)("StringLiteral")}});ge("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,L.validateType)("Identifier")}});ge("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,L.validateType)("FlowType"),indexType:(0,L.validateType)("FlowType")}});ge("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,L.validateType)("FlowType"),indexType:(0,L.validateType)("FlowType"),optional:(0,L.validate)((0,L.assertValueType)("boolean"))}})});var Sw=R(()=>{"use strict";var kt=Tn(),fr=(0,kt.defineAliasedType)("JSX");fr("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,kt.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,kt.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});fr("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,kt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});fr("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,kt.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,kt.assertNodeType)("JSXClosingElement")},children:(0,kt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,kt.assertValueType)("boolean"),optional:!0}})});fr("JSXEmptyExpression",{});fr("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,kt.assertNodeType)("Expression","JSXEmptyExpression")}}});fr("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,kt.assertNodeType)("Expression")}}});fr("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,kt.assertValueType)("string")}}});fr("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,kt.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,kt.assertNodeType)("JSXIdentifier")}}});fr("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,kt.assertNodeType)("JSXIdentifier")},name:{validate:(0,kt.assertNodeType)("JSXIdentifier")}}});fr("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,kt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,kt.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,kt.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,kt.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});fr("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,kt.assertNodeType)("Expression")}}});fr("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,kt.assertValueType)("string")}}});fr("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,kt.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,kt.assertNodeType)("JSXClosingFragment")},children:(0,kt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});fr("JSXOpeningFragment",{aliases:["Immutable"]});fr("JSXClosingFragment",{aliases:["Immutable"]})});var Ab=R(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.PLACEHOLDERS_FLIPPED_ALIAS=pi.PLACEHOLDERS_ALIAS=pi.PLACEHOLDERS=void 0;var m8=Tn(),y8=pi.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Ib=pi.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of y8){let t=m8.ALIAS_KEYS[e];t!=null&&t.length&&(Ib[e]=t)}var kb=pi.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(Ib).forEach(e=>{Ib[e].forEach(t=>{hasOwnProperty.call(kb,t)||(kb[t]=[]),kb[t].push(e)})})});var bw=R(()=>{"use strict";var bp=Tn(),g8=Ab(),x8=nl(),wb=(0,bp.defineAliasedType)("Miscellaneous");wb("Noop",{visitor:[]});wb("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,bp.assertNodeType)("Identifier")},expectedNode:{validate:(0,bp.assertOneOf)(...g8.PLACEHOLDERS)}},(0,x8.patternLikeCommon)())});wb("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,bp.assertValueType)("string")}}})});var vw=R(()=>{"use strict";var bt=Tn();(0,bt.default)("ArgumentPlaceholder",{});(0,bt.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,bt.assertNodeType)("Expression")},callee:{validate:(0,bt.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,bt.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,bt.assertNodeType)("Expression")}}});(0,bt.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,bt.assertNodeType)("BlockStatement")},async:{validate:(0,bt.assertValueType)("boolean"),default:!1}}});(0,bt.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,bt.assertNodeType)("Identifier")}}});(0,bt.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,bt.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,bt.default)("TupleExpression",{fields:{elements:{validate:(0,bt.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,bt.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,bt.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,bt.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,bt.assertNodeType)("Program")}},aliases:["Expression"]});(0,bt.default)("TopicReference",{aliases:["Expression"]});(0,bt.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,bt.assertNodeType)("Expression")}},aliases:["Expression"]});(0,bt.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,bt.assertNodeType)("Expression")}},aliases:["Expression"]});(0,bt.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,bt.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var Aw=R(()=>{"use strict";var V=Tn(),Cb=nl(),S8=fa(),Te=(0,V.defineAliasedType)("TypeScript"),_r=(0,V.assertValueType)("boolean"),Tw=()=>({returnType:{validate:(0,V.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,V.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Te("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,V.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,V.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,V.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,V.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,V.arrayOfType)("Decorator"),optional:!0}}});Te("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,Cb.functionDeclarationCommon)(),Tw())});Te("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,Cb.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,Cb.classMethodOrDeclareMethodCommon)(),Tw())}));Te("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,V.validateType)("TSEntityName"),right:(0,V.validateType)("Identifier")}});var vp=()=>({typeParameters:(0,V.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,V.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,V.validateOptionalType)("TSTypeAnnotation")}),Ew={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:vp()};Te("TSCallSignatureDeclaration",Ew);Te("TSConstructSignatureDeclaration",Ew);var Pw=()=>({key:(0,V.validateType)("Expression"),computed:{default:!1},optional:(0,V.validateOptional)(_r)});Te("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},Pw(),{readonly:(0,V.validateOptional)(_r),typeAnnotation:(0,V.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,V.assertOneOf)("get","set")}})});Te("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},vp(),Pw(),{kind:{validate:(0,V.assertOneOf)("method","get","set")}})});Te("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,V.validateOptional)(_r),static:(0,V.validateOptional)(_r),parameters:(0,V.validateArrayOfType)("Identifier"),typeAnnotation:(0,V.validateOptionalType)("TSTypeAnnotation")}});var b8=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of b8)Te(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Te("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var _w={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Te("TSFunctionType",Object.assign({},_w,{fields:vp()}));Te("TSConstructorType",Object.assign({},_w,{fields:Object.assign({},vp(),{abstract:(0,V.validateOptional)(_r)})}));Te("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,V.validateType)("TSEntityName"),typeParameters:(0,V.validateOptionalType)("TSTypeParameterInstantiation")}});Te("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,V.validateType)("Identifier","TSThisType"),typeAnnotation:(0,V.validateOptionalType)("TSTypeAnnotation"),asserts:(0,V.validateOptional)(_r)}});Te("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,V.validateType)("TSEntityName","TSImportType"),typeParameters:(0,V.validateOptionalType)("TSTypeParameterInstantiation")}});Te("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,V.validateArrayOfType)("TSTypeElement")}});Te("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,V.validateType)("TSType")}});Te("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,V.validateArrayOfType)("TSType","TSNamedTupleMember")}});Te("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,V.validateType)("TSType")}});Te("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,V.validateType)("TSType")}});Te("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,V.validateType)("Identifier"),optional:{validate:_r,default:!1},elementType:(0,V.validateType)("TSType")}});var kw={aliases:["TSType"],visitor:["types"],fields:{types:(0,V.validateArrayOfType)("TSType")}};Te("TSUnionType",kw);Te("TSIntersectionType",kw);Te("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,V.validateType)("TSType"),extendsType:(0,V.validateType)("TSType"),trueType:(0,V.validateType)("TSType"),falseType:(0,V.validateType)("TSType")}});Te("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,V.validateType)("TSTypeParameter")}});Te("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,V.validateType)("TSType")}});Te("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,V.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,V.validateType)("TSType")}});Te("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,V.validateType)("TSType"),indexType:(0,V.validateType)("TSType")}});Te("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,V.validateType)("TSTypeParameter")},{readonly:(0,V.validateOptional)((0,V.assertOneOf)(!0,!1,"+","-")),optional:(0,V.validateOptional)((0,V.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,V.validateOptionalType)("TSType"),nameType:(0,V.validateOptionalType)("TSType")})});Te("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,V.validateArrayOfType)("TemplateElement"),types:{validate:(0,V.chain)((0,V.assertValueType)("array"),(0,V.assertEach)((0,V.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
|
|
20
|
+
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Te("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,V.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,V.assertOneOf)("-"),r=(0,V.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),i=function(s,a,o){(0,S8.default)("UnaryExpression",o)?(t(o,"operator",o.operator),e(o,"argument",o.argument)):r(s,a,o)};return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i})()}}});Te("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,V.validateType)("TSEntityName"),typeParameters:(0,V.validateOptionalType)("TSTypeParameterInstantiation")}});Te("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,V.validateOptional)(_r),id:(0,V.validateType)("Identifier"),typeParameters:(0,V.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,V.validateOptional)((0,V.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,V.validateType)("TSInterfaceBody")}});Te("TSInterfaceBody",{visitor:["body"],fields:{body:(0,V.validateArrayOfType)("TSTypeElement")}});Te("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,V.validateOptional)(_r),id:(0,V.validateType)("Identifier"),typeParameters:(0,V.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,V.validateType)("TSType")}});Te("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,V.validateType)("Expression"),typeParameters:(0,V.validateOptionalType)("TSTypeParameterInstantiation")}});var Iw={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,V.validateType)("Expression"),typeAnnotation:(0,V.validateType)("TSType")}};Te("TSAsExpression",Iw);Te("TSSatisfiesExpression",Iw);Te("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,V.validateType)("TSType"),expression:(0,V.validateType)("Expression")}});Te("TSEnumBody",{visitor:["members"],fields:{members:(0,V.validateArrayOfType)("TSEnumMember")}});Te("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,V.validateOptional)(_r),const:(0,V.validateOptional)(_r),id:(0,V.validateType)("Identifier"),members:(0,V.validateArrayOfType)("TSEnumMember"),initializer:(0,V.validateOptionalType)("Expression"),body:(0,V.validateOptionalType)("TSEnumBody")}});Te("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,V.validateType)("Identifier","StringLiteral"),initializer:(0,V.validateOptionalType)("Expression")}});Te("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,V.assertOneOf)("global","module","namespace")},declare:(0,V.validateOptional)(_r)},{global:(0,V.validateOptional)(_r)},{id:(0,V.validateType)("Identifier","StringLiteral"),body:(0,V.validateType)("TSModuleBlock","TSModuleDeclaration")})});Te("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,V.validateArrayOfType)("Statement")}});Te("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,V.validateType)("StringLiteral")},{qualifier:(0,V.validateOptionalType)("TSEntityName")},{typeParameters:(0,V.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,V.assertNodeType)("ObjectExpression"),optional:!0}})});Te("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,V.validate)(_r)},{id:(0,V.validateType)("Identifier"),moduleReference:(0,V.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,V.assertOneOf)("type","value"),optional:!0}})});Te("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,V.validateType)("StringLiteral")}});Te("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,V.validateType)("Expression")}});Te("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,V.validateType)("Expression")}});Te("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,V.validateType)("Identifier")}});Te("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,V.assertNodeType)("TSType")}}});Te("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,V.validateArrayOfType)("TSType")}});Te("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,V.validateArrayOfType)("TSTypeParameter")}});Te("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,V.assertValueType)("string")},in:{validate:(0,V.assertValueType)("boolean"),optional:!0},out:{validate:(0,V.assertValueType)("boolean"),optional:!0},const:{validate:(0,V.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,V.assertNodeType)("TSType"),optional:!0},default:{validate:(0,V.assertNodeType)("TSType"),optional:!0}}})});var ww=R(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.DEPRECATED_ALIASES=void 0;var bke=Tp.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var Br=R(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});Object.defineProperty(nr,"ALIAS_KEYS",{enumerable:!0,get:function(){return hr.ALIAS_KEYS}});Object.defineProperty(nr,"BUILDER_KEYS",{enumerable:!0,get:function(){return hr.BUILDER_KEYS}});Object.defineProperty(nr,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return Nb.DEPRECATED_ALIASES}});Object.defineProperty(nr,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return hr.DEPRECATED_KEYS}});Object.defineProperty(nr,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return hr.FLIPPED_ALIAS_KEYS}});Object.defineProperty(nr,"NODE_FIELDS",{enumerable:!0,get:function(){return hr.NODE_FIELDS}});Object.defineProperty(nr,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return hr.NODE_PARENT_VALIDATIONS}});Object.defineProperty(nr,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return hr.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(nr,"PLACEHOLDERS",{enumerable:!0,get:function(){return Ob.PLACEHOLDERS}});Object.defineProperty(nr,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Ob.PLACEHOLDERS_ALIAS}});Object.defineProperty(nr,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Ob.PLACEHOLDERS_FLIPPED_ALIAS}});nr.TYPES=void 0;Object.defineProperty(nr,"VISITOR_KEYS",{enumerable:!0,get:function(){return hr.VISITOR_KEYS}});nl();xw();Sw();bw();vw();Aw();var hr=Tn(),Ob=Ab(),Nb=ww();Object.keys(Nb.DEPRECATED_ALIASES).forEach(e=>{hr.FLIPPED_ALIAS_KEYS[e]=hr.FLIPPED_ALIAS_KEYS[Nb.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of hr.allExpandedTypes)for(let r of e){let i=hr.FLIPPED_ALIAS_KEYS[r];i?i.forEach(t.add,t):t.add(r)}var Tke=nr.TYPES=[].concat(Object.keys(hr.VISITOR_KEYS),Object.keys(hr.FLIPPED_ALIAS_KEYS),Object.keys(hr.DEPRECATED_KEYS))});var gp=R(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.default=v8;Sa.validateChild=Nw;Sa.validateField=Cw;Sa.validateInternal=T8;var il=Br();function v8(e,t,r){if(!e)return;let i=il.NODE_FIELDS[e.type];if(!i)return;let n=i[t];Cw(e,t,r,n),Nw(e,t,r)}function T8(e,t,r,i,n){if(e!=null&&e.validate&&!(e.optional&&i==null)&&(e.validate(t,r,i),n)){var s;let a=i.type;if(a==null)return;(s=il.NODE_PARENT_VALIDATIONS[a])==null||s.call(il.NODE_PARENT_VALIDATIONS,t,r,i)}}function Cw(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r))}function Nw(e,t,r){var i;let n=r?.type;n!=null&&((i=il.NODE_PARENT_VALIDATIONS[n])==null||i.call(il.NODE_PARENT_VALIDATIONS,e,t,r))}});var Db=R(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.anyTypeAnnotation=r5;g.argumentPlaceholder=Nq;g.arrayExpression=k8;g.arrayPattern=vV;g.arrayTypeAnnotation=n5;g.arrowFunctionExpression=TV;g.assignmentExpression=I8;g.assignmentPattern=bV;g.awaitExpression=VV;g.bigIntLiteral=_8;g.binaryExpression=A8;g.bindExpression=Oq;g.blockStatement=O8;g.booleanLiteral=H8;g.booleanLiteralTypeAnnotation=s5;g.booleanTypeAnnotation=i5;g.breakStatement=D8;g.callExpression=$8;g.catchClause=j8;g.classAccessorProperty=YV;g.classBody=EV;g.classDeclaration=_V;g.classExpression=PV;g.classImplements=o5;g.classMethod=RV;g.classPrivateMethod=HV;g.classPrivateProperty=GV;g.classProperty=ZV;g.conditionalExpression=L8;g.continueStatement=R8;g.debuggerStatement=M8;g.decimalLiteral=Mq;g.declareClass=l5;g.declareExportAllDeclaration=g5;g.declareExportDeclaration=y5;g.declareFunction=c5;g.declareInterface=u5;g.declareModule=p5;g.declareModuleExports=d5;g.declareOpaqueType=h5;g.declareTypeAlias=f5;g.declareVariable=m5;g.declaredPredicate=x5;g.decorator=Dq;g.directive=C8;g.directiveLiteral=N8;g.doExpression=$q;g.doWhileStatement=F8;g.emptyStatement=B8;g.emptyTypeAnnotation=w5;g.enumBooleanBody=nq;g.enumBooleanMember=oq;g.enumDeclaration=rq;g.enumDefaultedMember=uq;g.enumNumberBody=iq;g.enumNumberMember=lq;g.enumStringBody=sq;g.enumStringMember=cq;g.enumSymbolBody=aq;g.existsTypeAnnotation=S5;g.exportAllDeclaration=kV;g.exportDefaultDeclaration=IV;g.exportDefaultSpecifier=jq;g.exportNamedDeclaration=AV;g.exportNamespaceSpecifier=WV;g.exportSpecifier=wV;g.expressionStatement=z8;g.file=U8;g.forInStatement=K8;g.forOfStatement=CV;g.forStatement=V8;g.functionDeclaration=q8;g.functionExpression=W8;g.functionTypeAnnotation=b5;g.functionTypeParam=v5;g.genericTypeAnnotation=T5;g.identifier=J8;g.ifStatement=X8;g.import=qV;g.importAttribute=t5;g.importDeclaration=NV;g.importDefaultSpecifier=OV;g.importExpression=jV;g.importNamespaceSpecifier=DV;g.importSpecifier=$V;g.indexedAccessType=pq;g.inferredPredicate=E5;g.interfaceDeclaration=_5;g.interfaceExtends=P5;g.interfaceTypeAnnotation=k5;g.interpreterDirective=w8;g.intersectionTypeAnnotation=I5;g.jSXAttribute=g.jsxAttribute=fq;g.jSXClosingElement=g.jsxClosingElement=hq;g.jSXClosingFragment=g.jsxClosingFragment=Iq;g.jSXElement=g.jsxElement=mq;g.jSXEmptyExpression=g.jsxEmptyExpression=yq;g.jSXExpressionContainer=g.jsxExpressionContainer=gq;g.jSXFragment=g.jsxFragment=_q;g.jSXIdentifier=g.jsxIdentifier=Sq;g.jSXMemberExpression=g.jsxMemberExpression=bq;g.jSXNamespacedName=g.jsxNamespacedName=vq;g.jSXOpeningElement=g.jsxOpeningElement=Tq;g.jSXOpeningFragment=g.jsxOpeningFragment=kq;g.jSXSpreadAttribute=g.jsxSpreadAttribute=Eq;g.jSXSpreadChild=g.jsxSpreadChild=xq;g.jSXText=g.jsxText=Pq;g.labeledStatement=Z8;g.logicalExpression=Q8;g.memberExpression=eV;g.metaProperty=LV;g.mixedTypeAnnotation=A5;g.moduleExpression=Fq;g.newExpression=tV;g.noop=Aq;g.nullLiteral=G8;g.nullLiteralTypeAnnotation=a5;g.nullableTypeAnnotation=C5;g.numberLiteral=iW;g.numberLiteralTypeAnnotation=N5;g.numberTypeAnnotation=O5;g.numericLiteral=Ow;g.objectExpression=nV;g.objectMethod=iV;g.objectPattern=MV;g.objectProperty=sV;g.objectTypeAnnotation=D5;g.objectTypeCallProperty=j5;g.objectTypeIndexer=L5;g.objectTypeInternalSlot=$5;g.objectTypeProperty=R5;g.objectTypeSpreadProperty=M5;g.opaqueType=F5;g.optionalCallExpression=XV;g.optionalIndexedAccessType=dq;g.optionalMemberExpression=JV;g.parenthesizedExpression=lV;g.pipelineBareFunction=Uq;g.pipelinePrimaryTopicReference=Kq;g.pipelineTopicExpression=zq;g.placeholder=wq;g.privateName=QV;g.program=rV;g.qualifiedTypeIdentifier=B5;g.recordExpression=Lq;g.regExpLiteral=Dw;g.regexLiteral=sW;g.restElement=$w;g.restProperty=aW;g.returnStatement=aV;g.sequenceExpression=oV;g.spreadElement=jw;g.spreadProperty=oW;g.staticBlock=e5;g.stringLiteral=Y8;g.stringLiteralTypeAnnotation=z5;g.stringTypeAnnotation=U5;g.super=FV;g.switchCase=cV;g.switchStatement=uV;g.symbolTypeAnnotation=K5;g.taggedTemplateExpression=BV;g.templateElement=zV;g.templateLiteral=UV;g.thisExpression=pV;g.thisTypeAnnotation=V5;g.throwStatement=dV;g.topicReference=Bq;g.tryStatement=fV;g.tSAnyKeyword=g.tsAnyKeyword=e7;g.tSArrayType=g.tsArrayType=b7;g.tSAsExpression=g.tsAsExpression=B7;g.tSBigIntKeyword=g.tsBigIntKeyword=r7;g.tSBooleanKeyword=g.tsBooleanKeyword=t7;g.tSCallSignatureDeclaration=g.tsCallSignatureDeclaration=Zq;g.tSConditionalType=g.tsConditionalType=I7;g.tSConstructSignatureDeclaration=g.tsConstructSignatureDeclaration=Yq;g.tSConstructorType=g.tsConstructorType=m7;g.tSDeclareFunction=g.tsDeclareFunction=Wq;g.tSDeclareMethod=g.tsDeclareMethod=Jq;g.tSEnumBody=g.tsEnumBody=K7;g.tSEnumDeclaration=g.tsEnumDeclaration=V7;g.tSEnumMember=g.tsEnumMember=q7;g.tSExportAssignment=g.tsExportAssignment=H7;g.tSExpressionWithTypeArguments=g.tsExpressionWithTypeArguments=j7;g.tSExternalModuleReference=g.tsExternalModuleReference=Y7;g.tSFunctionType=g.tsFunctionType=h7;g.tSImportEqualsDeclaration=g.tsImportEqualsDeclaration=Z7;g.tSImportType=g.tsImportType=X7;g.tSIndexSignature=g.tsIndexSignature=Qq;g.tSIndexedAccessType=g.tsIndexedAccessType=N7;g.tSInferType=g.tsInferType=A7;g.tSInstantiationExpression=g.tsInstantiationExpression=F7;g.tSInterfaceBody=g.tsInterfaceBody=R7;g.tSInterfaceDeclaration=g.tsInterfaceDeclaration=L7;g.tSIntersectionType=g.tsIntersectionType=k7;g.tSIntrinsicKeyword=g.tsIntrinsicKeyword=n7;g.tSLiteralType=g.tsLiteralType=$7;g.tSMappedType=g.tsMappedType=O7;g.tSMethodSignature=g.tsMethodSignature=Hq;g.tSModuleBlock=g.tsModuleBlock=J7;g.tSModuleDeclaration=g.tsModuleDeclaration=W7;g.tSNamedTupleMember=g.tsNamedTupleMember=P7;g.tSNamespaceExportDeclaration=g.tsNamespaceExportDeclaration=Q7;g.tSNeverKeyword=g.tsNeverKeyword=i7;g.tSNonNullExpression=g.tsNonNullExpression=G7;g.tSNullKeyword=g.tsNullKeyword=s7;g.tSNumberKeyword=g.tsNumberKeyword=a7;g.tSObjectKeyword=g.tsObjectKeyword=o7;g.tSOptionalType=g.tsOptionalType=T7;g.tSParameterProperty=g.tsParameterProperty=qq;g.tSParenthesizedType=g.tsParenthesizedType=w7;g.tSPropertySignature=g.tsPropertySignature=Gq;g.tSQualifiedName=g.tsQualifiedName=Xq;g.tSRestType=g.tsRestType=E7;g.tSSatisfiesExpression=g.tsSatisfiesExpression=z7;g.tSStringKeyword=g.tsStringKeyword=l7;g.tSSymbolKeyword=g.tsSymbolKeyword=c7;g.tSTemplateLiteralType=g.tsTemplateLiteralType=D7;g.tSThisType=g.tsThisType=f7;g.tSTupleType=g.tsTupleType=v7;g.tSTypeAliasDeclaration=g.tsTypeAliasDeclaration=M7;g.tSTypeAnnotation=g.tsTypeAnnotation=eW;g.tSTypeAssertion=g.tsTypeAssertion=U7;g.tSTypeLiteral=g.tsTypeLiteral=S7;g.tSTypeOperator=g.tsTypeOperator=C7;g.tSTypeParameter=g.tsTypeParameter=nW;g.tSTypeParameterDeclaration=g.tsTypeParameterDeclaration=rW;g.tSTypeParameterInstantiation=g.tsTypeParameterInstantiation=tW;g.tSTypePredicate=g.tsTypePredicate=g7;g.tSTypeQuery=g.tsTypeQuery=x7;g.tSTypeReference=g.tsTypeReference=y7;g.tSUndefinedKeyword=g.tsUndefinedKeyword=u7;g.tSUnionType=g.tsUnionType=_7;g.tSUnknownKeyword=g.tsUnknownKeyword=p7;g.tSVoidKeyword=g.tsVoidKeyword=d7;g.tupleExpression=Rq;g.tupleTypeAnnotation=q5;g.typeAlias=J5;g.typeAnnotation=X5;g.typeCastExpression=Z5;g.typeParameter=Y5;g.typeParameterDeclaration=G5;g.typeParameterInstantiation=H5;g.typeofTypeAnnotation=W5;g.unaryExpression=hV;g.unionTypeAnnotation=Q5;g.updateExpression=mV;g.v8IntrinsicIdentifier=Cq;g.variableDeclaration=yV;g.variableDeclarator=gV;g.variance=eq;g.voidPattern=Vq;g.voidTypeAnnotation=tq;g.whileStatement=xV;g.withStatement=SV;g.yieldExpression=KV;var E8=gp(),Ep=da(),P8=Tn(),{validateInternal:m}=E8,{NODE_FIELDS:I}=P8;function _8(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=I.BigIntLiteral;return m(r.value,t,"value",e),t}function k8(e=[]){let t={type:"ArrayExpression",elements:e},r=I.ArrayExpression;return m(r.elements,t,"elements",e,1),t}function I8(e,t,r){let i={type:"AssignmentExpression",operator:e,left:t,right:r},n=I.AssignmentExpression;return m(n.operator,i,"operator",e),m(n.left,i,"left",t,1),m(n.right,i,"right",r,1),i}function A8(e,t,r){let i={type:"BinaryExpression",operator:e,left:t,right:r},n=I.BinaryExpression;return m(n.operator,i,"operator",e),m(n.left,i,"left",t,1),m(n.right,i,"right",r,1),i}function w8(e){let t={type:"InterpreterDirective",value:e},r=I.InterpreterDirective;return m(r.value,t,"value",e),t}function C8(e){let t={type:"Directive",value:e},r=I.Directive;return m(r.value,t,"value",e,1),t}function N8(e){let t={type:"DirectiveLiteral",value:e},r=I.DirectiveLiteral;return m(r.value,t,"value",e),t}function O8(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},i=I.BlockStatement;return m(i.body,r,"body",e,1),m(i.directives,r,"directives",t,1),r}function D8(e=null){let t={type:"BreakStatement",label:e},r=I.BreakStatement;return m(r.label,t,"label",e,1),t}function $8(e,t){let r={type:"CallExpression",callee:e,arguments:t},i=I.CallExpression;return m(i.callee,r,"callee",e,1),m(i.arguments,r,"arguments",t,1),r}function j8(e=null,t){let r={type:"CatchClause",param:e,body:t},i=I.CatchClause;return m(i.param,r,"param",e,1),m(i.body,r,"body",t,1),r}function L8(e,t,r){let i={type:"ConditionalExpression",test:e,consequent:t,alternate:r},n=I.ConditionalExpression;return m(n.test,i,"test",e,1),m(n.consequent,i,"consequent",t,1),m(n.alternate,i,"alternate",r,1),i}function R8(e=null){let t={type:"ContinueStatement",label:e},r=I.ContinueStatement;return m(r.label,t,"label",e,1),t}function M8(){return{type:"DebuggerStatement"}}function F8(e,t){let r={type:"DoWhileStatement",test:e,body:t},i=I.DoWhileStatement;return m(i.test,r,"test",e,1),m(i.body,r,"body",t,1),r}function B8(){return{type:"EmptyStatement"}}function z8(e){let t={type:"ExpressionStatement",expression:e},r=I.ExpressionStatement;return m(r.expression,t,"expression",e,1),t}function U8(e,t=null,r=null){let i={type:"File",program:e,comments:t,tokens:r},n=I.File;return m(n.program,i,"program",e,1),m(n.comments,i,"comments",t,1),m(n.tokens,i,"tokens",r),i}function K8(e,t,r){let i={type:"ForInStatement",left:e,right:t,body:r},n=I.ForInStatement;return m(n.left,i,"left",e,1),m(n.right,i,"right",t,1),m(n.body,i,"body",r,1),i}function V8(e=null,t=null,r=null,i){let n={type:"ForStatement",init:e,test:t,update:r,body:i},s=I.ForStatement;return m(s.init,n,"init",e,1),m(s.test,n,"test",t,1),m(s.update,n,"update",r,1),m(s.body,n,"body",i,1),n}function q8(e=null,t,r,i=!1,n=!1){let s={type:"FunctionDeclaration",id:e,params:t,body:r,generator:i,async:n},a=I.FunctionDeclaration;return m(a.id,s,"id",e,1),m(a.params,s,"params",t,1),m(a.body,s,"body",r,1),m(a.generator,s,"generator",i),m(a.async,s,"async",n),s}function W8(e=null,t,r,i=!1,n=!1){let s={type:"FunctionExpression",id:e,params:t,body:r,generator:i,async:n},a=I.FunctionExpression;return m(a.id,s,"id",e,1),m(a.params,s,"params",t,1),m(a.body,s,"body",r,1),m(a.generator,s,"generator",i),m(a.async,s,"async",n),s}function J8(e){let t={type:"Identifier",name:e},r=I.Identifier;return m(r.name,t,"name",e),t}function X8(e,t,r=null){let i={type:"IfStatement",test:e,consequent:t,alternate:r},n=I.IfStatement;return m(n.test,i,"test",e,1),m(n.consequent,i,"consequent",t,1),m(n.alternate,i,"alternate",r,1),i}function Z8(e,t){let r={type:"LabeledStatement",label:e,body:t},i=I.LabeledStatement;return m(i.label,r,"label",e,1),m(i.body,r,"body",t,1),r}function Y8(e){let t={type:"StringLiteral",value:e},r=I.StringLiteral;return m(r.value,t,"value",e),t}function Ow(e){let t={type:"NumericLiteral",value:e},r=I.NumericLiteral;return m(r.value,t,"value",e),t}function G8(){return{type:"NullLiteral"}}function H8(e){let t={type:"BooleanLiteral",value:e},r=I.BooleanLiteral;return m(r.value,t,"value",e),t}function Dw(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},i=I.RegExpLiteral;return m(i.pattern,r,"pattern",e),m(i.flags,r,"flags",t),r}function Q8(e,t,r){let i={type:"LogicalExpression",operator:e,left:t,right:r},n=I.LogicalExpression;return m(n.operator,i,"operator",e),m(n.left,i,"left",t,1),m(n.right,i,"right",r,1),i}function eV(e,t,r=!1,i=null){let n={type:"MemberExpression",object:e,property:t,computed:r,optional:i},s=I.MemberExpression;return m(s.object,n,"object",e,1),m(s.property,n,"property",t,1),m(s.computed,n,"computed",r),m(s.optional,n,"optional",i),n}function tV(e,t){let r={type:"NewExpression",callee:e,arguments:t},i=I.NewExpression;return m(i.callee,r,"callee",e,1),m(i.arguments,r,"arguments",t,1),r}function rV(e,t=[],r="script",i=null){let n={type:"Program",body:e,directives:t,sourceType:r,interpreter:i},s=I.Program;return m(s.body,n,"body",e,1),m(s.directives,n,"directives",t,1),m(s.sourceType,n,"sourceType",r),m(s.interpreter,n,"interpreter",i,1),n}function nV(e){let t={type:"ObjectExpression",properties:e},r=I.ObjectExpression;return m(r.properties,t,"properties",e,1),t}function iV(e="method",t,r,i,n=!1,s=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:i,computed:n,generator:s,async:a},c=I.ObjectMethod;return m(c.kind,o,"kind",e),m(c.key,o,"key",t,1),m(c.params,o,"params",r,1),m(c.body,o,"body",i,1),m(c.computed,o,"computed",n),m(c.generator,o,"generator",s),m(c.async,o,"async",a),o}function sV(e,t,r=!1,i=!1,n=null){let s={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:i,decorators:n},a=I.ObjectProperty;return m(a.key,s,"key",e,1),m(a.value,s,"value",t,1),m(a.computed,s,"computed",r),m(a.shorthand,s,"shorthand",i),m(a.decorators,s,"decorators",n,1),s}function $w(e){let t={type:"RestElement",argument:e},r=I.RestElement;return m(r.argument,t,"argument",e,1),t}function aV(e=null){let t={type:"ReturnStatement",argument:e},r=I.ReturnStatement;return m(r.argument,t,"argument",e,1),t}function oV(e){let t={type:"SequenceExpression",expressions:e},r=I.SequenceExpression;return m(r.expressions,t,"expressions",e,1),t}function lV(e){let t={type:"ParenthesizedExpression",expression:e},r=I.ParenthesizedExpression;return m(r.expression,t,"expression",e,1),t}function cV(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},i=I.SwitchCase;return m(i.test,r,"test",e,1),m(i.consequent,r,"consequent",t,1),r}function uV(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},i=I.SwitchStatement;return m(i.discriminant,r,"discriminant",e,1),m(i.cases,r,"cases",t,1),r}function pV(){return{type:"ThisExpression"}}function dV(e){let t={type:"ThrowStatement",argument:e},r=I.ThrowStatement;return m(r.argument,t,"argument",e,1),t}function fV(e,t=null,r=null){let i={type:"TryStatement",block:e,handler:t,finalizer:r},n=I.TryStatement;return m(n.block,i,"block",e,1),m(n.handler,i,"handler",t,1),m(n.finalizer,i,"finalizer",r,1),i}function hV(e,t,r=!0){let i={type:"UnaryExpression",operator:e,argument:t,prefix:r},n=I.UnaryExpression;return m(n.operator,i,"operator",e),m(n.argument,i,"argument",t,1),m(n.prefix,i,"prefix",r),i}function mV(e,t,r=!1){let i={type:"UpdateExpression",operator:e,argument:t,prefix:r},n=I.UpdateExpression;return m(n.operator,i,"operator",e),m(n.argument,i,"argument",t,1),m(n.prefix,i,"prefix",r),i}function yV(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},i=I.VariableDeclaration;return m(i.kind,r,"kind",e),m(i.declarations,r,"declarations",t,1),r}function gV(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},i=I.VariableDeclarator;return m(i.id,r,"id",e,1),m(i.init,r,"init",t,1),r}function xV(e,t){let r={type:"WhileStatement",test:e,body:t},i=I.WhileStatement;return m(i.test,r,"test",e,1),m(i.body,r,"body",t,1),r}function SV(e,t){let r={type:"WithStatement",object:e,body:t},i=I.WithStatement;return m(i.object,r,"object",e,1),m(i.body,r,"body",t,1),r}function bV(e,t){let r={type:"AssignmentPattern",left:e,right:t},i=I.AssignmentPattern;return m(i.left,r,"left",e,1),m(i.right,r,"right",t,1),r}function vV(e){let t={type:"ArrayPattern",elements:e},r=I.ArrayPattern;return m(r.elements,t,"elements",e,1),t}function TV(e,t,r=!1){let i={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},n=I.ArrowFunctionExpression;return m(n.params,i,"params",e,1),m(n.body,i,"body",t,1),m(n.async,i,"async",r),i}function EV(e){let t={type:"ClassBody",body:e},r=I.ClassBody;return m(r.body,t,"body",e,1),t}function PV(e=null,t=null,r,i=null){let n={type:"ClassExpression",id:e,superClass:t,body:r,decorators:i},s=I.ClassExpression;return m(s.id,n,"id",e,1),m(s.superClass,n,"superClass",t,1),m(s.body,n,"body",r,1),m(s.decorators,n,"decorators",i,1),n}function _V(e=null,t=null,r,i=null){let n={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:i},s=I.ClassDeclaration;return m(s.id,n,"id",e,1),m(s.superClass,n,"superClass",t,1),m(s.body,n,"body",r,1),m(s.decorators,n,"decorators",i,1),n}function kV(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},i=I.ExportAllDeclaration;return m(i.source,r,"source",e,1),m(i.attributes,r,"attributes",t,1),r}function IV(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=I.ExportDefaultDeclaration;return m(r.declaration,t,"declaration",e,1),t}function AV(e=null,t=[],r=null,i=null){let n={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:i},s=I.ExportNamedDeclaration;return m(s.declaration,n,"declaration",e,1),m(s.specifiers,n,"specifiers",t,1),m(s.source,n,"source",r,1),m(s.attributes,n,"attributes",i,1),n}function wV(e,t){let r={type:"ExportSpecifier",local:e,exported:t},i=I.ExportSpecifier;return m(i.local,r,"local",e,1),m(i.exported,r,"exported",t,1),r}function CV(e,t,r,i=!1){let n={type:"ForOfStatement",left:e,right:t,body:r,await:i},s=I.ForOfStatement;return m(s.left,n,"left",e,1),m(s.right,n,"right",t,1),m(s.body,n,"body",r,1),m(s.await,n,"await",i),n}function NV(e,t,r=null){let i={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},n=I.ImportDeclaration;return m(n.specifiers,i,"specifiers",e,1),m(n.source,i,"source",t,1),m(n.attributes,i,"attributes",r,1),i}function OV(e){let t={type:"ImportDefaultSpecifier",local:e},r=I.ImportDefaultSpecifier;return m(r.local,t,"local",e,1),t}function DV(e){let t={type:"ImportNamespaceSpecifier",local:e},r=I.ImportNamespaceSpecifier;return m(r.local,t,"local",e,1),t}function $V(e,t){let r={type:"ImportSpecifier",local:e,imported:t},i=I.ImportSpecifier;return m(i.local,r,"local",e,1),m(i.imported,r,"imported",t,1),r}function jV(e,t=null){let r={type:"ImportExpression",source:e,options:t},i=I.ImportExpression;return m(i.source,r,"source",e,1),m(i.options,r,"options",t,1),r}function LV(e,t){let r={type:"MetaProperty",meta:e,property:t},i=I.MetaProperty;return m(i.meta,r,"meta",e,1),m(i.property,r,"property",t,1),r}function RV(e="method",t,r,i,n=!1,s=!1,a=!1,o=!1){let c={type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:n,static:s,generator:a,async:o},u=I.ClassMethod;return m(u.kind,c,"kind",e),m(u.key,c,"key",t,1),m(u.params,c,"params",r,1),m(u.body,c,"body",i,1),m(u.computed,c,"computed",n),m(u.static,c,"static",s),m(u.generator,c,"generator",a),m(u.async,c,"async",o),c}function MV(e){let t={type:"ObjectPattern",properties:e},r=I.ObjectPattern;return m(r.properties,t,"properties",e,1),t}function jw(e){let t={type:"SpreadElement",argument:e},r=I.SpreadElement;return m(r.argument,t,"argument",e,1),t}function FV(){return{type:"Super"}}function BV(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},i=I.TaggedTemplateExpression;return m(i.tag,r,"tag",e,1),m(i.quasi,r,"quasi",t,1),r}function zV(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},i=I.TemplateElement;return m(i.value,r,"value",e),m(i.tail,r,"tail",t),r}function UV(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},i=I.TemplateLiteral;return m(i.quasis,r,"quasis",e,1),m(i.expressions,r,"expressions",t,1),r}function KV(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},i=I.YieldExpression;return m(i.argument,r,"argument",e,1),m(i.delegate,r,"delegate",t),r}function VV(e){let t={type:"AwaitExpression",argument:e},r=I.AwaitExpression;return m(r.argument,t,"argument",e,1),t}function qV(){return{type:"Import"}}function WV(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=I.ExportNamespaceSpecifier;return m(r.exported,t,"exported",e,1),t}function JV(e,t,r=!1,i){let n={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:i},s=I.OptionalMemberExpression;return m(s.object,n,"object",e,1),m(s.property,n,"property",t,1),m(s.computed,n,"computed",r),m(s.optional,n,"optional",i),n}function XV(e,t,r){let i={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},n=I.OptionalCallExpression;return m(n.callee,i,"callee",e,1),m(n.arguments,i,"arguments",t,1),m(n.optional,i,"optional",r),i}function ZV(e,t=null,r=null,i=null,n=!1,s=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:n,static:s},o=I.ClassProperty;return m(o.key,a,"key",e,1),m(o.value,a,"value",t,1),m(o.typeAnnotation,a,"typeAnnotation",r,1),m(o.decorators,a,"decorators",i,1),m(o.computed,a,"computed",n),m(o.static,a,"static",s),a}function YV(e,t=null,r=null,i=null,n=!1,s=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:n,static:s},o=I.ClassAccessorProperty;return m(o.key,a,"key",e,1),m(o.value,a,"value",t,1),m(o.typeAnnotation,a,"typeAnnotation",r,1),m(o.decorators,a,"decorators",i,1),m(o.computed,a,"computed",n),m(o.static,a,"static",s),a}function GV(e,t=null,r=null,i=!1){let n={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:i},s=I.ClassPrivateProperty;return m(s.key,n,"key",e,1),m(s.value,n,"value",t,1),m(s.decorators,n,"decorators",r,1),m(s.static,n,"static",i),n}function HV(e="method",t,r,i,n=!1){let s={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:i,static:n},a=I.ClassPrivateMethod;return m(a.kind,s,"kind",e),m(a.key,s,"key",t,1),m(a.params,s,"params",r,1),m(a.body,s,"body",i,1),m(a.static,s,"static",n),s}function QV(e){let t={type:"PrivateName",id:e},r=I.PrivateName;return m(r.id,t,"id",e,1),t}function e5(e){let t={type:"StaticBlock",body:e},r=I.StaticBlock;return m(r.body,t,"body",e,1),t}function t5(e,t){let r={type:"ImportAttribute",key:e,value:t},i=I.ImportAttribute;return m(i.key,r,"key",e,1),m(i.value,r,"value",t,1),r}function r5(){return{type:"AnyTypeAnnotation"}}function n5(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=I.ArrayTypeAnnotation;return m(r.elementType,t,"elementType",e,1),t}function i5(){return{type:"BooleanTypeAnnotation"}}function s5(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=I.BooleanLiteralTypeAnnotation;return m(r.value,t,"value",e),t}function a5(){return{type:"NullLiteralTypeAnnotation"}}function o5(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},i=I.ClassImplements;return m(i.id,r,"id",e,1),m(i.typeParameters,r,"typeParameters",t,1),r}function l5(e,t=null,r=null,i){let n={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:i},s=I.DeclareClass;return m(s.id,n,"id",e,1),m(s.typeParameters,n,"typeParameters",t,1),m(s.extends,n,"extends",r,1),m(s.body,n,"body",i,1),n}function c5(e){let t={type:"DeclareFunction",id:e},r=I.DeclareFunction;return m(r.id,t,"id",e,1),t}function u5(e,t=null,r=null,i){let n={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:i},s=I.DeclareInterface;return m(s.id,n,"id",e,1),m(s.typeParameters,n,"typeParameters",t,1),m(s.extends,n,"extends",r,1),m(s.body,n,"body",i,1),n}function p5(e,t,r=null){let i={type:"DeclareModule",id:e,body:t,kind:r},n=I.DeclareModule;return m(n.id,i,"id",e,1),m(n.body,i,"body",t,1),m(n.kind,i,"kind",r),i}function d5(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=I.DeclareModuleExports;return m(r.typeAnnotation,t,"typeAnnotation",e,1),t}function f5(e,t=null,r){let i={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},n=I.DeclareTypeAlias;return m(n.id,i,"id",e,1),m(n.typeParameters,i,"typeParameters",t,1),m(n.right,i,"right",r,1),i}function h5(e,t=null,r=null){let i={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},n=I.DeclareOpaqueType;return m(n.id,i,"id",e,1),m(n.typeParameters,i,"typeParameters",t,1),m(n.supertype,i,"supertype",r,1),i}function m5(e){let t={type:"DeclareVariable",id:e},r=I.DeclareVariable;return m(r.id,t,"id",e,1),t}function y5(e=null,t=null,r=null,i=null){let n={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:i},s=I.DeclareExportDeclaration;return m(s.declaration,n,"declaration",e,1),m(s.specifiers,n,"specifiers",t,1),m(s.source,n,"source",r,1),m(s.attributes,n,"attributes",i,1),n}function g5(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},i=I.DeclareExportAllDeclaration;return m(i.source,r,"source",e,1),m(i.attributes,r,"attributes",t,1),r}function x5(e){let t={type:"DeclaredPredicate",value:e},r=I.DeclaredPredicate;return m(r.value,t,"value",e,1),t}function S5(){return{type:"ExistsTypeAnnotation"}}function b5(e=null,t,r=null,i){let n={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:i},s=I.FunctionTypeAnnotation;return m(s.typeParameters,n,"typeParameters",e,1),m(s.params,n,"params",t,1),m(s.rest,n,"rest",r,1),m(s.returnType,n,"returnType",i,1),n}function v5(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},i=I.FunctionTypeParam;return m(i.name,r,"name",e,1),m(i.typeAnnotation,r,"typeAnnotation",t,1),r}function T5(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},i=I.GenericTypeAnnotation;return m(i.id,r,"id",e,1),m(i.typeParameters,r,"typeParameters",t,1),r}function E5(){return{type:"InferredPredicate"}}function P5(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},i=I.InterfaceExtends;return m(i.id,r,"id",e,1),m(i.typeParameters,r,"typeParameters",t,1),r}function _5(e,t=null,r=null,i){let n={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},s=I.InterfaceDeclaration;return m(s.id,n,"id",e,1),m(s.typeParameters,n,"typeParameters",t,1),m(s.extends,n,"extends",r,1),m(s.body,n,"body",i,1),n}function k5(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},i=I.InterfaceTypeAnnotation;return m(i.extends,r,"extends",e,1),m(i.body,r,"body",t,1),r}function I5(e){let t={type:"IntersectionTypeAnnotation",types:e},r=I.IntersectionTypeAnnotation;return m(r.types,t,"types",e,1),t}function A5(){return{type:"MixedTypeAnnotation"}}function w5(){return{type:"EmptyTypeAnnotation"}}function C5(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=I.NullableTypeAnnotation;return m(r.typeAnnotation,t,"typeAnnotation",e,1),t}function N5(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=I.NumberLiteralTypeAnnotation;return m(r.value,t,"value",e),t}function O5(){return{type:"NumberTypeAnnotation"}}function D5(e,t=[],r=[],i=[],n=!1){let s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:i,exact:n},a=I.ObjectTypeAnnotation;return m(a.properties,s,"properties",e,1),m(a.indexers,s,"indexers",t,1),m(a.callProperties,s,"callProperties",r,1),m(a.internalSlots,s,"internalSlots",i,1),m(a.exact,s,"exact",n),s}function $5(e,t,r,i,n){let s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:i,method:n},a=I.ObjectTypeInternalSlot;return m(a.id,s,"id",e,1),m(a.value,s,"value",t,1),m(a.optional,s,"optional",r),m(a.static,s,"static",i),m(a.method,s,"method",n),s}function j5(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=I.ObjectTypeCallProperty;return m(r.value,t,"value",e,1),t}function L5(e=null,t,r,i=null){let n={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:i,static:null},s=I.ObjectTypeIndexer;return m(s.id,n,"id",e,1),m(s.key,n,"key",t,1),m(s.value,n,"value",r,1),m(s.variance,n,"variance",i,1),n}function R5(e,t,r=null){let i={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},n=I.ObjectTypeProperty;return m(n.key,i,"key",e,1),m(n.value,i,"value",t,1),m(n.variance,i,"variance",r,1),i}function M5(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=I.ObjectTypeSpreadProperty;return m(r.argument,t,"argument",e,1),t}function F5(e,t=null,r=null,i){let n={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:i},s=I.OpaqueType;return m(s.id,n,"id",e,1),m(s.typeParameters,n,"typeParameters",t,1),m(s.supertype,n,"supertype",r,1),m(s.impltype,n,"impltype",i,1),n}function B5(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},i=I.QualifiedTypeIdentifier;return m(i.id,r,"id",e,1),m(i.qualification,r,"qualification",t,1),r}function z5(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=I.StringLiteralTypeAnnotation;return m(r.value,t,"value",e),t}function U5(){return{type:"StringTypeAnnotation"}}function K5(){return{type:"SymbolTypeAnnotation"}}function V5(){return{type:"ThisTypeAnnotation"}}function q5(e){let t={type:"TupleTypeAnnotation",types:e},r=I.TupleTypeAnnotation;return m(r.types,t,"types",e,1),t}function W5(e){let t={type:"TypeofTypeAnnotation",argument:e},r=I.TypeofTypeAnnotation;return m(r.argument,t,"argument",e,1),t}function J5(e,t=null,r){let i={type:"TypeAlias",id:e,typeParameters:t,right:r},n=I.TypeAlias;return m(n.id,i,"id",e,1),m(n.typeParameters,i,"typeParameters",t,1),m(n.right,i,"right",r,1),i}function X5(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=I.TypeAnnotation;return m(r.typeAnnotation,t,"typeAnnotation",e,1),t}function Z5(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},i=I.TypeCastExpression;return m(i.expression,r,"expression",e,1),m(i.typeAnnotation,r,"typeAnnotation",t,1),r}function Y5(e=null,t=null,r=null){let i={type:"TypeParameter",bound:e,default:t,variance:r,name:null},n=I.TypeParameter;return m(n.bound,i,"bound",e,1),m(n.default,i,"default",t,1),m(n.variance,i,"variance",r,1),i}function G5(e){let t={type:"TypeParameterDeclaration",params:e},r=I.TypeParameterDeclaration;return m(r.params,t,"params",e,1),t}function H5(e){let t={type:"TypeParameterInstantiation",params:e},r=I.TypeParameterInstantiation;return m(r.params,t,"params",e,1),t}function Q5(e){let t={type:"UnionTypeAnnotation",types:e},r=I.UnionTypeAnnotation;return m(r.types,t,"types",e,1),t}function eq(e){let t={type:"Variance",kind:e},r=I.Variance;return m(r.kind,t,"kind",e),t}function tq(){return{type:"VoidTypeAnnotation"}}function rq(e,t){let r={type:"EnumDeclaration",id:e,body:t},i=I.EnumDeclaration;return m(i.id,r,"id",e,1),m(i.body,r,"body",t,1),r}function nq(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=I.EnumBooleanBody;return m(r.members,t,"members",e,1),t}function iq(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=I.EnumNumberBody;return m(r.members,t,"members",e,1),t}function sq(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=I.EnumStringBody;return m(r.members,t,"members",e,1),t}function aq(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=I.EnumSymbolBody;return m(r.members,t,"members",e,1),t}function oq(e){let t={type:"EnumBooleanMember",id:e,init:null},r=I.EnumBooleanMember;return m(r.id,t,"id",e,1),t}function lq(e,t){let r={type:"EnumNumberMember",id:e,init:t},i=I.EnumNumberMember;return m(i.id,r,"id",e,1),m(i.init,r,"init",t,1),r}function cq(e,t){let r={type:"EnumStringMember",id:e,init:t},i=I.EnumStringMember;return m(i.id,r,"id",e,1),m(i.init,r,"init",t,1),r}function uq(e){let t={type:"EnumDefaultedMember",id:e},r=I.EnumDefaultedMember;return m(r.id,t,"id",e,1),t}function pq(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},i=I.IndexedAccessType;return m(i.objectType,r,"objectType",e,1),m(i.indexType,r,"indexType",t,1),r}function dq(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},i=I.OptionalIndexedAccessType;return m(i.objectType,r,"objectType",e,1),m(i.indexType,r,"indexType",t,1),r}function fq(e,t=null){let r={type:"JSXAttribute",name:e,value:t},i=I.JSXAttribute;return m(i.name,r,"name",e,1),m(i.value,r,"value",t,1),r}function hq(e){let t={type:"JSXClosingElement",name:e},r=I.JSXClosingElement;return m(r.name,t,"name",e,1),t}function mq(e,t=null,r,i=null){let n={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:i},s=I.JSXElement;return m(s.openingElement,n,"openingElement",e,1),m(s.closingElement,n,"closingElement",t,1),m(s.children,n,"children",r,1),m(s.selfClosing,n,"selfClosing",i),n}function yq(){return{type:"JSXEmptyExpression"}}function gq(e){let t={type:"JSXExpressionContainer",expression:e},r=I.JSXExpressionContainer;return m(r.expression,t,"expression",e,1),t}function xq(e){let t={type:"JSXSpreadChild",expression:e},r=I.JSXSpreadChild;return m(r.expression,t,"expression",e,1),t}function Sq(e){let t={type:"JSXIdentifier",name:e},r=I.JSXIdentifier;return m(r.name,t,"name",e),t}function bq(e,t){let r={type:"JSXMemberExpression",object:e,property:t},i=I.JSXMemberExpression;return m(i.object,r,"object",e,1),m(i.property,r,"property",t,1),r}function vq(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},i=I.JSXNamespacedName;return m(i.namespace,r,"namespace",e,1),m(i.name,r,"name",t,1),r}function Tq(e,t,r=!1){let i={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},n=I.JSXOpeningElement;return m(n.name,i,"name",e,1),m(n.attributes,i,"attributes",t,1),m(n.selfClosing,i,"selfClosing",r),i}function Eq(e){let t={type:"JSXSpreadAttribute",argument:e},r=I.JSXSpreadAttribute;return m(r.argument,t,"argument",e,1),t}function Pq(e){let t={type:"JSXText",value:e},r=I.JSXText;return m(r.value,t,"value",e),t}function _q(e,t,r){let i={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},n=I.JSXFragment;return m(n.openingFragment,i,"openingFragment",e,1),m(n.closingFragment,i,"closingFragment",t,1),m(n.children,i,"children",r,1),i}function kq(){return{type:"JSXOpeningFragment"}}function Iq(){return{type:"JSXClosingFragment"}}function Aq(){return{type:"Noop"}}function wq(e,t){let r={type:"Placeholder",expectedNode:e,name:t},i=I.Placeholder;return m(i.expectedNode,r,"expectedNode",e),m(i.name,r,"name",t,1),r}function Cq(e){let t={type:"V8IntrinsicIdentifier",name:e},r=I.V8IntrinsicIdentifier;return m(r.name,t,"name",e),t}function Nq(){return{type:"ArgumentPlaceholder"}}function Oq(e,t){let r={type:"BindExpression",object:e,callee:t},i=I.BindExpression;return m(i.object,r,"object",e,1),m(i.callee,r,"callee",t,1),r}function Dq(e){let t={type:"Decorator",expression:e},r=I.Decorator;return m(r.expression,t,"expression",e,1),t}function $q(e,t=!1){let r={type:"DoExpression",body:e,async:t},i=I.DoExpression;return m(i.body,r,"body",e,1),m(i.async,r,"async",t),r}function jq(e){let t={type:"ExportDefaultSpecifier",exported:e},r=I.ExportDefaultSpecifier;return m(r.exported,t,"exported",e,1),t}function Lq(e){let t={type:"RecordExpression",properties:e},r=I.RecordExpression;return m(r.properties,t,"properties",e,1),t}function Rq(e=[]){let t={type:"TupleExpression",elements:e},r=I.TupleExpression;return m(r.elements,t,"elements",e,1),t}function Mq(e){let t={type:"DecimalLiteral",value:e},r=I.DecimalLiteral;return m(r.value,t,"value",e),t}function Fq(e){let t={type:"ModuleExpression",body:e},r=I.ModuleExpression;return m(r.body,t,"body",e,1),t}function Bq(){return{type:"TopicReference"}}function zq(e){let t={type:"PipelineTopicExpression",expression:e},r=I.PipelineTopicExpression;return m(r.expression,t,"expression",e,1),t}function Uq(e){let t={type:"PipelineBareFunction",callee:e},r=I.PipelineBareFunction;return m(r.callee,t,"callee",e,1),t}function Kq(){return{type:"PipelinePrimaryTopicReference"}}function Vq(){return{type:"VoidPattern"}}function qq(e){let t={type:"TSParameterProperty",parameter:e},r=I.TSParameterProperty;return m(r.parameter,t,"parameter",e,1),t}function Wq(e=null,t=null,r,i=null){let n={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:i},s=I.TSDeclareFunction;return m(s.id,n,"id",e,1),m(s.typeParameters,n,"typeParameters",t,1),m(s.params,n,"params",r,1),m(s.returnType,n,"returnType",i,1),n}function Jq(e=null,t,r=null,i,n=null){let s={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:i,returnType:n},a=I.TSDeclareMethod;return m(a.decorators,s,"decorators",e,1),m(a.key,s,"key",t,1),m(a.typeParameters,s,"typeParameters",r,1),m(a.params,s,"params",i,1),m(a.returnType,s,"returnType",n,1),s}function Xq(e,t){let r={type:"TSQualifiedName",left:e,right:t},i=I.TSQualifiedName;return m(i.left,r,"left",e,1),m(i.right,r,"right",t,1),r}function Zq(e=null,t,r=null){let i={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},n=I.TSCallSignatureDeclaration;return m(n.typeParameters,i,"typeParameters",e,1),m(n.parameters,i,"parameters",t,1),m(n.typeAnnotation,i,"typeAnnotation",r,1),i}function Yq(e=null,t,r=null){let i={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},n=I.TSConstructSignatureDeclaration;return m(n.typeParameters,i,"typeParameters",e,1),m(n.parameters,i,"parameters",t,1),m(n.typeAnnotation,i,"typeAnnotation",r,1),i}function Gq(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},i=I.TSPropertySignature;return m(i.key,r,"key",e,1),m(i.typeAnnotation,r,"typeAnnotation",t,1),r}function Hq(e,t=null,r,i=null){let n={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:i,kind:null},s=I.TSMethodSignature;return m(s.key,n,"key",e,1),m(s.typeParameters,n,"typeParameters",t,1),m(s.parameters,n,"parameters",r,1),m(s.typeAnnotation,n,"typeAnnotation",i,1),n}function Qq(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},i=I.TSIndexSignature;return m(i.parameters,r,"parameters",e,1),m(i.typeAnnotation,r,"typeAnnotation",t,1),r}function e7(){return{type:"TSAnyKeyword"}}function t7(){return{type:"TSBooleanKeyword"}}function r7(){return{type:"TSBigIntKeyword"}}function n7(){return{type:"TSIntrinsicKeyword"}}function i7(){return{type:"TSNeverKeyword"}}function s7(){return{type:"TSNullKeyword"}}function a7(){return{type:"TSNumberKeyword"}}function o7(){return{type:"TSObjectKeyword"}}function l7(){return{type:"TSStringKeyword"}}function c7(){return{type:"TSSymbolKeyword"}}function u7(){return{type:"TSUndefinedKeyword"}}function p7(){return{type:"TSUnknownKeyword"}}function d7(){return{type:"TSVoidKeyword"}}function f7(){return{type:"TSThisType"}}function h7(e=null,t,r=null){let i={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},n=I.TSFunctionType;return m(n.typeParameters,i,"typeParameters",e,1),m(n.parameters,i,"parameters",t,1),m(n.typeAnnotation,i,"typeAnnotation",r,1),i}function m7(e=null,t,r=null){let i={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},n=I.TSConstructorType;return m(n.typeParameters,i,"typeParameters",e,1),m(n.parameters,i,"parameters",t,1),m(n.typeAnnotation,i,"typeAnnotation",r,1),i}function y7(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},i=I.TSTypeReference;return m(i.typeName,r,"typeName",e,1),m(i.typeParameters,r,"typeParameters",t,1),r}function g7(e,t=null,r=null){let i={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},n=I.TSTypePredicate;return m(n.parameterName,i,"parameterName",e,1),m(n.typeAnnotation,i,"typeAnnotation",t,1),m(n.asserts,i,"asserts",r),i}function x7(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},i=I.TSTypeQuery;return m(i.exprName,r,"exprName",e,1),m(i.typeParameters,r,"typeParameters",t,1),r}function S7(e){let t={type:"TSTypeLiteral",members:e},r=I.TSTypeLiteral;return m(r.members,t,"members",e,1),t}function b7(e){let t={type:"TSArrayType",elementType:e},r=I.TSArrayType;return m(r.elementType,t,"elementType",e,1),t}function v7(e){let t={type:"TSTupleType",elementTypes:e},r=I.TSTupleType;return m(r.elementTypes,t,"elementTypes",e,1),t}function T7(e){let t={type:"TSOptionalType",typeAnnotation:e},r=I.TSOptionalType;return m(r.typeAnnotation,t,"typeAnnotation",e,1),t}function E7(e){let t={type:"TSRestType",typeAnnotation:e},r=I.TSRestType;return m(r.typeAnnotation,t,"typeAnnotation",e,1),t}function P7(e,t,r=!1){let i={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},n=I.TSNamedTupleMember;return m(n.label,i,"label",e,1),m(n.elementType,i,"elementType",t,1),m(n.optional,i,"optional",r),i}function _7(e){let t={type:"TSUnionType",types:e},r=I.TSUnionType;return m(r.types,t,"types",e,1),t}function k7(e){let t={type:"TSIntersectionType",types:e},r=I.TSIntersectionType;return m(r.types,t,"types",e,1),t}function I7(e,t,r,i){let n={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:i},s=I.TSConditionalType;return m(s.checkType,n,"checkType",e,1),m(s.extendsType,n,"extendsType",t,1),m(s.trueType,n,"trueType",r,1),m(s.falseType,n,"falseType",i,1),n}function A7(e){let t={type:"TSInferType",typeParameter:e},r=I.TSInferType;return m(r.typeParameter,t,"typeParameter",e,1),t}function w7(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=I.TSParenthesizedType;return m(r.typeAnnotation,t,"typeAnnotation",e,1),t}function C7(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},i=I.TSTypeOperator;return m(i.typeAnnotation,r,"typeAnnotation",e,1),m(i.operator,r,"operator",t),r}function N7(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},i=I.TSIndexedAccessType;return m(i.objectType,r,"objectType",e,1),m(i.indexType,r,"indexType",t,1),r}function O7(e,t=null,r=null){let i={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},n=I.TSMappedType;return m(n.typeParameter,i,"typeParameter",e,1),m(n.typeAnnotation,i,"typeAnnotation",t,1),m(n.nameType,i,"nameType",r,1),i}function D7(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},i=I.TSTemplateLiteralType;return m(i.quasis,r,"quasis",e,1),m(i.types,r,"types",t,1),r}function $7(e){let t={type:"TSLiteralType",literal:e},r=I.TSLiteralType;return m(r.literal,t,"literal",e,1),t}function j7(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},i=I.TSExpressionWithTypeArguments;return m(i.expression,r,"expression",e,1),m(i.typeParameters,r,"typeParameters",t,1),r}function L7(e,t=null,r=null,i){let n={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i},s=I.TSInterfaceDeclaration;return m(s.id,n,"id",e,1),m(s.typeParameters,n,"typeParameters",t,1),m(s.extends,n,"extends",r,1),m(s.body,n,"body",i,1),n}function R7(e){let t={type:"TSInterfaceBody",body:e},r=I.TSInterfaceBody;return m(r.body,t,"body",e,1),t}function M7(e,t=null,r){let i={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},n=I.TSTypeAliasDeclaration;return m(n.id,i,"id",e,1),m(n.typeParameters,i,"typeParameters",t,1),m(n.typeAnnotation,i,"typeAnnotation",r,1),i}function F7(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},i=I.TSInstantiationExpression;return m(i.expression,r,"expression",e,1),m(i.typeParameters,r,"typeParameters",t,1),r}function B7(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},i=I.TSAsExpression;return m(i.expression,r,"expression",e,1),m(i.typeAnnotation,r,"typeAnnotation",t,1),r}function z7(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},i=I.TSSatisfiesExpression;return m(i.expression,r,"expression",e,1),m(i.typeAnnotation,r,"typeAnnotation",t,1),r}function U7(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},i=I.TSTypeAssertion;return m(i.typeAnnotation,r,"typeAnnotation",e,1),m(i.expression,r,"expression",t,1),r}function K7(e){let t={type:"TSEnumBody",members:e},r=I.TSEnumBody;return m(r.members,t,"members",e,1),t}function V7(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},i=I.TSEnumDeclaration;return m(i.id,r,"id",e,1),m(i.members,r,"members",t,1),r}function q7(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},i=I.TSEnumMember;return m(i.id,r,"id",e,1),m(i.initializer,r,"initializer",t,1),r}function W7(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},i=I.TSModuleDeclaration;return m(i.id,r,"id",e,1),m(i.body,r,"body",t,1),r}function J7(e){let t={type:"TSModuleBlock",body:e},r=I.TSModuleBlock;return m(r.body,t,"body",e,1),t}function X7(e,t=null,r=null){let i={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},n=I.TSImportType;return m(n.argument,i,"argument",e,1),m(n.qualifier,i,"qualifier",t,1),m(n.typeParameters,i,"typeParameters",r,1),i}function Z7(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},i=I.TSImportEqualsDeclaration;return m(i.id,r,"id",e,1),m(i.moduleReference,r,"moduleReference",t,1),r}function Y7(e){let t={type:"TSExternalModuleReference",expression:e},r=I.TSExternalModuleReference;return m(r.expression,t,"expression",e,1),t}function G7(e){let t={type:"TSNonNullExpression",expression:e},r=I.TSNonNullExpression;return m(r.expression,t,"expression",e,1),t}function H7(e){let t={type:"TSExportAssignment",expression:e},r=I.TSExportAssignment;return m(r.expression,t,"expression",e,1),t}function Q7(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=I.TSNamespaceExportDeclaration;return m(r.id,t,"id",e,1),t}function eW(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=I.TSTypeAnnotation;return m(r.typeAnnotation,t,"typeAnnotation",e,1),t}function tW(e){let t={type:"TSTypeParameterInstantiation",params:e},r=I.TSTypeParameterInstantiation;return m(r.params,t,"params",e,1),t}function rW(e){let t={type:"TSTypeParameterDeclaration",params:e},r=I.TSTypeParameterDeclaration;return m(r.params,t,"params",e,1),t}function nW(e=null,t=null,r){let i={type:"TSTypeParameter",constraint:e,default:t,name:r},n=I.TSTypeParameter;return m(n.constraint,i,"constraint",e,1),m(n.default,i,"default",t,1),m(n.name,i,"name",r),i}function iW(e){return(0,Ep.default)("NumberLiteral","NumericLiteral","The node type "),Ow(e)}function sW(e,t=""){return(0,Ep.default)("RegexLiteral","RegExpLiteral","The node type "),Dw(e,t)}function aW(e){return(0,Ep.default)("RestProperty","RestElement","The node type "),$w(e)}function oW(e){return(0,Ep.default)("SpreadProperty","SpreadElement","The node type "),jw(e)}});var Lw=R(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.JSXIdentifier=f.JSXFragment=f.JSXExpressionContainer=f.JSXEmptyExpression=f.JSXElement=f.JSXClosingFragment=f.JSXClosingElement=f.JSXAttribute=f.IntersectionTypeAnnotation=f.InterpreterDirective=f.InterfaceTypeAnnotation=f.InterfaceExtends=f.InterfaceDeclaration=f.InferredPredicate=f.IndexedAccessType=f.ImportSpecifier=f.ImportNamespaceSpecifier=f.ImportExpression=f.ImportDefaultSpecifier=f.ImportDeclaration=f.ImportAttribute=f.Import=f.IfStatement=f.Identifier=f.GenericTypeAnnotation=f.FunctionTypeParam=f.FunctionTypeAnnotation=f.FunctionExpression=f.FunctionDeclaration=f.ForStatement=f.ForOfStatement=f.ForInStatement=f.File=f.ExpressionStatement=f.ExportSpecifier=f.ExportNamespaceSpecifier=f.ExportNamedDeclaration=f.ExportDefaultSpecifier=f.ExportDefaultDeclaration=f.ExportAllDeclaration=f.ExistsTypeAnnotation=f.EnumSymbolBody=f.EnumStringMember=f.EnumStringBody=f.EnumNumberMember=f.EnumNumberBody=f.EnumDefaultedMember=f.EnumDeclaration=f.EnumBooleanMember=f.EnumBooleanBody=f.EmptyTypeAnnotation=f.EmptyStatement=f.DoWhileStatement=f.DoExpression=f.DirectiveLiteral=f.Directive=f.Decorator=f.DeclaredPredicate=f.DeclareVariable=f.DeclareTypeAlias=f.DeclareOpaqueType=f.DeclareModuleExports=f.DeclareModule=f.DeclareInterface=f.DeclareFunction=f.DeclareExportDeclaration=f.DeclareExportAllDeclaration=f.DeclareClass=f.DecimalLiteral=f.DebuggerStatement=f.ContinueStatement=f.ConditionalExpression=f.ClassProperty=f.ClassPrivateProperty=f.ClassPrivateMethod=f.ClassMethod=f.ClassImplements=f.ClassExpression=f.ClassDeclaration=f.ClassBody=f.ClassAccessorProperty=f.CatchClause=f.CallExpression=f.BreakStatement=f.BooleanTypeAnnotation=f.BooleanLiteralTypeAnnotation=f.BooleanLiteral=f.BlockStatement=f.BindExpression=f.BinaryExpression=f.BigIntLiteral=f.AwaitExpression=f.AssignmentPattern=f.AssignmentExpression=f.ArrowFunctionExpression=f.ArrayTypeAnnotation=f.ArrayPattern=f.ArrayExpression=f.ArgumentPlaceholder=f.AnyTypeAnnotation=void 0;f.TSNumberKeyword=f.TSNullKeyword=f.TSNonNullExpression=f.TSNeverKeyword=f.TSNamespaceExportDeclaration=f.TSNamedTupleMember=f.TSModuleDeclaration=f.TSModuleBlock=f.TSMethodSignature=f.TSMappedType=f.TSLiteralType=f.TSIntrinsicKeyword=f.TSIntersectionType=f.TSInterfaceDeclaration=f.TSInterfaceBody=f.TSInstantiationExpression=f.TSInferType=f.TSIndexedAccessType=f.TSIndexSignature=f.TSImportType=f.TSImportEqualsDeclaration=f.TSFunctionType=f.TSExternalModuleReference=f.TSExpressionWithTypeArguments=f.TSExportAssignment=f.TSEnumMember=f.TSEnumDeclaration=f.TSEnumBody=f.TSDeclareMethod=f.TSDeclareFunction=f.TSConstructorType=f.TSConstructSignatureDeclaration=f.TSConditionalType=f.TSCallSignatureDeclaration=f.TSBooleanKeyword=f.TSBigIntKeyword=f.TSAsExpression=f.TSArrayType=f.TSAnyKeyword=f.SymbolTypeAnnotation=f.SwitchStatement=f.SwitchCase=f.Super=f.StringTypeAnnotation=f.StringLiteralTypeAnnotation=f.StringLiteral=f.StaticBlock=f.SpreadProperty=f.SpreadElement=f.SequenceExpression=f.ReturnStatement=f.RestProperty=f.RestElement=f.RegexLiteral=f.RegExpLiteral=f.RecordExpression=f.QualifiedTypeIdentifier=f.Program=f.PrivateName=f.Placeholder=f.PipelineTopicExpression=f.PipelinePrimaryTopicReference=f.PipelineBareFunction=f.ParenthesizedExpression=f.OptionalMemberExpression=f.OptionalIndexedAccessType=f.OptionalCallExpression=f.OpaqueType=f.ObjectTypeSpreadProperty=f.ObjectTypeProperty=f.ObjectTypeInternalSlot=f.ObjectTypeIndexer=f.ObjectTypeCallProperty=f.ObjectTypeAnnotation=f.ObjectProperty=f.ObjectPattern=f.ObjectMethod=f.ObjectExpression=f.NumericLiteral=f.NumberTypeAnnotation=f.NumberLiteralTypeAnnotation=f.NumberLiteral=f.NullableTypeAnnotation=f.NullLiteralTypeAnnotation=f.NullLiteral=f.Noop=f.NewExpression=f.ModuleExpression=f.MixedTypeAnnotation=f.MetaProperty=f.MemberExpression=f.LogicalExpression=f.LabeledStatement=f.JSXText=f.JSXSpreadChild=f.JSXSpreadAttribute=f.JSXOpeningFragment=f.JSXOpeningElement=f.JSXNamespacedName=f.JSXMemberExpression=void 0;f.YieldExpression=f.WithStatement=f.WhileStatement=f.VoidTypeAnnotation=f.VoidPattern=f.Variance=f.VariableDeclarator=f.VariableDeclaration=f.V8IntrinsicIdentifier=f.UpdateExpression=f.UnionTypeAnnotation=f.UnaryExpression=f.TypeofTypeAnnotation=f.TypeParameterInstantiation=f.TypeParameterDeclaration=f.TypeParameter=f.TypeCastExpression=f.TypeAnnotation=f.TypeAlias=f.TupleTypeAnnotation=f.TupleExpression=f.TryStatement=f.TopicReference=f.ThrowStatement=f.ThisTypeAnnotation=f.ThisExpression=f.TemplateLiteral=f.TemplateElement=f.TaggedTemplateExpression=f.TSVoidKeyword=f.TSUnknownKeyword=f.TSUnionType=f.TSUndefinedKeyword=f.TSTypeReference=f.TSTypeQuery=f.TSTypePredicate=f.TSTypeParameterInstantiation=f.TSTypeParameterDeclaration=f.TSTypeParameter=f.TSTypeOperator=f.TSTypeLiteral=f.TSTypeAssertion=f.TSTypeAnnotation=f.TSTypeAliasDeclaration=f.TSTupleType=f.TSThisType=f.TSTemplateLiteralType=f.TSSymbolKeyword=f.TSStringKeyword=f.TSSatisfiesExpression=f.TSRestType=f.TSQualifiedName=f.TSPropertySignature=f.TSParenthesizedType=f.TSParameterProperty=f.TSOptionalType=f.TSObjectKeyword=void 0;var sl=Db(),kke=da();function P(e){return sl[e]}var Ike=f.ArrayExpression=P("arrayExpression"),Ake=f.AssignmentExpression=P("assignmentExpression"),wke=f.BinaryExpression=P("binaryExpression"),Cke=f.InterpreterDirective=P("interpreterDirective"),Nke=f.Directive=P("directive"),Oke=f.DirectiveLiteral=P("directiveLiteral"),Dke=f.BlockStatement=P("blockStatement"),$ke=f.BreakStatement=P("breakStatement"),jke=f.CallExpression=P("callExpression"),Lke=f.CatchClause=P("catchClause"),Rke=f.ConditionalExpression=P("conditionalExpression"),Mke=f.ContinueStatement=P("continueStatement"),Fke=f.DebuggerStatement=P("debuggerStatement"),Bke=f.DoWhileStatement=P("doWhileStatement"),zke=f.EmptyStatement=P("emptyStatement"),Uke=f.ExpressionStatement=P("expressionStatement"),Kke=f.File=P("file"),Vke=f.ForInStatement=P("forInStatement"),qke=f.ForStatement=P("forStatement"),Wke=f.FunctionDeclaration=P("functionDeclaration"),Jke=f.FunctionExpression=P("functionExpression"),Xke=f.Identifier=P("identifier"),Zke=f.IfStatement=P("ifStatement"),Yke=f.LabeledStatement=P("labeledStatement"),Gke=f.StringLiteral=P("stringLiteral"),Hke=f.NumericLiteral=P("numericLiteral"),Qke=f.NullLiteral=P("nullLiteral"),eIe=f.BooleanLiteral=P("booleanLiteral"),tIe=f.RegExpLiteral=P("regExpLiteral"),rIe=f.LogicalExpression=P("logicalExpression"),nIe=f.MemberExpression=P("memberExpression"),iIe=f.NewExpression=P("newExpression"),sIe=f.Program=P("program"),aIe=f.ObjectExpression=P("objectExpression"),oIe=f.ObjectMethod=P("objectMethod"),lIe=f.ObjectProperty=P("objectProperty"),cIe=f.RestElement=P("restElement"),uIe=f.ReturnStatement=P("returnStatement"),pIe=f.SequenceExpression=P("sequenceExpression"),dIe=f.ParenthesizedExpression=P("parenthesizedExpression"),fIe=f.SwitchCase=P("switchCase"),hIe=f.SwitchStatement=P("switchStatement"),mIe=f.ThisExpression=P("thisExpression"),yIe=f.ThrowStatement=P("throwStatement"),gIe=f.TryStatement=P("tryStatement"),xIe=f.UnaryExpression=P("unaryExpression"),SIe=f.UpdateExpression=P("updateExpression"),bIe=f.VariableDeclaration=P("variableDeclaration"),vIe=f.VariableDeclarator=P("variableDeclarator"),TIe=f.WhileStatement=P("whileStatement"),EIe=f.WithStatement=P("withStatement"),PIe=f.AssignmentPattern=P("assignmentPattern"),_Ie=f.ArrayPattern=P("arrayPattern"),kIe=f.ArrowFunctionExpression=P("arrowFunctionExpression"),IIe=f.ClassBody=P("classBody"),AIe=f.ClassExpression=P("classExpression"),wIe=f.ClassDeclaration=P("classDeclaration"),CIe=f.ExportAllDeclaration=P("exportAllDeclaration"),NIe=f.ExportDefaultDeclaration=P("exportDefaultDeclaration"),OIe=f.ExportNamedDeclaration=P("exportNamedDeclaration"),DIe=f.ExportSpecifier=P("exportSpecifier"),$Ie=f.ForOfStatement=P("forOfStatement"),jIe=f.ImportDeclaration=P("importDeclaration"),LIe=f.ImportDefaultSpecifier=P("importDefaultSpecifier"),RIe=f.ImportNamespaceSpecifier=P("importNamespaceSpecifier"),MIe=f.ImportSpecifier=P("importSpecifier"),FIe=f.ImportExpression=P("importExpression"),BIe=f.MetaProperty=P("metaProperty"),zIe=f.ClassMethod=P("classMethod"),UIe=f.ObjectPattern=P("objectPattern"),KIe=f.SpreadElement=P("spreadElement"),VIe=f.Super=P("super"),qIe=f.TaggedTemplateExpression=P("taggedTemplateExpression"),WIe=f.TemplateElement=P("templateElement"),JIe=f.TemplateLiteral=P("templateLiteral"),XIe=f.YieldExpression=P("yieldExpression"),ZIe=f.AwaitExpression=P("awaitExpression"),YIe=f.Import=P("import"),GIe=f.BigIntLiteral=P("bigIntLiteral"),HIe=f.ExportNamespaceSpecifier=P("exportNamespaceSpecifier"),QIe=f.OptionalMemberExpression=P("optionalMemberExpression"),eAe=f.OptionalCallExpression=P("optionalCallExpression"),tAe=f.ClassProperty=P("classProperty"),rAe=f.ClassAccessorProperty=P("classAccessorProperty"),nAe=f.ClassPrivateProperty=P("classPrivateProperty"),iAe=f.ClassPrivateMethod=P("classPrivateMethod"),sAe=f.PrivateName=P("privateName"),aAe=f.StaticBlock=P("staticBlock"),oAe=f.ImportAttribute=P("importAttribute"),lAe=f.AnyTypeAnnotation=P("anyTypeAnnotation"),cAe=f.ArrayTypeAnnotation=P("arrayTypeAnnotation"),uAe=f.BooleanTypeAnnotation=P("booleanTypeAnnotation"),pAe=f.BooleanLiteralTypeAnnotation=P("booleanLiteralTypeAnnotation"),dAe=f.NullLiteralTypeAnnotation=P("nullLiteralTypeAnnotation"),fAe=f.ClassImplements=P("classImplements"),hAe=f.DeclareClass=P("declareClass"),mAe=f.DeclareFunction=P("declareFunction"),yAe=f.DeclareInterface=P("declareInterface"),gAe=f.DeclareModule=P("declareModule"),xAe=f.DeclareModuleExports=P("declareModuleExports"),SAe=f.DeclareTypeAlias=P("declareTypeAlias"),bAe=f.DeclareOpaqueType=P("declareOpaqueType"),vAe=f.DeclareVariable=P("declareVariable"),TAe=f.DeclareExportDeclaration=P("declareExportDeclaration"),EAe=f.DeclareExportAllDeclaration=P("declareExportAllDeclaration"),PAe=f.DeclaredPredicate=P("declaredPredicate"),_Ae=f.ExistsTypeAnnotation=P("existsTypeAnnotation"),kAe=f.FunctionTypeAnnotation=P("functionTypeAnnotation"),IAe=f.FunctionTypeParam=P("functionTypeParam"),AAe=f.GenericTypeAnnotation=P("genericTypeAnnotation"),wAe=f.InferredPredicate=P("inferredPredicate"),CAe=f.InterfaceExtends=P("interfaceExtends"),NAe=f.InterfaceDeclaration=P("interfaceDeclaration"),OAe=f.InterfaceTypeAnnotation=P("interfaceTypeAnnotation"),DAe=f.IntersectionTypeAnnotation=P("intersectionTypeAnnotation"),$Ae=f.MixedTypeAnnotation=P("mixedTypeAnnotation"),jAe=f.EmptyTypeAnnotation=P("emptyTypeAnnotation"),LAe=f.NullableTypeAnnotation=P("nullableTypeAnnotation"),RAe=f.NumberLiteralTypeAnnotation=P("numberLiteralTypeAnnotation"),MAe=f.NumberTypeAnnotation=P("numberTypeAnnotation"),FAe=f.ObjectTypeAnnotation=P("objectTypeAnnotation"),BAe=f.ObjectTypeInternalSlot=P("objectTypeInternalSlot"),zAe=f.ObjectTypeCallProperty=P("objectTypeCallProperty"),UAe=f.ObjectTypeIndexer=P("objectTypeIndexer"),KAe=f.ObjectTypeProperty=P("objectTypeProperty"),VAe=f.ObjectTypeSpreadProperty=P("objectTypeSpreadProperty"),qAe=f.OpaqueType=P("opaqueType"),WAe=f.QualifiedTypeIdentifier=P("qualifiedTypeIdentifier"),JAe=f.StringLiteralTypeAnnotation=P("stringLiteralTypeAnnotation"),XAe=f.StringTypeAnnotation=P("stringTypeAnnotation"),ZAe=f.SymbolTypeAnnotation=P("symbolTypeAnnotation"),YAe=f.ThisTypeAnnotation=P("thisTypeAnnotation"),GAe=f.TupleTypeAnnotation=P("tupleTypeAnnotation"),HAe=f.TypeofTypeAnnotation=P("typeofTypeAnnotation"),QAe=f.TypeAlias=P("typeAlias"),ewe=f.TypeAnnotation=P("typeAnnotation"),twe=f.TypeCastExpression=P("typeCastExpression"),rwe=f.TypeParameter=P("typeParameter"),nwe=f.TypeParameterDeclaration=P("typeParameterDeclaration"),iwe=f.TypeParameterInstantiation=P("typeParameterInstantiation"),swe=f.UnionTypeAnnotation=P("unionTypeAnnotation"),awe=f.Variance=P("variance"),owe=f.VoidTypeAnnotation=P("voidTypeAnnotation"),lwe=f.EnumDeclaration=P("enumDeclaration"),cwe=f.EnumBooleanBody=P("enumBooleanBody"),uwe=f.EnumNumberBody=P("enumNumberBody"),pwe=f.EnumStringBody=P("enumStringBody"),dwe=f.EnumSymbolBody=P("enumSymbolBody"),fwe=f.EnumBooleanMember=P("enumBooleanMember"),hwe=f.EnumNumberMember=P("enumNumberMember"),mwe=f.EnumStringMember=P("enumStringMember"),ywe=f.EnumDefaultedMember=P("enumDefaultedMember"),gwe=f.IndexedAccessType=P("indexedAccessType"),xwe=f.OptionalIndexedAccessType=P("optionalIndexedAccessType"),Swe=f.JSXAttribute=P("jsxAttribute"),bwe=f.JSXClosingElement=P("jsxClosingElement"),vwe=f.JSXElement=P("jsxElement"),Twe=f.JSXEmptyExpression=P("jsxEmptyExpression"),Ewe=f.JSXExpressionContainer=P("jsxExpressionContainer"),Pwe=f.JSXSpreadChild=P("jsxSpreadChild"),_we=f.JSXIdentifier=P("jsxIdentifier"),kwe=f.JSXMemberExpression=P("jsxMemberExpression"),Iwe=f.JSXNamespacedName=P("jsxNamespacedName"),Awe=f.JSXOpeningElement=P("jsxOpeningElement"),wwe=f.JSXSpreadAttribute=P("jsxSpreadAttribute"),Cwe=f.JSXText=P("jsxText"),Nwe=f.JSXFragment=P("jsxFragment"),Owe=f.JSXOpeningFragment=P("jsxOpeningFragment"),Dwe=f.JSXClosingFragment=P("jsxClosingFragment"),$we=f.Noop=P("noop"),jwe=f.Placeholder=P("placeholder"),Lwe=f.V8IntrinsicIdentifier=P("v8IntrinsicIdentifier"),Rwe=f.ArgumentPlaceholder=P("argumentPlaceholder"),Mwe=f.BindExpression=P("bindExpression"),Fwe=f.Decorator=P("decorator"),Bwe=f.DoExpression=P("doExpression"),zwe=f.ExportDefaultSpecifier=P("exportDefaultSpecifier"),Uwe=f.RecordExpression=P("recordExpression"),Kwe=f.TupleExpression=P("tupleExpression"),Vwe=f.DecimalLiteral=P("decimalLiteral"),qwe=f.ModuleExpression=P("moduleExpression"),Wwe=f.TopicReference=P("topicReference"),Jwe=f.PipelineTopicExpression=P("pipelineTopicExpression"),Xwe=f.PipelineBareFunction=P("pipelineBareFunction"),Zwe=f.PipelinePrimaryTopicReference=P("pipelinePrimaryTopicReference"),Ywe=f.VoidPattern=P("voidPattern"),Gwe=f.TSParameterProperty=P("tsParameterProperty"),Hwe=f.TSDeclareFunction=P("tsDeclareFunction"),Qwe=f.TSDeclareMethod=P("tsDeclareMethod"),eCe=f.TSQualifiedName=P("tsQualifiedName"),tCe=f.TSCallSignatureDeclaration=P("tsCallSignatureDeclaration"),rCe=f.TSConstructSignatureDeclaration=P("tsConstructSignatureDeclaration"),nCe=f.TSPropertySignature=P("tsPropertySignature"),iCe=f.TSMethodSignature=P("tsMethodSignature"),sCe=f.TSIndexSignature=P("tsIndexSignature"),aCe=f.TSAnyKeyword=P("tsAnyKeyword"),oCe=f.TSBooleanKeyword=P("tsBooleanKeyword"),lCe=f.TSBigIntKeyword=P("tsBigIntKeyword"),cCe=f.TSIntrinsicKeyword=P("tsIntrinsicKeyword"),uCe=f.TSNeverKeyword=P("tsNeverKeyword"),pCe=f.TSNullKeyword=P("tsNullKeyword"),dCe=f.TSNumberKeyword=P("tsNumberKeyword"),fCe=f.TSObjectKeyword=P("tsObjectKeyword"),hCe=f.TSStringKeyword=P("tsStringKeyword"),mCe=f.TSSymbolKeyword=P("tsSymbolKeyword"),yCe=f.TSUndefinedKeyword=P("tsUndefinedKeyword"),gCe=f.TSUnknownKeyword=P("tsUnknownKeyword"),xCe=f.TSVoidKeyword=P("tsVoidKeyword"),SCe=f.TSThisType=P("tsThisType"),bCe=f.TSFunctionType=P("tsFunctionType"),vCe=f.TSConstructorType=P("tsConstructorType"),TCe=f.TSTypeReference=P("tsTypeReference"),ECe=f.TSTypePredicate=P("tsTypePredicate"),PCe=f.TSTypeQuery=P("tsTypeQuery"),_Ce=f.TSTypeLiteral=P("tsTypeLiteral"),kCe=f.TSArrayType=P("tsArrayType"),ICe=f.TSTupleType=P("tsTupleType"),ACe=f.TSOptionalType=P("tsOptionalType"),wCe=f.TSRestType=P("tsRestType"),CCe=f.TSNamedTupleMember=P("tsNamedTupleMember"),NCe=f.TSUnionType=P("tsUnionType"),OCe=f.TSIntersectionType=P("tsIntersectionType"),DCe=f.TSConditionalType=P("tsConditionalType"),$Ce=f.TSInferType=P("tsInferType"),jCe=f.TSParenthesizedType=P("tsParenthesizedType"),LCe=f.TSTypeOperator=P("tsTypeOperator"),RCe=f.TSIndexedAccessType=P("tsIndexedAccessType"),MCe=f.TSMappedType=P("tsMappedType"),FCe=f.TSTemplateLiteralType=P("tsTemplateLiteralType"),BCe=f.TSLiteralType=P("tsLiteralType"),zCe=f.TSExpressionWithTypeArguments=P("tsExpressionWithTypeArguments"),UCe=f.TSInterfaceDeclaration=P("tsInterfaceDeclaration"),KCe=f.TSInterfaceBody=P("tsInterfaceBody"),VCe=f.TSTypeAliasDeclaration=P("tsTypeAliasDeclaration"),qCe=f.TSInstantiationExpression=P("tsInstantiationExpression"),WCe=f.TSAsExpression=P("tsAsExpression"),JCe=f.TSSatisfiesExpression=P("tsSatisfiesExpression"),XCe=f.TSTypeAssertion=P("tsTypeAssertion"),ZCe=f.TSEnumBody=P("tsEnumBody"),YCe=f.TSEnumDeclaration=P("tsEnumDeclaration"),GCe=f.TSEnumMember=P("tsEnumMember"),HCe=f.TSModuleDeclaration=P("tsModuleDeclaration"),QCe=f.TSModuleBlock=P("tsModuleBlock"),e1e=f.TSImportType=P("tsImportType"),t1e=f.TSImportEqualsDeclaration=P("tsImportEqualsDeclaration"),r1e=f.TSExternalModuleReference=P("tsExternalModuleReference"),n1e=f.TSNonNullExpression=P("tsNonNullExpression"),i1e=f.TSExportAssignment=P("tsExportAssignment"),s1e=f.TSNamespaceExportDeclaration=P("tsNamespaceExportDeclaration"),a1e=f.TSTypeAnnotation=P("tsTypeAnnotation"),o1e=f.TSTypeParameterInstantiation=P("tsTypeParameterInstantiation"),l1e=f.TSTypeParameterDeclaration=P("tsTypeParameterDeclaration"),c1e=f.TSTypeParameter=P("tsTypeParameter"),u1e=f.NumberLiteral=sl.numberLiteral,p1e=f.RegexLiteral=sl.regexLiteral,d1e=f.RestProperty=sl.restProperty,f1e=f.SpreadProperty=sl.spreadProperty});var kr=R(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var $b=Db();Object.keys($b).forEach(function(e){e==="default"||e==="__esModule"||e in di&&di[e]===$b[e]||Object.defineProperty(di,e,{enumerable:!0,get:function(){return $b[e]}})});var jb=Lw();Object.keys(jb).forEach(function(e){e==="default"||e==="__esModule"||e in di&&di[e]===jb[e]||Object.defineProperty(di,e,{enumerable:!0,get:function(){return jb[e]}})})});var Rw=R(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.default=uW;var lW=kr(),cW=Ee();function uW(e,t){let r=e.value.split(/\r\n|\n|\r/),i=0;for(let s=0;s<r.length;s++)/[^ \t]/.exec(r[s])&&(i=s);let n="";for(let s=0;s<r.length;s++){let a=r[s],o=s===0,c=s===r.length-1,u=s===i,p=a.replace(/\t/g," ");o||(p=p.replace(/^ +/,"")),c||(p=p.replace(/ +$/,"")),p&&(u||(p+=" "),n+=p)}n&&t.push((0,cW.inherits)((0,lW.stringLiteral)(n),e))}});var Mw=R(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.default=dW;var Rb=Ot(),pW=Rw();function dW(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,Rb.isJSXText)(i)){(0,pW.default)(i,t);continue}(0,Rb.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,Rb.isJSXEmptyExpression)(i)&&t.push(i)}return t}});var Bb=R(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0});Fb.default=hW;var fW=Br();function hW(e){return!!(e&&fW.VISITOR_KEYS[e.type])}});var Fw=R(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.default=yW;var mW=Bb();function yW(e){if(!(0,mW.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var Bw=R(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.assertAccessor=LG;S.assertAnyTypeAnnotation=QJ;S.assertArgumentPlaceholder=AZ;S.assertArrayExpression=xW;S.assertArrayPattern=yJ;S.assertArrayTypeAnnotation=eX;S.assertArrowFunctionExpression=gJ;S.assertAssignmentExpression=SW;S.assertAssignmentPattern=mJ;S.assertAwaitExpression=BJ;S.assertBigIntLiteral=UJ;S.assertBinary=nG;S.assertBinaryExpression=bW;S.assertBindExpression=wZ;S.assertBlock=aG;S.assertBlockParent=sG;S.assertBlockStatement=PW;S.assertBooleanLiteral=qW;S.assertBooleanLiteralTypeAnnotation=rX;S.assertBooleanTypeAnnotation=tX;S.assertBreakStatement=_W;S.assertCallExpression=kW;S.assertCatchClause=IW;S.assertClass=OG;S.assertClassAccessorProperty=JJ;S.assertClassBody=xJ;S.assertClassDeclaration=bJ;S.assertClassExpression=SJ;S.assertClassImplements=iX;S.assertClassMethod=OJ;S.assertClassPrivateMethod=ZJ;S.assertClassPrivateProperty=XJ;S.assertClassProperty=WJ;S.assertCompletionStatement=cG;S.assertConditional=uG;S.assertConditionalExpression=AW;S.assertContinueStatement=wW;S.assertDebuggerStatement=CW;S.assertDecimalLiteral=jZ;S.assertDeclaration=SG;S.assertDeclareClass=sX;S.assertDeclareExportAllDeclaration=hX;S.assertDeclareExportDeclaration=fX;S.assertDeclareFunction=aX;S.assertDeclareInterface=oX;S.assertDeclareModule=lX;S.assertDeclareModuleExports=cX;S.assertDeclareOpaqueType=pX;S.assertDeclareTypeAlias=uX;S.assertDeclareVariable=dX;S.assertDeclaredPredicate=mX;S.assertDecorator=CZ;S.assertDirective=TW;S.assertDirectiveLiteral=EW;S.assertDoExpression=NZ;S.assertDoWhileStatement=NW;S.assertEmptyStatement=OW;S.assertEmptyTypeAnnotation=kX;S.assertEnumBody=KG;S.assertEnumBooleanBody=eZ;S.assertEnumBooleanMember=iZ;S.assertEnumDeclaration=QX;S.assertEnumDefaultedMember=oZ;S.assertEnumMember=VG;S.assertEnumNumberBody=tZ;S.assertEnumNumberMember=sZ;S.assertEnumStringBody=rZ;S.assertEnumStringMember=aZ;S.assertEnumSymbolBody=nZ;S.assertExistsTypeAnnotation=yX;S.assertExportAllDeclaration=vJ;S.assertExportDeclaration=$G;S.assertExportDefaultDeclaration=TJ;S.assertExportDefaultSpecifier=OZ;S.assertExportNamedDeclaration=EJ;S.assertExportNamespaceSpecifier=KJ;S.assertExportSpecifier=PJ;S.assertExpression=rG;S.assertExpressionStatement=DW;S.assertExpressionWrapper=fG;S.assertFile=$W;S.assertFlow=MG;S.assertFlowBaseAnnotation=BG;S.assertFlowDeclaration=zG;S.assertFlowPredicate=UG;S.assertFlowType=FG;S.assertFor=hG;S.assertForInStatement=jW;S.assertForOfStatement=_J;S.assertForStatement=LW;S.assertForXStatement=mG;S.assertFunction=yG;S.assertFunctionDeclaration=RW;S.assertFunctionExpression=MW;S.assertFunctionParameter=bG;S.assertFunctionParent=gG;S.assertFunctionTypeAnnotation=gX;S.assertFunctionTypeParam=xX;S.assertGenericTypeAnnotation=SX;S.assertIdentifier=FW;S.assertIfStatement=BW;S.assertImmutable=_G;S.assertImport=zJ;S.assertImportAttribute=HJ;S.assertImportDeclaration=kJ;S.assertImportDefaultSpecifier=IJ;S.assertImportExpression=CJ;S.assertImportNamespaceSpecifier=AJ;S.assertImportOrExportDeclaration=DG;S.assertImportSpecifier=wJ;S.assertIndexedAccessType=lZ;S.assertInferredPredicate=bX;S.assertInterfaceDeclaration=TX;S.assertInterfaceExtends=vX;S.assertInterfaceTypeAnnotation=EX;S.assertInterpreterDirective=vW;S.assertIntersectionTypeAnnotation=PX;S.assertJSX=qG;S.assertJSXAttribute=uZ;S.assertJSXClosingElement=pZ;S.assertJSXClosingFragment=PZ;S.assertJSXElement=dZ;S.assertJSXEmptyExpression=fZ;S.assertJSXExpressionContainer=hZ;S.assertJSXFragment=TZ;S.assertJSXIdentifier=yZ;S.assertJSXMemberExpression=gZ;S.assertJSXNamespacedName=xZ;S.assertJSXOpeningElement=SZ;S.assertJSXOpeningFragment=EZ;S.assertJSXSpreadAttribute=bZ;S.assertJSXSpreadChild=mZ;S.assertJSXText=vZ;S.assertLVal=TG;S.assertLabeledStatement=zW;S.assertLiteral=PG;S.assertLogicalExpression=JW;S.assertLoop=pG;S.assertMemberExpression=XW;S.assertMetaProperty=NJ;S.assertMethod=IG;S.assertMiscellaneous=WG;S.assertMixedTypeAnnotation=_X;S.assertModuleDeclaration=tH;S.assertModuleExpression=LZ;S.assertModuleSpecifier=jG;S.assertNewExpression=ZW;S.assertNoop=_Z;S.assertNullLiteral=VW;S.assertNullLiteralTypeAnnotation=nX;S.assertNullableTypeAnnotation=IX;S.assertNumberLiteral=GG;S.assertNumberLiteralTypeAnnotation=AX;S.assertNumberTypeAnnotation=wX;S.assertNumericLiteral=KW;S.assertObjectExpression=GW;S.assertObjectMember=AG;S.assertObjectMethod=HW;S.assertObjectPattern=DJ;S.assertObjectProperty=QW;S.assertObjectTypeAnnotation=CX;S.assertObjectTypeCallProperty=OX;S.assertObjectTypeIndexer=DX;S.assertObjectTypeInternalSlot=NX;S.assertObjectTypeProperty=$X;S.assertObjectTypeSpreadProperty=jX;S.assertOpaqueType=LX;S.assertOptionalCallExpression=qJ;S.assertOptionalIndexedAccessType=cZ;S.assertOptionalMemberExpression=VJ;S.assertParenthesizedExpression=nJ;S.assertPattern=NG;S.assertPatternLike=vG;S.assertPipelineBareFunction=FZ;S.assertPipelinePrimaryTopicReference=BZ;S.assertPipelineTopicExpression=MZ;S.assertPlaceholder=kZ;S.assertPrivate=RG;S.assertPrivateName=YJ;S.assertProgram=YW;S.assertProperty=wG;S.assertPureish=xG;S.assertQualifiedTypeIdentifier=RX;S.assertRecordExpression=DZ;S.assertRegExpLiteral=WW;S.assertRegexLiteral=HG;S.assertRestElement=eJ;S.assertRestProperty=QG;S.assertReturnStatement=tJ;S.assertScopable=iG;S.assertSequenceExpression=rJ;S.assertSpreadElement=$J;S.assertSpreadProperty=eH;S.assertStandardized=tG;S.assertStatement=oG;S.assertStaticBlock=GJ;S.assertStringLiteral=UW;S.assertStringLiteralTypeAnnotation=MX;S.assertStringTypeAnnotation=FX;S.assertSuper=jJ;S.assertSwitchCase=iJ;S.assertSwitchStatement=sJ;S.assertSymbolTypeAnnotation=BX;S.assertTSAnyKeyword=GZ;S.assertTSArrayType=gY;S.assertTSAsExpression=RY;S.assertTSBaseType=YG;S.assertTSBigIntKeyword=QZ;S.assertTSBooleanKeyword=HZ;S.assertTSCallSignatureDeclaration=WZ;S.assertTSConditionalType=PY;S.assertTSConstructSignatureDeclaration=JZ;S.assertTSConstructorType=dY;S.assertTSDeclareFunction=KZ;S.assertTSDeclareMethod=VZ;S.assertTSEntityName=EG;S.assertTSEnumBody=BY;S.assertTSEnumDeclaration=zY;S.assertTSEnumMember=UY;S.assertTSExportAssignment=ZY;S.assertTSExpressionWithTypeArguments=OY;S.assertTSExternalModuleReference=JY;S.assertTSFunctionType=pY;S.assertTSImportEqualsDeclaration=WY;S.assertTSImportType=qY;S.assertTSIndexSignature=YZ;S.assertTSIndexedAccessType=AY;S.assertTSInferType=_Y;S.assertTSInstantiationExpression=LY;S.assertTSInterfaceBody=$Y;S.assertTSInterfaceDeclaration=DY;S.assertTSIntersectionType=EY;S.assertTSIntrinsicKeyword=eY;S.assertTSLiteralType=NY;S.assertTSMappedType=wY;S.assertTSMethodSignature=ZZ;S.assertTSModuleBlock=VY;S.assertTSModuleDeclaration=KY;S.assertTSNamedTupleMember=vY;S.assertTSNamespaceExportDeclaration=YY;S.assertTSNeverKeyword=tY;S.assertTSNonNullExpression=XY;S.assertTSNullKeyword=rY;S.assertTSNumberKeyword=nY;S.assertTSObjectKeyword=iY;S.assertTSOptionalType=SY;S.assertTSParameterProperty=UZ;S.assertTSParenthesizedType=kY;S.assertTSPropertySignature=XZ;S.assertTSQualifiedName=qZ;S.assertTSRestType=bY;S.assertTSSatisfiesExpression=MY;S.assertTSStringKeyword=sY;S.assertTSSymbolKeyword=aY;S.assertTSTemplateLiteralType=CY;S.assertTSThisType=uY;S.assertTSTupleType=xY;S.assertTSType=ZG;S.assertTSTypeAliasDeclaration=jY;S.assertTSTypeAnnotation=GY;S.assertTSTypeAssertion=FY;S.assertTSTypeElement=XG;S.assertTSTypeLiteral=yY;S.assertTSTypeOperator=IY;S.assertTSTypeParameter=eG;S.assertTSTypeParameterDeclaration=QY;S.assertTSTypeParameterInstantiation=HY;S.assertTSTypePredicate=hY;S.assertTSTypeQuery=mY;S.assertTSTypeReference=fY;S.assertTSUndefinedKeyword=oY;S.assertTSUnionType=TY;S.assertTSUnknownKeyword=lY;S.assertTSVoidKeyword=cY;S.assertTaggedTemplateExpression=LJ;S.assertTemplateElement=RJ;S.assertTemplateLiteral=MJ;S.assertTerminatorless=lG;S.assertThisExpression=aJ;S.assertThisTypeAnnotation=zX;S.assertThrowStatement=oJ;S.assertTopicReference=RZ;S.assertTryStatement=lJ;S.assertTupleExpression=$Z;S.assertTupleTypeAnnotation=UX;S.assertTypeAlias=VX;S.assertTypeAnnotation=qX;S.assertTypeCastExpression=WX;S.assertTypeParameter=JX;S.assertTypeParameterDeclaration=XX;S.assertTypeParameterInstantiation=ZX;S.assertTypeScript=JG;S.assertTypeofTypeAnnotation=KX;S.assertUnaryExpression=cJ;S.assertUnaryLike=CG;S.assertUnionTypeAnnotation=YX;S.assertUpdateExpression=uJ;S.assertUserWhitespacable=kG;S.assertV8IntrinsicIdentifier=IZ;S.assertVariableDeclaration=pJ;S.assertVariableDeclarator=dJ;S.assertVariance=GX;S.assertVoidPattern=zZ;S.assertVoidTypeAnnotation=HX;S.assertWhile=dG;S.assertWhileStatement=fJ;S.assertWithStatement=hJ;S.assertYieldExpression=FJ;var gW=fa(),al=da();function b(e,t,r){if(!(0,gW.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function xW(e,t){b("ArrayExpression",e,t)}function SW(e,t){b("AssignmentExpression",e,t)}function bW(e,t){b("BinaryExpression",e,t)}function vW(e,t){b("InterpreterDirective",e,t)}function TW(e,t){b("Directive",e,t)}function EW(e,t){b("DirectiveLiteral",e,t)}function PW(e,t){b("BlockStatement",e,t)}function _W(e,t){b("BreakStatement",e,t)}function kW(e,t){b("CallExpression",e,t)}function IW(e,t){b("CatchClause",e,t)}function AW(e,t){b("ConditionalExpression",e,t)}function wW(e,t){b("ContinueStatement",e,t)}function CW(e,t){b("DebuggerStatement",e,t)}function NW(e,t){b("DoWhileStatement",e,t)}function OW(e,t){b("EmptyStatement",e,t)}function DW(e,t){b("ExpressionStatement",e,t)}function $W(e,t){b("File",e,t)}function jW(e,t){b("ForInStatement",e,t)}function LW(e,t){b("ForStatement",e,t)}function RW(e,t){b("FunctionDeclaration",e,t)}function MW(e,t){b("FunctionExpression",e,t)}function FW(e,t){b("Identifier",e,t)}function BW(e,t){b("IfStatement",e,t)}function zW(e,t){b("LabeledStatement",e,t)}function UW(e,t){b("StringLiteral",e,t)}function KW(e,t){b("NumericLiteral",e,t)}function VW(e,t){b("NullLiteral",e,t)}function qW(e,t){b("BooleanLiteral",e,t)}function WW(e,t){b("RegExpLiteral",e,t)}function JW(e,t){b("LogicalExpression",e,t)}function XW(e,t){b("MemberExpression",e,t)}function ZW(e,t){b("NewExpression",e,t)}function YW(e,t){b("Program",e,t)}function GW(e,t){b("ObjectExpression",e,t)}function HW(e,t){b("ObjectMethod",e,t)}function QW(e,t){b("ObjectProperty",e,t)}function eJ(e,t){b("RestElement",e,t)}function tJ(e,t){b("ReturnStatement",e,t)}function rJ(e,t){b("SequenceExpression",e,t)}function nJ(e,t){b("ParenthesizedExpression",e,t)}function iJ(e,t){b("SwitchCase",e,t)}function sJ(e,t){b("SwitchStatement",e,t)}function aJ(e,t){b("ThisExpression",e,t)}function oJ(e,t){b("ThrowStatement",e,t)}function lJ(e,t){b("TryStatement",e,t)}function cJ(e,t){b("UnaryExpression",e,t)}function uJ(e,t){b("UpdateExpression",e,t)}function pJ(e,t){b("VariableDeclaration",e,t)}function dJ(e,t){b("VariableDeclarator",e,t)}function fJ(e,t){b("WhileStatement",e,t)}function hJ(e,t){b("WithStatement",e,t)}function mJ(e,t){b("AssignmentPattern",e,t)}function yJ(e,t){b("ArrayPattern",e,t)}function gJ(e,t){b("ArrowFunctionExpression",e,t)}function xJ(e,t){b("ClassBody",e,t)}function SJ(e,t){b("ClassExpression",e,t)}function bJ(e,t){b("ClassDeclaration",e,t)}function vJ(e,t){b("ExportAllDeclaration",e,t)}function TJ(e,t){b("ExportDefaultDeclaration",e,t)}function EJ(e,t){b("ExportNamedDeclaration",e,t)}function PJ(e,t){b("ExportSpecifier",e,t)}function _J(e,t){b("ForOfStatement",e,t)}function kJ(e,t){b("ImportDeclaration",e,t)}function IJ(e,t){b("ImportDefaultSpecifier",e,t)}function AJ(e,t){b("ImportNamespaceSpecifier",e,t)}function wJ(e,t){b("ImportSpecifier",e,t)}function CJ(e,t){b("ImportExpression",e,t)}function NJ(e,t){b("MetaProperty",e,t)}function OJ(e,t){b("ClassMethod",e,t)}function DJ(e,t){b("ObjectPattern",e,t)}function $J(e,t){b("SpreadElement",e,t)}function jJ(e,t){b("Super",e,t)}function LJ(e,t){b("TaggedTemplateExpression",e,t)}function RJ(e,t){b("TemplateElement",e,t)}function MJ(e,t){b("TemplateLiteral",e,t)}function FJ(e,t){b("YieldExpression",e,t)}function BJ(e,t){b("AwaitExpression",e,t)}function zJ(e,t){b("Import",e,t)}function UJ(e,t){b("BigIntLiteral",e,t)}function KJ(e,t){b("ExportNamespaceSpecifier",e,t)}function VJ(e,t){b("OptionalMemberExpression",e,t)}function qJ(e,t){b("OptionalCallExpression",e,t)}function WJ(e,t){b("ClassProperty",e,t)}function JJ(e,t){b("ClassAccessorProperty",e,t)}function XJ(e,t){b("ClassPrivateProperty",e,t)}function ZJ(e,t){b("ClassPrivateMethod",e,t)}function YJ(e,t){b("PrivateName",e,t)}function GJ(e,t){b("StaticBlock",e,t)}function HJ(e,t){b("ImportAttribute",e,t)}function QJ(e,t){b("AnyTypeAnnotation",e,t)}function eX(e,t){b("ArrayTypeAnnotation",e,t)}function tX(e,t){b("BooleanTypeAnnotation",e,t)}function rX(e,t){b("BooleanLiteralTypeAnnotation",e,t)}function nX(e,t){b("NullLiteralTypeAnnotation",e,t)}function iX(e,t){b("ClassImplements",e,t)}function sX(e,t){b("DeclareClass",e,t)}function aX(e,t){b("DeclareFunction",e,t)}function oX(e,t){b("DeclareInterface",e,t)}function lX(e,t){b("DeclareModule",e,t)}function cX(e,t){b("DeclareModuleExports",e,t)}function uX(e,t){b("DeclareTypeAlias",e,t)}function pX(e,t){b("DeclareOpaqueType",e,t)}function dX(e,t){b("DeclareVariable",e,t)}function fX(e,t){b("DeclareExportDeclaration",e,t)}function hX(e,t){b("DeclareExportAllDeclaration",e,t)}function mX(e,t){b("DeclaredPredicate",e,t)}function yX(e,t){b("ExistsTypeAnnotation",e,t)}function gX(e,t){b("FunctionTypeAnnotation",e,t)}function xX(e,t){b("FunctionTypeParam",e,t)}function SX(e,t){b("GenericTypeAnnotation",e,t)}function bX(e,t){b("InferredPredicate",e,t)}function vX(e,t){b("InterfaceExtends",e,t)}function TX(e,t){b("InterfaceDeclaration",e,t)}function EX(e,t){b("InterfaceTypeAnnotation",e,t)}function PX(e,t){b("IntersectionTypeAnnotation",e,t)}function _X(e,t){b("MixedTypeAnnotation",e,t)}function kX(e,t){b("EmptyTypeAnnotation",e,t)}function IX(e,t){b("NullableTypeAnnotation",e,t)}function AX(e,t){b("NumberLiteralTypeAnnotation",e,t)}function wX(e,t){b("NumberTypeAnnotation",e,t)}function CX(e,t){b("ObjectTypeAnnotation",e,t)}function NX(e,t){b("ObjectTypeInternalSlot",e,t)}function OX(e,t){b("ObjectTypeCallProperty",e,t)}function DX(e,t){b("ObjectTypeIndexer",e,t)}function $X(e,t){b("ObjectTypeProperty",e,t)}function jX(e,t){b("ObjectTypeSpreadProperty",e,t)}function LX(e,t){b("OpaqueType",e,t)}function RX(e,t){b("QualifiedTypeIdentifier",e,t)}function MX(e,t){b("StringLiteralTypeAnnotation",e,t)}function FX(e,t){b("StringTypeAnnotation",e,t)}function BX(e,t){b("SymbolTypeAnnotation",e,t)}function zX(e,t){b("ThisTypeAnnotation",e,t)}function UX(e,t){b("TupleTypeAnnotation",e,t)}function KX(e,t){b("TypeofTypeAnnotation",e,t)}function VX(e,t){b("TypeAlias",e,t)}function qX(e,t){b("TypeAnnotation",e,t)}function WX(e,t){b("TypeCastExpression",e,t)}function JX(e,t){b("TypeParameter",e,t)}function XX(e,t){b("TypeParameterDeclaration",e,t)}function ZX(e,t){b("TypeParameterInstantiation",e,t)}function YX(e,t){b("UnionTypeAnnotation",e,t)}function GX(e,t){b("Variance",e,t)}function HX(e,t){b("VoidTypeAnnotation",e,t)}function QX(e,t){b("EnumDeclaration",e,t)}function eZ(e,t){b("EnumBooleanBody",e,t)}function tZ(e,t){b("EnumNumberBody",e,t)}function rZ(e,t){b("EnumStringBody",e,t)}function nZ(e,t){b("EnumSymbolBody",e,t)}function iZ(e,t){b("EnumBooleanMember",e,t)}function sZ(e,t){b("EnumNumberMember",e,t)}function aZ(e,t){b("EnumStringMember",e,t)}function oZ(e,t){b("EnumDefaultedMember",e,t)}function lZ(e,t){b("IndexedAccessType",e,t)}function cZ(e,t){b("OptionalIndexedAccessType",e,t)}function uZ(e,t){b("JSXAttribute",e,t)}function pZ(e,t){b("JSXClosingElement",e,t)}function dZ(e,t){b("JSXElement",e,t)}function fZ(e,t){b("JSXEmptyExpression",e,t)}function hZ(e,t){b("JSXExpressionContainer",e,t)}function mZ(e,t){b("JSXSpreadChild",e,t)}function yZ(e,t){b("JSXIdentifier",e,t)}function gZ(e,t){b("JSXMemberExpression",e,t)}function xZ(e,t){b("JSXNamespacedName",e,t)}function SZ(e,t){b("JSXOpeningElement",e,t)}function bZ(e,t){b("JSXSpreadAttribute",e,t)}function vZ(e,t){b("JSXText",e,t)}function TZ(e,t){b("JSXFragment",e,t)}function EZ(e,t){b("JSXOpeningFragment",e,t)}function PZ(e,t){b("JSXClosingFragment",e,t)}function _Z(e,t){b("Noop",e,t)}function kZ(e,t){b("Placeholder",e,t)}function IZ(e,t){b("V8IntrinsicIdentifier",e,t)}function AZ(e,t){b("ArgumentPlaceholder",e,t)}function wZ(e,t){b("BindExpression",e,t)}function CZ(e,t){b("Decorator",e,t)}function NZ(e,t){b("DoExpression",e,t)}function OZ(e,t){b("ExportDefaultSpecifier",e,t)}function DZ(e,t){b("RecordExpression",e,t)}function $Z(e,t){b("TupleExpression",e,t)}function jZ(e,t){b("DecimalLiteral",e,t)}function LZ(e,t){b("ModuleExpression",e,t)}function RZ(e,t){b("TopicReference",e,t)}function MZ(e,t){b("PipelineTopicExpression",e,t)}function FZ(e,t){b("PipelineBareFunction",e,t)}function BZ(e,t){b("PipelinePrimaryTopicReference",e,t)}function zZ(e,t){b("VoidPattern",e,t)}function UZ(e,t){b("TSParameterProperty",e,t)}function KZ(e,t){b("TSDeclareFunction",e,t)}function VZ(e,t){b("TSDeclareMethod",e,t)}function qZ(e,t){b("TSQualifiedName",e,t)}function WZ(e,t){b("TSCallSignatureDeclaration",e,t)}function JZ(e,t){b("TSConstructSignatureDeclaration",e,t)}function XZ(e,t){b("TSPropertySignature",e,t)}function ZZ(e,t){b("TSMethodSignature",e,t)}function YZ(e,t){b("TSIndexSignature",e,t)}function GZ(e,t){b("TSAnyKeyword",e,t)}function HZ(e,t){b("TSBooleanKeyword",e,t)}function QZ(e,t){b("TSBigIntKeyword",e,t)}function eY(e,t){b("TSIntrinsicKeyword",e,t)}function tY(e,t){b("TSNeverKeyword",e,t)}function rY(e,t){b("TSNullKeyword",e,t)}function nY(e,t){b("TSNumberKeyword",e,t)}function iY(e,t){b("TSObjectKeyword",e,t)}function sY(e,t){b("TSStringKeyword",e,t)}function aY(e,t){b("TSSymbolKeyword",e,t)}function oY(e,t){b("TSUndefinedKeyword",e,t)}function lY(e,t){b("TSUnknownKeyword",e,t)}function cY(e,t){b("TSVoidKeyword",e,t)}function uY(e,t){b("TSThisType",e,t)}function pY(e,t){b("TSFunctionType",e,t)}function dY(e,t){b("TSConstructorType",e,t)}function fY(e,t){b("TSTypeReference",e,t)}function hY(e,t){b("TSTypePredicate",e,t)}function mY(e,t){b("TSTypeQuery",e,t)}function yY(e,t){b("TSTypeLiteral",e,t)}function gY(e,t){b("TSArrayType",e,t)}function xY(e,t){b("TSTupleType",e,t)}function SY(e,t){b("TSOptionalType",e,t)}function bY(e,t){b("TSRestType",e,t)}function vY(e,t){b("TSNamedTupleMember",e,t)}function TY(e,t){b("TSUnionType",e,t)}function EY(e,t){b("TSIntersectionType",e,t)}function PY(e,t){b("TSConditionalType",e,t)}function _Y(e,t){b("TSInferType",e,t)}function kY(e,t){b("TSParenthesizedType",e,t)}function IY(e,t){b("TSTypeOperator",e,t)}function AY(e,t){b("TSIndexedAccessType",e,t)}function wY(e,t){b("TSMappedType",e,t)}function CY(e,t){b("TSTemplateLiteralType",e,t)}function NY(e,t){b("TSLiteralType",e,t)}function OY(e,t){b("TSExpressionWithTypeArguments",e,t)}function DY(e,t){b("TSInterfaceDeclaration",e,t)}function $Y(e,t){b("TSInterfaceBody",e,t)}function jY(e,t){b("TSTypeAliasDeclaration",e,t)}function LY(e,t){b("TSInstantiationExpression",e,t)}function RY(e,t){b("TSAsExpression",e,t)}function MY(e,t){b("TSSatisfiesExpression",e,t)}function FY(e,t){b("TSTypeAssertion",e,t)}function BY(e,t){b("TSEnumBody",e,t)}function zY(e,t){b("TSEnumDeclaration",e,t)}function UY(e,t){b("TSEnumMember",e,t)}function KY(e,t){b("TSModuleDeclaration",e,t)}function VY(e,t){b("TSModuleBlock",e,t)}function qY(e,t){b("TSImportType",e,t)}function WY(e,t){b("TSImportEqualsDeclaration",e,t)}function JY(e,t){b("TSExternalModuleReference",e,t)}function XY(e,t){b("TSNonNullExpression",e,t)}function ZY(e,t){b("TSExportAssignment",e,t)}function YY(e,t){b("TSNamespaceExportDeclaration",e,t)}function GY(e,t){b("TSTypeAnnotation",e,t)}function HY(e,t){b("TSTypeParameterInstantiation",e,t)}function QY(e,t){b("TSTypeParameterDeclaration",e,t)}function eG(e,t){b("TSTypeParameter",e,t)}function tG(e,t){b("Standardized",e,t)}function rG(e,t){b("Expression",e,t)}function nG(e,t){b("Binary",e,t)}function iG(e,t){b("Scopable",e,t)}function sG(e,t){b("BlockParent",e,t)}function aG(e,t){b("Block",e,t)}function oG(e,t){b("Statement",e,t)}function lG(e,t){b("Terminatorless",e,t)}function cG(e,t){b("CompletionStatement",e,t)}function uG(e,t){b("Conditional",e,t)}function pG(e,t){b("Loop",e,t)}function dG(e,t){b("While",e,t)}function fG(e,t){b("ExpressionWrapper",e,t)}function hG(e,t){b("For",e,t)}function mG(e,t){b("ForXStatement",e,t)}function yG(e,t){b("Function",e,t)}function gG(e,t){b("FunctionParent",e,t)}function xG(e,t){b("Pureish",e,t)}function SG(e,t){b("Declaration",e,t)}function bG(e,t){b("FunctionParameter",e,t)}function vG(e,t){b("PatternLike",e,t)}function TG(e,t){b("LVal",e,t)}function EG(e,t){b("TSEntityName",e,t)}function PG(e,t){b("Literal",e,t)}function _G(e,t){b("Immutable",e,t)}function kG(e,t){b("UserWhitespacable",e,t)}function IG(e,t){b("Method",e,t)}function AG(e,t){b("ObjectMember",e,t)}function wG(e,t){b("Property",e,t)}function CG(e,t){b("UnaryLike",e,t)}function NG(e,t){b("Pattern",e,t)}function OG(e,t){b("Class",e,t)}function DG(e,t){b("ImportOrExportDeclaration",e,t)}function $G(e,t){b("ExportDeclaration",e,t)}function jG(e,t){b("ModuleSpecifier",e,t)}function LG(e,t){b("Accessor",e,t)}function RG(e,t){b("Private",e,t)}function MG(e,t){b("Flow",e,t)}function FG(e,t){b("FlowType",e,t)}function BG(e,t){b("FlowBaseAnnotation",e,t)}function zG(e,t){b("FlowDeclaration",e,t)}function UG(e,t){b("FlowPredicate",e,t)}function KG(e,t){b("EnumBody",e,t)}function VG(e,t){b("EnumMember",e,t)}function qG(e,t){b("JSX",e,t)}function WG(e,t){b("Miscellaneous",e,t)}function JG(e,t){b("TypeScript",e,t)}function XG(e,t){b("TSTypeElement",e,t)}function ZG(e,t){b("TSType",e,t)}function YG(e,t){b("TSBaseType",e,t)}function GG(e,t){(0,al.default)("assertNumberLiteral","assertNumericLiteral"),b("NumberLiteral",e,t)}function HG(e,t){(0,al.default)("assertRegexLiteral","assertRegExpLiteral"),b("RegexLiteral",e,t)}function QG(e,t){(0,al.default)("assertRestProperty","assertRestElement"),b("RestProperty",e,t)}function eH(e,t){(0,al.default)("assertSpreadProperty","assertSpreadElement"),b("SpreadProperty",e,t)}function tH(e,t){(0,al.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),b("ModuleDeclaration",e,t)}});var zw=R(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.default=void 0;var tn=kr(),v1e=Pp.default=rH;function rH(e){switch(e){case"string":return(0,tn.stringTypeAnnotation)();case"number":return(0,tn.numberTypeAnnotation)();case"undefined":return(0,tn.voidTypeAnnotation)();case"boolean":return(0,tn.booleanTypeAnnotation)();case"function":return(0,tn.genericTypeAnnotation)((0,tn.identifier)("Function"));case"object":return(0,tn.genericTypeAnnotation)((0,tn.identifier)("Object"));case"symbol":return(0,tn.genericTypeAnnotation)((0,tn.identifier)("Symbol"));case"bigint":return(0,tn.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var Kb=R(Ub=>{"use strict";Object.defineProperty(Ub,"__esModule",{value:!0});Ub.default=Kw;var ol=Ot();function Uw(e){return(0,ol.isIdentifier)(e)?e.name:`${e.id.name}.${Uw(e.qualification)}`}function Kw(e){let t=Array.from(e),r=new Map,i=new Map,n=new Set,s=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!s.includes(o)){if((0,ol.isAnyTypeAnnotation)(o))return[o];if((0,ol.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,ol.isUnionTypeAnnotation)(o)){n.has(o.types)||(t.push(...o.types),n.add(o.types));continue}if((0,ol.isGenericTypeAnnotation)(o)){let c=Uw(o.id);if(r.has(c)){let u=r.get(c);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=Kw(u.typeParameters.params)):u=o.typeParameters}else r.set(c,o);continue}s.push(o)}}for(let[,a]of i)s.push(a);for(let[,a]of r)s.push(a);return s}});var Vw=R(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});Vb.default=sH;var nH=kr(),iH=Kb();function sH(e){let t=(0,iH.default)(e);return t.length===1?t[0]:(0,nH.unionTypeAnnotation)(t)}});var Jw=R(qb=>{"use strict";Object.defineProperty(qb,"__esModule",{value:!0});qb.default=Ww;var ba=Ot();function qw(e){return(0,ba.isIdentifier)(e)?e.name:(0,ba.isThisExpression)(e)?"this":`${e.right.name}.${qw(e.left)}`}function Ww(e){let t=Array.from(e),r=new Map,i=new Map,n=new Set,s=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o||s.includes(o))continue;if((0,ba.isTSAnyKeyword)(o))return[o];if((0,ba.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,ba.isTSUnionType)(o)){n.has(o.types)||(t.push(...o.types),n.add(o.types));continue}let c="typeParameters";if((0,ba.isTSTypeReference)(o)&&o[c]){let u=o[c],p=qw(o.typeName);if(r.has(p)){let d=r.get(p),h=d[c];h?(h.params.push(...u.params),h.params=Ww(h.params)):d=u}else r.set(p,o);continue}s.push(o)}for(let[,a]of i)s.push(a);for(let[,a]of r)s.push(a);return s}});var Xw=R(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.default=cH;var aH=kr(),oH=Jw(),lH=Ot();function cH(e){let t=e.map(i=>(0,lH.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,oH.default)(t);return r.length===1?r[0]:(0,aH.tsUnionType)(r)}});var Xb=R(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});Jb.buildUndefinedNode=uH;var Zw=kr();function uH(){return(0,Zw.unaryExpression)("void",(0,Zw.numericLiteral)(0),!0)}});var fi=R(Yb=>{"use strict";Object.defineProperty(Yb,"__esModule",{value:!0});Yb.default=pH;var Yw=Br(),Gw=Ot(),{hasOwn:En}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Hw(e,t,r,i){return e&&typeof e.type=="string"?Qw(e,t,r,i):e}function Zb(e,t,r,i){return Array.isArray(e)?e.map(n=>Hw(n,t,r,i)):Hw(e,t,r,i)}function pH(e,t=!0,r=!1){return Qw(e,t,r,new Map)}function Qw(e,t=!0,r=!1,i){if(!e)return e;let{type:n}=e,s={type:e.type};if((0,Gw.isIdentifier)(e))s.name=e.name,En(e,"optional")&&typeof e.optional=="boolean"&&(s.optional=e.optional),En(e,"typeAnnotation")&&(s.typeAnnotation=t?Zb(e.typeAnnotation,!0,r,i):e.typeAnnotation),En(e,"decorators")&&(s.decorators=t?Zb(e.decorators,!0,r,i):e.decorators);else if(En(Yw.NODE_FIELDS,n))for(let a of Object.keys(Yw.NODE_FIELDS[n]))En(e,a)&&(t?s[a]=(0,Gw.isFile)(e)&&a==="comments"?_p(e.comments,t,r,i):Zb(e[a],!0,r,i):s[a]=e[a]);else throw new Error(`Unknown node type: "${n}"`);return En(e,"loc")&&(r?s.loc=null:s.loc=e.loc),En(e,"leadingComments")&&(s.leadingComments=_p(e.leadingComments,t,r,i)),En(e,"innerComments")&&(s.innerComments=_p(e.innerComments,t,r,i)),En(e,"trailingComments")&&(s.trailingComments=_p(e.trailingComments,t,r,i)),En(e,"extra")&&(s.extra=Object.assign({},e.extra)),s}function _p(e,t,r,i){return!e||!t?e:e.map(n=>{let s=i.get(n);if(s)return s;let{type:a,value:o,loc:c}=n,u={type:a,value:o,loc:c};return r&&(u.loc=null),i.set(n,u),u})}});var eC=R(Gb=>{"use strict";Object.defineProperty(Gb,"__esModule",{value:!0});Gb.default=fH;var dH=fi();function fH(e){return(0,dH.default)(e,!1)}});var tC=R(Hb=>{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});Hb.default=mH;var hH=fi();function mH(e){return(0,hH.default)(e)}});var rC=R(Qb=>{"use strict";Object.defineProperty(Qb,"__esModule",{value:!0});Qb.default=gH;var yH=fi();function gH(e){return(0,yH.default)(e,!0,!0)}});var nC=R(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});ev.default=SH;var xH=fi();function SH(e){return(0,xH.default)(e,!1,!0)}});var rv=R(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});tv.default=bH;function bH(e,t,r){if(!r||!e)return e;let i=`${t}Comments`;return e[i]?t==="leading"?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r,e}});var iC=R(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});nv.default=TH;var vH=rv();function TH(e,t,r,i){return(0,vH.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var kp=R(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});iv.default=EH;function EH(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var av=R(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});sv.default=_H;var PH=kp();function _H(e,t){(0,PH.default)("innerComments",e,t)}});var lv=R(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});ov.default=IH;var kH=kp();function IH(e,t){(0,kH.default)("leadingComments",e,t)}});var uv=R(cv=>{"use strict";Object.defineProperty(cv,"__esModule",{value:!0});cv.default=wH;var AH=kp();function wH(e,t){(0,AH.default)("trailingComments",e,t)}});var dv=R(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.default=DH;var CH=uv(),NH=lv(),OH=av();function DH(e,t){return(0,CH.default)(e,t),(0,NH.default)(e,t),(0,OH.default)(e,t),e}});var sC=R(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});fv.default=jH;var $H=ma();function jH(e){return $H.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var aC=R(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.WHILE_TYPES=Z.USERWHITESPACABLE_TYPES=Z.UNARYLIKE_TYPES=Z.TYPESCRIPT_TYPES=Z.TSTYPE_TYPES=Z.TSTYPEELEMENT_TYPES=Z.TSENTITYNAME_TYPES=Z.TSBASETYPE_TYPES=Z.TERMINATORLESS_TYPES=Z.STATEMENT_TYPES=Z.STANDARDIZED_TYPES=Z.SCOPABLE_TYPES=Z.PUREISH_TYPES=Z.PROPERTY_TYPES=Z.PRIVATE_TYPES=Z.PATTERN_TYPES=Z.PATTERNLIKE_TYPES=Z.OBJECTMEMBER_TYPES=Z.MODULESPECIFIER_TYPES=Z.MODULEDECLARATION_TYPES=Z.MISCELLANEOUS_TYPES=Z.METHOD_TYPES=Z.LVAL_TYPES=Z.LOOP_TYPES=Z.LITERAL_TYPES=Z.JSX_TYPES=Z.IMPORTOREXPORTDECLARATION_TYPES=Z.IMMUTABLE_TYPES=Z.FUNCTION_TYPES=Z.FUNCTIONPARENT_TYPES=Z.FUNCTIONPARAMETER_TYPES=Z.FOR_TYPES=Z.FORXSTATEMENT_TYPES=Z.FLOW_TYPES=Z.FLOWTYPE_TYPES=Z.FLOWPREDICATE_TYPES=Z.FLOWDECLARATION_TYPES=Z.FLOWBASEANNOTATION_TYPES=Z.EXPRESSION_TYPES=Z.EXPRESSIONWRAPPER_TYPES=Z.EXPORTDECLARATION_TYPES=Z.ENUMMEMBER_TYPES=Z.ENUMBODY_TYPES=Z.DECLARATION_TYPES=Z.CONDITIONAL_TYPES=Z.COMPLETIONSTATEMENT_TYPES=Z.CLASS_TYPES=Z.BLOCK_TYPES=Z.BLOCKPARENT_TYPES=Z.BINARY_TYPES=Z.ACCESSOR_TYPES=void 0;var Ie=Br(),z1e=Z.STANDARDIZED_TYPES=Ie.FLIPPED_ALIAS_KEYS.Standardized,U1e=Z.EXPRESSION_TYPES=Ie.FLIPPED_ALIAS_KEYS.Expression,K1e=Z.BINARY_TYPES=Ie.FLIPPED_ALIAS_KEYS.Binary,V1e=Z.SCOPABLE_TYPES=Ie.FLIPPED_ALIAS_KEYS.Scopable,q1e=Z.BLOCKPARENT_TYPES=Ie.FLIPPED_ALIAS_KEYS.BlockParent,W1e=Z.BLOCK_TYPES=Ie.FLIPPED_ALIAS_KEYS.Block,J1e=Z.STATEMENT_TYPES=Ie.FLIPPED_ALIAS_KEYS.Statement,X1e=Z.TERMINATORLESS_TYPES=Ie.FLIPPED_ALIAS_KEYS.Terminatorless,Z1e=Z.COMPLETIONSTATEMENT_TYPES=Ie.FLIPPED_ALIAS_KEYS.CompletionStatement,Y1e=Z.CONDITIONAL_TYPES=Ie.FLIPPED_ALIAS_KEYS.Conditional,G1e=Z.LOOP_TYPES=Ie.FLIPPED_ALIAS_KEYS.Loop,H1e=Z.WHILE_TYPES=Ie.FLIPPED_ALIAS_KEYS.While,Q1e=Z.EXPRESSIONWRAPPER_TYPES=Ie.FLIPPED_ALIAS_KEYS.ExpressionWrapper,eNe=Z.FOR_TYPES=Ie.FLIPPED_ALIAS_KEYS.For,tNe=Z.FORXSTATEMENT_TYPES=Ie.FLIPPED_ALIAS_KEYS.ForXStatement,rNe=Z.FUNCTION_TYPES=Ie.FLIPPED_ALIAS_KEYS.Function,nNe=Z.FUNCTIONPARENT_TYPES=Ie.FLIPPED_ALIAS_KEYS.FunctionParent,iNe=Z.PUREISH_TYPES=Ie.FLIPPED_ALIAS_KEYS.Pureish,sNe=Z.DECLARATION_TYPES=Ie.FLIPPED_ALIAS_KEYS.Declaration,aNe=Z.FUNCTIONPARAMETER_TYPES=Ie.FLIPPED_ALIAS_KEYS.FunctionParameter,oNe=Z.PATTERNLIKE_TYPES=Ie.FLIPPED_ALIAS_KEYS.PatternLike,lNe=Z.LVAL_TYPES=Ie.FLIPPED_ALIAS_KEYS.LVal,cNe=Z.TSENTITYNAME_TYPES=Ie.FLIPPED_ALIAS_KEYS.TSEntityName,uNe=Z.LITERAL_TYPES=Ie.FLIPPED_ALIAS_KEYS.Literal,pNe=Z.IMMUTABLE_TYPES=Ie.FLIPPED_ALIAS_KEYS.Immutable,dNe=Z.USERWHITESPACABLE_TYPES=Ie.FLIPPED_ALIAS_KEYS.UserWhitespacable,fNe=Z.METHOD_TYPES=Ie.FLIPPED_ALIAS_KEYS.Method,hNe=Z.OBJECTMEMBER_TYPES=Ie.FLIPPED_ALIAS_KEYS.ObjectMember,mNe=Z.PROPERTY_TYPES=Ie.FLIPPED_ALIAS_KEYS.Property,yNe=Z.UNARYLIKE_TYPES=Ie.FLIPPED_ALIAS_KEYS.UnaryLike,gNe=Z.PATTERN_TYPES=Ie.FLIPPED_ALIAS_KEYS.Pattern,xNe=Z.CLASS_TYPES=Ie.FLIPPED_ALIAS_KEYS.Class,LH=Z.IMPORTOREXPORTDECLARATION_TYPES=Ie.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,SNe=Z.EXPORTDECLARATION_TYPES=Ie.FLIPPED_ALIAS_KEYS.ExportDeclaration,bNe=Z.MODULESPECIFIER_TYPES=Ie.FLIPPED_ALIAS_KEYS.ModuleSpecifier,vNe=Z.ACCESSOR_TYPES=Ie.FLIPPED_ALIAS_KEYS.Accessor,TNe=Z.PRIVATE_TYPES=Ie.FLIPPED_ALIAS_KEYS.Private,ENe=Z.FLOW_TYPES=Ie.FLIPPED_ALIAS_KEYS.Flow,PNe=Z.FLOWTYPE_TYPES=Ie.FLIPPED_ALIAS_KEYS.FlowType,_Ne=Z.FLOWBASEANNOTATION_TYPES=Ie.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,kNe=Z.FLOWDECLARATION_TYPES=Ie.FLIPPED_ALIAS_KEYS.FlowDeclaration,INe=Z.FLOWPREDICATE_TYPES=Ie.FLIPPED_ALIAS_KEYS.FlowPredicate,ANe=Z.ENUMBODY_TYPES=Ie.FLIPPED_ALIAS_KEYS.EnumBody,wNe=Z.ENUMMEMBER_TYPES=Ie.FLIPPED_ALIAS_KEYS.EnumMember,CNe=Z.JSX_TYPES=Ie.FLIPPED_ALIAS_KEYS.JSX,NNe=Z.MISCELLANEOUS_TYPES=Ie.FLIPPED_ALIAS_KEYS.Miscellaneous,ONe=Z.TYPESCRIPT_TYPES=Ie.FLIPPED_ALIAS_KEYS.TypeScript,DNe=Z.TSTYPEELEMENT_TYPES=Ie.FLIPPED_ALIAS_KEYS.TSTypeElement,$Ne=Z.TSTYPE_TYPES=Ie.FLIPPED_ALIAS_KEYS.TSType,jNe=Z.TSBASETYPE_TYPES=Ie.FLIPPED_ALIAS_KEYS.TSBaseType,LNe=Z.MODULEDECLARATION_TYPES=LH});var yv=R(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});mv.default=RH;var Ip=Ot(),hv=kr();function RH(e,t){if((0,Ip.isBlockStatement)(e))return e;let r=[];return(0,Ip.isEmptyStatement)(e)?r=[]:((0,Ip.isStatement)(e)||((0,Ip.isFunction)(t)?e=(0,hv.returnStatement)(e):e=(0,hv.expressionStatement)(e)),r=[e]),(0,hv.blockStatement)(r)}});var oC=R(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});gv.default=FH;var MH=yv();function FH(e,t="body"){let r=(0,MH.default)(e[t],e);return e[t]=r,r}});var Sv=R(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});xv.default=UH;var BH=ha(),zH=Qo();function UH(e){e=e+"";let t="";for(let r of e)t+=(0,zH.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,BH.default)(t)||(t=`_${t}`),t||"_"}});var lC=R(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.default=VH;var KH=Sv();function VH(e){return e=(0,KH.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var cC=R(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});vv.default=JH;var qH=Ot(),WH=kr();function JH(e,t=e.key||e.property){return!e.computed&&(0,qH.isIdentifier)(t)&&(t=(0,WH.stringLiteral)(t.name)),t}});var uC=R(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.default=void 0;var ll=Ot(),KNe=Ap.default=XH;function XH(e){if((0,ll.isExpressionStatement)(e)&&(e=e.expression),(0,ll.isExpression)(e))return e;if((0,ll.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,ll.isFunction)(e)&&(e.type="FunctionExpression"),!(0,ll.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var Ev=R(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});Tv.default=cl;var ZH=Br(),pC=Symbol(),dC=Symbol();function cl(e,t,r){if(!e)return!1;let i=ZH.VISITOR_KEYS[e.type];if(!i)return!1;r=r||{};let n=t(e,r);if(n!==void 0)switch(n){case pC:return!1;case dC:return!0}for(let s of i){let a=e[s];if(a){if(Array.isArray(a)){for(let o of a)if(cl(o,t,r))return!0}else if(cl(a,t,r))return!0}}return!1}cl.skip=pC;cl.stop=dC});var _v=R(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.default=HH;var YH=ma(),fC=["tokens","start","end","loc","raw","rawValue"],GH=[...YH.COMMENT_KEYS,"comments",...fC];function HH(e,t={}){let r=t.preserveComments?fC:GH;for(let n of r)e[n]!=null&&(e[n]=void 0);for(let n of Object.keys(e))n.startsWith("_")&&e[n]!=null&&(e[n]=void 0);let i=Object.getOwnPropertySymbols(e);for(let n of i)e[n]=null}});var Iv=R(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});kv.default=tQ;var QH=Ev(),eQ=_v();function tQ(e,t){return(0,QH.default)(e,eQ.default,t),e}});var mC=R(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.default=Gi;var hC=Ot(),rQ=fi(),nQ=Iv();function Gi(e,t=e.key){let r;return e.kind==="method"?Gi.increment()+"":((0,hC.isIdentifier)(t)?r=t.name:(0,hC.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,nQ.default)((0,rQ.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}Gi.uid=0;Gi.increment=function(){return Gi.uid>=Number.MAX_SAFE_INTEGER?Gi.uid=0:Gi.uid++}});var yC=R(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=void 0;var wp=Ot(),iQ=kr(),ZNe=Cp.default=sQ;function sQ(e,t){if((0,wp.isStatement)(e))return e;let r=!1,i;if((0,wp.isClass)(e))r=!0,i="ClassDeclaration";else if((0,wp.isFunction)(e))r=!0,i="FunctionDeclaration";else if((0,wp.isAssignmentExpression)(e))return(0,iQ.expressionStatement)(e);if(r&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var gC=R(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=void 0;var aQ=ha(),Mt=kr(),GNe=Np.default=wv,oQ=Function.call.bind(Object.prototype.toString);function lQ(e){return oQ(e)==="[object RegExp]"}function cQ(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function wv(e){if(e===void 0)return(0,Mt.identifier)("undefined");if(e===!0||e===!1)return(0,Mt.booleanLiteral)(e);if(e===null)return(0,Mt.nullLiteral)();if(typeof e=="string")return(0,Mt.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,Mt.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,Mt.numericLiteral)(0):r=(0,Mt.numericLiteral)(1),t=(0,Mt.binaryExpression)("/",r,(0,Mt.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,Mt.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,Mt.unaryExpression)("-",(0,Mt.bigIntLiteral)(-e)):(0,Mt.bigIntLiteral)(e);if(lQ(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,Mt.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,Mt.arrayExpression)(e.map(wv));if(cQ(e)){let t=[];for(let r of Object.keys(e)){let i,n=!1;(0,aQ.default)(r)?r==="__proto__"?(n=!0,i=(0,Mt.stringLiteral)(r)):i=(0,Mt.identifier)(r):i=(0,Mt.stringLiteral)(r),t.push((0,Mt.objectProperty)(i,wv(e[r]),n))}return(0,Mt.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var xC=R(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});Cv.default=pQ;var uQ=kr();function pQ(e,t,r=!1){return e.object=(0,uQ.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var bC=R(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});Nv.default=fQ;var SC=ma(),dQ=dv();function fQ(e,t){if(!e||!t)return e;for(let r of SC.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r.startsWith("_")&&r!=="__clone"&&(e[r]=t[r]);for(let r of SC.INHERIT_KEYS.force)e[r]=t[r];return(0,dQ.default)(e,t),e}});var vC=R(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});Ov.default=yQ;var hQ=kr(),mQ=Ee();function yQ(e,t){if((0,mQ.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,hQ.memberExpression)(t,e.object),e}});var TC=R(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});Dv.default=gQ;function gQ(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let i=t.pop();if(i)switch(i.type){case"ArrayPattern":t.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(i.left);break;case"ObjectPattern":t.push(...i.properties);break;case"ObjectProperty":t.push(i.value);break;case"RestElement":case"UpdateExpression":t.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&t.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var ul=R(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.default=$v;var Mn=Ot();function $v(e,t,r,i){let n=[].concat(e),s=Object.create(null);for(;n.length;){let a=n.shift();if(!a||i&&((0,Mn.isAssignmentExpression)(a)||(0,Mn.isUnaryExpression)(a)||(0,Mn.isUpdateExpression)(a)))continue;if((0,Mn.isIdentifier)(a)){t?(s[a.name]=s[a.name]||[]).push(a):s[a.name]=a;continue}if((0,Mn.isExportDeclaration)(a)&&!(0,Mn.isExportAllDeclaration)(a)){(0,Mn.isDeclaration)(a.declaration)&&n.push(a.declaration);continue}if(r){if((0,Mn.isFunctionDeclaration)(a)){n.push(a.id);continue}if((0,Mn.isFunctionExpression)(a))continue}let o=$v.keys[a.type];if(o)for(let c=0;c<o.length;c++){let u=o[c],p=a[u];p&&(Array.isArray(p)?n.push(...p):n.push(p))}}return s}var xQ={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};$v.keys=xQ});var EC=R(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.default=void 0;var SQ=ul(),iOe=Op.default=bQ;function bQ(e,t){return(0,SQ.default)(e,t,!0)}});var _C=R(Lv=>{"use strict";Object.defineProperty(Lv,"__esModule",{value:!0});Lv.default=TQ;var zr=Ot();function vQ(e){return(0,zr.isNullLiteral)(e)?"null":(0,zr.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,zr.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function PC(e){if(!e.computed||(0,zr.isLiteral)(e.key))return e.key}function TQ(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",i;if((0,zr.isObjectProperty)(t,{value:e})?i=PC(t):(0,zr.isObjectMethod)(e)||(0,zr.isClassMethod)(e)?(i=PC(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,zr.isVariableDeclarator)(t,{init:e})?i=t.id:(0,zr.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;let n=(0,zr.isLiteral)(i)?vQ(i):(0,zr.isIdentifier)(i)?i.name:(0,zr.isPrivateName)(i)?i.id.name:null;return n==null?null:{name:r+n,originalNode:i}}});var kC=R(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});Mv.default=PQ;var EQ=Br();function PQ(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:n}=t;Rv(e,i,n,r,[])}function Rv(e,t,r,i,n){let s=EQ.VISITOR_KEYS[e.type];if(s){t&&t(e,n,i);for(let a of s){let o=e[a];if(Array.isArray(o))for(let c=0;c<o.length;c++){let u=o[c];u&&(n.push({node:e,key:a,index:c}),Rv(u,t,r,i,n),n.pop())}else o&&(n.push({node:e,key:a}),Rv(o,t,r,i,n),n.pop())}r&&r(e,n,i)}}});var IC=R(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});Fv.default=kQ;var _Q=ul();function kQ(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=_Q.default.keys[t.type];if(i)for(let n=0;n<i.length;n++){let s=i[n],a=t[s];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var zv=R(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.default=wQ;var IQ=Ot(),AQ=Symbol.for("var used to be block scoped");function wQ(e){return(0,IQ.isVariableDeclaration)(e)&&(e.kind!=="var"||e[AQ])}});var wC=R(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});Uv.default=NQ;var AC=Ot(),CQ=zv();function NQ(e){return(0,AC.isFunctionDeclaration)(e)||(0,AC.isClassDeclaration)(e)||(0,CQ.default)(e)}});var CC=R(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});Kv.default=$Q;var OQ=fp(),DQ=Ot();function $Q(e){return(0,OQ.default)(e.type,"Immutable")?!0:(0,DQ.isIdentifier)(e)?e.name==="undefined":!1}});var OC=R(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.default=Vv;var NC=Br();function Vv(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(NC.NODE_FIELDS[e.type]||e.type),i=NC.VISITOR_KEYS[e.type];for(let n of r){let s=e[n],a=t[n];if(typeof s!=typeof a)return!1;if(!(s==null&&a==null)){if(s==null||a==null)return!1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return!1;for(let o=0;o<s.length;o++)if(!Vv(s[o],a[o]))return!1;continue}if(typeof s=="object"&&!(i!=null&&i.includes(n))){for(let o of Object.keys(s))if(s[o]!==a[o])return!1;continue}if(!Vv(s,a))return!1}}return!0}});var DC=R(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.default=jQ;function jQ(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var $C=R(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});Jv.default=LQ;var Hi=Ot();function LQ(e,t){return(0,Hi.isBlockStatement)(e)&&((0,Hi.isFunction)(t)||(0,Hi.isCatchClause)(t))?!1:(0,Hi.isPattern)(e)&&((0,Hi.isFunction)(t)||(0,Hi.isCatchClause)(t))?!0:(0,Hi.isScopable)(e)}});var LC=R(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});Xv.default=RQ;var jC=Ot();function RQ(e){return(0,jC.isImportDefaultSpecifier)(e)||(0,jC.isIdentifier)(e.imported||e.exported,{name:"default"})}});var RC=R(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});Zv.default=BQ;var MQ=ha(),FQ=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function BQ(e){return(0,MQ.default)(e)&&!FQ.has(e)}});var MC=R(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});Yv.default=KQ;var zQ=Ot(),UQ=Symbol.for("var used to be block scoped");function KQ(e){return(0,zQ.isVariableDeclaration)(e,{kind:"var"})&&!e[UQ]}});var FC=R(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});Qv.default=Dp;var VQ=ul(),Qi=Ot(),Gv=kr(),Hv=Xb(),qQ=fi();function Dp(e,t){let r=[],i=!0;for(let n of e)if((0,Qi.isEmptyStatement)(n)||(i=!1),(0,Qi.isExpression)(n))r.push(n);else if((0,Qi.isExpressionStatement)(n))r.push(n.expression);else if((0,Qi.isVariableDeclaration)(n)){if(n.kind!=="var")return;for(let s of n.declarations){let a=(0,VQ.default)(s);for(let o of Object.keys(a))t.push({kind:n.kind,id:(0,qQ.default)(a[o])});s.init&&r.push((0,Gv.assignmentExpression)("=",s.id,s.init))}i=!0}else if((0,Qi.isIfStatement)(n)){let s=n.consequent?Dp([n.consequent],t):(0,Hv.buildUndefinedNode)(),a=n.alternate?Dp([n.alternate],t):(0,Hv.buildUndefinedNode)();if(!s||!a)return;r.push((0,Gv.conditionalExpression)(n.test,s,a))}else if((0,Qi.isBlockStatement)(n)){let s=Dp(n.body,t);if(!s)return;r.push(s)}else if((0,Qi.isEmptyStatement)(n))e.indexOf(n)===0&&(i=!0);else return;return i&&r.push((0,Hv.buildUndefinedNode)()),r.length===1?r[0]:(0,Gv.sequenceExpression)(r)}});var BC=R(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.default=JQ;var WQ=FC();function JQ(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0,WQ.default)(e,r);if(i){for(let n of r)t.push(n);return i}}});var Ee=R(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});var hi={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(se,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Gee.default}});Object.defineProperty(se,"addComment",{enumerable:!0,get:function(){return see.default}});Object.defineProperty(se,"addComments",{enumerable:!0,get:function(){return aee.default}});Object.defineProperty(se,"appendToMemberExpression",{enumerable:!0,get:function(){return vee.default}});Object.defineProperty(se,"assertNode",{enumerable:!0,get:function(){return GQ.default}});Object.defineProperty(se,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Yee.default}});Object.defineProperty(se,"clone",{enumerable:!0,get:function(){return tee.default}});Object.defineProperty(se,"cloneDeep",{enumerable:!0,get:function(){return ree.default}});Object.defineProperty(se,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return nee.default}});Object.defineProperty(se,"cloneNode",{enumerable:!0,get:function(){return eee.default}});Object.defineProperty(se,"cloneWithoutLoc",{enumerable:!0,get:function(){return iee.default}});Object.defineProperty(se,"createFlowUnionType",{enumerable:!0,get:function(){return zC.default}});Object.defineProperty(se,"createTSUnionType",{enumerable:!0,get:function(){return QQ.default}});Object.defineProperty(se,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return HQ.default}});Object.defineProperty(se,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return zC.default}});Object.defineProperty(se,"ensureBlock",{enumerable:!0,get:function(){return dee.default}});Object.defineProperty(se,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Iee.default}});Object.defineProperty(se,"getBindingIdentifiers",{enumerable:!0,get:function(){return Aee.default}});Object.defineProperty(se,"getFunctionName",{enumerable:!0,get:function(){return Cee.default}});Object.defineProperty(se,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return wee.default}});Object.defineProperty(se,"inheritInnerComments",{enumerable:!0,get:function(){return oee.default}});Object.defineProperty(se,"inheritLeadingComments",{enumerable:!0,get:function(){return lee.default}});Object.defineProperty(se,"inheritTrailingComments",{enumerable:!0,get:function(){return uee.default}});Object.defineProperty(se,"inherits",{enumerable:!0,get:function(){return Tee.default}});Object.defineProperty(se,"inheritsComments",{enumerable:!0,get:function(){return cee.default}});Object.defineProperty(se,"is",{enumerable:!0,get:function(){return Dee.default}});Object.defineProperty(se,"isBinding",{enumerable:!0,get:function(){return $ee.default}});Object.defineProperty(se,"isBlockScoped",{enumerable:!0,get:function(){return jee.default}});Object.defineProperty(se,"isImmutable",{enumerable:!0,get:function(){return Lee.default}});Object.defineProperty(se,"isLet",{enumerable:!0,get:function(){return Ree.default}});Object.defineProperty(se,"isNode",{enumerable:!0,get:function(){return Mee.default}});Object.defineProperty(se,"isNodesEquivalent",{enumerable:!0,get:function(){return Fee.default}});Object.defineProperty(se,"isPlaceholderType",{enumerable:!0,get:function(){return Bee.default}});Object.defineProperty(se,"isReferenced",{enumerable:!0,get:function(){return zee.default}});Object.defineProperty(se,"isScope",{enumerable:!0,get:function(){return Uee.default}});Object.defineProperty(se,"isSpecifierDefault",{enumerable:!0,get:function(){return Kee.default}});Object.defineProperty(se,"isType",{enumerable:!0,get:function(){return Vee.default}});Object.defineProperty(se,"isValidES3Identifier",{enumerable:!0,get:function(){return qee.default}});Object.defineProperty(se,"isValidIdentifier",{enumerable:!0,get:function(){return Wee.default}});Object.defineProperty(se,"isVar",{enumerable:!0,get:function(){return Jee.default}});Object.defineProperty(se,"matchesPattern",{enumerable:!0,get:function(){return Xee.default}});Object.defineProperty(se,"prependToMemberExpression",{enumerable:!0,get:function(){return Eee.default}});se.react=void 0;Object.defineProperty(se,"removeComments",{enumerable:!0,get:function(){return pee.default}});Object.defineProperty(se,"removeProperties",{enumerable:!0,get:function(){return Pee.default}});Object.defineProperty(se,"removePropertiesDeep",{enumerable:!0,get:function(){return _ee.default}});Object.defineProperty(se,"removeTypeDuplicates",{enumerable:!0,get:function(){return kee.default}});Object.defineProperty(se,"shallowEqual",{enumerable:!0,get:function(){return Oee.default}});Object.defineProperty(se,"toBindingIdentifierName",{enumerable:!0,get:function(){return fee.default}});Object.defineProperty(se,"toBlock",{enumerable:!0,get:function(){return hee.default}});Object.defineProperty(se,"toComputedKey",{enumerable:!0,get:function(){return mee.default}});Object.defineProperty(se,"toExpression",{enumerable:!0,get:function(){return yee.default}});Object.defineProperty(se,"toIdentifier",{enumerable:!0,get:function(){return gee.default}});Object.defineProperty(se,"toKeyAlias",{enumerable:!0,get:function(){return xee.default}});Object.defineProperty(se,"toStatement",{enumerable:!0,get:function(){return See.default}});Object.defineProperty(se,"traverse",{enumerable:!0,get:function(){return $p.default}});Object.defineProperty(se,"traverseFast",{enumerable:!0,get:function(){return Nee.default}});Object.defineProperty(se,"validate",{enumerable:!0,get:function(){return Zee.default}});Object.defineProperty(se,"valueToNode",{enumerable:!0,get:function(){return bee.default}});var XQ=WA(),ZQ=JA(),YQ=Mw(),GQ=Fw(),tT=Bw();Object.keys(tT).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===tT[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return tT[e]}})});var HQ=zw(),zC=Vw(),QQ=Xw(),rT=Xb();Object.keys(rT).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===rT[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return rT[e]}})});var nT=kr();Object.keys(nT).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===nT[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return nT[e]}})});var eee=fi(),tee=eC(),ree=tC(),nee=rC(),iee=nC(),see=iC(),aee=rv(),oee=av(),lee=lv(),cee=dv(),uee=uv(),pee=sC(),iT=aC();Object.keys(iT).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===iT[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return iT[e]}})});var sT=ma();Object.keys(sT).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===sT[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return sT[e]}})});var dee=oC(),fee=lC(),hee=yv(),mee=cC(),yee=uC(),gee=Sv(),xee=mC(),See=yC(),bee=gC(),aT=Br();Object.keys(aT).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===aT[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return aT[e]}})});var vee=xC(),Tee=bC(),Eee=vC(),Pee=_v(),_ee=Iv(),kee=Kb(),Iee=TC(),Aee=ul(),wee=EC(),Cee=_C(),$p=kC();Object.keys($p).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===$p[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return $p[e]}})});var Nee=Ev(),Oee=pp(),Dee=fa(),$ee=IC(),jee=wC(),Lee=CC(),Ree=zv(),Mee=Bb(),Fee=OC(),Bee=pb(),zee=DC(),Uee=$C(),Kee=LC(),Vee=fp(),qee=RC(),Wee=ha(),Jee=MC(),Xee=sb(),Zee=gp(),Yee=ob(),oT=Ot();Object.keys(oT).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(hi,e)||e in se&&se[e]===oT[e]||Object.defineProperty(se,e,{enumerable:!0,get:function(){return oT[e]}})});var Gee=da(),Hee=BC(),bOe=se.react={isReactComponent:XQ.default,isCompatTag:ZQ.default,buildChildren:YQ.default};se.toSequenceExpression=Hee.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var lT=R(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.isBindingIdentifier=vte;Ft.isBlockScoped=kte;Ft.isExpression=Ete;Ft.isFlow=Nte;Ft.isForAwaitStatement=$te;Ft.isGenerated=wte;Ft.isPure=Cte;Ft.isReferenced=_te;Ft.isReferencedIdentifier=Ste;Ft.isReferencedMemberExpression=bte;Ft.isRestProperty=Ote;Ft.isScope=Pte;Ft.isSpreadProperty=Dte;Ft.isStatement=Tte;Ft.isUser=Ate;Ft.isVar=Ite;var Qee=Ee(),{isBinding:ete,isBlockScoped:tte,isExportDeclaration:rte,isExpression:nte,isFlow:ite,isForStatement:ste,isForXStatement:ate,isIdentifier:UC,isImportDeclaration:ote,isImportSpecifier:lte,isJSXIdentifier:cte,isJSXMemberExpression:ute,isMemberExpression:pte,isRestElement:KC,isReferenced:jp,isScope:dte,isStatement:fte,isVar:hte,isVariableDeclaration:mte,react:yte,isForOfStatement:gte}=Qee,{isCompatTag:xte}=yte;function Ste(e){let{node:t,parent:r}=this;return UC(t,e)?jp(t,r,this.parentPath.parent):cte(t,e)?!ute(r)&&xte(t.name)?!1:jp(t,r,this.parentPath.parent):!1}function bte(){let{node:e,parent:t}=this;return pte(e)&&jp(e,t)}function vte(){let{node:e,parent:t}=this,r=this.parentPath.parent;return UC(e)&&ete(e,t,r)}function Tte(){let{node:e,parent:t}=this;return fte(e)?!(mte(e)&&(ate(t,{left:e})||ste(t,{init:e}))):!1}function Ete(){return this.isIdentifier()?this.isReferencedIdentifier():nte(this.node)}function Pte(){return dte(this.node,this.parent)}function _te(){return jp(this.node,this.parent)}function kte(){return tte(this.node)}function Ite(){return hte(this.node)}function Ate(){var e;return!!((e=this.node)!=null&&e.loc)}function wte(){return!this.isUser()}function Cte(e){return this.scope.isPure(this.node,e)}function Nte(){let{node:e}=this;return ite(e)?!0:ote(e)?e.importKind==="type"||e.importKind==="typeof":rte(e)?e.exportKind==="type":lte(e)?e.importKind==="type"||e.importKind==="typeof":!1}function Ote(){var e;return KC(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function Dte(){var e;return KC(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function $te(){return gte(this.node,{await:!0})}Ft.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};Ft.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var dl=R(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.environmentVisitor=Ute;ts.explode=e1;ts.isExplodedVisitor=QC;ts.merge=r1;ts.verify=t1;var HC=GS(),jte=lT(),Lte=Ee(),VC=Ur(),{DEPRECATED_KEYS:qC,DEPRECATED_ALIASES:WC,FLIPPED_ALIAS_KEYS:JC,TYPES:Rte,__internal__deprecationWarning:XC}=Lte;function Mte(e){return e in HC}function QC(e){return e?._exploded}function e1(e){if(QC(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(es(r))continue;let i=r.split("|");if(i.length===1)continue;let n=e[r];delete e[r];for(let s of i)e[s]=n}t1(e),delete e.__esModule,Fte(e),GC(e);for(let r of Object.keys(e)){if(es(r)||!Mte(r))continue;let i=e[r];for(let s of Object.keys(i))i[s]=Bte(r,i[s]);delete e[r];let n=HC[r];if(n!==null)for(let s of n){var t;(t=e[s])!=null||(e[s]={}),pl(e[s],i)}else pl(e,i)}for(let r of Object.keys(e)){if(es(r))continue;let i=JC[r];if(r in qC){let s=qC[r];XC(r,s,"Visitor "),i=[s]}else if(r in WC){let s=WC[r];XC(r,s,"Visitor "),i=JC[s]}if(!i)continue;let n=e[r];delete e[r];for(let s of i){let a=e[s];a?pl(a,n):e[s]=Object.assign({},n)}}for(let r of Object.keys(e))es(r)||GC(e[r]);return e}function t1(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&ZC(t,e[t]),es(t))continue;if(!Rte.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.0`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")ZC(`${t}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`)}e._verified=!0}}function ZC(e,t){let r=[].concat(t);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function r1(e,t=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let n=0;n<e.length;n++){let s=e1(e[n]),a=t[n],o=s;(a||r)&&(o=YC(o,a,r)),pl(i,o);for(let c of Object.keys(s)){if(es(c))continue;let u=s[c];(a||r)&&(u=YC(u,a,r));let p=i[c]||(i[c]={});pl(p,u)}}return i}function YC(e,t,r){let i={};for(let n of["enter","exit"]){let s=e[n];Array.isArray(s)&&(s=s.map(function(a){let o=a;return t&&(o=function(c){a.call(t,c,t)}),r&&(o=r(t?.key,n,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[n]=s)}return i}function Fte(e){for(let t of Object.keys(e)){if(es(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function GC(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function Bte(e,t){let r=`is${e}`,i=jte[r],n=function(s){if(i.call(s))return t.apply(this,arguments)};return n.toString=()=>t.toString(),n}function es(e){return!!(e.startsWith("_")||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist")}function pl(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var zte={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():VC.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():VC.requeueComputedKeyAndDecorators.call(e))}};function Ute(e){return r1([zte,e])}});var n1=R(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=void 0;var Lp=Ee(),Kte=Lp,Vte=Mp(),qte=dl(),Wte=Ur(),{getAssignmentIdentifiers:Jte}=Kte,Xte={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Wte.requeueComputedKeyAndDecorators.call(e)),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){let{name:i}=e.key;if(e.shorthand&&(i===r.oldName||i===r.newName)&&t.getBindingIdentifier(i)===r.binding.identifier){var n;e.shorthand=!1,(n=e.extra)!=null&&n.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?Jte(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName)}},cT=class{constructor(t,r,i){this.newName=i,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(Lp.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:i}=this,{scope:n,path:s}=t,a=s.find(u=>u.isDeclaration()||u.isFunctionExpression()||u.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||n.block,c={discriminant:!0};Lp.isMethod(o)&&(o.computed&&(c.key=!0),Lp.isObjectMethod(o)||(c.decorators=!0)),(0,Vte.traverseNode)(o,(0,qte.explode)(Xte),n,this,n.path,c),arguments[0]||(n.removeOwnBinding(r),n.bindings[i]=t,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(s),this.maybeConvertFromClassFunctionExpression(s))}};Rp.default=cT});var i1=R(uT=>{"use strict";Object.defineProperty(uT,"__esModule",{value:!0});uT.default=ere;var Zte=Ee(),Yte=rn(),Gte=dl(),Hte=Ur(),{VISITOR_KEYS:Qte}=Zte;function ere(e,t,r){let i=(0,Gte.explode)(t);if(i.enter||i.exit)throw new Error("Should not be used with enter/exit visitors.");n(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function n(s,a,o,c,u,p,d,h){if(!o)return;let y=h||Yte.NodePath.get({hub:d,parentPath:s,parent:a,container:c,listKey:p,key:u});Hte._forceSetScope.call(y);let T=i[o.type];if(T!=null&&T.enter)for(let k of T.enter)k.call(r,y,r);if(y.shouldSkip)return;let w=Qte[o.type];if(w!=null&&w.length){for(let k of w){let C=o[k];if(C)if(Array.isArray(C))for(let D=0;D<C.length;D++){let U=C[D];n(y,o,U,C,D,k)}else n(y,o,C,o,k,null)}if(T!=null&&T.exit)for(let k of T.exit)k.call(r,y,r)}}}});var s1=R(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.default=void 0;var pT=class{constructor({identifier:t,scope:r,path:i,kind:n}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=n,(n==="var"||n==="hoisted")&&tre(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};Fp.default=pT;function tre(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:i}=e;r;{parentPath:r,key:i}=r){if(r.isFunctionParent())return!1;if(i==="left"&&r.isForXStatement()||t&&i==="body"&&r.isLoop())return!0}return!1}});var rs=R(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.clear=nre;Or.clearPath=a1;Or.clearScope=o1;Or.getCachedPaths=ire;Or.getOrCreateCachedPaths=sre;Or.scope=Or.path=void 0;var Bp=Or.path=new WeakMap,rre=Or.scope=new WeakMap;function nre(){a1(),o1()}function a1(){Or.path=Bp=new WeakMap}function o1(){Or.scope=rre=new WeakMap}function ire(e){let{parent:t,parentPath:r}=e;return Bp.get(t)}function sre(e,t){let r=Bp.get(e);return r||Bp.set(e,r=new Map),r}});var l1=R((AOe,are)=>{are.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var c1=R((wOe,ore)=>{ore.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var mT=R(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.default=void 0;var lre=n1(),S1=rn(),COe=i1(),cre=s1(),b1=Ee(),v1=b1,u1=rs(),ure=l1(),pre=c1(),{assignmentExpression:dre,callExpression:p1,cloneNode:d1,getBindingIdentifiers:T1,identifier:is,isArrayExpression:E1,isBinary:fre,isCallExpression:f1,isClass:hre,isClassBody:mre,isClassDeclaration:yre,isExportAllDeclaration:P1,isExportDefaultDeclaration:gre,isExportNamedDeclaration:dT,isFunctionDeclaration:xre,isIdentifier:ns,isImportDeclaration:fT,isLiteral:Sre,isMemberExpression:bre,isMethod:vre,isModuleSpecifier:Tre,isNullLiteral:Ere,isObjectExpression:Pre,isProperty:_re,isPureish:kre,isRegExpLiteral:Ire,isSuper:Are,isTaggedTemplateExpression:wre,isTemplateLiteral:_1,isThisExpression:h1,isUnaryExpression:Cre,isVariableDeclaration:Nre,expressionStatement:Ore,matchesPattern:m1,memberExpression:hT,numericLiteral:Dre,toIdentifier:$re,variableDeclaration:jre,variableDeclarator:Lre,isObjectProperty:Rre,isTopicReference:y1,isMetaProperty:Mre,isPrivateName:Fre,isExportDeclaration:Bre,buildUndefinedNode:zre,sequenceExpression:Ure}=b1;function vt(e,t){switch(e?.type){default:if(fT(e)||Bre(e)){var r;if((P1(e)||dT(e)||fT(e))&&e.source)vt(e.source,t);else if((dT(e)||fT(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)vt(i,t);else(gre(e)||dT(e))&&e.declaration&&vt(e.declaration,t)}else Tre(e)?vt(e.local,t):Sre(e)&&!Ere(e)&&!Ire(e)&&!_1(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":vt(e.object,t),vt(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":vt(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let i of e.properties)vt(i,t);break;case"SpreadElement":case"RestElement":vt(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":vt(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),vt(e.argument,t);break;case"AwaitExpression":t.push("await"),vt(e.argument,t);break;case"AssignmentExpression":vt(e.left,t);break;case"VariableDeclarator":vt(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":vt(e.id,t);break;case"PrivateName":vt(e.id,t);break;case"ParenthesizedExpression":vt(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":vt(e.argument,t);break;case"MetaProperty":vt(e.meta,t),vt(e.property,t);break;case"JSXElement":vt(e.openingElement,t);break;case"JSXOpeningElement":vt(e.name,t);break;case"JSXFragment":vt(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":vt(e.namespace,t),vt(e.name,t);break}}function g1(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function Kre(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var x1=Symbol.for("should not be considered a local binding"),Vre={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){v1.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(P1(t))return;let i=t.declaration;if(yre(i)||xre(i)){let n=i.id;if(!n)return;let s=r.getBinding(n.name);s?.reference(e)}else if(Nre(i))for(let n of i.declarations)for(let s of Object.keys(T1(n))){let a=r.getBinding(s);a?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let n=e.node.id.name;e.scope.bindings[n]=e.scope.parent.getBinding(n)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[x1]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[x1]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},zp,qre=0,nn=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,i=u1.scope.get(r);if(i?.path===t)return i;u1.scope.set(r,this),this.uid=qre++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,i=this.path;do{var n;let s=i.key==="key"||i.listKey==="decorators";i=i.parentPath,s&&i.isMethod()&&(i=i.parentPath),(n=i)!=null&&n.isScope()&&(r=i)}while(i&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),d1(r)}generateUidIdentifier(t){return is(this.generateUid(t))}generateUid(t="temp"){t=$re(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=0;do r=`_${t}`,i>=11?r+=i-1:i>=9?r+=i-9:i>=1&&(r+=i+1),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let n=this.getProgramParent();return n.references[r]=!0,n.uids[r]=!0,r}generateUidBasedOnNode(t,r){let i=[];vt(t,i);let n=i.join("$");return n=n.replace(/^_/,"")||r||"ref",this.generateUid(n.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return is(this.generateUidBasedOnNode(t,r))}isStatic(t){if(h1(t)||Are(t)||y1(t))return!0;if(ns(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),d1(i))}}checkBlockScopedCollisions(t,r,i,n){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(n,`Duplicate declaration "${i}"`,TypeError)}rename(t,r){let i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new lre.default(i,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let n=r.bindings[i];console.log(" -",i,{constant:n.constant,references:n.references,violations:n.constantViolations.length,kind:n.kind})}}while(r=r.parent);console.log(t)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:i}=t.node;for(let n of r)this.registerBinding(i==="using"||i==="await using"?"const":i,n)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",i=t.get("specifiers");for(let n of i){let s=r||n.isImportSpecifier()&&(n.node.importKind==="type"||n.node.importKind==="typeof");this.registerBinding(s?"unknown":"module",n)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return zre()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let n of Object.keys(r)){var i;(i=this.getBinding(n))==null||i.reassign(t)}}registerBinding(t,r,i=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let n=this.getProgramParent(),s=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(s)){n.references[a]=!0;for(let o of s[a]){let c=this.getOwnBinding(a);if(c){if(c.identifier===o)continue;this.checkBlockScopedCollisions(c,t,a,o)}c?c.reassign(i):this.bindings[a]=new cre.default({identifier:o,scope:this,path:i,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(ns(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(h1(t)||Mre(t)||y1(t)||Fre(t))return!0;if(hre(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?!1:this.isPure(t.body,r)}else if(mre(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(fre(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(E1(t)||t?.type==="TupleExpression"){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(Pre(t)||t?.type==="RecordExpression"){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(vre(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0)}else if(_re(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0||(Rre(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(Cre(t))return this.isPure(t.argument,r);if(_1(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return wre(t)?m1(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):bre(t)?!t.computed&&ns(t.object)&&t.object.name==="Symbol"&&ns(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):f1(t)?m1(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&v1.isStringLiteral(t.arguments[0]):kre(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let i=r.data[t];if(i!=null)return i}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;g1(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let i=r,n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,zp||(zp=S1.default.visitors.merge([{Scope(s){g1(s.scope)}},Vre])),t.type!=="Program"){let s=zp[t.type];if(s)for(let a of s.enter)a.call(n,t,n)}t.traverse(zp,n),this.crawling=!1;for(let s of n.assignments){let a=s.getAssignmentIdentifiers();for(let o of Object.keys(a))s.scope.getBinding(o)||i.addGlobal(a[o]);s.scope.registerConstantViolation(s)}for(let s of n.references){let a=s.scope.getBinding(s.node.name);a?a.reference(s):i.addGlobal(s.node)}for(let s of n.constantViolations)s.scope.registerConstantViolation(s)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:n,kind:s="var",id:a}=t;if(!i&&!n&&(s==="var"||s==="let")&&Kre(r)&&f1(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&ns(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,c=`declaration:${s}:${o}`,u=!n&&r.getData(c);if(!u){let h=jre(s,[]);h._blockHoist=o,[u]=r.unshiftContainer("body",[h]),n||r.setData(c,u)}let p=Lre(a,i),d=u.node.declarations.push(p);r.scope.registerBinding(s,u.get("declarations")[d-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in t||(t[i]=r.bindings[i]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,i;do{let s=r.getOwnBinding(t);if(s){var n;if(!((n=i)!=null&&n.isPattern()&&s.kind!=="param"&&s.kind!=="local"))return s}else if(!s&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let i,n,s;typeof r=="object"?(i=r.noGlobals,n=r.noUids,s=r.upToScope):typeof r=="boolean"&&(i=r);let a=this;do{if(s===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent);return!!(!n&&this.hasUid(t)||!i&&e.globals.includes(t)||!i&&e.contextVariables.includes(t))}parentHasBinding(t,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(t,r)}moveBindingTo(t,r){let i=this.getBinding(t);i&&(i.scope.removeOwnBinding(t),i.scope=r,r.bindings[t]=i)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let i=this;do i.uids[t]&&(i.uids[t]=!1);while(i=i.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let i of Object.keys(this.bindings)){let n=this.bindings[i];if(!n)continue;let{path:s}=n;if(!s.isVariableDeclarator())continue;let{parent:a,parentPath:o}=s;if(a.kind!=="var"||r.has(a))continue;r.add(s.parent);let c,u=[];for(let p of a.declarations){c??(c=p.id),p.init&&u.push(dre("=",p.id,p.init));let d=Object.keys(T1(p,!1,!0,!0));for(let h of d)t(is(h),p.init!=null)}if(o.parentPath.isForXStatement({left:a}))o.replaceWith(c);else if(u.length===0)o.remove();else{let p=u.length===1?u[0]:Ure(u);o.parentPath.isForStatement({init:a})?o.replaceWith(p):o.replaceWith(Ore(p))}}}};Up.default=nn;nn.globals=[...ure,...pre];nn.contextVariables=["arguments","undefined","Infinity","NaN"];nn.prototype._renameFromMap=function(t,r,i,n){t[r]&&(t[i]=n,t[r]=null)};nn.prototype.traverse=function(e,t,r){(0,S1.default)(e,t,this,r,this.path)};nn.prototype._generateUid=function(t,r){let i=t;return r>1&&(i+=r),`_${i}`};nn.prototype.toArray=function(t,r,i){if(ns(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(E1(t))return t;if(ns(t,{name:"arguments"}))return p1(hT(hT(hT(is("Array"),is("prototype")),is("slice")),is("call")),[t]);let n,s=[t];return r===!0?n="toConsumableArray":typeof r=="number"?(s.push(Dre(r)),n="slicedToArray"):n="toArray",i&&(s.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),p1(this.path.hub.addHelper(n),s)};nn.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let i of t){let n=this;do{for(let s of Object.keys(n.bindings)){let a=n.bindings[s];a.kind===i&&(r[s]=a)}n=n.parent}while(n)}return r};Object.defineProperties(nn.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var gT=R((yT,fl)=>{(function(e,t){if(typeof yT=="object"&&typeof fl<"u")t(fl),fl.exports=r(fl);else if(typeof define=="function"&&define.amd)define(["module"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(yT,(function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,s=(K,B)=>{for(var j in B)t(K,j,{get:B[j],enumerable:!0})},a=(K,B,j,G)=>{if(B&&typeof B=="object"||typeof B=="function")for(let xe of i(B))!n.call(K,xe)&&xe!==j&&t(K,xe,{get:()=>B[xe],enumerable:!(G=r(B,xe))||G.enumerable});return K},o=K=>a(t({},"__esModule",{value:!0}),K),c={};s(c,{decode:()=>$,decodeGeneratedRanges:()=>Qe,decodeOriginalScopes:()=>ye,encode:()=>pe,encodeGeneratedRanges:()=>yt,encodeOriginalScopes:()=>we}),e.exports=o(c);var u=44,p=59,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=new Uint8Array(64),y=new Uint8Array(128);for(let K=0;K<d.length;K++){let B=d.charCodeAt(K);h[K]=B,y[B]=K}function T(K,B){let j=0,G=0,xe=0;do{let je=K.next();xe=y[je],j|=(xe&31)<<G,G+=5}while(xe&32);let ke=j&1;return j>>>=1,ke&&(j=-2147483648|-j),B+j}function w(K,B,j){let G=B-j;G=G<0?-G<<1|1:G<<1;do{let xe=G&31;G>>>=5,G>0&&(xe|=32),K.write(h[xe])}while(G>0);return B}function k(K,B){return K.pos>=B?!1:K.peek()!==u}var C=1024*16,D=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(K){return Buffer.from(K.buffer,K.byteOffset,K.byteLength).toString()}}:{decode(K){let B="";for(let j=0;j<K.length;j++)B+=String.fromCharCode(K[j]);return B}},U=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(C)}write(K){let{buffer:B}=this;B[this.pos++]=K,this.pos===C&&(this.out+=D.decode(B),this.pos=0)}flush(){let{buffer:K,out:B,pos:j}=this;return j>0?B+D.decode(K.subarray(0,j)):B}},z=class{constructor(K){this.pos=0,this.buffer=K}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(K){let{buffer:B,pos:j}=this,G=B.indexOf(K,j);return G===-1?B.length:G}},q=[];function ye(K){let{length:B}=K,j=new z(K),G=[],xe=[],ke=0;for(;j.pos<B;j.pos++){ke=T(j,ke);let je=T(j,0);if(!k(j,B)){let gt=xe.pop();gt[2]=ke,gt[3]=je;continue}let De=T(j,0),Le=T(j,0)&1?[ke,je,0,0,De,T(j,0)]:[ke,je,0,0,De],it=q;if(k(j,B)){it=[];do{let gt=T(j,0);it.push(gt)}while(k(j,B))}Le.vars=it,G.push(Le),xe.push(Le)}return G}function we(K){let B=new U;for(let j=0;j<K.length;)j=Pe(K,j,B,[0]);return B.flush()}function Pe(K,B,j,G){let xe=K[B],{0:ke,1:je,2:De,3:et,4:We,vars:Le}=xe;B>0&&j.write(u),G[0]=w(j,ke,G[0]),w(j,je,0),w(j,We,0);let it=xe.length===6?1:0;w(j,it,0),xe.length===6&&w(j,xe[5],0);for(let gt of Le)w(j,gt,0);for(B++;B<K.length;){let gt=K[B],{0:Ue,1:dt}=gt;if(Ue>De||Ue===De&&dt>=et)break;B=Pe(K,B,j,G)}return j.write(u),G[0]=w(j,De,G[0]),w(j,et,0),B}function Qe(K){let{length:B}=K,j=new z(K),G=[],xe=[],ke=0,je=0,De=0,et=0,We=0,Le=0,it=0,gt=0;do{let Ue=j.indexOf(";"),dt=0;for(;j.pos<Ue;j.pos++){if(dt=T(j,dt),!k(j,Ue)){let de=xe.pop();de[2]=ke,de[3]=dt;continue}let ft=T(j,0),Vt=ft&1,zt=ft&2,ut=ft&4,re=null,W=q,ce;if(Vt){let de=T(j,je);De=T(j,je===de?De:0),je=de,ce=[ke,dt,0,0,de,De]}else ce=[ke,dt,0,0];if(ce.isScope=!!ut,zt){let de=et,Ce=We;et=T(j,et);let Oe=de===et;We=T(j,Oe?We:0),Le=T(j,Oe&&Ce===We?Le:0),re=[et,We,Le]}if(ce.callsite=re,k(j,Ue)){W=[];do{it=ke,gt=dt;let de=T(j,0),Ce;if(de<-1){Ce=[[T(j,0)]];for(let Oe=-1;Oe>de;Oe--){let tt=it;it=T(j,it),gt=T(j,it===tt?gt:0);let qt=T(j,0);Ce.push([qt,it,gt])}}else Ce=[[de]];W.push(Ce)}while(k(j,Ue))}ce.bindings=W,G.push(ce),xe.push(ce)}ke++,j.pos=Ue+1}while(j.pos<B);return G}function yt(K){if(K.length===0)return"";let B=new U;for(let j=0;j<K.length;)j=wt(K,j,B,[0,0,0,0,0,0,0]);return B.flush()}function wt(K,B,j,G){let xe=K[B],{0:ke,1:je,2:De,3:et,isScope:We,callsite:Le,bindings:it}=xe;G[0]<ke?(br(j,G[0],ke),G[0]=ke,G[1]=0):B>0&&j.write(u),G[1]=w(j,xe[1],G[1]);let gt=(xe.length===6?1:0)|(Le?2:0)|(We?4:0);if(w(j,gt,0),xe.length===6){let{4:Ue,5:dt}=xe;Ue!==G[2]&&(G[3]=0),G[2]=w(j,Ue,G[2]),G[3]=w(j,dt,G[3])}if(Le){let{0:Ue,1:dt,2:ft}=xe.callsite;Ue!==G[4]?(G[5]=0,G[6]=0):dt!==G[5]&&(G[6]=0),G[4]=w(j,Ue,G[4]),G[5]=w(j,dt,G[5]),G[6]=w(j,ft,G[6])}if(it)for(let Ue of it){Ue.length>1&&w(j,-Ue.length,0);let dt=Ue[0][0];w(j,dt,0);let ft=ke,Vt=je;for(let zt=1;zt<Ue.length;zt++){let ut=Ue[zt];ft=w(j,ut[1],ft),Vt=w(j,ut[2],Vt),w(j,ut[0],0)}}for(B++;B<K.length;){let Ue=K[B],{0:dt,1:ft}=Ue;if(dt>De||dt===De&&ft>=et)break;B=wt(K,B,j,G)}return G[0]<De?(br(j,G[0],De),G[0]=De,G[1]=0):j.write(u),G[1]=w(j,et,G[1]),B}function br(K,B,j){do K.write(p);while(++B<j)}function $(K){let{length:B}=K,j=new z(K),G=[],xe=0,ke=0,je=0,De=0,et=0;do{let We=j.indexOf(";"),Le=[],it=!0,gt=0;for(xe=0;j.pos<We;){let Ue;xe=T(j,xe),xe<gt&&(it=!1),gt=xe,k(j,We)?(ke=T(j,ke),je=T(j,je),De=T(j,De),k(j,We)?(et=T(j,et),Ue=[xe,ke,je,De,et]):Ue=[xe,ke,je,De]):Ue=[xe],Le.push(Ue),j.pos++}it||te(Le),G.push(Le),j.pos=We+1}while(j.pos<=B);return G}function te(K){K.sort(le)}function le(K,B){return K[0]-B[0]}function pe(K){let B=new U,j=0,G=0,xe=0,ke=0;for(let je=0;je<K.length;je++){let De=K[je];if(je>0&&B.write(p),De.length===0)continue;let et=0;for(let We=0;We<De.length;We++){let Le=De[We];We>0&&B.write(u),et=w(B,Le[0],et),Le.length!==1&&(j=w(B,Le[1],j),G=w(B,Le[2],G),xe=w(B,Le[3],xe),Le.length!==4&&(ke=w(B,Le[4],ke)))}}return B.flush()}}))});var k1=R((xT,ST)=>{(function(e,t){typeof xT=="object"&&typeof ST<"u"?ST.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(xT,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(k){return e.test(k)}function n(k){return k.startsWith("//")}function s(k){return k.startsWith("/")}function a(k){return k.startsWith("file:")}function o(k){return/^[.?#]/.test(k)}function c(k){let C=t.exec(k);return p(C[1],C[2]||"",C[3],C[4]||"",C[5]||"/",C[6]||"",C[7]||"")}function u(k){let C=r.exec(k),D=C[2];return p("file:","",C[1]||"","",s(D)?D:"/"+D,C[3]||"",C[4]||"")}function p(k,C,D,U,z,q,ye){return{scheme:k,user:C,host:D,port:U,path:z,query:q,hash:ye,type:7}}function d(k){if(n(k)){let D=c("http:"+k);return D.scheme="",D.type=6,D}if(s(k)){let D=c("http://foo.com"+k);return D.scheme="",D.host="",D.type=5,D}if(a(k))return u(k);if(i(k))return c(k);let C=c("http://foo.com/"+k);return C.scheme="",C.host="",C.type=k?k.startsWith("?")?3:k.startsWith("#")?2:4:1,C}function h(k){if(k.endsWith("/.."))return k;let C=k.lastIndexOf("/");return k.slice(0,C+1)}function y(k,C){T(C,C.type),k.path==="/"?k.path=C.path:k.path=h(C.path)+k.path}function T(k,C){let D=C<=4,U=k.path.split("/"),z=1,q=0,ye=!1;for(let Pe=1;Pe<U.length;Pe++){let Qe=U[Pe];if(!Qe){ye=!0;continue}if(ye=!1,Qe!=="."){if(Qe===".."){q?(ye=!0,q--,z--):D&&(U[z++]=Qe);continue}U[z++]=Qe,q++}}let we="";for(let Pe=1;Pe<z;Pe++)we+="/"+U[Pe];(!we||ye&&!we.endsWith("/.."))&&(we+="/"),k.path=we}function w(k,C){if(!k&&!C)return"";let D=d(k),U=D.type;if(C&&U!==7){let q=d(C),ye=q.type;switch(U){case 1:D.hash=q.hash;case 2:D.query=q.query;case 3:case 4:y(D,q);case 5:D.user=q.user,D.host=q.host,D.port=q.port;case 6:D.scheme=q.scheme}ye>U&&(U=ye)}T(D,U);let z=D.query+D.hash;switch(U){case 2:case 3:return z;case 4:{let q=D.path.slice(1);return q?o(C||k)&&!o(q)?"./"+q+z:q+z:z||"."}case 5:return D.path+z;default:return D.scheme+"//"+D.user+D.host+D.port+D.path+z}}return w}))});var vT=R((bT,hl)=>{(function(e,t){if(typeof bT=="object"&&typeof hl<"u")t(hl,k1(),gT()),hl.exports=r(hl);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(bT,(function(e,t,r){"use strict";var i=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(M,J)=>function(){return J||(0,M[a(M)[0]])((J={exports:{}}).exports,J),J.exports},p=(M,J)=>{for(var X in J)n(M,X,{get:J[X],enumerable:!0})},d=(M,J,X,ae)=>{if(J&&typeof J=="object"||typeof J=="function")for(let _e of a(J))!c.call(M,_e)&&_e!==X&&n(M,_e,{get:()=>J[_e],enumerable:!(ae=s(J,_e))||ae.enumerable});return M},h=(M,J,X)=>(X=M!=null?i(o(M)):{},d(J||!M||!M.__esModule?n(X,"default",{value:M,enumerable:!0}):X,M)),y=M=>d(n({},"__esModule",{value:!0}),M),T=u({"umd:@jridgewell/sourcemap-codec"(M,J){J.exports=r}}),w=u({"umd:@jridgewell/resolve-uri"(M,J){J.exports=t}}),k={};p(k,{AnyMap:()=>et,FlattenMap:()=>et,GREATEST_LOWER_BOUND:()=>Vt,LEAST_UPPER_BOUND:()=>ft,TraceMap:()=>zt,allGeneratedPositionsFor:()=>Oe,decodedMap:()=>Ai,decodedMappings:()=>W,eachMapping:()=>tt,encodedMap:()=>Ts,encodedMappings:()=>re,generatedPositionFor:()=>Ce,isIgnored:()=>Ha,originalPositionFor:()=>de,presortedDecodedMap:()=>Ii,sourceContentFor:()=>jr,traceSegment:()=>ce}),e.exports=y(k);var C=h(T()),D=h(w());function U(M){if(!M)return"";let J=M.lastIndexOf("/");return M.slice(0,J+1)}function z(M,J){let X=U(M),ae=J?J+"/":"";return _e=>(0,D.default)(ae+(_e||""),X)}var q=0,ye=1,we=2,Pe=3,Qe=4,yt=1,wt=2;function br(M,J){let X=$(M,0);if(X===M.length)return M;J||(M=M.slice());for(let ae=X;ae<M.length;ae=$(M,ae+1))M[ae]=le(M[ae],J);return M}function $(M,J){for(let X=J;X<M.length;X++)if(!te(M[X]))return X;return M.length}function te(M){for(let J=1;J<M.length;J++)if(M[J][q]<M[J-1][q])return!1;return!0}function le(M,J){return J||(M=M.slice()),M.sort(pe)}function pe(M,J){return M[q]-J[q]}function K(M,J){let X=J.map(()=>[]);for(let ae=0;ae<M.length;ae++){let _e=M[ae];for(let Se=0;Se<_e.length;Se++){let Je=_e[Se];if(Je.length===1)continue;let xt=Je[ye],Ve=Je[we],Rt=Je[Pe],Ut=X[xt];(Ut[Ve]||(Ut[Ve]=[])).push([Rt,ae,Je[q]])}}for(let ae=0;ae<X.length;ae++){let _e=X[ae];for(let Se=0;Se<_e.length;Se++){let Je=_e[Se];Je&&Je.sort(pe)}}return X}var B=!1;function j(M,J,X,ae){for(;X<=ae;){let _e=X+(ae-X>>1),Se=M[_e][q]-J;if(Se===0)return B=!0,_e;Se<0?X=_e+1:ae=_e-1}return B=!1,X-1}function G(M,J,X){for(let ae=X+1;ae<M.length&&M[ae][q]===J;X=ae++);return X}function xe(M,J,X){for(let ae=X-1;ae>=0&&M[ae][q]===J;X=ae--);return X}function ke(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function je(M,J,X,ae){let{lastKey:_e,lastNeedle:Se,lastIndex:Je}=X,xt=0,Ve=M.length-1;if(ae===_e){if(J===Se)return B=Je!==-1&&M[Je][q]===J,Je;J>=Se?xt=Je===-1?0:Je:Ve=Je}return X.lastKey=ae,X.lastNeedle=J,X.lastIndex=j(M,J,xt,Ve)}function De(M){return typeof M=="string"?JSON.parse(M):M}var et=function(M,J){let X=De(M);if(!("sections"in X))return new zt(X,J);let ae=[],_e=[],Se=[],Je=[],xt=[];We(X,J,ae,_e,Se,Je,xt,0,0,1/0,1/0);let Ve={version:3,file:X.file,names:Je,sources:_e,sourcesContent:Se,mappings:ae,ignoreList:xt};return Ii(Ve)};function We(M,J,X,ae,_e,Se,Je,xt,Ve,Rt,Ut){let{sections:Kt}=M;for(let wr=0;wr<Kt.length;wr++){let{map:Lr,offset:un}=Kt[wr],pn=Rt,On=Ut;if(wr+1<Kt.length){let Es=Kt[wr+1].offset;pn=Math.min(Rt,xt+Es.line),pn===Rt?On=Math.min(Ut,Ve+Es.column):pn<Rt&&(On=Ve+Es.column)}Le(Lr,J,X,ae,_e,Se,Je,xt+un.line,Ve+un.column,pn,On)}}function Le(M,J,X,ae,_e,Se,Je,xt,Ve,Rt,Ut){let Kt=De(M);if("sections"in Kt)return We(...arguments);let wr=new zt(Kt,J),Lr=ae.length,un=Se.length,pn=W(wr),{resolvedSources:On,sourcesContent:Es,ignoreList:Xf}=wr;if(it(ae,On),it(Se,wr.names),Es)it(_e,Es);else for(let Rr=0;Rr<On.length;Rr++)_e.push(null);if(Xf)for(let Rr=0;Rr<Xf.length;Rr++)Je.push(Xf[Rr]+Lr);for(let Rr=0;Rr<pn.length;Rr++){let Zf=xt+Rr;if(Zf>Rt)return;let m0=gt(X,Zf),hL=Rr===0?Ve:0,y0=pn[Rr];for(let Yf=0;Yf<y0.length;Yf++){let Ci=y0[Yf],Xl=hL+Ci[q];if(Zf===Rt&&Xl>=Ut)return;if(Ci.length===1){m0.push([Xl]);continue}let g0=Lr+Ci[ye],x0=Ci[we],S0=Ci[Pe];m0.push(Ci.length===4?[Xl,g0,x0,S0]:[Xl,g0,x0,S0,un+Ci[Qe]])}}}function it(M,J){for(let X=0;X<J.length;X++)M.push(J[X])}function gt(M,J){for(let X=M.length;X<=J;X++)M[X]=[];return M[J]}var Ue="`line` must be greater than 0 (lines start at line 1)",dt="`column` must be greater than or equal to 0 (columns start at column 0)",ft=-1,Vt=1,zt=class{constructor(M,J){let X=typeof M=="string";if(!X&&M._decodedMemo)return M;let ae=De(M),{version:_e,file:Se,names:Je,sourceRoot:xt,sources:Ve,sourcesContent:Rt}=ae;this.version=_e,this.file=Se,this.names=Je||[],this.sourceRoot=xt,this.sources=Ve,this.sourcesContent=Rt,this.ignoreList=ae.ignoreList||ae.x_google_ignoreList||void 0;let Ut=z(J,xt);this.resolvedSources=Ve.map(Ut);let{mappings:Kt}=ae;if(typeof Kt=="string")this._encoded=Kt,this._decoded=void 0;else if(Array.isArray(Kt))this._encoded=void 0,this._decoded=br(Kt,X);else throw ae.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(ae)}`);this._decodedMemo=ke(),this._bySources=void 0,this._bySourceMemos=void 0}};function ut(M){return M}function re(M){var J,X;return(X=(J=M)._encoded)!=null?X:J._encoded=(0,C.encode)(M._decoded)}function W(M){var J;return(J=M)._decoded||(J._decoded=(0,C.decode)(M._encoded))}function ce(M,J,X){let ae=W(M);if(J>=ae.length)return null;let _e=ae[J],Se=wi(_e,M._decodedMemo,J,X,Vt);return Se===-1?null:_e[Se]}function de(M,J){let{line:X,column:ae,bias:_e}=J;if(X--,X<0)throw new Error(Ue);if(ae<0)throw new Error(dt);let Se=W(M);if(X>=Se.length)return Nn(null,null,null,null);let Je=Se[X],xt=wi(Je,M._decodedMemo,X,ae,_e||Vt);if(xt===-1)return Nn(null,null,null,null);let Ve=Je[xt];if(Ve.length===1)return Nn(null,null,null,null);let{names:Rt,resolvedSources:Ut}=M;return Nn(Ut[Ve[ye]],Ve[we]+1,Ve[Pe],Ve.length===5?Rt[Ve[Qe]]:null)}function Ce(M,J){let{source:X,line:ae,column:_e,bias:Se}=J;return h0(M,X,ae,_e,Se||Vt,!1)}function Oe(M,J){let{source:X,line:ae,column:_e,bias:Se}=J;return h0(M,X,ae,_e,Se||ft,!0)}function tt(M,J){let X=W(M),{names:ae,resolvedSources:_e}=M;for(let Se=0;Se<X.length;Se++){let Je=X[Se];for(let xt=0;xt<Je.length;xt++){let Ve=Je[xt],Rt=Se+1,Ut=Ve[0],Kt=null,wr=null,Lr=null,un=null;Ve.length!==1&&(Kt=_e[Ve[1]],wr=Ve[2]+1,Lr=Ve[3]),Ve.length===5&&(un=ae[Ve[4]]),J({generatedLine:Rt,generatedColumn:Ut,source:Kt,originalLine:wr,originalColumn:Lr,name:un})}}}function qt(M,J){let{sources:X,resolvedSources:ae}=M,_e=X.indexOf(J);return _e===-1&&(_e=ae.indexOf(J)),_e}function jr(M,J){let{sourcesContent:X}=M;if(X==null)return null;let ae=qt(M,J);return ae===-1?null:X[ae]}function Ha(M,J){let{ignoreList:X}=M;if(X==null)return!1;let ae=qt(M,J);return ae===-1?!1:X.includes(ae)}function Ii(M,J){let X=new zt(Cn(M,[]),J);return X._decoded=M.mappings,X}function Ai(M){return Cn(M,W(M))}function Ts(M){return Cn(M,re(M))}function Cn(M,J){return{version:M.version,file:M.file,names:M.names,sourceRoot:M.sourceRoot,sources:M.sources,sourcesContent:M.sourcesContent,mappings:J,ignoreList:M.ignoreList||M.x_google_ignoreList}}function Nn(M,J,X,ae){return{source:M,line:J,column:X,name:ae}}function Zr(M,J){return{line:M,column:J}}function wi(M,J,X,ae,_e){let Se=je(M,ae,J,X);return B?Se=(_e===ft?G:xe)(M,ae,Se):_e===ft&&Se++,Se===-1||Se===M.length?-1:Se}function fL(M,J,X,ae,_e){let Se=wi(M,J,X,ae,Vt);if(!B&&_e===ft&&Se++,Se===-1||Se===M.length)return[];let Je=B?ae:M[Se][q];B||(Se=xe(M,Je,Se));let xt=G(M,Je,Se),Ve=[];for(;Se<=xt;Se++){let Rt=M[Se];Ve.push(Zr(Rt[yt]+1,Rt[wt]))}return Ve}function h0(M,J,X,ae,_e,Se){var Je,xt;if(X--,X<0)throw new Error(Ue);if(ae<0)throw new Error(dt);let{sources:Ve,resolvedSources:Rt}=M,Ut=Ve.indexOf(J);if(Ut===-1&&(Ut=Rt.indexOf(J)),Ut===-1)return Se?[]:Zr(null,null);let Kt=(Je=M)._bySourceMemos||(Je._bySourceMemos=Ve.map(ke)),Lr=((xt=M)._bySources||(xt._bySources=K(W(M),Kt)))[Ut][X];if(Lr==null)return Se?[]:Zr(null,null);let un=Kt[Ut];if(Se)return fL(Lr,un,X,ae,_e);let pn=wi(Lr,un,X,ae,_e);if(pn===-1)return Zr(null,null);let On=Lr[pn];return Zr(On[yt]+1,On[wt])}}))});var I1=R((TT,ml)=>{(function(e,t){if(typeof TT=="object"&&typeof ml<"u")t(ml,gT(),vT()),ml.exports=r(ml);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(i){t.apply(this,arguments),i.exports=r(i)});else{let i={exports:{}};t(i,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(i)}function r(i){return"default"in i.exports?i.exports.default:i.exports}})(TT,(function(e,t,r){"use strict";var i=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(re,W)=>function(){return W||(0,re[a(re)[0]])((W={exports:{}}).exports,W),W.exports},p=(re,W)=>{for(var ce in W)n(re,ce,{get:W[ce],enumerable:!0})},d=(re,W,ce,de)=>{if(W&&typeof W=="object"||typeof W=="function")for(let Ce of a(W))!c.call(re,Ce)&&Ce!==ce&&n(re,Ce,{get:()=>W[Ce],enumerable:!(de=s(W,Ce))||de.enumerable});return re},h=(re,W,ce)=>(ce=re!=null?i(o(re)):{},d(W||!re||!re.__esModule?n(ce,"default",{value:re,enumerable:!0}):ce,re)),y=re=>d(n({},"__esModule",{value:!0}),re),T=u({"umd:@jridgewell/sourcemap-codec"(re,W){W.exports=t}}),w=u({"umd:@jridgewell/trace-mapping"(re,W){W.exports=r}}),k={};p(k,{GenMapping:()=>te,addMapping:()=>K,addSegment:()=>pe,allMappings:()=>et,fromMap:()=>De,maybeAddMapping:()=>j,maybeAddSegment:()=>B,setIgnore:()=>xe,setSourceContent:()=>G,toDecodedMap:()=>ke,toEncodedMap:()=>je}),e.exports=y(k);var C=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function D(re){return re}function U(re,W){return re._indexes[W]}function z(re,W){let ce=U(re,W);if(ce!==void 0)return ce;let{array:de,_indexes:Ce}=re,Oe=de.push(W);return Ce[W]=Oe-1}function q(re,W){let ce=U(re,W);if(ce===void 0)return;let{array:de,_indexes:Ce}=re;for(let Oe=ce+1;Oe<de.length;Oe++){let tt=de[Oe];de[Oe-1]=tt,Ce[tt]--}Ce[W]=void 0,de.pop()}var ye=h(T()),we=h(w()),Pe=0,Qe=1,yt=2,wt=3,br=4,$=-1,te=class{constructor({file:re,sourceRoot:W}={}){this._names=new C,this._sources=new C,this._sourcesContent=[],this._mappings=[],this.file=re,this.sourceRoot=W,this._ignoreList=new C}};function le(re){return re}function pe(re,W,ce,de,Ce,Oe,tt,qt){return We(!1,re,W,ce,de,Ce,Oe,tt,qt)}function K(re,W){return ut(!1,re,W)}var B=(re,W,ce,de,Ce,Oe,tt,qt)=>We(!0,re,W,ce,de,Ce,Oe,tt,qt),j=(re,W)=>ut(!0,re,W);function G(re,W,ce){let{_sources:de,_sourcesContent:Ce}=re,Oe=z(de,W);Ce[Oe]=ce}function xe(re,W,ce=!0){let{_sources:de,_sourcesContent:Ce,_ignoreList:Oe}=re,tt=z(de,W);tt===Ce.length&&(Ce[tt]=null),ce?z(Oe,tt):q(Oe,tt)}function ke(re){let{_mappings:W,_sources:ce,_sourcesContent:de,_names:Ce,_ignoreList:Oe}=re;return dt(W),{version:3,file:re.file||void 0,names:Ce.array,sourceRoot:re.sourceRoot||void 0,sources:ce.array,sourcesContent:de,mappings:W,ignoreList:Oe.array}}function je(re){let W=ke(re);return Object.assign({},W,{mappings:(0,ye.encode)(W.mappings)})}function De(re){let W=new we.TraceMap(re),ce=new te({file:W.file,sourceRoot:W.sourceRoot});return ft(ce._names,W.names),ft(ce._sources,W.sources),ce._sourcesContent=W.sourcesContent||W.sources.map(()=>null),ce._mappings=(0,we.decodedMappings)(W),W.ignoreList&&ft(ce._ignoreList,W.ignoreList),ce}function et(re){let W=[],{_mappings:ce,_sources:de,_names:Ce}=re;for(let Oe=0;Oe<ce.length;Oe++){let tt=ce[Oe];for(let qt=0;qt<tt.length;qt++){let jr=tt[qt],Ha={line:Oe+1,column:jr[Pe]},Ii,Ai,Ts;jr.length!==1&&(Ii=de.array[jr[Qe]],Ai={line:jr[yt]+1,column:jr[wt]},jr.length===5&&(Ts=Ce.array[jr[br]])),W.push({generated:Ha,source:Ii,original:Ai,name:Ts})}}return W}function We(re,W,ce,de,Ce,Oe,tt,qt,jr){let{_mappings:Ha,_sources:Ii,_sourcesContent:Ai,_names:Ts}=W,Cn=it(Ha,ce),Nn=gt(Cn,de);if(!Ce)return re&&Vt(Cn,Nn)?void 0:Ue(Cn,Nn,[de]);let Zr=z(Ii,Ce),wi=qt?z(Ts,qt):$;if(Zr===Ai.length&&(Ai[Zr]=jr??null),!(re&&zt(Cn,Nn,Zr,Oe,tt,wi)))return Ue(Cn,Nn,qt?[de,Zr,Oe,tt,wi]:[de,Zr,Oe,tt])}function Le(re){}function it(re,W){for(let ce=re.length;ce<=W;ce++)re[ce]=[];return re[W]}function gt(re,W){let ce=re.length;for(let de=ce-1;de>=0;ce=de--){let Ce=re[de];if(W>=Ce[Pe])break}return ce}function Ue(re,W,ce){for(let de=re.length;de>W;de--)re[de]=re[de-1];re[W]=ce}function dt(re){let{length:W}=re,ce=W;for(let de=ce-1;de>=0&&!(re[de].length>0);ce=de,de--);ce<W&&(re.length=ce)}function ft(re,W){for(let ce=0;ce<W.length;ce++)z(re,W[ce])}function Vt(re,W){return W===0?!0:re[W-1].length===1}function zt(re,W,ce,de,Ce,Oe){if(W===0)return!1;let tt=re[W-1];return tt.length===1?!1:ce===tt[Qe]&&de===tt[yt]&&Ce===tt[wt]&&Oe===(tt.length===5?tt[br]:$)}function ut(re,W,ce){let{generated:de,source:Ce,original:Oe,name:tt,content:qt}=ce;return Ce?We(re,W,de.line-1,de.column,Ce,Oe.line-1,Oe.column,tt,qt):We(re,W,de.line-1,de.column,null,null,null,null,null)}}))});var A1=R(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=void 0;var mi=I1(),ET=vT(),PT=class{constructor(t,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let n=this._map=new mi.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(i=t.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new ET.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var s;(0,mi.setSourceContent)(n,a[o],(s=this._inputMap.sourcesContent)==null?void 0:s[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,mi.setSourceContent)(n,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,mi.setSourceContent)(n,a.replace(/\\/g,"/"),r[a])}get(){return(0,mi.toEncodedMap)(this._map)}getDecoded(){return(0,mi.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,mi.allMappings)(this._map))}mark(t,r,i,n,s,a){var o;this._rawMappings=void 0;let c;if(r!=null)if(this._inputMap){if(c=(0,ET.originalPositionFor)(this._inputMap,{line:r,column:i}),!c.name&&s){let u=(0,ET.originalPositionFor)(this._inputMap,s);u.name&&(n=u.name)}}else c={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,mi.maybeAddMapping)(this._map,{name:n,generated:t,source:(o=c)==null?void 0:o.source,original:c})}};Kp.default=PT});var C1=R(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.default=void 0;var w1=[];for(let e=0;e<32;e++)w1.push(" ".repeat(e*2));var _T=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r}get(){let{_map:t,_last:r}=this;this._queuedChar!==32&&this._flush();let i=r===10?(this._buf+this._str).trimRight():this._buf+this._str;if(t===null)return{code:i,decodedMap:void 0,map:null,rawMappings:void 0};let n={code:i,decodedMap:t.getDecoded(),get __mergedMap(){return this.map},get map(){let s=t.get();return n.map=s,s},set map(s){Object.defineProperty(n,"map",{value:s,writable:!0})},get rawMappings(){let s=t.getRawMappings();return n.rawMappings=s,s},set rawMappings(s){Object.defineProperty(n,"rawMappings",{value:s,writable:!0})}};return n}append(t,r){this._flush(),this._append(t,r)}appendChar(t){this._flush(),this._appendChar(t,1,!0)}queue(t){this._flush(),this._queuedChar=t}_flush(){let t=this._queuedChar;t!==0&&(this._appendChar(t,1,!0),this._queuedChar=0)}_appendChar(t,r,i){if(this._last=t,t===-1){let a=r>=64?this._indentChar.repeat(r):w1[r/2];this._str+=a}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);let n=t===32,s=this._position;if(t!==10){if(this._map){let a=this._sourcePosition;i&&a?(this._map.mark(s,a.line,a.column,n?void 0:a.identifierName,n?void 0:a.identifierNamePos,a.filename),!n&&this._canMarkIdName&&(a.identifierName=void 0,a.identifierNamePos=void 0)):this._map.mark(s)}s.column+=r}else s.line++,s.column=0}_append(t,r){let i=t.length,n=this._position,s=this._sourcePosition;this._last=-1,++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t;let a=this._map!==null;if(!r&&!a){n.column+=i;return}let{column:o,identifierName:c,identifierNamePos:u,filename:p}=s,d=s.line;(c!=null||u!=null)&&this._canMarkIdName&&(s.identifierName=void 0,s.identifierNamePos=void 0);let h=t.indexOf(`
|
|
21
|
+
`),y=0;for(a&&h!==0&&this._map.mark(n,d,o,c,u,p);h!==-1;)n.line++,n.column=0,y=h+1,y<i&&d!==void 0&&(d++,a&&this._map.mark(n,d,0,void 0,void 0,p)),h=t.indexOf(`
|
|
22
|
+
`,y);n.column+=i-y}removeLastSemicolon(){this._queuedChar===59&&(this._queuedChar=0)}getLastChar(t){if(!t)return this._last;let r=this._queuedChar;return r!==0?r:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let i=t.identifierName,n=this._sourcePosition;i!=null&&(this._canMarkIdName=!1,n.identifierName=i),r(),i!=null&&(this._canMarkIdName=!0,n.identifierName=void 0,n.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,i){this._map&&this._normalizePosition(t,r,i)}_normalizePosition(t,r,i){this._flush();let n=r[t],s=this._sourcePosition;n&&(s.line=n.line,s.column=Math.max(n.column+i,0),s.filename=r.filename)}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}};Vp.default=_T});var R1=R(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.AssignmentExpression=gne;Xe.BinaryExpression=une;Xe.ClassExpression=hne;Xe.ArrowFunctionExpression=Xe.ConditionalExpression=L1;Xe.DoExpression=tne;Xe.FunctionExpression=mne;Xe.FunctionTypeAnnotation=Hre;Xe.Identifier=xne;Xe.LogicalExpression=pne;Xe.NullableTypeAnnotation=Gre;Xe.ObjectExpression=ene;Xe.OptionalIndexedAccessType=nne;Xe.OptionalCallExpression=Xe.OptionalMemberExpression=yne;Xe.SequenceExpression=dne;Xe.TSSatisfiesExpression=Xe.TSAsExpression=ine;Xe.TSConditionalType=sne;Xe.TSConstructorType=Xe.TSFunctionType=cne;Xe.TSInferType=one;Xe.TSInstantiationExpression=lne;Xe.TSIntersectionType=ane;Xe.SpreadElement=Xe.UnaryExpression=Xe.TSTypeAssertion=j1;Xe.TSTypeOperator=IT;Xe.TSUnionType=$1;Xe.IntersectionTypeAnnotation=Xe.UnionTypeAnnotation=rne;Xe.UpdateExpression=Qre;Xe.AwaitExpression=Xe.YieldExpression=fne;var Wre=Ee(),Gt=yi(),{isMemberExpression:Jre,isOptionalMemberExpression:Xre,isYieldExpression:Zre,isStatement:Yre}=Wre,N1=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function O1(e){return e===156||e===201||e===209}var qp=(e,t,r)=>(r===21||r===22)&&t.superClass===e,Wp=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function Gre(e,t,r){return r===4}function Hre(e,t,r,i){return r===239||r===90||r===4||(i&Gt.TokenContext.arrowFlowReturnType)>0}function Qre(e,t,r){return Wp(e,t,r)||qp(e,t,r)}function D1(e){return(e&(Gt.TokenContext.expressionStatement|Gt.TokenContext.arrowBody))>0}function ene(e,t,r,i){return D1(i)}function tne(e,t,r,i){return(i&Gt.TokenContext.expressionStatement)>0&&!e.async}function kT(e,t,r,i){if(qp(e,t,r)||Wp(e,t,r)||r===238||r===145||r===8)return!0;let n;switch(r){case 10:case 107:n=N1.get(t.operator);break;case 156:case 201:n=7}if(n!==void 0){let s=i===2?7:N1.get(e.operator);if(n>s||n===s&&r===10&&(s===11?t.left===e:t.right===e)||i===1&&r===107&&(s===1&&n!==1||n===1&&s!==1))return!0}return!1}function rne(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function nne(e,t,r){return r===84&&t.objectType===e}function ine(e,t,r){return(r===6||r===7)&&t.left===e||r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:kT(e,t,r,2)}function sne(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function $1(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function ane(e,t,r){return r===211||IT(e,t,r)}function one(e,t,r){return!!(IT(e,t,r)||(r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)}function IT(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function lne(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function cne(e,t,r){return $1(e,t,r)?!0:r===219||r===161&&(t.checkType===e||t.extendsType===e)}function une(e,t,r,i){return kT(e,t,r,0)?!0:(i&Gt.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function pne(e,t,r){return kT(e,t,r,1)}function dne(e,t,r){return r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224?!1:r===21?!0:r===68?t.right===e:r===60?!0:!Yre(t)}function fne(e,t,r){return r===10||r===107||r===238||r===145||Wp(e,t,r)||r===8&&Zre(e)||r===28&&e===t.test||qp(e,t,r)||O1(r)}function hne(e,t,r,i){return(i&(Gt.TokenContext.expressionStatement|Gt.TokenContext.exportDefault))>0}function j1(e,t,r){return Wp(e,t,r)||r===10&&t.operator==="**"&&t.left===e||qp(e,t,r)}function mne(e,t,r,i){return(i&(Gt.TokenContext.expressionStatement|Gt.TokenContext.exportDefault))>0}function L1(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}return O1(r)?!0:j1(e,t,r)}function yne(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function gne(e,t,r,i){return D1(i)&&e.left.type==="ObjectPattern"?!0:L1(e,t,r)}function xne(e,t,r,i,n){var s;if(n&&n(e)!==e.name)return!1;if(r===6&&(s=e.extra)!=null&&s.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}return(i&Gt.TokenContext.forOfHead||(r===108||r===132)&&i&(Gt.TokenContext.expressionStatement|Gt.TokenContext.forInitHead|Gt.TokenContext.forInHead))&&e.name==="let"?(Jre(t,{object:e,computed:!0})||Xre(t,{object:e,computed:!0,optional:!1}))&&i&(Gt.TokenContext.expressionStatement|Gt.TokenContext.forInitHead|Gt.TokenContext.forInHead)?!0:(i&Gt.TokenContext.forOfHead)>0:r===68&&t.left===e&&e.name==="async"&&!t.await}});var AT=R(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.TaggedTemplateExpression=Sne;va.TemplateElement=bne;va.TemplateLiteral=vne;va._printTemplate=M1;function Sne(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function bne(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function M1(e,t){let r=e.quasis,i="`";for(let n=0;n<r.length-1;n++)if(i+=r[n].value.raw,this.token(i+"${",!0),this.print(t[n]),i="}",this.tokenMap){let s=this.tokenMap.findMatching(e,"}",n);s&&this._catchUpTo(s.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}function vne(e){M1.call(this,e,e.expressions)}});var Jp=R(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.LogicalExpression=at.AssignmentExpression=Jne;at.AssignmentPattern=Wne;at.AwaitExpression=Une;at.BinaryExpression=Xne;at.BindExpression=Zne;at.CallExpression=Bne;at.ConditionalExpression=Nne;at.Decorator=Rne;at.DoExpression=Ane;at.EmptyStatement=Vne;at.ExpressionStatement=qne;at.Import=zne;at.MemberExpression=Yne;at.MetaProperty=Gne;at.ModuleExpression=eie;at.NewExpression=One;at.OptionalCallExpression=Fne;at.OptionalMemberExpression=Mne;at.ParenthesizedExpression=wne;at.PrivateName=Hne;at.SequenceExpression=Dne;at.Super=jne;at.ThisExpression=$ne;at.UnaryExpression=Ine;at.UpdateExpression=Cne;at.V8IntrinsicIdentifier=Qne;at.YieldExpression=Kne;at._shouldPrintDecoratorsBeforeExport=Lne;var Tne=Ee(),Ene=yi(),{isCallExpression:Pne,isLiteral:F1,isMemberExpression:wT,isNewExpression:_ne,isPattern:kne}=Tne;function Ine(e){let{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r),this.print(e.argument)}function Ane(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function wne(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function Cne(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))}function Nne(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function One(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!Pne(t,{callee:e})&&!wT(t)&&!_ne(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function Dne(e){this.printList(e.expressions)}function $ne(){this.word("this")}function jne(){this.word("super")}function Lne(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function Rne(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function Mne(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&wT(i))throw new TypeError("Got a MemberExpression for MemberExpression property");F1(i)&&typeof i.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function Fne(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function Bne(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function zne(){this.word("import")}function Une(e){this.word("await"),this.space(),this.print(e.argument)}function Kne(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function Vne(){this.semicolon(!0)}function qne(e){this.tokenContext|=Ene.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function Wne(e){this.print(e.left),(e.left.type==="Identifier"||kne(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function Jne(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function Xne(e){this.print(e.left),this.space();let{operator:t}=e;t.charCodeAt(0)===105?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)}function Zne(e){this.print(e.object),this.token("::"),this.print(e.callee)}function Yne(e){if(this.print(e.object),!e.computed&&wT(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(F1(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function Gne(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function Hne(e){this.tokenChar(35),this.print(e.id)}function Qne(e){this.tokenChar(37),this.word(e.name)}function eie(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var z1=R(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.BreakStatement=die;jt.CatchClause=xie;jt.ContinueStatement=fie;jt.DebuggerStatement=vie;jt.DoWhileStatement=pie;jt.ForInStatement=cie;jt.ForOfStatement=uie;jt.ForStatement=oie;jt.IfStatement=aie;jt.LabeledStatement=yie;jt.ReturnStatement=hie;jt.SwitchCase=bie;jt.SwitchStatement=Sie;jt.ThrowStatement=mie;jt.TryStatement=gie;jt.VariableDeclaration=Eie;jt.VariableDeclarator=Pie;jt.WhileStatement=lie;jt.WithStatement=sie;var tie=Ee(),ss=yi(),{isFor:rie,isIfStatement:nie,isStatement:iie}=tie;function sie(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function aie(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&nie(B1(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function B1(e){let{body:t}=e;return iie(t)===!1?e:B1(t)}function oie(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=ss.TokenContext.forInitHead|ss.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=ss.TokenContext.normal,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)}function lie(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function cie(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=ss.TokenContext.forInHead|ss.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=ss.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function uie(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=ss.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function pie(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function Xp(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function die(e){this.word("break"),Xp(this,e.label)}function fie(e){this.word("continue"),Xp(this,e.label)}function hie(e){this.word("return"),Xp(this,e.argument)}function mie(e){this.word("throw"),Xp(this,e.argument)}function yie(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function gie(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function xie(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function Sie(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function bie(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function vie(){this.word("debugger"),this.semicolon()}function Tie(e){this.tokenChar(44,e),this.newline()}function Eie(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let i=!1;if(!rie(t)){for(let n of e.declarations)if(n.init){i=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,i?Tie:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function Pie(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var yl=R(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.ArrowFunctionExpression=Cie;Kr.FunctionDeclaration=Kr.FunctionExpression=wie;Kr._functionHead=V1;Kr._methodHead=Aie;Kr._param=K1;Kr._parameters=U1;Kr._params=Ta;Kr._predicate=CT;Kr._shouldPrintArrowParamsParens=q1;var _ie=Ee(),kie=yi(),{isIdentifier:Iie}=_ie;function Ta(e,t,r,i){if(this.print(e.typeParameters),r!==void 0||i!==void 0){let n=Nie.call(this,r,i);n&&this.sourceIdentifierName(n.name,n.pos)}this.tokenChar(40),U1.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function U1(e,t){let r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),n=e.length;for(let s=0;s<n;s++)K1.call(this,e[s]),(i||s<n-1)&&(this.tokenChar(44,s),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function K1(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function Aie(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._buf._map?Ta.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key):Ta.call(this,e,!1)}function CT(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function V1(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?Ta.call(this,e,!1,e.id,t):Ta.call(this,e,!1),r&&CT.call(this,e)}function wie(e,t){V1.call(this,e,t,!0),this.space(),this.print(e.body)}function Cie(e,t){e.async&&(this.word("async",!0),this.space()),q1.call(this,e)?Ta.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),CT.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=kie.TokenContext.arrowBody,this.print(e.body)}function q1(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let i=e.params[0];if(!Iie(i)||i.typeAnnotation||i.optional||(t=i.leadingComments)!=null&&t.length||(r=i.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let n=this.tokenMap.findMatching(e,"=>");return n?.loc==null?!0:n.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function Nie(e,t){let r=e;if(!r&&t){let c=t.type;c==="VariableDeclarator"?r=t.id:c==="AssignmentExpression"||c==="AssignmentPattern"?r=t.left:c==="ObjectProperty"||c==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(c==="ClassPrivateProperty"||c==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let i;if(r.type==="Identifier"){var n,s;i={pos:(n=r.loc)==null?void 0:n.start,name:((s=r.loc)==null?void 0:s.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var OT=R(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.TSAnyKeyword=Wie;fe.TSArrayType=dse;fe.TSAsExpression=Nse;fe.TSBigIntKeyword=Jie;fe.TSBooleanKeyword=Gie;fe.TSCallSignatureDeclaration=zie;fe.TSInterfaceHeritage=fe.TSClassImplements=Ise;fe.TSConditionalType=Sse;fe.TSConstructSignatureDeclaration=Uie;fe.TSConstructorType=ose;fe.TSDeclareFunction=Mie;fe.TSDeclareMethod=Fie;fe.TSEnumBody=G1;fe.TSEnumDeclaration=jse;fe.TSEnumMember=Lse;fe.TSExportAssignment=Kse;fe.TSExternalModuleReference=zse;fe.TSFunctionType=ase;fe.TSImportEqualsDeclaration=Bse;fe.TSImportType=Fse;fe.TSIndexSignature=qie;fe.TSIndexedAccessType=Ese;fe.TSInferType=bse;fe.TSInstantiationExpression=$se;fe.TSInterfaceBody=wse;fe.TSInterfaceDeclaration=Ase;fe.TSIntersectionType=xse;fe.TSIntrinsicKeyword=ise;fe.TSLiteralType=kse;fe.TSMappedType=Pse;fe.TSMethodSignature=Vie;fe.TSModuleBlock=Mse;fe.TSModuleDeclaration=Rse;fe.TSNamedTupleMember=yse;fe.TSNamespaceExportDeclaration=Vse;fe.TSNeverKeyword=nse;fe.TSNonNullExpression=Use;fe.TSNullKeyword=rse;fe.TSNumberKeyword=Zie;fe.TSObjectKeyword=Yie;fe.TSOptionalType=hse;fe.TSParameterProperty=Rie;fe.TSParenthesizedType=vse;fe.TSPropertySignature=Kie;fe.TSQualifiedName=Bie;fe.TSRestType=mse;fe.TSSatisfiesExpression=Ose;fe.TSStringKeyword=Hie;fe.TSSymbolKeyword=Qie;fe.TSTemplateLiteralType=_se;fe.TSThisType=sse;fe.TSTupleType=fse;fe.TSTypeAliasDeclaration=Cse;fe.TSTypeAnnotation=$ie;fe.TSTypeAssertion=Dse;fe.TSTypeLiteral=pse;fe.TSTypeOperator=Tse;fe.TSTypeParameter=Lie;fe.TSTypeParameterDeclaration=fe.TSTypeParameterInstantiation=jie;fe.TSTypePredicate=cse;fe.TSTypeQuery=use;fe.TSTypeReference=lse;fe.TSUndefinedKeyword=tse;fe.TSUnionType=gse;fe.TSUnknownKeyword=Xie;fe.TSVoidKeyword=ese;fe._tsPrintClassMemberModifiers=qse;var gl=yl(),Oie=DT(),Die=AT();function $ie(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function jie(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;this.tokenMap&&e.start!=null&&e.end!=null&&(r&&(r=!!this.tokenMap.find(e,i=>this.tokenMap.matchesOriginal(i,","))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)}function Lie(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function Rie(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),gl._param.call(this,e.parameter)}function Mie(e,t){e.declare&&(this.word("declare"),this.space()),gl._functionHead.call(this,e,t,!1),this.semicolon()}function Fie(e){Oie._classMethodHead.call(this,e),this.semicolon()}function Bie(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function zie(e){NT.call(this,e),xl(this,e)}function xl(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon()}function Uie(e){this.word("new"),this.space(),NT.call(this,e),xl(this,e)}function Kie(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),X1.call(this,e),this.print(e.typeAnnotation),xl(this,e)}function X1(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function Vie(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),X1.call(this,e),NT.call(this,e),xl(this,e)}function qie(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),gl._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),xl(this,e)}function Wie(){this.word("any")}function Jie(){this.word("bigint")}function Xie(){this.word("unknown")}function Zie(){this.word("number")}function Yie(){this.word("object")}function Gie(){this.word("boolean")}function Hie(){this.word("string")}function Qie(){this.word("symbol")}function ese(){this.word("void")}function tse(){this.word("undefined")}function rse(){this.word("null")}function nse(){this.word("never")}function ise(){this.word("intrinsic")}function sse(){this.word("this")}function ase(e){Z1.call(this,e)}function ose(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),Z1.call(this,e)}function Z1(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),gl._parameters.call(this,r,41),this.space();let i=e.typeAnnotation;this.print(i)}function lse(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function cse(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function use(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;t&&this.print(t)}function pse(e){Zp(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function dse(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function fse(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function hse(e){this.print(e.typeAnnotation),this.tokenChar(63)}function mse(e){this.token("..."),this.print(e.typeAnnotation)}function yse(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function gse(e){Y1(this,e,"|")}function xse(e){Y1(this,e,"&")}function Y1(e,t,r){var i;let n=0;(i=e.tokenMap)!=null&&i.startMatches(t,r)&&(n=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(s){this.space(),this.token(r,void 0,s+n),this.space()})}function Sse(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function bse(e){this.word("infer"),this.print(e.typeParameter)}function vse(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function Tse(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function Ese(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function Pse(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:n}=e;this.tokenChar(123);let s=this.enterDelimited();this.space(),i&&(W1(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),r&&(W1(this,r),this.tokenChar(63)),n&&(this.tokenChar(58),this.space(),this.print(n,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=s,this.tokenChar(125)}function W1(e,t){t!==!0&&e.token(t)}function _se(e){Die._printTemplate.call(this,e,e.types)}function kse(e){this.print(e.literal)}function Ise(e){this.print(e.expression),this.print(e.typeArguments)}function Ase(e){let{declare:t,id:r,typeParameters:i,extends:n,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),n!=null&&n.length&&(this.space(),this.word("extends"),this.space(),this.printList(n)),this.space(),this.print(s)}function wse(e){Zp(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function Cse(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:n}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()}function Nse(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function Ose(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function Dse(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function $se(e){this.print(e.expression),this.print(e.typeParameters)}function jse(e){let{declare:t,const:r,id:i}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),G1.call(this,e)}function G1(e){Zp(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function Lse(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))}function Rse(e){let{declare:t,id:r,kind:i}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(i??(r.type==="Identifier"?"namespace":"module")),this.space()),this.print(r),!e.body){this.semicolon();return}let n=e.body;for(;n.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(n.id),n=n.body;this.space(),this.print(n)}function Mse(e){Zp(this,e,()=>this.printSequence(e.body,!0,!0))}function Fse(e){let{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.argument),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let i=e.typeParameters;i&&this.print(i)}function Bse(e){let{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function zse(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function Use(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function Kse(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function Vse(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function NT(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),gl._parameters.call(this,r,41);let i=e.typeAnnotation;this.print(i)}function qse(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";J1(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),J1(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function Zp(e,t,r){e.token("{");let i=e.enterDelimited();r(),e._noLineTerminatorAfterNode=i,e.rightBrace(t)}function J1(e,t,r){var i;let n=new Set;for(let s of r)s&&n.add(s);(i=e.tokenMap)==null||i.find(t,s=>n.has(s.value)?(e.token(s.value),e.space(),n.delete(s.value),n.size===0):!1);for(let s of n)e.word(s),e.space()}});var $T=R(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.ExportAllDeclaration=sae;mr.ExportDefaultDeclaration=oae;mr.ExportDefaultSpecifier=rae;mr.ExportNamedDeclaration=aae;mr.ExportNamespaceSpecifier=iae;mr.ExportSpecifier=nae;mr.ImportAttribute=cae;mr.ImportDeclaration=lae;mr.ImportDefaultSpecifier=tae;mr.ImportExpression=pae;mr.ImportNamespaceSpecifier=uae;mr.ImportSpecifier=eae;mr._printAttributes=Yp;var Wse=Ee(),Jse=yi(),Xse=Jp(),{isClassDeclaration:Zse,isExportDefaultSpecifier:Yse,isExportNamespaceSpecifier:Gse,isImportDefaultSpecifier:Hse,isImportNamespaceSpecifier:Qse,isStatement:Q1}=Wse;function eae(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function tae(e){this.print(e.local)}function rae(e){this.print(e.exported)}function nae(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function iae(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var H1=!1;function Yp(e,t){var r;let{attributes:i}=e;var{assertions:n}=e;let{importAttributesKeyword:s}=this.format;i&&!s&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!H1&&(H1=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=s==="assert"||!s&&n;if(this.word(a?"assert":"with"),this.space(),!a&&(s==="with-legacy"||!s&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(i||n);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(i||n,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function sae(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Yp.call(this,e,!1)):this.print(e.source),this.semicolon()}function eN(e,t){Zse(t.declaration)&&Xse._shouldPrintDecoratorsBeforeExport.call(e,t)&&e.printJoin(t.declaration.decorators)}function aae(e){if(eN(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),Q1(i)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),n=!1;for(;;){let a=i[0];if(Yse(a)||Gse(a))n=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}let s=!1;if((i.length||!i.length&&!n)&&(s=!0,this.tokenChar(123),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Yp.call(this,e,s)):this.print(e.source)}this.semicolon()}}function oae(e){eN(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=Jse.TokenContext.exportDefault;let t=e.declaration;this.print(t),Q1(t)||this.semicolon()}function lae(e){var t,r;this.word("import"),this.space();let i=e.importKind==="type"||e.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let n=e.specifiers.slice(0),s=!!n.length;for(;s;){let o=n[0];if(Hse(o)||Qse(o))this.print(n.shift()),n.length&&(this.tokenChar(44),this.space());else break}let a=!1;n.length?(a=!0,this.tokenChar(123),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!s&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(s||i)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),Yp.call(this,e,a)):this.print(e.source),this.semicolon()}function cae(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function uae(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function pae(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var iN=R((WOe,nN)=>{"use strict";var tN={},dae=tN.hasOwnProperty,rN=(e,t)=>{for(let r in e)dae.call(e,r)&&t(r,e[r])},fae=(e,t)=>(t&&rN(t,(r,i)=>{e[r]=i}),e),hae=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i])},Gp=e=>"\\u"+("0000"+e).slice(-4),Sl=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},bl=tN.toString,mae=Array.isArray,yae=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),gae=e=>bl.call(e)=="[object Object]",xae=e=>typeof e=="string"||bl.call(e)=="[object String]",Sae=e=>typeof e=="number"||bl.call(e)=="[object Number]",jT=e=>typeof e=="bigint",bae=e=>typeof e=="function",vae=e=>bl.call(e)=="[object Map]",Tae=e=>bl.call(e)=="[object Set]",Eae={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},Pae=/[\\\b\f\n\r\t]/,_ae=/[0-9]/,kae=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Iae=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,Aae=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,gi=(e,t)=>{let r=()=>{u=c,++t.indentLevel,c=t.indent.repeat(t.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},n=t&&t.json;n&&(i.quotes="double",i.wrap=!0),t=fae(i,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let s=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,c=t.indent.repeat(t.indentLevel),u="",p=t.__inline1__,d=t.__inline2__,h=a?"":`
|
|
23
|
+
`,y,T=!0,w=t.numbers=="binary",k=t.numbers=="octal",C=t.numbers=="decimal",D=t.numbers=="hexadecimal";if(n&&e&&bae(e.toJSON)&&(e=e.toJSON()),!xae(e)){if(vae(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+gi(Array.from(e),t)+")");if(Tae(e))return e.size==0?"new Set()":"new Set("+gi(Array.from(e),t)+")";if(yae(e))return e.length==0?"Buffer.from([])":"Buffer.from("+gi(Array.from(e),t)+")";if(mae(e))return y=[],t.wrap=!0,p&&(t.__inline1__=!1,t.__inline2__=!0),d||r(),hae(e,z=>{T=!1,d&&(t.__inline2__=!1),y.push((a||d?"":c)+gi(z,t))}),T?"[]":d?"["+y.join(", ")+"]":"["+h+y.join(","+h)+h+(a?"":u)+"]";if(Sae(e)||jT(e)){if(n)return JSON.stringify(Number(e));let z;if(C)z=String(e);else if(D){let q=e.toString(16);o||(q=q.toUpperCase()),z="0x"+q}else w?z="0b"+e.toString(2):k&&(z="0o"+e.toString(8));return jT(e)?z+"n":z}else return jT(e)?n?JSON.stringify(Number(e)):e+"n":gae(e)?(y=[],t.wrap=!0,r(),rN(e,(z,q)=>{T=!1,y.push((a?"":c)+gi(z,t)+":"+(a?"":" ")+gi(q,t))}),T?"{}":"{"+h+y.join(","+h)+h+(a?"":u)+"}"):n?JSON.stringify(e)||"null":String(e)}let U=t.escapeEverything?Iae:Aae;return y=e.replace(U,(z,q,ye,we,Pe,Qe)=>{if(q){if(t.minimal)return q;let wt=q.charCodeAt(0),br=q.charCodeAt(1);if(t.es6){let $=(wt-55296)*1024+br-56320+65536;return"\\u{"+Sl($,o)+"}"}return Gp(Sl(wt,o))+Gp(Sl(br,o))}if(ye)return Gp(Sl(ye.charCodeAt(0),o));if(z=="\0"&&!n&&!_ae.test(Qe.charAt(Pe+1)))return"\\0";if(we)return we==s||t.escapeEverything?"\\"+we:we;if(Pae.test(z))return Eae[z];if(t.minimal&&!kae.test(z))return z;let yt=Sl(z.charCodeAt(0),o);return n||yt.length>2?Gp(yt):"\\x"+("00"+yt).slice(-2)}),s=="`"&&(y=y.replace(/\$\{/g,"\\${")),t.isScriptContext&&(y=y.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,n?"\\u003C!--":"\\x3C!--")),t.wrap&&(y=s+y+s),y};gi.version="3.0.2";nN.exports=gi});var Qp=R(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.ArgumentPlaceholder=$ae;It.ArrayPattern=It.ArrayExpression=Fae;It.BigIntLiteral=qae;It.BooleanLiteral=zae;It.Identifier=Dae;It.NullLiteral=Uae;It.NumericLiteral=Kae;It.ObjectPattern=It.ObjectExpression=Lae;It.ObjectMethod=Rae;It.ObjectProperty=Mae;It.PipelineBareFunction=Xae;It.PipelinePrimaryTopicReference=Zae;It.PipelineTopicExpression=Jae;It.RegExpLiteral=Bae;It.SpreadElement=It.RestElement=jae;It.StringLiteral=Vae;It.TopicReference=Wae;It.VoidPattern=Yae;It._getRawIdentifier=Oae;var wae=Ee(),aN=iN(),Cae=yl(),{isAssignmentPattern:Nae,isIdentifier:LT}=wae,Hp="";function Oae(e){let{name:t}=e,r=this.tokenMap.find(e,i=>i.value===t);return r?(Hp=this._originalCode.slice(r.start,r.end),Hp):Hp=e.name}function Dae(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?Hp:e.name)}function $ae(){this.tokenChar(63)}function jae(e){this.token("..."),this.print(e.argument)}function Lae(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function Rae(e){this.printJoin(e.decorators),Cae._methodHead.call(this,e),this.space(),this.print(e.body)}function Mae(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(Nae(e.value)&<(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&<(e.key)&<(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function Fae(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterDelimited();for(let n=0;n<t.length;n++){let s=t[n];s?(n>0&&this.space(),this.print(s,void 0,!0),(n<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,n)):this.tokenChar(44,n)}this._noLineTerminatorAfterNode=i,this.tokenChar(93)}function Bae(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function zae(e){this.word(e.value?"true":"false")}function Uae(){this.word("null")}function Kae(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,n=i+"";r.numbers?this.number(aN(i,r),i):t==null?this.number(n,i):this.format.minified?this.number(t.length<n.length?t:n,i):this.number(t,i)}function Vae(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=aN(e.value,this.format.jsescOption);this.token(r)}function qae(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var sN=new Set(["^^","@@","^","%","#"]);function Wae(){let{topicToken:e}=this.format;if(sN.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(sN,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function Jae(e){this.print(e.expression)}function Xae(e){this.print(e.callee)}function Zae(){this.tokenChar(35)}function Yae(){this.word("void")}});var FT=R(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.AnyTypeAnnotation=toe;he.ArrayTypeAnnotation=roe;he.BooleanLiteralTypeAnnotation=ioe;he.BooleanTypeAnnotation=noe;he.DeclareClass=aoe;he.DeclareExportAllDeclaration=goe;he.DeclareExportDeclaration=yoe;he.DeclareFunction=ooe;he.DeclareInterface=uoe;he.DeclareModule=poe;he.DeclareModuleExports=doe;he.DeclareOpaqueType=hoe;he.DeclareTypeAlias=foe;he.DeclareVariable=moe;he.DeclaredPredicate=coe;he.EmptyTypeAnnotation=Loe;he.EnumBooleanBody=Soe;he.EnumBooleanMember=Poe;he.EnumDeclaration=xoe;he.EnumDefaultedMember=Eoe;he.EnumNumberBody=boe;he.EnumNumberMember=_oe;he.EnumStringBody=voe;he.EnumStringMember=koe;he.EnumSymbolBody=Toe;he.ExistsTypeAnnotation=Aoe;he.FunctionTypeAnnotation=woe;he.FunctionTypeParam=Coe;he.IndexedAccessType=sle;he.InferredPredicate=loe;he.InterfaceDeclaration=lN;he.GenericTypeAnnotation=he.ClassImplements=he.InterfaceExtends=Noe;he.InterfaceTypeAnnotation=Doe;he.IntersectionTypeAnnotation=$oe;he.MixedTypeAnnotation=joe;he.NullLiteralTypeAnnotation=soe;he.NullableTypeAnnotation=Roe;Object.defineProperty(he,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return oN.NumericLiteral}});he.NumberTypeAnnotation=Moe;he.ObjectTypeAnnotation=Woe;he.ObjectTypeCallProperty=Xoe;he.ObjectTypeIndexer=Zoe;he.ObjectTypeInternalSlot=Joe;he.ObjectTypeProperty=Yoe;he.ObjectTypeSpreadProperty=Goe;he.OpaqueType=uN;he.OptionalIndexedAccessType=ale;he.QualifiedTypeIdentifier=Hoe;Object.defineProperty(he,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return oN.StringLiteral}});he.StringTypeAnnotation=Foe;he.SymbolTypeAnnotation=Qoe;he.ThisTypeAnnotation=Boe;he.TupleTypeAnnotation=zoe;he.TypeAlias=cN;he.TypeAnnotation=Koe;he.TypeCastExpression=rle;he.TypeParameter=qoe;he.TypeParameterDeclaration=he.TypeParameterInstantiation=Voe;he.TypeofTypeAnnotation=Uoe;he.UnionTypeAnnotation=tle;he.Variance=nle;he.VoidTypeAnnotation=ile;he._interfaceish=MT;he._variance=nd;var Gae=Ee(),Hae=$T(),Qae=yi(),oN=Qp(),{isDeclareExportDeclaration:ed,isStatement:eoe}=Gae;function toe(){this.word("any")}function roe(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function noe(){this.word("boolean")}function ioe(e){this.word(e.value?"true":"false")}function soe(){this.word("null")}function aoe(e,t){ed(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),MT.call(this,e)}function ooe(e,t){ed(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function loe(){this.tokenChar(37),this.word("checks")}function coe(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function uoe(e){this.word("declare"),this.space(),lN.call(this,e)}function poe(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function doe(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function foe(e){this.word("declare"),this.space(),cN.call(this,e)}function hoe(e,t){ed(t)||(this.word("declare"),this.space()),uN.call(this,e)}function moe(e,t){ed(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function yoe(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),Ioe.call(this,e)}function goe(e){this.word("declare"),this.space(),Hae.ExportAllDeclaration.call(this,e)}function xoe(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function td(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function rd(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function Soe(e){let{explicitType:t}=e;td(this,"boolean",t),rd(this,e)}function boe(e){let{explicitType:t}=e;td(this,"number",t),rd(this,e)}function voe(e){let{explicitType:t}=e;td(this,"string",t),rd(this,e)}function Toe(e){td(this,"symbol",!0),rd(this,e)}function Eoe(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function RT(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function Poe(e){RT(this,e)}function _oe(e){RT(this,e)}function koe(e){RT(this,e)}function Ioe(e){if(e.declaration){let t=e.declaration;this.print(t),eoe(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function Aoe(){this.tokenChar(42)}function woe(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function Coe(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function Noe(e){this.print(e.id),this.print(e.typeParameters,!0)}function MT(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function nd(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function lN(e){this.word("interface"),this.space(),MT.call(this,e)}function Ooe(e){this.space(),this.token("&",!1,e),this.space()}function Doe(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function $oe(e){this.printJoin(e.types,void 0,void 0,Ooe)}function joe(){this.word("mixed")}function Loe(){this.word("empty")}function Roe(e){this.tokenChar(63),this.print(e.typeAnnotation)}function Moe(){this.word("number")}function Foe(){this.word("string")}function Boe(){this.word("this")}function zoe(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function Uoe(e){this.word("typeof"),this.space(),this.print(e.argument)}function cN(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function Koe(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=Qae.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function Voe(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function qoe(e){nd.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function uN(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function Woe(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function Joe(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function Xoe(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function Zoe(e){e.static&&(this.word("static"),this.space()),nd.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function Yoe(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),nd.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function Goe(e){this.token("..."),this.print(e.argument)}function Hoe(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function Qoe(){this.word("symbol")}function ele(e){this.space(),this.token("|",!1,e),this.space()}function tle(e){this.printJoin(e.types,void 0,void 0,ele)}function rle(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function nle(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function ile(){this.word("void")}function sle(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function ale(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var DT=R(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.ClassAccessorProperty=yle;Vr.ClassBody=fle;Vr.ClassExpression=Vr.ClassDeclaration=dle;Vr.ClassMethod=xle;Vr.ClassPrivateMethod=Sle;Vr.ClassPrivateProperty=gle;Vr.ClassProperty=mle;Vr.StaticBlock=ble;Vr._classMethodHead=BT;var ole=Ee(),lle=Jp(),id=OT(),pN=FT(),cle=yl(),{isExportDefaultDeclaration:ule,isExportNamedDeclaration:ple}=ole;function dle(e,t){(!(ule(t)||ple(t))||!lle._shouldPrintDecoratorsBeforeExport.call(this,t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function fle(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=hle(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}}function hle(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let i=1,n=0,s=0,a=()=>{for(;s<t.body.length&&t.body[s].start==null;)s++};return a(),o=>{s<=o&&(s=o+1,a());let c=s===t.body.length?t.end:t.body[s].start,u;for(;i<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[i]],";")&&u.start<c;)e.tokenChar(59,n++),i++}}function mle(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}id._tsPrintClassMemberModifiers.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(pN._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function yle(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),id._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(pN._variance.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function gle(e){this.printJoin(e.decorators),id._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function xle(e){BT.call(this,e),this.space(),this.print(e.body)}function Sle(e){BT.call(this,e),this.space(),this.print(e.body)}function BT(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r)}id._tsPrintClassMemberModifiers.call(this,e),cle._methodHead.call(this,e)}function ble(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))}});var dN=R(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.BlockStatement=Ele;Fn.Directive=Ple;Fn.DirectiveLiteral=Ile;Fn.File=vle;Fn.InterpreterDirective=Ale;Fn.Placeholder=wle;Fn.Program=Tle;function vle(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function Tle(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let n=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,n),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(n)}this.printSequence(e.body)}function Ele(e){var t;this.tokenChar(123);let r=this.enterDelimited(),i=(t=e.directives)==null?void 0:t.length;if(i){var n;let s=e.body.length?2:1;this.printSequence(e.directives,!0,!0,s),(n=e.directives[i-1].trailingComments)!=null&&n.length||this.newline(s)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function Ple(e){this.print(e.value),this.semicolon()}var _le=/(?:^|[^\\])(?:\\\\)*'/,kle=/(?:^|[^\\])(?:\\\\)*"/;function Ile(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!kle.test(r))this.token(`"${r}"`);else if(!_le.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function Ale(e){this.token(`#!${e.value}`),this._newline()}function wle(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var fN=R(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.JSXAttribute=Cle;Ht.JSXClosingElement=zle;Ht.JSXClosingFragment=qle;Ht.JSXElement=Mle;Ht.JSXEmptyExpression=Ule;Ht.JSXExpressionContainer=jle;Ht.JSXFragment=Kle;Ht.JSXIdentifier=Nle;Ht.JSXMemberExpression=Dle;Ht.JSXNamespacedName=Ole;Ht.JSXOpeningElement=Ble;Ht.JSXOpeningFragment=Vle;Ht.JSXSpreadAttribute=$le;Ht.JSXSpreadChild=Lle;Ht.JSXText=Rle;function Cle(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function Nle(e){this.word(e.name)}function Ole(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function Dle(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function $le(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function jle(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function Lle(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function Rle(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function Mle(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function Fle(){this.space()}function Ble(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,Fle)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)}function zle(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function Ule(){this.printInnerComments()}function Kle(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function Vle(){this.tokenChar(60),this.tokenChar(62)}function qle(){this.token("</"),this.tokenChar(62)}});var hN=R(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var zT=AT();Object.keys(zT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===zT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return zT[e]}})});var UT=Jp();Object.keys(UT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===UT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return UT[e]}})});var KT=z1();Object.keys(KT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===KT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return KT[e]}})});var VT=DT();Object.keys(VT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===VT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return VT[e]}})});var qT=yl();Object.keys(qT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===qT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return qT[e]}})});var WT=$T();Object.keys(WT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===WT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return WT[e]}})});var JT=Qp();Object.keys(JT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===JT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return JT[e]}})});var XT=FT();Object.keys(XT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===XT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return XT[e]}})});var ZT=dN();Object.keys(ZT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===ZT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return ZT[e]}})});var YT=fN();Object.keys(YT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===YT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return YT[e]}})});var GT=OT();Object.keys(GT).forEach(function(e){e==="default"||e==="__esModule"||e in Ye&&Ye[e]===GT[e]||Object.defineProperty(Ye,e,{enumerable:!0,get:function(){return GT[e]}})})});var mN=R(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.DecimalLiteral=Xle;as.Noop=Wle;as.RecordExpression=Zle;as.TSExpressionWithTypeArguments=Jle;as.TupleExpression=Yle;function Wle(){}function Jle(e){this.print(e.expression),this.print(e.typeParameters)}function Xle(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function Zle(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(i),!0,!0),this.space()),this.token(i)}function Yle(e){let t=e.elements,r=t.length,i,n;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",n="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",n="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let s=0;s<t.length;s++){let a=t[s];a&&(s>0&&this.space(),this.print(a),(s<r-1||this.shouldPrintTrailingComma(n))&&this.token(",",!1,s))}this.token(n)}});var HT=R(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.generatorInfosMap=void 0;var yN=hN(),gN=mN(),xN=sd.generatorInfosMap=new Map,SN=0;for(let e of Object.keys(yN).sort())e.startsWith("_")||xN.set(e,[yN[e],SN++,void 0]);for(let e of Object.keys(gN))xN.set(e,[gN[e],SN++,void 0])});var yi=R(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.TokenContext=void 0;Ea.isLastChild=ece;Ea.parentNeedsParens=Qle;var bN=R1(),Gle=Ee(),vN=HT(),{VISITOR_KEYS:Hle}=Gle,tDe=Ea.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys(bN)){let t=bN[e];vN.generatorInfosMap.has(e)&&(vN.generatorInfosMap.get(e)[2]=t)}function TN(e){switch(e.type){case"CallExpression":return!0;case"MemberExpression":return TN(e.object)}return!1}function Qle(e,t,r){switch(r){case 112:if(t.callee===e&&TN(e))return!0;break;case 42:return!QT(e)&&!(e.type==="CallExpression"&&QT(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function QT(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&QT(e.object);default:return!1}}function ece(e,t){let r=Hle[e.type];for(let i=r.length-1;i>=0;i--){let n=e[r[i]];if(n===t)return!0;if(Array.isArray(n)){let s=n.length-1;for(;s>=0&&n[s]===null;)s--;return s>=0&&n[s]===t}else if(n)return!1}return!1}});var EN=R(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.TokenMap=void 0;var tce=Ee(),{traverseFast:rce,VISITOR_KEYS:nce}=tce,eE=class{constructor(t,r,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=i,rce(t,n=>{let s=this._getTokensIndexesOfNode(n);s.length>0&&this._nodesToTokenIndexes.set(n,s)}),this._tokensCache.clear()}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let n=0;n<i.length;n++){let s=i[n],a=this._tokens[s];if(r(a,s))return a}return null}findLastIndex(t,r){let i=this._nodesToTokenIndexes.get(t);if(i)for(let n=i.length-1;n>=0;n--){let s=i[n],a=this._tokens[s];if(r(a,s))return s}return-1}findMatching(t,r,i=0){let n=this._nodesToTokenIndexes.get(t);if(n){typeof r=="number"&&(r=String.fromCharCode(r));let s=0,a=i;if(a>1){let o=this._nodesOccurrencesCountCache.get(t);o?.test===r&&o.count<a&&(s=o.i+1,i-=o.count+1)}for(;s<n.length;s++){let o=this._tokens[n[s]];if(this.matchesOriginal(o,r)){if(i===0)return a>0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:a,i:s}),o;i--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let n=this._tokens[i[0]];return n.start!==t.start?!1:this.matchesOriginal(n,r)}endMatches(t,r){let i=this._nodesToTokenIndexes.get(t);if(!i)return!1;let n=this._tokens[i[i.length-1]];return n.end!==t.end?!1:this.matchesOriginal(n,r)}_getTokensIndexesOfNode(t){var r;if(t.start==null||t.end==null)return[];let{first:i,last:n}=this._findTokensOfNode(t,0,this._tokens.length-1),s=i,a=ice(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&((r=t.declaration)==null?void 0:r.type)==="ClassDeclaration"&&a.next();let o=[];for(let c of a){if(c==null||c.start==null||c.end==null)continue;let u=this._findTokensOfNode(c,s,n),p=u.first;for(let d=s;d<p;d++)o.push(d);s=u.last+1}for(let c=s;c<=n;c++)o.push(c);return o}_findTokensOfNode(t,r,i){let n=this._tokensCache.get(t);if(n)return n;let s=this._findFirstTokenOfNode(t.start,r,i),a=this._findLastTokenOfNode(t.end,s,i);return this._tokensCache.set(t,{first:s,last:a}),{first:s,last:a}}_findFirstTokenOfNode(t,r,i){for(;r<=i;){let n=i+r>>1;if(t<this._tokens[n].start)i=n-1;else if(t>this._tokens[n].start)r=n+1;else return n}return r}_findLastTokenOfNode(t,r,i){for(;r<=i;){let n=i+r>>1;if(t<this._tokens[n].end)i=n-1;else if(t>this._tokens[n].end)r=n+1;else return n}return i}};ad.TokenMap=eE;function*ice(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=nce[e.type];for(let r of t){let i=e[r];i&&(Array.isArray(i)?yield*i:yield i)}}});var kN=R(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.default=void 0;var sce=C1(),xi=yi(),ace=HT(),oce=Ee(),lce=EN(),cce=Qp(),{isExpression:uce,isFunction:pce,isStatement:dce,isClassBody:fce,isTSInterfaceBody:hce,isTSEnumMember:mce}=oce,yce=/e/i,gce=/\.0+$/,_N=/[\n\r\u2028\u2029]/,xce=/[\n\r\u2028\u2029]|\*\//;function PN(e){return e.type==="CommentLine"||_N.test(e.value)}var tE=class{constructor(t,r,i=null,n=null){this.tokenContext=xi.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=t,this._tokens=i,this._originalCode=n,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap||null,this._buf=new sce.default(r,t.indent.style[0]);let{preserveFormat:s,compact:a,concise:o,retainLines:c,retainFunctionParens:u}=t;s&&(this._flags|=1),a&&(this._flags|=2),o&&(this._flags|=4),c&&(this._flags|=8),u&&(this._flags|=16),(t.auxiliaryCommentBefore||t.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let t=this._noLineTerminatorAfterNode;return t!==null&&(this._noLineTerminatorAfterNode=null),t}generate(t){return this.format.preserveFormat&&(this.tokenMap=new lce.TokenMap(t,this._tokens,this._originalCode),this._boundGetRawIdentifier=cce._getRawIdentifier.bind(this)),this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(t=this._flags){t&7||(this._indent+=this._indentRepeat)}dedent(t=this._flags){t&7||(this._indent-=this._indentRepeat)}semicolon(t=!1){let r=this._flags;if(r&32&&this._maybeAddAuxComment(),r&1){let i=this._currentNode;if(i.start!=null&&i.end!=null){if(!this.tokenMap.endMatches(i,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let n=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[n[n.length-1]].loc.start)}}t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!(this._flags&3))if(t)this._space();else{let r=this.getLastChar(!0);r!==0&&r!==32&&r!==10&&this._space()}}word(t,r=!1){this.tokenContext&=xi.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t);let n=this.getLastChar();(n===-2||n===-3||n===47&&t.charCodeAt(0)===47)&&this._space(),this._append(t,!1),this.setLastChar(-3),this._noLineTerminator=r}number(t,r){function i(n){if(n.length>2&&n.charCodeAt(0)===48){let s=n.charCodeAt(1);return s===98||s===111||s===120}return!1}this.word(t),Number.isInteger(r)&&!i(t)&&!yce.test(t)&&!gce.test(t)&&t.charCodeAt(t.length-1)!==46&&this.setLastChar(-2)}token(t,r=!1,i=0,n=!1){this.tokenContext&=xi.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,i);let s=this._flags;if(s&32&&this._maybeAddAuxComment(),s&1&&this._catchUpToCurrentToken(t,i),n){let a=t.charCodeAt(0);((a===45&&t==="--"||a===61)&&this.getLastChar()===33||a===43&&this.getLastChar()===43||a===45&&this.getLastChar()===45||a===46&&this.getLastChar()===-2)&&this._space()}this._append(t,r),this._noLineTerminator=!1}tokenChar(t,r=0){this.tokenContext&=xi.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(t,r);let i=this._flags;i&32&&this._maybeAddAuxComment(),i&1&&this._catchUpToCurrentToken(t,r),(t===43&&this.getLastChar()===43||t===45&&this.getLastChar()===45||t===46&&this.getLastChar()===-2)&&this._space(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r=this._flags){if(!(t<=0)&&!(r&10)){if(r&4){this.space();return}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar(!0)===t}getLastChar(t){return this._buf.getLastChar(t)}setLastChar(t){this._buf._last=t}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){!r||this.format.preserveFormat||(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._buf._queuedChar===32&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(t,r=0){let i=this.tokenMap.findMatching(this._currentNode,t,r);i&&this._catchUpTo(i.loc.start),this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(t,r){this._maybeIndent(),this._buf.append(t,r)}_appendChar(t,r){r||this._maybeIndent(),this._buf.appendChar(t)}_queue(t){this._buf.queue(t),this.setLastChar(-1)}_maybeIndent(){let t=this._shouldIndent();t>0&&this._buf._appendChar(-1,t,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){let i=this._flags;if((i&1)===0){i&8&&r!=null&&r[t]&&this.catchUp(r[t].line);return}let n=r?.[t];n!=null&&this._catchUpTo(n)}_catchUpTo({line:t,column:r,index:i}){let n=t-this._buf.getCurrentLine();if(n>0&&this._noLineTerminator)return;for(let a=0;a<n;a++)this._newline();let s=n>0?r:r-this._buf.getCurrentColumn();if(s>0){let a=this._originalCode?this._originalCode.slice(i-s,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(s);this._append(a,!1),this.setLastChar(32)}}printTerminatorless(t){this._noLineTerminator=!0,this.print(t)}print(t,r=!1,i=!1,n){var s,a;if(!t)return;this._innerCommentsState=0;let{type:o,loc:c,extra:u}=t,p=this._flags,d=!1;t._compact&&(this._flags|=4,d=!0);let h=ace.generatorInfosMap.get(o);if(h===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let[y,T,w]=h,k=this._currentNode,C=this._currentTypeId;this._currentNode=t,this._currentTypeId=T,p&1&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);let D;p&32&&(D=this._insideAux,this._insideAux=c==null,this._maybeAddAuxComment(this._insideAux&&!D));let U=0;i&&(U=this.tokenContext,U&xi.TokenContext.forInOrInitHeadAccumulate?this.tokenContext=0:U=0);let z=u!=null&&u.parenthesized,q=z&&p&1||z&&p&16&&T===71||k&&((0,xi.parentNeedsParens)(t,k,C)||w!=null&&w(t,k,C,this.tokenContext,p&1?this._boundGetRawIdentifier:void 0));if(!q&&z&&(s=t.leadingComments)!=null&&s.length&&t.leadingComments[0].type==="CommentBlock")switch(C){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(k.callee!==t)break;default:q=!0}let ye=!1;!q&&this._noLineTerminator&&((a=t.leadingComments)!=null&&a.some(PN)||p&8&&c&&c.start.line>this._buf.getCurrentLine())&&(q=!0,ye=!0);let we;if(!q&&(r||(r=!!k&&this._noLineTerminatorAfterNode===k&&(0,xi.isLastChild)(k,t)),r)){var Pe;(Pe=t.trailingComments)!=null&&Pe.some(PN)?uce(t)&&(q=!0):(we=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=t)}q&&(this.tokenChar(40),ye&&this.indent(),this._innerCommentsState=0,i||(U=this.tokenContext),U&xi.TokenContext.forInOrInitHeadAccumulate&&(this.tokenContext=0),we=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(t,k),this.exactSource(T===139||T===66?null:c,y.bind(this,t,k)),q?(this._printTrailingComments(t,k),ye&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=r):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,k)):this._printTrailingComments(t,k,n),U&&(this.tokenContext=U),this._currentNode=k,this._currentTypeId=C,d&&(this._flags=p),p&32&&(this._insideAux=D),we!=null&&(this._noLineTerminatorAfterNode=we),this._innerCommentsState=0}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r,i,n,s,a,o){if(!(t!=null&&t.length))return;let c=this._flags;if(i==null&&c&8){var u;let h=(u=t[0].loc)==null?void 0:u.start.line;h!=null&&h!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent(c);let p=t.length;for(let h=0;h<p;h++){let y=t[h];if(y&&(r&&h===0&&this._buf.hasContent()&&this.newline(1,c),this.print(y,!1,a,o||0),n!=null&&(h<p-1?n.call(this,h,!1):s&&n.call(this,h,!0)),r))if(h+1===p)this.newline(1,c);else{let T=this._lastCommentLine;if(T>0){var d;let w=(((d=t[h+1].loc)==null?void 0:d.start.line)||0)-T;if(w>=0){this.newline(w||1,c);continue}}this.newline(1,c)}}i&&this.dedent(c)}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){t.type!=="EmptyStatement"&&this.space(),this.print(t)}_printTrailingComments(t,r,i){let{innerComments:n,trailingComments:s}=t;n!=null&&n.length&&this._printComments(2,n,t,r,i),s!=null&&s.length?this._printComments(2,s,t,r,i):this._lastCommentLine=0}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(t,r){var i;let n=this._innerCommentsState;switch(n&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((n&4)>0,(i=this.tokenMap)==null?void 0:i.findMatching(this._currentNode,t,r))}}printInnerComments(t=!0,r){let i=this._currentNode,n=i.innerComments;if(!(n!=null&&n.length)){this._innerCommentsState=2;return}let s=this.endsWith(32);switch(t&&this.indent(),this._printComments(1,n,i,void 0,void 0,r)){case 2:this._innerCommentsState=2;case 1:s&&this.space()}t&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(t,r,i,n){this.printJoin(t,!0,r??!1,void 0,void 0,i,n)}printList(t,r,i,n,s,a){this.printJoin(t,i,n,s??Sce,r,a)}shouldPrintTrailingComma(t){if(!this.tokenMap)return null;let r=this.tokenMap.findLastIndex(this._currentNode,i=>this.tokenMap.matchesOriginal(i,typeof t=="number"?String.fromCharCode(t):t));return r<=0?null:this.tokenMap.matchesOriginal(this._tokens[r-1],",")}_shouldPrintComment(t,r){if(t.ignore||this._printedComments.has(t))return 0;if(this._noLineTerminator&&xce.test(t.value))return 2;if(r&&this.tokenMap){let i=this.tokenMap.find(this._currentNode,n=>n.value===t.value);if(i&&i.start>r.start)return 2}return this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0}_printComment(t,r){let i=this._noLineTerminator,n=t.type==="CommentBlock",s=n&&r!==1&&!i;switch(s&&this._buf.hasContent()&&r!==2&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let a;if(n){if(a=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var o;let c=(o=t.loc)==null?void 0:o.start.column;if(c){let u=new RegExp("\\n\\s{1,"+c+"}","g");a=a.replace(u,`
|
|
24
|
+
`)}if(this._flags&4)a=a.replace(/\n(?!$)/g,`
|
|
25
|
+
`);else{let u=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(u+=this._indent),a=a.replace(/\n(?!$)/g,`
|
|
26
|
+
${" ".repeat(u)}`)}}}else i?a=`/*${t.value}*/`:a=`//${t.value}`;this.source("start",t.loc),this._append(a,n),!n&&!i&&this._newline(),s&&r!==3&&this.newline(1)}_printComments(t,r,i,n,s=0,a){let o=i.loc,c=r.length,u=!!o,p=u?o.start.line:0,d=u?o.end.line:0,h=0,y=0,{_noLineTerminator:T,_flags:w}=this;for(let k=0;k<c;k++){let C=r[k],D=this._shouldPrintComment(C,a);if(D===2)return k===0?0:1;if(u&&C.loc&&D===1){let U=C.loc.start.line,z=C.loc.end.line;if(t===0){let q=0;if(k===0?this._buf.hasContent()&&(C.type==="CommentLine"||U!==z)&&(q=y=1):q=U-h,h=z,q>0&&!T&&this.newline(q,w),this._printComment(C,1),k+1===c){let ye=Math.max(p-h,y);ye>0&&!T&&this.newline(ye,w),h=p}}else if(t===1){let q=U-(k===0?p:h);if(h=z,q>0&&!T&&this.newline(q,w),this._printComment(C,1),k+1===c){let ye=Math.min(1,d-h);ye>0&&!T&&this.newline(ye,w),h=d}}else{let q=U-(k===0?d-s:h);h=z,q>0&&!T&&this.newline(q,w),this._printComment(C,1)}}else{if(u=!1,D!==1)continue;if(c===1){let U=C.loc?C.loc.start.line===C.loc.end.line:!_N.test(C.value),z=U&&!dce(i)&&!fce(n)&&!hce(n)&&!mce(i);t===0?this._printComment(C,z&&i.type!=="ObjectExpression"||U&&pce(n)&&n.body===i?1:0):z&&t===2?this._printComment(C,1):this._printComment(C,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(C,k===0?2:k===c-1?3:0):this._printComment(C,0)}}return t===2&&u&&h&&(this._lastCommentLine=h),2}},iDe=od.default=tE;function Sce(e,t){this.tokenChar(44,e),t||this.space()}});var rE=R(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.default=void 0;Pa.generate=CN;var IN=A1(),AN=kN();function wN(e,t,r){var i;if(t.experimental_preserveFormat){if(typeof e!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash",n.importAttributesKeyword=t.importAttributesKeyword,n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(c=>n.comments||c.includes("@license")||c.includes("@preserve")),n.compact==="auto"&&(n.compact=typeof e=="string"&&e.length>5e5,n.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:s,auxiliaryCommentAfter:a,shouldPrintComment:o}=n;return s&&!o(s)&&(n.auxiliaryCommentBefore=void 0),a&&!o(a)&&(n.auxiliaryCommentAfter=void 0),n}Pa.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=wN(i,r,t),this._map=r.sourceMaps?new IN.default(r,i):null}generate(){return new AN.default(this._format,this._map).generate(this._ast)}};function CN(e,t={},r){let i=wN(r,t,e),n=t.sourceMaps?new IN.default(t,r):null;return new AN.default(i,n,e.tokens,typeof r=="string"?r:null).generate(e)}var oDe=Pa.default=CN});var NN=R(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.find=Ece;qr.findParent=Tce;qr.getAncestry=Ace;qr.getDeepestCommonAncestorFrom=Ice;qr.getEarliestCommonAncestorFrom=kce;qr.getFunctionParent=Pce;qr.getStatementParent=_ce;qr.inType=Nce;qr.isAncestor=wce;qr.isDescendant=Cce;var bce=Ee(),{VISITOR_KEYS:vce}=bce;function Tce(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function Ece(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function Pce(){return this.findParent(e=>e.isFunction())}function _ce(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function kce(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let n,s=vce[t.type];for(let a of i){let o=a[r+1];if(!n){n=o;continue}if(o.listKey&&n.listKey===o.listKey&&o.key<n.key){n=o;continue}let c=s.indexOf(n.parentKey),u=s.indexOf(o.parentKey);c>u&&(n=o)}return n})}function Ice(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,n,s=e.map(o=>{let c=[];do c.unshift(o);while((o=o.parentPath)&&o!==this);return c.length<r&&(r=c.length),c}),a=s[0];e:for(let o=0;o<r;o++){let c=a[o];for(let u of s)if(u[o]!==c)break e;i=o,n=c}if(n)return t?t(n,i,s):n;throw new Error("Couldn't find intersection")}function Ace(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function wce(e){return e.isDescendant(this)}function Cce(e){return!!this.findParent(t=>t===e)}function Nce(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var iE=R(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.createUnionType=Lce;var Oce=Ee(),{createFlowUnionType:ON,createTSUnionType:DN,createUnionTypeAnnotation:Dce,isFlowType:$ce,isTSType:jce}=Oce;function Lce(e){if(e.every(t=>$ce(t)))return ON?ON(e):Dce(e);if(e.every(t=>jce(t))&&DN)return DN(e)}});var MN=R(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.default=zce;var Rce=Ee(),jN=iE(),{BOOLEAN_NUMBER_BINARY_OPERATORS:Mce,createTypeAnnotationBasedOnTypeof:Fce,numberTypeAnnotation:LN,voidTypeAnnotation:Bce}=Rce;function zce(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:Uce(t,this,e.name);if(e.name==="undefined")return Bce();if(e.name==="NaN"||e.name==="Infinity")return LN();e.name}function Uce(e,t,r){let i=[],n=[],s=$N(e,t,n),a=RN(e,t,r);if(a){let o=$N(e,a.ifStatement);s=s.filter(c=>!o.includes(c)),i.push(a.typeAnnotation)}if(s.length){s.push(...n);for(let o of s)i.push(o.getTypeAnnotation())}if(i.length)return(0,jN.createUnionType)(i)}function $N(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(n=>{n=n.resolve();let s=n._guessExecutionStatusRelativeTo(t);return r&&s==="unknown"&&r.push(n),s==="before"})}function Kce(e,t){let r=t.node.operator,i=t.get("right").resolve(),n=t.get("left").resolve(),s;if(n.isIdentifier({name:e})?s=i:i.isIdentifier({name:e})&&(s=n),s)return r==="==="?s.getTypeAnnotation():Mce.includes(r)?LN():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(n.isUnaryExpression({operator:"typeof"})?(a=n,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=n),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let c=o.node.value;if(typeof c=="string")return Fce(c)}function Vce(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&(r==null||i.parentPath.scope.getBinding(r)!==e))return;t=i}}function RN(e,t,r){let i=Vce(e,t,r);if(!i)return;let s=[i.get("test")],a=[];for(let o=0;o<s.length;o++){let c=s[o];if(c.isLogicalExpression())c.node.operator==="&&"&&(s.push(c.get("left")),s.push(c.get("right")));else if(c.isBinaryExpression()){let u=Kce(r,c);u&&a.push(u)}}return a.length?{typeAnnotation:(0,jN.createUnionType)(a),ifStatement:i}:RN(e,i,r)}});var WN=R(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.ArrayExpression=KN;nt.AssignmentExpression=fue;nt.BinaryExpression=lue;nt.BooleanLiteral=gue;nt.CallExpression=kue;nt.ConditionalExpression=uue;nt.ClassDeclaration=nt.ClassExpression=nt.FunctionDeclaration=nt.ArrowFunctionExpression=nt.FunctionExpression=vue;Object.defineProperty(nt,"Identifier",{enumerable:!0,get:function(){return Wce.default}});nt.LogicalExpression=cue;nt.NewExpression=sue;nt.NullLiteral=xue;nt.NumericLiteral=yue;nt.ObjectExpression=bue;nt.ParenthesizedExpression=due;nt.RegExpLiteral=Sue;nt.RestElement=VN;nt.SequenceExpression=pue;nt.StringLiteral=mue;nt.TSAsExpression=UN;nt.TSNonNullExpression=iue;nt.TaggedTemplateExpression=Iue;nt.TemplateLiteral=aue;nt.TypeCastExpression=zN;nt.UnaryExpression=oue;nt.UpdateExpression=hue;nt.VariableDeclarator=nue;var qce=Ee(),Wce=MN(),BN=iE(),{BOOLEAN_BINARY_OPERATORS:Jce,BOOLEAN_UNARY_OPERATORS:Xce,NUMBER_BINARY_OPERATORS:Zce,NUMBER_UNARY_OPERATORS:Yce,STRING_UNARY_OPERATORS:Gce,anyTypeAnnotation:FN,arrayTypeAnnotation:aE,booleanTypeAnnotation:oE,buildMatchMemberExpression:ld,genericTypeAnnotation:Si,identifier:os,nullLiteralTypeAnnotation:Hce,numberTypeAnnotation:_a,stringTypeAnnotation:ls,tupleTypeAnnotation:Qce,unionTypeAnnotation:eue,voidTypeAnnotation:tue,isIdentifier:rue}=qce;function nue(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function zN(e){return e.typeAnnotation}zN.validParent=!0;function UN(e){return e.typeAnnotation}UN.validParent=!0;function iue(){return this.get("expression").getTypeAnnotation()}function sue(e){if(e.callee.type==="Identifier")return Si(e.callee)}function aue(){return ls()}function oue(e){let t=e.operator;if(t==="void")return tue();if(Yce.includes(t))return _a();if(Gce.includes(t))return ls();if(Xce.includes(t))return oE()}function lue(e){let t=e.operator;if(Zce.includes(t))return _a();if(Jce.includes(t))return oE();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?_a():i.isBaseType("string")||r.isBaseType("string")?ls():eue([ls(),_a()])}}function cue(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,BN.createUnionType)(e)}function uue(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,BN.createUnionType)(e)}function pue(){return this.get("expressions").pop().getTypeAnnotation()}function due(){return this.get("expression").getTypeAnnotation()}function fue(){return this.get("right").getTypeAnnotation()}function hue(e){let t=e.operator;if(t==="++"||t==="--")return _a()}function mue(){return ls()}function yue(){return _a()}function gue(){return oE()}function xue(){return Hce()}function Sue(){return Si(os("RegExp"))}function bue(){return Si(os("Object"))}function KN(){return Si(os("Array"))}function VN(){return KN()}VN.validParent=!0;function vue(){return Si(os("Function"))}var Tue=ld("Array.from"),Eue=ld("Object.keys"),Pue=ld("Object.values"),_ue=ld("Object.entries");function kue(){let{callee:e}=this.node;return Eue(e)?aE(ls()):Tue(e)||Pue(e)||rue(e,{name:"Array"})?aE(FN()):_ue(e)?aE(Qce([ls(),FN()])):qN(this.get("callee"))}function Iue(){return qN(this.get("tag"))}function qN(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Si(os("AsyncIterator")):Si(os("Promise"));if(t.generator)return Si(os("Iterator"));if(e.node.returnType)return e.node.returnType}}});var GN=R(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi._getTypeAnnotation=YN;bi.baseTypeStrictlyMatches=Zue;bi.couldBeBaseType=Xue;bi.getTypeAnnotation=Wue;bi.isBaseType=Jue;bi.isGenericType=Yue;var JN=WN(),Aue=Ee(),{anyTypeAnnotation:ZN,isAnyTypeAnnotation:cd,isArrayTypeAnnotation:wue,isBooleanTypeAnnotation:Cue,isEmptyTypeAnnotation:Nue,isFlowBaseAnnotation:Oue,isGenericTypeAnnotation:Due,isIdentifier:XN,isMixedTypeAnnotation:$ue,isNumberTypeAnnotation:jue,isStringTypeAnnotation:Lue,isTSArrayType:Rue,isTSTypeAnnotation:Mue,isTSTypeReference:Fue,isTupleTypeAnnotation:Bue,isTypeAnnotation:zue,isUnionTypeAnnotation:Uue,isVoidTypeAnnotation:Kue,stringTypeAnnotation:Vue,voidTypeAnnotation:que}=Aue;function Wue(){let e=this.getData("typeAnnotation");return e!=null||(e=YN.call(this)||ZN(),(zue(e)||Mue(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var lE=new WeakSet;function YN(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?Vue():r.key==="left"&&i.isForOfStatement()?ZN():que()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!lE.has(e)){lE.add(e);try{var t;let r=JN[e.type];if(r)return r.call(this,e);if(r=JN[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{lE.delete(e)}}}function Jue(e,t){return cE(e,this.getTypeAnnotation(),t)}function cE(e,t,r){if(e==="string")return Lue(t);if(e==="number")return jue(t);if(e==="boolean")return Cue(t);if(e==="any")return cd(t);if(e==="mixed")return $ue(t);if(e==="empty")return Nue(t);if(e==="void")return Kue(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function Xue(e){let t=this.getTypeAnnotation();if(cd(t))return!0;if(Uue(t)){for(let r of t.types)if(cd(r)||cE(e,r,!0))return!0;return!1}else return cE(e,t,!0)}function Zue(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!cd(t)&&Oue(t)?r.type===t.type:!1}function Yue(e){let t=this.getTypeAnnotation();return e==="Array"&&(Rue(t)||wue(t)||Bue(t))?!0:Due(t)&&XN(t.id,{name:e})||Fue(t)&&XN(t.typeName,{name:e})}});var eO=R((hDe,uE)=>{var pd=process||{},HN=pd.argv||[],ud=pd.env||{},Gue=!(ud.NO_COLOR||HN.includes("--no-color"))&&(!!ud.FORCE_COLOR||HN.includes("--color")||pd.platform==="win32"||(pd.stdout||{}).isTTY&&ud.TERM!=="dumb"||!!ud.CI),Hue=(e,t,r=e)=>i=>{let n=""+i,s=n.indexOf(t,e.length);return~s?e+Que(n,t,r,s)+t:e+n+t},Que=(e,t,r,i)=>{let n="",s=0;do n+=e.substring(s,i)+r,s=i+t.length,i=e.indexOf(t,s);while(~i);return n+e.substring(s)},QN=(e=Gue)=>{let t=e?Hue:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};uE.exports=QN();uE.exports.createColors=QN});var tO=R(dd=>{Object.defineProperty(dd,"__esModule",{value:!0});dd.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;dd.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var dE=R(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var pE=eO(),rO=tO(),nO=Qo();function epe(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:pE.isColorSupported}var fd=(e,t)=>r=>e(t(r));function aO(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:fd(fd(e.white,e.bgRed),e.bold),gutter:e.gray,marker:fd(e.red,e.bold),message:fd(e.red,e.bold),reset:e.reset}}var tpe=aO(pE.createColors(!0)),rpe=aO(pE.createColors(!1));function oO(e){return e?tpe:rpe}var npe=new Set(["as","async","from","get","of","set"]),ipe=/\r\n|[\n\r\u2028\u2029]/,spe=/^[()[\]{}]$/,lO,ape=/^[a-z][\w-]*$/i,ope=function(e,t,r){if(e.type==="name"){let i=e.value;if(nO.isKeyword(i)||nO.isStrictReservedWord(i,!0)||npe.has(i))return"keyword";if(ape.test(i)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let n=String.fromCodePoint(i.codePointAt(0));if(n!==n.toLowerCase())return"capitalized"}return e.type==="punctuator"&&spe.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};lO=function*(e){let t;for(;t=rO.default.exec(e);){let r=rO.matchToToken(t);yield{type:ope(r,t.index,e),value:r.value}}};function cO(e){if(e==="")return"";let t=oO(!0),r="";for(let{type:i,value:n}of lO(e))i in t?r+=n.split(ipe).map(s=>t[i](s)).join(`
|
|
27
|
+
`):r+=n;return r}var iO=!1,sO=/\r\n|[\n\r\u2028\u2029]/;function lpe(e,t,r,i){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},c=n.line-i,u=n.column,p=s.line-i,d=s.column,h=Math.max(c-(a+1),0),y=Math.min(t.length,p+o);c===-1&&(h=0),p===-1&&(y=t.length);let T=p-c,w={};if(T)for(let k=0;k<=T;k++){let C=k+c;if(!u)w[C]=!0;else if(k===0){let D=t[C-1].length;w[C]=[u,D-u+1]}else if(k===T)w[C]=[0,d];else{let D=t[C-k].length;w[C]=[0,D]}}else u===d?u?w[c]=[u,0]:w[c]=!0:w[c]=[u,d-u];return{start:h,end:y,markerLines:w}}function uO(e,t,r={}){let i=r.forceColor||epe()&&r.highlightCode,n=(r.startLine||1)-1,s=oO(i),a=e.split(sO),{start:o,end:c,markerLines:u}=lpe(t,a,r,n),p=t.start&&typeof t.start.column=="number",d=String(c+n).length,y=(i?cO(e):e).split(sO,c).slice(o,c).map((T,w)=>{let k=o+1+w,D=` ${` ${k+n}`.slice(-d)} |`,U=u[k],z=!u[k+1];if(U){let q="";if(Array.isArray(U)){let ye=T.slice(0,Math.max(U[0]-1,0)).replace(/[^\t]/g," "),we=U[1]||1;q=[`
|
|
28
|
+
`,s.gutter(D.replace(/\d/g," "))," ",ye,s.marker("^").repeat(we)].join(""),z&&r.message&&(q+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(D),T.length>0?` ${T}`:"",q].join("")}else return` ${s.gutter(D)}${T.length>0?` ${T}`:""}`}).join(`
|
|
29
|
+
`);return r.message&&!p&&(y=`${" ".repeat(d+1)}${r.message}
|
|
30
|
+
${y}`),i?s.reset(y):y}function cpe(e,t,r,i={}){if(!iO){iO=!0;let s="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(s,"DeprecationWarning");else{let a=new Error(s);a.name="DeprecationWarning",console.warn(new Error(s))}}return r=Math.max(r,0),uO(e,{start:{column:r,line:t}},i)}vl.codeFrameColumns=uO;vl.default=cpe;vl.highlight=cO});var pO=R(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.hooks=void 0;var gDe=hd.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var md=R(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi._assertUnremoved=yO;vi._callRemovalHooks=hO;vi._markRemoved=fE;vi._remove=mO;vi._removeFromScope=fO;vi.remove=ype;var upe=pO(),ppe=rs(),dpe=hE(),dO=Bn(),fpe=Ee(),hpe=yd(),mpe=Ur();function ype(){var e;if(yO.call(this),mpe.resync.call(this),hO.call(this)){fE.call(this);return}(e=this.opts)!=null&&e.noScope||fO.call(this),this.shareCommentsWithSiblings(),mO.call(this),fE.call(this)}function fO(){let e=fpe.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function hO(){if(this.parentPath){for(let e of upe.hooks)if(e(this,this.parentPath))return!0}}function mO(){Array.isArray(this.container)?(this.container.splice(this.key,1),hpe.updateSiblingKeys.call(this,this.key,-1)):dpe._replaceWith.call(this,null)}function fE(){if(this._traverseFlags|=dO.SHOULD_SKIP|dO.REMOVED,this.parent){var e;(e=(0,ppe.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function yO(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var xO=R(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.default=void 0;var gO=Ee(),gpe=gO,{react:xpe}=gO,{cloneNode:Spe,jsxExpressionContainer:bpe,variableDeclaration:vpe,variableDeclarator:Tpe}=gpe,Epe={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&xpe.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},mE=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let n=this.bindings[i];if(n.kind==="param"||n.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(n.path).key>=t.key){this.attachAfter=!0,t=n.path;for(let a of n.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let n=0;n<i.length;n++)if(!i[n].node._blockHoist)return i[n]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath);return t}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(Epe,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),i=Tpe(r,this.path.node),n=this.attachAfter?"insertAfter":"insertBefore",[s]=t[n]([t.isVariableDeclarator()?i:vpe("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=bpe(r)),this.path.replaceWith(Spe(r)),s.isVariableDeclarator()?s.get("init"):s.get("declarations.0.init")}};gd.default=mE});var yd=R(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr._containerInsert=bE;Wr._containerInsertAfter=vO;Wr._containerInsertBefore=vE;Wr._verifyNodeList=Tl;Wr.insertAfter=Bpe;Wr.insertBefore=Mpe;Wr.pushContainer=Upe;Wr.unshiftContainer=zpe;Wr.updateSiblingKeys=PO;var Ppe=rs(),SE=Bn(),yE=Ur(),xd=md(),_pe=Ee(),kpe=xO(),{arrowFunctionExpression:Ipe,assertExpression:Ape,assignmentExpression:wpe,blockStatement:SO,callExpression:Cpe,cloneNode:gE,expressionStatement:xE,isAssignmentExpression:Npe,isCallExpression:Ope,isExportNamedDeclaration:bO,isExpression:Dpe,isIdentifier:$pe,isSequenceExpression:jpe,isSuper:Lpe,thisExpression:Rpe}=_pe;function Mpe(e){xd._assertUnremoved.call(this);let t=Tl.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||bO(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return vE.call(this,t);if(this.isStatementOrBlock()){let n=this.node,s=n&&(!this.isExpressionStatement()||n.expression!=null),[a]=this.replaceWith(SO(s?[n]:[]));return a.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function bE(e,t){PO.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let s=0;s<t.length;s++){var i;let a=e+s,o=this.getSibling(a);r.push(o),(i=this.context)!=null&&i.queue&&yE.pushContext.call(o,this.context)}let n=yE._getQueueContexts.call(this);for(let s of r){yE.setScope.call(s),s.debug("Inserted.");for(let a of n)a.maybeQueue(s,!0)}return r}function vE(e){return bE.call(this,this.key,e)}function vO(e){return bE.call(this,this.key+1,e)}var TO=e=>e[e.length-1];function EO(e){return jpe(e.parent)&&(TO(e.parent.expressions)!==e.node||EO(e.parentPath))}function Fpe(e,t){if(!Npe(e)||!$pe(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function Bpe(e){if(xd._assertUnremoved.call(this),this.isSequenceExpression())return TO(this.get("expressions")).insertAfter(e);let t=Tl.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||bO(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(n=>Dpe(n)?xE(n):n));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let n=this;if(n.node){let s=n.node,{scope:a}=this;if(a.path.isPattern())return Ape(s),n.replaceWith(Cpe(Ipe([],s),[])),n.get("callee.body").insertAfter(t),[n];if(EO(n))t.unshift(s);else if(Ope(s)&&Lpe(s.callee))t.unshift(s),t.push(Rpe());else if(Fpe(s,a))t.unshift(s),t.push(gE(s.left));else if(a.isPure(s,!0))t.push(s);else{r.isMethod({computed:!0,key:s})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(xE(wpe("=",gE(o),s))),t.push(xE(gE(o)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return vO.call(this,t);if(this.isStatementOrBlock()){let n=this.node,s=n&&(!this.isExpressionStatement()||n.expression!=null),[a]=this.replaceWith(SO(s?[n]:[]));return a.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function PO(e,t){if(!this.parent)return;let r=(0,Ppe.getCachedPaths)(this);if(r)for(let[,i]of r)typeof i.key=="number"&&i.container===this.container&&i.key>=e&&(i.key+=t)}function Tl(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof SE.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let n=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${n}`)}}return e}function zpe(e,t){xd._assertUnremoved.call(this);let r=Tl.call(this,t),i=this.node[e],n=SE.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:0}).setContext(this.context);return vE.call(n,r)}function Upe(e,t){xd._assertUnremoved.call(this);let r=Tl.call(this,t),i=this.node[e];return SE.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}Wr.hoist=function(t=this.scope){return new kpe.default(this,t).run()}});var hE=R(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti._replaceWith=OO;Ti.replaceExpressionWithStatements=yde;Ti.replaceInline=gde;Ti.replaceWith=mde;Ti.replaceWithMultiple=fde;Ti.replaceWithSourceString=hde;var Kpe=dE(),EE=rn(),Vpe=Bn(),wO=rs(),PE=yd(),qpe=en(),Wpe=Ee(),ka=Ur(),{FUNCTION_TYPES:_O,arrowFunctionExpression:Jpe,assignmentExpression:CO,awaitExpression:Xpe,blockStatement:Zpe,buildUndefinedNode:TE,callExpression:Ype,cloneNode:_E,conditionalExpression:Gpe,expressionStatement:Hpe,getBindingIdentifiers:Qpe,identifier:ede,inheritLeadingComments:tde,inheritTrailingComments:rde,inheritsComments:nde,isBlockStatement:ide,isEmptyStatement:kO,isExpression:NO,isExpressionStatement:sde,isIfStatement:ade,isProgram:ode,isStatement:lde,isVariableDeclaration:cde,removeComments:ude,returnStatement:IO,sequenceExpression:pde,validate:AO,yieldExpression:dde}=Wpe;function fde(e){var t;ka.resync.call(this);let r=PE._verifyNodeList.call(this,e);tde(r[0],this.node),rde(r[r.length-1],this.node),(t=(0,wO.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let i=this.insertAfter(e);return this.node?this.requeue():this.remove(),i}function hde(e){ka.resync.call(this);let t;try{e=`(${e})`,t=(0,qpe.parse)(e)}catch(i){let n=i.loc;throw n&&(i.message+=` - make sure this is an expression.
|
|
31
|
+
`+(0,Kpe.codeFrameColumns)(e,{start:{line:n.line,column:n.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let r=t.program.body[0].expression;return EE.default.removeProperties(r),this.replaceWith(r)}function mde(e){if(ka.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof Vpe.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!ode(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&NO(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=Hpe(t),r="expression"),this.isNodeType("Expression")&&lde(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(nde(t,i),ude(i)),OO.call(this,t),this.type=t.type,ka.setScope.call(this),this.requeue(),[r?this.get(r):this]}function OO(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?AO(this.parent,this.key,[e]):AO(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),(t=(0,wO.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function yde(e){ka.resync.call(this);let t=[],r=Sd(e,t);if(r){for(let h of t)this.scope.push({id:h});return this.replaceWith(r)[0].get("expressions")}let i=this.getFunctionParent(),n=i?.node.async,s=i?.node.generator,a=Jpe([],Zpe(e));this.replaceWith(Ype(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(h=>this.scope.push({id:h}));let c=o.getCompletionRecords();for(let h of c){if(!h.isExpressionStatement())continue;let y=h.findParent(T=>T.isLoop());if(y){let T=y.getData("expressionReplacementReturnUid");T?T=ede(T.name):(T=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",IO(_E(T))),y.setData("expressionReplacementReturnUid",T)),h.get("expression").replaceWith(CO("=",_E(T),h.node.expression))}else h.replaceWith(IO(h.node.expression))}o.arrowFunctionToExpression();let u=o,p=n&&EE.default.hasType(u.node.body,"AwaitExpression",_O),d=s&&EE.default.hasType(u.node.body,"YieldExpression",_O);return p&&(u.set("async",!0),d||this.replaceWith(Xpe(this.node))),d&&(u.set("generator",!0),this.replaceWith(dde(this.node,!0))),u.get("body.body")}function Sd(e,t){let r=[],i=!0;for(let n of e)if(kO(n)||(i=!1),NO(n))r.push(n);else if(sde(n))r.push(n.expression);else if(cde(n)){if(n.kind!=="var")return;for(let s of n.declarations){let a=Qpe(s);for(let o of Object.keys(a))t.push(_E(a[o]));s.init&&r.push(CO("=",s.id,s.init))}i=!0}else if(ade(n)){let s=n.consequent?Sd([n.consequent],t):TE(),a=n.alternate?Sd([n.alternate],t):TE();if(!s||!a)return;r.push(Gpe(n.test,s,a))}else if(ide(n)){let s=Sd(n.body,t);if(!s)return;r.push(s)}else if(kO(n))e.indexOf(n)===0&&(i=!0);else return;return i&&r.push(TE()),r.length===1?r[0]:pde(r)}function gde(e){if(ka.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=PE._verifyNodeList.call(this,e);let t=PE._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var LO=R(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.evaluate=_de;bd.evaluateTruthy=Ede;var xde=["Number","String","Math"],Sde=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],bde=["random"];function DO(e){return xde.includes(e)}function vde(e){return Sde.includes(e)}function Tde(e){return bde.includes(e)}function Ede(){let e=this.evaluate();if(e.confident)return!!e.value}function Jr(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var $O=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function yr(e,t){let{node:r}=e,{seen:i}=t;if(i.has(r)){let n=i.get(r);if(n.resolved)return n.value;Jr(e,t);return}else{let n={resolved:!1};i.set(r,n);let s=Pde(e,t);return t.confident&&(n.resolved=!0,n.value=s),s}}function Pde(e,t){if(t.confident){if(e.isSequenceExpression()){let i=e.get("expressions");return yr(i[i.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return jO(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let i=e.get("tag.object"),{node:{name:n}}=i,s=e.get("tag.property");if(i.isIdentifier()&&n==="String"&&!e.scope.getBinding(n)&&s.isIdentifier()&&s.node.name==="raw")return jO(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let i=yr(e.get("test"),t);return t.confident?yr(i?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return yr(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let i=e.get("property"),n=e.get("object");if(n.isLiteral()){let s=n.node.value,a=typeof s,o=null;if(e.node.computed){if(o=yr(i,t),!t.confident)return}else i.isIdentifier()&&(o=i.node.name);if((a==="number"||a==="string")&&o!=null&&(typeof o=="number"||typeof o=="string"))return s[o]}}if(e.isReferencedIdentifier()){let i=e.scope.getBinding(e.node.name);if(i){if(i.constantViolations.length>0||e.node.start<i.path.node.end){Jr(i.path,t);return}let c=i.path.scope;if(i.kind==="var"&&c!==i.scope){let u=!c.path.parentPath.isBlockStatement();for(let p=c.parent;p;p=p.parent){var r;if(p===e.scope){if(u){Jr(i.path,t);return}break}(r=p.path.parentPath)!=null&&r.isBlockStatement()&&(u=!0)}}if(i.hasValue)return i.value}let n=e.node.name;if($O.has(n)){if(!i)return $O.get(n);Jr(i.path,t);return}if(!i){Jr(e,t);return}let s=i.path;if(!s.isVariableDeclarator()){Jr(s,t);return}let a=s.get("init"),o=yr(a,t);if(typeof o=="object"&&o!==null&&i.references>1){Jr(a,t);return}return o}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let i=e.get("argument");if(e.node.operator==="typeof"&&(i.isFunction()||i.isClass()))return"function";let n=yr(i,t);if(!t.confident)return;switch(e.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(e.isArrayExpression()){let i=[],n=e.get("elements");for(let s of n){let a=s.evaluate();if(a.confident)i.push(a.value);else{Jr(a.deopt,t);return}}return i}if(e.isObjectExpression()){let i={},n=e.get("properties");for(let s of n){if(s.isObjectMethod()||s.isSpreadElement()){Jr(s,t);return}let a=s.get("key"),o;if(s.node.computed){if(o=a.evaluate(),!o.confident){Jr(o.deopt,t);return}o=o.value}else a.isIdentifier()?o=a.node.name:o=a.node.value;let u=s.get("value").evaluate();if(!u.confident){Jr(u.deopt,t);return}u=u.value,i[o]=u}return i}if(e.isLogicalExpression()){let i=t.confident,n=yr(e.get("left"),t),s=t.confident;t.confident=i;let a=yr(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":return t.confident=s&&(!!n||o),t.confident?n||a:void 0;case"&&":return t.confident=s&&(!n||o),t.confident?n&&a:void 0;case"??":return t.confident=s&&(n!=null||o),t.confident?n??a:void 0}}if(e.isBinaryExpression()){let i=yr(e.get("left"),t);if(!t.confident)return;let n=yr(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return i-n;case"+":return i+n;case"/":return i/n;case"*":return i*n;case"%":return i%n;case"**":return Math.pow(i,n);case"<":return i<n;case">":return i>n;case"<=":return i<=n;case">=":return i>=n;case"==":return i==n;case"!=":return i!=n;case"===":return i===n;case"!==":return i!==n;case"|":return i|n;case"&":return i&n;case"^":return i^n;case"<<":return i<<n;case">>":return i>>n;case">>>":return i>>>n}}if(e.isCallExpression()){let i=e.get("callee"),n,s;if(i.isIdentifier()&&!e.scope.getBinding(i.node.name)&&(DO(i.node.name)||vde(i.node.name))&&(s=global[i.node.name]),i.isMemberExpression()){let a=i.get("object"),o=i.get("property");if(a.isIdentifier()&&o.isIdentifier()&&DO(a.node.name)&&!Tde(o.node.name)){n=global[a.node.name];let c=o.node.name;hasOwnProperty.call(n,c)&&(s=n[c])}if(a.isLiteral()&&o.isIdentifier()){let c=typeof a.node.value;(c==="string"||c==="number")&&(n=a.node.value,s=n[o.node.name])}}if(s){let a=e.get("arguments").map(o=>yr(o,t));return t.confident?s.apply(n,a):void 0}}Jr(e,t)}}function jO(e,t,r,i=!1){let n="",s=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;n+=i?o.value.raw:o.value.cooked;let c=a[s++];c&&(n+=String(yr(c,r)))}if(r.confident)return n}function _de(){let e={confident:!0,deoptPath:null,seen:new Map},t=yr(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var RO=R(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.statements=Xr.statement=Xr.smart=Xr.program=Xr.expression=void 0;var kde=Ee(),{assertExpressionStatement:Ide}=kde;function kE(e){return{code:t=>`/* @babel/template */;
|
|
32
|
+
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var PDe=Xr.smart=kE(e=>e.length>1?e:e[0]),_De=Xr.statements=kE(e=>e),kDe=Xr.statement=kE(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),Ade=Xr.expression={code:e=>`(
|
|
33
|
+
${e}
|
|
34
|
+
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(Ade.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return Ide(t),t.expression}},IDe=Xr.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var vd=R(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.merge=Nde;El.normalizeReplacements=Dde;El.validate=Ode;var wde=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function Cde(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Nde(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:n=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:s}}function Ode(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:s}=t,a=Cde(t,wde);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(n!=null&&typeof n!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(s===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:n??void 0,syntacticPlaceholders:s??void 0}}function Dde(e){if(Array.isArray(e))return e.reduce((t,r,i)=>(t["$"+i]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var AE=R(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});IE.default=Jde;var $de=Ee(),jde=en(),Lde=dE(),{isCallExpression:Rde,isExpressionStatement:Mde,isFunction:Fde,isIdentifier:Bde,isJSXIdentifier:zde,isNewExpression:Ude,isPlaceholder:Td,isStatement:Kde,isStringLiteral:MO,removePropertiesDeep:Vde,traverse:qde}=$de,Wde=/^[_$A-Z0-9]+$/;function Jde(e,t,r){let{placeholderWhitelist:i,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:a}=r,o=Yde(t,r.parser,a);Vde(o,{preserveComments:s}),e.validate(o);let c={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:n,syntacticPlaceholders:a};return qde(o,Xde,c),Object.assign({ast:o},c.syntactic.placeholders.length?c.syntactic:c.legacy)}function Xde(e,t,r){var i;let n,s=r.syntactic.placeholders.length>0;if(Td(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,s=!0}else{if(s||r.syntacticPlaceholders)return;if(Bde(e)||zde(e))n=e.name;else if(MO(e))n=e.value;else return}if(s&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!s&&(r.placeholderPattern===!1||!(r.placeholderPattern||Wde).test(n))&&!((i=r.placeholderWhitelist)!=null&&i.has(n)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],c;MO(e)||Td(e,{expectedNode:"StringLiteral"})?c="string":Ude(a)&&o==="arguments"||Rde(a)&&o==="arguments"||Fde(a)&&o==="params"?c="param":Mde(a)&&!Td(e)?(c="statement",t=t.slice(0,-1)):Kde(e)&&Td(e)?c="statement":c="other";let{placeholders:u,placeholderNames:p}=s?r.syntactic:r.legacy;u.push({name:n,type:c,resolve:d=>Zde(d,t),isDuplicate:p.has(n)}),p.add(n)}function Zde(e,t){let r=e;for(let s=0;s<t.length-1;s++){let{key:a,index:o}=t[s];o===void 0?r=r[a]:r=r[a][o]}let{key:i,index:n}=t[t.length-1];return{parent:r,key:i,index:n}}function Yde(e,t,r){let i=(t.plugins||[]).slice();r!==!1&&i.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:i});try{return(0,jde.parse)(e,t)}catch(n){let s=n.loc;throw s&&(n.message+=`
|
|
35
|
+
`+(0,Lde.codeFrameColumns)(e,{start:s}),n.code="BABEL_TEMPLATE_PARSE_ERROR"),n}}});var OE=R(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.default=rfe;var Gde=Ee(),{blockStatement:Hde,cloneNode:CE,emptyStatement:Qde,expressionStatement:wE,identifier:Ed,isStatement:FO,isStringLiteral:efe,stringLiteral:tfe,validate:BO}=Gde;function rfe(e,t){let r=CE(e.ast);return t&&(e.placeholders.forEach(i=>{if(!hasOwnProperty.call(t,i.name)){let n=i.name;throw new Error(`Error: No substitution given for "${n}". If this is not meant to be a
|
|
36
|
+
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
37
|
+
- { placeholderPattern: false, placeholderWhitelist: new Set(['${n}'])}
|
|
38
|
+
- { placeholderPattern: /^${n}$/ }`)}}),Object.keys(t).forEach(i=>{if(!e.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),e.placeholders.slice().reverse().forEach(i=>{try{var n;nfe(i,r,(n=t&&t[i.name])!=null?n:null)}catch(s){throw s.message=`@babel/template placeholder "${i.name}": ${s.message}`,s}}),r}function nfe(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>CE(o)):typeof r=="object"&&(r=CE(r)));let{parent:i,key:n,index:s}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=tfe(r)),!r||!efe(r))throw new Error("Expected string substitution")}else if(e.type==="statement")s===void 0?r?Array.isArray(r)?r=Hde(r):typeof r=="string"?r=wE(Ed(r)):FO(r)||(r=wE(r)):r=Qde():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=Ed(r)),FO(r)||(r=wE(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=Ed(r)),s===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=Ed(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,c,u){let p=o[c];o[c]=u,(p.type==="Identifier"||p.type==="Placeholder")&&(p.typeAnnotation&&(u.typeAnnotation=p.typeAnnotation),p.optional&&(u.optional=p.optional),p.decorators&&(u.decorators=p.decorators))}if(s===void 0)BO(i,n,r),a(i,n,r);else{let o=i[n].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(s,1):Array.isArray(r)?o.splice(s,1,...r):a(o,s,r):a(o,s,r),BO(i,n,o),i[n]=o}}});var zO=R(DE=>{"use strict";Object.defineProperty(DE,"__esModule",{value:!0});DE.default=ofe;var ife=vd(),sfe=AE(),afe=OE();function ofe(e,t,r){t=e.code(t);let i;return n=>{let s=(0,ife.normalizeReplacements)(n);return i||(i=(0,sfe.default)(e,t,r)),e.unwrap((0,afe.default)(i,s))}}});var UO=R($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.default=pfe;var lfe=vd(),cfe=AE(),ufe=OE();function pfe(e,t,r){let{metadata:i,names:n}=dfe(e,t,r);return s=>{let a={};return s.forEach((o,c)=>{a[n[c]]=o}),o=>{let c=(0,lfe.normalizeReplacements)(o);return c&&Object.keys(c).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,ufe.default)(i,c?Object.assign(c,a):a))}}}function dfe(e,t,r){let i="BABEL_TPL$",n=t.join("");do i="$$"+i;while(n.includes(i));let{names:s,code:a}=ffe(t,i);return{metadata:(0,cfe.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(s.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:s}}function ffe(e,t){let r=[],i=e[0];for(let n=1;n<e.length;n++){let s=`${t}${n-1}`;r.push(s),i+=s+e[n]}return{names:r,code:i}}});var XO=R(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});jE.default=JO;var Pn=vd(),KO=zO(),VO=UO(),qO=(0,Pn.validate)({placeholderPattern:!1});function JO(e,t){let r=new WeakMap,i=new WeakMap,n=t||(0,Pn.validate)(null);return Object.assign((s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return WO((0,KO.default)(e,s,(0,Pn.merge)(n,(0,Pn.validate)(a[0]))))}else if(Array.isArray(s)){let o=r.get(s);return o||(o=(0,VO.default)(e,s,n),r.set(s,o)),WO(o(a))}else if(typeof s=="object"&&s){if(a.length>0)throw new Error("Unexpected extra params.");return JO(e,(0,Pn.merge)(n,(0,Pn.validate)(s)))}throw new Error(`Unexpected template param ${typeof s}`)},{ast:(s,...a)=>{if(typeof s=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,KO.default)(e,s,(0,Pn.merge)((0,Pn.merge)(n,(0,Pn.validate)(a[0])),qO))()}else if(Array.isArray(s)){let o=i.get(s);return o||(o=(0,VO.default)(e,s,(0,Pn.merge)(n,qO)),i.set(s,o)),o(a)()}throw new Error(`Unexpected template param ${typeof s}`)}})}function WO(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
|
|
39
|
+
`).slice(3).join(`
|
|
40
|
+
`))}return r=>{try{return e(r)}catch(i){throw i.stack+=`
|
|
41
|
+
=============
|
|
42
|
+
${t}`,i}}}});var ZO=R(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.statements=Ir.statement=Ir.smart=Ir.program=Ir.expression=Ir.default=void 0;var Pl=RO(),_l=XO(),LE=Ir.smart=(0,_l.default)(Pl.smart),hfe=Ir.statement=(0,_l.default)(Pl.statement),mfe=Ir.statements=(0,_l.default)(Pl.statements),yfe=Ir.expression=(0,_l.default)(Pl.expression),gfe=Ir.program=(0,_l.default)(Pl.program),jDe=Ir.default=Object.assign(LE.bind(void 0),{smart:LE,statement:hfe,statements:mfe,expression:yfe,program:gfe,ast:LE.ast})});var nD=R(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.arrowFunctionToExpression=Jfe;zn.ensureBlock=Vfe;zn.ensureFunctionName=she;zn.splitExportDeclaration=nhe;zn.toComputedKey=Kfe;zn.unwrapFunctionEnvironment=qfe;var xfe=Ee(),Sfe=ZO(),FE=dl(),bfe=Ur(),{arrowFunctionExpression:BE,assignmentExpression:cs,binaryExpression:RE,blockStatement:vfe,callExpression:Ia,conditionalExpression:Tfe,expressionStatement:HO,identifier:pt,isIdentifier:Efe,jsxIdentifier:Pfe,logicalExpression:_fe,LOGICAL_OPERATORS:kfe,memberExpression:sn,metaProperty:Ife,numericLiteral:Afe,objectExpression:wfe,restElement:Cfe,returnStatement:Nfe,sequenceExpression:Ofe,spreadElement:Dfe,stringLiteral:QO,super:ME,thisExpression:kl,toExpression:eD,unaryExpression:$fe,toBindingIdentifierName:jfe,isFunction:Lfe,isAssignmentPattern:Rfe,isRestElement:Mfe,getFunctionName:Ffe,cloneNode:us,variableDeclaration:Bfe,variableDeclarator:zfe,exportNamedDeclaration:YO,exportSpecifier:GO,inherits:Ufe}=xfe;function Kfe(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||Efe(e)&&(e=QO(e.name)),e}function Vfe(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],i="body",n,s;e.isStatement()?(s="body",n=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(n="argument",r.push(Nfe(e.node))):(n="expression",r.push(HO(e.node)))),this.node.body=vfe(r);let a=this.get(i);return bfe.setup.call(e,a,s?a.node[s]:a.node,s,n),this.node}zn.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function qfe(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");tD(this)}function Wfe(e,t){e.node.type=t}function Jfe({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(i=>(i=arguments[0])==null?void 0:i.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!r){var n;i=(n=i.ensureFunctionName(!1))!=null?n:i}let{thisBinding:s,fnPath:a}=tD(i,r,e,t);if(a.ensureBlock(),Wfe(a,"FunctionExpression"),!r){let o=s?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:wfe([])}),a.get("body").unshiftContainer("body",HO(Ia(this.hub.addHelper("newArrowCheck"),[kl(),pt(o?o.name:s)]))),a.replaceWith(Ia(sn(a.node,pt("bind")),[o?pt(o.name):kl()])),a.get("callee.object")}return a}var Xfe=(0,FE.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function tD(e,t=!0,r=!0,i=!0){let n,s=e.findParent(y=>y.isArrowFunctionExpression()?(n??(n=y),!1):y.isFunction()||y.isProgram()||y.isClassProperty({static:!1})||y.isClassPrivateProperty({static:!1})),a=s.isClassMethod({kind:"constructor"});if(s.isClassProperty()||s.isClassPrivateProperty())if(n)s=n;else if(r)e.replaceWith(Ia(BE([],eD(e.node)),[])),s=e.get("callee"),e=s.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:c,newTargetPaths:u,superProps:p,superCalls:d}=rhe(e);if(a&&d.length>0){if(!r)throw d[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw d[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let y=[];s.traverse(Xfe,{allSuperCalls:y});let T=Qfe(s);y.forEach(w=>{let k=pt(T);k.loc=w.node.callee.loc,w.get("callee").replaceWith(k)})}if(c.length>0){let y=Il(s,"arguments",()=>{let T=()=>pt("arguments");return s.scope.path.isProgram()?Tfe(RE("===",$fe("typeof",T()),QO("undefined")),s.scope.buildUndefinedNode(),T()):T()});c.forEach(T=>{let w=pt(y);w.loc=T.node.loc,T.replaceWith(w)})}if(u.length>0){let y=Il(s,"newtarget",()=>Ife(pt("new"),pt("target")));u.forEach(T=>{let w=pt(y);w.loc=T.node.loc,T.replaceWith(w)})}if(p.length>0){if(!r)throw p[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");p.reduce((T,w)=>T.concat(Yfe(w)),[]).forEach(T=>{let w=T.node.computed?"":T.get("property").node.name,k=T.parentPath,C=k.isAssignmentExpression({left:T.node}),D=k.isCallExpression({callee:T.node}),U=k.isTaggedTemplateExpression({tag:T.node}),z=ehe(s,C,w),q=[];if(T.node.computed&&q.push(T.get("property").node),C){let we=k.node.right;q.push(we)}let ye=Ia(pt(z),q);D?(k.unshiftContainer("arguments",kl()),T.replaceWith(sn(ye,pt("call"))),o.push(k.get("arguments.0"))):C?k.replaceWith(ye):U?(T.replaceWith(Ia(sn(ye,pt("bind"),!1),[kl()])),o.push(T.get("arguments.0"))):T.replaceWith(ye)})}let h;return(o.length>0||!t)&&(h=Hfe(s,a),(t||a&&rD(s))&&(o.forEach(y=>{let T=y.isJSX()?Pfe(h):pt(h);T.loc=y.node.loc,y.replaceWith(T)}),t||(h=null))),{thisBinding:h,fnPath:e}}function Zfe(e){return kfe.includes(e)}function Yfe(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,i=r.node.operator.slice(0,-1),n=r.node.right,s=Zfe(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:c}=e.node;r.get("left").replaceWith(sn(o,cs("=",a,c),!0)),r.get("right").replaceWith(t(s?"=":i,sn(o,pt(a.name),!0),n))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(sn(a,o)),r.get("right").replaceWith(t(s?"=":i,sn(a,pt(o.name)),n))}return s?r.replaceWith(_fe(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),n=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,s=[cs("=",i,sn(e.node.object,n?cs("=",n,e.node.property):e.node.property,e.node.computed)),cs("=",sn(e.node.object,n?pt(n.name):e.node.property,e.node.computed),RE(e.parentPath.node.operator[0],pt(i.name),Afe(1)))];e.parentPath.node.prefix||s.push(pt(i.name)),r.replaceWith(Ofe(s));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,i,n){return r==="="?cs("=",i,n):RE(r,i,n)}}function rD(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var Gfe=(0,FE.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,cs("=",pt(r),pt("this"))])))}});function Hfe(e,t){return Il(e,"this",r=>{if(!t||!rD(e))return kl();e.traverse(Gfe,{supers:new WeakSet,thisBinding:r})})}function Qfe(e){return Il(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return BE([Cfe(t)],Ia(ME(),[Dfe(pt(t.name))]))})}function ehe(e,t,r){return Il(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let n=[],s;if(r)s=sn(ME(),pt(r));else{let a=e.scope.generateUidIdentifier("prop");n.unshift(a),s=sn(ME(),pt(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");n.push(a),s=cs("=",s,pt(a.name))}return BE(n,s)})}function Il(e,t,r){let i="binding:"+t,n=e.getData(i);if(!n){let s=e.scope.generateUidIdentifier(t);n=s.name,e.setData(i,n),e.scope.push({id:s,init:r(n)})}return n}var the=(0,FE.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});function rhe(e){let t=[],r=[],i=[],n=[],s=[];return e.traverse(the,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:n,superCalls:s}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:n,superCalls:s}}function nhe(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let n=e.isFunctionDeclaration()||e.isClassDeclaration(),s=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,c=!1;o?s&&a.hasBinding(o.name)&&(c=!0,o=a.generateUidIdentifier(o.name)):(c=!0,o=a.generateUidIdentifier("default"),(n||s)&&(e.node.id=us(o)));let u=n?e.node:Bfe("var",[zfe(us(o),e.node)]),p=YO(null,[GO(us(o),pt("default"))]);return this.insertAfter(p),this.replaceWith(u),c&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(n=>GO(pt(n),pt(n))),i=YO(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var ihe={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};function she(e){if(this.node.id)return this;let t=Ffe(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=jfe(r.replace(/[/ ]/g,"_"));let i=pt(r);Ufe(i,t.originalNode);let n={needsRename:!1,name:r},{scope:s}=this,a=s.getOwnBinding(r);if(a?a.kind==="param"&&(n.needsRename=!0):(s.parent.hasBinding(r)||s.hasGlobal(r))&&this.traverse(ihe,n),!n.needsRename)return this.node.id=i,s.getProgramParent().references[i.name]=!0,this;if(s.hasBinding(i.name)&&!s.hasGlobal(i.name))return s.rename(i.name),this.node.id=i,s.getProgramParent().references[i.name]=!0,this;if(!Lfe(this.node))return null;let o=s.generateUidIdentifier(i.name),c=[];for(let p=0,d=ahe(this.node);p<d;p++)c.push(s.generateUidIdentifier("x"));let u=Sfe.default.expression.ast`
|
|
43
|
+
(function (${o}) {
|
|
44
|
+
function ${i}(${c}) {
|
|
45
|
+
return ${us(o)}.apply(this, arguments);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
${us(i)}.toString = function () {
|
|
49
|
+
return ${us(o)}.toString();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return ${us(i)};
|
|
53
|
+
})(${eD(this.node)})
|
|
54
|
+
`;return this.replaceWith(u)[0].get("arguments.0")}function ahe(e){let t=e.params.findIndex(r=>Rfe(r)||Mfe(r));return t===-1?e.params.length:t}});var cD=R(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt._guessExecutionStatusRelativeTo=Ihe;Dt._resolve=lD;Dt.canHaveVariableDeclarationOrExpression=She;Dt.canSwapBetweenExpressionAndStatement=bhe;Dt.getSource=Phe;Dt.isCompletionRecord=vhe;Dt.isConstantExpression=Nhe;Dt.isInStrictMode=Ohe;Dt.isNodeType=xhe;Dt.isStatementOrBlock=The;Dt.isStatic=ghe;Dt.matchesPattern=yhe;Dt.referencesImport=Ehe;Dt.resolve=Che;Dt.willIMaybeExecuteBefore=_he;var ohe=Ee(),{STATEMENT_OR_BLOCK_KEYS:lhe,VISITOR_KEYS:che,isBlockStatement:oD,isExpression:uhe,isIdentifier:phe,isLiteral:dhe,isStringLiteral:fhe,isType:hhe,matchesPattern:mhe}=ohe;function yhe(e,t){return mhe(this.node,e,t)}Dt.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function ghe(){return this.scope.isStatic(this.node)}Dt.is=Dt.has;Dt.isnt=function(t){return!this.has(t)};Dt.equals=function(t,r){return this.node[t]===r};function xhe(e){return hhe(this.type,e)}function She(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function bhe(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?oD(e):this.isBlockStatement()?uhe(e):!1}function vhe(e){let t=this,r=!0;do{let{type:i,container:n}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return!!e;if(r=!1,Array.isArray(n)&&t.key!==n.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function The(){return this.parentPath.isLabeledStatement()||oD(this.container)?!1:lhe.includes(this.key)}function Ehe(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?fhe(this.node.property,{value:t}):this.node.property.name===t)){let s=this.get("object");return s.isReferencedIdentifier()&&s.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return!1;let i=r.path,n=i.parentPath;if(!n.isImportDeclaration())return!1;if(n.node.source.value===e){if(!t)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&phe(i.node.imported,{name:t}))}function Phe(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function _he(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function iD(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function khe(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function sD(e,t){for(let r=0;r<t;r++){let i=e[r];if(khe(i.parent.type,i.parentKey))return!0}return!1}var aD=Symbol();function Ihe(e){return zE(this,e,new Map)}function zE(e,t,r){let i={this:iD(e),target:iD(t)};if(i.target.node!==i.this.node)return whe(e,i.target,r);let n={target:t.getAncestry(),this:e.getAncestry()};if(n.target.includes(e))return"after";if(n.this.includes(t))return"before";let s,a={target:0,this:0};for(;!s&&a.this<n.this.length;){let p=n.this[a.this];a.target=n.target.indexOf(p),a.target>=0?s=p:a.this++}if(!s)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(sD(n.this,a.this-1)||sD(n.target,a.target-1))return"unknown";let o={this:n.this[a.this-1],target:n.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let c=che[s.type],u={this:c.indexOf(o.this.parentKey),target:c.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function Ahe(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return zE(e,t,r)==="before"?"before":"unknown";let i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";let n=i.referencePaths,s;for(let a of n){if(!!a.find(u=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let c=zE(e,a,r);if(s&&s!==c)return"unknown";s=c}return s}function whe(e,t,r){let i=r.get(e.node),n;if(!i)r.set(e.node,i=new Map);else if(n=i.get(t.node))return n===aD?"unknown":n;i.set(t.node,aD);let s=Ahe(e,t,r);return i.set(t.node,s),s}function Che(e,t){return lD.call(this,e,t)||this}function lD(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let n=i.path.resolve(e,t);return this.find(s=>s.node===n.node)?void 0:n}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!dhe(i))return;let n=i.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){let a=s.get("properties");for(let o of a){if(!o.isProperty())continue;let c=o.get("key"),u=o.isnt("computed")&&c.isIdentifier({name:n});if(u=u||c.isLiteral({value:n}),u)return o.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+n)){let o=s.get("elements")[n];if(o)return o.resolve(e,t)}}}}function Nhe(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function Ohe(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let n of i.directives)if(n.value.value==="use strict")return!0;return!1})}});var hD=R(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt._getKey=dD;Qt._getPattern=fD;Qt.get=Zhe;Qt.getAllNextSiblings=Jhe;Qt.getAllPrevSiblings=Xhe;Qt.getAssignmentIdentifiers=Yhe;Qt.getBindingIdentifierPaths=Qhe;Qt.getBindingIdentifiers=Ghe;Qt.getCompletionRecords=Khe;Qt.getNextSibling=Whe;Qt.getOpposite=Bhe;Qt.getOuterBindingIdentifierPaths=eme;Qt.getOuterBindingIdentifiers=Hhe;Qt.getPrevSibling=qhe;Qt.getSibling=Vhe;var KE=Bn(),Dhe=Ee(),{getAssignmentIdentifiers:$he,getBindingIdentifiers:pD,getOuterBindingIdentifiers:jhe,numericLiteral:Lhe,unaryExpression:Rhe}=Dhe,VE=0,Al=1;function Mhe(e){return{type:VE,path:e}}function Fhe(e){return{type:Al,path:e}}function Bhe(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Aa(e,t,r){return e&&t.push(...wa(e,r)),t}function zhe(e,t,r){let i=[];for(let n=0;n<e.length;n++){let s=e[n],a=wa(s,r),o=[],c=[];for(let u of a)u.type===VE&&o.push(u),u.type===Al&&c.push(u);o.length&&(i=o),t.push(...c)}return t.push(...i),t}function Uhe(e){e.forEach(t=>{t.type=Al})}function UE(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(Rhe("void",Lhe(0))):r.path.remove())})}function uD(e,t){let r=[];if(t.canHaveBreak){let i=[];for(let n=0;n<e.length;n++){let s=e[n],a=Object.assign({},t,{inCaseClause:!1});s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=wa(s,a);if(o.length>0&&o.every(c=>c.type===Al)){i.length>0&&o.every(c=>c.path.isBreakStatement({label:null}))?(Uhe(i),r.push(...i),i.some(c=>c.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||UE(o,!0)),t.shouldPreserveBreak||UE(o,!1)):(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak&&UE(o,!0));break}if(n===e.length-1)r.push(...o);else{i=[];for(let c=0;c<o.length;c++){let u=o[c];u.type===Al&&r.push(u),u.type===VE&&i.push(u)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let n=wa(e[i],t);if(n.length>1||n.length===1&&!n[0].path.isVariableDeclaration()&&!n[0].path.isEmptyStatement()){r.push(...n);break}}return r}function wa(e,t){let r=[];if(e.isIfStatement())r=Aa(e.get("consequent"),r,t),r=Aa(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Aa(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return uD(e.get("body"),t);if(e.isFunction())return wa(e.get("body"),t);if(e.isTryStatement())r=Aa(e.get("block"),r,t),r=Aa(e.get("handler"),r,t);else{if(e.isCatchClause())return Aa(e.get("body"),r,t);if(e.isSwitchStatement())return zhe(e.get("cases"),r,t);if(e.isSwitchCase())return uD(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(Fhe(e)):r.push(Mhe(e))}}return r}function Khe(e=!1){return wa(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(r=>r.path)}function Vhe(e){return KE.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function qhe(){return this.getSibling(this.key-1)}function Whe(){return this.getSibling(this.key+1)}function Jhe(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function Xhe(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function Zhe(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?dD.call(this,e,t):fD.call(this,r,t)}function dD(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((n,s)=>KE.default.get({listKey:e,parentPath:this,parent:r,container:i,key:s}).setContext(t)):KE.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function fD(e,t){let r=this;for(let i of e)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,t);return r}function Yhe(){return $he(this.node)}function Ghe(e){return pD(this.node,e)}function Hhe(e){return jhe(this.node,e)}function Qhe(e=!1,t=!1){let i=[this],n=Object.create(null);for(;i.length;){let s=i.shift();if(!s||!s.node)continue;let a=pD.keys[s.node.type];if(s.isIdentifier()){e?(n[s.node.name]=n[s.node.name]||[]).push(s):n[s.node.name]=s;continue}if(s.isExportDeclaration()){let o=s.get("declaration");o.isDeclaration()&&i.push(o);continue}if(t){if(s.isFunctionDeclaration()){i.push(s.get("id"));continue}if(s.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let c=a[o],u=s.get(c);Array.isArray(u)?i.push(...u):u.node&&i.push(u)}}return n}function eme(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var yD=R(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.addComment=sme;wl.addComments=ame;wl.shareCommentsWithSiblings=ime;var tme=Ee(),{addComment:rme,addComments:nme}=tme;function ime(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let i=this.getSibling(this.key-1),n=this.getSibling(this.key+1),s=!!i.node,a=!!n.node;s&&(r&&i.addComments("trailing",mD(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&n.addComments("leading",mD(t,n.node.leadingComments)),r&&!s&&n.addComments("leading",r))}function mD(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function sme(e,t,r){rme(this.node,e,t,r)}function ame(e,t){nme(this.node,e,t)}});var Bn=R(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=In.SHOULD_STOP=In.SHOULD_SKIP=In.REMOVED=void 0;var ome=GS(),lme=UA(),cme=rn(),ume=mT(),SD=Ee(),Pd=SD,pme=rs(),dme=rE(),_n=NN(),Ca=GN(),Na=hE(),gD=LO(),ps=nD(),Lt=cD(),bD=Ur(),$t=bD,Oa=md(),kn=yd(),gr=hD(),qE=yD(),fme=lT(),{validate:hme}=SD,xD=lme("babel"),zDe=In.REMOVED=1,UDe=In.SHOULD_STOP=2,KDe=In.SHOULD_SKIP=4,Un=In.default=class vD{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:i,container:n,listKey:s,key:a}){if(!t&&r&&(t=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=n[a],c=pme.getOrCreateCachedPaths(i,r),u=c.get(o);return u||(u=new vD(t,i),o&&c.set(o,u)),bD.setup.call(u,r,n,s,a),u}getScope(t){return this.isScope()?new ume.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let i=this.data[t];return i===void 0&&r!==void 0&&(i=this.data[t]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,cme.default)(this.node,t,this.scope,r,this)}set(t,r){hme(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),t.unshift(i)}while(r=r.parentPath);return t.join(".")}debug(t){xD.enabled&&xD(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,dme.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},mme={findParent:_n.findParent,find:_n.find,getFunctionParent:_n.getFunctionParent,getStatementParent:_n.getStatementParent,getEarliestCommonAncestorFrom:_n.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:_n.getDeepestCommonAncestorFrom,getAncestry:_n.getAncestry,isAncestor:_n.isAncestor,isDescendant:_n.isDescendant,inType:_n.inType,getTypeAnnotation:Ca.getTypeAnnotation,isBaseType:Ca.isBaseType,couldBeBaseType:Ca.couldBeBaseType,baseTypeStrictlyMatches:Ca.baseTypeStrictlyMatches,isGenericType:Ca.isGenericType,replaceWithMultiple:Na.replaceWithMultiple,replaceWithSourceString:Na.replaceWithSourceString,replaceWith:Na.replaceWith,replaceExpressionWithStatements:Na.replaceExpressionWithStatements,replaceInline:Na.replaceInline,evaluateTruthy:gD.evaluateTruthy,evaluate:gD.evaluate,toComputedKey:ps.toComputedKey,ensureBlock:ps.ensureBlock,unwrapFunctionEnvironment:ps.unwrapFunctionEnvironment,arrowFunctionToExpression:ps.arrowFunctionToExpression,splitExportDeclaration:ps.splitExportDeclaration,ensureFunctionName:ps.ensureFunctionName,matchesPattern:Lt.matchesPattern,isStatic:Lt.isStatic,isNodeType:Lt.isNodeType,canHaveVariableDeclarationOrExpression:Lt.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Lt.canSwapBetweenExpressionAndStatement,isCompletionRecord:Lt.isCompletionRecord,isStatementOrBlock:Lt.isStatementOrBlock,referencesImport:Lt.referencesImport,getSource:Lt.getSource,willIMaybeExecuteBefore:Lt.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Lt._guessExecutionStatusRelativeTo,resolve:Lt.resolve,isConstantExpression:Lt.isConstantExpression,isInStrictMode:Lt.isInStrictMode,isDenylisted:$t.isDenylisted,visit:$t.visit,skip:$t.skip,skipKey:$t.skipKey,stop:$t.stop,setContext:$t.setContext,requeue:$t.requeue,requeueComputedKeyAndDecorators:$t.requeueComputedKeyAndDecorators,remove:Oa.remove,insertBefore:kn.insertBefore,insertAfter:kn.insertAfter,unshiftContainer:kn.unshiftContainer,pushContainer:kn.pushContainer,getOpposite:gr.getOpposite,getCompletionRecords:gr.getCompletionRecords,getSibling:gr.getSibling,getPrevSibling:gr.getPrevSibling,getNextSibling:gr.getNextSibling,getAllNextSiblings:gr.getAllNextSiblings,getAllPrevSiblings:gr.getAllPrevSiblings,get:gr.get,getAssignmentIdentifiers:gr.getAssignmentIdentifiers,getBindingIdentifiers:gr.getBindingIdentifiers,getOuterBindingIdentifiers:gr.getOuterBindingIdentifiers,getBindingIdentifierPaths:gr.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:gr.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:qE.shareCommentsWithSiblings,addComment:qE.addComment,addComments:qE.addComments};Object.assign(Un.prototype,mme);Un.prototype.arrowFunctionToShadowed=ps.arrowFunctionToShadowed;Object.assign(Un.prototype,{has:Lt.has,is:Lt.is,isnt:Lt.isnt,equals:Lt.equals,hoist:kn.hoist,updateSiblingKeys:kn.updateSiblingKeys,call:$t.call,isBlacklisted:$t.isBlacklisted,setScope:$t.setScope,resync:$t.resync,popContext:$t.popContext,pushContext:$t.pushContext,setup:$t.setup,setKey:$t.setKey});Un.prototype._guessExecutionStatusRelativeToDifferentFunctions=Lt._guessExecutionStatusRelativeTo;Un.prototype._guessExecutionStatusRelativeToDifferentFunctions=Lt._guessExecutionStatusRelativeTo;Object.assign(Un.prototype,{_getTypeAnnotation:Ca._getTypeAnnotation,_replaceWith:Na._replaceWith,_resolve:Lt._resolve,_call:$t._call,_resyncParent:$t._resyncParent,_resyncKey:$t._resyncKey,_resyncList:$t._resyncList,_resyncRemoved:$t._resyncRemoved,_getQueueContexts:$t._getQueueContexts,_removeFromScope:Oa._removeFromScope,_callRemovalHooks:Oa._callRemovalHooks,_remove:Oa._remove,_markRemoved:Oa._markRemoved,_assertUnremoved:Oa._assertUnremoved,_containerInsert:kn._containerInsert,_containerInsertBefore:kn._containerInsertBefore,_containerInsertAfter:kn._containerInsertAfter,_verifyNodeList:kn._verifyNodeList,_getKey:gr._getKey,_getPattern:gr._getPattern});for(let e of Pd.TYPES){let t=`is${e}`,r=Pd[t];Un.prototype[t]=function(i){return r(this.node,i)},Un.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(Un.prototype,fme);for(let e of Object.keys(ome))e.startsWith("_")||Pd.TYPES.includes(e)||Pd.TYPES.push(e)});var JE=R(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.default=void 0;var WE=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};_d.default=WE});var TD=R(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.default=void 0;var yme=Bn(),gme=Ee(),XE=Ur(),xme=JE(),{VISITOR_KEYS:Sme}=gme,ZE=class{constructor(t,r,i,n){this.queue=null,this.priorityQueue=null,this.parentPath=n,this.scope=t,this.state=i,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let i=Sme[t.type];if(!(i!=null&&i.length))return!1;for(let n of i)if(t[n])return!0;return!1}create(t,r,i,n){let{parentPath:s}=this,a=s==null?t.type==="Program"||t.type==="File"?new xme.default:void 0:s.hub;return yme.default.get({parentPath:s,parent:t,container:r,key:i,listKey:n,hub:a})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,i){if(t.length===0)return!1;let n=[];for(let s=0;s<t.length;s++){let a=t[s];a&&this.shouldVisit(a)&&n.push(this.create(r,t,s,i))}return this.visitQueue(n)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=!1,n=0;for(;n<t.length;){let s=t[n];if(n++,XE.resync.call(s),(s.contexts.length===0||s.contexts[s.contexts.length-1]!==this)&&XE.pushContext.call(s,this),s.key===null)continue;let{node:a}=s;if(!r.has(a)){if(a&&r.add(a),s.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let s=0;s<n;s++)XE.popContext.call(t[s]);return this.queue=null,i}visit(t,r){let i=t[r];return i?Array.isArray(i)?this.visitMultiple(i,t,r):this.visitSingle(t,r):!1}};kd.default=ZE});var Mp=R(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.traverseNode=Eme;var bme=TD(),JDe=Bn(),vme=Ee(),XDe=Ur(),{VISITOR_KEYS:Tme}=vme;function Eme(e,t,r,i,n,s,a){let o=Tme[e.type];if(!o)return!1;let c=new bme.default(r,t,i,n);if(a)return s!=null&&s[n.parentKey]?!1:c.visitQueue([n]);for(let u of o)if(!(s!=null&&s[u])&&c.visit(e,u))return!0;return!1}});var Ur=R(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt._call=HE;Tt._forceSetScope=Nme;Tt._getQueueContexts=Bme;Tt._resyncKey=AD;Tt._resyncList=wD;Tt._resyncParent=ID;Tt._resyncRemoved=$me;Tt.call=GE;Tt.isDenylisted=_D;Tt.popContext=jme;Tt.pushContext=Lme;Tt.requeue=Mme;Tt.requeueComputedKeyAndDecorators=Fme;Tt.resync=Dme;Tt.setContext=Ome;Tt.setKey=Id;Tt.setScope=kD;Tt.setup=Rme;Tt.skip=Ame;Tt.skipKey=wme;Tt.stop=Cme;Tt.visit=Ime;var Pme=Mp(),ED=Bn(),_me=md(),kme=Ee();function GE(e){let t=this.opts;if(this.debug(e),this.node&&HE.call(this,t[e]))return!0;if(this.node){var r;return HE.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function HE(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let i=t.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function _D(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t?.includes(this.node.type)}Tt.isBlacklisted=_D;function PD(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function Ime(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||GE.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(PD(this,r),this.debug("Recursing into..."),this.shouldStop=(0,Pme.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),PD(this,r),GE.call(this,"exit"),this.shouldStop)}function Ame(){this.shouldSkip=!0}function wme(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function Cme(){this._traverseFlags|=ED.SHOULD_SKIP|ED.SHOULD_STOP}function Nme(){var e;let t=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())&&(t=t.parentPath);let r;for(;t&&!r;)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function kD(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var n;if((n=r.opts)!=null&&n.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(t=this.scope)==null||t.init()}function Ome(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),kD.call(this),this}function Dme(){this.removed||(ID.call(this),wD.call(this),AD.call(this))}function ID(){this.parentPath&&(this.parent=this.parentPath.node)}function AD(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){Id.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Id.call(this,e);return}this.key=null}}function wD(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function $me(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&_me._markRemoved.call(this)}function jme(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function Lme(e){this.contexts.push(e),this.setContext(e)}function Rme(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Id.call(this,i)}function Id(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function Mme(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function Fme(){let{context:e,node:t}=this;if(!kme.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function Bme(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var rn=R(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Object.defineProperty(Kn,"Hub",{enumerable:!0,get:function(){return qme.default}});Object.defineProperty(Kn,"NodePath",{enumerable:!0,get:function(){return Kme.default}});Object.defineProperty(Kn,"Scope",{enumerable:!0,get:function(){return Vme.default}});Kn.visitors=Kn.default=void 0;Ur();var Nl=dl();Kn.visitors=Nl;var zme=Ee(),Ume=rs(),CD=Mp(),Kme=Bn(),Vme=mT(),qme=JE(),{VISITOR_KEYS:Wme,removeProperties:Jme,traverseFast:Cl}=zme;function an(e,t={},r,i,n,s){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!n&&s)throw new Error("visitSelf can only be used when providing a NodePath.");Wme[e.type]&&(Nl.explode(t),(0,CD.traverseNode)(e,t,r,i,n,void 0,s))}}var GDe=Kn.default=an;an.visitors=Nl;an.verify=Nl.verify;an.explode=Nl.explode;an.cheap=function(e,t){Cl(e,t)};an.node=function(e,t,r,i,n,s){(0,CD.traverseNode)(e,t,r,i,n,s)};an.clearNode=function(e,t){Jme(e,t)};an.removeProperties=function(e,t){return Cl(e,an.clearNode,t),e};an.hasType=function(e,t,r){return r!=null&&r.includes(e.type)?!1:e.type===t?!0:Cl(e,function(i){if(r!=null&&r.includes(i.type))return Cl.skip;if(i.type===t)return Cl.stop})};an.cache=Ume});var l={};dn(l,{$brand:()=>Hf,$input:()=>Sy,$output:()=>xy,NEVER:()=>Gf,TimePrecision:()=>Ey,ZodAny:()=>dx,ZodArray:()=>yx,ZodBase64:()=>Tu,ZodBase64URL:()=>Eu,ZodBigInt:()=>ea,ZodBigIntFormat:()=>ku,ZodBoolean:()=>Qs,ZodCIDRv4:()=>bu,ZodCIDRv6:()=>vu,ZodCUID:()=>fu,ZodCUID2:()=>hu,ZodCatch:()=>Mx,ZodCodec:()=>No,ZodCustom:()=>Oo,ZodCustomStringFormat:()=>Gs,ZodDate:()=>ko,ZodDefault:()=>Ox,ZodDiscriminatedUnion:()=>xx,ZodE164:()=>Pu,ZodEmail:()=>uu,ZodEmoji:()=>pu,ZodEnum:()=>Zs,ZodError:()=>HM,ZodExactOptional:()=>wx,ZodFile:()=>Ix,ZodFirstPartyTypeKind:()=>Gx,ZodFunction:()=>Xx,ZodGUID:()=>vo,ZodIPv4:()=>xu,ZodIPv6:()=>Su,ZodISODate:()=>iu,ZodISODateTime:()=>nu,ZodISODuration:()=>au,ZodISOTime:()=>su,ZodIntersection:()=>Sx,ZodIssueCode:()=>eF,ZodJWT:()=>_u,ZodKSUID:()=>gu,ZodLazy:()=>qx,ZodLiteral:()=>kx,ZodMAC:()=>sx,ZodMap:()=>Px,ZodNaN:()=>Bx,ZodNanoID:()=>du,ZodNever:()=>hx,ZodNonOptional:()=>Ou,ZodNull:()=>ux,ZodNullable:()=>Nx,ZodNumber:()=>Hs,ZodNumberFormat:()=>Fi,ZodObject:()=>Ao,ZodOptional:()=>Nu,ZodPipe:()=>Co,ZodPrefault:()=>$x,ZodPreprocess:()=>zx,ZodPromise:()=>Jx,ZodReadonly:()=>Ux,ZodRealError:()=>Er,ZodRecord:()=>Xs,ZodSet:()=>_x,ZodString:()=>Ys,ZodStringFormat:()=>mt,ZodSuccess:()=>Rx,ZodSymbol:()=>lx,ZodTemplateLiteral:()=>Vx,ZodTransform:()=>Ax,ZodTuple:()=>vx,ZodType:()=>$e,ZodULID:()=>mu,ZodURL:()=>_o,ZodUUID:()=>yn,ZodUndefined:()=>cx,ZodUnion:()=>wo,ZodUnknown:()=>fx,ZodVoid:()=>mx,ZodXID:()=>yu,ZodXor:()=>gx,_ZodString:()=>cu,_default:()=>Dx,_function:()=>cI,any:()=>Bk,array:()=>Io,base64:()=>Ek,base64url:()=>Pk,bigint:()=>jk,boolean:()=>ox,catch:()=>Fx,check:()=>uI,cidrv4:()=>vk,cidrv6:()=>Tk,clone:()=>ar,codec:()=>sI,coerce:()=>Hx,config:()=>Ct,core:()=>jn,cuid:()=>fk,cuid2:()=>hk,custom:()=>pI,date:()=>Uk,decode:()=>Hg,decodeAsync:()=>ex,describe:()=>dI,discriminatedUnion:()=>Xk,e164:()=>_k,email:()=>nk,emoji:()=>pk,encode:()=>Gg,encodeAsync:()=>Qg,endsWith:()=>Ms,enum:()=>wu,exactOptional:()=>Cx,file:()=>tI,flattenError:()=>ao,float32:()=>Nk,float64:()=>Ok,formatError:()=>oo,fromJSONSchema:()=>SI,function:()=>cI,getErrorMap:()=>rF,globalRegistry:()=>Zt,gt:()=>hn,gte:()=>lr,guid:()=>ik,hash:()=>Ck,hex:()=>wk,hostname:()=>Ak,httpUrl:()=>uk,includes:()=>Ls,instanceof:()=>hI,int:()=>ou,int32:()=>Dk,int64:()=>Lk,intersection:()=>bx,invertCodec:()=>aI,ipv4:()=>xk,ipv6:()=>bk,iso:()=>Js,json:()=>yI,jwt:()=>kk,keyof:()=>Kk,ksuid:()=>gk,lazy:()=>Wx,length:()=>Ri,literal:()=>eI,locales:()=>yo,looseObject:()=>Wk,looseRecord:()=>Yk,lowercase:()=>$s,lt:()=>fn,lte:()=>Nr,mac:()=>Sk,map:()=>Gk,maxLength:()=>Li,maxSize:()=>ii,meta:()=>fI,mime:()=>Fs,minLength:()=>$n,minSize:()=>mn,multipleOf:()=>ni,nan:()=>iI,nanoid:()=>dk,nativeEnum:()=>Qk,negative:()=>Jc,never:()=>Iu,nonnegative:()=>Zc,nonoptional:()=>Lx,nonpositive:()=>Xc,normalize:()=>Bs,null:()=>px,nullable:()=>Eo,nullish:()=>rI,number:()=>ax,object:()=>Vk,optional:()=>To,overwrite:()=>Gr,parse:()=>Jg,parseAsync:()=>Xg,partialRecord:()=>Zk,pipe:()=>lu,positive:()=>Wc,prefault:()=>jx,preprocess:()=>gI,prettifyError:()=>ph,promise:()=>lI,property:()=>Yc,readonly:()=>Kx,record:()=>Ex,refine:()=>Zx,regex:()=>Ds,regexes:()=>Cr,registry:()=>_c,safeDecode:()=>rx,safeDecodeAsync:()=>ix,safeEncode:()=>tx,safeEncodeAsync:()=>nx,safeParse:()=>Zg,safeParseAsync:()=>Yg,set:()=>Hk,setErrorMap:()=>tF,size:()=>ji,slugify:()=>Vs,startsWith:()=>Rs,strictObject:()=>qk,string:()=>bo,stringFormat:()=>Ik,stringbool:()=>mI,success:()=>nI,superRefine:()=>Yx,symbol:()=>Mk,templateLiteral:()=>oI,toJSONSchema:()=>eu,toLowerCase:()=>Us,toUpperCase:()=>Ks,transform:()=>Cu,treeifyError:()=>uh,trim:()=>zs,tuple:()=>Tx,uint32:()=>$k,uint64:()=>Rk,ulid:()=>mk,undefined:()=>Fk,union:()=>Au,unknown:()=>Mi,uppercase:()=>js,url:()=>ck,util:()=>Q,uuid:()=>sk,uuidv4:()=>ak,uuidv6:()=>ok,uuidv7:()=>lk,void:()=>zk,xid:()=>yk,xor:()=>Jk});var jn={};dn(jn,{$ZodAny:()=>Bm,$ZodArray:()=>qm,$ZodAsyncError:()=>Yr,$ZodBase64:()=>Cm,$ZodBase64URL:()=>Nm,$ZodBigInt:()=>gc,$ZodBigIntFormat:()=>Lm,$ZodBoolean:()=>po,$ZodCIDRv4:()=>Im,$ZodCIDRv6:()=>Am,$ZodCUID:()=>mm,$ZodCUID2:()=>ym,$ZodCatch:()=>cy,$ZodCheck:()=>St,$ZodCheckBigIntFormat:()=>qh,$ZodCheckEndsWith:()=>nm,$ZodCheckGreaterThan:()=>pc,$ZodCheckIncludes:()=>tm,$ZodCheckLengthEquals:()=>Gh,$ZodCheckLessThan:()=>uc,$ZodCheckLowerCase:()=>Qh,$ZodCheckMaxLength:()=>Zh,$ZodCheckMaxSize:()=>Wh,$ZodCheckMimeType:()=>sm,$ZodCheckMinLength:()=>Yh,$ZodCheckMinSize:()=>Jh,$ZodCheckMultipleOf:()=>Kh,$ZodCheckNumberFormat:()=>Vh,$ZodCheckOverwrite:()=>am,$ZodCheckProperty:()=>im,$ZodCheckRegex:()=>Hh,$ZodCheckSizeEquals:()=>Xh,$ZodCheckStartsWith:()=>rm,$ZodCheckStringFormat:()=>Ns,$ZodCheckUpperCase:()=>em,$ZodCodec:()=>ho,$ZodCustom:()=>gy,$ZodCustomStringFormat:()=>$m,$ZodDate:()=>Vm,$ZodDefault:()=>sy,$ZodDiscriminatedUnion:()=>Xm,$ZodE164:()=>Om,$ZodEmail:()=>pm,$ZodEmoji:()=>fm,$ZodEncodeError:()=>Hn,$ZodEnum:()=>Qm,$ZodError:()=>so,$ZodExactOptional:()=>ny,$ZodFile:()=>ty,$ZodFunction:()=>hy,$ZodGUID:()=>cm,$ZodIPv4:()=>Pm,$ZodIPv6:()=>_m,$ZodISODate:()=>vm,$ZodISODateTime:()=>bm,$ZodISODuration:()=>Em,$ZodISOTime:()=>Tm,$ZodIntersection:()=>Zm,$ZodJWT:()=>Dm,$ZodKSUID:()=>Sm,$ZodLazy:()=>yy,$ZodLiteral:()=>ey,$ZodMAC:()=>km,$ZodMap:()=>Gm,$ZodNaN:()=>uy,$ZodNanoID:()=>hm,$ZodNever:()=>Um,$ZodNonOptional:()=>oy,$ZodNull:()=>Fm,$ZodNullable:()=>iy,$ZodNumber:()=>yc,$ZodNumberFormat:()=>jm,$ZodObject:()=>H0,$ZodObjectJIT:()=>Wm,$ZodOptional:()=>Sc,$ZodPipe:()=>bc,$ZodPrefault:()=>ay,$ZodPreprocess:()=>py,$ZodPromise:()=>my,$ZodReadonly:()=>dy,$ZodRealError:()=>Tr,$ZodRecord:()=>Ym,$ZodRegistry:()=>Pc,$ZodSet:()=>Hm,$ZodString:()=>$i,$ZodStringFormat:()=>ht,$ZodSuccess:()=>ly,$ZodSymbol:()=>Rm,$ZodTemplateLiteral:()=>fy,$ZodTransform:()=>ry,$ZodTuple:()=>xc,$ZodType:()=>Ne,$ZodULID:()=>gm,$ZodURL:()=>dm,$ZodUUID:()=>um,$ZodUndefined:()=>Mm,$ZodUnion:()=>fo,$ZodUnknown:()=>zm,$ZodVoid:()=>Km,$ZodXID:()=>xm,$ZodXor:()=>Jm,$brand:()=>Hf,$constructor:()=>N,$input:()=>Sy,$output:()=>xy,Doc:()=>uo,JSONSchema:()=>ek,JSONSchemaGenerator:()=>tu,NEVER:()=>Gf,TimePrecision:()=>Ey,_any:()=>Vy,_array:()=>Gy,_base64:()=>Uc,_base64url:()=>Kc,_bigint:()=>Ry,_boolean:()=>jy,_catch:()=>VM,_check:()=>Q_,_cidrv4:()=>Bc,_cidrv6:()=>zc,_coercedBigint:()=>My,_coercedBoolean:()=>Ly,_coercedDate:()=>Zy,_coercedNumber:()=>wy,_coercedString:()=>vy,_cuid:()=>Dc,_cuid2:()=>$c,_custom:()=>Qy,_date:()=>Xy,_decode:()=>tc,_decodeAsync:()=>nc,_default:()=>zM,_discriminatedUnion:()=>wM,_e164:()=>Vc,_email:()=>kc,_emoji:()=>Nc,_encode:()=>ec,_encodeAsync:()=>rc,_endsWith:()=>Ms,_enum:()=>jM,_file:()=>Hy,_float32:()=>Ny,_float64:()=>Oy,_gt:()=>hn,_gte:()=>lr,_guid:()=>go,_includes:()=>Ls,_int:()=>Cy,_int32:()=>Dy,_int64:()=>Fy,_intersection:()=>CM,_ipv4:()=>Mc,_ipv6:()=>Fc,_isoDate:()=>_y,_isoDateTime:()=>Py,_isoDuration:()=>Iy,_isoTime:()=>ky,_jwt:()=>qc,_ksuid:()=>Rc,_lazy:()=>XM,_length:()=>Ri,_literal:()=>RM,_lowercase:()=>$s,_lt:()=>fn,_lte:()=>Nr,_mac:()=>Ty,_map:()=>DM,_max:()=>Nr,_maxLength:()=>Li,_maxSize:()=>ii,_mime:()=>Fs,_min:()=>lr,_minLength:()=>$n,_minSize:()=>mn,_multipleOf:()=>ni,_nan:()=>Yy,_nanoid:()=>Oc,_nativeEnum:()=>LM,_negative:()=>Jc,_never:()=>Wy,_nonnegative:()=>Zc,_nonoptional:()=>UM,_nonpositive:()=>Xc,_normalize:()=>Bs,_null:()=>Ky,_nullable:()=>BM,_number:()=>Ay,_optional:()=>FM,_overwrite:()=>Gr,_parse:()=>Is,_parseAsync:()=>As,_pipe:()=>qM,_positive:()=>Wc,_promise:()=>ZM,_property:()=>Yc,_readonly:()=>WM,_record:()=>OM,_refine:()=>eg,_regex:()=>Ds,_safeDecode:()=>sc,_safeDecodeAsync:()=>oc,_safeEncode:()=>ic,_safeEncodeAsync:()=>ac,_safeParse:()=>ws,_safeParseAsync:()=>Cs,_set:()=>$M,_size:()=>ji,_slugify:()=>Vs,_startsWith:()=>Rs,_string:()=>by,_stringFormat:()=>qs,_stringbool:()=>ig,_success:()=>KM,_superRefine:()=>tg,_symbol:()=>zy,_templateLiteral:()=>JM,_toLowerCase:()=>Us,_toUpperCase:()=>Ks,_transform:()=>MM,_trim:()=>zs,_tuple:()=>NM,_uint32:()=>$y,_uint64:()=>By,_ulid:()=>jc,_undefined:()=>Uy,_union:()=>IM,_unknown:()=>qy,_uppercase:()=>js,_url:()=>xo,_uuid:()=>Ic,_uuidv4:()=>Ac,_uuidv6:()=>wc,_uuidv7:()=>Cc,_void:()=>Jy,_xid:()=>Lc,_xor:()=>AM,clone:()=>ar,config:()=>Ct,createStandardJSONSchemaMethod:()=>Ws,createToJSONSchemaMethod:()=>sg,decode:()=>ZL,decodeAsync:()=>GL,describe:()=>rg,encode:()=>XL,encodeAsync:()=>YL,extractDefs:()=>ai,finalize:()=>oi,flattenError:()=>ao,formatError:()=>oo,globalConfig:()=>Ni,globalRegistry:()=>Zt,initializeContext:()=>si,isValidBase64:()=>wm,isValidBase64URL:()=>X0,isValidJWT:()=>Z0,locales:()=>yo,meta:()=>ng,parse:()=>Hl,parseAsync:()=>Ql,prettifyError:()=>ph,process:()=>ct,regexes:()=>Cr,registry:()=>_c,safeDecode:()=>QL,safeDecodeAsync:()=>tR,safeEncode:()=>HL,safeEncodeAsync:()=>eR,safeParse:()=>dh,safeParseAsync:()=>fh,toDotPath:()=>I0,toJSONSchema:()=>eu,treeifyError:()=>uh,util:()=>Q,version:()=>om});var T0,Gf=Object.freeze({status:"aborted"});function N(e,t,r){function i(o,c){if(o._zod||Object.defineProperty(o,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),o._zod.traits.has(e))return;o._zod.traits.add(e),t(o,c);let u=a.prototype,p=Object.keys(u);for(let d=0;d<p.length;d++){let h=p[d];h in o||(o[h]=u[h].bind(o))}}let n=r?.Parent??Object;class s extends n{}Object.defineProperty(s,"name",{value:e});function a(o){var c;let u=r?.Parent?new s:this;i(u,o),(c=u._zod).deferred??(c.deferred=[]);for(let p of u._zod.deferred)p();return u}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:o=>r?.Parent&&o instanceof r.Parent?!0:o?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Hf=Symbol("zod_brand"),Yr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Hn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(T0=globalThis).__zod_globalConfig??(T0.__zod_globalConfig={});var Ni=globalThis.__zod_globalConfig;function Ct(e){return e&&Object.assign(Ni,e),Ni}var Q={};dn(Q,{BIGINT_FORMAT_RANGES:()=>lh,Class:()=>eh,NUMBER_FORMAT_RANGES:()=>oh,aborted:()=>ri,allowsEval:()=>nh,assert:()=>kL,assertEqual:()=>TL,assertIs:()=>PL,assertNever:()=>_L,assertNotEqual:()=>EL,assignProp:()=>ei,base64ToUint8Array:()=>P0,base64urlToUint8Array:()=>KL,cached:()=>_s,captureStackTrace:()=>Gl,cleanEnum:()=>UL,cleanRegex:()=>to,clone:()=>ar,cloneDef:()=>AL,createTransparentProxy:()=>$L,defineLazy:()=>Be,esc:()=>Yl,escapeRegex:()=>Mr,explicitlyAborted:()=>ch,extend:()=>RL,finalizeIssue:()=>or,floatSafeRemainder:()=>th,getElementAtPath:()=>wL,getEnumValues:()=>eo,getLengthableOrigin:()=>io,getParsedType:()=>DL,getSizableOrigin:()=>no,hexToUint8Array:()=>qL,isObject:()=>Oi,isPlainObject:()=>ti,issue:()=>ks,joinValues:()=>F,jsonStringifyReplacer:()=>Ps,merge:()=>FL,mergeDefs:()=>Dn,normalizeParams:()=>ne,nullish:()=>Qn,numKeys:()=>OL,objectClone:()=>IL,omit:()=>LL,optionalKeys:()=>ah,parsedType:()=>H,partial:()=>BL,pick:()=>jL,prefixIssues:()=>vr,primitiveTypes:()=>sh,promiseAllObject:()=>CL,propertyKeyTypes:()=>ro,randomString:()=>NL,required:()=>zL,safeExtend:()=>ML,shallowClone:()=>ih,slugify:()=>rh,stringifyPrimitive:()=>Y,uint8ArrayToBase64:()=>_0,uint8ArrayToBase64url:()=>VL,uint8ArrayToHex:()=>WL,unwrapMessage:()=>Qa});function TL(e){return e}function EL(e){return e}function PL(e){}function _L(e){throw new Error("Unexpected value in exhaustive check")}function kL(e){}function eo(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,n])=>t.indexOf(+i)===-1).map(([i,n])=>n)}function F(e,t="|"){return e.map(r=>Y(r)).join(t)}function Ps(e,t){return typeof t=="bigint"?t.toString():t}function _s(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Qn(e){return e==null}function to(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function th(e,t){let r=e/t,i=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}var E0=Symbol("evaluating");function Be(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==E0)return i===void 0&&(i=E0,i=r()),i},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function IL(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ei(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Dn(...e){let t={};for(let r of e){let i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function AL(e){return Dn(e._zod.def)}function wL(e,t){return t?t.reduce((r,i)=>r?.[i],e):e}function CL(e){let t=Object.keys(e),r=t.map(i=>e[i]);return Promise.all(r).then(i=>{let n={};for(let s=0;s<t.length;s++)n[t[s]]=i[s];return n})}function NL(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function Yl(e){return JSON.stringify(e)}function rh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Gl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Oi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var nh=_s(()=>{if(Ni.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ti(e){if(Oi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Oi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ih(e){return ti(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function OL(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var DL=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},ro=new Set(["string","number","symbol"]),sh=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Mr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ar(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function ne(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function $L(e){let t;return new Proxy({},{get(r,i,n){return t??(t=e()),Reflect.get(t,i,n)},set(r,i,n,s){return t??(t=e()),Reflect.set(t,i,n,s)},has(r,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(r,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(r,i,n){return t??(t=e()),Reflect.defineProperty(t,i,n)}})}function Y(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function ah(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var oh={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},lh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function jL(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let s=Dn(e._zod.def,{get shape(){let a={};for(let o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(a[o]=r.shape[o])}return ei(this,"shape",a),a},checks:[]});return ar(e,s)}function LL(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let s=Dn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let o in t){if(!(o in r.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete a[o]}return ei(this,"shape",a),a},checks:[]});return ar(e,s)}function RL(e,t){if(!ti(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let s=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(s,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Dn(e._zod.def,{get shape(){let s={...e._zod.def.shape,...t};return ei(this,"shape",s),s}});return ar(e,n)}function ML(e,t){if(!ti(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Dn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return ei(this,"shape",i),i}});return ar(e,r)}function FL(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Dn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return ei(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ar(e,r)}function BL(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Dn(t._zod.def,{get shape(){let o=t._zod.def.shape,c={...o};if(r)for(let u in r){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(let u in o)c[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return ei(this,"shape",c),c},checks:[]});return ar(t,a)}function zL(e,t,r){let i=Dn(t._zod.def,{get shape(){let n=t._zod.def.shape,s={...n};if(r)for(let a in r){if(!(a in s))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)s[a]=new e({type:"nonoptional",innerType:n[a]});return ei(this,"shape",s),s}});return ar(t,i)}function ri(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ch(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function vr(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function Qa(e){return typeof e=="string"?e:e?.message}function or(e,t,r){let i=e.message?e.message:Qa(e.inst?._zod.def?.error?.(e))??Qa(t?.error?.(e))??Qa(r.customError?.(e))??Qa(r.localeError?.(e))??"Invalid input",{inst:n,continue:s,input:a,...o}=e;return o.path??(o.path=[]),o.message=i,t?.reportInput&&(o.input=a),o}function no(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function io(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function H(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function ks(...e){let[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}function UL(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function P0(e){let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r}function _0(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function KL(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return P0(t+r)}function VL(e){return _0(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function qL(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)r[i/2]=Number.parseInt(t.slice(i,i+2),16);return r}function WL(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var eh=class{constructor(...t){}};var k0=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Ps,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},so=N("$ZodError",k0),Tr=N("$ZodError",k0,{Parent:Error});function ao(e,t=r=>r.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function oo(e,t=r=>r.message){let r={_errors:[]},i=(n,s=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(o=>i({issues:o},[...s,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...s,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...s,...a.path]);else{let o=[...s,...a.path];if(o.length===0)r._errors.push(t(a));else{let c=r,u=0;for(;u<o.length;){let p=o[u];u===o.length-1?(c[p]=c[p]||{_errors:[]},c[p]._errors.push(t(a))):c[p]=c[p]||{_errors:[]},c=c[p],u++}}}};return i(e),r}function uh(e,t=r=>r.message){let r={errors:[]},i=(n,s=[])=>{var a,o;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...s,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...s,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...s,...c.path]);else{let u=[...s,...c.path];if(u.length===0){r.errors.push(t(c));continue}let p=r,d=0;for(;d<u.length;){let h=u[d],y=d===u.length-1;typeof h=="string"?(p.properties??(p.properties={}),(a=p.properties)[h]??(a[h]={errors:[]}),p=p.properties[h]):(p.items??(p.items=[]),(o=p.items)[h]??(o[h]={errors:[]}),p=p.items[h]),y&&p.errors.push(t(c)),d++}}};return i(e),r}function I0(e){let t=[],r=e.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function ph(e){let t=[],r=[...e.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${I0(i.path)}`);return t.join(`
|
|
55
|
+
`)}var Is=e=>(t,r,i,n)=>{let s=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new Yr;if(a.issues.length){let o=new(n?.Err??e)(a.issues.map(c=>or(c,s,Ct())));throw Gl(o,n?.callee),o}return a.value},Hl=Is(Tr),As=e=>async(t,r,i,n)=>{let s=i?{...i,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let o=new(n?.Err??e)(a.issues.map(c=>or(c,s,Ct())));throw Gl(o,n?.callee),o}return a.value},Ql=As(Tr),ws=e=>(t,r,i)=>{let n=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise)throw new Yr;return s.issues.length?{success:!1,error:new(e??so)(s.issues.map(a=>or(a,n,Ct())))}:{success:!0,data:s.value}},dh=ws(Tr),Cs=e=>async(t,r,i)=>{let n=i?{...i,async:!0}:{async:!0},s=t._zod.run({value:r,issues:[]},n);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(a=>or(a,n,Ct())))}:{success:!0,data:s.value}},fh=Cs(Tr),ec=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Is(e)(t,r,n)},XL=ec(Tr),tc=e=>(t,r,i)=>Is(e)(t,r,i),ZL=tc(Tr),rc=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return As(e)(t,r,n)},YL=rc(Tr),nc=e=>async(t,r,i)=>As(e)(t,r,i),GL=nc(Tr),ic=e=>(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return ws(e)(t,r,n)},HL=ic(Tr),sc=e=>(t,r,i)=>ws(e)(t,r,i),QL=sc(Tr),ac=e=>async(t,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Cs(e)(t,r,n)},eR=ac(Tr),oc=e=>async(t,r,i)=>Cs(e)(t,r,i),tR=oc(Tr);var Cr={};dn(Cr,{base64:()=>wh,base64url:()=>lc,bigint:()=>Lh,boolean:()=>Mh,browserEmail:()=>cR,cidrv4:()=>Ih,cidrv6:()=>Ah,cuid:()=>hh,cuid2:()=>mh,date:()=>Oh,datetime:()=>$h,domain:()=>dR,duration:()=>bh,e164:()=>Nh,email:()=>Th,emoji:()=>Eh,extendedDuration:()=>rR,guid:()=>vh,hex:()=>fR,hostname:()=>pR,html5Email:()=>aR,httpProtocol:()=>Ch,idnEmail:()=>lR,integer:()=>Rh,ipv4:()=>Ph,ipv6:()=>_h,ksuid:()=>xh,lowercase:()=>zh,mac:()=>kh,md5_base64:()=>mR,md5_base64url:()=>yR,md5_hex:()=>hR,nanoid:()=>Sh,null:()=>Fh,number:()=>cc,rfc5322Email:()=>oR,sha1_base64:()=>xR,sha1_base64url:()=>SR,sha1_hex:()=>gR,sha256_base64:()=>vR,sha256_base64url:()=>TR,sha256_hex:()=>bR,sha384_base64:()=>PR,sha384_base64url:()=>_R,sha384_hex:()=>ER,sha512_base64:()=>IR,sha512_base64url:()=>AR,sha512_hex:()=>kR,string:()=>jh,time:()=>Dh,ulid:()=>yh,undefined:()=>Bh,unicodeEmail:()=>A0,uppercase:()=>Uh,uuid:()=>Di,uuid4:()=>nR,uuid6:()=>iR,uuid7:()=>sR,xid:()=>gh});var hh=/^[cC][0-9a-z]{6,}$/,mh=/^[0-9a-z]+$/,yh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gh=/^[0-9a-vA-V]{20}$/,xh=/^[A-Za-z0-9]{27}$/,Sh=/^[a-zA-Z0-9_-]{21}$/,bh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,vh=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Di=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,nR=Di(4),iR=Di(6),sR=Di(7),Th=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,oR=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,A0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,lR=A0,cR=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Eh(){return new RegExp(uR,"u")}var Ph=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_h=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,kh=e=>{let t=Mr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ih=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ah=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lc=/^[A-Za-z0-9_-]*$/,pR=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,dR=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Ch=/^https?$/,Nh=/^\+[1-9]\d{6,14}$/,w0="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Oh=new RegExp(`^${w0}$`);function C0(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Dh(e){return new RegExp(`^${C0(e)}$`)}function $h(e){let t=C0({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return new RegExp(`^${w0}T(?:${i})$`)}var jh=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Lh=/^-?\d+n?$/,Rh=/^-?\d+$/,cc=/^-?\d+(?:\.\d+)?$/,Mh=/^(?:true|false)$/i,Fh=/^null$/i;var Bh=/^undefined$/i;var zh=/^[^A-Z]*$/,Uh=/^[^a-z]*$/,fR=/^[0-9a-fA-F]*$/;function lo(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function co(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var hR=/^[0-9a-fA-F]{32}$/,mR=lo(22,"=="),yR=co(22),gR=/^[0-9a-fA-F]{40}$/,xR=lo(27,"="),SR=co(27),bR=/^[0-9a-fA-F]{64}$/,vR=lo(43,"="),TR=co(43),ER=/^[0-9a-fA-F]{96}$/,PR=lo(64,""),_R=co(64),kR=/^[0-9a-fA-F]{128}$/,IR=lo(86,"=="),AR=co(86);var St=N("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),O0={number:"number",bigint:"bigint",object:"date"},uc=N("$ZodCheckLessThan",(e,t)=>{St.init(e,t);let r=O0[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,s=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pc=N("$ZodCheckGreaterThan",(e,t)=>{St.init(e,t);let r=O0[typeof t.value];e._zod.onattach.push(i=>{let n=i._zod.bag,s=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Kh=N("$ZodCheckMultipleOf",(e,t)=>{St.init(e,t),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):th(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Vh=N("$ZodCheckNumberFormat",(e,t)=>{St.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,s]=oh[t.format];e._zod.onattach.push(a=>{let o=a._zod.bag;o.format=t.format,o.minimum=n,o.maximum=s,r&&(o.pattern=Rh)}),e._zod.check=a=>{let o=a.value;if(r){if(!Number.isInteger(o)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:o,inst:e});return}if(!Number.isSafeInteger(o)){o>0?a.issues.push({input:o,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:o,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}o<n&&a.issues.push({origin:"number",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>s&&a.issues.push({origin:"number",input:o,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),qh=N("$ZodCheckBigIntFormat",(e,t)=>{St.init(e,t);let[r,i]=lh[t.format];e._zod.onattach.push(n=>{let s=n._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i}),e._zod.check=n=>{let s=n.value;s<r&&n.issues.push({origin:"bigint",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&n.issues.push({origin:"bigint",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Wh=N("$ZodCheckMaxSize",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Qn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;n.size<=t.maximum||i.issues.push({origin:no(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Jh=N("$ZodCheckMinSize",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Qn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;n.size>=t.minimum||i.issues.push({origin:no(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xh=N("$ZodCheckSizeEquals",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Qn(n)&&n.size!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=i=>{let n=i.value,s=n.size;if(s===t.size)return;let a=s>t.size;i.issues.push({origin:no(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Zh=N("$ZodCheckMaxLength",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Qn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let n=i.value;if(n.length<=t.maximum)return;let a=io(n);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Yh=N("$ZodCheckMinLength",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Qn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let n=i.value;if(n.length>=t.minimum)return;let a=io(n);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Gh=N("$ZodCheckLengthEquals",(e,t)=>{var r;St.init(e,t),(r=e._zod.def).when??(r.when=i=>{let n=i.value;return!Qn(n)&&n.length!==void 0}),e._zod.onattach.push(i=>{let n=i._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=i=>{let n=i.value,s=n.length;if(s===t.length)return;let a=io(n),o=s>t.length;i.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ns=N("$ZodCheckStringFormat",(e,t)=>{var r,i;St.init(e,t),e._zod.onattach.push(n=>{let s=n._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),Hh=N("$ZodCheckRegex",(e,t)=>{Ns.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Qh=N("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=zh),Ns.init(e,t)}),em=N("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Uh),Ns.init(e,t)}),tm=N("$ZodCheckIncludes",(e,t)=>{St.init(e,t);let r=Mr(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(n=>{let s=n._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(i)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),rm=N("$ZodCheckStartsWith",(e,t)=>{St.init(e,t);let r=new RegExp(`^${Mr(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),nm=N("$ZodCheckEndsWith",(e,t)=>{St.init(e,t);let r=new RegExp(`.*${Mr(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(i=>{let n=i._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function N0(e,t,r){e.issues.length&&t.issues.push(...vr(r,e.issues))}var im=N("$ZodCheckProperty",(e,t)=>{St.init(e,t),e._zod.check=r=>{let i=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>N0(n,r,t.property));N0(i,r,t.property)}}),sm=N("$ZodCheckMimeType",(e,t)=>{St.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),am=N("$ZodCheckOverwrite",(e,t)=>{St.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var uo=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
|
|
56
|
+
`).filter(a=>a),n=Math.min(...i.map(a=>a.length-a.trimStart().length)),s=i.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of s)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...r,n.join(`
|
|
57
|
+
`))}};var om={major:4,minor:4,patch:3};var Ne=N("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=om;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let n of i)for(let s of n._zod.onattach)s(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,o,c)=>{let u=ri(a),p;for(let d of o){if(d._zod.def.when){if(ch(a)||!d._zod.def.when(a))continue}else if(u)continue;let h=a.issues.length,y=d._zod.check(a);if(y instanceof Promise&&c?.async===!1)throw new Yr;if(p||y instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await y,a.issues.length!==h&&(u||(u=ri(a,h)))});else{if(a.issues.length===h)continue;u||(u=ri(a,h))}}return p?p.then(()=>a):a},s=(a,o,c)=>{if(ri(a))return a.aborted=!0,a;let u=n(o,i,c);if(u instanceof Promise){if(c.async===!1)throw new Yr;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if(o.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:!0});return u instanceof Promise?u.then(p=>s(p,a,o)):s(u,a,o)}let c=e._zod.parse(a,o);if(c instanceof Promise){if(o.async===!1)throw new Yr;return c.then(u=>n(u,i,o))}return n(c,i,o)}}Be(e,"~standard",()=>({validate:n=>{try{let s=dh(e,n);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return fh(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),$i=N("$ZodString",(e,t)=>{Ne.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??jh(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ht=N("$ZodStringFormat",(e,t)=>{Ns.init(e,t),$i.init(e,t)}),cm=N("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vh),ht.init(e,t)}),um=N("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Di(i))}else t.pattern??(t.pattern=Di());ht.init(e,t)}),pm=N("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Th),ht.init(e,t)}),dm=N("$ZodURL",(e,t)=>{ht.init(e,t),e._zod.check=r=>{try{let i=r.value.trim();if(!t.normalize&&t.protocol?.source===Ch.source&&!/^https?:\/\//i.test(i)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),fm=N("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Eh()),ht.init(e,t)}),hm=N("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Sh),ht.init(e,t)}),mm=N("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=hh),ht.init(e,t)}),ym=N("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mh),ht.init(e,t)}),gm=N("$ZodULID",(e,t)=>{t.pattern??(t.pattern=yh),ht.init(e,t)}),xm=N("$ZodXID",(e,t)=>{t.pattern??(t.pattern=gh),ht.init(e,t)}),Sm=N("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=xh),ht.init(e,t)}),bm=N("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=$h(t)),ht.init(e,t)}),vm=N("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Oh),ht.init(e,t)}),Tm=N("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Dh(t)),ht.init(e,t)}),Em=N("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=bh),ht.init(e,t)}),Pm=N("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ph),ht.init(e,t),e._zod.bag.format="ipv4"}),_m=N("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_h),ht.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),km=N("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=kh(t.delimiter)),ht.init(e,t),e._zod.bag.format="mac"}),Im=N("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ih),ht.init(e,t)}),Am=N("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ah),ht.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(i.length!==2)throw new Error;let[n,s]=i;if(!s)throw new Error;let a=Number(s);if(`${a}`!==s)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function wm(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Cm=N("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wh),ht.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{wm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function X0(e){if(!lc.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return wm(r)}var Nm=N("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lc),ht.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{X0(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Om=N("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Nh),ht.init(e,t)});function Z0(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Dm=N("$ZodJWT",(e,t)=>{ht.init(e,t),e._zod.check=r=>{Z0(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),$m=N("$ZodCustomStringFormat",(e,t)=>{ht.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),yc=N("$ZodNumber",(e,t)=>{Ne.init(e,t),e._zod.pattern=e._zod.bag.pattern??cc,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let s=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...s?{received:s}:{}}),r}}),jm=N("$ZodNumberFormat",(e,t)=>{Vh.init(e,t),yc.init(e,t)}),po=N("$ZodBoolean",(e,t)=>{Ne.init(e,t),e._zod.pattern=Mh,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),gc=N("$ZodBigInt",(e,t)=>{Ne.init(e,t),e._zod.pattern=Lh,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Lm=N("$ZodBigIntFormat",(e,t)=>{qh.init(e,t),gc.init(e,t)}),Rm=N("$ZodSymbol",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Mm=N("$ZodUndefined",(e,t)=>{Ne.init(e,t),e._zod.pattern=Bh,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Fm=N("$ZodNull",(e,t)=>{Ne.init(e,t),e._zod.pattern=Fh,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Bm=N("$ZodAny",(e,t)=>{Ne.init(e,t),e._zod.parse=r=>r}),zm=N("$ZodUnknown",(e,t)=>{Ne.init(e,t),e._zod.parse=r=>r}),Um=N("$ZodNever",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Km=N("$ZodVoid",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Vm=N("$ZodDate",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,s=n instanceof Date;return s&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...s?{received:"Invalid Date"}:{},inst:e}),r}});function $0(e,t,r){e.issues.length&&t.issues.push(...vr(r,e.issues)),t.value[r]=e.value}var qm=N("$ZodArray",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let s=[];for(let a=0;a<n.length;a++){let o=n[a],c=t.element._zod.run({value:o,issues:[]},i);c instanceof Promise?s.push(c.then(u=>$0(u,r,a))):$0(c,r,a)}return s.length?Promise.all(s).then(()=>r):r}});function mc(e,t,r,i,n,s){let a=r in i;if(e.issues.length){if(n&&s&&!a)return;t.issues.push(...vr(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Y0(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let r=ah(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function G0(e,t,r,i,n,s){let a=[],o=n.keySet,c=n.catchall._zod,u=c.def.type,p=c.optin==="optional",d=c.optout==="optional";for(let h in t){if(h==="__proto__"||o.has(h))continue;if(u==="never"){a.push(h);continue}let y=c.run({value:t[h],issues:[]},i);y instanceof Promise?e.push(y.then(T=>mc(T,r,h,t,p,d))):mc(y,r,h,t,p,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}var H0=N("$ZodObject",(e,t)=>{if(Ne.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let o=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...o};return Object.defineProperty(t,"shape",{value:c}),c}})}let i=_s(()=>Y0(t));Be(e._zod,"propValues",()=>{let o=t.shape,c={};for(let u in o){let p=o[u]._zod;if(p.values){c[u]??(c[u]=new Set);for(let d of p.values)c[u].add(d)}}return c});let n=Oi,s=t.catchall,a;e._zod.parse=(o,c)=>{a??(a=i.value);let u=o.value;if(!n(u))return o.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),o;o.value={};let p=[],d=a.shape;for(let h of a.keys){let y=d[h],T=y._zod.optin==="optional",w=y._zod.optout==="optional",k=y._zod.run({value:u[h],issues:[]},c);k instanceof Promise?p.push(k.then(C=>mc(C,o,h,u,T,w))):mc(k,o,h,u,T,w)}return s?G0(p,u,o,c,i.value,e):p.length?Promise.all(p).then(()=>o):o}}),Wm=N("$ZodObjectJIT",(e,t)=>{H0.init(e,t);let r=e._zod.parse,i=_s(()=>Y0(t)),n=h=>{let y=new uo(["shape","payload","ctx"]),T=i.value,w=U=>{let z=Yl(U);return`shape[${z}]._zod.run({ value: input[${z}], issues: [] }, ctx)`};y.write("const input = payload.value;");let k=Object.create(null),C=0;for(let U of T.keys)k[U]=`key_${C++}`;y.write("const newResult = {};");for(let U of T.keys){let z=k[U],q=Yl(U),ye=h[U],we=ye?._zod?.optin==="optional",Pe=ye?._zod?.optout==="optional";y.write(`const ${z} = ${w(U)};`),we&&Pe?y.write(`
|
|
58
|
+
if (${z}.issues.length) {
|
|
59
|
+
if (${q} in input) {
|
|
60
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
61
|
+
...iss,
|
|
62
|
+
path: iss.path ? [${q}, ...iss.path] : [${q}]
|
|
63
|
+
})));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (${z}.value === undefined) {
|
|
68
|
+
if (${q} in input) {
|
|
69
|
+
newResult[${q}] = undefined;
|
|
70
|
+
}
|
|
71
|
+
} else {
|
|
72
|
+
newResult[${q}] = ${z}.value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
`):we?y.write(`
|
|
76
|
+
if (${z}.issues.length) {
|
|
77
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
78
|
+
...iss,
|
|
79
|
+
path: iss.path ? [${q}, ...iss.path] : [${q}]
|
|
80
|
+
})));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (${z}.value === undefined) {
|
|
84
|
+
if (${q} in input) {
|
|
85
|
+
newResult[${q}] = undefined;
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
newResult[${q}] = ${z}.value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
`):y.write(`
|
|
92
|
+
const ${z}_present = ${q} in input;
|
|
93
|
+
if (${z}.issues.length) {
|
|
94
|
+
payload.issues = payload.issues.concat(${z}.issues.map(iss => ({
|
|
95
|
+
...iss,
|
|
96
|
+
path: iss.path ? [${q}, ...iss.path] : [${q}]
|
|
97
|
+
})));
|
|
98
|
+
}
|
|
99
|
+
if (!${z}_present && !${z}.issues.length) {
|
|
100
|
+
payload.issues.push({
|
|
101
|
+
code: "invalid_type",
|
|
102
|
+
expected: "nonoptional",
|
|
103
|
+
input: undefined,
|
|
104
|
+
path: [${q}]
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (${z}_present) {
|
|
109
|
+
if (${z}.value === undefined) {
|
|
110
|
+
newResult[${q}] = undefined;
|
|
111
|
+
} else {
|
|
112
|
+
newResult[${q}] = ${z}.value;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
`)}y.write("payload.value = newResult;"),y.write("return payload;");let D=y.compile();return(U,z)=>D(h,U,z)},s,a=Oi,o=!Ni.jitless,u=o&&nh.value,p=t.catchall,d;e._zod.parse=(h,y)=>{d??(d=i.value);let T=h.value;return a(T)?o&&u&&y?.async===!1&&y.jitless!==!0?(s||(s=n(t.shape)),h=s(h,y),p?G0([],T,h,y,d,e):h):r(h,y):(h.issues.push({expected:"object",code:"invalid_type",input:T,inst:e}),h)}});function j0(e,t,r,i){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let n=e.filter(s=>!ri(s));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(a=>or(a,i,Ct())))}),t)}var fo=N("$ZodUnion",(e,t)=>{Ne.init(e,t),Be(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),Be(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),Be(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),Be(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${i.map(n=>to(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let s=!1,a=[];for(let o of t.options){let c=o._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(o=>j0(o,i,e,n)):j0(a,i,e,n)}});function L0(e,t,r,i){let n=e.filter(s=>s.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(a=>or(a,i,Ct())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Jm=N("$ZodXor",(e,t)=>{fo.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,n)=>{if(r)return r(i,n);let s=!1,a=[];for(let o of t.options){let c=o._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(a.push(c),s=!0):a.push(c)}return s?Promise.all(a).then(o=>L0(o,i,e,n)):L0(a,i,e,n)}}),Xm=N("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,fo.init(e,t);let r=e._zod.parse;Be(e._zod,"propValues",()=>{let n={};for(let s of t.options){let a=s._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let[o,c]of Object.entries(a)){n[o]||(n[o]=new Set);for(let u of c)n[o].add(u)}}return n});let i=_s(()=>{let n=t.options,s=new Map;for(let a of n){let o=a._zod.propValues?.[t.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of o){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,a)}}return s});e._zod.parse=(n,s)=>{let a=n.value;if(!Oi(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let o=i.value.get(a?.[t.discriminator]);return o?o._zod.run(n,s):t.unionFallback||s.direction==="backward"?r(n,s):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),Zm=N("$ZodIntersection",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value,s=t.left._zod.run({value:n,issues:[]},i),a=t.right._zod.run({value:n,issues:[]},i);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([c,u])=>R0(r,c,u)):R0(r,s,a)}});function lm(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ti(e)&&ti(t)){let r=Object.keys(t),i=Object.keys(e).filter(s=>r.indexOf(s)!==-1),n={...e,...t};for(let s of i){let a=lm(e[s],t[s]);if(!a.valid)return{valid:!1,mergeErrorPath:[s,...a.mergeErrorPath]};n[s]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=e[i],s=t[i],a=lm(n,s);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function R0(e,t,r){let i=new Map,n;for(let o of t.issues)if(o.code==="unrecognized_keys"){n??(n=o);for(let c of o.keys)i.has(c)||i.set(c,{}),i.get(c).l=!0}else e.issues.push(o);for(let o of r.issues)if(o.code==="unrecognized_keys")for(let c of o.keys)i.has(c)||i.set(c,{}),i.get(c).r=!0;else e.issues.push(o);let s=[...i].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(s.length&&n&&e.issues.push({...n,keys:s}),ri(e))return e;let a=lm(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var xc=N("$ZodTuple",(e,t)=>{Ne.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let s=i.value;if(!Array.isArray(s))return i.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],o=M0(r,"optin"),c=M0(r,"optout");if(!t.rest){if(s.length<o)return i.issues.push({code:"too_small",minimum:o,inclusive:!0,input:s,inst:e,origin:"array"}),i;s.length>r.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:s,inst:e,origin:"array"})}let u=new Array(r.length);for(let p=0;p<r.length;p++){let d=r[p]._zod.run({value:s[p],issues:[]},n);d instanceof Promise?a.push(d.then(h=>{u[p]=h})):u[p]=d}if(t.rest){let p=r.length-1,d=s.slice(r.length);for(let h of d){p++;let y=t.rest._zod.run({value:h,issues:[]},n);y instanceof Promise?a.push(y.then(T=>F0(T,i,p))):F0(y,i,p)}}return a.length?Promise.all(a).then(()=>B0(u,i,r,s,c)):B0(u,i,r,s,c)}});function M0(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function F0(e,t,r){e.issues.length&&t.issues.push(...vr(r,e.issues)),t.value[r]=e.value}function B0(e,t,r,i,n){for(let s=0;s<r.length;s++){let a=e[s],o=s<i.length;if(a.issues.length){if(!o&&s>=n){t.value.length=s;break}t.issues.push(...vr(s,a.issues))}t.value[s]=a.value}for(let s=t.value.length-1;s>=i.length&&(r[s]._zod.optout==="optional"&&t.value[s]===void 0);s--)t.value.length=s;return t}var Ym=N("$ZodRecord",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!ti(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a){r.value={};let o=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){o.add(typeof u=="number"?u.toString():u);let p=t.keyType._zod.run({value:u,issues:[]},i);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(p.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:p.issues.map(y=>or(y,i,Ct())),input:u,path:[u],inst:e});continue}let d=p.value,h=t.valueType._zod.run({value:n[u],issues:[]},i);h instanceof Promise?s.push(h.then(y=>{y.issues.length&&r.issues.push(...vr(u,y.issues)),r.value[d]=y.value})):(h.issues.length&&r.issues.push(...vr(u,h.issues)),r.value[d]=h.value)}let c;for(let u in n)o.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let o of Reflect.ownKeys(n)){if(o==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,o))continue;let c=t.keyType._zod.run({value:o,issues:[]},i);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&cc.test(o)&&c.issues.length){let d=t.keyType._zod.run({value:Number(o),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?r.value[o]=n[o]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>or(d,i,Ct())),input:o,path:[o],inst:e});continue}let p=t.valueType._zod.run({value:n[o],issues:[]},i);p instanceof Promise?s.push(p.then(d=>{d.issues.length&&r.issues.push(...vr(o,d.issues)),r.value[c.value]=d.value})):(p.issues.length&&r.issues.push(...vr(o,p.issues)),r.value[c.value]=p.value)}}return s.length?Promise.all(s).then(()=>r):r}}),Gm=N("$ZodMap",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let s=[];r.value=new Map;for(let[a,o]of n){let c=t.keyType._zod.run({value:a,issues:[]},i),u=t.valueType._zod.run({value:o,issues:[]},i);c instanceof Promise||u instanceof Promise?s.push(Promise.all([c,u]).then(([p,d])=>{z0(p,d,r,a,n,e,i)})):z0(c,u,r,a,n,e,i)}return s.length?Promise.all(s).then(()=>r):r}});function z0(e,t,r,i,n,s,a){e.issues.length&&(ro.has(typeof i)?r.issues.push(...vr(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:s,issues:e.issues.map(o=>or(o,a,Ct()))})),t.issues.length&&(ro.has(typeof i)?r.issues.push(...vr(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:s,key:i,issues:t.issues.map(o=>or(o,a,Ct()))})),r.value.set(e.value,t.value)}var Hm=N("$ZodSet",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=new Set;for(let a of n){let o=t.valueType._zod.run({value:a,issues:[]},i);o instanceof Promise?s.push(o.then(c=>U0(c,r))):U0(o,r)}return s.length?Promise.all(s).then(()=>r):r}});function U0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Qm=N("$ZodEnum",(e,t)=>{Ne.init(e,t);let r=eo(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(n=>ro.has(typeof n)).map(n=>typeof n=="string"?Mr(n):n.toString()).join("|")})$`),e._zod.parse=(n,s)=>{let a=n.value;return i.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),ey=N("$ZodLiteral",(e,t)=>{if(Ne.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Mr(i):i?Mr(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,n)=>{let s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),i}}),ty=N("$ZodFile",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),ry=N("$ZodTransform",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Hn(e.constructor.name);let n=t.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new Yr;return r.value=n,r.fallback=!0,r}});function K0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Sc=N("$ZodOptional",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Be(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${to(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(a=>K0(a,n)):K0(s,n)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),ny=N("$ZodExactOptional",(e,t)=>{Sc.init(e,t),Be(e._zod,"values",()=>t.innerType._zod.values),Be(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),iy=N("$ZodNullable",(e,t)=>{Ne.init(e,t),Be(e._zod,"optin",()=>t.innerType._zod.optin),Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${to(r.source)}|null)$`):void 0}),Be(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),sy=N("$ZodDefault",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>V0(s,t)):V0(n,t)}});function V0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ay=N("$ZodPrefault",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),oy=N("$ZodNonOptional",(e,t)=>{Ne.init(e,t),Be(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>q0(s,e)):q0(n,e)}});function q0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var ly=N("$ZodSuccess",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Hn("ZodSuccess");let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>(r.value=s.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),cy=N("$ZodCatch",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",Be(e._zod,"optout",()=>t.innerType._zod.optout),Be(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(s=>(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(a=>or(a,i,Ct()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(s=>or(s,i,Ct()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),uy=N("$ZodNaN",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),bc=N("$ZodPipe",(e,t)=>{Ne.init(e,t),Be(e._zod,"values",()=>t.in._zod.values),Be(e._zod,"optin",()=>t.in._zod.optin),Be(e._zod,"optout",()=>t.out._zod.optout),Be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){let s=t.out._zod.run(r,i);return s instanceof Promise?s.then(a=>dc(a,t.in,i)):dc(s,t.in,i)}let n=t.in._zod.run(r,i);return n instanceof Promise?n.then(s=>dc(s,t.out,i)):dc(n,t.out,i)}});function dc(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var ho=N("$ZodCodec",(e,t)=>{Ne.init(e,t),Be(e._zod,"values",()=>t.in._zod.values),Be(e._zod,"optin",()=>t.in._zod.optin),Be(e._zod,"optout",()=>t.out._zod.optout),Be(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let s=t.in._zod.run(r,i);return s instanceof Promise?s.then(a=>fc(a,t,i)):fc(s,t,i)}else{let s=t.out._zod.run(r,i);return s instanceof Promise?s.then(a=>fc(a,t,i)):fc(s,t,i)}}});function fc(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(s=>hc(e,s,t.out,r)):hc(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(s=>hc(e,s,t.in,r)):hc(e,n,t.in,r)}}function hc(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}var py=N("$ZodPreprocess",(e,t)=>{bc.init(e,t)}),dy=N("$ZodReadonly",(e,t)=>{Ne.init(e,t),Be(e._zod,"propValues",()=>t.innerType._zod.propValues),Be(e._zod,"values",()=>t.innerType._zod.values),Be(e._zod,"optin",()=>t.innerType?._zod?.optin),Be(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(W0):W0(n)}});function W0(e){return e.value=Object.freeze(e.value),e}var fy=N("$ZodTemplateLiteral",(e,t)=>{Ne.init(e,t);let r=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let n=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let s=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(s,a))}else if(i===null||sh.has(typeof i))r.push(Mr(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),hy=N("$ZodFunction",(e,t)=>(Ne.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){let n=e._def.input?Hl(e._def.input,i):i,s=Reflect.apply(r,this,n);return e._def.output?Hl(e._def.output,s):s}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let n=e._def.input?await Ql(e._def.input,i):i,s=await Reflect.apply(r,this,n);return e._def.output?await Ql(e._def.output,s):s}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new xc({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),my=N("$ZodPromise",(e,t)=>{Ne.init(e,t),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},i))}),yy=N("$ZodLazy",(e,t)=>{Ne.init(e,t),Be(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),Be(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Be(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Be(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Be(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),gy=N("$ZodCustom",(e,t)=>{St.init(e,t),Ne.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(s=>J0(s,r,i,e));J0(n,r,i,e)}});function J0(e,t,r,i){if(!e){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),t.issues.push(ks(n))}}var yo={};dn(yo,{ar:()=>Q0,az:()=>e_,be:()=>r_,bg:()=>n_,ca:()=>i_,cs:()=>s_,da:()=>a_,de:()=>o_,el:()=>l_,en:()=>vc,eo:()=>c_,es:()=>u_,fa:()=>p_,fi:()=>d_,fr:()=>f_,frCA:()=>h_,he:()=>m_,hr:()=>y_,hu:()=>g_,hy:()=>S_,id:()=>b_,is:()=>v_,it:()=>T_,ja:()=>E_,ka:()=>P_,kh:()=>__,km:()=>Tc,ko:()=>k_,lt:()=>A_,mk:()=>w_,ms:()=>C_,nl:()=>N_,no:()=>O_,ota:()=>D_,pl:()=>j_,ps:()=>$_,pt:()=>L_,ro:()=>R_,ru:()=>F_,sl:()=>B_,sv:()=>z_,ta:()=>U_,th:()=>K_,tr:()=>V_,ua:()=>q_,uk:()=>Ec,ur:()=>W_,uz:()=>J_,vi:()=>X_,yo:()=>G_,zhCN:()=>Z_,zhTW:()=>Y_});var CR=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${o}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${s}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${o}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${Y(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${s} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${s} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:s.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${s.suffix}"`:s.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${s.includes}"`:s.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${s.pattern}`:`${r[s.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${F(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Q0(){return{localeError:CR()}}var NR=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${o}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${s}, daxil olan ${o}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Y(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${s}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${s}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${s.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:s.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${s.suffix}" il\u0259 bitm\u0259lidir`:s.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${s.includes}" daxil olmal\u0131d\u0131r`:s.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${s.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[s.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${F(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function e_(){return{localeError:NR()}}function t_(e,t,r,i){let n=Math.abs(e),s=n%10,a=n%100;return a>=11&&a<=19?i:s===1?t:s>=2&&s<=4?r:i}var OR=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${o}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${s}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${o}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${Y(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);if(a){let o=Number(n.maximum),c=t_(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${s}${n.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);if(a){let o=Number(n.minimum),c=t_(o,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${s}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${s.prefix}"`:s.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${s.suffix}"`:s.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${s.includes}"`:s.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${s.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${F(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function r_(){return{localeError:OR()}}var DR=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${o}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${s}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${o}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${Y(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${s}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${s}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;if(s.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${s.prefix}"`;if(s.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${s.suffix}"`;if(s.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${s.includes}"`;if(s.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${s.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return s.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),s.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${F(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function n_(){return{localeError:DR()}}var $R=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${o}`:`Tipus inv\xE0lid: s'esperava ${s}, s'ha rebut ${o}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${Y(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${F(n.values," o ")}`;case"too_big":{let s=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${s} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${s} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${s.prefix}"`:s.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${s.suffix}"`:s.format==="includes"?`Format inv\xE0lid: ha d'incloure "${s.includes}"`:s.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${s.pattern}`:`Format inv\xE0lid per a ${r[s.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function i_(){return{localeError:$R()}}var jR=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${o}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${s}, obdr\u017Eeno ${o}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Y(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${s}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${s}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${s.prefix}"`:s.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${s.suffix}"`:s.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${s.includes}"`:s.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${s.pattern}`:`Neplatn\xFD form\xE1t ${r[s.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${F(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function s_(){return{localeError:jR()}}var LR=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${o}`:`Ugyldigt input: forventede ${s}, fik ${o}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${Y(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin),o=i[n.origin]??n.origin;return a?`For stor: forventede ${o??"value"} ${a.verb} ${s} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${o??"value"} havde ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin),o=i[n.origin]??n.origin;return a?`For lille: forventede ${o} ${a.verb} ${s} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${o} havde ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${r[s.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${F(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function a_(){return{localeError:LR()}}var RR=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${o}`:`Ung\xFCltige Eingabe: erwartet ${s}, erhalten ${o}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Y(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${s}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${s}${n.maximum.toString()} ist`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ist`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ung\xFCltiger String: muss mit "${s.prefix}" beginnen`:s.format==="ends_with"?`Ung\xFCltiger String: muss mit "${s.suffix}" enden`:s.format==="includes"?`Ung\xFCltiger String: muss "${s.includes}" enthalten`:s.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${s.pattern} entsprechen`:`Ung\xFCltig: ${r[s.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${F(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function o_(){return{localeError:RR()}}var MR=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(n){return e[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${o}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${s}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${o}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${Y(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${s}${n.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${s}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${s.prefix}"`:s.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${s.suffix}"`:s.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${s.includes}"`:s.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${s.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[s.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${F(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function l_(){return{localeError:MR()}}var FR=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return`Invalid input: expected ${s}, received ${o}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Y(n.values[0])}`:`Invalid option: expected one of ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${s}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${s}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function vc(){return{localeError:FR()}}var BR=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${o}`:`Nevalida enigo: atendi\u011Dis ${s}, ricevi\u011Dis ${o}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${Y(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${s}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${s}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${s.prefix}"`:s.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${s.suffix}"`:s.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${s.includes}"`:s.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${s.pattern}`:`Nevalida ${r[s.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function c_(){return{localeError:BR()}}var zR=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${o}`:`Entrada inv\xE1lida: se esperaba ${s}, recibido ${o}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${Y(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin),o=i[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${o??"valor"} tuviera ${s}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${o??"valor"} fuera ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin),o=i[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${o} tuviera ${s}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${o} fuera ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${s.prefix}"`:s.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${s.suffix}"`:s.format==="includes"?`Cadena inv\xE1lida: debe incluir "${s.includes}"`:s.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${s.pattern}`:`Inv\xE1lido ${r[s.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function u_(){return{localeError:zR()}}var UR=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${o} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${s} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${o} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${Y(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${F(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${s.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:s.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${s.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:s.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${s.includes}" \u0628\u0627\u0634\u062F`:s.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${s.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[s.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${F(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function p_(){return{localeError:UR()}}var KR=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${o}`:`Virheellinen tyyppi: odotettiin ${s}, oli ${o}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Y(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${s}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${s}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${s.prefix}"`:s.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${s.suffix}"`:s.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${s.includes}"`:s.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${s.pattern}`:`Virheellinen ${r[s.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${F(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function d_(){return{localeError:KR()}}var VR=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${o} re\xE7u`:`Entr\xE9e invalide : ${s} attendu, ${o} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${Y(n.values[0])} attendu`:`Option invalide : une valeur parmi ${F(n.values,"|")} attendue`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${i[n.origin]??"valeur"} doit ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${i[n.origin]??"valeur"} doit ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Cha\xEEne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${s.pattern}`:`${r[s.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${F(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function f_(){return{localeError:VR()}}var qR=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${o}`:`Entr\xE9e invalide : attendu ${s}, re\xE7u ${o}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${Y(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${s}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${s}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Cha\xEEne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${s.pattern}`:`${r[s.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${F(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function h_(){return{localeError:qR()}}var WR=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,i=u=>{let p=r(u);return p?p.label:u??e.unknown.label},n=u=>`\u05D4${i(u)}`,s=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,o={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let p=u.expected,d=c[p??""]??i(p),h=H(u.input),y=c[h]??e[h]?.label??h;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${y}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${Y(u.values[0])}`;let p=u.values.map(y=>Y(y));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let d=p[p.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let p=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${p?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let T=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${T}`}if(u.origin==="array"||u.origin==="set"){let T=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",w=u.inclusive?`${u.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${T} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let h=u.inclusive?"<=":"<",y=s(u.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${d} ${y} ${h}${u.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${y} ${h}${u.maximum.toString()}`}case"too_small":{let p=a(u.origin),d=n(u.origin??"value");if(u.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${p?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let T=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${T}`}if(u.origin==="array"||u.origin==="set"){let T=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let k=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${T} \u05DC\u05D4\u05DB\u05D9\u05DC ${k}`}let w=u.inclusive?`${u.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${T} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`.trim()}let h=u.inclusive?">=":">",y=s(u.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${d} ${y} ${h}${u.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${y} ${h}${u.minimum.toString()}`}case"invalid_format":{let p=u;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${p.pattern}`;let d=o[p.format],h=d?.label??p.format,T=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${T}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${F(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function m_(){return{localeError:WR()}}var JR=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${o}`:`Neispravan unos: o\u010Dekuje se ${s}, a primljeno je ${o}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${Y(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin),o=i[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${o??"vrijednost"} ima ${s}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${o??"vrijednost"} bude ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin),o=i[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${o} ima ${s}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${o} bude ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${s.prefix}"`:s.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${s.suffix}"`:s.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${s.includes}"`:s.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${s.pattern}`:`Neispravna ${r[s.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${F(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function y_(){return{localeError:JR()}}var XR=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${o}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${s}, a kapott \xE9rt\xE9k ${o}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Y(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${s}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${s}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\xC9rv\xE9nytelen string: "${s.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:s.format==="ends_with"?`\xC9rv\xE9nytelen string: "${s.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:s.format==="includes"?`\xC9rv\xE9nytelen string: "${s.includes}" \xE9rt\xE9ket kell tartalmaznia`:s.format==="regex"?`\xC9rv\xE9nytelen string: ${s.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[s.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function g_(){return{localeError:XR()}}function x_(e,t,r){return Math.abs(e)===1?t:r}function Os(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var ZR=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${o}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${s}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${o}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${Y(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);if(a){let o=Number(n.maximum),c=x_(o,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Os(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${s}${n.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Os(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);if(a){let o=Number(n.minimum),c=x_(o,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Os(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${s}${n.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Os(n.origin)} \u056C\u056B\u0576\u056B ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${s.prefix}"-\u0578\u057E`:s.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${s.suffix}"-\u0578\u057E`:s.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${s.includes}"`:s.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${s.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[s.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${F(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Os(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Os(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function S_(){return{localeError:ZR()}}var YR=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${o}`:`Input tidak valid: diharapkan ${s}, diterima ${o}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${Y(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${s}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${s}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`String tidak valid: harus dimulai dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak valid: harus berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak valid: harus menyertakan "${s.includes}"`:s.format==="regex"?`String tidak valid: harus sesuai pola ${s.pattern}`:`${r[s.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function b_(){return{localeError:YR()}}var GR=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${o} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${o} \xFEar sem \xE1 a\xF0 vera ${s}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${Y(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${s}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${s}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${s.prefix}"`:s.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${s.suffix}"`:s.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${s.includes}"`:s.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${s.pattern}`:`Rangt ${r[s.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${F(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function v_(){return{localeError:GR()}}var HR=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${o}`:`Input non valido: atteso ${s}, ricevuto ${o}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${Y(n.values[0])}`:`Opzione non valida: atteso uno tra ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${s}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${s}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Stringa non valida: deve iniziare con "${s.prefix}"`:s.format==="ends_with"?`Stringa non valida: deve terminare con "${s.suffix}"`:s.format==="includes"?`Stringa non valida: deve includere "${s.includes}"`:s.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${s.pattern}`:`Input non valido: ${r[s.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${F(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function T_(){return{localeError:HR()}}var QR=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${o}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${s}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${o}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${Y(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${F(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let s=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let s=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${s.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[s.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${F(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function E_(){return{localeError:QR()}}var eM=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${o}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${s}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${o}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${Y(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${F(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${s.prefix}"-\u10D8\u10D7`:s.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${s.suffix}"-\u10D8\u10D7`:s.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${s.includes}"-\u10E1`:s.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${s.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${F(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function P_(){return{localeError:eM()}}var tM=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${o}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${s} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${o}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${Y(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${s} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${s} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${s.prefix}"`:s.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${s.suffix}"`:s.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${s.includes}"`:s.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${s.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${F(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Tc(){return{localeError:tM()}}function __(){return Tc()}var rM=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${o}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${s}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${o}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Y(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${F(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let s=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=s==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=t(n.origin),c=o?.unit??"\uC694\uC18C";return o?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${s}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${s}${a}`}case"too_small":{let s=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=s==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",o=t(n.origin),c=o?.unit??"\uC694\uC18C";return o?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${s}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${s}${a}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${s.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:s.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${s.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:s.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${s.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:s.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${s.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[s.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${F(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function k_(){return{localeError:rM()}}var mo=e=>e.charAt(0).toUpperCase()+e.slice(1);function I_(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}var nM=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,s,a,o){let c=e[n]??null;return c===null?c:{unit:c.unit[s],verb:c.verb[o][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${o}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${o}, o tik\u0117tasi - ${s}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${Y(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${F(n.values,"|")} pasirinkim\u0173`;case"too_big":{let s=i[n.origin]??n.origin,a=t(n.origin,I_(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${mo(s??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let o=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${mo(s??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${o} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let s=i[n.origin]??n.origin,a=t(n.origin,I_(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${mo(s??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let o=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${mo(s??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${o} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${s.prefix}"`:s.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${s.suffix}"`:s.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${s.includes}"`:s.format==="regex"?`Eilut\u0117 privalo atitikti ${s.pattern}`:`Neteisingas ${r[s.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${F(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let s=i[n.origin]??n.origin;return`${mo(s??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function A_(){return{localeError:nM()}}var iM=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${o}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${s}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${o}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Y(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${s}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${s}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${s.prefix}"`:s.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${s.suffix}"`:s.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${s.includes}"`:s.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${s.pattern}`:`Invalid ${r[s.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${F(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function w_(){return{localeError:iM()}}var sM=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${o}`:`Input tidak sah: dijangka ${s}, diterima ${o}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${Y(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`String tidak sah: mesti bermula dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak sah: mesti mengandungi "${s.includes}"`:s.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${s.pattern}`:`${r[s.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${F(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function C_(){return{localeError:sM()}}var aM=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${o}`:`Ongeldige invoer: verwacht ${s}, ontving ${o}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${Y(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin),o=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${o}: verwacht dat ${n.origin??"waarde"} ${s}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${o}: verwacht dat ${n.origin??"waarde"} ${s}${n.maximum.toString()} is`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin),o=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${o}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${o}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} is`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ongeldige tekst: moet met "${s.prefix}" beginnen`:s.format==="ends_with"?`Ongeldige tekst: moet op "${s.suffix}" eindigen`:s.format==="includes"?`Ongeldige tekst: moet "${s.includes}" bevatten`:s.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${s.pattern}`:`Ongeldig: ${r[s.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function N_(){return{localeError:aM()}}var oM=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${o}`:`Ugyldig input: forventet ${s}, fikk ${o}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${Y(n.values[0])}`:`Ugyldig valg: forventet en av ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${s}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${s}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${r[s.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${F(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function O_(){return{localeError:oM()}}var lM=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${o}`:`F\xE2sit giren: umulan ${s}, al\u0131nan ${o}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${Y(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${s}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${s}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${s}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${s}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let s=n;return s.format==="starts_with"?`F\xE2sit metin: "${s.prefix}" ile ba\u015Flamal\u0131.`:s.format==="ends_with"?`F\xE2sit metin: "${s.suffix}" ile bitmeli.`:s.format==="includes"?`F\xE2sit metin: "${s.includes}" ihtiv\xE2 etmeli.`:s.format==="regex"?`F\xE2sit metin: ${s.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[s.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function D_(){return{localeError:lM()}}var cM=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${o} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${s} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${o} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${Y(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${F(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${s.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:s.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${s.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:s.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${s.includes}" \u0648\u0644\u0631\u064A`:s.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${s.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[s.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${F(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function $_(){return{localeError:cM()}}var uM=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${o}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${s}, otrzymano ${o}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Y(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${s}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${s}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${s.prefix}"`:s.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${s.suffix}"`:s.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${s.includes}"`:s.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${s.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[s.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function j_(){return{localeError:uM()}}var pM=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${o}`:`Tipo inv\xE1lido: esperado ${s}, recebido ${o}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${Y(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${s}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${s}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`${r[s.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${F(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function L_(){return{localeError:pM()}}var dM=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(n){return e[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${s}, primit ${o}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${Y(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${s.prefix}"`:s.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${s.suffix}"`:s.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${s.includes}"`:s.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${s.pattern}`:`Format invalid: ${r[s.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${F(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function R_(){return{localeError:dM()}}function M_(e,t,r,i){let n=Math.abs(e),s=n%10,a=n%100;return a>=11&&a<=19?i:s===1?t:s>=2&&s<=4?r:i}var fM=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${o}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${s}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${o}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${Y(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);if(a){let o=Number(n.maximum),c=M_(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${s}${n.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);if(a){let o=Number(n.minimum),c=M_(o,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${s}${n.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${s.prefix}"`:s.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${s.suffix}"`:s.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${s.includes}"`:s.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${s.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${F(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function F_(){return{localeError:fM()}}var hM=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${o}`:`Neveljaven vnos: pri\u010Dakovano ${s}, prejeto ${o}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Y(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${s}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${s}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${s.prefix}"`:s.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${s.suffix}"`:s.format==="includes"?`Neveljaven niz: mora vsebovati "${s.includes}"`:s.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${s.pattern}`:`Neveljaven ${r[s.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${F(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function B_(){return{localeError:hM()}}var mM=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${o}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${s}, fick ${o}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Y(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${s}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${s}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${s.prefix}"`:s.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${s.suffix}"`:s.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${s.includes}"`:s.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${s.pattern}"`:`Ogiltig(t) ${r[s.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${F(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function z_(){return{localeError:mM()}}var yM=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Y(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${F(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${s}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${s}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${s}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${s}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${s.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${F(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function U_(){return{localeError:yM()}}var gM=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${o}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${s} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${o}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${Y(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${s.prefix}"`:s.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${s.suffix}"`:s.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${s.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:s.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${s.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[s.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${F(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function K_(){return{localeError:gM()}}var xM=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${o}`:`Ge\xE7ersiz de\u011Fer: beklenen ${s}, al\u0131nan ${o}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Y(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${s}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${s}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ge\xE7ersiz metin: "${s.prefix}" ile ba\u015Flamal\u0131`:s.format==="ends_with"?`Ge\xE7ersiz metin: "${s.suffix}" ile bitmeli`:s.format==="includes"?`Ge\xE7ersiz metin: "${s.includes}" i\xE7ermeli`:s.format==="regex"?`Ge\xE7ersiz metin: ${s.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[s.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${F(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function V_(){return{localeError:xM()}}var SM=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${o}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${s}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${o}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${Y(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${s.prefix}"`:s.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${s.suffix}"`:s.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${s.includes}"`:s.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${s.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${F(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Ec(){return{localeError:SM()}}function q_(){return Ec()}var bM=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${o} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${s} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${o} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${Y(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${F(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${s}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${s}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${s}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${s}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${s.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${F(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function W_(){return{localeError:bM()}}var vM=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${o}`:`Noto\u2018g\u2018ri kirish: kutilgan ${s}, qabul qilingan ${o}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${Y(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${s}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${s}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${s.prefix}" bilan boshlanishi kerak`:s.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${s.suffix}" bilan tugashi kerak`:s.format==="includes"?`Noto\u2018g\u2018ri satr: "${s.includes}" ni o\u2018z ichiga olishi kerak`:s.format==="regex"?`Noto\u2018g\u2018ri satr: ${s.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[s.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${F(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function J_(){return{localeError:vM()}}var TM=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${o}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${s}, nh\u1EADn \u0111\u01B0\u1EE3c ${o}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${Y(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${s.prefix}"`:s.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${s.suffix}"`:s.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${s.includes}"`:s.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${s.pattern}`:`${r[s.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${F(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function X_(){return{localeError:TM()}}var EM=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${o}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${s}\uFF0C\u5B9E\u9645\u63A5\u6536 ${o}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Y(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${s}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${s}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${s.prefix}" \u5F00\u5934`:s.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${s.suffix}" \u7ED3\u5C3E`:s.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${s.includes}"`:s.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${s.pattern}`:`\u65E0\u6548${r[s.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${F(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function Z_(){return{localeError:EM()}}var PM=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${o}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${s}\uFF0C\u4F46\u6536\u5230 ${o}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Y(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${s}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${s}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${s.prefix}" \u958B\u982D`:s.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${s.suffix}" \u7D50\u5C3E`:s.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${s.includes}"`:s.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${s.pattern}`:`\u7121\u6548\u7684 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${F(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Y_(){return{localeError:PM()}}var _M=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let s=i[n.expected]??n.expected,a=H(n.input),o=i[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${o}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${s}, \xE0m\u1ECD\u0300 a r\xED ${o}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${Y(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${F(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${s}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${s}${n.maximum}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${s}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${s}${n.minimum}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${s.prefix}"`:s.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${s.suffix}"`:s.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${s.includes}"`:s.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${s.pattern}`:`A\u1E63\xEC\u1E63e: ${r[s.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${F(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function G_(){return{localeError:_M()}}var H_,xy=Symbol("ZodOutput"),Sy=Symbol("ZodInput"),Pc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function _c(){return new Pc}(H_=globalThis).__zod_globalRegistry??(H_.__zod_globalRegistry=_c());var Zt=globalThis.__zod_globalRegistry;function by(e,t){return new e({type:"string",...ne(t)})}function vy(e,t){return new e({type:"string",coerce:!0,...ne(t)})}function kc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ne(t)})}function go(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ne(t)})}function Ic(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ne(t)})}function Ac(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ne(t)})}function wc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ne(t)})}function Cc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ne(t)})}function xo(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ne(t)})}function Nc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ne(t)})}function Oc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ne(t)})}function Dc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ne(t)})}function $c(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ne(t)})}function jc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ne(t)})}function Lc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ne(t)})}function Rc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ne(t)})}function Mc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ne(t)})}function Fc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ne(t)})}function Ty(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ne(t)})}function Bc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ne(t)})}function zc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ne(t)})}function Uc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ne(t)})}function Kc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ne(t)})}function Vc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ne(t)})}function qc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ne(t)})}var Ey={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Py(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ne(t)})}function _y(e,t){return new e({type:"string",format:"date",check:"string_format",...ne(t)})}function ky(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ne(t)})}function Iy(e,t){return new e({type:"string",format:"duration",check:"string_format",...ne(t)})}function Ay(e,t){return new e({type:"number",checks:[],...ne(t)})}function wy(e,t){return new e({type:"number",coerce:!0,checks:[],...ne(t)})}function Cy(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ne(t)})}function Ny(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ne(t)})}function Oy(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ne(t)})}function Dy(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ne(t)})}function $y(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ne(t)})}function jy(e,t){return new e({type:"boolean",...ne(t)})}function Ly(e,t){return new e({type:"boolean",coerce:!0,...ne(t)})}function Ry(e,t){return new e({type:"bigint",...ne(t)})}function My(e,t){return new e({type:"bigint",coerce:!0,...ne(t)})}function Fy(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ne(t)})}function By(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ne(t)})}function zy(e,t){return new e({type:"symbol",...ne(t)})}function Uy(e,t){return new e({type:"undefined",...ne(t)})}function Ky(e,t){return new e({type:"null",...ne(t)})}function Vy(e){return new e({type:"any"})}function qy(e){return new e({type:"unknown"})}function Wy(e,t){return new e({type:"never",...ne(t)})}function Jy(e,t){return new e({type:"void",...ne(t)})}function Xy(e,t){return new e({type:"date",...ne(t)})}function Zy(e,t){return new e({type:"date",coerce:!0,...ne(t)})}function Yy(e,t){return new e({type:"nan",...ne(t)})}function fn(e,t){return new uc({check:"less_than",...ne(t),value:e,inclusive:!1})}function Nr(e,t){return new uc({check:"less_than",...ne(t),value:e,inclusive:!0})}function hn(e,t){return new pc({check:"greater_than",...ne(t),value:e,inclusive:!1})}function lr(e,t){return new pc({check:"greater_than",...ne(t),value:e,inclusive:!0})}function Wc(e){return hn(0,e)}function Jc(e){return fn(0,e)}function Xc(e){return Nr(0,e)}function Zc(e){return lr(0,e)}function ni(e,t){return new Kh({check:"multiple_of",...ne(t),value:e})}function ii(e,t){return new Wh({check:"max_size",...ne(t),maximum:e})}function mn(e,t){return new Jh({check:"min_size",...ne(t),minimum:e})}function ji(e,t){return new Xh({check:"size_equals",...ne(t),size:e})}function Li(e,t){return new Zh({check:"max_length",...ne(t),maximum:e})}function $n(e,t){return new Yh({check:"min_length",...ne(t),minimum:e})}function Ri(e,t){return new Gh({check:"length_equals",...ne(t),length:e})}function Ds(e,t){return new Hh({check:"string_format",format:"regex",...ne(t),pattern:e})}function $s(e){return new Qh({check:"string_format",format:"lowercase",...ne(e)})}function js(e){return new em({check:"string_format",format:"uppercase",...ne(e)})}function Ls(e,t){return new tm({check:"string_format",format:"includes",...ne(t),includes:e})}function Rs(e,t){return new rm({check:"string_format",format:"starts_with",...ne(t),prefix:e})}function Ms(e,t){return new nm({check:"string_format",format:"ends_with",...ne(t),suffix:e})}function Yc(e,t,r){return new im({check:"property",property:e,schema:t,...ne(r)})}function Fs(e,t){return new sm({check:"mime_type",mime:e,...ne(t)})}function Gr(e){return new am({check:"overwrite",tx:e})}function Bs(e){return Gr(t=>t.normalize(e))}function zs(){return Gr(e=>e.trim())}function Us(){return Gr(e=>e.toLowerCase())}function Ks(){return Gr(e=>e.toUpperCase())}function Vs(){return Gr(e=>rh(e))}function Gy(e,t,r){return new e({type:"array",element:t,...ne(r)})}function IM(e,t,r){return new e({type:"union",options:t,...ne(r)})}function AM(e,t,r){return new e({type:"union",options:t,inclusive:!1,...ne(r)})}function wM(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...ne(i)})}function CM(e,t,r){return new e({type:"intersection",left:t,right:r})}function NM(e,t,r,i){let n=r instanceof Ne,s=n?i:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...ne(s)})}function OM(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...ne(i)})}function DM(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...ne(i)})}function $M(e,t,r){return new e({type:"set",valueType:t,...ne(r)})}function jM(e,t,r){let i=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:i,...ne(r)})}function LM(e,t,r){return new e({type:"enum",entries:t,...ne(r)})}function RM(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ne(r)})}function Hy(e,t){return new e({type:"file",...ne(t)})}function MM(e,t){return new e({type:"transform",transform:t})}function FM(e,t){return new e({type:"optional",innerType:t})}function BM(e,t){return new e({type:"nullable",innerType:t})}function zM(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():ih(r)}})}function UM(e,t,r){return new e({type:"nonoptional",innerType:t,...ne(r)})}function KM(e,t){return new e({type:"success",innerType:t})}function VM(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function qM(e,t,r){return new e({type:"pipe",in:t,out:r})}function WM(e,t){return new e({type:"readonly",innerType:t})}function JM(e,t,r){return new e({type:"template_literal",parts:t,...ne(r)})}function XM(e,t){return new e({type:"lazy",getter:t})}function ZM(e,t){return new e({type:"promise",innerType:t})}function Qy(e,t,r){let i=ne(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function eg(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ne(r)})}function tg(e,t){let r=Q_(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(ks(n,i.value,r._zod.def));else{let s=n;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=i.value),s.inst??(s.inst=r),s.continue??(s.continue=!r._zod.def.abort),i.issues.push(ks(s))}},e(i.value,i)),t);return r}function Q_(e,t){let r=new St({check:"custom",...ne(t)});return r._zod.check=e,r}function rg(e){let t=new St({check:"describe"});return t._zod.onattach=[r=>{let i=Zt.get(r)??{};Zt.add(r,{...i,description:e})}],t._zod.check=()=>{},t}function ng(e){let t=new St({check:"meta"});return t._zod.onattach=[r=>{let i=Zt.get(r)??{};Zt.add(r,{...i,...e})}],t._zod.check=()=>{},t}function ig(e,t){let r=ne(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(y=>typeof y=="string"?y.toLowerCase():y),n=n.map(y=>typeof y=="string"?y.toLowerCase():y));let s=new Set(i),a=new Set(n),o=e.Codec??ho,c=e.Boolean??po,u=e.String??$i,p=new u({type:"string",error:r.error}),d=new c({type:"boolean",error:r.error}),h=new o({type:"pipe",in:p,out:d,transform:((y,T)=>{let w=y;return r.case!=="sensitive"&&(w=w.toLowerCase()),s.has(w)?!0:a.has(w)?!1:(T.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...a],input:T.value,inst:h,continue:!1}),{})}),reverseTransform:((y,T)=>y===!0?i[0]||"true":n[0]||"false"),error:r.error});return h}function qs(e,t,r,i={}){let n=ne(i),s={...ne(i),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:o=>r.test(o),...n};return r instanceof RegExp&&(s.pattern=r),new e(s)}function si(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Zt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ct(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,s=t.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let o=e._zod.toJSONSchema?.();if(o)a.schema=o;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let h=a.schema,y=t.processors[n.type];if(!y)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);y(e,t,h,p)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),ct(d,t,p),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&cr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function ai(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let o=e.metadataRegistry.get(a[0])?.id;if(o){let c=i.get(o);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(o,a[0])}}let n=a=>{let o=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,h=e.external.uri??(T=>T);if(d)return{ref:h(d)};let y=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=y,{defId:y,ref:`${h("__shared")}#/${o}/${y}`}}if(a[1]===r)return{ref:"#"};let u=`#/${o}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:u+p}},s=a=>{if(a[1].schema.$ref)return;let o=a[1],{ref:c,defId:u}=n(a);o.def={...o.schema},u&&(o.defId=u);let p=o.schema;for(let d in p)delete p[d];p.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let o=a[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
117
|
+
|
|
118
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let o=a[1];if(t===a[0]){s(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){s(a);continue}}if(e.metadataRegistry.get(a[0])?.id){s(a);continue}if(o.cycle){s(a);continue}if(o.count>1&&e.reused==="ref"){s(a);continue}}}function oi(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=o=>{let c=e.seen.get(o);if(c.ref===null)return;let u=c.def??c.schema,p={...u},d=c.ref;if(c.ref=null,d){i(d);let y=e.seen.get(d),T=y.schema;if(T.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(T)):Object.assign(u,T),Object.assign(u,p),o._zod.parent===d)for(let k in u)k==="$ref"||k==="allOf"||k in p||delete u[k];if(T.$ref&&y.def)for(let k in u)k==="$ref"||k==="allOf"||k in y.def&&JSON.stringify(u[k])===JSON.stringify(y.def[k])&&delete u[k]}let h=o._zod.parent;if(h&&h!==d){i(h);let y=e.seen.get(h);if(y?.schema.$ref&&(u.$ref=y.schema.$ref,y.def))for(let T in u)T==="$ref"||T==="allOf"||T in y.def&&JSON.stringify(u[T])===JSON.stringify(y.def[T])&&delete u[T]}e.override({zodSchema:o,jsonSchema:u,path:c.path??[]})};for(let o of[...e.seen.entries()].reverse())i(o[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let o=e.external.registry.get(t)?.id;if(!o)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(o)}Object.assign(n,r.def??r.schema);let s=e.metadataRegistry.get(t)?.id;s!==void 0&&n.id===s&&delete n.id;let a=e.external?.defs??{};for(let o of e.seen.entries()){let c=o[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let o=JSON.parse(JSON.stringify(n));return Object.defineProperty(o,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ws(t,"input",e.processors),output:Ws(t,"output",e.processors)}},enumerable:!1,writable:!1}),o}catch{throw new Error("Error converting schema to JSON.")}}function cr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return cr(i.element,r);if(i.type==="set")return cr(i.valueType,r);if(i.type==="lazy")return cr(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return cr(i.innerType,r);if(i.type==="intersection")return cr(i.left,r)||cr(i.right,r);if(i.type==="record"||i.type==="map")return cr(i.keyType,r)||cr(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:cr(i.in,r)||cr(i.out,r);if(i.type==="object"){for(let n in i.shape)if(cr(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(cr(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(cr(n,r))return!0;return!!(i.rest&&cr(i.rest,r))}return!1}var sg=(e,t={})=>r=>{let i=si({...r,processors:t});return ct(e,i),ai(i,e),oi(i,e)},Ws=(e,t,r={})=>i=>{let{libraryOptions:n,target:s}=i??{},a=si({...n??{},target:s,io:t,processors:r});return ct(e,a),ai(a,e),oi(a,e)};var YM={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ag=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:s,maximum:a,format:o,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof s=="number"&&(n.minLength=s),typeof a=="number"&&(n.maxLength=a),o&&(n.format=YM[o]??o,n.format===""&&delete n.format,o==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let p=[...c];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},og=(e,t,r,i)=>{let n=r,{minimum:s,maximum:a,format:o,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:p}=e._zod.bag;typeof o=="string"&&o.includes("int")?n.type="integer":n.type="number";let d=typeof p=="number"&&p>=(s??Number.NEGATIVE_INFINITY),h=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),y=t.target==="draft-04"||t.target==="openapi-3.0";d?y?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p:typeof s=="number"&&(n.minimum=s),h?y?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:typeof a=="number"&&(n.maximum=a),typeof c=="number"&&(n.multipleOf=c)},lg=(e,t,r,i)=>{r.type="boolean"},cg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},ug=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},pg=(e,t,r,i)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},dg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},fg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},hg=(e,t,r,i)=>{r.not={}},mg=(e,t,r,i)=>{},yg=(e,t,r,i)=>{},gg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},xg=(e,t,r,i)=>{let n=e._zod.def,s=eo(n.entries);s.every(a=>typeof a=="number")&&(r.type="number"),s.every(a=>typeof a=="string")&&(r.type="string"),r.enum=s},Sg=(e,t,r,i)=>{let n=e._zod.def,s=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(a))}else s.push(a);if(s.length!==0)if(s.length===1){let a=s[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else s.every(a=>typeof a=="number")&&(r.type="number"),s.every(a=>typeof a=="string")&&(r.type="string"),s.every(a=>typeof a=="boolean")&&(r.type="boolean"),s.every(a=>a===null)&&(r.type="null"),r.enum=s},bg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},vg=(e,t,r,i)=>{let n=r,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=s.source},Tg=(e,t,r,i)=>{let n=r,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:o,mime:c}=e._zod.bag;a!==void 0&&(s.minLength=a),o!==void 0&&(s.maxLength=o),c?c.length===1?(s.contentMediaType=c[0],Object.assign(n,s)):(Object.assign(n,s),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,s)},Eg=(e,t,r,i)=>{r.type="boolean"},Pg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},_g=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},kg=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ig=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Ag=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},wg=(e,t,r,i)=>{let n=r,s=e._zod.def,{minimum:a,maximum:o}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof o=="number"&&(n.maxItems=o),n.type="array",n.items=ct(s.element,t,{...i,path:[...i.path,"items"]})},Cg=(e,t,r,i)=>{let n=r,s=e._zod.def;n.type="object",n.properties={};let a=s.shape;for(let u in a)n.properties[u]=ct(a[u],t,{...i,path:[...i.path,"properties",u]});let o=new Set(Object.keys(a)),c=new Set([...o].filter(u=>{let p=s.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(n.required=Array.from(c)),s.catchall?._zod.def.type==="never"?n.additionalProperties=!1:s.catchall?s.catchall&&(n.additionalProperties=ct(s.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Hc=(e,t,r,i)=>{let n=e._zod.def,s=n.inclusive===!1,a=n.options.map((o,c)=>ct(o,t,{...i,path:[...i.path,s?"oneOf":"anyOf",c]}));s?r.oneOf=a:r.anyOf=a},Ng=(e,t,r,i)=>{let n=e._zod.def,s=ct(n.left,t,{...i,path:[...i.path,"allOf",0]}),a=ct(n.right,t,{...i,path:[...i.path,"allOf",1]}),o=u=>"allOf"in u&&Object.keys(u).length===1,c=[...o(s)?s.allOf:[s],...o(a)?a.allOf:[a]];r.allOf=c},Og=(e,t,r,i)=>{let n=r,s=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",o=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=s.items.map((h,y)=>ct(h,t,{...i,path:[...i.path,a,y]})),u=s.rest?ct(s.rest,t,{...i,path:[...i.path,o,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:p,maximum:d}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof d=="number"&&(n.maxItems=d)},Dg=(e,t,r,i)=>{let n=r,s=e._zod.def;n.type="object";let a=s.keyType,c=a._zod.bag?.patterns;if(s.mode==="loose"&&c&&c.size>0){let p=ct(s.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let d of c)n.patternProperties[d.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=ct(s.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=ct(s.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let u=a._zod.values;if(u){let p=[...u].filter(d=>typeof d=="string"||typeof d=="number");p.length>0&&(n.required=p)}},$g=(e,t,r,i)=>{let n=e._zod.def,s=ct(n.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},jg=(e,t,r,i)=>{let n=e._zod.def;ct(n.innerType,t,i);let s=t.seen.get(e);s.ref=n.innerType},Lg=(e,t,r,i)=>{let n=e._zod.def;ct(n.innerType,t,i);let s=t.seen.get(e);s.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Rg=(e,t,r,i)=>{let n=e._zod.def;ct(n.innerType,t,i);let s=t.seen.get(e);s.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Mg=(e,t,r,i)=>{let n=e._zod.def;ct(n.innerType,t,i);let s=t.seen.get(e);s.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Fg=(e,t,r,i)=>{let n=e._zod.def,s=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?s?n.out:n.in:n.out;ct(a,t,i);let o=t.seen.get(e);o.ref=a},Bg=(e,t,r,i)=>{let n=e._zod.def;ct(n.innerType,t,i);let s=t.seen.get(e);s.ref=n.innerType,r.readOnly=!0},zg=(e,t,r,i)=>{let n=e._zod.def;ct(n.innerType,t,i);let s=t.seen.get(e);s.ref=n.innerType},Qc=(e,t,r,i)=>{let n=e._zod.def;ct(n.innerType,t,i);let s=t.seen.get(e);s.ref=n.innerType},Ug=(e,t,r,i)=>{let n=e._zod.innerType;ct(n,t,i);let s=t.seen.get(e);s.ref=n},Gc={string:ag,number:og,boolean:lg,bigint:cg,symbol:ug,null:pg,undefined:dg,void:fg,never:hg,any:mg,unknown:yg,date:gg,enum:xg,literal:Sg,nan:bg,template_literal:vg,file:Tg,success:Eg,custom:Pg,function:_g,transform:kg,map:Ig,set:Ag,array:wg,object:Cg,union:Hc,intersection:Ng,tuple:Og,record:Dg,nullable:$g,nonoptional:jg,default:Lg,prefault:Rg,catch:Mg,pipe:Fg,readonly:Bg,promise:zg,optional:Qc,lazy:Ug};function eu(e,t){if("_idmap"in e){let i=e,n=si({...t,processors:Gc}),s={};for(let c of i._idmap.entries()){let[u,p]=c;ct(p,n)}let a={},o={registry:i,uri:t?.uri,defs:s};n.external=o;for(let c of i._idmap.entries()){let[u,p]=c;ai(n,p),a[u]=oi(n,p)}if(Object.keys(s).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:s}}return{schemas:a}}let r=si({...t,processors:Gc});return ct(e,r),ai(r,e),oi(r,e)}var tu=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=si({processors:Gc,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return ct(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),ai(this.ctx,t);let i=oi(this.ctx,t),{"~standard":n,...s}=i;return s}};var ek={};var So={};dn(So,{ZodAny:()=>dx,ZodArray:()=>yx,ZodBase64:()=>Tu,ZodBase64URL:()=>Eu,ZodBigInt:()=>ea,ZodBigIntFormat:()=>ku,ZodBoolean:()=>Qs,ZodCIDRv4:()=>bu,ZodCIDRv6:()=>vu,ZodCUID:()=>fu,ZodCUID2:()=>hu,ZodCatch:()=>Mx,ZodCodec:()=>No,ZodCustom:()=>Oo,ZodCustomStringFormat:()=>Gs,ZodDate:()=>ko,ZodDefault:()=>Ox,ZodDiscriminatedUnion:()=>xx,ZodE164:()=>Pu,ZodEmail:()=>uu,ZodEmoji:()=>pu,ZodEnum:()=>Zs,ZodExactOptional:()=>wx,ZodFile:()=>Ix,ZodFunction:()=>Xx,ZodGUID:()=>vo,ZodIPv4:()=>xu,ZodIPv6:()=>Su,ZodIntersection:()=>Sx,ZodJWT:()=>_u,ZodKSUID:()=>gu,ZodLazy:()=>qx,ZodLiteral:()=>kx,ZodMAC:()=>sx,ZodMap:()=>Px,ZodNaN:()=>Bx,ZodNanoID:()=>du,ZodNever:()=>hx,ZodNonOptional:()=>Ou,ZodNull:()=>ux,ZodNullable:()=>Nx,ZodNumber:()=>Hs,ZodNumberFormat:()=>Fi,ZodObject:()=>Ao,ZodOptional:()=>Nu,ZodPipe:()=>Co,ZodPrefault:()=>$x,ZodPreprocess:()=>zx,ZodPromise:()=>Jx,ZodReadonly:()=>Ux,ZodRecord:()=>Xs,ZodSet:()=>_x,ZodString:()=>Ys,ZodStringFormat:()=>mt,ZodSuccess:()=>Rx,ZodSymbol:()=>lx,ZodTemplateLiteral:()=>Vx,ZodTransform:()=>Ax,ZodTuple:()=>vx,ZodType:()=>$e,ZodULID:()=>mu,ZodURL:()=>_o,ZodUUID:()=>yn,ZodUndefined:()=>cx,ZodUnion:()=>wo,ZodUnknown:()=>fx,ZodVoid:()=>mx,ZodXID:()=>yu,ZodXor:()=>gx,_ZodString:()=>cu,_default:()=>Dx,_function:()=>cI,any:()=>Bk,array:()=>Io,base64:()=>Ek,base64url:()=>Pk,bigint:()=>jk,boolean:()=>ox,catch:()=>Fx,check:()=>uI,cidrv4:()=>vk,cidrv6:()=>Tk,codec:()=>sI,cuid:()=>fk,cuid2:()=>hk,custom:()=>pI,date:()=>Uk,describe:()=>dI,discriminatedUnion:()=>Xk,e164:()=>_k,email:()=>nk,emoji:()=>pk,enum:()=>wu,exactOptional:()=>Cx,file:()=>tI,float32:()=>Nk,float64:()=>Ok,function:()=>cI,guid:()=>ik,hash:()=>Ck,hex:()=>wk,hostname:()=>Ak,httpUrl:()=>uk,instanceof:()=>hI,int:()=>ou,int32:()=>Dk,int64:()=>Lk,intersection:()=>bx,invertCodec:()=>aI,ipv4:()=>xk,ipv6:()=>bk,json:()=>yI,jwt:()=>kk,keyof:()=>Kk,ksuid:()=>gk,lazy:()=>Wx,literal:()=>eI,looseObject:()=>Wk,looseRecord:()=>Yk,mac:()=>Sk,map:()=>Gk,meta:()=>fI,nan:()=>iI,nanoid:()=>dk,nativeEnum:()=>Qk,never:()=>Iu,nonoptional:()=>Lx,null:()=>px,nullable:()=>Eo,nullish:()=>rI,number:()=>ax,object:()=>Vk,optional:()=>To,partialRecord:()=>Zk,pipe:()=>lu,prefault:()=>jx,preprocess:()=>gI,promise:()=>lI,readonly:()=>Kx,record:()=>Ex,refine:()=>Zx,set:()=>Hk,strictObject:()=>qk,string:()=>bo,stringFormat:()=>Ik,stringbool:()=>mI,success:()=>nI,superRefine:()=>Yx,symbol:()=>Mk,templateLiteral:()=>oI,transform:()=>Cu,tuple:()=>Tx,uint32:()=>$k,uint64:()=>Rk,ulid:()=>mk,undefined:()=>Fk,union:()=>Au,unknown:()=>Mi,url:()=>ck,uuid:()=>sk,uuidv4:()=>ak,uuidv6:()=>ok,uuidv7:()=>lk,void:()=>zk,xid:()=>yk,xor:()=>Jk});var ru={};dn(ru,{endsWith:()=>Ms,gt:()=>hn,gte:()=>lr,includes:()=>Ls,length:()=>Ri,lowercase:()=>$s,lt:()=>fn,lte:()=>Nr,maxLength:()=>Li,maxSize:()=>ii,mime:()=>Fs,minLength:()=>$n,minSize:()=>mn,multipleOf:()=>ni,negative:()=>Jc,nonnegative:()=>Zc,nonpositive:()=>Xc,normalize:()=>Bs,overwrite:()=>Gr,positive:()=>Wc,property:()=>Yc,regex:()=>Ds,size:()=>ji,slugify:()=>Vs,startsWith:()=>Rs,toLowerCase:()=>Us,toUpperCase:()=>Ks,trim:()=>zs,uppercase:()=>js});var Js={};dn(Js,{ZodISODate:()=>iu,ZodISODateTime:()=>nu,ZodISODuration:()=>au,ZodISOTime:()=>su,date:()=>Vg,datetime:()=>Kg,duration:()=>Wg,time:()=>qg});var nu=N("ZodISODateTime",(e,t)=>{bm.init(e,t),mt.init(e,t)});function Kg(e){return Py(nu,e)}var iu=N("ZodISODate",(e,t)=>{vm.init(e,t),mt.init(e,t)});function Vg(e){return _y(iu,e)}var su=N("ZodISOTime",(e,t)=>{Tm.init(e,t),mt.init(e,t)});function qg(e){return ky(su,e)}var au=N("ZodISODuration",(e,t)=>{Em.init(e,t),mt.init(e,t)});function Wg(e){return Iy(au,e)}var tk=(e,t)=>{so.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>oo(e,r)},flatten:{value:r=>ao(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ps,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ps,2)}},isEmpty:{get(){return e.issues.length===0}}})},HM=N("ZodError",tk),Er=N("ZodError",tk,{Parent:Error});var Jg=Is(Er),Xg=As(Er),Zg=ws(Er),Yg=Cs(Er),Gg=ec(Er),Hg=tc(Er),Qg=rc(Er),ex=nc(Er),tx=ic(Er),rx=sc(Er),nx=ac(Er),ix=oc(Er);var rk=new WeakMap;function Po(e,t,r){let i=Object.getPrototypeOf(e),n=rk.get(i);if(n||(n=new Set,rk.set(i,n)),!n.has(t)){n.add(t);for(let s in r){let a=r[s];Object.defineProperty(i,s,{configurable:!0,enumerable:!1,get(){let o=a.bind(this);return Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:o}),o},set(o){Object.defineProperty(this,s,{configurable:!0,writable:!0,enumerable:!0,value:o})}})}}}var $e=N("ZodType",(e,t)=>(Ne.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ws(e,"input"),output:Ws(e,"output")}}),e.toJSONSchema=sg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,i)=>Jg(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Zg(e,r,i),e.parseAsync=async(r,i)=>Xg(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>Yg(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>Gg(e,r,i),e.decode=(r,i)=>Hg(e,r,i),e.encodeAsync=async(r,i)=>Qg(e,r,i),e.decodeAsync=async(r,i)=>ex(e,r,i),e.safeEncode=(r,i)=>tx(e,r,i),e.safeDecode=(r,i)=>rx(e,r,i),e.safeEncodeAsync=async(r,i)=>nx(e,r,i),e.safeDecodeAsync=async(r,i)=>ix(e,r,i),Po(e,"ZodType",{check(...r){let i=this.def;return this.clone(Q.mergeDefs(i,{checks:[...i.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return ar(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(Zx(r,i))},superRefine(r,i){return this.check(Yx(r,i))},overwrite(r){return this.check(Gr(r))},optional(){return To(this)},exactOptional(){return Cx(this)},nullable(){return Eo(this)},nullish(){return To(Eo(this))},nonoptional(r){return Lx(this,r)},array(){return Io(this)},or(r){return Au([this,r])},and(r){return bx(this,r)},transform(r){return lu(this,Cu(r))},default(r){return Dx(this,r)},prefault(r){return jx(this,r)},catch(r){return Fx(this,r)},pipe(r){return lu(this,r)},readonly(){return Kx(this)},describe(r){let i=this.clone();return Zt.add(i,{description:r}),i},meta(...r){if(r.length===0)return Zt.get(this);let i=this.clone();return Zt.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return Zt.get(e)?.description},configurable:!0}),e)),cu=N("_ZodString",(e,t)=>{$i.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(i,n,s)=>ag(e,i,n,s);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Po(e,"_ZodString",{regex(...i){return this.check(Ds(...i))},includes(...i){return this.check(Ls(...i))},startsWith(...i){return this.check(Rs(...i))},endsWith(...i){return this.check(Ms(...i))},min(...i){return this.check($n(...i))},max(...i){return this.check(Li(...i))},length(...i){return this.check(Ri(...i))},nonempty(...i){return this.check($n(1,...i))},lowercase(i){return this.check($s(i))},uppercase(i){return this.check(js(i))},trim(){return this.check(zs())},normalize(...i){return this.check(Bs(...i))},toLowerCase(){return this.check(Us())},toUpperCase(){return this.check(Ks())},slugify(){return this.check(Vs())}})}),Ys=N("ZodString",(e,t)=>{$i.init(e,t),cu.init(e,t),e.email=r=>e.check(kc(uu,r)),e.url=r=>e.check(xo(_o,r)),e.jwt=r=>e.check(qc(_u,r)),e.emoji=r=>e.check(Nc(pu,r)),e.guid=r=>e.check(go(vo,r)),e.uuid=r=>e.check(Ic(yn,r)),e.uuidv4=r=>e.check(Ac(yn,r)),e.uuidv6=r=>e.check(wc(yn,r)),e.uuidv7=r=>e.check(Cc(yn,r)),e.nanoid=r=>e.check(Oc(du,r)),e.guid=r=>e.check(go(vo,r)),e.cuid=r=>e.check(Dc(fu,r)),e.cuid2=r=>e.check($c(hu,r)),e.ulid=r=>e.check(jc(mu,r)),e.base64=r=>e.check(Uc(Tu,r)),e.base64url=r=>e.check(Kc(Eu,r)),e.xid=r=>e.check(Lc(yu,r)),e.ksuid=r=>e.check(Rc(gu,r)),e.ipv4=r=>e.check(Mc(xu,r)),e.ipv6=r=>e.check(Fc(Su,r)),e.cidrv4=r=>e.check(Bc(bu,r)),e.cidrv6=r=>e.check(zc(vu,r)),e.e164=r=>e.check(Vc(Pu,r)),e.datetime=r=>e.check(Kg(r)),e.date=r=>e.check(Vg(r)),e.time=r=>e.check(qg(r)),e.duration=r=>e.check(Wg(r))});function bo(e){return by(Ys,e)}var mt=N("ZodStringFormat",(e,t)=>{ht.init(e,t),cu.init(e,t)}),uu=N("ZodEmail",(e,t)=>{pm.init(e,t),mt.init(e,t)});function nk(e){return kc(uu,e)}var vo=N("ZodGUID",(e,t)=>{cm.init(e,t),mt.init(e,t)});function ik(e){return go(vo,e)}var yn=N("ZodUUID",(e,t)=>{um.init(e,t),mt.init(e,t)});function sk(e){return Ic(yn,e)}function ak(e){return Ac(yn,e)}function ok(e){return wc(yn,e)}function lk(e){return Cc(yn,e)}var _o=N("ZodURL",(e,t)=>{dm.init(e,t),mt.init(e,t)});function ck(e){return xo(_o,e)}function uk(e){return xo(_o,{protocol:Cr.httpProtocol,hostname:Cr.domain,...Q.normalizeParams(e)})}var pu=N("ZodEmoji",(e,t)=>{fm.init(e,t),mt.init(e,t)});function pk(e){return Nc(pu,e)}var du=N("ZodNanoID",(e,t)=>{hm.init(e,t),mt.init(e,t)});function dk(e){return Oc(du,e)}var fu=N("ZodCUID",(e,t)=>{mm.init(e,t),mt.init(e,t)});function fk(e){return Dc(fu,e)}var hu=N("ZodCUID2",(e,t)=>{ym.init(e,t),mt.init(e,t)});function hk(e){return $c(hu,e)}var mu=N("ZodULID",(e,t)=>{gm.init(e,t),mt.init(e,t)});function mk(e){return jc(mu,e)}var yu=N("ZodXID",(e,t)=>{xm.init(e,t),mt.init(e,t)});function yk(e){return Lc(yu,e)}var gu=N("ZodKSUID",(e,t)=>{Sm.init(e,t),mt.init(e,t)});function gk(e){return Rc(gu,e)}var xu=N("ZodIPv4",(e,t)=>{Pm.init(e,t),mt.init(e,t)});function xk(e){return Mc(xu,e)}var sx=N("ZodMAC",(e,t)=>{km.init(e,t),mt.init(e,t)});function Sk(e){return Ty(sx,e)}var Su=N("ZodIPv6",(e,t)=>{_m.init(e,t),mt.init(e,t)});function bk(e){return Fc(Su,e)}var bu=N("ZodCIDRv4",(e,t)=>{Im.init(e,t),mt.init(e,t)});function vk(e){return Bc(bu,e)}var vu=N("ZodCIDRv6",(e,t)=>{Am.init(e,t),mt.init(e,t)});function Tk(e){return zc(vu,e)}var Tu=N("ZodBase64",(e,t)=>{Cm.init(e,t),mt.init(e,t)});function Ek(e){return Uc(Tu,e)}var Eu=N("ZodBase64URL",(e,t)=>{Nm.init(e,t),mt.init(e,t)});function Pk(e){return Kc(Eu,e)}var Pu=N("ZodE164",(e,t)=>{Om.init(e,t),mt.init(e,t)});function _k(e){return Vc(Pu,e)}var _u=N("ZodJWT",(e,t)=>{Dm.init(e,t),mt.init(e,t)});function kk(e){return qc(_u,e)}var Gs=N("ZodCustomStringFormat",(e,t)=>{$m.init(e,t),mt.init(e,t)});function Ik(e,t,r={}){return qs(Gs,e,t,r)}function Ak(e){return qs(Gs,"hostname",Cr.hostname,e)}function wk(e){return qs(Gs,"hex",Cr.hex,e)}function Ck(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=Cr[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return qs(Gs,i,n,t)}var Hs=N("ZodNumber",(e,t)=>{yc.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(i,n,s)=>og(e,i,n,s),Po(e,"ZodNumber",{gt(i,n){return this.check(hn(i,n))},gte(i,n){return this.check(lr(i,n))},min(i,n){return this.check(lr(i,n))},lt(i,n){return this.check(fn(i,n))},lte(i,n){return this.check(Nr(i,n))},max(i,n){return this.check(Nr(i,n))},int(i){return this.check(ou(i))},safe(i){return this.check(ou(i))},positive(i){return this.check(hn(0,i))},nonnegative(i){return this.check(lr(0,i))},negative(i){return this.check(fn(0,i))},nonpositive(i){return this.check(Nr(0,i))},multipleOf(i,n){return this.check(ni(i,n))},step(i,n){return this.check(ni(i,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function ax(e){return Ay(Hs,e)}var Fi=N("ZodNumberFormat",(e,t)=>{jm.init(e,t),Hs.init(e,t)});function ou(e){return Cy(Fi,e)}function Nk(e){return Ny(Fi,e)}function Ok(e){return Oy(Fi,e)}function Dk(e){return Dy(Fi,e)}function $k(e){return $y(Fi,e)}var Qs=N("ZodBoolean",(e,t)=>{po.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>lg(e,r,i,n)});function ox(e){return jy(Qs,e)}var ea=N("ZodBigInt",(e,t)=>{gc.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(i,n,s)=>cg(e,i,n,s),e.gte=(i,n)=>e.check(lr(i,n)),e.min=(i,n)=>e.check(lr(i,n)),e.gt=(i,n)=>e.check(hn(i,n)),e.gte=(i,n)=>e.check(lr(i,n)),e.min=(i,n)=>e.check(lr(i,n)),e.lt=(i,n)=>e.check(fn(i,n)),e.lte=(i,n)=>e.check(Nr(i,n)),e.max=(i,n)=>e.check(Nr(i,n)),e.positive=i=>e.check(hn(BigInt(0),i)),e.negative=i=>e.check(fn(BigInt(0),i)),e.nonpositive=i=>e.check(Nr(BigInt(0),i)),e.nonnegative=i=>e.check(lr(BigInt(0),i)),e.multipleOf=(i,n)=>e.check(ni(i,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function jk(e){return Ry(ea,e)}var ku=N("ZodBigIntFormat",(e,t)=>{Lm.init(e,t),ea.init(e,t)});function Lk(e){return Fy(ku,e)}function Rk(e){return By(ku,e)}var lx=N("ZodSymbol",(e,t)=>{Rm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>ug(e,r,i,n)});function Mk(e){return zy(lx,e)}var cx=N("ZodUndefined",(e,t)=>{Mm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>dg(e,r,i,n)});function Fk(e){return Uy(cx,e)}var ux=N("ZodNull",(e,t)=>{Fm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>pg(e,r,i,n)});function px(e){return Ky(ux,e)}var dx=N("ZodAny",(e,t)=>{Bm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>mg(e,r,i,n)});function Bk(){return Vy(dx)}var fx=N("ZodUnknown",(e,t)=>{zm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>yg(e,r,i,n)});function Mi(){return qy(fx)}var hx=N("ZodNever",(e,t)=>{Um.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>hg(e,r,i,n)});function Iu(e){return Wy(hx,e)}var mx=N("ZodVoid",(e,t)=>{Km.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>fg(e,r,i,n)});function zk(e){return Jy(mx,e)}var ko=N("ZodDate",(e,t)=>{Vm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(i,n,s)=>gg(e,i,n,s),e.min=(i,n)=>e.check(lr(i,n)),e.max=(i,n)=>e.check(Nr(i,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Uk(e){return Xy(ko,e)}var yx=N("ZodArray",(e,t)=>{qm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>wg(e,r,i,n),e.element=t.element,Po(e,"ZodArray",{min(r,i){return this.check($n(r,i))},nonempty(r){return this.check($n(1,r))},max(r,i){return this.check(Li(r,i))},length(r,i){return this.check(Ri(r,i))},unwrap(){return this.element}})});function Io(e,t){return Gy(yx,e,t)}function Kk(e){let t=e._zod.def.shape;return wu(Object.keys(t))}var Ao=N("ZodObject",(e,t)=>{Wm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Cg(e,r,i,n),Q.defineLazy(e,"shape",()=>t.shape),Po(e,"ZodObject",{keyof(){return wu(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Mi()})},loose(){return this.clone({...this._zod.def,catchall:Mi()})},strict(){return this.clone({...this._zod.def,catchall:Iu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return Q.extend(this,r)},safeExtend(r){return Q.safeExtend(this,r)},merge(r){return Q.merge(this,r)},pick(r){return Q.pick(this,r)},omit(r){return Q.omit(this,r)},partial(...r){return Q.partial(Nu,this,r[0])},required(...r){return Q.required(Ou,this,r[0])}})});function Vk(e,t){let r={type:"object",shape:e??{},...Q.normalizeParams(t)};return new Ao(r)}function qk(e,t){return new Ao({type:"object",shape:e,catchall:Iu(),...Q.normalizeParams(t)})}function Wk(e,t){return new Ao({type:"object",shape:e,catchall:Mi(),...Q.normalizeParams(t)})}var wo=N("ZodUnion",(e,t)=>{fo.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hc(e,r,i,n),e.options=t.options});function Au(e,t){return new wo({type:"union",options:e,...Q.normalizeParams(t)})}var gx=N("ZodXor",(e,t)=>{wo.init(e,t),Jm.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Hc(e,r,i,n),e.options=t.options});function Jk(e,t){return new gx({type:"union",options:e,inclusive:!1,...Q.normalizeParams(t)})}var xx=N("ZodDiscriminatedUnion",(e,t)=>{wo.init(e,t),Xm.init(e,t)});function Xk(e,t,r){return new xx({type:"union",options:t,discriminator:e,...Q.normalizeParams(r)})}var Sx=N("ZodIntersection",(e,t)=>{Zm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ng(e,r,i,n)});function bx(e,t){return new Sx({type:"intersection",left:e,right:t})}var vx=N("ZodTuple",(e,t)=>{xc.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Og(e,r,i,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Tx(e,t,r){let i=t instanceof Ne,n=i?r:t,s=i?t:null;return new vx({type:"tuple",items:e,rest:s,...Q.normalizeParams(n)})}var Xs=N("ZodRecord",(e,t)=>{Ym.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Dg(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType});function Ex(e,t,r){return!t||!t._zod?new Xs({type:"record",keyType:bo(),valueType:e,...Q.normalizeParams(t)}):new Xs({type:"record",keyType:e,valueType:t,...Q.normalizeParams(r)})}function Zk(e,t,r){let i=ar(e);return i._zod.values=void 0,new Xs({type:"record",keyType:i,valueType:t,...Q.normalizeParams(r)})}function Yk(e,t,r){return new Xs({type:"record",keyType:e,valueType:t,mode:"loose",...Q.normalizeParams(r)})}var Px=N("ZodMap",(e,t)=>{Gm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ig(e,r,i,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(mn(...r)),e.nonempty=r=>e.check(mn(1,r)),e.max=(...r)=>e.check(ii(...r)),e.size=(...r)=>e.check(ji(...r))});function Gk(e,t,r){return new Px({type:"map",keyType:e,valueType:t,...Q.normalizeParams(r)})}var _x=N("ZodSet",(e,t)=>{Hm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ag(e,r,i,n),e.min=(...r)=>e.check(mn(...r)),e.nonempty=r=>e.check(mn(1,r)),e.max=(...r)=>e.check(ii(...r)),e.size=(...r)=>e.check(ji(...r))});function Hk(e,t){return new _x({type:"set",valueType:e,...Q.normalizeParams(t)})}var Zs=N("ZodEnum",(e,t)=>{Qm.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(i,n,s)=>xg(e,i,n,s),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(i,n)=>{let s={};for(let a of i)if(r.has(a))s[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Zs({...t,checks:[],...Q.normalizeParams(n),entries:s})},e.exclude=(i,n)=>{let s={...t.entries};for(let a of i)if(r.has(a))delete s[a];else throw new Error(`Key ${a} not found in enum`);return new Zs({...t,checks:[],...Q.normalizeParams(n),entries:s})}});function wu(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Zs({type:"enum",entries:r,...Q.normalizeParams(t)})}function Qk(e,t){return new Zs({type:"enum",entries:e,...Q.normalizeParams(t)})}var kx=N("ZodLiteral",(e,t)=>{ey.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Sg(e,r,i,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function eI(e,t){return new kx({type:"literal",values:Array.isArray(e)?e:[e],...Q.normalizeParams(t)})}var Ix=N("ZodFile",(e,t)=>{ty.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Tg(e,r,i,n),e.min=(r,i)=>e.check(mn(r,i)),e.max=(r,i)=>e.check(ii(r,i)),e.mime=(r,i)=>e.check(Fs(Array.isArray(r)?r:[r],i))});function tI(e){return Hy(Ix,e)}var Ax=N("ZodTransform",(e,t)=>{ry.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>kg(e,r,i,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Hn(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(Q.issue(s,r.value,t));else{let a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Q.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(s=>(r.value=s,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function Cu(e){return new Ax({type:"transform",transform:e})}var Nu=N("ZodOptional",(e,t)=>{Sc.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Qc(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function To(e){return new Nu({type:"optional",innerType:e})}var wx=N("ZodExactOptional",(e,t)=>{ny.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Qc(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Cx(e){return new wx({type:"optional",innerType:e})}var Nx=N("ZodNullable",(e,t)=>{iy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>$g(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Eo(e){return new Nx({type:"nullable",innerType:e})}function rI(e){return To(Eo(e))}var Ox=N("ZodDefault",(e,t)=>{sy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Lg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Dx(e,t){return new Ox({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Q.shallowClone(t)}})}var $x=N("ZodPrefault",(e,t)=>{ay.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Rg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function jx(e,t){return new $x({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Q.shallowClone(t)}})}var Ou=N("ZodNonOptional",(e,t)=>{oy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>jg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Lx(e,t){return new Ou({type:"nonoptional",innerType:e,...Q.normalizeParams(t)})}var Rx=N("ZodSuccess",(e,t)=>{ly.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Eg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function nI(e){return new Rx({type:"success",innerType:e})}var Mx=N("ZodCatch",(e,t)=>{cy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Mg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Fx(e,t){return new Mx({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var Bx=N("ZodNaN",(e,t)=>{uy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>bg(e,r,i,n)});function iI(e){return Yy(Bx,e)}var Co=N("ZodPipe",(e,t)=>{bc.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Fg(e,r,i,n),e.in=t.in,e.out=t.out});function lu(e,t){return new Co({type:"pipe",in:e,out:t})}var No=N("ZodCodec",(e,t)=>{Co.init(e,t),ho.init(e,t)});function sI(e,t,r){return new No({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function aI(e){let t=e._zod.def;return new No({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var zx=N("ZodPreprocess",(e,t)=>{Co.init(e,t),py.init(e,t)}),Ux=N("ZodReadonly",(e,t)=>{dy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Bg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function Kx(e){return new Ux({type:"readonly",innerType:e})}var Vx=N("ZodTemplateLiteral",(e,t)=>{fy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>vg(e,r,i,n)});function oI(e,t){return new Vx({type:"template_literal",parts:e,...Q.normalizeParams(t)})}var qx=N("ZodLazy",(e,t)=>{yy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Ug(e,r,i,n),e.unwrap=()=>e._zod.def.getter()});function Wx(e){return new qx({type:"lazy",getter:e})}var Jx=N("ZodPromise",(e,t)=>{my.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>zg(e,r,i,n),e.unwrap=()=>e._zod.def.innerType});function lI(e){return new Jx({type:"promise",innerType:e})}var Xx=N("ZodFunction",(e,t)=>{hy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>_g(e,r,i,n)});function cI(e){return new Xx({type:"function",input:Array.isArray(e?.input)?Tx(e?.input):e?.input??Io(Mi()),output:e?.output??Mi()})}var Oo=N("ZodCustom",(e,t)=>{gy.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,i,n)=>Pg(e,r,i,n)});function uI(e){let t=new St({check:"custom"});return t._zod.check=e,t}function pI(e,t){return Qy(Oo,e??(()=>!0),t)}function Zx(e,t={}){return eg(Oo,e,t)}function Yx(e,t){return tg(e,t)}var dI=rg,fI=ng;function hI(e,t={}){let r=new Oo({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...Q.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}var mI=(...e)=>ig({Codec:No,Boolean:Qs,String:Ys},...e);function yI(e){let t=Wx(()=>Au([bo(e),ax(),ox(),px(),Io(t),Ex(bo(),t)]));return t}function gI(e,t){return new zx({type:"pipe",in:Cu(e),out:t})}var eF={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function tF(e){Ct({customError:e})}function rF(){return Ct().customError}var Gx;Gx||(Gx={});var ue={...So,...ru,iso:Js},nF=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function iF(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function sF(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function xI(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ue.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return ue.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let s=sF(n,t),a=tr(s,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return ue.null();if(n.length===0)return ue.never();if(n.length===1)return ue.literal(n[0]);if(n.every(a=>typeof a=="string"))return ue.enum(n);let s=n.map(a=>ue.literal(a));return s.length<2?s[0]:ue.union([s[0],s[1],...s.slice(2)])}if(e.const!==void 0)return ue.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(s=>{let a={...e,type:s};return xI(a,t)});return n.length===0?ue.never():n.length===1?n[0]:ue.union(n)}if(!r)return ue.any();let i;switch(r){case"string":{let n=ue.string();if(e.format){let s=e.format;s==="email"?n=n.check(ue.email()):s==="uri"||s==="uri-reference"?n=n.check(ue.url()):s==="uuid"||s==="guid"?n=n.check(ue.uuid()):s==="date-time"?n=n.check(ue.iso.datetime()):s==="date"?n=n.check(ue.iso.date()):s==="time"?n=n.check(ue.iso.time()):s==="duration"?n=n.check(ue.iso.duration()):s==="ipv4"?n=n.check(ue.ipv4()):s==="ipv6"?n=n.check(ue.ipv6()):s==="mac"?n=n.check(ue.mac()):s==="cidr"?n=n.check(ue.cidrv4()):s==="cidr-v6"?n=n.check(ue.cidrv6()):s==="base64"?n=n.check(ue.base64()):s==="base64url"?n=n.check(ue.base64url()):s==="e164"?n=n.check(ue.e164()):s==="jwt"?n=n.check(ue.jwt()):s==="emoji"?n=n.check(ue.emoji()):s==="nanoid"?n=n.check(ue.nanoid()):s==="cuid"?n=n.check(ue.cuid()):s==="cuid2"?n=n.check(ue.cuid2()):s==="ulid"?n=n.check(ue.ulid()):s==="xid"?n=n.check(ue.xid()):s==="ksuid"&&(n=n.check(ue.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?ue.number().int():ue.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),i=n;break}case"boolean":{i=ue.boolean();break}case"null":{i=ue.null();break}case"object":{let n={},s=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(s)){let p=tr(u,t);n[c]=a.has(c)?p:p.optional()}if(e.propertyNames){let c=tr(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?tr(e.additionalProperties,t):ue.any();if(Object.keys(n).length===0){i=ue.record(c,u);break}let p=ue.object(n).passthrough(),d=ue.looseRecord(c,u);i=ue.intersection(p,d);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),p=[];for(let h of u){let y=tr(c[h],t),T=ue.string().regex(new RegExp(h));p.push(ue.looseRecord(T,y))}let d=[];if(Object.keys(n).length>0&&d.push(ue.object(n).passthrough()),d.push(...p),d.length===0)i=ue.object({}).passthrough();else if(d.length===1)i=d[0];else{let h=ue.intersection(d[0],d[1]);for(let y=2;y<d.length;y++)h=ue.intersection(h,d[y]);i=h}break}let o=ue.object(n);e.additionalProperties===!1?i=o.strict():typeof e.additionalProperties=="object"?i=o.catchall(tr(e.additionalProperties,t)):i=o.passthrough();break}case"array":{let n=e.prefixItems,s=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>tr(c,t)),o=s&&typeof s=="object"&&!Array.isArray(s)?tr(s,t):void 0;o?i=ue.tuple(a).rest(o):i=ue.tuple(a),typeof e.minItems=="number"&&(i=i.check(ue.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(ue.maxLength(e.maxItems)))}else if(Array.isArray(s)){let a=s.map(c=>tr(c,t)),o=e.additionalItems&&typeof e.additionalItems=="object"?tr(e.additionalItems,t):void 0;o?i=ue.tuple(a).rest(o):i=ue.tuple(a),typeof e.minItems=="number"&&(i=i.check(ue.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(ue.maxLength(e.maxItems)))}else if(s!==void 0){let a=tr(s,t),o=ue.array(a);typeof e.minItems=="number"&&(o=o.min(e.minItems)),typeof e.maxItems=="number"&&(o=o.max(e.maxItems)),i=o}else i=ue.array(ue.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function tr(e,t){if(typeof e=="boolean")return e?ue.any():ue.never();let r=xI(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let o=e.anyOf.map(u=>tr(u,t)),c=ue.union(o);r=i?ue.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let o=e.oneOf.map(u=>tr(u,t)),c=ue.xor(o);r=i?ue.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:ue.any();else{let o=i?r:tr(e.allOf[0],t),c=i?0:1;for(let u=c;u<e.allOf.length;u++)o=ue.intersection(o,tr(e.allOf[u],t));r=o}e.nullable===!0&&t.version==="openapi-3.0"&&(r=ue.nullable(r)),e.readOnly===!0&&(r=ue.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},s=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let o of s)o in e&&(n[o]=e[o]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let o of a)o in e&&(n[o]=e[o]);for(let o of Object.keys(e))nF.has(o)||(n[o]=e[o]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function SI(e,t){if(typeof e=="boolean")return e?ue.any():ue.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=iF(r,t?.defaultTarget),n=r.$defs||r.definitions||{},s={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??Zt};return tr(r,s)}var Hx={};dn(Hx,{bigint:()=>cF,boolean:()=>lF,date:()=>uF,number:()=>oF,string:()=>aF});function aF(e){return vy(Ys,e)}function oF(e){return wy(Hs,e)}function lF(e){return Ly(Qs,e)}function cF(e){return My(ea,e)}function uF(e){return Zy(ko,e)}Ct(vc());var pF=l.object({code:l.string().min(1),message:l.string().min(1)}),VEe=l.object({code:l.string().min(1),message:l.string().min(1)});function Qx(e){return l.object({ok:l.literal(!0),data:e})}function dF(e){let t={ok:l.literal(!1),error:pF.extend({code:e.codeSchema})};return e.currentSchema&&(t.current=e.currentSchema.optional()),e.diagnosticsSchema&&(t.diagnostics=l.array(e.diagnosticsSchema).optional()),e.dataSchema&&(t.data=e.dataSchema.optional()),l.object(t)}function Du(e){return l.discriminatedUnion("ok",[Qx(e.dataSchema),dF({codeSchema:e.codeSchema,currentSchema:e.currentSchema,diagnosticsSchema:e.diagnosticsSchema,dataSchema:e.failureDataSchema})])}var Do=l.enum(["update-text","remove-node","insert-child","move-node","replace-rich-text-content","insert-rich-text-block","remove-rich-text-block","set-media-field","set-component-slot-content","set-object-field","insert-object-field","remove-object-field","update-array-item","insert-array-item","remove-array-item","move-array-item","replace-conditional-expression","set-conditional-branch-content","set-jsx-prop","remove-jsx-prop","set-class-name","add-class-token","remove-class-token","set-style-property","set-style-properties","set-css-module-class","set-directive","remove-directive","set-route-export","set-metadata-field","set-generate-metadata"]),rr=l.lazy(()=>l.union([l.string(),l.number(),l.boolean(),l.null(),l.array(rr),l.record(l.string(),rr)])),vI=l.discriminatedUnion("kind",[l.object({kind:l.literal("node"),key:l.string().min(1)}),l.object({kind:l.literal("route"),routeId:l.string().min(1)})]),TI=l.enum(["display","position","top","right","bottom","left","zIndex","flexDirection","flexWrap","flexGrow","flexShrink","flexBasis","order","gridTemplateColumns","gridTemplateRows","columns","gridColumn","gridRow","gap","gapX","gapY","spaceX","spaceY","alignItems","justifyContent","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","width","height","minWidth","minHeight","maxWidth","maxHeight","overflow","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","textTransform","textDecoration","textOverflow","textIndent","writingMode","whiteSpace","wordBreak","lineClamp","fontVariantNumeric","screenReaderOnly","color","backgroundColor","backgroundImage","borderStyle","borderWidth","borderRadius","borderColor","objectFit","objectPosition","aspectRatio","opacity","boxShadow","transform","transformOrigin","transitionProperty","transitionDuration","transitionTimingFunction","animation","pointerEvents","cursor","userSelect","fontStyle","textUnderlineOffset","scrollMarginTop","alignSelf","flex","outlineStyle","resize","ringWidth","ringColor","backdropFilter","overscrollBehavior","divideWidth","divideColor"]),EI=l.enum(["hover","active","focus","disabled"]),PI=l.enum(["sm","md","lg","xl","2xl"]),bI=l.union([l.object({relation:l.enum(["before","after"]),anchorKey:l.string().min(1)}),l.object({relation:l.enum(["prepend","append"]),parentKey:l.string().min(1)})]),fF=l.discriminatedUnion("kind",[l.object({kind:l.literal("native-tag"),tag:l.string().min(1),text:l.string().optional()}),l.object({kind:l.literal("component-call"),component:l.object({source:l.string().min(1),exportName:l.string().min(1)}),props:l.record(l.string(),l.unknown()).optional()})]),hF=l.discriminatedUnion("kind",[l.object({kind:l.literal("update-text"),segmentIndex:l.number().int().min(0),value:l.string()}),l.object({kind:l.literal("remove-node")}),l.object({kind:l.literal("insert-child"),node:fF,position:bI}),l.object({kind:l.literal("move-node"),target:bI,preserveBindings:l.boolean().optional()}),l.object({kind:l.literal("replace-rich-text-content"),field:l.string().min(1),value:rr}),l.object({kind:l.literal("insert-rich-text-block"),field:l.string().min(1),index:l.number().int().min(0),block:rr}),l.object({kind:l.literal("remove-rich-text-block"),field:l.string().min(1),index:l.number().int().min(0)}),l.object({kind:l.literal("set-media-field"),field:l.enum(["src","alt","poster","caption","width","height"]),value:rr}),l.object({kind:l.literal("set-component-slot-content"),slotName:l.string().min(1),value:rr}),l.object({kind:l.literal("set-object-field"),segmentIndex:l.number().int().min(0),value:rr}),l.object({kind:l.literal("insert-object-field"),segmentIndex:l.number().int().min(0),field:l.string().min(1),value:rr}),l.object({kind:l.literal("remove-object-field"),segmentIndex:l.number().int().min(0),field:l.string().min(1).optional()}),l.object({kind:l.literal("update-array-item"),segmentIndex:l.number().int().min(0),value:rr,index:l.number().int().min(0).optional()}),l.object({kind:l.literal("insert-array-item"),segmentIndex:l.number().int().min(0),index:l.number().int().min(0),value:rr}),l.object({kind:l.literal("remove-array-item"),segmentIndex:l.number().int().min(0),index:l.number().int().min(0).optional()}),l.object({kind:l.literal("move-array-item"),segmentIndex:l.number().int().min(0),toIndex:l.number().int().min(0),fromIndex:l.number().int().min(0).optional()}),l.object({kind:l.literal("replace-conditional-expression"),nextExpression:l.string().min(1)}),l.object({kind:l.literal("set-conditional-branch-content"),branch:l.enum(["then","else"]),content:l.object({jsx:l.string().min(1)})}),l.object({kind:l.literal("set-jsx-prop"),name:l.string().min(1),value:rr.nullable()}),l.object({kind:l.literal("remove-jsx-prop"),name:l.string().min(1)}),l.object({kind:l.literal("set-class-name"),value:l.string()}),l.object({kind:l.literal("add-class-token"),token:l.string().min(1)}),l.object({kind:l.literal("remove-class-token"),token:l.string().min(1)}),l.object({kind:l.literal("set-style-property"),property:l.string().min(1),value:rr.nullable()}),l.object({kind:l.literal("set-style-properties"),properties:l.record(l.string(),rr.nullable())}),l.object({kind:l.literal("set-css-module-class"),from:l.string().min(1),to:l.string().min(1)}),l.object({kind:l.literal("set-directive"),value:l.enum(["use client","use server"])}),l.object({kind:l.literal("remove-directive"),value:l.enum(["use client","use server"])}),l.object({kind:l.literal("set-route-export"),name:l.string().min(1),value:rr}),l.object({kind:l.literal("set-metadata-field"),field:l.string().min(1),value:rr.nullable()}),l.object({kind:l.literal("set-generate-metadata"),field:l.string().min(1),value:rr.nullable()})]),_I=l.enum(["NODE_NOT_FOUND","ROUTE_NOT_FOUND","CAPABILITY_REJECTED","CONSTRAINT_VIOLATED","INVALID_PARAMS","PLAN_FAILED","VERSION_STALE","AST_PARSE_ERROR","UNSUPPORTED_OPERATION","LOCATOR_FAILED","INVALID_TARGET","WRITE_IO_ERROR","CONCURRENT_MODIFIED","ROLLBACK_FAILED","INTERNAL_ERROR"]),kI=l.object({code:_I,message:l.string().min(1),details:l.record(l.string(),l.unknown()).optional()}),II=l.object({id:l.string().min(1),siteId:l.string().min(1),baseSnapshotId:l.string().min(1),routeId:l.string().min(1).optional(),kind:Do,target:vI,documentVersion:l.number().int().nonnegative(),params:hF}).superRefine((e,t)=>{e.kind!==e.params.kind&&t.addIssue({code:"custom",path:["params","kind"],message:"params.kind must match operation kind"})}),$u=l.object({requestId:l.string().min(1),kind:Do,target:vI,resultVersion:l.number().int().nonnegative(),affectedFiles:l.array(l.string().min(1)).optional()}),XEe=Du({dataSchema:$u,codeSchema:_I,failureDataSchema:$u.partial()});var Lu=l.enum(["component-boundary","repeat-region","conditional-region","fragment-region","opaque-region"]),mF=l.enum(["direct","proxy","upstream","readonly","unsupported"]),yF=l.enum(["component-boundary","repeat-region","conditional-region","opaque-region","void-element","read-only","cross-file-required","import-required"]),ju=l.object({mode:mF,reasonCode:l.string().min(1).optional()}),gF=l.object({kind:yF,message:l.string().min(1)}),Ru=l.object({key:l.string().min(1),canUpdateText:l.boolean(),canInsertChild:l.boolean(),canMove:l.boolean(),canRemove:l.boolean(),editModes:l.object({updateText:ju.optional(),insertChild:ju.optional(),move:ju.optional(),remove:ju.optional()}).optional(),constraints:l.array(gF)});var $o=l.object({start:l.number().int().nonnegative(),end:l.number().int().nonnegative(),startLine:l.number().int().positive().optional(),startColumn:l.number().int().nonnegative().optional(),endLine:l.number().int().positive().optional(),endColumn:l.number().int().nonnegative().optional()}).superRefine((e,t)=>{e.end<e.start&&t.addIssue({code:"custom",path:["end"],message:"end must be greater than or equal to start"})}),AI=l.object({code:l.enum(["missing-class-name","unsupported-attribute-name","source-locator-warning","invalid-new-attr","version-conflict","write-failed"]),message:l.string().min(1)}),eS=l.object({key:l.string().min(1),routeId:l.string().min(1),filePath:l.string().min(1),componentName:l.string().min(1),sourceKind:l.enum(["missing","stringLiteral","expression"]),attrRaw:l.string().min(1).nullable(),valueRaw:l.string().min(1).nullable(),attrRange:$o.nullable(),valueRange:$o.nullable(),openingElementRange:$o,version:l.object({documentVersion:l.number().int().nonnegative(),contentHash:l.string().min(1),parserVersion:l.string().min(1)}),diagnostics:l.array(AI)}).superRefine((e,t)=>{if(e.sourceKind==="missing"){(e.attrRaw!==null||e.valueRaw!==null||e.attrRange!==null||e.valueRange!==null)&&t.addIssue({code:"custom",message:"missing className source must not include attr raw or range"});return}(e.attrRaw===null||e.valueRaw===null||e.attrRange===null||e.valueRange===null)&&t.addIssue({code:"custom",message:"present className source must include attr raw and ranges"})});var ePe=Qx(eS),xF=l.object({source:l.enum(["style-panel","class-source-editor"]),operation:l.enum(["replace-static-classname","replace-expression","create-attribute","remove-attribute"])}),tPe=l.object({key:l.string().min(1),routeId:l.string().min(1).optional(),filePath:l.string().min(1),expectedVersion:l.object({documentVersion:l.number().int().nonnegative(),contentHash:l.string().min(1)}),oldAttrRaw:l.string().min(1).nullable(),oldAttrRange:$o.nullable(),openingElementRange:$o,newAttrRaw:l.string().min(1).nullable(),intent:xF}),SF=l.enum(["node_not_found","document_version_stale","file_hash_mismatch","range_mismatch","old_attr_mismatch","invalid_new_attr","unsupported_target","write_failed"]),rPe=Du({dataSchema:eS,codeSchema:SF,currentSchema:eS,diagnosticsSchema:AI});var oPe=l.discriminatedUnion("type",[l.object({type:l.literal("site-edit.document.changed"),siteId:l.string().min(1),snapshotId:l.string().min(1),routeId:l.string().min(1),version:l.number().int().nonnegative(),at:l.string().min(1)}),l.object({type:l.literal("site-edit.operation.planned"),siteId:l.string().min(1),operationId:l.string().min(1),baseSnapshotId:l.string().min(1),changedFiles:l.array(l.string().min(1)),at:l.string().min(1)}),l.object({type:l.literal("site-edit.operation.completed"),siteId:l.string().min(1),result:$u,at:l.string().min(1)}),l.object({type:l.literal("site-edit.operation.failed"),siteId:l.string().min(1),requestId:l.string().min(1),error:kI,at:l.string().min(1)}),l.object({type:l.literal("site-edit.capability.changed"),siteId:l.string().min(1),routeId:l.string().min(1),keys:l.array(l.string().min(1)),at:l.string().min(1)})]);var wI="::",uPe=l.object({file:l.string().min(1),component:l.string().min(1),structuralPath:l.string().min(1),key:l.string().min(1)}).superRefine((e,t)=>{let r=bF(e.file,e.component,e.structuralPath);e.key!==r&&t.addIssue({code:"custom",path:["key"],message:"key must match file::component::structuralPath"})});function bF(e,t,r){return`${e}${wI}${t}${wI}${r}`}var vF=l.string().min(1).refine(e=>!e.startsWith("/")&&!e.includes(".."),{message:"Patch paths must be safe relative POSIX paths."}),TF=l.string().regex(/^sha256:[a-f0-9]{64}$/),EF=l.object({path:vF,operation:l.enum(["create","update","delete"]),expectedHash:TF.optional(),fullContent:l.string().optional()}).superRefine((e,t)=>{e.operation==="delete"&&e.fullContent!==void 0&&t.addIssue({code:"custom",path:["fullContent"],message:"delete patches must not include fullContent"}),e.operation!=="delete"&&e.fullContent===void 0&&t.addIssue({code:"custom",path:["fullContent"],message:"create/update patches must include fullContent"})}),CI=l.object({siteId:l.string().min(1),baseSnapshotId:l.string().min(1),operationId:l.string().min(1),reason:l.string().min(1),patches:l.array(EF).min(1),changedRouteIds:l.array(l.string().min(1)),diagnostics:l.array(l.object({code:l.string().min(1),message:l.string().min(1),path:l.string().min(1).optional()})).default([])}).superRefine((e,t)=>{let r=new Set;for(let[i,n]of e.patches.entries())r.has(n.path)&&t.addIssue({code:"custom",path:["patches",i,"path"],message:`Duplicate patch path: ${n.path}`}),r.add(n.path)});var PF=l.object({canUpdateText:l.boolean(),canInsertChild:l.boolean(),canMove:l.boolean(),canRemove:l.boolean()}),_F=l.object({key:l.string().min(1),tag:l.string().min(1),label:l.string().min(1),parentKey:l.string().min(1).nullable(),childKeys:l.array(l.string().min(1)),operationSummary:PF}),vPe=l.object({siteId:l.string().min(1),snapshotId:l.string().min(1),routeId:l.string().min(1),version:l.number().int().nonnegative(),rootKeys:l.array(l.string().min(1)),entries:l.array(_F)}),tS=l.enum(["api-field","cms-field","i18n-message","config-entry"]),kF=l.object({kind:l.enum(["literal","binding","imported-binding","repeat-template"]),file:l.string().min(1),expression:l.string().min(1),bindingName:l.string().min(1).optional(),path:l.array(l.union([l.string(),l.number()])).optional()}),NI=l.object({index:l.number().int().min(0),value:l.string(),editable:l.boolean(),source:kF.nullable()}),ta=l.object({key:l.string().min(1),label:l.string().min(1),tag:l.string().min(1)}),TPe=l.object({key:l.string().min(1),canUpdateText:l.boolean(),canInsertChild:l.boolean(),canMove:l.boolean(),canRemove:l.boolean(),boundaryKind:Lu.nullable(),isOpaque:l.boolean()}),OI=l.object({kind:l.enum(["jsx-node","component-proxy","value-binding","route-export"]),file:l.string().min(1),componentName:l.string().min(1),isProxy:l.boolean()}),DI=l.object({kind:l.enum(["jsx-node","value-path","route-export","external-entry"]),file:l.string().min(1).optional(),isProxy:l.boolean(),displayPath:l.string().min(1).optional(),sourceType:tS.optional(),sourceId:l.string().min(1).optional()}),$I=l.object({kind:l.union([l.enum(["jsx-literal","component-prop","binding","imported-binding","object-field","array-item","repeat-template","conditional-branch"]),tS]),file:l.string().min(1),displayPath:l.string().min(1),externalSource:l.object({sourceType:tS,sourceId:l.string().min(1),adapterId:l.string().min(1).optional()}).optional()}),IF=l.object({kind:$I.shape.kind,file:l.string().min(1),displayName:l.string().min(1),canEditHere:l.boolean()}),Mu=l.object({finalSource:$I.nullable(),chain:l.array(IF),confidence:l.enum(["exact","safe-derived","partial","unknown"]),editMode:l.enum(["direct","proxy","upstream","readonly","unsupported"]),diagnostics:l.array(l.object({code:l.string().min(1),message:l.string().min(1)}))}),AF=l.object({kind:l.literal("css-style-model"),properties:l.array(l.object({property:TI,value:l.union([l.string(),l.number(),l.boolean(),l.null()]),resolvedValue:l.union([l.string(),l.number(),l.boolean(),l.null()]).optional(),breakpoint:PI.optional(),state:EI.optional(),variants:l.array(l.string().min(1)).optional(),options:l.array(l.union([l.string(),l.number()])).optional(),editable:l.boolean(),diagnostics:l.array(l.object({code:l.string().min(1),message:l.string().min(1)})).optional(),operationBoundary:l.array(Do).optional()}))}),EPe=l.union([l.record(l.string(),l.unknown()),AF]),jI=l.object({kind:l.literal("class-name-source"),className:l.string(),sourceKind:l.enum(["missing","static-attribute","static-expression","dynamic-expression"]),editable:l.boolean(),operationBoundary:l.array(Do),sourcePath:l.string().min(1).optional(),diagnostics:l.array(l.object({code:l.enum(["missing-class-name","dynamic-binding","non-string-binding"]),message:l.string().min(1)})).optional()}),PPe=l.object({key:l.string().min(1),tag:l.string().min(1),componentName:l.string().min(1),sourceFile:l.string().min(1),label:l.string().min(1),capabilities:Ru,writeTarget:OI,effectiveWriteTarget:DI.optional(),provenanceChain:Mu.optional(),componentSemantic:l.record(l.string(),l.unknown()).optional(),contentModel:l.record(l.string(),l.unknown()).optional(),mediaModel:l.record(l.string(),l.unknown()).optional(),styleSource:jI.optional(),conditional:l.record(l.string(),l.unknown()).optional(),textSegments:l.array(NI),boundaryKind:Lu.nullable(),isOpaque:l.boolean(),ancestors:l.array(ta),children:l.array(ta),siblings:l.array(ta)}),_Pe=l.object({key:l.string().min(1),tag:l.string().min(1),label:l.string().min(1),capabilities:l.object({constraints:Ru.shape.constraints}),isOpaque:l.boolean(),provenanceChain:l.object({editMode:Mu.shape.editMode,diagnostics:Mu.shape.diagnostics}).optional(),ancestors:l.array(ta)}),kPe=l.object({key:l.string().min(1),componentName:l.string().min(1),sourceFile:l.string().min(1),capabilities:Ru,writeTarget:OI,effectiveWriteTarget:DI.optional(),provenanceChain:Mu.optional(),componentSemantic:l.record(l.string(),l.unknown()).optional(),textSegments:l.array(NI),boundaryKind:Lu.nullable(),children:l.array(ta),siblings:l.array(ta)}),IPe=l.object({key:l.string().min(1),styleSource:jI.optional()}),APe=l.object({key:l.string().min(1),contentModel:l.record(l.string(),l.unknown()).optional()}),wPe=l.object({key:l.string().min(1),mediaModel:l.record(l.string(),l.unknown()).optional()});var Fu=l.object({heading:l.string().min(1).max(60).optional(),body:l.string().min(1).max(60).optional(),paletteIntent:l.string().min(1).max(120).optional(),surfaceMode:l.enum(["light","dark"]).optional(),radius:l.enum(["none","sm","md","lg","xl"]).optional(),density:l.enum(["compact","comfortable","editorial"]).optional(),colorSeeds:l.object({primary:l.string().min(1).max(40),accent:l.string().min(1).max(40),neutral:l.string().min(1).max(40),supporting:l.array(l.string().min(1).max(40)).max(4).optional()}).optional()}),Bu=l.object({protocol:l.enum(["phone","form","download","route","external"]),ctaLabel:l.string().min(1).max(40),ctaTarget:l.string().min(1).max(200).optional(),requiresOwnerDetail:l.boolean().optional()}),RI=l.enum(["text-options","motion-slider"]),MI=l.enum(["none","subtle","moderate","expressive"]),nS=l.object({skill_name:l.string().min(1),rationale:l.string().min(4).max(200),confidence:l.enum(["high","medium","low"]).optional()}),jPe=l.object({questions:l.array(l.object({id:l.string(),type:RI,question:l.string(),tag:l.string(),aiThinking:l.string(),options:l.array(l.object({value:l.string(),label:l.string(),desc:l.string().optional(),impact:l.string().optional(),isRecommended:l.boolean().optional(),visualHints:Fu.optional(),conversionHints:Bu.optional()})),source:l.enum(["ai-detected","always-ask"]),sourceDetail:l.string()})).min(1).max(5),archetypeProposals:l.array(nS).min(1).max(5).optional()}),FI=l.object({questions:l.array(l.object({id:l.string(),type:RI,question:l.string(),tag:l.string(),aiThinking:l.string(),options:l.array(l.object({value:l.string(),label:l.string(),desc:l.string().optional(),impact:l.string().optional(),isRecommended:l.boolean().optional(),visualHints:Fu.optional(),conversionHints:Bu.optional()})),source:l.enum(["ai-detected","always-ask"]),sourceDetail:l.string()})).min(1).max(5)}),LPe=l.object({tenant_id:l.string().min(1),site_id:l.string().min(1),brief_id:l.string().min(1),brief:l.string().min(20).max(1e3)}),RPe=l.discriminatedUnion("type",[l.object({type:l.literal("run.started"),runId:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("skill.selecting"),category:l.literal("page-generation"),available:l.array(l.object({id:l.string().min(1),name:l.string().min(1)})).max(20),at:l.string().min(1)}),l.object({type:l.literal("skill.selected"),category:l.literal("page-generation"),selected:l.object({id:l.string().min(1),name:l.string().min(1),reason:l.string().min(1).max(200)}),at:l.string().min(1)}),l.object({type:l.literal("clarify.partial"),object:l.unknown(),at:l.string().min(1)}),l.object({type:l.literal("clarify.archetype_proposals"),proposals:l.array(nS).min(1).max(5),at:l.string().min(1)}),l.object({type:l.literal("clarify.finished"),questions_id:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("run.failed"),error_code:l.string().min(1),message:l.string().min(1),at:l.string().min(1)})]),wF=l.enum(["draft","brief_submitted","clarifying","sitemap_ready","workspace_ready","deployed","archived","error"]);var CF=l.enum(["planning","initial_generation_running","generated"]);var MPe=l.object({tenant_id:l.string().min(1),owner_user_id:l.string().min(1),name:l.string().min(1).max(120),brief:l.string().min(20).max(1e3)}),FPe=l.object({name:l.string().min(1).max(120),brief:l.string().min(20).max(1e3)}),Ro=l.object({id:l.string().min(1),tenant_id:l.string().min(1),owner_user_id:l.string().min(1),name:l.string().min(1),slug:l.string().min(1),status:wF,generation_state:CF,planning_locked_at:l.string().min(1).nullable(),current_sitemap_id:l.string().min(1).nullable(),current_snapshot_id:l.string().min(1).nullable(),deployed_url:l.string().url().nullable(),schema_version:l.literal(1),created_at:l.string().min(1),updated_at:l.string().min(1)}),NF=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),body:l.string().min(1),source:l.enum(["user","import","system"]),created_at:l.string().min(1),updated_at:l.string().min(1)}),BPe=l.object({site:Ro,brief:NF,next_step:l.literal("clarify")}),OF=l.enum(["queued","running","succeeded","failed","cancelled"]),BI=l.enum(["clarify","sitemap","workspace"]),zI=l.enum(["clarify","sitemap","initial_generation","iteration"]),UI=l.enum(["clarify","sitemap","workspace","summarize"]),jo=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),agent_type:BI,run_kind:zI,status:OF,model_route:UI,started_at:l.string().min(1).nullable(),finished_at:l.string().min(1).nullable(),error_code:l.string().min(1).nullable(),created_at:l.string().min(1)}),zPe=l.object({run_id:l.string().min(1).optional(),site_id:l.string().min(1),agent_type:BI,run_kind:zI.optional(),model_route:UI,input:l.record(l.string(),l.unknown()).optional()}).superRefine((e,t)=>{Lo(e.input)&&t.addIssue({code:"custom",path:["input"],message:"Agent run input must not contain secrets"})}),UPe=l.object({agent_run:jo,next_step:l.literal("stream_events")}),KI=l.enum(["draft","candidate","current","failed"]),zu=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),version:l.number().int().positive(),manifest_hash:l.string().regex(/^sha256:[a-f0-9]{64}$/),object_key:l.string().min(1),reason:l.enum(["initial_generation","workspace_edit","pre_deploy","manual_save","rollback"]),status:KI,created_at:l.string().min(1)}),KPe=l.object({snapshot_id:l.string().min(1).optional(),manifest_hash:l.string().regex(/^sha256:[a-f0-9]{64}$/),object_key:l.string().min(1),reason:zu.shape.reason,status:KI.default("candidate")}),VPe=l.object({site:Ro,snapshot:zu,next_step:l.literal("workspace")}),qPe=l.object({site:Ro,snapshot:zu,next_step:l.literal("workspace")}),WPe=l.object({status:l.literal("deleted"),snapshot_id:l.string().min(1)}),iS=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),snapshot_id:l.string().min(1),version:l.number().int().positive(),accepted_commit:l.string().min(1),source_run_id:l.string().min(1).nullable(),created_at:l.string().min(1)}),JPe=l.object({accepted_commit:l.string().min(1),source_run_id:l.string().min(1).optional()}),XPe=l.object({site_version:iS,next_step:l.literal("workspace")}),ZPe=l.object({site_versions:l.array(iS)}),YPe=l.object({site:Ro,snapshot:zu,site_version:iS,next_step:l.literal("workspace")}),DF=l.enum(["queued","preparing_source","building","artifact_ready","deploying","released","lock_failed","source_prepare_failed","build_failed","artifact_fetch_failed","artifact_validation_failed","deploy_failed","cleanup_failed"]),$F=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),snapshot_id:l.string().min(1),version:l.number().int().positive(),status:DF,provider:l.enum(["cloudflare"]),url:l.string().url().nullable(),error_code:l.string().min(1).nullable(),provider_deployment_id:l.string().min(1).nullable(),created_at:l.string().min(1),updated_at:l.string().min(1)}),GPe=l.object({snapshot_id:l.string().min(1).optional()}).default({}),HPe=l.object({deployment:$F}),QPe=l.object({error:l.object({code:l.string().min(1),message:l.string().min(1),details:l.unknown().optional(),request_id:l.string().min(1).optional(),retryable:l.boolean().default(!1)})}),e0e=l.object({colors:l.record(l.string(),l.string()).default({}),typography:l.record(l.string(),l.string()).default({}),spacing:l.record(l.string(),l.string()).default({}),motion:l.record(l.string(),l.string()).default({})}),jF=l.object({theme_id:l.string().min(1),paletteIntent:l.string().min(1),tone:l.string().min(1),mediaMood:l.string().min(1),motionLevel:MI.optional(),userVisualHints:Fu.optional()}),LF=l.object({question:l.string().min(1),answer:l.string().min(1)}),t0e=l.object({query:l.string().min(1),keywords:l.array(l.string()).default([]),orientation:l.enum(["landscape","portrait","square"]).optional(),role:l.enum(["hero","section","card","gallery","testimonial","decorative"]),altHint:l.string().min(1)}),r0e=l.object({id:l.string().min(1),role:l.enum(["site_background","nav_background","footer_background"]),query:l.string().min(1),keywords:l.array(l.string()).default([]),treatment:l.enum(["cover","fixed-cover","subtle-texture"]),altHint:l.string().optional()}),RF=l.object({provider:l.enum(["unsplash","pexels"]),providerLabel:l.enum(["Unsplash","Pexels"]),providerHref:l.string().url(),photoHref:l.string().url().optional(),photographerName:l.string().optional(),photographerHref:l.string().url().optional(),requiresAttribution:l.boolean()}),n0e=l.object({src:l.string().min(1),alt:l.string().min(1),width:l.number().int().positive().optional(),height:l.number().int().positive().optional(),provider:l.enum(["unsplash","pexels","placeholder"]).optional(),providerId:l.string().optional(),photoUrl:l.string().url().optional(),photographer:l.string().optional(),photographerUrl:l.string().url().optional(),credit:l.string().optional(),attribution:RF.optional()}),MF=l.enum(["system_recommended","user_picked","user_picked_extended","deterministic_fallback"]),Mo=l.object({id:l.string().min(1),name:l.string().min(1),category:l.literal("page-generation"),version:l.string().min(1).optional(),reason:l.string().min(1).max(200),source:MF.default("system_recommended")}),At=l.string().min(1).max(2e3),LI=l.string().min(1).max(120),FF=l.object({visualDirection:At,brandFeeling:At,paletteIntent:At,typographyIntent:At,density:l.string().min(1),motionLevel:l.string().min(1),mediaStrategy:At,compositionRules:l.array(At).max(20),avoidPatterns:l.array(At).max(20),fonts:l.object({heading:l.string().min(1),body:l.string().min(1)}).optional(),colorSeeds:l.object({primary:l.string().min(1).max(40),accent:l.string().min(1).max(40),neutral:l.string().min(1).max(40),supporting:l.array(l.string().min(1).max(40)).max(4).optional()}).optional(),surfaceMode:l.enum(["light","dark"]).optional(),radius:l.enum(["none","sm","md","lg","xl"]).optional()}),BF=l.object({routeGoal:At,narrativeArc:At,firstViewportIntent:At,visualContinuity:At,sectionRhythm:At,avoidPatterns:l.array(At).max(20),displayTitle:l.string().min(1).max(24).optional(),displayDescription:l.string().min(1).max(60).optional(),metaTitle:l.string().min(1).max(120).optional(),metaDescription:l.string().min(1).max(320).optional()}),VI=l.enum(["model_call","validation","repair","preview","worker_group"]),zF=l.object({sectionRole:At,contentIntent:At,layoutIntent:At,visualIntent:At,mediaIntent:At,motionIntent:At,copyTone:At,displayTitle:l.string().min(1).max(24).optional(),displayDescription:l.string().min(1).max(60).optional(),ctaIntent:At.optional(),continuityWithPrevious:At.optional(),avoidRepeating:l.array(At).max(20).optional(),industryRecipeRefs:l.array(LI).max(12).optional(),templateRecipeRefs:l.array(LI).max(12).optional()}),qI=l.object({schemaVersion:l.literal(1).default(1),siteDesignContext:FF,routeCards:l.record(l.string().min(1),BF),blockContexts:l.record(l.string().min(1),zF),selectedSkillPacks:l.array(Mo).max(3).optional(),branding:l.object({siteName:l.string().min(1).max(120),tagline:l.string().min(1).max(200).optional(),primaryCta:l.object({label:l.string().min(1).max(60),target:l.string().min(1).max(200)}).optional(),trustSignals:l.array(l.string().min(1).max(60)).max(6).optional()}).optional()}),UF=l.object({id:l.string(),type:l.string(),variant:l.string().optional(),order:l.number(),props:l.record(l.string(),l.unknown()),enabled:l.boolean(),meta:l.object({aiGenerated:l.boolean(),userEdited:l.boolean(),lastEditedAt:l.string(),lastEditedBy:l.enum(["ai","user"]),userInstruction:l.string().optional()}).optional()}).strict(),KF=l.object({id:l.string(),slug:l.string(),title:l.string(),blocks:l.array(UF).min(1),layout:l.enum(["default","centered","fullwidth"]).optional(),navigation:l.object({showInHeader:l.boolean(),showInFooter:l.boolean(),order:l.number()})}).strict(),Fo=l.object({version:l.number().int().positive(),pages:l.array(KF).min(1),navigation:l.object({primaryLinks:l.array(l.object({label:l.string(),href:l.string()})),footerLinks:l.array(l.object({label:l.string(),href:l.string()}))}),integrations:l.object({cms:l.unknown().optional(),analytics:l.unknown().optional()}).optional(),meta:l.object({generatedAt:l.string(),generatedBy:l.literal("sitemap-agent"),source_brief_id:l.string().optional(),source_answer_ids:l.array(l.string()).optional()}),skillSelection:Mo,visualTheme:jF.optional(),userChoices:l.array(LF).optional(),confirmedChoices:l.object({conversion:Bu.optional()}).optional()}).strict(),i0e=Fo.omit({skillSelection:!0,visualTheme:!0,userChoices:!0,confirmedChoices:!0}),VF=l.enum(["ai","user"]),ra=l.object({site_id:l.string().min(1),page_id:l.string().min(1),edited_by:VF.default("ai"),source_agent_run_id:l.string().min(1).optional()}),s0e=ra.extend({block_id:l.string().min(1),target_index:l.number().int().min(0)}),qF=ra.extend({block_id:l.string().min(1)}),WF=ra.extend({block_id:l.string().min(1),instruction:l.string()}),a0e=ra.extend({block_id:l.string().min(1),variant:l.string().min(1).nullable()}),o0e=ra.extend({block_id:l.string().min(1),props:l.record(l.string(),l.unknown()),mode:l.enum(["replace","merge"]).default("replace")}),l0e=ra.extend({block:l.object({id:l.string().min(1),type:l.string().min(1),variant:l.string().min(1).optional(),props:l.record(l.string(),l.unknown()).default({}),insert_index:l.number().int().min(0).optional()})}),JF=l.enum(["move_block","delete_block","update_block_instruction","change_block_variant","update_block_props","add_block"]),c0e=l.discriminatedUnion("operation",[l.object({operation:l.literal("delete_block"),input:qF}).strict(),l.object({operation:l.literal("update_block_instruction"),input:WF}).strict()]),XF=l.enum(["SITEMAP_EDIT_INVALID","SITEMAP_API_NOT_CONFIGURED","SITEMAP_NOT_FOUND","SITEMAP_PAGE_NOT_FOUND","SITEMAP_BLOCK_NOT_FOUND","SITEMAP_BLOCK_ALREADY_EXISTS","SITEMAP_EDIT_FAILED"]),ZF=l.object({status:l.literal("updated"),operation:JF,site_id:l.string().min(1),sitemap_id:l.string().min(1),version:l.number().int().positive(),changed_pages:l.array(l.string().min(1)).min(1),requires_code_patch:l.literal(!0)}),YF=l.object({status:l.literal("failed"),code:XF,message:l.string().min(1),retryable:l.boolean().default(!1),details:l.unknown().optional()}),u0e=l.discriminatedUnion("status",[ZF,YF]),sS=l.object({question_id:l.string().min(1),value:l.string().min(1),label:l.string().min(1).optional(),question:l.string().min(1).optional(),option_label:l.string().min(1).optional(),motion_level:MI.optional(),visual_tonality:Fu.optional(),conversion:Bu.optional()}),p0e=l.object({tenant_id:l.string().min(1),site_id:l.string().min(1),brief_id:l.string().min(1),brief:l.string().min(20).max(1e3),answers:l.array(sS).min(1).max(10),skillSelection:Mo}),WI=l.enum(["planning","generating","validating","ready"]),d0e=l.discriminatedUnion("type",[l.object({type:l.literal("run.started"),runId:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("sitemap.generating"),stage:WI,message:l.string().min(1).optional(),at:l.string().min(1)}),l.object({type:l.literal("sitemap.partial"),object:l.unknown(),at:l.string().min(1)}),l.object({type:l.literal("sitemap.generated"),sitemap_id:l.string().min(1),sitemap:Fo,at:l.string().min(1)}),l.object({type:l.literal("run.failed"),error_code:l.string().min(1),message:l.string().min(1),at:l.string().min(1)})]),GF=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),version:l.number().int().positive(),sitemap:Fo,source_agent_run_id:l.string().min(1).nullable(),created_at:l.string().min(1),updated_at:l.string().min(1)}),f0e=l.object({sitemap_id:l.string().min(1).optional(),sitemap:Fo,source_agent_run_id:l.string().min(1).optional()}),h0e=l.object({site:Ro,sitemap:GF,next_step:l.literal("workspace")}),HF=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),brief_id:l.string().min(1),questions:FI,answers:l.array(sS),selected_archetype:Mo.optional(),completed_at:l.string().min(1).nullable(),created_at:l.string().min(1),updated_at:l.string().min(1)}),m0e=l.object({answers:l.array(sS).min(1),questions:FI,selected_archetype:Mo.optional()}),y0e=l.object({clarify_session:HF}),QF=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),version:l.number().int().positive(),design_plan:qI,source_agent_run_id:l.string().min(1).nullable(),created_at:l.string().min(1),updated_at:l.string().min(1)}),g0e=l.object({design_plan_id:l.string().min(1).optional(),design_plan:qI,source_agent_run_id:l.string().min(1).optional()}),x0e=l.object({design_plan:QF}),Uu=l.enum(["initial_generation","iteration"]),JI=l.enum(["run.started","message.delta","user.message","plan.updated","clarify.partial","clarify.archetype_proposals","clarify.finished","sitemap.generating","sitemap.partial","sitemap.generated","sitemap.updated","sitemap.resync.failed","block.changed","tool.started","tool.finished","workspace.plan.created","workspace.worker.updated","workspace.task.updated","file.changed","snapshot.created","preview.preparing","preview.ready","preview.build.started","preview.build.succeeded","preview.build.failed","run.failed","run.finished","media_resolution.started","media_resolution.finished","skill.selecting","skill.selected","activity.started","activity.updated","activity.finished","activity.failed"]),e2=l.object({id:l.string().min(1),title:l.string().min(1),status:l.enum(["pending","running","completed","failed"])}),Bi=l.enum(["pending","running","completed","completed_with_skips","failed","skipped"]),aS=l.enum(["style_media","chrome","sections","layout","pages","detect_typecheck","repair","finalize","sitemap_resync","preview"]),t2=l.object({code:l.string().min(1),message:l.string().min(1),path:l.string().min(1).optional(),task_id:l.string().min(1).optional()}),Yt=l.string().min(1).refine(e=>C2(e),{message:"Snapshot file paths must be safe relative POSIX paths without traversal."}),oS=l.object({deduped_paths:l.array(Yt),skipped_tasks:l.array(l.string().min(1)),failed_tasks:l.array(l.string().min(1)),fallback_files:l.array(l.string().min(1)),applied_paths:l.array(Yt)}),lS=l.object({group_id:l.string().min(1),phase:aS,title:l.string().min(1),status:Bi,task_ids:l.array(l.string().min(1)),depends_on_groups:l.array(l.string().min(1)),target_paths:l.array(Yt)}),r2=l.enum(["style","media","chrome","section","layout","page"]),cS=l.object({task_id:l.string().min(1),group_id:l.string().min(1),kind:r2,target_path:Yt,block_id:l.string().min(1).optional(),block_type:l.string().min(1).optional(),block_variant:l.string().min(1).optional(),block_order:l.number().int().nonnegative().optional(),user_instruction:l.string().min(1).optional(),page_id:l.string().min(1).optional(),page_slug:l.string().min(1).optional(),page_title:l.string().min(1).optional(),title:l.string().min(1).max(60).optional(),description:l.string().min(1).max(160).optional(),status:Bi,required_reads:l.array(Yt).optional()}),uS=l.object({from_group_id:l.string().min(1),to_group_id:l.string().min(1),reason:l.enum(["style_media","chrome","sections","layout","page_composition","quality_gate"])}),S0e=l.object({plan_id:l.string().min(1),run_kind:Uu,model_route:l.object({planner:l.literal("workspace_planner"),worker:l.literal("workspace")}),groups:l.array(lS),tasks:l.array(cS),dependencies:l.array(uS),expected_outputs:l.array(Yt),diagnostics:oS}),b0e=l.object({task_id:l.string().min(1),patch:l.unknown().optional(),snapshot_id:l.string().min(1).optional(),read_files:l.array(Yt),diagnostics:l.array(t2),status:Bi}),XI=l.object({worker_count:l.number().int().nonnegative(),task_count:l.number().int().nonnegative(),group_count:l.number().int().nonnegative()}),ZI=l.object({pending:l.number().int().nonnegative(),running:l.number().int().nonnegative(),completed:l.number().int().nonnegative(),completed_with_skips:l.number().int().nonnegative(),failed:l.number().int().nonnegative(),skipped:l.number().int().nonnegative()}),n2=l.object({type:l.literal("text"),text:l.string(),state:l.enum(["streaming","done"]).optional()}),i2=l.object({type:l.literal("reasoning"),text:l.string(),state:l.enum(["streaming","done"]).optional(),providerMetadata:l.record(l.string(),l.unknown()).optional()}),s2=l.object({type:l.literal("file"),mediaType:l.string().min(1),filename:l.string().min(1).optional(),url:l.string().min(1)}),a2=l.object({type:l.literal("source-url"),sourceId:l.string().min(1),url:l.string().min(1),title:l.string().min(1).optional(),providerMetadata:l.record(l.string(),l.unknown()).optional()}),o2=l.object({type:l.literal("source-document"),sourceId:l.string().min(1),mediaType:l.string().min(1),title:l.string().min(1),filename:l.string().min(1).optional(),providerMetadata:l.record(l.string(),l.unknown()).optional()}),l2=l.object({type:l.string().regex(/^data-[a-zA-Z0-9_-]+$/),id:l.string().min(1).optional(),data:l.unknown()}),c2=l.object({type:l.string().regex(/^tool-[a-zA-Z0-9_-]+$/),toolCallId:l.string().min(1),state:l.enum(["input-streaming","input-available","output-available","output-error"]),input:l.unknown().optional(),output:l.unknown().optional(),errorText:l.string().min(1).optional()}),u2=l.object({type:l.literal("error"),errorText:l.string().min(1)}),p2=l.object({type:l.literal("step-start")}),pS=l.union([n2,i2,s2,a2,o2,l2,c2,u2,p2]),YI=l.discriminatedUnion("type",[l.object({type:l.literal("run.started"),runId:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("message.delta"),text:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("user.message"),client_message_id:l.string().min(1),message_id:l.string().min(1),parts:l.array(pS).min(1),in_reply_to_tool_call_id:l.string().min(1).optional(),at:l.string().min(1)}),l.object({type:l.literal("plan.updated"),steps:l.array(e2),at:l.string().min(1)}),l.object({type:l.literal("clarify.partial"),object:l.unknown(),at:l.string().min(1)}),l.object({type:l.literal("clarify.archetype_proposals"),proposals:l.array(nS).min(1).max(5),at:l.string().min(1)}),l.object({type:l.literal("clarify.finished"),questions_id:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("sitemap.generating"),stage:WI,message:l.string().min(1).optional(),at:l.string().min(1)}),l.object({type:l.literal("sitemap.partial"),object:l.unknown(),at:l.string().min(1)}),l.object({type:l.literal("sitemap.generated"),sitemap_id:l.string().min(1),sitemap:Fo,at:l.string().min(1)}),l.object({type:l.literal("sitemap.updated"),sitemap_id:l.string().min(1),version:l.number().int().positive(),reason:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("sitemap.resync.failed"),error_code:l.string().min(1),message:l.string().min(1),retryable:l.boolean(),diagnostics:l.unknown().optional(),at:l.string().min(1)}),l.object({type:l.literal("block.changed"),block_id:l.string().min(1),change_type:l.enum(["add","update","delete","move"]),at:l.string().min(1)}),l.object({type:l.literal("tool.started"),tool_call_id:l.string().min(1),name:l.string().min(1),summary:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("tool.finished"),tool_call_id:l.string().min(1),name:l.string().min(1),result_summary:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("workspace.plan.created"),plan_id:l.string().min(1),run_kind:Uu,groups:l.array(lS),tasks:l.array(cS),dependencies:l.array(uS),expected_outputs:l.array(Yt),diagnostics:oS,summary:XI,at:l.string().min(1)}).strict(),l.object({type:l.literal("workspace.worker.updated"),group_id:l.string().min(1),phase:aS,status:Bi,task_counts:ZI,target_paths:l.array(Yt),diagnostics:l.array(l.string().min(1)),at:l.string().min(1)}).strict(),l.object({type:l.literal("workspace.task.updated"),task_id:l.string().min(1),group_id:l.string().min(1),status:Bi,target_path:Yt,read_files_count:l.number().int().nonnegative(),diagnostics:l.array(l.string().min(1)),at:l.string().min(1)}).strict(),l.object({type:l.literal("file.changed"),path:l.string().min(1),change_type:l.enum(["create","update","delete"]),diff:l.string().optional(),at:l.string().min(1)}),l.object({type:l.literal("snapshot.created"),snapshot_id:l.string().min(1),manifest_hash:l.string().regex(/^sha256:[a-f0-9]{64}$/),at:l.string().min(1)}),l.object({type:l.literal("preview.preparing"),at:l.string().min(1)}),l.object({type:l.literal("preview.ready"),url:l.string().url(),at:l.string().min(1)}),l.object({type:l.literal("preview.build.started"),snapshot_id:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("preview.build.succeeded"),snapshot_id:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("preview.build.failed"),snapshot_id:l.string().min(1),message:l.string().min(1),diagnostics:l.string().min(1),retryable:l.boolean(),at:l.string().min(1)}),l.object({type:l.literal("run.failed"),error_code:l.string().min(1),message:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("run.finished"),snapshot_id:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("media_resolution.started"),slot_count:l.number().int().nonnegative(),at:l.string().datetime()}),l.object({type:l.literal("media_resolution.finished"),slot_count:l.number().int().nonnegative(),provider_counts:l.object({unsplash:l.number().int().nonnegative(),pexels:l.number().int().nonnegative(),placeholder:l.number().int().nonnegative()}),fallback_count:l.number().int().nonnegative(),error_codes:l.array(l.string()),at:l.string().datetime()}),l.object({type:l.literal("skill.selecting"),category:l.literal("page-generation"),available:l.array(l.object({id:l.string().min(1),name:l.string().min(1)})).max(20),at:l.string().min(1)}),l.object({type:l.literal("skill.selected"),category:l.literal("page-generation"),selected:l.object({id:l.string().min(1),name:l.string().min(1),reason:l.string().min(1).max(200)}),at:l.string().min(1)}),l.object({type:l.literal("activity.started"),activity_id:l.string().min(1),parent_activity_id:l.string().min(1).optional(),kind:VI,title:l.string().min(1).max(200),detail:l.string().max(360).optional(),locks_input:l.boolean(),at:l.string().min(1)}),l.object({type:l.literal("activity.updated"),activity_id:l.string().min(1),title:l.string().min(1).max(200).optional(),detail:l.string().max(360).optional(),at:l.string().min(1)}),l.object({type:l.literal("activity.finished"),activity_id:l.string().min(1),at:l.string().min(1)}),l.object({type:l.literal("activity.failed"),activity_id:l.string().min(1),detail:l.string().max(360).optional(),at:l.string().min(1)})]),rS=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),agent_run_id:l.string().min(1),sequence:l.number().int().positive(),event_type:JI,payload:YI,created_at:l.string().min(1)}),v0e=l.object({event_type:JI,payload:YI}).superRefine((e,t)=>{e.event_type!==e.payload.type&&t.addIssue({code:"custom",path:["payload","type"],message:"payload.type must match event_type"}),Lo(e.payload)&&t.addIssue({code:"custom",path:["payload"],message:"AgentEvent payload must not contain secrets"})}),T0e=l.discriminatedUnion("status",[l.object({status:l.literal("appended"),agent_run:jo,event:rS,next_cursor:l.number().int().nonnegative()}),l.object({status:l.literal("duplicate_ignored"),agent_run:jo,event:rS,next_cursor:l.number().int().nonnegative()})]),E0e=l.object({events:l.array(rS),next_cursor:l.number().int().nonnegative().optional()}),P0e=l.object({after_sequence:l.coerce.number().int().nonnegative().default(0)}),_0e=l.enum(["implemented","skeleton","planned"]),k0e=l.enum(["GET","POST","PATCH","DELETE"]);var GI=l.object({id:l.string().min(1),role:l.enum(["system","user","assistant"]),metadata:l.unknown().optional(),parts:l.array(pS).min(1)}),I0e=l.object({base_snapshot_id:l.string().min(1).optional(),message:GI.optional()}).superRefine((e,t)=>{Lo(e.message)&&t.addIssue({code:"custom",path:["message"],message:"Workspace startup message must not contain secrets"})}),d2=l.object({path:l.string().regex(/^\/v1\/workspace\/sites\/[^/]+\/socket$/),run_id:l.string().min(1),base_snapshot_id:l.string().min(1),run_kind:Uu}),A0e=l.object({agent_run:jo,websocket:d2,next_step:l.literal("workspace_socket")}),w0e=l.object({agent_run:jo}),C0e=l.enum(["client.message.create","client.run.cancel","client.tool.approve","server.run.started","server.assistant.delta","server.tool.started","server.tool.completed","workspace.plan.created","workspace.worker.updated","workspace.task.updated","server.patch.applied","server.sitemap.updated","server.snapshot.created","server.preview.invalidated","preview.build.started","preview.build.succeeded","preview.build.failed","server.run.finished","server.run.failed","server.error","server.activity.started","server.activity.updated","server.activity.finished","server.activity.failed"]),Pt=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),run_id:l.string().min(1).optional(),correlation_id:l.string().min(1).optional(),seq:l.number().int().positive().optional(),sent_at:l.string().min(1)}),f2=l.discriminatedUnion("type",[Pt.extend({type:l.literal("client.message.create"),payload:l.object({client_message_id:l.string().min(1),in_reply_to_tool_call_id:l.string().min(1).optional(),message:GI,base_snapshot_id:l.string().min(1).optional()})}),Pt.extend({type:l.literal("client.run.cancel"),payload:l.object({run_id:l.string().min(1),reason:l.string().min(1).optional()})}),Pt.extend({type:l.literal("client.tool.approve"),payload:l.object({tool_call_id:l.string().min(1),decision:l.enum(["approve","reject"]),reason:l.string().min(1).optional()})})]),h2=l.discriminatedUnion("type",[Pt.extend({type:l.literal("server.run.started"),payload:l.object({run_id:l.string().min(1),agent_type:l.literal("workspace")})}),Pt.extend({type:l.literal("server.assistant.delta"),payload:l.object({message_id:l.string().min(1),parts:l.array(pS).min(1),status:l.enum(["streaming","ready"])})}),Pt.extend({type:l.literal("server.tool.started"),payload:l.object({tool_call_id:l.string().min(1),name:l.string().min(1),summary:l.string().min(1)})}),Pt.extend({type:l.literal("server.tool.completed"),payload:l.object({tool_call_id:l.string().min(1),name:l.string().min(1),result_summary:l.string().min(1)})}),Pt.extend({type:l.literal("workspace.plan.created"),payload:l.object({plan_id:l.string().min(1),run_kind:Uu,groups:l.array(lS),tasks:l.array(cS),dependencies:l.array(uS),expected_outputs:l.array(Yt),diagnostics:oS,summary:XI})}),Pt.extend({type:l.literal("workspace.worker.updated"),payload:l.object({group_id:l.string().min(1),phase:aS,status:Bi,task_counts:ZI,target_paths:l.array(Yt),diagnostics:l.array(l.string().min(1))})}),Pt.extend({type:l.literal("workspace.task.updated"),payload:l.object({task_id:l.string().min(1),group_id:l.string().min(1),status:Bi,target_path:Yt,read_files_count:l.number().int().nonnegative(),diagnostics:l.array(l.string().min(1))})}),Pt.extend({type:l.literal("server.patch.applied"),payload:l.object({patch_batch_id:l.string().min(1),changed_files:l.array(l.string().min(1)),sitemap_resync_queued:l.boolean()})}),Pt.extend({type:l.literal("server.sitemap.updated"),payload:l.object({sitemap_id:l.string().min(1),version:l.number().int().positive(),reason:l.string().min(1)})}),Pt.extend({type:l.literal("server.snapshot.created"),payload:l.object({snapshot_id:l.string().min(1),manifest_hash:l.string().regex(/^sha256:[a-f0-9]{64}$/)})}),Pt.extend({type:l.literal("server.preview.invalidated"),payload:l.object({reason:l.string().min(1),next_preview_url:l.string().url().optional()})}),Pt.extend({type:l.literal("preview.build.started"),payload:l.object({snapshot_id:l.string().min(1)})}),Pt.extend({type:l.literal("preview.build.succeeded"),payload:l.object({snapshot_id:l.string().min(1)})}),Pt.extend({type:l.literal("preview.build.failed"),payload:l.object({snapshot_id:l.string().min(1),message:l.string().min(1),diagnostics:l.string().min(1),retryable:l.boolean()})}),Pt.extend({type:l.literal("server.run.finished"),payload:l.object({run_id:l.string().min(1),snapshot_id:l.string().min(1)})}),Pt.extend({type:l.literal("server.run.failed"),payload:l.object({run_id:l.string().min(1),error_code:l.string().min(1),message:l.string().min(1),retryable:l.boolean()})}),Pt.extend({type:l.literal("server.error"),payload:l.object({code:l.string().min(1),message:l.string().min(1),retryable:l.boolean()})}),Pt.extend({type:l.literal("server.activity.started"),payload:l.object({activity_id:l.string().min(1),parent_activity_id:l.string().min(1).optional(),kind:VI,title:l.string().min(1).max(200),detail:l.string().max(360).optional(),locks_input:l.boolean()})}),Pt.extend({type:l.literal("server.activity.updated"),payload:l.object({activity_id:l.string().min(1),title:l.string().min(1).max(200).optional(),detail:l.string().max(360).optional()})}),Pt.extend({type:l.literal("server.activity.finished"),payload:l.object({activity_id:l.string().min(1)})}),Pt.extend({type:l.literal("server.activity.failed"),payload:l.object({activity_id:l.string().min(1),detail:l.string().max(360).optional()})})]),N0e=l.union([f2,h2]);var HI=l.string().regex(/^sha256:[a-f0-9]{64}$/),m2=l.enum(["create","update","delete"]),dS=l.enum(["sitemap_resync","smoke_test","prepare_preview"]),y2=l.object({path:Yt,operation:m2,expected_hash:HI.optional(),full_content:l.string().describe("Complete file content for create/update patches. It is passed as a JSON string, so every double quote in source code must be valid JSON; avoid ASCII double quotes inside JSX attribute values and use corner quotes like \u300C\u751F\u65E5\u5FEB\u4E50\u300D for visitor-facing quoted examples.").optional()}).strict().superRefine((e,t)=>{let r=e.full_content!==void 0;if(e.operation==="delete"){r&&t.addIssue({code:"custom",path:["full_content"],message:"delete patches must not include full_content"});return}r||t.addIssue({code:"custom",path:["full_content"],message:"create/update patches must include full_content"})}),g2=l.object({kind:l.enum(["block","page","site","chrome"]),id:l.string().min(1).max(120)}),x2=l.object({base_key:l.string().min(1).max(120).regex(/^[A-Za-z0-9._:-]+$/).refine(e=>!e.includes(".."),{message:"base_key must not contain '..'"}),owner:g2,count:l.number().int().min(1).max(12),query:l.string().min(1).max(400),role:l.enum(["hero","section","card","gallery","testimonial","decorative","site_background","nav_background","footer_background"]),orientation:l.enum(["landscape","portrait","square"]).optional(),altHint:l.string().min(1).max(300)}),O0e=l.object({site_id:l.string().min(1),base_snapshot_id:l.string().min(1),reason:l.string().min(1),patches:l.array(y2).min(1),media_requests:l.array(x2).max(24).optional(),post_actions:l.array(dS).optional()}).superRefine((e,t)=>{let r=new Set;for(let[i,n]of e.patches.entries())r.has(n.path)&&t.addIssue({code:"custom",path:["patches",i,"path"],message:`Duplicate patch path: ${n.path}`}),r.add(n.path)}),S2=l.object({path:Yt}),b2=l.object({route_id:l.string().min(1),entry_file:Yt}).strict(),v2=l.object({files:l.array(S2).min(1)}).strict(),T2=l.object({site_edit_operation:II,site_edit_routes:l.array(b2).min(1),post_actions:l.array(dS).optional()}).strict(),D0e=l.union([v2,T2]),E2=l.enum(["BASE_SNAPSHOT_NOT_FOUND","PATCH_TARGET_NOT_FOUND","PATCH_TARGET_ALREADY_EXISTS","PATCH_EXPECTED_HASH_MISMATCH","PATCH_DIFF_UNSUPPORTED","PATCH_PROTECTED_FILE","PATCH_VALIDATION_FAILED","PATCH_MEDIA_REFERENCE_NOT_DECLARED","PATCH_BATCH_INVALID","PATCH_BATCH_FAILED"]),P2=l.object({status:l.literal("applied"),patch_batch_id:l.string().min(1),site_id:l.string().min(1),base_snapshot_id:l.string().min(1),snapshot_id:l.string().min(1),manifest_hash:HI,object_key:l.string().min(1),changed_files:l.array(Yt).min(1),post_actions_queued:l.array(dS)}),_2=l.object({status:l.literal("failed"),code:E2,message:l.string().min(1),retryable:l.boolean().default(!1),details:l.unknown().optional()}),$0e=l.discriminatedUnion("status",[P2,_2]),j0e=l.object({ok:l.literal(!0)}),QI=l.string().min(1).refine(e=>{let t=e.split("/"),i=(t.length===1?t[0]:void 0)?.toLowerCase()==="design.md";return!e.startsWith("/")&&!e.includes("\\")&&t.every(n=>!(n.length===0||n==="."||n===".."||n.startsWith(".")||n==="package.json"||n==="recipes"||n==="node_modules"||n.startsWith(".env")))&&(i||["app","components","hooks","lib","public"].includes(t[0]??""))},"Invalid workspace source path"),k2=l.enum(["text","binary"]),eA=l.object({path:QI,kind:k2,language:l.string().min(1).nullable(),size_bytes:l.number().int().nonnegative()}),L0e=l.object({path:QI}),I2=eA.extend({kind:l.literal("text"),language:l.string().min(1),content:l.string()}),A2=eA.extend({kind:l.literal("binary"),language:l.null(),mime_type:l.string().min(1),content_base64:l.string().min(1)}),R0e=l.union([I2,A2]);function Lo(e){return typeof e=="string"?/authorization\s*:|bearer\s+|token\s*=|secret\s*=|api[_-]?key\s*=|access[_\s-]?key\s*=/i.test(e):!e||typeof e!="object"?!1:Array.isArray(e)?e.some(t=>Lo(t)):Object.entries(e).some(([t,r])=>w2(t)||Lo(r))}function w2(e){let t=e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/\s+/g,"_").toLowerCase();return/(^|[_-])(authorization|token|secret|api[_-]?key|apikey|access[_-]?key|accesskey)([_-]|$)/.test(t)}function C2(e){let t=e.split("/");return e.length>0&&!e.startsWith("/")&&!e.includes("\\")&&t.every(r=>r!==""&&r!=="."&&r!=="..")}var tA=l.enum(["idle","creating","restoring_snapshot","installing_dependencies","starting_preview","ready","active","stopping","stopped","failed"]),N2=l.object({id:l.string().min(1),tenant_id:l.string().min(1),site_id:l.string().min(1),sandbox_id:l.string().min(1).nullable(),status:tA,source_snapshot_id:l.string().min(1).nullable(),last_snapshot_id:l.string().min(1).nullable(),preview_url:l.string().url().nullable(),last_activity_at:l.string().min(1).nullable(),created_at:l.string().min(1),updated_at:l.string().min(1)}),M0e=l.object({session_id:l.string().min(1).optional(),sandbox_id:l.string().min(1).optional(),source_snapshot_id:l.string().min(1).optional(),last_snapshot_id:l.string().min(1),status:tA,preview_url:l.string().url().optional()}),F0e=l.object({preview_session:N2,next_step:l.literal("preview")});var O2=new Map([["routeId","routeId"],["documentVersion","documentVersion"],["segmentIndex","segmentIndex"],["preserveBindings","preserveBindings"],["exportName","exportName"],["anchorKey","anchorKey"],["parentKey","parentKey"],["slotName","slotName"],["toIndex","toIndex"],["fromIndex","fromIndex"],["nextExpression","nextExpression"],["nextToken","nextToken"]]),D2=new Set(["value","block","properties","props"]);function Ku(e){return{id:e.id,routeId:e.routeId,kind:e.kind,target:j2(e.target),documentVersion:e.documentVersion,params:fS(e.params)}}function Ui(e){return{requestId:e.requestId,kind:e.kind,target:Ki(e.target),resultVersion:e.resultVersion,affectedFiles:e.affectedFiles}}function Vu(e,t){return{siteId:t.siteId,snapshotId:t.snapshotId,routeId:e.routeId,version:e.version,rootKeys:e.rootKeys,entries:e.entries.map(r=>({key:r.key,tag:r.tag,label:r.label,parentKey:r.parentKey,childKeys:r.childKeys,operationSummary:{canUpdateText:r.operationSummary.canUpdateText,canInsertChild:r.operationSummary.canInsertChild,canMove:r.operationSummary.canMove,canRemove:r.operationSummary.canRemove}}))}}function qu(e){return{key:e.key,tag:e.tag,label:e.label,capabilities:{constraints:e.capabilities.constraints},isOpaque:e.isOpaque,provenanceChain:e.provenanceChain?{editMode:e.provenanceChain.editMode,diagnostics:e.provenanceChain.diagnostics}:void 0,ancestors:e.ancestors}}function Wu(e){return{key:e.key,componentName:e.componentName,sourceFile:e.sourceFile,capabilities:rA(e.capabilities),writeTarget:{kind:e.writeTarget.kind,file:e.writeTarget.file,componentName:e.writeTarget.componentName,isProxy:e.writeTarget.isProxy},effectiveWriteTarget:e.effectiveWriteTarget?{kind:e.effectiveWriteTarget.kind,file:e.effectiveWriteTarget.file,isProxy:e.effectiveWriteTarget.isProxy,displayPath:e.effectiveWriteTarget.displayPath,sourceType:e.effectiveWriteTarget.sourceType,sourceId:e.effectiveWriteTarget.sourceId}:void 0,provenanceChain:nA(e),componentSemantic:zi(e.componentSemantic),textSegments:e.textSegments.map(t=>({index:t.index,value:t.value,editable:t.editable,source:t.source?{kind:t.source.kind,file:t.source.file,expression:t.source.expression,bindingName:t.source.bindingName,path:t.source.path}:null})),boundaryKind:e.boundaryKind,children:e.children,siblings:e.siblings}}function $2(e){return{key:e.key,styleSource:e.styleSource}}function Ju(e){return{key:e.key,contentModel:zi(e.contentModel)}}function Xu(e){return{key:e.key,mediaModel:zi(e.mediaModel)}}function Zu(e){let t=$2(e);return{key:e.key,tag:e.tag,componentName:e.componentName,sourceFile:e.sourceFile,label:e.label,capabilities:rA(e.capabilities),writeTarget:{kind:e.writeTarget.kind,file:e.writeTarget.file,componentName:e.writeTarget.componentName,isProxy:e.writeTarget.isProxy},effectiveWriteTarget:e.effectiveWriteTarget?{kind:e.effectiveWriteTarget.kind,file:e.effectiveWriteTarget.file,isProxy:e.effectiveWriteTarget.isProxy,displayPath:e.effectiveWriteTarget.displayPath,sourceType:e.effectiveWriteTarget.sourceType,sourceId:e.effectiveWriteTarget.sourceId}:void 0,provenanceChain:nA(e),componentSemantic:zi(e.componentSemantic),contentModel:zi(e.contentModel),mediaModel:zi(e.mediaModel),styleSource:t.styleSource,conditional:zi(e.conditional),textSegments:e.textSegments.map(r=>({index:r.index,value:r.value,editable:r.editable,source:r.source?{kind:r.source.kind,file:r.source.file,expression:r.source.expression,bindingName:r.source.bindingName,path:r.source.path}:null})),boundaryKind:e.boundaryKind,isOpaque:e.isOpaque,ancestors:e.ancestors,children:e.children,siblings:e.siblings}}function Yu(e,t){let r=new Date().toISOString();return e.type==="document-changed"?{type:"site-edit.document.changed",siteId:t.siteId,snapshotId:t.snapshotId,routeId:e.routeId,version:e.version,at:r}:e.type==="operation-completed"?{type:"site-edit.operation.completed",siteId:t.siteId,result:Ui(e.result),at:r}:e.type==="operation-failed"?{type:"site-edit.operation.failed",siteId:t.siteId,requestId:e.requestId,error:e.error,at:r}:e.type==="capability-changed"?{type:"site-edit.capability.changed",siteId:t.siteId,routeId:"",keys:e.keys,at:r}:null}function j2(e){return e.kind==="route"?{kind:"route",routeId:e.routeId}:e}function Ki(e){return e.kind==="route"?{kind:"route",routeId:e.routeId}:e}function rA(e){return{key:e.key,canUpdateText:e.canUpdateText,canInsertChild:e.canInsertChild,canMove:e.canMove,canRemove:e.canRemove,editModes:e.editModes?{updateText:e.editModes.updateText?{mode:e.editModes.updateText.mode,reasonCode:e.editModes.updateText.reasonCode}:void 0,insertChild:e.editModes.insertChild?{mode:e.editModes.insertChild.mode,reasonCode:e.editModes.insertChild.reasonCode}:void 0,move:e.editModes.move?{mode:e.editModes.move.mode,reasonCode:e.editModes.move.reasonCode}:void 0,remove:e.editModes.remove?{mode:e.editModes.remove.mode,reasonCode:e.editModes.remove.reasonCode}:void 0}:void 0,constraints:e.constraints}}function nA(e){return e.provenanceChain?{finalSource:e.provenanceChain.finalSource?{kind:e.provenanceChain.finalSource.kind,file:e.provenanceChain.finalSource.file,displayPath:e.provenanceChain.finalSource.displayPath,externalSource:e.provenanceChain.finalSource.externalSource?{sourceType:e.provenanceChain.finalSource.externalSource.sourceType,sourceId:e.provenanceChain.finalSource.externalSource.sourceId,adapterId:e.provenanceChain.finalSource.externalSource.adapterId}:void 0}:null,chain:e.provenanceChain.chain.map(t=>({kind:t.kind,file:t.file,displayName:t.displayName,canEditHere:t.canEditHere})),confidence:e.provenanceChain.confidence,editMode:e.provenanceChain.editMode,diagnostics:e.provenanceChain.diagnostics}:void 0}function fS(e){return Array.isArray(e)?e.map(t=>fS(t)):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,r])=>{let i=O2.get(t)??t,n=D2.has(t)?r:fS(r);return[i,n]}))}function zi(e){return e||void 0}function hS(e,t,r){return`${e}::${t}::${r}`}var Nt;(function(e){e.NODE_NOT_FOUND="NODE_NOT_FOUND",e.ROUTE_NOT_FOUND="ROUTE_NOT_FOUND",e.CAPABILITY_REJECTED="CAPABILITY_REJECTED",e.CONSTRAINT_VIOLATED="CONSTRAINT_VIOLATED",e.INVALID_PARAMS="INVALID_PARAMS",e.PLAN_FAILED="PLAN_FAILED",e.VERSION_STALE="VERSION_STALE",e.AST_PARSE_ERROR="AST_PARSE_ERROR",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.LOCATOR_FAILED="LOCATOR_FAILED",e.INVALID_TARGET="INVALID_TARGET",e.WRITE_IO_ERROR="WRITE_IO_ERROR",e.CONCURRENT_MODIFIED="CONCURRENT_MODIFIED",e.ROLLBACK_FAILED="ROLLBACK_FAILED",e.INTERNAL_ERROR="INTERNAL_ERROR"})(Nt||(Nt={}));var LD=lt(en(),1),Ad=lt(rn(),1),A=lt(Ee(),1);var Xme=lt(en(),1),Da=lt(Ee(),1);import*as $a from"node:path";var ND=[".tsx",".ts",".jsx",".js"],Zme=ND.map(e=>`${$a.sep==="\\"?"\\":"/"}index${e}`);function OD(e){let t=[];for(let r of e.program.body)Da.isImportDeclaration(r)&&typeof r.source.value=="string"&&Ol(r.source.value)&&t.push(r.source.value),Da.isExportNamedDeclaration(r)&&r.source&&typeof r.source.value=="string"&&Ol(r.source.value)&&t.push(r.source.value),Da.isExportAllDeclaration(r)&&typeof r.source.value=="string"&&Ol(r.source.value)&&t.push(r.source.value);return t}function Ol(e){return e.startsWith("./")||e.startsWith("../")||e.startsWith("@/")}function Yme(e,t){if(t.startsWith("@/"))return t.slice(2).replace(/\\/g,"/");let r=$a.dirname(e);return $a.join(r,t).replace(/\\/g,"/")}async function Gme(e,t){for(let r of ND){let i=`${e}${r}`;if(await t(i))return i}for(let r of Zme){let i=`${e}${r}`;if(await t(i))return i}return null}async function Dl(e,t,r){let i=Yme(e,t);return Gme(i,r)}var Hme=typeof Ad.default=="function"?Ad.default:Ad.default.default;function Qme(e){try{return LD.parse(e,{sourceType:"module",plugins:["jsx","typescript"]})}catch{return null}}function xr(e){return{startLine:e.loc?.start.line??0,startColumn:e.loc?.start.column??0,endLine:e.loc?.end.line??0,endColumn:e.loc?.end.column??0}}function eye(e){return/^[A-Z]/.test(e)}function tye(e){let t=e.openingElement;return A.isJSXIdentifier(t.name)?t.name.name==="Fragment":A.isJSXMemberExpression(t.name)?t.name.property.name==="Fragment":!1}function wn(e){return A.isJSXFragment(e)}function RD(e){return A.isJSXIdentifier(e.name)?e.name.name:A.isJSXMemberExpression(e.name)?MD(e.name):A.isJSXNamespacedName(e.name)?`${e.name.namespace.name}:${e.name.name.name}`:"unknown"}function MD(e){return A.isJSXIdentifier(e.object)?`${e.object.name}.${e.property.name}`:A.isJSXMemberExpression(e.object)?`${MD(e.object)}.${e.property.name}`:e.property.name}function rye(e){let t=e;for(;t;){let r=t.node;if(A.isFunctionDeclaration(r)&&r.id||A.isVariableDeclarator(r)&&A.isIdentifier(r.id))return r.id.name;if(A.isExportDefaultDeclaration(r)){let i=r.declaration;if(A.isFunctionDeclaration(i)&&i.id)return i.id.name;if(A.isFunctionDeclaration(i)&&!i.id)return"default"}t=t.parentPath}return null}function nye(){let e=new Map;return{getOrdinal(t,r){let i=t??"__root__";e.has(i)||e.set(i,new Map);let n=e.get(i),s=n.get(r)??0;return n.set(r,s+1),s}}}function iye(e){let t=new Map;for(let r of e.program.body){if(!A.isImportDeclaration(r))continue;let i=r.source.value;for(let n of r.specifiers)if(A.isImportDefaultSpecifier(n))t.set(n.local.name,{specifier:i,exportName:"default"});else if(A.isImportNamespaceSpecifier(n))t.set(n.local.name,{specifier:i,exportName:"*"});else if(A.isImportSpecifier(n)){let s=A.isIdentifier(n.imported)?n.imported.name:n.imported.value;t.set(n.local.name,{specifier:i,exportName:s})}}return t}function An(e,t=[]){if(A.isIdentifier(e))return t.push(e.name),t;if(A.isObjectPattern(e)){for(let r of e.properties)A.isObjectProperty(r)?An(r.value,t):A.isRestElement(r)&&An(r.argument,t);return t}if(A.isArrayPattern(e)){for(let r of e.elements)r&&(A.isRestElement(r)?An(r.argument,t):An(r,t));return t}return A.isAssignmentPattern(e)?(An(e.left,t),t):(A.isRestElement(e)&&An(e.argument,t),t)}function Ei(e,t){return e.start==null||e.end==null?"":t.slice(e.start,e.end)}function wd(e,t){for(let r=t.length-1;r>=0;r-=1){let i=t[r].get(e);if(i)return i.resolved?{kind:"resolved",value:i.value}:{kind:"unresolved"}}return{kind:"unresolved"}}function sye(e,t,r){e.set(t,{resolved:!0,value:r})}function Od(e,t){e.set(t,{resolved:!1})}function FD(e,t){let r=e;for(let i of t){if(i.kind==="property"){if(r==null||Array.isArray(r)||typeof r!="object"||!(i.name in r))return{kind:"known-empty"};r=r[i.name];continue}if(!Array.isArray(r)||i.index<0||i.index>=r.length)return{kind:"known-empty"};r=r[i.index]}return{kind:"resolved",value:r}}function Vn(e,t,r){if(A.isIdentifier(e))return{kind:"identifier",expression:e.name,base:e.name,path:[]};if(!A.isMemberExpression(e))return null;let i=[],n=e;for(;A.isMemberExpression(n);){if(n.computed)if(A.isNumericLiteral(n.property))i.unshift({kind:"index",index:n.property.value});else if(A.isStringLiteral(n.property))i.unshift({kind:"property",name:n.property.value});else if(r&&A.isExpression(n.property)){let s=fs(n.property,r);if(typeof s=="string")i.unshift({kind:"property",name:s});else if(Number.isInteger(s))i.unshift({kind:"index",index:s});else return null}else return null;else{if(!A.isIdentifier(n.property))return null;i.unshift({kind:"property",name:n.property.name})}n=n.object}return A.isIdentifier(n)?{kind:i.some(s=>s.kind==="index")?"index-expression":"member-expression",expression:Ei(e,t),base:n.name,path:i}:null}function fs(e,t){if(A.isStringLiteral(e)||A.isNumericLiteral(e)||A.isBooleanLiteral(e))return e.value;if(A.isNullLiteral(e))return null;if(A.isTemplateLiteral(e))return e.expressions.length===0&&e.quasis.length===1?e.quasis[0].value.cooked??e.quasis[0].value.raw:void 0;if(A.isIdentifier(e)){let r=wd(e.name,t.valueScopes);return r.kind==="resolved"?r.value:void 0}if(A.isArrayExpression(e)){let r=[];for(let i of e.elements){if(!i||A.isSpreadElement(i))return;let n=fs(i,t);if(n===void 0)return;r.push(n)}return r}if(A.isObjectExpression(e)){let r={};for(let i of e.properties){if(!A.isObjectProperty(i)||i.computed||!A.isExpression(i.value))return;let n=null;if(A.isIdentifier(i.key)?n=i.key.name:A.isStringLiteral(i.key)&&(n=i.key.value),!n)return;let s;if(i.shorthand){if(!A.isIdentifier(i.value))return;let a=wd(i.value.name,t.valueScopes);if(a.kind!=="resolved")return;s=a.value}else s=fs(i.value,t);if(s===void 0)return;r[n]=s}return r}if(A.isMemberExpression(e)){let r=Vn(e,"",t);if(!r)return;let i=wd(r.base,t.valueScopes);if(i.kind!=="resolved")return;let n=FD(i.value,r.path);return n.kind==="resolved"?n.value:void 0}if(A.isCallExpression(e))return zD(e,t)??void 0}function BD(e,t,r){let i=Vn(e,r,t);if(!i)return A.isMemberExpression(e)||A.isBinaryExpression(e)||A.isLogicalExpression(e)||A.isConditionalExpression(e)||A.isCallExpression(e)?{value:Ei(e,r),source:null}:null;let n=wd(i.base,t.valueScopes),s=i.kind==="identifier"?n:n.kind==="resolved"?FD(n.value,i.path):n;return s.kind==="resolved"&&(typeof s.value=="string"||typeof s.value=="number")?{value:String(s.value),source:i}:s.kind==="resolved"&&(typeof s.value=="boolean"||s.value===null)||s.kind==="known-empty"?null:{value:i.expression,source:i}}function QE(e,t,r,i,n,s){return{file:e,componentName:t,elements:r,regions:i,ordinalTracker:nye(),parentStack:[],valueScopes:s,importMap:n}}function Nd(e,t,r){for(let i of e)for(let n of i.declarations){for(let a of An(n.id))Od(r,a);if(!A.isIdentifier(n.id)||!n.init||!A.isExpression(n.init))continue;let s=fs(n.init,t);s!==void 0&&sye(r,n.id.name,s)}}function aye(e){let t=[];for(let r of e){if(A.isVariableDeclaration(r)){t.push(r);continue}A.isExportNamedDeclaration(r)&&r.declaration&&A.isVariableDeclaration(r.declaration)&&t.push(r.declaration)}return t}function oye(e,t,r){let i=[],n=0;for(let s of e)if(A.isJSXText(s)){let a=s.value.trim();a&&i.push({index:n++,value:a,sourceRange:xr(s),editable:!0,source:null})}else if(A.isJSXExpressionContainer(s)&&A.isStringLiteral(s.expression))i.push({index:n++,value:s.expression.value,sourceRange:xr(s),editable:!0,source:null});else if(A.isJSXExpressionContainer(s)&&A.isTemplateLiteral(s.expression)){let a=s.expression;a.expressions.length===0&&a.quasis.length===1?i.push({index:n++,value:a.quasis[0].value.cooked??a.quasis[0].value.raw,sourceRange:xr(s),editable:!0,source:null}):i.push({index:n++,value:Ei(a,r),sourceRange:xr(s),editable:!0,source:null})}else if(A.isJSXExpressionContainer(s)&&A.isExpression(s.expression)){let a=BD(s.expression,t,r);a&&i.push({index:n++,value:a.value,sourceRange:xr(s),editable:!0,source:a.source})}return i}function lye(e,t,r){let i=[];for(let n of e.attributes)if(!(!A.isJSXAttribute(n)||!A.isJSXIdentifier(n.name))){if(A.isStringLiteral(n.value)){i.push({name:n.name.name,value:n.value.value,sourceRange:xr(n),source:null});continue}if(A.isJSXExpressionContainer(n.value)&&A.isExpression(n.value.expression)){let s=fs(n.value.expression,t);if(n.name.name==="className"){let o=typeof s=="string"?s:s===void 0?zD(n.value.expression,t):null;if(o){i.push({name:n.name.name,value:o,sourceRange:xr(n),source:null,resolvedValue:o});continue}}let a=BD(n.value.expression,t,r);if(s!==void 0&&typeof s!="string"&&typeof s!="number"){i.push({name:n.name.name,value:DD(s),sourceRange:xr(n),source:Vn(n.value.expression,r,t),resolvedValue:s});continue}if(!a){s!==void 0&&i.push({name:n.name.name,value:DD(s),sourceRange:xr(n),source:Vn(n.value.expression,r,t),resolvedValue:s});continue}i.push({name:n.name.name,value:a.value,sourceRange:xr(n),source:a.source})}}return i}function zD(e,t){let r=ja(e,t);return r&&r.map(n=>n.trim()).filter(Boolean).join(" ")||null}function ja(e,t){if(A.isStringLiteral(e))return[e.value];if(A.isTemplateLiteral(e))return e.expressions.length>0?null:[e.quasis.map(r=>r.value.cooked??"").join("")];if(A.isNullLiteral(e))return[];if(A.isBooleanLiteral(e))return e.value?null:[];if(A.isIdentifier(e)||A.isMemberExpression(e)){if(A.isIdentifier(e)&&e.name==="undefined")return[];let r=fs(e,t);return typeof r=="string"?[r]:null}if(A.isConditionalExpression(e)){let r=ja(e.consequent,t),i=ja(e.alternate,t);return!r||!i?null:[...r,...i]}if(A.isLogicalExpression(e)){if(e.operator!=="&&")return null;let r=fs(e.left,t);return r===!1||r===null?[]:ja(e.right,t)}if(A.isArrayExpression(e)){let r=[];for(let i of e.elements){if(!i||A.isSpreadElement(i))return null;let n=ja(i,t);if(!n)return null;r.push(...n)}return r}if(A.isObjectExpression(e)){let r=[];for(let i of e.properties){if(!A.isObjectProperty(i))return null;let n=uye(i.key);if(!n)return null;r.push(n)}return r}if(A.isCallExpression(e)){let r=cye(e.callee);if(!r||!["cn","clsx","twMerge"].includes(r))return null;let i=[];for(let n of e.arguments){if(!A.isExpression(n))return null;let s=ja(n,t);if(!s)return null;i.push(...s)}return i}return null}function cye(e){return A.isIdentifier(e)?e.name:A.isMemberExpression(e)&&A.isIdentifier(e.property)?e.property.name:null}function uye(e){return A.isIdentifier(e)?e.name:A.isStringLiteral(e)?e.value:null}function pye(e,t){let r=e.attributes.find(i=>A.isJSXAttribute(i)&&A.isJSXIdentifier(i.name)&&i.name.name===t);return!r||!A.isJSXAttribute(r)||!A.isJSXExpressionContainer(r.value)?null:r.value.expression}function dye(e,t){for(let r of t){let i=pye(e,r);if(i)return i}return null}function fye(e){return A.isJSXIdentifier(e.name)?e.name.name:null}function DD(e){return e===null?"null":typeof e=="boolean"?e?"true":"false":JSON.stringify(e)}function hye(e){return A.isCallExpression(e)&&A.isMemberExpression(e.callee)&&A.isIdentifier(e.callee.property)&&e.callee.property.name==="map"}function eP(e){return A.isArrowFunctionExpression(e)||A.isFunctionExpression(e)}function mye(e){return e==="render"||e==="itemRender"||e==="rowRender"||e==="children"}function yye(e){return e==="empty"||e==="emptyRender"||e==="loading"||e==="loadingRender"||e==="error"||e==="errorRender"||e==="fallback"||e==="headerRender"||e==="footerRender"}function $D(e,t,r,i){if(!e||!A.isExpression(e))return null;let n={kind:"repeat-template",collectionExpression:Ei(e,r),collectionSource:Vn(e,r,i)};if(t){let s=t.params[0],a=t.params[1];A.isIdentifier(s)&&(n.itemParamName=s.name),A.isIdentifier(a)&&(n.indexParamName=a.name)}return n}function jl(e,t,r){if(!e)return[];if(A.isJSXElement(e)){let i=on(e,t,r);return i?[i]:[]}if(wn(e))return ds(e,t,r);if(A.isParenthesizedExpression(e))return jl(e.expression,t,r);if(A.isExpression(e)){let i=t.regions.length;return Dd(e,t,r),t.regions.slice(i).flatMap(n=>n.childKeys)}return[]}function tP(e,t,r){let i=new Map;for(let n of e.params)for(let s of An(n))Od(i,s);t.valueScopes.push(i);try{if(!A.isBlockStatement(e.body))return jl(e.body,t,r);let n=new Map;t.valueScopes.push(n);try{for(let s of e.body.body){if(A.isVariableDeclaration(s)){Nd([s],t,n);continue}if(A.isReturnStatement(s)&&s.argument)return jl(s.argument,t,r)}}finally{t.valueScopes.pop()}}finally{t.valueScopes.pop()}return[]}function Cd(e,t,r,i,n,s){n.length!==0&&e.regions.push({kind:t,ownerKey:r,childKeys:n,sourceRange:xr(i),sourceCandidates:s&&s.length>0?s:void 0})}function gye(e,t,r,i){let n=dye(e.openingElement,["items","dataSource","data"]),s={key:t,tag:RD(e.openingElement)};r.parentStack.push(s);try{for(let a of e.openingElement.attributes){if(!A.isJSXAttribute(a))continue;let o=fye(a);if(!o||!A.isJSXExpressionContainer(a.value))continue;let c=a.value.expression;if(!A.isJSXEmptyExpression(c)){if(mye(o)&&eP(c)){let u=tP(c,r,i),p=$D(n,c,i,r);Cd(r,"repeat-region",t,a,u,p?[p]:void 0);continue}if(yye(o)){let u=eP(c)?tP(c,r,i):jl(c,r,i);Cd(r,"conditional-region",t,a,u)}}}if(n)for(let a of e.children){if(!A.isJSXExpressionContainer(a)||!eP(a.expression))continue;let o=tP(a.expression,r,i),c=$D(n,a.expression,i,r);Cd(r,"repeat-region",t,a,o,c?[c]:void 0)}}finally{r.parentStack.pop()}}function on(e,t,r){let i=RD(e.openingElement);if(i==="Fragment"||tye(e))return jD(e.children,t,r),null;let n=t.parentStack[t.parentStack.length-1]??null,s=n?.key??null,a=eye(i),o;if(a){let D=t.ordinalTracker.getOrdinal(s,i);o=`component:${i}#${D}`}else{let D=t.ordinalTracker.getOrdinal(s,i);o=`${i}#${D}`}let c=n?t.elements.get(n.key)?.identity.structuralPath:void 0,u=c?`${c}/${o}`:o,p=hS(t.file,t.componentName,u),d={file:t.file,component:t.componentName,structuralPath:u,key:p},h=a?"component-boundary":null,y=oye(e.children,t,r),T=lye(e.openingElement,t,r),w,k;if(a){let D=t.importMap.get(i);D&&(w=D.specifier,k=D.exportName)}let C={identity:d,tag:i,componentName:t.componentName,sourceFile:t.file,sourceRange:xr(e),parentKey:s,childKeys:[],textSegments:y,attributes:T.length>0?T:void 0,boundaryKind:h,isOpaque:a,importedFrom:w,exportName:k};return t.elements.set(p,C),s&&t.elements.has(s)&&t.elements.get(s).childKeys.push(p),gye(e,p,t,r),(!a||e.children.length>0)&&(t.parentStack.push({key:p,tag:i}),jD(e.children,t,r),t.parentStack.pop()),p}function ds(e,t,r){let i=[];for(let n of e.children)if(A.isJSXElement(n)){let s=on(n,t,r);s&&i.push(s)}else wn(n)?i.push(...ds(n,t,r)):A.isJSXExpressionContainer(n)&&Dd(n.expression,t,r);return i}function jD(e,t,r){for(let i of e)A.isJSXElement(i)?on(i,t,r):wn(i)?ds(i,t,r):A.isJSXExpressionContainer(i)&&Dd(i.expression,t,r)}function Dd(e,t,r){if(!A.isJSXEmptyExpression(e)){if(hye(e)){let i=e,n=t.parentStack[t.parentStack.length-1]??null,s=[];if(A.isMemberExpression(i.callee)&&A.isExpression(i.callee.object)){let c=i.arguments[0],u={kind:"repeat-template",collectionExpression:Ei(i.callee.object,r),collectionSource:Vn(i.callee.object,r,t)};if(A.isArrowFunctionExpression(c)||A.isFunctionExpression(c)){let p=c.params[0],d=c.params[1];A.isIdentifier(p)&&(u.itemParamName=p.name),A.isIdentifier(d)&&(u.indexParamName=d.name)}s.push(u)}let a={kind:"repeat-region",ownerKey:n?.key??"",childKeys:[],sourceRange:xr(i),sourceCandidates:s.length>0?s:void 0};t.regions.push(a);let o=i.arguments[0];if(A.isArrowFunctionExpression(o)||A.isFunctionExpression(o)){let c=new Map;for(let p of o.params)for(let d of An(p))Od(c,d);t.valueScopes.push(c);let u=o.body;if(A.isJSXElement(u)){let p=on(u,t,r);p&&a.childKeys.push(p)}else if(wn(u))a.childKeys.push(...ds(u,t,r));else if(A.isBlockStatement(u)){let p=new Map;t.valueScopes.push(p);for(let d of u.body)if(A.isVariableDeclaration(d)&&Nd([d],t,p),A.isReturnStatement(d)&&d.argument){if(A.isJSXElement(d.argument)){let h=on(d.argument,t,r);h&&a.childKeys.push(h)}else if(wn(d.argument))a.childKeys.push(...ds(d.argument,t,r));else if(A.isParenthesizedExpression(d.argument)&&A.isJSXElement(d.argument.expression)){let h=on(d.argument.expression,t,r);h&&a.childKeys.push(h)}else A.isParenthesizedExpression(d.argument)&&wn(d.argument.expression)&&a.childKeys.push(...ds(d.argument.expression,t,r));break}t.valueScopes.pop()}else if(A.isParenthesizedExpression(u)&&A.isJSXElement(u.expression)){let p=on(u.expression,t,r);p&&a.childKeys.push(p)}t.valueScopes.pop()}return}if(A.isConditionalExpression(e)){let i=t.parentStack[t.parentStack.length-1]??null,n={kind:"conditional-branch",conditionExpression:Ei(e.test,r),conditionSource:Vn(e.test,r,t)},s={kind:"conditional-region",ownerKey:i?.key??"",childKeys:[],sourceRange:xr(e),sourceCandidates:[n]};if(t.regions.push(s),A.isJSXElement(e.consequent)){let a=on(e.consequent,t,r);a&&s.childKeys.push(a)}if(A.isJSXElement(e.alternate)){let a=on(e.alternate,t,r);a&&s.childKeys.push(a)}return}if(A.isLogicalExpression(e)&&e.operator==="&&"){let i=t.parentStack[t.parentStack.length-1]??null,n={kind:"conditional-branch",conditionExpression:Ei(e.left,r),conditionSource:Vn(e.left,r,t)},s={kind:"conditional-region",ownerKey:i?.key??"",childKeys:[],sourceRange:xr(e),sourceCandidates:[n]};if(t.regions.push(s),A.isJSXElement(e.right)){let a=on(e.right,t,r);a&&s.childKeys.push(a)}return}if(A.isParenthesizedExpression(e)){Dd(e.expression,t,r);return}if(A.isJSXElement(e)){on(e,t,r);return}if(wn(e)){ds(e,t,r);return}}}function xye(e){let t=e.argument;return t?A.isJSXElement(t)||wn(t)?t:A.isParenthesizedExpression(t)&&(A.isJSXElement(t.expression)||wn(t.expression))?t.expression:null:null}function $l(e,t){let r=[];for(let i of e){if(A.isReturnStatement(i)){let n=xye(i);n&&r.push({argument:n,statement:i,condition:t});continue}if(A.isIfStatement(i)){let n=A.isBlockStatement(i.consequent)?i.consequent.body:[i.consequent];if(r.push(...$l(n,i.test)),i.alternate){let s=A.isBlockStatement(i.alternate)?i.alternate.body:[i.alternate];r.push(...$l(s,i.test))}continue}if(A.isSwitchStatement(i))for(let n of i.cases){let s=n.test?A.binaryExpression("===",i.discriminant,n.test):i.discriminant;r.push(...$l(n.consequent,s))}}return r}function UD(e,t){let r={routeId:e,rootKeys:[],elements:new Map,regions:[],fileIndex:new Map,version:1},i=Qme(t);if(!i)return{graph:r,localImports:[]};let n=OD(i),s=new Map,a=[],o=[],c=new Map,u=iye(i);Hme(i,{"FunctionDeclaration|FunctionExpression|ArrowFunctionExpression"(d){let h=rye(d);if(!h)return;let y=d.node,T=[];if(A.isArrowFunctionExpression(y))A.isJSXElement(y.body)||wn(y.body)?T=[{argument:y.body,statement:A.returnStatement(y.body)}]:A.isBlockStatement(y.body)&&(T=$l(y.body.body));else{let z=y.body;A.isBlockStatement(z)&&(T=$l(z.body))}if(T.length===0)return;let w=new Map;Nd(aye(i.program.body),QE(e,h,s,a,u,[w]),w);let k=new Map;for(let z of y.params)for(let q of An(z))Od(k,q);let C=A.isBlockStatement(y.body)?y.body.body:[],D=T[0]?.statement??null;for(let z of C){if(D&&z===D)break;A.isVariableDeclaration(z)&&Nd([z],QE(e,h,s,a,u,[w,k]),k)}let U=QE(e,h,s,a,u,[w,k]);for(let z of T){let q=jl(z.argument,U,t);for(let ye of q)o.includes(ye)||o.push(ye);if(z.condition){let ye={kind:"conditional-branch",conditionExpression:Ei(z.condition,t),conditionSource:Vn(z.condition,t,U)};Cd(U,"conditional-region","",z.statement,q,[ye])}}d.skip()}});let p=[...s.keys()];return p.length>0&&c.set(e,p),{graph:{routeId:e,rootKeys:o,elements:s,regions:a,fileIndex:c,version:1},localImports:n}}async function KD(e,t,r,i,n={}){let s=n.maxDepth??10,a=n.version??1,o=new Map,c=new Map,u=[{file:e,source:t,depth:0},...(n.additionalEntries??[]).map(h=>({file:h.file,source:h.source,depth:0}))],p=new Set;for(;u.length>0;){let h=u.shift(),{file:y,source:T,depth:w}=h;if(p.has(y))continue;p.add(y),o.set(y,T);let{graph:k,localImports:C}=UD(y,T);for(let D of k.elements.values())if(D.importedFrom&&Ol(D.importedFrom))try{let U=await Dl(y,D.importedFrom,i);U&&(D.importedFrom=U)}catch{}if(c.set(y,k),!(w>=s))for(let D of C)try{let U=await Dl(y,D,i);if(!U||p.has(U))continue;let z=await r(U);u.push({file:U,source:z,depth:w+1})}catch{}}return{graph:Sye(e,c,a,(n.additionalEntries??[]).map(h=>h.file)),allSources:o}}function Sye(e,t,r,i=[]){let n=new Map,s=[],a=new Map,o=[];for(let[c,u]of t){for(let[p,d]of u.elements)n.set(p,d);for(let p of u.regions)s.push(p);for(let[p,d]of u.fileIndex){let h=a.get(p)??[];a.set(p,[...h,...d])}if(c===e){o=u.rootKeys;continue}i.includes(c)&&(o=[...o,...u.rootKeys])}return{routeId:e,rootKeys:o,elements:n,regions:s,fileIndex:a,version:r}}function VD(e){let t=new Map;for(let[r,i]of e.elements){let n=/^[A-Z]/.test(i.tag),s={file:i.sourceFile,componentName:i.componentName,isProxy:n},a=i.boundaryKind,o=[];i.isOpaque&&o.push({kind:"opaque-region",reason:`Component '${i.tag}' is opaque: internal structure not editable`}),n&&!i.isOpaque&&o.push({kind:"component-boundary",reason:`Component '${i.tag}' boundary: editing requires source file access`});let c={key:r,writeTarget:s,boundaryKind:a,parentKey:i.parentKey,childKeys:[...i.childKeys],constraints:o};t.set(r,c)}for(let r of e.regions){let i=r.kind==="repeat-region"?"repeat-region":r.kind==="conditional-region"?"conditional-region":r.kind==="opaque-region"?"opaque-region":"component-boundary",n=r.kind==="repeat-region"?"Node is inside a repeat region: operations affect the template, not individual instances":r.kind==="conditional-region"?"Node is inside a conditional region: visibility depends on runtime condition":`Node is inside a ${r.kind}`;for(let s of r.childKeys){let a=t.get(s);a&&a.constraints.push({kind:i,reason:n}),qD(s,i,n,t,e)}}return{nodes:t,rootKeys:[...e.rootKeys]}}function qD(e,t,r,i,n){let s=n.elements.get(e);if(s)for(let a of s.childKeys){let o=i.get(a);o&&!o.constraints.some(c=>c.kind===t)&&(o.constraints.push({kind:t,reason:r}),qD(a,t,r,i,n))}}var bye=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),vye=new Set(["article","aside","div","footer","form","header","li","main","nav","ol","table","tbody","tfoot","thead","tr","select","section","ul"]);function Tye(e,t,r){let i=t.nodes.get(e),n=r.elements.get(e);if(!i||!n)return{key:e,canUpdateText:!1,canInsertChild:!1,canMove:!1,canRemove:!1,constraints:[{kind:"opaque-region",message:"Node not found in graph"}]};let s=i.constraints.map(U=>({kind:U.kind,message:U.reason})),a=n.isOpaque,c=i.parentKey===null&&n.componentName==="Page",u=n.tag.toLowerCase(),p=n.tag!==u,d=!p&&bye.has(u),h=p||vye.has(u),y=p&&n.childKeys.length>0,T=n.textSegments.length>0&&n.textSegments.some(U=>U.editable);return d&&!s.some(U=>U.kind==="void-element")&&s.push({kind:"void-element",message:`Element '${n.tag}' is void: children cannot be inserted`}),!d&&!h&&!s.some(U=>U.kind==="void-element")&&s.push({kind:"void-element",message:`Element '${n.tag}' cannot contain structured children`}),{key:e,canUpdateText:T&&!a,canInsertChild:!d&&h&&(!a||y),canMove:!c,canRemove:!c,constraints:s}}function WD(e,t){let r=new Map;for(let i of e.nodes.keys())r.set(i,Tye(i,e,t));return r}function Eye(e){return e==="api-field"||e==="cms-field"||e==="i18n-message"||e==="config-entry"}function JD(e,t,r,i={}){let n=[];for(let[s,a]of e.elements){let o=r.get(s),c={canUpdateText:i.canUpdateTextByKey?.get(s)??o?.canUpdateText??!1,canInsertChild:o?.canInsertChild??!1,canMove:o?.canMove??!1,canRemove:o?.canRemove??!1};n.push({key:s,tag:a.tag,label:a.tag===a.componentName?a.tag:`${a.tag} (${a.componentName})`,parentKey:a.parentKey,childKeys:[...a.childKeys],operationSummary:c})}return{routeId:e.routeId,version:e.version,rootKeys:[...e.rootKeys],entries:n}}function XD(e,t,r,i,n,s,a,o,c,u,p,d){let h=t.elements.get(e),y=r.nodes.get(e),T=i.get(e);if(!h||!y||!T)throw new Error(`Node not found: ${e}`);let w=Pye(h.textSegments,a),k=_ye(e,t,h,T,w),C=w?Iye(w):void 0,D=Aye(s,w),U=h.textSegments.map(Pe=>({index:Pe.index,value:Pe.value,editable:kye(Pe,T,a?.get(Pe.index)??null),source:n.get(Pe.index)??null})),z=[],q=h.parentKey;for(;q;){let Pe=t.elements.get(q);if(!Pe)break;z.push({key:q,tag:Pe.tag,label:Pe.tag}),q=Pe.parentKey}z.reverse();let ye=h.childKeys.map(Pe=>{let Qe=t.elements.get(Pe);return Qe?{key:Pe,tag:Qe.tag,label:Qe.tag}:null}).filter(Pe=>Pe!==null),we=[];if(h.parentKey){let Pe=t.elements.get(h.parentKey);if(Pe)for(let Qe of Pe.childKeys){if(Qe===e)continue;let yt=t.elements.get(Qe);yt&&we.push({key:Qe,tag:yt.tag,label:yt.tag})}}return{key:e,tag:h.tag,componentName:h.componentName,sourceFile:h.sourceFile,label:h.tag,capabilities:k,writeTarget:s,effectiveWriteTarget:D,provenanceChain:C,componentSemantic:c,contentModel:u,mediaModel:p,styleSource:d,conditional:o,textSegments:U,boundaryKind:h.boundaryKind,isOpaque:h.isOpaque,ancestors:z,children:ye,siblings:we}}function ZD(e,t){let r=t.find(i=>i.editable&&i.source&&i.source.kind!=="literal");return r?.source?{kind:"value-binding",file:r.source.file,componentName:e.componentName,isProxy:r.source.file!==e.file}:{kind:"jsx-node",file:e.file,componentName:e.componentName,isProxy:e.isProxy}}function Pye(e,t){if(!t)return null;for(let r of e){let i=t.get(r.index);if(i)return i}return null}function _ye(e,t,r,i,n){let s=r.identity.structuralPath.includes("#repeat:"),a=t.regions.some(p=>p.kind==="repeat-region"&&p.childKeys.includes(e)),o=n?.diagnostics.find(p=>p.code==="missing-adapter"||p.code==="external-source-readonly")?.code,c=i.canUpdateText?{mode:n?.editMode??"direct",reasonCode:o??(n?.editMode==="upstream"?"component-prop":n?.finalSource?.kind==="repeat-template"?"repeat-item-data":void 0)}:{mode:"unsupported",reasonCode:"capability-denied"},u=i.canUpdateText&&YD(c.mode);return{...i,canUpdateText:u,editModes:{updateText:c,insertChild:i.canInsertChild?{mode:"direct",reasonCode:s||a?"repeat-template":void 0}:{mode:"unsupported",reasonCode:"capability-denied"},move:i.canMove?{mode:a?"proxy":"direct",reasonCode:a?"repeat-collection":void 0}:{mode:"unsupported",reasonCode:"capability-denied"},remove:i.canRemove?{mode:a?"proxy":"direct",reasonCode:a?"repeat-collection":void 0}:{mode:"unsupported",reasonCode:"capability-denied"}}}}function kye(e,t,r){return!e.editable||!t.canUpdateText?!1:r?YD(r.editMode):!0}function YD(e){return e==="direct"||e==="proxy"||e==="upstream"}function Iye(e){return{finalSource:e.finalSource?{kind:e.finalSource.kind,file:e.finalSource.file,displayPath:e.finalSource.displayPath,externalSource:e.finalSource.externalSource}:null,chain:e.chain.map(t=>({kind:t.kind,file:t.file,displayName:t.displayName,canEditHere:t.canEditHere})),confidence:e.confidence,editMode:e.editMode,diagnostics:e.diagnostics.map(t=>({code:t.code,message:t.message}))}}function Aye(e,t){return t?.finalSource?t.finalSource.kind==="jsx-literal"?{kind:"jsx-node",file:e.file,isProxy:e.isProxy}:t.finalSource.kind==="config-entry"&&t.finalSource.locator?{kind:"value-path",file:t.finalSource.file,isProxy:t.finalSource.file!==e.file,displayPath:t.finalSource.displayPath}:Eye(t.finalSource.kind)?{kind:"external-entry",file:t.finalSource.file,isProxy:!1,displayPath:t.finalSource.displayPath,sourceType:t.finalSource.externalSource?.sourceType,sourceId:t.finalSource.externalSource?.sourceId}:{kind:"value-path",file:t.finalSource.file,isProxy:t.finalSource.file!==e.file,displayPath:t.finalSource.displayPath}:{kind:e.kind==="route-export"?"route-export":"jsx-node",file:e.file,isProxy:e.isProxy}}function GD(e){let{key:t,element:r,graph:i,provenances:n}=e,s=Cye(t,r,i),a=s?.tag??(hs(r.tag)?r.tag:r.componentName),o=s?.identity.key??HD(r,i)??t,c=Dye(s),u=$ye(t,r,i,n,s),p=wye(t,r,i,n,o);return{componentName:a,instanceKey:o,templateOwner:Oye(s??r,a),...c.length>0?{variantKeys:c}:{},...u.length>0?{slotKeys:u}:{},editableStrategy:p,impactScope:jye(p),alternativeStrategies:Lye(p)}}function wye(e,t,r,i,n){for(let s of i.values())if(s?.editMode==="upstream")return"upstream";return rP(e,r)?"instance":!hs(t.tag)&&t.sourceFile!==r.routeId&&n!==e?"template":"instance"}function HD(e,t){if(hs(e.tag))return e.identity.key;let r=[...t.elements.values()].filter(i=>i.importedFrom===e.sourceFile&&Nye(i,e.componentName));return r.length!==1?null:r[0].identity.key}function Cye(e,t,r){if(hs(t.tag))return t;let i=rP(e,r);if(i)return i;let n=HD(t,r);return n?r.elements.get(n)??null:null}function Nye(e,t){return e.exportName===t||e.tag===t||e.exportName==="default"}function Oye(e,t){return hs(e.tag)&&e.importedFrom?`${e.importedFrom}#${t}`:`${e.sourceFile}#${t}`}function Dye(e){if(!e?.attributes)return[];let t=new Set(["variant","size","tone"]);return e.attributes.filter(r=>t.has(r.name)).map(r=>r.name)}function $ye(e,t,r,i,n){let s=new Set,a=rP(e,r);a&&n?.identity.key===a.identity.key&&s.add("children");for(let o of i.values()){let c=o?.chain.find(p=>p.kind==="component-prop");if(!c)continue;let u=c.displayName.split(".").pop();u&&s.add(u)}return s.size===0&&hs(t.tag)&&t.childKeys.length>0&&s.add("children"),[...s]}function rP(e,t){let r=t.elements.get(e)?.parentKey??null;for(;r;){let i=t.elements.get(r);if(!i)break;if(hs(i.tag))return i;r=i.parentKey}return null}function hs(e){return/^[A-Z]/.test(e)}function jye(e){switch(e){case"template":return"component-template";case"upstream":return"upstream-source";default:return"current-instance"}}function Lye(e){switch(e){case"template":return["instance"];case"upstream":return["template"];default:return["template"]}}var Rye=new Set(["markdown","body","content","value","document"]),QD=["replace-rich-text-content","insert-rich-text-block","remove-rich-text-block"];function t$(e){if(!(!Bye(e.tag)||!e.attributes))for(let t of e.attributes){if(!Rye.has(t.name))continue;if(Fye(t))return{kind:"markdown",field:t.name,schema:"markdown",valuePath:t.source?.expression,operationBoundary:QD};let r=Mye(t.resolvedValue);if(r==="prosemirror-doc"||r==="node-array")return{kind:"rich-text-json",field:t.name,valuePath:t.source?.expression,schema:r,operationBoundary:QD};if(r==="unsupported-json-tree")return{kind:"rich-text-json",field:t.name,valuePath:t.source?.expression,schema:"unsupported-json-tree",operationBoundary:[],diagnostics:[{code:"unsupported-schema",field:t.name,message:'Only top-level node arrays and { type: "doc", content: [] } rich-text JSON are editable in stage D'}]}}}function Mye(e){if(e){if(Array.isArray(e)&&e.every(t=>e$(t)))return"node-array";if(e$(e)){if(e.type==="doc"&&Array.isArray(e.content))return"prosemirror-doc";if(Array.isArray(e.content)||Array.isArray(e.children))return"unsupported-json-tree"}}}function e$(e){return!Array.isArray(e)&&typeof e=="object"&&e!==null}function Fye(e){return e.name==="markdown"}function Bye(e){return/^[A-Z]/.test(e)}var zye=["src","alt","poster","caption","width","height"];function r$(e){let t=e.attributes?.filter(s=>zye.includes(s.name))??[];if(t.length===0)return;let r=t.map(s=>s.name),i=Object.fromEntries(t.filter(s=>s.source?.expression).map(s=>[s.name,s.source.expression])),n=Kye(t.map(s=>s.value));return{kind:Uye(e.tag,r),sourceType:n,fields:r,editableFields:[...r],operationBoundary:["set-media-field"],...Object.keys(i).length>0?{valuePaths:i}:{}}}function Uye(e,t){return e==="img"?"image":e==="video"||t.includes("poster")?"video":"media"}function Kye(e){return e.some(t=>t.startsWith("cms:"))?"cms-media-field":e.some(t=>/^(\.?\/|\/)/.test(t))?"local-file-reference":"asset-id"}var Vye=new Set(["sm","md","lg","xl","2xl"]),qye=new Set(["hover","active","focus","disabled"]),n$=["block","inline-block","inline","flex","inline-flex","grid","inline-grid","hidden"],i$=["static","fixed","absolute","relative","sticky"],oP=["z-auto","z-0","z-10","z-20","z-30","z-40","z-50"],s$=["flex-row","flex-row-reverse","flex-col","flex-col-reverse"],a$=["flex-nowrap","flex-wrap","flex-wrap-reverse"],nP=["grow","grow-0"],iP=["shrink","shrink-0"],lP=["basis-auto","basis-full","basis-1/2","basis-1/3","basis-2/3","basis-1/4","basis-3/4","basis-px"],cP=["order-first","order-last","order-none","order-1","order-2","order-3","order-4","order-5","order-6"],uP=["grid-cols-1","grid-cols-2","grid-cols-3","grid-cols-4","grid-cols-5","grid-cols-6","grid-cols-12","grid-cols-none","grid-cols-subgrid"],pP=["grid-rows-1","grid-rows-2","grid-rows-3","grid-rows-4","grid-rows-5","grid-rows-6","grid-rows-none","grid-rows-subgrid"],dP=["col-auto","col-span-1","col-span-2","col-span-3","col-span-4","col-span-6","col-span-12","col-span-full"],fP=["row-auto","row-span-1","row-span-2","row-span-3","row-span-4","row-span-6","row-span-full"],o$=["items-start","items-end","items-center","items-baseline","items-stretch"],l$=["justify-normal","justify-start","justify-end","justify-center","justify-between","justify-around","justify-evenly","justify-stretch"],c$=["overflow-auto","overflow-hidden","overflow-clip","overflow-visible","overflow-scroll"],sP=["font-sans","font-serif","font-mono"],hP=["font-thin","font-extralight","font-light","font-normal","font-medium","font-semibold","font-bold","font-extrabold","font-black"],mP=["text-xs","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],yP=["text-left","text-center","text-right","text-justify","text-start","text-end"],u$=["uppercase","lowercase","capitalize","normal-case"],p$=["underline","overline","line-through","no-underline"],gP=["indent-0","indent-4","indent-8","indent-12"],d$=["[writing-mode:horizontal-tb]","[writing-mode:vertical-rl]"],f$=["whitespace-normal","whitespace-nowrap","whitespace-pre","whitespace-pre-line","whitespace-pre-wrap","whitespace-break-spaces"],h$=["break-normal","break-words","break-all","break-keep"],xP=["line-clamp-none","line-clamp-1","line-clamp-2","line-clamp-3","line-clamp-4","line-clamp-5","line-clamp-6"],aP=["tracking-tighter","tracking-tight","tracking-normal","tracking-wide","tracking-wider","tracking-widest"],SP=["border-solid","border-dashed","border-dotted","border-double","border-hidden","border-none"],bP=["border","border-0","border-2","border-4","border-8"],m$=["object-contain","object-cover","object-fill","object-none","object-scale-down"],vP=["aspect-auto","aspect-square","aspect-video"],TP=["shadow-none","shadow-sm","shadow","shadow-md","shadow-lg","shadow-xl","shadow-2xl"],Wye={0:"0","0px":"0","1px":"px","4px":"1","0.25rem":"1","8px":"2","0.5rem":"2","12px":"3","0.75rem":"3","16px":"4","1rem":"4","20px":"5","1.25rem":"5","24px":"6","1.5rem":"6","32px":"8","2rem":"8","40px":"10","2.5rem":"10","48px":"12","3rem":"12","64px":"16","4rem":"16"},Jye={100:"font-thin",200:"font-extralight",300:"font-light",400:"font-normal",normal:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold",bold:"font-bold",800:"font-extrabold",900:"font-black"},Xye={left:"text-left",center:"text-center",right:"text-right",justify:"text-justify",start:"text-start",end:"text-end"},Zye={0:"rounded-none","0px":"rounded-none","2px":"rounded-sm","4px":"rounded","6px":"rounded-md","8px":"rounded-lg","12px":"rounded-xl","16px":"rounded-2xl","24px":"rounded-3xl","9999px":"rounded-full"},Yye={0:"opacity-0","0%":"opacity-0","0.05":"opacity-5","5%":"opacity-5","0.1":"opacity-10","10%":"opacity-10","0.25":"opacity-25","25%":"opacity-25","0.5":"opacity-50","50%":"opacity-50","0.75":"opacity-75","75%":"opacity-75",1:"opacity-100","100%":"opacity-100"},La={"#111827":"gray-900","#1f2937":"gray-800","#374151":"gray-700","#4b5563":"gray-600","#6b7280":"gray-500","#9ca3af":"gray-400","#d1d5db":"gray-300","#e5e7eb":"gray-200","#f3f4f6":"gray-100","#f9fafb":"gray-50","#ffffff":"white",white:"white","#000000":"black",black:"black"},Gye=[{property:"display",exact:n$,isMatch:e=>e==="gallery-item",options:[...n$]},{property:"position",exact:i$,isMatch:e=>e==="cta-shine",options:[...i$]},{property:"top",isMatch:e=>$d("top",e)},{property:"right",isMatch:e=>$d("right",e)},{property:"bottom",isMatch:e=>$d("bottom",e)},{property:"left",isMatch:e=>$d("left",e)},{property:"zIndex",exact:oP,isMatch:hge,options:[...oP]},{property:"flexDirection",exact:s$,options:[...s$]},{property:"flexWrap",exact:a$,options:[...a$]},{property:"flexGrow",exact:nP,isMatch:e=>nP.includes(e)||/^grow-\[.+\]$/.test(e),options:[...nP]},{property:"flexShrink",exact:iP,isMatch:e=>iP.includes(e)||/^shrink-\[.+\]$/.test(e)||/^flex-shrink-(?:0|\[.+\])$/.test(e),options:[...iP]},{property:"flexBasis",exact:lP,isMatch:lge,options:[...lP]},{property:"flex",isMatch:e=>/^flex-(?:\d+|auto|initial|none|\[.+\])$/.test(e)},{property:"order",exact:cP,isMatch:cge,options:[...cP]},{property:"gridTemplateColumns",exact:uP,isMatch:uge,options:[...uP]},{property:"gridTemplateRows",exact:pP,isMatch:pge,options:[...pP]},{property:"columns",isMatch:e=>e==="gallery-grid"||/^columns-(?:\d+|auto|3xs|2xs|xs|sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|\[.+\])$/.test(e)},{property:"gridColumn",exact:dP,isMatch:dge,options:[...dP]},{property:"gridRow",exact:fP,isMatch:fge,options:[...fP]},{property:"gap",prefix:"gap-",isMatch:e=>e.startsWith("gap-")&&!e.startsWith("gap-x-")&&!e.startsWith("gap-y-")},{property:"gapX",prefix:"gap-x-"},{property:"gapY",prefix:"gap-y-"},{property:"spaceX",prefix:"space-x-"},{property:"spaceY",prefix:"space-y-"},{property:"alignItems",exact:o$,options:[...o$]},{property:"alignSelf",isMatch:e=>/^self-(?:auto|start|end|center|stretch|baseline)$/.test(e)},{property:"justifyContent",exact:l$,options:[...l$]},{property:"marginTop",isMatch:e=>Pi("m","t",e)},{property:"marginRight",isMatch:e=>Pi("m","r",e)},{property:"marginBottom",isMatch:e=>Pi("m","b",e)},{property:"marginLeft",isMatch:e=>Pi("m","l",e)},{property:"paddingTop",isMatch:e=>Pi("p","t",e)},{property:"paddingRight",isMatch:e=>Pi("p","r",e)},{property:"paddingBottom",isMatch:e=>Pi("p","b",e)},{property:"paddingLeft",isMatch:e=>Pi("p","l",e)},{property:"width",isMatch:e=>e.startsWith("w-")||y$(e)},{property:"height",isMatch:e=>e.startsWith("h-")||y$(e)},{property:"minWidth",prefix:"min-w-"},{property:"minHeight",prefix:"min-h-"},{property:"maxWidth",isMatch:e=>e==="container"||e.startsWith("max-w-")},{property:"maxHeight",prefix:"max-h-"},{property:"overflow",exact:c$,isMatch:e=>/^overflow(?:-[xy])?-.+$/.test(e),options:[...c$]},{property:"fontFamily",exact:sP,isMatch:e=>sP.includes(e)||/^font-\[.+\]$/.test(e)||/^font-[a-z][\w-]*$/.test(e)&&!bge(e),options:[...sP]},{property:"fontSize",exact:mP,isMatch:b$,options:[...mP]},{property:"fontWeight",exact:hP,options:[...hP]},{property:"lineHeight",prefix:"leading-"},{property:"letterSpacing",exact:aP,isMatch:e=>aP.includes(e)||e.startsWith("tracking-["),options:[...aP]},{property:"textAlign",exact:yP,options:[...yP]},{property:"textTransform",exact:u$,options:[...u$]},{property:"textDecoration",exact:p$,options:[...p$]},{property:"textOverflow",exact:["truncate","text-ellipsis","text-clip"]},{property:"fontStyle",exact:["italic","not-italic"]},{property:"textUnderlineOffset",prefix:"underline-offset-"},{property:"textIndent",exact:gP,isMatch:gge,options:[...gP]},{property:"writingMode",exact:d$,options:[...d$]},{property:"whiteSpace",exact:f$,options:[...f$]},{property:"wordBreak",exact:h$,options:[...h$]},{property:"lineClamp",exact:xP,isMatch:yge,options:[...xP]},{property:"fontVariantNumeric",isMatch:e=>/^(?:normal-nums|ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)$/.test(e)},{property:"screenReaderOnly",exact:["sr-only","not-sr-only"]},{property:"color",isMatch:age},{property:"backgroundColor",isMatch:oge},{property:"backgroundImage",isMatch:e=>e.startsWith("bg-[url")||e.startsWith("bg-gradient-")},{property:"borderStyle",exact:SP,options:[...SP]},{property:"borderWidth",exact:bP,isMatch:v$,options:[...bP]},{property:"divideWidth",isMatch:e=>/^divide-[xy](?:-\d+|-0|-reverse)?$/.test(e)},{property:"borderRadius",prefix:"rounded"},{property:"borderColor",isMatch:mge},{property:"divideColor",isMatch:e=>e.startsWith("divide-")&&!/^divide-[xy](?:-\d+|-0|-reverse)?$/.test(e)},{property:"objectFit",exact:m$,options:[...m$]},{property:"objectPosition",isMatch:e=>/^object-(?:bottom|center|left|left-bottom|left-top|right|right-bottom|right-top|top|\[.+\])$/.test(e)},{property:"aspectRatio",exact:vP,isMatch:xge,options:[...vP]},{property:"opacity",prefix:"opacity-"},{property:"boxShadow",exact:TP,isMatch:Sge,options:[...TP]},{property:"transform",isMatch:Ege},{property:"transformOrigin",isMatch:e=>/^origin-(?:center|top|top-right|right|bottom-right|bottom|bottom-left|left|top-left|\[.+\])$/.test(e)},{property:"transitionProperty",isMatch:e=>/^transition(?:-(?:none|all|colors|opacity|shadow|transform|\[.+\]))?$/.test(e)||["motion-link","image-zoom","card-lift","cta-shine","gallery-item-img","showcase-img"].includes(e)},{property:"transitionDuration",isMatch:e=>/^duration-(?:\d+|slow|\[.+\])$/.test(e)},{property:"transitionTimingFunction",isMatch:e=>/^ease-(?:linear|in|out|in-out|\[.+\])$/.test(e)},{property:"animation",isMatch:e=>/^(?:animate-.+|fade-.+|slide-in-.+)$/.test(e)||["section-reveal","scroll-reveal","first-viewport-entrance","media-reveal","media-entrance","gallery-fade-enter","number-pop"].includes(e)},{property:"pointerEvents",exact:["pointer-events-none","pointer-events-auto"]},{property:"cursor",isMatch:e=>/^cursor-(?:auto|default|pointer|wait|text|move|help|not-allowed|none|context-menu|progress|cell|crosshair|vertical-text|alias|copy|no-drop|grab|grabbing|all-scroll|col-resize|row-resize|n-resize|e-resize|s-resize|w-resize|ne-resize|nw-resize|se-resize|sw-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|zoom-in|zoom-out|\[.+\])$/.test(e)},{property:"userSelect",exact:["select-none","select-text","select-all","select-auto"]},{property:"outlineStyle",isMatch:e=>/^outline(?:-(?:none|hidden|solid|dashed|dotted|double|\d+|\[.+\]))?$/.test(e)},{property:"resize",exact:["resize-none","resize","resize-y","resize-x"]},{property:"ringWidth",isMatch:e=>/^ring(?:-\d+|-\[.+\]|-inset)?$/.test(e)},{property:"ringColor",isMatch:e=>e.startsWith("ring-")&&!/^ring(?:-\d+|-\[.+\]|-inset)?$/.test(e)},{property:"backdropFilter",isMatch:e=>/^backdrop-(?:blur|brightness|contrast|grayscale|hue-rotate|invert|opacity|saturate|sepia)(?:-.+)?$/.test(e)},{property:"overscrollBehavior",isMatch:e=>/^overscroll(?:-[xy])?-(?:auto|contain|none)$/.test(e)},{property:"scrollMarginTop",prefix:"scroll-mt-"}];function g$(e){let t=e.attributes?.find(r=>r.name==="className");if(!t)return{kind:"class-name-source",className:"",sourceKind:"missing",editable:!0,operationBoundary:["set-style-property","set-style-properties"],diagnostics:[{code:"missing-class-name",message:"No className attribute is present on this element"}]};if(t.source?.expression){let r=t.source.expression,i=typeof t.resolvedValue=="string"?t.resolvedValue:t.value!==r?t.value:void 0;return typeof i!="string"?{kind:"class-name-source",className:"",sourceKind:"dynamic-expression",editable:!1,operationBoundary:[],sourcePath:r,diagnostics:[{code:t.resolvedValue===void 0?"dynamic-binding":"non-string-binding",message:t.resolvedValue===void 0?"Style binding is dynamic and cannot be edited":"Style binding must resolve to a static string before it can be edited"}]}:{kind:"class-name-source",className:i,sourceKind:"static-expression",editable:!0,operationBoundary:["set-style-property","set-style-properties"],sourcePath:r}}return{kind:"class-name-source",className:t.value,sourceKind:t.resolvedValue===void 0?"static-attribute":"static-expression",editable:!0,operationBoundary:["set-style-property","set-style-properties"]}}function x$(e,t,r,i={}){let n=Hye(t);if(!n)return null;let s=Qye(n,r);if(r!==null&&!s)return null;let a=ige(e).filter(o=>!EP(n,S$(o))||!tge(o,i));return s&&a.push(rge(s,i)),sge(a).join(" ")}function Hye(e){return Gye.find(t=>t.property===e)}function Qye(e,t){if(t===null||typeof t!="string"&&typeof t!="number"&&typeof t!="boolean")return null;let r=String(t).trim();if(!r)return null;let i=jd(r)?.utility??r;if(EP(e,i))return i;let n=ege(e,r);return n&&EP(e,n)?n:null}function ege(e,t){let r=t.toLowerCase();switch(e.property){case"fontWeight":return Jye[r]??null;case"textAlign":return Xye[r]??null;case"borderRadius":return Zye[r]??null;case"opacity":return Yye[r]??null;case"color":return La[r]?`text-${La[r]}`:null;case"backgroundColor":return La[r]?`bg-${La[r]}`:null;case"borderColor":return La[r]?`border-${La[r]}`:null;default:break}if(e.prefix){let i=Wye[r];return i?`${e.prefix}${i}`:null}return null}function EP(e,t){let r=S$(t);return!r||!Tge(r)?!1:e.isMatch?.(r)||e.exact?.includes(r)?!0:e.prefix?vge(e.prefix,r)||r.startsWith(e.prefix):!1}function S$(e){return jd(e)?.utility??e.trim()}function jd(e){let t=nge(e),r=t[t.length-1];if(!r)return null;let i=t.slice(0,-1),n=i.find(a=>Vye.has(a)),s=i.find(a=>qye.has(a));return{raw:e.trim(),utility:r,...n?{breakpoint:n}:{},...s?{state:s}:{},variants:i}}function tge(e,t){let r=jd(e);return r?(t.breakpoint??void 0)===r.breakpoint&&(t.state??void 0)===r.state:!1}function rge(e,t){let r=jd(e)?.utility??e.trim(),i=[t.breakpoint,t.state].filter(n=>!!n);return i.length?`${i.join(":")}:${r}`:r}function nge(e){let t=[],r="",i=0;for(let n of e.trim()){if(n==="["){i+=1,r+=n;continue}if(n==="]"){i=Math.max(0,i-1),r+=n;continue}if(n===":"&&i===0){r&&t.push(r),r="";continue}r+=n}return r&&t.push(r),t}function ige(e){return e.split(/\s+/).map(t=>t.trim()).filter(Boolean)}function sge(e){let t=new Set,r=[];for(let i of e)!i||t.has(i)||(t.add(i),r.push(i));return r}function b$(e){return mP.includes(e)||/^text-\[.+\]$/.test(e)&&!Pge(e.slice(6,-1))}function age(e){return!e.startsWith("text-")||yP.includes(e)?!1:!b$(e)}function oge(e){return e.startsWith("bg-")?!(e.startsWith("bg-gradient-")||e.startsWith("bg-[url")||["bg-fixed","bg-local","bg-scroll","bg-clip-border","bg-clip-padding","bg-clip-content","bg-clip-text","bg-origin-border","bg-origin-padding","bg-origin-content"].includes(e)):!1}function v$(e){return bP.includes(e)||/^border-\[.+\]$/.test(e)||/^border-(?:x|y|t|r|b|l)(?:-\d+|-\[.+\])?$/.test(e)}function $d(e,t){let r=e==="top"||e==="bottom"?"y":e==="right"||e==="left"?"x":"";return new RegExp(`^-?${e}-.+$`).test(t)||new RegExp(`^-?inset-${r}-.+$`).test(t)||/^-?inset-.+$/.test(t)}function lge(e){return lP.includes(e)||/^basis-\[.+\]$/.test(e)}function cge(e){return cP.includes(e)||/^-?order-(?:\d+|\[.+\])$/.test(e)}function uge(e){return uP.includes(e)||/^grid-cols-\[.+\]$/.test(e)}function pge(e){return pP.includes(e)||/^grid-rows-\[.+\]$/.test(e)}function dge(e){return dP.includes(e)||/^(?:col|col-span|col-start|col-end)-.+$/.test(e)}function fge(e){return fP.includes(e)||/^(?:row|row-span|row-start|row-end)-.+$/.test(e)}function hge(e){return oP.includes(e)||/^-?z-(?:\d+|\[.+\])$/.test(e)}function mge(e){return e.startsWith("border-")?!(SP.includes(e)||v$(e)||e.startsWith("border-spacing-")||/^border-(?:x|y|t|r|b|l)(?:-|$)/.test(e)):!1}function yge(e){return xP.includes(e)||/^line-clamp-\[.+\]$/.test(e)}function gge(e){return gP.includes(e)||/^-?indent-\[.+\]$/.test(e)}function xge(e){return vP.includes(e)||/^aspect-\[.+\]$/.test(e)}function Sge(e){return TP.includes(e)||/^shadow-(?:\[.+\]|[a-z][\w-]*)$/.test(e)}function bge(e){return hP.includes(e)}function Pi(e,t,r){let i=t==="t"||t==="b"?"y":"x";return new RegExp(`^-?${e}${t}-.+$`).test(r)||new RegExp(`^-?${e}${i}-.+$`).test(r)||new RegExp(`^-?${e}-.+$`).test(r)}function y$(e){return/^size-.+$/.test(e)}function vge(e,t){return t===e.replace(/-$/,"")}function Tge(e){if(!e)return!1;let t=0;for(let r of e){if(r==="["){t+=1;continue}if(r==="]"){if(t-=1,t<0)return!1;continue}if(t===0&&(r===","||r==='"'||r==="'"||r==="\\"))return!1}return t===0}function Ege(e){return e==="transform"||e==="transform-gpu"||e==="transform-none"||e.startsWith("translate-")||e.startsWith("-translate-")||e.startsWith("scale-")||e.startsWith("-scale-")||e.startsWith("rotate-")||e.startsWith("-rotate-")||e.startsWith("skew-")||e.startsWith("-skew-")}function Pge(e){return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")||e.startsWith("oklch")||e.startsWith("color(")}var Rd=lt(rn(),1);function qn(e,t,r,i){return{code:e,message:t,locatorKind:r,details:i}}function ee(e,t,r,i,n){return{ok:!1,source:e,diagnostic:qn(t,r,i,n)}}function PP(e,t,r,i,n){return{ok:!1,source:e,diagnostic:qn(t,r,i,n)}}var T$=lt(en(),1);var _ge={"tsx-module":["jsx","typescript"],"ts-module":["typescript"],"next-app-entry":["jsx","typescript"]};function Ra(e){let{source:t,profile:r}=e;try{return{ok:!0,ast:T$.parse(t,{sourceType:"module",plugins:_ge[r]})}}catch(i){return{ok:!1,source:t,diagnostic:qn("parse-failed",`AST parse failed: ${i instanceof Error?i.message:String(i)}`)}}}function _P(e,t){return Ra({source:e,profile:E$(t.kind)})}function kP(e,t){return Ra({source:e,profile:E$(t)})}function E$(e){return"next-app-entry"}function IP(e){let{filePath:t,source:r}=e,i=t.toLowerCase().split(".").pop()??"";return i==="tsx"?"tsx-module":i==="ts"?"ts-module":i==="jsx"||i==="js"||i===""&&/<\w[\s\S]*>/.test(r)?"tsx-module":"next-app-entry"}var ms=typeof Rd.default=="function"?Rd.default:Rd.default.default,Ld=new WeakMap,P$=new WeakMap;function Md(e,t){let r=_P(e,t);if(!r.ok)return PP(e,r.diagnostic.code,r.diagnostic.message,t.kind);let i=ot(r.ast,t);return i.ok?{ok:!0,match:{locatorKind:i.match.locatorKind,node:i.match.node,start:i.match.start,end:i.match.end}}:PP(e,i.diagnostic.code,i.diagnostic.message,t.kind,i.diagnostic.details)}function ot(e,t){return t.kind==="jsx-node"?A$(e,t):t.kind==="jsx-attribute"?Cge(e,t):t.kind==="value"?Nge(e,t):t.kind==="expression"?Oge(e,t):t.kind==="directive"?Dge(e,t):t.kind==="export"?$ge(e,t):{ok:!1,diagnostic:qn("unsupported-syntax",`Unsupported locator kind: ${t.kind}`)}}function A$(e,t){return t.strategy==="source-range"?kge(e,t):Ige(e,t)}function kge(e,t){let r=null;if(ms(e,{JSXElement(n){if(!w$(n.node,t.sourceRange))return;let s=er("jsx-node",n);if(s){if(!r){r=s;return}s.end-s.start<r.end-r.start&&(r=s)}}}),!r)return Bt("jsx-node","locator-miss","JSX node not found for source-range locator");let i=r;return t.expectedIdentity&&!Vge(i.path,t.expectedIdentity)?Bt("jsx-node","locator-miss","JSX node failed expected identity validation"):{ok:!0,match:i}}function Ige(e,t){if(t.structuralPath===""){let i=Age(e,t.component);if(i){let n=wge(i);if(n)return n}}let r=null;return ms(e,{JSXElement(i){if(CP(i)!==t.component||wP(i)!==t.structuralPath)return;let s=er("jsx-node",i);s&&(t.expectedRange&&!ln(i.node.loc,t.expectedRange)||(r=s,i.stop()))},JSXFragment(i){if(CP(i)!==t.component||wP(i)!==t.structuralPath)return;let s=er("jsx-node",i);s&&(t.expectedRange&&!ln(i.node.loc,t.expectedRange)||(r=s,i.stop()))}}),r?{ok:!0,match:r}:Bt("jsx-node","locator-miss","JSX node not found for structural-path locator")}function Age(e,t){let r=null;return ms(e,{FunctionDeclaration(i){i.node.id?.name===t&&(r=i,i.stop())},VariableDeclarator(i){if(i.node.id.type==="Identifier"&&i.node.id.name===t){let n=i.get("init");(n.isArrowFunctionExpression()||n.isFunctionExpression())&&(r=n),i.stop()}}}),r}function wge(e){if(e.isArrowFunctionExpression()){let t=e.get("body");if(t.isBlockStatement()){let i=t.get("body").find(n=>n.isReturnStatement());if(i){let n=i.get("argument");if((n.isParenthesizedExpression()?n.get("expression"):n).isJSXFragment())return Bt("jsx-node","unsupported-syntax","JSXFragment is not a supported edit target")}return null}return(t.isParenthesizedExpression()?t.get("expression"):t).isJSXFragment()?Bt("jsx-node","unsupported-syntax","JSXFragment is not a supported edit target"):null}if(e.isFunctionDeclaration()||e.isFunctionExpression()){let t=e.get("body");if(t.isBlockStatement()){let r=t.get("body").find(i=>i.isReturnStatement());if(r){let i=r.get("argument");if((i.isParenthesizedExpression()?i.get("expression"):i).isJSXFragment())return Bt("jsx-node","unsupported-syntax","JSXFragment is not a supported edit target")}}}return null}function Cge(e,t){let r=A$(e,t.element);if(!r.ok)return r;let a=r.match.path.get("openingElement").get("attributes").find(c=>qge(c,t.name));if(!a||!a.isJSXAttribute())return Bt("jsx-attribute","locator-miss",`JSX attribute '${t.name}' not found`);let o=er("jsx-attribute",a);return o?{ok:!0,match:o}:Bt("jsx-attribute","locator-miss",`JSX attribute '${t.name}' has no source range`)}function Nge(e,t){let r=jge(e,t);if(!r.ok)return r;let i=Lge(r.match.path,t.path??[]);return i.ok?t.expectedRange&&!ln(i.match.path.node.loc,t.expectedRange)?Bt("value","locator-miss","Resolved value does not match expected range"):{ok:!0,match:i.match}:i}function Oge(e,t){let r=null;return ms(e,{Identifier(i){if(!Bge(i))return;let n=k$(i);if(!n||!I$(n,t))return;let s=er("expression",i);s&&(t.expectedRange&&!ln(i.node.loc,t.expectedRange)||(r=s,i.stop()))},MemberExpression(i){let n=k$(i);if(!n||!I$(n,t))return;let s=er("expression",i);s&&(t.expectedRange&&!ln(i.node.loc,t.expectedRange)||(r=s,i.stop()))}}),r?{ok:!0,match:r}:Bt("expression","locator-miss","Expression not found")}function Dge(e,t){let r=null;return ms(e,{Program(i){let s=i.get("directives").find(o=>o.node.value.value===t.value);if(!s||t.expectedRange&&!ln(s.node.loc,t.expectedRange))return;let a=er("directive",s);a&&(r=a,i.stop())}}),r?{ok:!0,match:r}:Bt("directive","locator-miss",`Directive '${t.value}' not found`)}function $ge(e,t){let r=null;return ms(e,{ExportNamedDeclaration(i){if(t.exportKind==="generate-metadata"){let c=i.get("declaration");if(c.isFunctionDeclaration()&&c.node.id?.name==="generateMetadata"){let h=er("export",c);if(!h||t.expectedRange&&!ln(c.node.loc,t.expectedRange))return;r=h,i.stop();return}if(!c.isVariableDeclaration())return;let u=NP(c,"generateMetadata");if(!u||!u.isVariableDeclarator())return;let p=u.get("init");if(!p.node)return;let d=er("export",p);if(!d||t.expectedRange&&!ln(p.node.loc,t.expectedRange))return;r=d,i.stop();return}let n=i.get("declaration");if(!n.isVariableDeclaration())return;let s=NP(n,t.exportKind==="named"?t.name:"metadata");if(!s||!s.isVariableDeclarator())return;let a=s.get("init");if(!a.node||t.expectedRange&&!ln(a.node.loc,t.expectedRange))return;let o=er("export",a);o&&(r=o,i.stop())},ExportDefaultDeclaration(i){if(t.exportKind!=="default")return;let n=i.get("declaration"),s=er("export",n);s&&(t.expectedRange&&!ln(n.node.loc,t.expectedRange)||(r=s,i.stop()))}}),r?{ok:!0,match:r}:Bt("export","export-not-found",`Export '${Kge(t)}' not found`)}function jge(e,t){let r=null;return ms(e,{Expression(i){if(r||t.root.kind!=="expression"||!w$(i.node,t.root.sourceRange))return;let n=er("value",i);n&&(r=n,i.stop())},VariableDeclarator(i){if(r)return;if(t.root.kind==="binding"){if(i.node.id.type!=="Identifier"||i.node.id.name!==t.root.name)return;let y=i.get("init");if(!y.node)return;let T=er("value",y);if(!T)return;r=T,i.stop();return}if(t.root.kind!=="hook-state")return;let n=t.root,s=i.get("id"),a=i.get("init");if(!s.isArrayPattern()||!a.isCallExpression()||s.node.elements.findIndex(y=>y?.type==="Identifier"&&y.name===n.name)!==0)return;let c=a.node.callee;if((c.type==="Identifier"?c.name:c.type==="MemberExpression"&&c.property.type==="Identifier"?c.property.name:null)!==n.hook)return;let p=n.hook==="useReducer"?1:0,d=i.get(`init.arguments.${p}`);if(!d||Array.isArray(d)||!d.node)return;let h=er("value",d);h&&(r=h,i.stop())},ExportNamedDeclaration(i){if(r||t.root.kind!=="named-export")return;let n=i.get("declaration");if(!n.isVariableDeclaration())return;let s=NP(n,t.root.name);if(!s||!s.isVariableDeclarator())return;let a=s.get("init");if(!a.node)return;let o=er("value",a);o&&(r=o,i.stop())},ExportDefaultDeclaration(i){if(r||t.root.kind!=="default-export")return;let n=i.get("declaration"),s=er("value",n);s&&(r=s,i.stop())}}),r?{ok:!0,match:r}:Bt("value",t.root.kind==="named-export"||t.root.kind==="default-export"?"export-not-found":t.root.kind==="expression"?"locator-miss":"binding-not-found","Value root was not found")}function Lge(e,t){let r=AP(e);for(let n of t){if(r=AP(r),n.kind==="property"){if(!r.isObjectExpression())return Bt("value","unsupported-syntax","Property path requires object expression");let o=r.get("properties");if(o.some(u=>!u.isObjectProperty()))return Bt("value","unsupported-syntax","Spread properties are not supported");let c=o.find(u=>Wge(u,n.name));if(!c||!c.isObjectProperty())return Bt("value","property-not-found",`Property '${n.name}' not found`);r=c.get("value");continue}if(!r.isArrayExpression())return Bt("value","unsupported-syntax","Array index path requires array expression");let s=r.get("elements");if(s.some(o=>o.node?.type==="SpreadElement"))return Bt("value","unsupported-syntax","Spread array elements are not supported");let a=s[n.index];if(!a?.node)return Bt("value","array-index-out-of-range",`Array index ${n.index} is out of range`);r=a}r=AP(r);let i=er("value",r);return i?{ok:!0,match:i}:Bt("value","locator-miss","Resolved value has no source range")}function AP(e){let t=e;for(;t.isTSAsExpression()||t.isTSSatisfiesExpression()||t.isTSNonNullExpression();)t=t.get("expression");return t}function er(e,t){let r=t.node;return r.start==null||r.end==null?null:{locatorKind:e,node:r,start:r.start,end:r.end,path:t}}function w$(e,t){return ln(e.loc,t)}function ln(e,t){return e?e.start.line===t.startLine&&e.start.column===t.startColumn&&e.end.line===t.endLine&&e.end.column===t.endColumn:!1}function wP(e){let t=[],r=e,i=e.node;for(;r;){if(r.isJSXElement()){let n=C$(r.node.openingElement);n&&(/^[A-Z]/.test(n)?t.unshift(`component:${n}#${_$(r,n)}`):t.unshift(`${n}#${_$(r,n)}`))}else r.isJSXFragment()&&r.node===i&&t.unshift("fragment");if(!r.parentPath||Fge(r.parentPath))break;r=r.parentPath}return t.join("/")}function _$(e,t){let r=Rge(e);if(!r)return 0;let i=Ld.get(r.node)?.get(t)?.get(e.node);if(i!==void 0)return i;let n=0,s=Ld.get(r.node)?.get(t);if(!s){let a=Ld.get(r.node);a||(a=new Map,Ld.set(r.node,a)),s=new WeakMap,a.set(t,s)}for(let a of OP(r))if(C$(a.node.openingElement)===t){if(s.set(a.node,n),a.node===e.node)return n;n++}return s.get(e.node)??0}function Rge(e){let t=e.parentPath,r=null;for(;t;){if(t.isJSXFragment()){r=t,t=t.parentPath;continue}if(t.isJSXElement())return t;t=t.parentPath}return r}function OP(e){let t=P$.get(e.node);if(t)return t;let r=[],i=e.get("children");for(let n of i)if(!Array.isArray(n)){if(n.isJSXElement()){r.push(n);continue}if(n.isJSXFragment()){r.push(...OP(n));continue}n.isJSXExpressionContainer()&&r.push(...Ma(n.get("expression")))}return P$.set(e.node,r),r}function Ma(e){return e.isJSXElement()?[e]:e.isJSXFragment()?OP(e):e.isParenthesizedExpression()?Ma(e.get("expression")):e.isLogicalExpression()&&e.node.operator==="&&"?Ma(e.get("right")):e.isConditionalExpression()?[...Ma(e.get("consequent")),...Ma(e.get("alternate"))]:e.isArrayExpression()?e.get("elements").flatMap(t=>Array.isArray(t)||!t.node||!t.isExpression()?[]:Ma(t)):[]}function C$(e){return e.name.type==="JSXIdentifier"?e.name.name:e.name.type==="JSXMemberExpression"?Mge(e.name):null}function Mge(e){let t=[],r=e;for(;r.type==="JSXMemberExpression";)t.unshift(r.property.name),r=r.object;return t.unshift(r.name),t.join(".")}function CP(e){let t=e;for(;t;){if(t.isFunctionDeclaration())return t.node.id?.name??null;if((t.isArrowFunctionExpression()||t.isFunctionExpression())&&t.parentPath?.isVariableDeclarator()){let r=t.parentPath.node.id;return r.type==="Identifier"?r.name:null}t=t.parentPath}return null}function Fge(e){return!!(e.isFunctionDeclaration()||e.isFunctionExpression()||e.isArrowFunctionExpression())}function Bge(e){return!(!e.isExpression()||e.parentPath?.isMemberExpression({property:e.node}))}function k$(e){if(e.isIdentifier())return{base:e.node.name,path:[]};if(!e.isMemberExpression())return null;let t=[],r=e.node;for(;r.type==="MemberExpression";){if(r.computed)if(r.property.type==="NumericLiteral")t.unshift({kind:"index",index:r.property.value});else if(r.property.type==="StringLiteral")t.unshift({kind:"property",name:r.property.value});else return null;else if(r.property.type==="Identifier")t.unshift({kind:"property",name:r.property.name});else return null;if(r.object.type==="Identifier")return{base:r.object.name,path:t};if(r.object.type!=="MemberExpression")return null;r=r.object}return null}function I$(e,t){return e.base===t.base&&zge(e.path,t.path??[])}function zge(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){let i=e[r],n=t[r];if(i.kind!==n.kind)return!1;if(i.kind==="property"){if(n.kind!=="property"||i.name!==n.name)return!1;continue}if(n.kind!=="index"||i.index!==n.index)return!1}return!0}function Uge(e){return e.key.type==="Identifier"?e.key.name:e.key.type==="StringLiteral"?e.key.value:null}function Kge(e){return e.exportKind==="named"?e.name:e.exportKind}function Bt(e,t,r,i){return{ok:!1,diagnostic:qn(t,r,e,i)}}function Vge(e,t){return CP(e)!==t.component?!1:wP(e)===t.structuralPath}function qge(e,t){return!e.isJSXAttribute()||e.node.name.type!=="JSXIdentifier"?!1:e.node.name.name===t}function NP(e,t){return e.get("declarations").find(r=>!r.isVariableDeclarator()||r.node.id.type!=="Identifier"?!1:r.node.id.name===t)}function Wge(e,t){return e.isObjectProperty()?Uge(e.node)===t:!1}import{createHash as Jge}from"node:crypto";var Ll=class{constructor(t){this.original=new Map,this.files=new Map,this.versions=new Map;for(let r of t)this.original.set(r.path,r.content),this.files.set(r.path,r.content),this.versions.set(r.path,r.version??0)}async readFile(t){let r=this.files.get(t);if(r===void 0)throw new Error(`Snapshot file not found: ${t}`);return r}async writeFile(t,r){this.files.set(t,r)}async exists(t){return this.files.has(t)}getVersion(t){return this.versions.get(t)??0}bumpVersion(t){let r=this.getVersion(t)+1;return this.versions.set(t,r),r}getChangedFiles(){let t=new Set([...this.original.keys(),...this.files.keys()]),r=[];for(let i of[...t].sort()){let n=this.original.get(i),s=this.files.get(i);n!==s&&r.push({path:i,before:n,after:s})}return r}};function Fa(e){return`sha256:${Jge("sha256").update(e).digest("hex")}`}var DP="site-edit-classname-source@1";function jP(e){let t=e.route.graph.elements.get(e.key);if(!t)return{key:e.key,routeId:e.route.routeId,filePath:"",componentName:"",sourceKind:"missing",attrRaw:null,valueRaw:null,attrRange:null,valueRange:null,openingElementRange:{start:0,end:0},version:{documentVersion:e.route.graph.version,contentHash:Fa(e.route.source),parserVersion:DP},diagnostics:[{code:"source-locator-warning",message:`Key not found: ${e.key}`}]};let r=Zge(e.route.source,t);if(!r)return{key:e.key,routeId:e.route.routeId,filePath:t.sourceFile,componentName:t.componentName,sourceKind:"missing",attrRaw:null,valueRaw:null,attrRange:null,valueRange:null,openingElementRange:{start:0,end:0},version:{documentVersion:e.route.graph.version,contentHash:Fa(e.route.source),parserVersion:DP},diagnostics:[{code:"source-locator-warning",message:`Unable to locate JSX element for key ${t.identity.key}`}]};let i=r.openingElement,n=i.attributes.find(c=>c.type==="JSXAttribute"&&c.name.type==="JSXIdentifier"&&c.name.name==="className"),s={key:e.key,routeId:e.route.routeId,filePath:t.sourceFile,componentName:t.componentName,openingElementRange:$P(i),version:{documentVersion:e.route.graph.version,contentHash:Fa(e.route.source),parserVersion:DP}};if(!n)return{...s,sourceKind:"missing",attrRaw:null,valueRaw:null,attrRange:null,valueRange:null,diagnostics:[{code:"missing-class-name",message:"No className attribute is present on this element."}]};let a=n.value,o=a?.type==="StringLiteral"?"stringLiteral":"expression";return{...s,sourceKind:o,attrRaw:N$(e.route.source,n),valueRaw:a?N$(e.route.source,a):null,attrRange:$P(n),valueRange:a?$P(a):null,diagnostics:[]}}async function O$(e){let{request:t,current:r,source:i}=e;if(t.expectedVersion.documentVersion!==r.version.documentVersion)return ys("document_version_stale",r,{code:"version-conflict",message:"The document version changed before className save."});if(t.expectedVersion.contentHash!==r.version.contentHash)return ys("file_hash_mismatch",r,{code:"version-conflict",message:"The source file changed before className save."});if(!D$(t.openingElementRange,r.openingElementRange))return ys("range_mismatch",r,{code:"version-conflict",message:"The target opening element range no longer matches."});if(!Hge(t.oldAttrRange,r.attrRange))return ys("range_mismatch",r,{code:"version-conflict",message:"The className attribute range no longer matches."});if(t.oldAttrRaw!==r.attrRaw)return ys("old_attr_mismatch",r,{code:"version-conflict",message:"The className attribute changed before save."});if(t.newAttrRaw!==null&&!Yge(t.newAttrRaw))return ys("invalid_new_attr",r,{code:"invalid-new-attr",message:"newAttrRaw must be a valid JSX className attribute."});let n=Xge({source:i,oldAttrRange:t.oldAttrRange,openingElementRange:t.openingElementRange,newAttrRaw:t.newAttrRaw});try{await e.writeSource(n)}catch{return ys("write_failed",r,{code:"write-failed",message:"Failed to write className source."})}return{ok:!0,data:r}}function Xge(e){let{source:t,oldAttrRange:r,openingElementRange:i,newAttrRaw:n}=e;if(r){let o=r.start>0&&/\s/.test(t[r.start-1]??"")?r.start-1:r.start,c=n?`${o<r.start?" ":""}${n}`:"";return t.slice(0,o)+c+t.slice(r.end)}if(!n)return t;let s=i.end,a=t.slice(Math.max(0,s-2),s)==="/>"?s-2:s-1;return t.slice(0,a)+` ${n}`+t.slice(a)}function Zge(e,t){let r=Ra({source:e,profile:IP({filePath:t.sourceFile,source:e})});if(!r.ok)return null;let i=ot(r.ast,{kind:"jsx-node",strategy:"structural-path",file:t.identity.file,component:t.identity.component,structuralPath:t.identity.structuralPath,expectedRange:Gge(t.sourceRange)});return!i.ok||i.match.node.type!=="JSXElement"?null:i.match.node}function Yge(e){let t=Ra({source:`const __v = <div ${e} />;`,profile:"tsx-module"});if(!t.ok)return!1;let r=t.ast.program.body[0],n=(r?.type==="VariableDeclaration"?r.declarations[0]:null)?.init;if(n?.type!=="JSXElement")return!1;let s=n.openingElement.attributes;return s.length===1&&s[0]?.type==="JSXAttribute"&&s[0].name.type==="JSXIdentifier"&&s[0].name.name==="className"}function ys(e,t,r){return{ok:!1,error:{code:e,message:r.message},current:t,diagnostics:[r]}}function N$(e,t){return t.start==null||t.end==null?"":e.slice(t.start,t.end)}function $P(e){if(e.start==null||e.end==null)throw new Error("AST node does not include offsets.");return{start:e.start,end:e.end,startLine:e.loc?.start.line,startColumn:e.loc?.start.column,endLine:e.loc?.end.line,endColumn:e.loc?.end.column}}function Gge(e){return{startLine:e.startLine,startColumn:e.startColumn,endLine:e.endLine,endColumn:e.endColumn}}function Hge(e,t){return e===null||t===null?e===t:D$(e,t)}function D$(e,t){return e.start===t.start&&e.end===t.end}var Fd=lt(rE(),1);var Qge=typeof Fd.default=="function"?Fd.default:Fd.default.default;function exe(e){let t=e.split(`
|
|
119
|
+
`),r=[],i=!1;for(let a of t){let o=a.match(/^(\s+)/);if(o){let c=o[1];c.includes(" ")?i=!0:c.length>0&&r.push(c.length)}}if(i&&t.every(o=>{let c=o.match(/^(\s+)/);return!c||c[1].includes(" ")}))return"tab";if(r.length===0)return"2";function n(a,o){return o===0?a:n(o,a%o)}let s=r[0];for(let a=1;a<r.length;a++)s=n(s,r[a]);return s>=4?"4":"2"}function txe(e,t){let r=e.match(/^(\s+)(.*)/s);if(!r)return e;let i=r[1],n=r[2];if(i.length===0)return e;let s=0;if(i.includes(" "))s=i.split(" ").length-1;else{let a=i.length;s=Math.max(1,Math.round(a/2))}return s=Math.min(Math.max(s,0),20),t==="tab"?" ".repeat(s)+n:t==="4"?" ".repeat(s)+n:" ".repeat(s)+n}function rxe(e,t){return e.split(`
|
|
120
|
+
`).map(i=>txe(i,t)).join(`
|
|
121
|
+
`)}function Bd(e){let{ast:t,source:r}=e;try{let i=exe(r),s=Qge(t,{comments:!0,jsescOption:{minimal:!0,quotes:"single"}},r).code;return i!=="2"&&(s=rxe(s,i)),{ok:!0,source:s}}catch(i){return ee(r,"printer-failed",`AST print failed: ${i instanceof Error?i.message:String(i)}`)}}var j$=lt(en(),1),Et=lt(Ee(),1);function $$(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t=(t<<5)-t+i,t|=0}return`0x${Math.abs(t).toString(16)}`}function Rl(e,t,r){return{ok:!0,source:t,operation:{type:r.kind,nodeId:r.target,kind:r.kind,target:r.target,beforeSourceHash:$$(e),afterSourceHash:$$(t),inverse:r.inverse}}}function Ae(e,t,r){let i=Bd({ast:e,source:t});return i.ok?Rl(t,i.source,r):i}function Ge(e,t){let r=kP(e,t);return r.ok?{ok:!0,ast:r.ast}:{ok:!1,result:{ok:!1,source:e,diagnostic:r.diagnostic}}}function zd(e,t){return Bd({ast:e,source:t})}function Ud(e,t,r){let i=ot(e,t);return i.ok?{ok:!0,match:i.match}:{ok:!1,result:{ok:!1,source:r,diagnostic:i.diagnostic}}}function gs(e,t,r){let i=Ud(e,t,r);return i.ok?i.match.path.isJSXElement()?i:{ok:!1,result:ee(r,"unsupported-syntax","JSX locator must resolve to JSXElement","jsx-node")}:i}function Kd(e,t,r){let i=ot(e,t);return i.ok?i.match.path.isJSXAttribute()?{ok:!0,match:i.match}:{ok:!1,result:ee(r,"unsupported-syntax","JSX locator must resolve to JSXAttribute","jsx-attribute")}:{ok:!1,result:{ok:!1,source:r,diagnostic:i.diagnostic}}}function L$(e,t){let r=ot(e,t);return r.ok?{ok:!0,match:r.match}:r.diagnostic.code==="locator-miss"?{ok:!0,match:null}:{ok:!1,diagnostic:r.diagnostic}}function Ar(e){return typeof e=="string"?(0,Et.stringLiteral)(e):typeof e=="number"?(0,Et.numericLiteral)(e):typeof e=="boolean"?(0,Et.booleanLiteral)(e):e===null?(0,Et.nullLiteral)():Array.isArray(e)?(0,Et.arrayExpression)(e.map(t=>Ar(t))):(0,Et.objectExpression)(Object.entries(e).map(([t,r])=>(0,Et.objectProperty)((0,Et.identifier)(t),Ar(r))))}function nxe(e){return typeof e=="string"?(0,Et.stringLiteral)(e):(0,Et.jsxExpressionContainer)(Ar(e))}function _i(e,t){return(0,Et.jsxAttribute)((0,Et.jsxIdentifier)(e),nxe(t))}function Vd(e,t){try{let i=j$.parse(`const __VD_NODE__ = (${t});`,{sourceType:"module",plugins:["jsx","typescript"]}).program.body[0];return i?.type!=="VariableDeclaration"||i.declarations[0]?.type!=="VariableDeclarator"||!i.declarations[0].init||i.declarations[0].init.type!=="JSXElement"&&i.declarations[0].init.type!=="JSXFragment"?{ok:!1,result:ee(e,"unsupported-syntax","Provided JSX source does not resolve to a JSX node","jsx-node")}:{ok:!0,node:i.declarations[0].init}}catch(r){return{ok:!1,result:ee(e,"parse-failed",`AST parse failed: ${r instanceof Error?r.message:String(r)}`,"jsx-node")}}}function qd(e){return/^[$A-Z_][0-9A-Z_$]*$/i.test(e)?(0,Et.identifier)(e):(0,Et.stringLiteral)(e)}function Wd(e){let{source:t,locator:r,segmentIndex:i,newText:n}=e,s=Ge(t,"jsx-node");if(!s.ok)return s.result;let a=ot(s.ast,r);if(!a.ok)return{ok:!1,source:t,diagnostic:a.diagnostic};let c=ixe(a.match.path)[i];if(!c)return ee(t,"locator-miss",`Text segment ${i} not found`,"jsx-node");switch(c.kind){case"jsx-text":c.path.node.value=n;break;case"string-literal":c.path.node.value=n;break;case"template-literal":{let u=c.quasiIndex;c.path.node.quasis[u].value.raw=n,c.path.node.quasis[u].value.cooked=n;break}}return Ae(s.ast,t,{kind:"update-text",target:"jsx-node",inverse:"restore-text"})}function ixe(e){let t=[];return e.traverse({JSXText(r){r.node.value.trim().length>0&&t.push({kind:"jsx-text",path:r})},JSXExpressionContainer(r){let i=sxe(r.get("expression"));i.length>0&&t.push(...i)}}),t}function sxe(e){if(e.isStringLiteral())return[{kind:"string-literal",path:e}];if(e.isTemplateLiteral()){let t=[],r=e.node.quasis;for(let i=0;i<r.length;i++)r[i].value.raw.trim().length>0&&t.push({kind:"template-literal",path:e,quasiIndex:i});if(t.length>0)return t}return e.isCallExpression()?[]:[]}var Jd=lt(Ee(),1);function Xd(e){let{source:t,locator:r}=e,i=Ge(t,"jsx-node");if(!i.ok)return i.result;let n=ot(i.ast,r);return n.ok?(axe(n.match.path),Ae(i.ast,t,{kind:"remove-node",target:"jsx-node",inverse:"insert-child"})):{ok:!1,source:t,diagnostic:n.diagnostic}}function axe(e){if(e.parentPath?.isConditionalExpression()&&(e.key==="consequent"||e.key==="alternate")){e.replaceWith((0,Jd.nullLiteral)());return}if(e.parentPath?.isArrowFunctionExpression()&&e.key==="body"){e.replaceWith((0,Jd.nullLiteral)());return}if(e.parentPath?.isReturnStatement()&&e.key==="argument"){e.replaceWith((0,Jd.nullLiteral)());return}e.remove()}var R$=lt(Ee(),1);function Zd(e){let{source:t,locator:r,node:i,placement:n,anchorLocator:s}=e,a=Ge(t,"jsx-node");if(!a.ok)return a.result;let o=ot(a.ast,r);if(!o.ok)return{ok:!1,source:t,diagnostic:o.diagnostic};let c=o.match.path.node;if(!o.match.path.isJSXElement()&&!o.match.path.isJSXFragment())return ee(t,"unsupported-syntax","insert-child target must be a JSXElement or JSXFragment","jsx-node");if(o.match.path.isJSXElement()&&(!c.closingElement||c.openingElement.selfClosing))return ee(t,"self-closing-element","Cannot insert child into self-closing element","jsx-node");let u=Vd(t,i.jsx);if(!u.ok)return u.result;let p=(0,R$.cloneNode)(u.node,!0),d=c.children;if(n==="append")return d.push(p),Ae(a.ast,t,{kind:"insert-child",target:"jsx-node",inverse:"remove-child"});if(n==="prepend")return d.unshift(p),Ae(a.ast,t,{kind:"insert-child",target:"jsx-node",inverse:"remove-child"});if(!s)return ee(t,"locator-miss",`Placement '${n}' requires anchorLocator`,"jsx-node");let h=ot(a.ast,s);if(!h.ok)return{ok:!1,source:t,diagnostic:h.diagnostic};if(h.match.path.parentPath!==o.match.path||h.match.path.listKey!=="children")return ee(t,"invalid-parent-child-relation","Anchor node is not a direct child of the target parent","jsx-node");let y=d.findIndex(T=>T===h.match.path.node);return y===-1?ee(t,"locator-miss","Anchor node no longer exists in target parent","jsx-node"):(d.splice(n==="before"?y:y+1,0,p),Ae(a.ast,t,{kind:"insert-child",target:"jsx-node",inverse:"remove-child"}))}var Ba=lt(Ee(),1);function Yd(e){let{source:t,locator:r,targetParentLocator:i,placement:n,anchorLocator:s}=e,a=Ge(t,"jsx-node");if(!a.ok)return a.result;let o=ot(a.ast,r);if(!o.ok)return{ok:!1,source:t,diagnostic:o.diagnostic};let c=ot(a.ast,i);if(!c.ok)return{ok:!1,source:t,diagnostic:c.diagnostic};if(!c.match.path.isJSXElement())return ee(t,"unsupported-syntax","move-node target parent must be a JSXElement","jsx-node");let u=c.match.path.node;if(!u.closingElement||u.openingElement.selfClosing)return ee(t,"self-closing-element","Cannot move child into self-closing element","jsx-node");let p=null;if(s){let T=ot(a.ast,s);if(!T.ok)return{ok:!1,source:t,diagnostic:T.diagnostic};if(T.match.path.parentPath!==c.match.path||T.match.path.listKey!=="children")return ee(t,"invalid-parent-child-relation","Anchor node is not a direct child of the target parent","jsx-node");p=T.match.path.node}else if(n==="before"||n==="after")return ee(t,"locator-miss",`Placement '${n}' requires anchorLocator`,"jsx-node");let d=(0,Ba.cloneNode)(o.match.path.node,!0);oxe(o.match.path);let h=u.children;if(n==="append")return h.push(d),zd(a.ast,t);if(n==="prepend")return h.unshift(d),zd(a.ast,t);let y=h.findIndex(T=>T===p);return y===-1?ee(t,"locator-miss","Anchor node no longer exists in target parent","jsx-node"):(h.splice(n==="before"?y:y+1,0,d),zd(a.ast,t))}function oxe(e){if(e.parentPath?.isConditionalExpression()&&(e.key==="consequent"||e.key==="alternate")){e.replaceWith((0,Ba.nullLiteral)());return}if(e.parentPath?.isArrowFunctionExpression()&&e.key==="body"){e.replaceWith((0,Ba.nullLiteral)());return}if(e.parentPath?.isReturnStatement()&&e.key==="argument"){e.replaceWith((0,Ba.nullLiteral)());return}e.remove()}var ir=lt(Ee(),1);function Gd(e){let{source:t,moduleSpecifier:r,imports:i}=e,n=i.findIndex(d=>!cxe(d));if(n!==-1){let d=i[n],h=d&&typeof d=="object"&&"kind"in d?d.kind:void 0;return ee(t,"unsupported-syntax",`Unsupported import spec kind: ${String(h)}`)}let s=Ge(t);if(!s.ok)return s.result;let{ast:a}=s,o=a.program,c=o.body.find(d=>d.type==="ImportDeclaration"&&d.source.value===r);if(c)return lxe(c,i).changed?Ae(a,t,{kind:"add-import",target:"import",inverse:"remove-import"}):Rl(t,t,{kind:"add-import",target:"import",inverse:"remove-import"});let u=(0,ir.importDeclaration)(F$(i),(0,ir.stringLiteral)(r)),p=[...o.body].reverse().findIndex(d=>d.type==="ImportDeclaration");if(p===-1)o.body.unshift(u);else{let d=o.body.length-p;o.body.splice(d,0,u)}return Ae(a,t,{kind:"add-import",target:"import",inverse:"remove-import"})}function lxe(e,t){let r=!1,i=new Set(e.specifiers.map(n=>M$(n)));for(let n of F$(t)){let s=M$(n);i.has(s)||(e.specifiers.push(n),i.add(s),r=!0)}return{changed:r}}function F$(e){return e.map(t=>{switch(t.kind){case"named":return(0,ir.importSpecifier)(t.local?(0,ir.identifier)(t.local):(0,ir.identifier)(t.imported),(0,ir.identifier)(t.imported));case"default":return(0,ir.importDefaultSpecifier)((0,ir.identifier)(t.local));case"namespace":return(0,ir.importNamespaceSpecifier)((0,ir.identifier)(t.local));default:return t}})}function cxe(e){if(!e||typeof e!="object"||!("kind"in e))return!1;let t=e.kind;return t==="named"?typeof e.imported=="string"&&(e.local===void 0||typeof e.local=="string"):t==="default"||t==="namespace"?typeof e.local=="string":!1}function M$(e){if(e.type==="ImportDefaultSpecifier")return`default:${e.local.name}`;if(e.type==="ImportNamespaceSpecifier")return`namespace:${e.local.name}`;let t=e.imported.type==="Identifier"?e.imported.name:e.imported.value,r=e.local.name;return`named:${t}:${r}`}function Hd(e){let{source:t,moduleSpecifier:r,imports:i}=e,n=i.findIndex(p=>!pxe(p));if(n!==-1){let p=i[n],d=p&&typeof p=="object"&&"kind"in p?p.kind:void 0;return ee(t,"unsupported-syntax",`Unsupported remove import spec kind: ${String(d)}`)}let s=Ge(t);if(!s.ok)return s.result;let{ast:a}=s,o=a.program,c=o.body.findIndex(p=>p.type==="ImportDeclaration"&&p.source.value===r);if(c===-1)return Rl(t,t,{kind:"remove-import",target:"import",inverse:"add-import"});let u=o.body[c];return i.length===0?(o.body.splice(c,1),Ae(a,t,{kind:"remove-import",target:"import",inverse:"add-import"})):(u.specifiers=u.specifiers.filter(p=>!i.some(d=>uxe(p,d))),u.specifiers.length===0&&o.body.splice(c,1),Ae(a,t,{kind:"remove-import",target:"import",inverse:"add-import"}))}function uxe(e,t){return t.kind==="default"?e.type==="ImportDefaultSpecifier":t.kind==="namespace"?e.type==="ImportNamespaceSpecifier":e.type!=="ImportSpecifier"?!1:(e.imported.type==="Identifier"?e.imported.name:e.imported.value)===t.imported}function pxe(e){if(!e||typeof e!="object"||!("kind"in e))return!1;let t=e.kind;return t==="named"?typeof e.imported=="string":t==="default"||t==="namespace"}var B$=lt(Ee(),1);function za(e){let{source:t,locator:r,next:i}=e,n=Ua(t,r);return n.ok?(n.path.replaceWith(Ar(i)),Ae(n.ast,t,{kind:"update-value",target:"value",inverse:"restore-value"})):n.result}function Qd(e){let{source:t,locator:r,index:i,value:n}=e,s=Ua(t,r);return s.ok?s.path.isArrayExpression()?s.path.node.elements.some(a=>a?.type==="SpreadElement")?ee(t,"unsupported-syntax","Spread array elements are not supported","value"):i<0||i>s.path.node.elements.length?ee(t,"array-index-out-of-range",`Array index ${i} is out of range`,"value"):(s.path.node.elements.splice(i,0,Ar(n)),Ae(s.ast,t,{kind:"insert-array-element",target:"value",inverse:"remove-array-element"})):ee(t,"unsupported-syntax","Array operations require array expression target","value"):s.result}function ef(e){let{source:t,locator:r,index:i}=e,n=Ua(t,r);return n.ok?n.path.isArrayExpression()?n.path.node.elements.some(s=>s?.type==="SpreadElement")?ee(t,"unsupported-syntax","Spread array elements are not supported","value"):i<0||i>=n.path.node.elements.length?ee(t,"array-index-out-of-range",`Array index ${i} is out of range`,"value"):(n.path.node.elements.splice(i,1),Ae(n.ast,t,{kind:"remove-array-element",target:"value",inverse:"insert-array-element"})):ee(t,"unsupported-syntax","Array operations require array expression target","value"):n.result}function tf(e){let{source:t,locator:r,fromIndex:i,toIndex:n}=e,s=Ua(t,r);if(!s.ok)return s.result;if(!s.path.isArrayExpression())return ee(t,"unsupported-syntax","Array operations require array expression target","value");if(s.path.node.elements.some(c=>c?.type==="SpreadElement"))return ee(t,"unsupported-syntax","Spread array elements are not supported","value");if(i<0||i>=s.path.node.elements.length||n<0||n>s.path.node.elements.length)return ee(t,"array-index-out-of-range","Array move indices are out of range","value");let[a]=s.path.node.elements.splice(i,1),o=Math.min(n,s.path.node.elements.length);return s.path.node.elements.splice(o,0,a),Ae(s.ast,t,{kind:"move-array-element",target:"value",inverse:"move-array-element-back"})}function rf(e){let{source:t,locator:r,property:i}=e,n=Ua(t,r);return n.ok?n.path.isObjectExpression()?n.path.node.properties.some(s=>s.type!=="ObjectProperty")?ee(t,"unsupported-syntax","Spread properties are not supported","value"):(n.path.node.properties.push((0,B$.objectProperty)(qd(i.key),Ar(i.value))),Ae(n.ast,t,{kind:"insert-object-property",target:"value",inverse:"remove-object-property"})):ee(t,"unsupported-syntax","Object operations require object expression target","value"):n.result}function nf(e){let{source:t,locator:r,key:i}=e,n=Ua(t,r);if(!n.ok)return n.result;if(!n.path.isObjectExpression())return ee(t,"unsupported-syntax","Object operations require object expression target","value");if(n.path.node.properties.some(a=>a.type!=="ObjectProperty"))return ee(t,"unsupported-syntax","Spread properties are not supported","value");let s=n.path.node.properties.filter(a=>a.type!=="ObjectProperty"||(a.key.type==="Identifier"?a.key.name:a.key.type==="StringLiteral"?a.key.value:null)!==i);return s.length===n.path.node.properties.length?ee(t,"property-not-found",`Property '${i}' not found`,"value"):(n.path.node.properties=s,Ae(n.ast,t,{kind:"remove-object-property",target:"value",inverse:"insert-object-property"}))}function Ua(e,t){let r=Ge(e,"value");if(!r.ok)return{ok:!1,result:r.result};let i=ot(r.ast,t);return i.ok?{ok:!0,ast:r.ast,path:i.match.path}:{ok:!1,result:{ok:!1,source:e,diagnostic:i.diagnostic}}}var z$=lt(en(),1);function sf(e){let{source:t,locator:r,nextExpression:i,branchSelector:n}=e,s=Ge(t,"jsx-node");if(!s.ok)return s.result;let a=Ud(s.ast,r,t);if(!a.ok)return a.result;let o=U$(a.match.path,t,n);if(!o.ok)return o.result;let c=fxe(t,i);return c.ok?(o.kind==="ternary"?o.path.node.test=c.expression:o.path.node.left=c.expression,Ae(s.ast,t,{kind:"replace-conditional-expression",target:"jsx-node",inverse:"restore-conditional-expression"})):c.result}function af(e){let{source:t,locator:r,branch:i,content:n,branchSelector:s}=e,a=Ge(t,"jsx-node");if(!a.ok)return a.result;let o=Ud(a.ast,r,t);if(!o.ok)return o.result;let c=U$(o.match.path,t,s);if(!c.ok)return c.result;let u=Vd(t,n.jsx);return u.ok?c.kind==="ternary"?(i==="then"?c.path.node.consequent=u.node:c.path.node.alternate=u.node,Ae(a.ast,t,{kind:"set-conditional-branch-content",target:"jsx-node",inverse:"restore-conditional-branch-content"})):c.kind==="logical-and"?i==="else"?ee(t,"unsupported-syntax","Logical && branches do not support else content","jsx-node"):(c.path.node.right=u.node,Ae(a.ast,t,{kind:"set-conditional-branch-content",target:"jsx-node",inverse:"restore-conditional-branch-content"})):c.kind==="logical-or"?i==="then"?ee(t,"unsupported-syntax","Logical || does not support then branch content","jsx-node"):(c.path.node.right=u.node,Ae(a.ast,t,{kind:"set-conditional-branch-content",target:"jsx-node",inverse:"restore-conditional-branch-content"})):ee(t,"unsupported-syntax","Unknown conditional target kind","jsx-node"):u.result}function dxe(e,t){let r=e;for(;r;){let i=r.parentPath;if(!i)break;if(i.isConditionalExpression()&&(r.key==="consequent"||r.key==="alternate"))return{ok:!0,kind:"ternary",path:i};if(i.isLogicalExpression({operator:"&&"})&&r.key==="right")return i.node.left.type==="LogicalExpression"&&i.node.left.operator==="&&"?{ok:!1,result:ee(t,"unsupported-syntax","Chained && expression requires unsupported-syntax handling","jsx-node")}:{ok:!0,kind:"logical-and",path:i};if(i.isLogicalExpression({operator:"||"})&&r.key==="right")return i.node.left.type==="LogicalExpression"&&i.node.left.operator==="||"?{ok:!1,result:ee(t,"unsupported-syntax","Chained || expression requires unsupported-syntax handling","jsx-node")}:{ok:!0,kind:"logical-or",path:i};r=i}return{ok:!1,result:ee(t,"unsupported-syntax","JSX locator must resolve inside a conditional branch","jsx-node")}}function U$(e,t,r){if(!r)return dxe(e,t);let i=[],n=e;for(;n;){let c=n.parentPath;if(!c||(c.isConditionalExpression()&&(n.key==="consequent"||n.key==="alternate")&&i.unshift(c),c.isLogicalExpression({operator:"&&"})&&n.key==="right")||c.isLogicalExpression({operator:"||"})&&n.key==="right")break;n=c}if(i.length===0)return{ok:!1,result:ee(t,"locator-miss","JSX locator must resolve inside a ternary branch","jsx-node")};let s=r.split("."),a=i[0],o=s.length>1?s.length-1:0;for(let c=0;c<o;c++){let u=s[c],p=u==="then"||u==="consequent"?"consequent":u==="else"||u==="alternate"?"alternate":null;if(!p)return{ok:!1,result:ee(t,"locator-miss",`Invalid branch selector path: ${u}`,"jsx-node")};let d=a.get(p);if(!d)return{ok:!1,result:ee(t,"locator-miss",`Invalid branch selector path: ${u}`,"jsx-node")};if(d.node.type==="ConditionalExpression")a=d;else return{ok:!1,result:ee(t,"locator-miss",`Branch selector path ends prematurely at: ${u}`,"jsx-node")}}for(let c=o;c<s.length;c++){let u=s[c];if(!(u==="then"||u==="consequent"?"consequent":u==="else"||u==="alternate"?"alternate":null))return{ok:!1,result:ee(t,"locator-miss",`Invalid branch selector path: ${u}`,"jsx-node")}}return{ok:!0,kind:"ternary",path:a}}function fxe(e,t){try{return{ok:!0,expression:(0,z$.parseExpression)(t,{plugins:["jsx","typescript"]})}}catch(r){return{ok:!1,result:ee(e,"parse-failed",`AST parse failed: ${r instanceof Error?r.message:String(r)}`,"jsx-node")}}}var of=lt(Ee(),1);function lf(e){let{source:t,value:r}=e,i=Ge(t,"directive");if(!i.ok)return i.result;let n=V$(r);return n&&i.ast.program.directives.some(s=>s.value.value===n)?ee(t,"directive-conflict",`Directive '${r}' conflicts with '${n}'`,"directive"):(i.ast.program.directives.some(s=>s.value.value===r)||i.ast.program.directives.unshift((0,of.directive)((0,of.directiveLiteral)(r))),Ae(i.ast,t,{kind:"add-directive",target:"directive",inverse:"remove-directive"}))}function cf(e){let{source:t,locator:r}=e,i=Ge(t,"directive");if(!i.ok)return i.result;let n=ot(i.ast,r);return n.ok?(n.match.path.remove(),Ae(i.ast,t,{kind:"remove-directive",target:"directive",inverse:"add-directive"})):{ok:!1,source:t,diagnostic:n.diagnostic}}function uf(e){let{source:t,locator:r,nextValue:i}=e,n=Ge(t,"directive");if(!n.ok)return n.result;let s=V$(i);if(s&&n.ast.program.directives.some(o=>o.value.value===s&&o.value.value!==r.value))return ee(t,"directive-conflict",`Directive '${i}' conflicts with '${s}'`,"directive");let a=ot(n.ast,r);return a.ok?(a.match.path.node.value.value=i,Ae(n.ast,t,{kind:"update-directive",target:"directive",inverse:"restore-directive"})):{ok:!1,source:t,diagnostic:a.diagnostic}}function pf(e){let{source:t,locator:r,next:i}=e,n=Ge(t,"export");if(!n.ok)return n.result;let s=ot(n.ast,r);return s.ok?(s.match.path.replaceWith(Ar(i)),Ae(n.ast,t,{kind:"update-named-export",target:"export",inverse:"restore-named-export"})):{ok:!1,source:t,diagnostic:s.diagnostic}}function df(e){let{source:t,locator:r,path:i,next:n}=e,s=Ge(t,"export");if(!s.ok)return s.result;let a=ot(s.ast,r);if(!a.ok)return{ok:!1,source:t,diagnostic:a.diagnostic};if(!a.match.path.isObjectExpression())return ee(t,"metadata-shape-unsupported","metadata export must be a static object literal","export");let o=K$(a.match.path,i,t);return o.ok?(o.path.replaceWith(Ar(n)),Ae(s.ast,t,{kind:"update-metadata-field",target:"export",inverse:"restore-metadata-field"})):o.result}function ff(e){let{source:t,locator:r,path:i,next:n}=e,s=Ge(t,"export");if(!s.ok)return s.result;let a=ot(s.ast,r);if(!a.ok)return{ok:!1,source:t,diagnostic:a.diagnostic};let o=a.match.path.node,c=a.match.path.isFunctionDeclaration(),u=a.match.path.isArrowFunctionExpression();if(!c&&!u)return ee(t,"metadata-shape-unsupported","generateMetadata must be a function","export");let p;if(c&&o.body){let h=a.match.path.get("body").get("body");if(h.length!==1||!h[0].isReturnStatement())return ee(t,"metadata-shape-unsupported","generateMetadata must directly return an object literal","export");let y=h[0].get("argument");if(!y.node)return ee(t,"metadata-shape-unsupported","generateMetadata must directly return an object literal","export");p=y}else if(u)if(o.body.type==="BlockStatement"){let T=a.match.path.get("body").get("body");if(T.length!==1||!T[0].isReturnStatement())return ee(t,"metadata-shape-unsupported","generateMetadata must directly return an object literal","export");let w=T[0].get("argument");if(!w.node)return ee(t,"metadata-shape-unsupported","generateMetadata must directly return an object literal","export");p=w}else p=a.match.path.get("body");else return ee(t,"metadata-shape-unsupported","generateMetadata must directly return an object literal","export");if(!p.node||!p.isObjectExpression())return ee(t,"metadata-shape-unsupported","generateMetadata must directly return an object literal","export");let d=K$(p,i,t);return d.ok?(d.path.replaceWith(Ar(n)),Ae(s.ast,t,{kind:"update-generate-metadata",target:"export",inverse:"restore-generate-metadata"})):d.result}function K$(e,t,r){let i=e;for(let n of t){if(n.kind!=="property"||!i.isObjectExpression())return{ok:!1,result:ee(r,"metadata-shape-unsupported","metadata path must stay within object properties","export")};if(i.node.properties.some(a=>a.type!=="ObjectProperty"))return{ok:!1,result:ee(r,"metadata-shape-unsupported","metadata object cannot contain spread properties","export")};let s=i.get("properties").find(a=>a.isObjectProperty()&&(a.node.key.type==="Identifier"?a.node.key.name:a.node.key.type==="StringLiteral"?a.node.key.value:null)===n.name);if(!s||!s.isObjectProperty())return{ok:!1,result:ee(r,"property-not-found",`Property '${n.name}' not found`,"export")};i=s.get("value")}return{ok:!0,path:i}}function V$(e){return e==="use client"?"use server":e==="use server"?"use client":null}var gf=lt(Ee(),1);function LP(e){if(e.isStringLiteral())return Ka("static",[],[{role:"static",value:e.node.value}]);let t=W$(e);return t.ok?t:e.isConditionalExpression()?hf(e,"static"):e.isCallExpression()?q$(e):Dr("Class expression must be a static string, clsx/twMerge call, or local class map reference")}function q$(e){let t=yxe(e.node.callee);if(!gxe(t))return Dr("Class call expression must use cn(), clsx(), or twMerge()");let r=[t],i=[];for(let n of e.get("arguments")){if(!n.isExpression())return Dr("Class call arguments must be expressions");let s=hf(n,"static");if(!s.ok)return s;r.push(...s.calls),i.push(...s.segments)}return Ka("call",X$(r),i)}function hf(e,t){if(e.isStringLiteral())return Ka("static",[],[{role:t,value:e.node.value}]);if(e.isConditionalExpression()){let i=e.get("consequent"),n=e.get("alternate"),s=hf(i,"conditional-consequent");if(!s.ok)return s;let a=hf(n,"conditional-alternate");return a.ok?Ka("call",X$([...s.calls,...a.calls]),[...s.segments,...a.segments]):a}if(e.isObjectExpression()){let i=[];for(let n of e.node.properties){if(n.type!=="ObjectProperty")return Dr("Class object arguments cannot contain spreads or methods");let s=J$(n.key);if(!s)return Dr("Class object keys must be static identifiers or strings");i.push({role:"object-boolean",value:s,key:s})}return Ka("call",[],i)}let r=W$(e);return r.ok?r:e.isCallExpression()?q$(e):Dr("Class argument is not statically analyzable")}function W$(e){if(!e.isMemberExpression())return Dr("Not a class map reference");let t=e.get("object");if(!t.isIdentifier())return Dr("Class map object must be an identifier");let r=hxe(e);if(r.length===0)return Dr("Class map key must be statically resolvable");let n=e.scope.getBinding(t.node.name)?.path;if(!n?.isVariableDeclarator()||n.parent.type!=="VariableDeclaration"||n.parent.kind!=="const")return Dr("Class map must reference a local const object literal");let s=n.get("init");if(!s?.isObjectExpression())return Dr("Class map binding must be an object literal");let a=[];for(let o of r){let c=mxe(s.node,o);if(c===null)return Dr(`Class map key "${o}" must resolve to a string literal`);a.push({role:"class-map",value:c,key:o,objectName:t.node.name})}return Ka("class-map-reference",[],a)}function hxe(e){if(!e.node.computed&&e.node.property.type==="Identifier")return[e.node.property.name];let t=e.get("property");if(t.isStringLiteral())return[t.node.value];if(t.isConditionalExpression()){let r=t.get("consequent"),i=t.get("alternate");if(r.isStringLiteral()&&i.isStringLiteral())return[r.node.value,i.node.value]}return[]}function mxe(e,t){for(let r of e.properties)if(r.type==="ObjectProperty"&&J$(r.key)===t)return r.value.type!=="StringLiteral"?null:r.value.value;return null}function J$(e){return e.type==="Identifier"?e.name:e.type==="StringLiteral"?e.value:null}function yxe(e){return e.type==="Identifier"?e.name:null}function gxe(e){return e==="cn"||e==="clsx"||e==="twMerge"}function Ka(e,t,r){return{ok:!0,mode:e,calls:t,segments:r}}function Dr(e){return{ok:!1,diagnostic:qn("unsupported-syntax",e,"jsx-attribute")}}function X$(e){return[...new Set(e)]}function Ml(e){let{source:t,locator:r,value:i}=e,n=Ge(t,"jsx-attribute");if(!n.ok)return n.result;let s=gs(n.ast,r.element,t);if(!s.ok)return s.result;let a=s.match.path.node.openingElement.attributes,o=a.findIndex(u=>u.type==="JSXAttribute"&&u.name.type==="JSXIdentifier"&&u.name.name===r.name);if(o>=0&&a.some((p,d)=>d>o&&p.type==="JSXSpreadAttribute"))return ee(t,"unsupported-syntax","cannot edit explicit attribute when spread props follow it","jsx-attribute");let c=a.find(u=>u.type==="JSXAttribute"&&u.name.type==="JSXIdentifier"&&u.name.name===r.name);return c&&c.type==="JSXAttribute"?c.value=_i(r.name,i).value:a.push(_i(r.name,i)),Ae(n.ast,t,{kind:"set-jsx-attribute",target:"jsx-attribute",inverse:"remove-jsx-attribute"})}function xf(e){let{source:t,locator:r}=e,i=Ge(t,"jsx-attribute");if(!i.ok)return i.result;let n=gs(i.ast,r.element,t);return n.ok?(n.match.path.node.openingElement.attributes=n.match.path.node.openingElement.attributes.filter(s=>s.type!=="JSXAttribute"||s.name.type!=="JSXIdentifier"||s.name.name!==r.name),Ae(i.ast,t,{kind:"remove-jsx-attribute",target:"jsx-attribute",inverse:"set-jsx-attribute"})):n.result}function Sf(e){let t=xxe(e);return t.handled?t.result:Ml({source:e.source,locator:e.locator,value:e.value})}function bf(e){return G$(e.source,e.locator,t=>{t.add(e.token)},"first")}function vf(e){return G$(e.source,e.locator,t=>{t.delete(e.token)},"all")}function Tf(e){let{source:t,locator:r,property:i,value:n}=e,s=Ge(t,"jsx-attribute");if(!s.ok)return s.result;let a=Z$(s.ast,r,t);if(!a.ok)return a.result;let c=a.path.get("value");if(!c.isJSXExpressionContainer())return ee(t,"unsupported-syntax","style attribute must use JSX expression container","jsx-attribute");let u=c.get("expression");return u.isObjectExpression()?u.node.properties.some(p=>p.type!=="ObjectProperty")?ee(t,"unsupported-syntax","style object cannot contain spread properties","jsx-attribute"):(Y$(u,i,n),Ae(s.ast,t,{kind:"update-style-property",target:"jsx-attribute",inverse:"remove-style-property"})):ee(t,"unsupported-syntax","style attribute must contain object literal","jsx-attribute")}function Ef(e){let{source:t,locator:r,properties:i}=e,n=Ge(t,"jsx-attribute");if(!n.ok)return n.result;let s=Z$(n.ast,r,t);if(!s.ok)return s.result;let o=s.path.get("value");if(!o.isJSXExpressionContainer())return ee(t,"unsupported-syntax","style attribute must use JSX expression container","jsx-attribute");let c=o.get("expression");if(!c.isObjectExpression())return ee(t,"unsupported-syntax","style attribute must contain object literal","jsx-attribute");if(c.node.properties.some(u=>u.type!=="ObjectProperty"))return ee(t,"unsupported-syntax","style object cannot contain spread properties","jsx-attribute");for(let[u,p]of Object.entries(i))Y$(c,u,p);return Ae(n.ast,t,{kind:"update-style-properties",target:"jsx-attribute",inverse:"remove-style-properties"})}function Z$(e,t,r){let i=L$(e,t);if(!i.ok)return{ok:!1,result:{ok:!1,source:r,diagnostic:i.diagnostic}};if(i.match)return i.match.path.isJSXAttribute()?{ok:!0,path:i.match.path}:{ok:!1,result:ee(r,"unsupported-syntax","JSX locator must resolve to JSXAttribute","jsx-attribute")};let n=gs(e,t.element,r);if(!n.ok)return n;let s=n.match.path.get("openingElement");s.node.attributes.push(_i(t.name,{}));let a=s.get("attributes"),o=a[a.length-1];return o?.isJSXAttribute()?{ok:!0,path:o}:{ok:!1,result:ee(r,"unsupported-syntax","Failed to create JSX style attribute","jsx-attribute")}}function Y$(e,t,r){let i=e.get("properties").find(n=>n.isObjectProperty()&&tj(n.node.key)===t);i&&i.isObjectProperty()?i.get("value").replaceWith(Ar(r)):e.node.properties.push((0,gf.objectProperty)(qd(t),Ar(r)))}function Pf(e){let{source:t,locator:r,nextClass:i}=e,n=Ge(t,"jsx-attribute");if(!n.ok)return n.result;let s=Kd(n.ast,r,t);if(!s.ok)return s.result;let o=s.match.path.get("value");if(!o.isJSXExpressionContainer())return ee(t,"unsupported-syntax","CSS module className must use JSX expression container","jsx-attribute");let c=o.get("expression");if(!c.isMemberExpression()||c.node.object.type!=="Identifier"||c.node.object.name!=="styles")return ee(t,"unsupported-syntax","CSS module className must be styles.foo or styles['foo']","jsx-attribute");if(c.node.computed){if(c.node.property.type!=="StringLiteral")return ee(t,"unsupported-syntax","CSS module computed access must use string literal key","jsx-attribute");c.node.property.value=i}else{if(c.node.property.type!=="Identifier")return ee(t,"unsupported-syntax","CSS module property access must use identifier key","jsx-attribute");c.node.property.name=i}return Ae(n.ast,t,{kind:"update-css-module-class",target:"jsx-attribute",inverse:"restore-css-module-class"})}function G$(e,t,r,i){let n=Ge(e,"jsx-attribute");if(!n.ok)return n.result;let s=Kd(n.ast,t,e);if(!s.ok)return s.result;let a=Pxe(s.match.path,e);if(!a.ok){let c=Sxe(s.match.path,e,r,i);return c.ok?Ae(n.ast,e,{kind:"mutate-tailwind-class",target:"jsx-attribute",inverse:"restore-tailwind-class"}):c.result}let o=new Set(a.value.split(/\s+/).filter(Boolean));return r(o),s.match.path.node.value=_i(t.name,[...o].join(" ")).value,Ae(n.ast,e,{kind:"mutate-tailwind-class",target:"jsx-attribute",inverse:"restore-tailwind-class"})}function xxe(e){let{source:t,locator:r,value:i}=e,n=Ge(t,"jsx-attribute");if(!n.ok)return{handled:!0,result:n.result};let s=Kd(n.ast,r,t);if(!s.ok)return{handled:!1};let a=s.match.path,o=a.get("value");if(!o.isJSXExpressionContainer())return{handled:!1};let c=o.get("expression");if(c.isStringLiteral())return{handled:!1};if(Txe(a))return{handled:!0,result:ee(t,"unsupported-syntax","cannot edit explicit attribute when spread props follow it","jsx-attribute")};let u=LP(c);if(!u.ok)return c.replaceWith((0,gf.stringLiteral)(i)),{handled:!0,result:Ae(n.ast,t,{kind:"update-class-name",target:"jsx-attribute",inverse:"restore-class-name"})};if(u.mode==="class-map-reference"){let p=H$(c,u,t,d=>{d.node.value=i});return p.ok?{handled:!0,result:Ae(n.ast,t,{kind:"update-class-name",target:"jsx-attribute",inverse:"restore-class-name"})}:{handled:!0,result:p.result}}return u.mode!=="call"?{handled:!0,result:ee(t,"unsupported-syntax","className expression is not a supported class call","jsx-attribute")}:yf(c,i)?{handled:!0,result:Ae(n.ast,t,{kind:"update-class-name",target:"jsx-attribute",inverse:"restore-class-name"})}:{handled:!0,result:ee(t,"unsupported-syntax","className expression does not contain an editable string literal","jsx-attribute")}}function Sxe(e,t,r,i){let n=e.get("value");if(!n.isJSXExpressionContainer())return{ok:!1,result:ee(t,"unsupported-syntax","Tailwind class editing only supports static className strings or class call expressions","jsx-attribute")};let s=n.get("expression"),a=LP(s);return a.ok?a.mode==="class-map-reference"?H$(s,a,t,c=>{Q$(c,r)}):a.mode!=="call"?{ok:!1,result:ee(t,"unsupported-syntax","Tailwind class editing only supports class call expressions at this stage","jsx-attribute")}:mf(s,r,i)===0?{ok:!1,result:ee(t,"unsupported-syntax","Class call expression does not contain editable string literal class tokens","jsx-attribute")}:{ok:!0}:s.isTemplateLiteral()?bxe(s,r,i)?{ok:!0}:{ok:!1,result:ee(t,"unsupported-syntax","Template literal className does not contain editable static class tokens","jsx-attribute")}:{ok:!1,result:Exe(t,a.diagnostic)}}function mf(e,t,r){if(e.isStringLiteral())return Q$(e,t),1;if(e.isConditionalExpression()){let i=mf(e.get("consequent"),t,r);return r==="first"&&i>0||(i+=mf(e.get("alternate"),t,r)),i}if(e.isCallExpression()&&ej(e.node)){let i=0;for(let n of e.get("arguments"))if(n.isExpression()&&(i+=mf(n,t,r),r==="first"&&i>0))return i;return i}return 0}function bxe(e,t,r){let i=!1;for(let n of e.node.quasis){let s=n.value.raw,a=new Set(s.split(/\s+/).filter(Boolean));if(a.size===0)continue;t(a);let o=[...a].join(" ");if(n.value.raw=o,n.value.cooked=o,i=!0,r==="first")break}return i}function H$(e,t,r,i){let n=t.segments.find(u=>u.objectName)?.objectName,s=[...new Set(t.segments.map(u=>u.key).filter(u=>!!u))];if(!n||s.length===0)return{ok:!1,result:ee(r,"unsupported-syntax","Class map reference is missing a static object name or key","jsx-attribute")};let o=e.scope.getBinding(n)?.path;if(!o?.isVariableDeclarator()||o.parent.type!=="VariableDeclaration"||o.parent.kind!=="const")return{ok:!1,result:ee(r,"unsupported-syntax","Class map must reference a local const object literal","jsx-attribute")};let c=o.get("init");if(!c?.isObjectExpression())return{ok:!1,result:ee(r,"unsupported-syntax","Class map binding must be an object literal","jsx-attribute")};for(let u of s){let p=vxe(c,u,r);if(!p.ok)return p;i(p.path)}return{ok:!0}}function vxe(e,t,r){for(let i of e.get("properties")){if(!i.isObjectProperty())return{ok:!1,result:ee(r,"unsupported-syntax","Class map object cannot contain spread properties or methods","jsx-attribute")};if(tj(i.node.key)!==t)continue;let n=i.get("value");return n.isStringLiteral()?{ok:!0,path:n}:{ok:!1,result:ee(r,"unsupported-syntax",`Class map key "${t}" must resolve to a string literal`,"jsx-attribute")}}return{ok:!1,result:ee(r,"unsupported-syntax",`Class map key "${t}" was not found`,"jsx-attribute")}}function yf(e,t){if(e.isStringLiteral())return e.node.value=t,!0;if(e.isConditionalExpression())return yf(e.get("consequent"),t)||yf(e.get("alternate"),t);if(e.isCallExpression()&&ej(e.node)){for(let r of e.get("arguments"))if(r.isExpression()&&yf(r,t))return!0}return!1}function Q$(e,t){let r=new Set(e.node.value.split(/\s+/).filter(Boolean));t(r),e.node.value=[...r].join(" ")}function Txe(e){let t=e.parentPath;if(!t?.isJSXOpeningElement())return!1;let r=t.node.attributes.indexOf(e.node);return t.node.attributes.some((i,n)=>n>r&&i.type==="JSXSpreadAttribute")}function ej(e){return e.callee.type==="Identifier"&&(e.callee.name==="cn"||e.callee.name==="clsx"||e.callee.name==="twMerge")}function Exe(e,t){return ee(e,t.code,t.message,t.locatorKind,t.details)}function Pxe(e,t){let r=e.get("value");if(r.isStringLiteral())return{ok:!0,value:r.node.value};if(r.isJSXExpressionContainer()){let i=r.get("expression");if(i.isStringLiteral())return{ok:!0,value:i.node.value}}return{ok:!1,result:ee(t,"unsupported-syntax","Tailwind class editing only supports static className strings","jsx-attribute")}}function tj(e){return e.type==="Identifier"?e.name:e.type==="StringLiteral"?e.value:null}var bj=lt(en(),1),Df=lt(rn(),1),Sr=lt(Ee(),1);import*as jf from"node:path";var oj=lt(en(),1),Cf=lt(rn(),1),qa=lt(Ee(),1);var _f=lt(rn(),1),Fe=lt(Ee(),1),Qje=typeof _f.default=="function"?_f.default:_f.default.default;function Af(e,t=[]){if(e.isIdentifier()){let r=e.scope.getBinding(e.node.name);return r?kf(r,t):null}if(e.isMemberExpression()){let r=wxe(e.node);if(!r)return null;let i=e.scope.getBinding(r);return i?kf(i,t):null}return e.isAwaitExpression()||RP(e.node)?xs(Nxe(e.node),t,"awaited or fetched expression"):null}function kf(e,t=[]){let r=_xe(e,t);if(r)return r;let i=kxe(e,t);if(i)return i;let n=Ixe(e,t);return n||null}function Va(e){return e?.kind==="api-source"}function _xe(e,t){if(e.path.isVariableDeclarator()&&Fe.isObjectPattern(e.path.node.id)){let a=e.path.node.id.properties.find(c=>Fe.isObjectProperty(c)&&sj(c)==="data"&&Fl(c.value,e.identifier.name)),o=e.path.get("init");if(a&&o?.isCallExpression()&&nj(o.node))return xs(e.identifier.name,t,"query hook data binding")}let r=Axe(e);if(!r||sj(r.node)!=="data")return null;let n=r.findParent(a=>a.isVariableDeclarator());if(!n?.isVariableDeclarator())return null;let s=n.get("init");return!s?.isCallExpression()||!nj(s.node)?null:xs(e.identifier.name,t,"query hook data binding")}function kxe(e,t){if(e.path.isVariableDeclarator()&&Fe.isArrayPattern(e.path.node.id)){let o=e.path.get("init");if(!o?.isCallExpression()||!ij(o.node))return null;let[c,u]=e.path.node.id.elements;return!Fe.isIdentifier(c)||c.name!==e.identifier.name||!Fe.isIdentifier(u)?null:rj(e,u.name)?xs(e.identifier.name,t,"state setter is updated by API data"):null}if(!e.path.isIdentifier())return null;let r=e.path.parentPath;if(!r?.isArrayPattern())return null;let i=r.parentPath;if(!i?.isVariableDeclarator())return null;let n=i.get("init");if(!n?.isCallExpression()||!ij(n.node)||r.node.elements.findIndex(o=>o===e.path.node)!==0)return null;let a=r.node.elements[1];return Fe.isIdentifier(a)&&rj(e,a.name)?xs(e.identifier.name,t,"state setter is updated by API data"):null}function Ixe(e,t){let r=e.path.isVariableDeclarator()?e.path:e.path.findParent(n=>n.isVariableDeclarator());if(!r?.isVariableDeclarator())return null;let i=r.get("init");return i?.isExpression()?i.isAwaitExpression()?xs(e.identifier.name,t,"awaited binding result"):RP(i.node)?xs(e.identifier.name,t,"fetch-backed binding result"):null:null}function Axe(e){if(!e.path.isIdentifier())return null;let t=e.path.parentPath;return t?.isObjectProperty()?t:t?.isAssignmentPattern()&&t.parentPath?.isObjectProperty()?t.parentPath:null}function Fl(e,t){return Fe.isIdentifier(e)?e.name===t:Fe.isAssignmentPattern(e)?Fl(e.left,t):Fe.isObjectPattern(e)?e.properties.some(r=>Fe.isObjectProperty(r)?Fl(r.value,t):Fl(r.argument,t)):Fe.isArrayPattern(e)?e.elements.some(r=>!!r&&Fl(Fe.isRestElement(r)?r.argument:r,t)):!1}function rj(e,t){let r=!1,i=!1;return e.scope.path.traverse({CallExpression(s){RP(s.node)&&(r=!0),(Cxe(s.node.callee,t)||s.node.arguments.some(a=>Fe.isIdentifier(a)&&a.name===t))&&(i=!0)}}),r&&i}function nj(e){let t=wf(e.callee);return t==="useQuery"||t==="useSWR"||t==="useSuspenseQuery"}function ij(e){return wf(e.callee)==="useState"}function RP(e){return If(e,t=>Fe.isCallExpression(t)&&wf(t.callee)==="fetch")}function wxe(e){let t=e;for(;Fe.isMemberExpression(t);)t=t.object;return Fe.isIdentifier(t)?t.name:null}function sj(e){return e.computed?null:Fe.isIdentifier(e.key)?e.key.name:Fe.isStringLiteral(e.key)?e.key.value:null}function wf(e){return Fe.isIdentifier(e)?e.name:Fe.isMemberExpression(e)&&Fe.isIdentifier(e.property)?e.property.name:null}function Cxe(e,t){return If(e,r=>Fe.isIdentifier(r)&&r.name===t)}function If(e,t){if(t(e))return!0;let r=Fe.VISITOR_KEYS[e.type];if(!r)return!1;for(let i of r){let n=e[i];if(Array.isArray(n)){for(let s of n)if(Fe.isNode(s)&&If(s,t))return!0;continue}if(Fe.isNode(n)&&If(n,t))return!0}return!1}function Nxe(e){return Fe.isIdentifier(e)?e.name:Fe.isCallExpression(e)?wf(e.callee)??"api":Fe.isAwaitExpression(e)?"awaited-api":"api"}function xs(e,t,r){return{kind:"api-source",readonly:!0,sourceId:e,displayPath:Oxe(e,t),reason:r}}function Oxe(e,t){return t.reduce((r,i)=>i.kind==="property"?`${r}.${i.name}`:`${r}[${i.index}]`,e)}var lj=typeof Cf.default=="function"?Cf.default:Cf.default.default;function cj(e,t){let r=pj(e);if(!r)return{allowed:!0};let i=!1;return lj(r,{CallExpression(n){if(!dj(n.node,t.sourceRange)||!Dxe(n.node))return;let s=n.get("callee");if(!s.isMemberExpression())return;let a=s.get("object");Array.isArray(a)||!a.isExpression()||Va(Af(a))&&(i=!0,n.stop())}}),i?{allowed:!1,reason:"Cannot add data-backed items to a dynamic API list"}:{allowed:!0}}function uj(e,t){let r=pj(e);if(!r)return{allowed:!0};let i=!1;return lj(r,{JSXExpressionContainer(n){dj(n.node,t.sourceRange)&&(qa.isJSXEmptyExpression(n.node.expression)||(i=!0,n.stop()))}}),i?{allowed:!1,reason:"Cannot move subtree across files because it depends on local binding expressions"}:{allowed:!0}}function pj(e){try{return oj.parse(e,{sourceType:"module",plugins:["jsx","typescript"]})}catch{return null}}function Dxe(e){let t=e.callee;return qa.isMemberExpression(t)&&qa.isIdentifier(t.property)&&t.property.name==="map"}function dj(e,t){let r=e.loc;return r?aj({line:r.start.line,column:r.start.column},{line:t.startLine,column:t.startColumn})>=0&&aj({line:r.end.line,column:r.end.column},{line:t.endLine,column:t.endColumn})<=0:!1}function aj(e,t){return e.line!==t.line?e.line<t.line?-1:1:e.column!==t.column?e.column<t.column?-1:1:0}var KP=typeof Df.default=="function"?Df.default:Df.default.default;function Xt(e){return e.structuralPath.includes("#repeat:")||e.isRepeatItemRoot||e.isRepeatRegion?{kind:"jsx-node",strategy:"source-range",sourceRange:e.sourceRange}:{kind:"jsx-node",strategy:"structural-path",file:e.file,component:e.component,structuralPath:e.structuralPath}}function Jn(e,t){return{kind:"jsx-attribute",element:Xt(e),name:t}}function $xe(e){return e.target.kind==="node"?e.target.key:null}function jxe(e){return e.target.kind==="route"?e.target.routeId:null}function MP(e,t){let r=jf.dirname(e),i=t.replace(/\.(tsx|ts|jsx|js)$/,""),n=jf.relative(r,i);return n=n.replace(/\\/g,"/"),n.startsWith(".")||(n=`./${n}`),n}function Lxe(e){return e.match(/^\s*['"]use client['"];?/m)?"use client":e.match(/^\s*['"]use server['"];?/m)?"use server":null}function Rxe(e,t){let r=e.getFileContent(t.file);if(!r)return;let i=Md(r,Xt(t));if(i.ok)return r.slice(i.match.start,i.match.end)}function VP(e){if(e.component.exportName!=="default")return e.component.exportName;let t=e.component.source.replace(/\\/g,"/").replace(/\/$/,""),r=t.split("/").pop()||"Component",s=(r==="index"?t.split("/").slice(-2,-1)[0]||"Component":r).replace(/\.[^.]+$/,"").split(/[^A-Za-z0-9]+/).filter(Boolean);return s.length===0?"Component":s.map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join("")}function Lf(e){try{return bj.parse(e,{sourceType:"module",plugins:["jsx","typescript"]})}catch{return null}}function vj(e){return typeof e.start=="number"&&typeof e.end=="number"?{start:e.start,end:e.end}:null}function Mxe(e,t){let r=vj(e);return!!(r&&r.start>=t.start&&r.end<=t.end)}function Fxe(e){if(Sr.isJSXIdentifier(e))return/^[A-Z]/.test(e.name)?e.name:null;if(Sr.isJSXMemberExpression(e)){let t=e;for(;Sr.isJSXMemberExpression(t);)t=t.object;return t.name}return null}function Bxe(e,t){let r=vj(e.node);if(!r)return[];let i=new Set,n=(s,a)=>{let o=a.scope.getBinding(s);if(!o||Mxe(o.path.node,r))return;t.scope.getBinding(s)!==o&&i.add(s)};return e.traverse({ReferencedIdentifier(s){n(s.node.name,s)},JSXOpeningElement(s){let a=Fxe(s.node.name);a&&n(a,s)}}),[...i].sort()}function zxe(e,t,r){let i=Lf(e);if(!i)return{ok:!0};let n=ot(i,Xt(t));if(!n.ok||!n.match.path.isJSXElement())return{ok:!0};let s=ot(i,Xt(r));if(!s.ok||!s.match.path.isJSXElement())return{ok:!0};if(Uxe(n.match.path,s.match.path))return{ok:!1,bindingNames:[],reason:"Cannot move node out of its conditional branch"};let a=Bxe(n.match.path,s.match.path);return a.length>0?{ok:!1,bindingNames:a}:{ok:!0}}function Uxe(e,t){let r=e.findParent(i=>i.isConditionalExpression());return r?.isConditionalExpression()?!t.findParent(i=>i.node===r.node):!1}var Kxe={table:new Set(["caption","colgroup","thead","tbody","tfoot","tr"]),thead:new Set(["tr"]),tbody:new Set(["tr"]),tfoot:new Set(["tr"]),tr:new Set(["th","td"]),ul:new Set(["li"]),ol:new Set(["li"]),select:new Set(["option","optgroup"]),optgroup:new Set(["option"])};function Vxe(e,t){if(t.kind!=="native-tag")return null;let r=e.tag?.toLowerCase();if(!r||r!==e.tag||r.startsWith("component:"))return null;let i=Kxe[r];if(!i)return null;let n=t.tag.toLowerCase();return i.has(n)?null:`Cannot insert <${t.tag}> into <${e.tag}>; expected ${[...i].map(s=>`<${s}>`).join(", ")}`}function qxe(e,t){for(let r of e.program.body){if(!Sr.isImportDeclaration(r)||r.source.value!==t)continue;let i=r.specifiers.find(n=>Sr.isImportDefaultSpecifier(n));if(i&&Sr.isImportDefaultSpecifier(i))return i.local.name}return null}function Wxe(e){let t=new Set;return KP(e,{Program(r){for(let i of Object.keys(r.scope.bindings))t.add(i);r.stop()}}),t}function Jxe(e,t){if(!t.has(e))return e;let r=2;for(;t.has(`${e}${r}`);)r+=1;return`${e}${r}`}function Xxe(e,t){let r=VP(e);if(e.component.exportName!=="default")return{localName:r,importStep:FP(e,r)};let i=Lf(t);if(!i)return{localName:r,importStep:FP(e,r)};let n=qxe(i,e.component.source);if(n)return{localName:n};let s=Jxe(r,Wxe(i));return{localName:s,importStep:FP(e,s)}}function Zxe(e,t){if(e.kind==="native-tag")return e.text?`<${e.tag}>${e.text}</${e.tag}>`:`<${e.tag} />`;let r=t??VP(e);if(e.props&&Object.keys(e.props).length>0){let i=Object.entries(e.props).map(([n,s])=>typeof s=="string"?`${n}="${s}"`:`${n}={${JSON.stringify(s)}}`).join(" ");return`<${r} ${i} />`}return`<${r} />`}function Yxe(e){if(e.kind==="native-tag")return e.text===void 0?{kind:e.kind,tag:e.tag}:{kind:e.kind,tag:e.tag,text:e.text};let t=e.props?Gxe(e.props):void 0;return{kind:e.kind,component:{source:e.component.source,exportName:e.component.exportName},...t?{props:t}:{}}}function Gxe(e){return Object.fromEntries(Object.entries(e).filter(t=>zP(t[1])))}function zP(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?!0:Array.isArray(e)?e.every(zP):typeof e=="object"?Object.values(e).every(zP):!1}function Hxe(e,t){let r=Lf(e);if(!r)return Number.POSITIVE_INFINITY;let i=0;return KP(r,{JSXOpeningElement(n){let s=n.node.name;Sr.isJSXIdentifier(s)&&s.name===t&&(i+=1)}}),i}function FP(e,t=VP(e)){return{moduleSpecifier:e.component.source,imports:e.component.exportName==="default"?[{kind:"default",local:t}]:[{kind:"named",imported:e.component.exportName}]}}function fj(e,t){if("parentKey"in e)return{parentNode:t.getNode(e.parentKey),anchorNode:null,placement:e.relation};let r=t.getNode(e.anchorKey);return{parentNode:r?.parentKey?t.getNode(r.parentKey)??r:r,anchorNode:r,placement:e.relation}}function Qxe(e,t,r){let i=e;for(;i;){if(i===t)return!0;i=r.getNode(i)?.parentKey}return!1}function Wn(e,t){return`Operation kind '${e}' does not match params.kind '${t}'`}function Rf(e,t=e.path){return{kind:"value",root:e.root,path:t&&t.length>0?t:void 0,expectedRange:e.expectedRange}}function UP(e){let t=e.path??[];return t.length>0?t[t.length-1]:null}function hj(e){let t=UP(e);return!t||t.kind!=="property"?null:Rf(e,e.path?.slice(0,-1))}function ki(e){let t=e.path??[];for(let r=t.length-1;r>=0;r-=1){let i=t[r];if(i.kind==="index")return{locator:Rf(e,t.slice(0,r)),index:i.index}}return null}function eSe(e,t){let r=e.path??[],i=r.findLastIndex(s=>s.kind==="index");if(i===-1)return;let n=r.slice(i+1);return n.length===0?t:Tj(n,t)}function Tj(e,t){let[r,...i]=e;if(!r)return t;if(r.kind!=="property")return;let n=Tj(i,t);return n===void 0?void 0:{[r.name]:n}}function Nf(e,t,r){return r?.finalSource?.kind==="component-prop"?"Cannot edit prop-backed node structure with a generic node operation":t?.kind==="value-binding"&&t.sourceKind==="repeat-template"&&!e.isRepeatItemRoot?"Cannot edit repeat-backed child node structure with a generic node operation":t?.kind==="value-binding"&&t.file!==e.file&&t.sourceKind!=="repeat-template"?"Cannot edit upstream-bound node structure with a generic node operation":null}function tSe(e,t){let r=e.path??[];for(let i=r.length-1;i>=0;i-=1)if(r[i].kind==="index"){let s=[...r];return s[i]={kind:"index",index:t},Rf(e,s)}return null}function BP(e,t){return t?.[e]??e}function Of(e,t){return!t||t.length===0?e:e<=0?t[0]??0:e>=t.length?(t[t.length-1]??t.length-1)+1:t[e]??e}function rSe(e,t){return nSe(e.root,t.root)&&aSe(e.path??[],t.path??[])}function nSe(e,t){if(e.kind!==t.kind)return!1;switch(e.kind){case"binding":case"hook-state":case"named-export":return"name"in t&&e.name===t.name;case"default-export":return!0;case"expression":return"sourceRange"in t&&iSe(e.sourceRange,t.sourceRange)}}function iSe(e,t){return e.startLine===t.startLine&&e.startColumn===t.startColumn&&e.endLine===t.endLine&&e.endColumn===t.endColumn}function sSe(e,t){let r=null;return KP(e,{JSXElement(i){let n=i.node.loc;n&&n.start.line===t.sourceRange.startLine&&n.start.column===t.sourceRange.startColumn&&n.end.line===t.sourceRange.endLine&&n.end.column===t.sourceRange.endColumn&&(r=i,i.stop())}}),r}function aSe(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1){let i=e[r],n=t[r];if(i.kind!==n.kind)return!1;if(i.kind==="property"){if(n.kind!=="property"||i.name!==n.name)return!1;continue}if(n.kind!=="index"||i.index!==n.index)return!1}return!0}var oSe=new Set(["src","alt","poster","caption","width","height"]);function Wa(e,t){let r=e.attributes?.find(n=>n.name===t)??null,i=r?.source;return{attribute:r,attributeLocator:Jn(e,t),valueLocator:i&&(r?.resolvedValue!==void 0||r.value!==i.expression)?{kind:"value",root:{kind:"binding",name:i.base},path:i.path.length>0?i.path:[]}:null}}function Zn(e){return!Array.isArray(e)&&typeof e=="object"&&e!==null}function Bl(e){return typeof e=="string"?"markdown":Array.isArray(e)&&e.every(t=>Zn(t))?"node-array":Zn(e)&&e.type==="doc"&&Array.isArray(e.content)?"prosemirror-doc":null}function Xn(e){return JSON.parse(JSON.stringify(e))}function Mf(e){return e===""?[]:e.split(/\n{2,}/)}function mj(e,t,r){if(typeof r!="string")return null;let i=Mf(e);return t<0||t>i.length?null:(i.splice(t,0,r),i.join(`
|
|
122
|
+
|
|
123
|
+
`))}function yj(e,t){let r=Mf(e);return t<0||t>=r.length?null:(r.splice(t,1),r.join(`
|
|
124
|
+
|
|
125
|
+
`))}function lSe(e,t,r){let i=Mf(e);if(t<0||t>=i.length||r<0||r>=i.length)return null;let[n]=i.splice(t,1);return i.splice(r,0,n),i.join(`
|
|
126
|
+
|
|
127
|
+
`)}function gj(e,t,r,i){if(!Zn(i))return null;if(e==="node-array"){if(!Array.isArray(t))return null;let s=Xn(t);return r<0||r>s.length?null:(s.splice(r,0,Xn(i)),s)}if(!Zn(t)||!Array.isArray(t.content))return null;let n=Xn(t);return!Zn(n)||!Array.isArray(n.content)||r<0||r>n.content.length?null:(n.content.splice(r,0,Xn(i)),n)}function xj(e,t,r){if(e==="node-array"){if(!Array.isArray(t)||r<0||r>=t.length)return null;let n=Xn(t);return n.splice(r,1),n}if(!Zn(t)||!Array.isArray(t.content)||r<0||r>=t.content.length)return null;let i=Xn(t);return!Zn(i)||!Array.isArray(i.content)?null:(i.content.splice(r,1),i)}function cSe(e,t,r,i){let n=e==="node-array"?Array.isArray(t)?Xn(t):null:Zn(t)&&Array.isArray(t.content)?Xn(t.content):null;if(!n||r<0||r>=n.length||i<0||i>=n.length)return null;let[s]=n.splice(r,1);if(n.splice(i,0,s),e==="node-array")return n;let a=Xn(t);return a.content=n,a}function Sj(e,t){return e==="markdown"?typeof t=="string"?Mf(t).length:0:e==="node-array"?Array.isArray(t)?t.length:0:Zn(t)&&Array.isArray(t.content)?t.content.length:0}function uSe(e,t,r,i){return e.relation==="prepend"?0:e.relation==="append"?i:!t?.richTextBlock||t.richTextBlock.field!==r?null:e.relation==="before"?t.richTextBlock.index:t.richTextBlock.index+1}function pSe(e,t,r,i){if(e.relation==="prepend")return 0;if(e.relation==="append")return i-1;let n=t.anchorNode?.richTextBlock;return!n||n.field!==r.field?null:e.relation==="before"?n.index-(r.index<n.index?1:0):n.index+(r.index<n.index?0:1)}function zl(e){if(e.resolvedValue!==void 0)return e.resolvedValue;if(!(e.source&&e.value===e.source.expression))return e.value}function dSe(e){let t=Wa(e,"className");if(!t.attribute)return{ok:!0,target:t,value:""};if(t.attribute.source)return{ok:!1,result:{ok:!1,errorCode:"unsupported-operation",reason:"Style editing requires a static className string"}};let r=zl(t.attribute);return typeof r!="string"?{ok:!1,result:{ok:!1,errorCode:"unsupported-operation",reason:t.attribute.source?"Style binding must resolve to a static className string before it can be edited":"Style editing currently only supports string-backed className values"}}:{ok:!0,target:t,value:r}}var fSe=0,$f=class{constructor(t){this.graph=t}async plan(t){let r=`op-${++fSe}-${Date.now()}`;switch(t.kind){case"update-text":{if(t.params.kind!=="update-text")return{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)};let i=t,n=this.resolveNodeRequest(t);if(!n.ok)return n.result;let s=n.node,a=this.graph.getFileVersion(s.file);return t.documentVersion<a?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${a})`}:this.planUpdateText(r,i,s,this.graph.getCapability(s.key),await this.graph.getTextWriteTarget(s.key,i.params.segmentIndex))}case"remove-node":{if(t.params.kind!=="remove-node")return{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)};let i=t,n=this.resolveNodeRequest(t);if(!n.ok)return n.result;let s=n.node,a=this.graph.getFileVersion(s.file);return t.documentVersion<a?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${a})`}:this.planRemoveNode(r,i,s,this.graph.getCapability(s.key))}case"insert-child":{if(t.params.kind!=="insert-child")return{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)};let i=t,n=fj(i.params.position,this.graph);if(!n.parentNode)return{ok:!1,errorCode:"locator-miss",reason:`Insert target parent for request '${t.id}' not found in graph`};let s=this.graph.getFileVersion(n.parentNode.file);return t.documentVersion<s?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${s})`}:this.planInsertChild(r,i,n.parentNode,this.graph.getCapability(n.parentNode.key),n.anchorNode)}case"move-node":{if(t.params.kind!=="move-node")return{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)};let i=t,n=this.resolveNodeRequest(t);if(!n.ok)return n.result;let s=n.node,a=this.graph.getFileVersion(s.file);return t.documentVersion<a?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${a})`}:this.planMoveNode(r,i,s,this.graph.getCapability(s.key))}case"replace-rich-text-content":case"insert-rich-text-block":case"remove-rich-text-block":case"set-media-field":{let i=this.resolveNodeRequest(t);if(!i.ok)return i.result;let n=i.node,s=this.graph.getFileVersion(n.file);if(t.documentVersion<s)return{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${s})`};switch(t.kind){case"replace-rich-text-content":return t.params.kind!=="replace-rich-text-content"?{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)}:this.planRichTextOperation(r,t,n);case"insert-rich-text-block":return t.params.kind!=="insert-rich-text-block"?{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)}:this.planRichTextOperation(r,t,n);case"remove-rich-text-block":return t.params.kind!=="remove-rich-text-block"?{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)}:this.planRichTextOperation(r,t,n);case"set-media-field":return t.params.kind!=="set-media-field"?{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)}:this.planMediaFieldOperation(r,t,n)}}case"set-component-slot-content":{let i=this.resolveNodeRequest(t);if(!i.ok)return i.result;switch(t.kind){case"set-component-slot-content":return t.params.kind!=="set-component-slot-content"?{ok:!1,errorCode:"unknown",reason:Wn(t.kind,t.params.kind)}:this.planComponentSlotOperation(r,t,i.node)}}case"set-object-field":case"insert-object-field":case"remove-object-field":case"update-array-item":case"insert-array-item":case"remove-array-item":case"move-array-item":{let i=this.resolveNodeRequest(t);if(!i.ok)return i.result;let n=i.node,s=this.graph.getFileVersion(n.file);return t.documentVersion<s?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${s})`}:this.planValueCollectionOperation(r,t,n)}case"replace-conditional-expression":case"set-conditional-branch-content":{let i=this.resolveNodeRequest(t);if(!i.ok)return i.result;let n=i.node,s=this.graph.getFileVersion(n.file);return t.documentVersion<s?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${s})`}:this.planConditionalOperation(r,t,n)}case"set-jsx-prop":case"remove-jsx-prop":case"set-class-name":case"add-class-token":case"remove-class-token":case"set-style-property":case"set-style-properties":case"set-css-module-class":{let i=this.resolveNodeRequest(t);if(!i.ok)return i.result;let n=this.graph.getFileVersion(i.node.file);return t.documentVersion<n?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${n})`}:this.planNodeAttributeOperation(r,t,i.node)}case"set-directive":case"remove-directive":case"set-route-export":case"set-metadata-field":case"set-generate-metadata":{let i=this.resolveRouteRequest(t);if(!i.ok)return i.result;let n=this.graph.getFileVersion(i.file);return t.documentVersion<n?{ok:!1,errorCode:"stale-version",reason:`Document version ${t.documentVersion} is stale (current: ${n})`}:this.planRouteOperation(r,t,i.file)}default:return{ok:!1,errorCode:"unknown",reason:`Unknown operation kind: ${t.kind}`}}}planConditionalOperation(t,r,i){let n=this.graph.getCapability(i.key),s=Xt(i);switch(r.kind){case"replace-conditional-expression":return this.buildPlan(t,r,[{order:0,file:i.file,type:"replace-conditional-expression",locator:s,nextExpression:r.params.nextExpression}],n);case"set-conditional-branch-content":return this.buildPlan(t,r,[{order:0,file:i.file,type:"set-conditional-branch-content",locator:s,branch:r.params.branch,content:r.params.content}],n)}}planRichTextOperation(t,r,i){let n=this.graph.getCapability(i.key),s=Wa(i,r.params.field);if(!s.attribute)return{ok:!1,errorCode:"invalid-params",reason:`Rich text field '${r.params.field}' was not found on the target node`};let a=zl(s.attribute),o=Bl(a);if(!o)return{ok:!1,errorCode:"unsupported-operation",reason:`Rich text field '${r.params.field}' is only editable for markdown strings, top-level node arrays, or { type: 'doc', content: [] } documents`};let c=null;switch(r.kind){case"replace-rich-text-content":if(o==="markdown"&&typeof r.params.value!="string")return{ok:!1,errorCode:"invalid-params",reason:"Markdown rich text replacement requires a string value"};if(o!=="markdown"&&Bl(r.params.value)!==o)return{ok:!1,errorCode:"invalid-params",reason:`Rich text replacement must preserve the '${o}' schema`};c=r.params.value;break;case"insert-rich-text-block":if(c=o==="markdown"?mj(a,r.params.index,r.params.block):gj(o,a,r.params.index,r.params.block),c===null)return{ok:!1,errorCode:"invalid-params",reason:o==="markdown"?"Markdown insert-rich-text-block requires a string block and an in-range block index":"Rich text insert-rich-text-block requires a supported block payload and an in-range block index"};break;case"remove-rich-text-block":if(c=o==="markdown"?yj(a,r.params.index):xj(o,a,r.params.index),c===null)return{ok:!1,errorCode:"invalid-params",reason:"remove-rich-text-block requires an in-range block index"};break}return this.buildPlan(t,r,[this.buildAttributeRewriteStep(i,s,c)],n)}planRichTextBlockInsert(t,r,i,n,s){let a=i.contentModel;if(!a?.operationBoundary.includes("insert-rich-text-block")||r.params.node.kind!=="native-tag"||r.params.node.text===void 0)return null;let o=Wa(i,a.field);if(!o.attribute)return null;let c=zl(o.attribute),u=Bl(c);if(!u)return null;let p=u==="markdown"?r.params.node.text:{type:"paragraph",text:r.params.node.text},d=Sj(u,c),h=uSe(r.params.position,s,a.field,d);if(h===null)return null;let y=u==="markdown"?mj(c,h,p):gj(u,c,h,p);return y===null?{ok:!1,errorCode:"invalid-params",reason:"insert-child could not insert into the rich text field"}:this.buildPlan(t,r,[this.buildAttributeRewriteStep(i,o,y)],n)}planRichTextBlockRemoval(t,r,i,n){let s=i.richTextBlock;if(!s)return{ok:!1,errorCode:"invalid-target",reason:"remove-node target is not a rich text block"};let a=Wa(i,s.field);if(!a.attribute)return{ok:!1,errorCode:"invalid-params",reason:`Rich text field '${s.field}' was not found on the target node`};let o=zl(a.attribute),c=Bl(o);if(!c)return{ok:!1,errorCode:"unsupported-operation",reason:`Rich text field '${s.field}' is not editable`};let u=c==="markdown"?yj(o,s.index):xj(c,o,s.index);return u===null?{ok:!1,errorCode:"invalid-params",reason:"remove-node requires an in-range rich text block index"}:this.buildPlan(t,r,[this.buildAttributeRewriteStep(i,a,u)],n)}planRichTextBlockMove(t,r,i,n,s){let a=i.richTextBlock;if(!a)return{ok:!1,errorCode:"invalid-target",reason:"move-node target is not a rich text block"};let o=Wa(i,a.field);if(!o.attribute)return{ok:!1,errorCode:"invalid-params",reason:`Rich text field '${a.field}' was not found on the target node`};let c=zl(o.attribute),u=Bl(c);if(!u)return{ok:!1,errorCode:"unsupported-operation",reason:`Rich text field '${a.field}' is not editable`};let p=pSe(r.params.target,s,a,Sj(u,c));if(p===null)return{ok:!1,errorCode:"unsupported-operation",reason:"move-node requires a target in the same rich text field"};let d=u==="markdown"?lSe(c,a.index,p):cSe(u,c,a.index,p);return d===null?{ok:!1,errorCode:"invalid-params",reason:"move-node requires in-range rich text block indexes"}:this.buildPlan(t,r,[this.buildAttributeRewriteStep(i,o,d)],n)}planMediaFieldOperation(t,r,i){let n=this.graph.getCapability(i.key);if(!oSe.has(r.params.field))return{ok:!1,errorCode:"unsupported-operation",reason:`Media field '${r.params.field}' is not supported`};let s=Wa(i,r.params.field);return this.buildPlan(t,r,[this.buildAttributeRewriteStep(i,s,r.params.value)],n)}buildAttributeRewriteStep(t,r,i){return r.valueLocator?{order:0,file:t.file,type:"update-value",locator:r.valueLocator,value:i}:{order:0,file:t.file,type:"set-jsx-prop",locator:r.attributeLocator,value:i}}async planComponentSlotOperation(t,r,i){let n=this.graph.getComponentSemantic(i.key);if(!(n?.slotKeys??[]).includes(r.params.slotName))return{ok:!1,errorCode:"unsupported-operation",reason:`Slot '${r.params.slotName}' is not declared for this component`};let a=this.graph.getCapability(i.key),o=this.graph.getEditableTextSegmentIndex(i.key),c=o===null?null:await this.graph.getTextWriteTarget(i.key,o);if(r.params.slotName==="children"){if(!a.canUpdateText||o===null)return{ok:!1,errorCode:"capability-denied",reason:"Children slot content requires an editable text segment"};let d=this.toTextContent(r.params.value);if(d===null)return{ok:!1,errorCode:"unsupported-operation",reason:"Children slot content currently only supports primitive text values"};let h=c?.kind==="value-binding"?[i.file,c.file]:[i.file],y=this.checkDocumentVersion(r.documentVersion,h);return y||this.buildPlan(t,r,this.buildTextRewriteSteps(i,o,d,c),a)}if(n?.editableStrategy==="upstream"&&a.canUpdateText&&o!==null){let d=this.toTextContent(r.params.value);if(d===null)return{ok:!1,errorCode:"unsupported-operation",reason:"Prop-backed slot content currently only supports primitive text values"};let h=c?.kind==="value-binding"?[i.file,c.file]:[i.file],y=this.checkDocumentVersion(r.documentVersion,h);return y||this.buildPlan(t,r,this.buildTextRewriteSteps(i,o,d,c),a)}let u=n?.instanceKey?this.graph.getNode(n.instanceKey):i;if(!u)return{ok:!1,errorCode:"locator-miss",reason:"Component instance for semantic slot edit was not found"};let p=this.checkDocumentVersion(r.documentVersion,[i.file,u.file]);return p||this.buildPlan(t,r,[{order:0,file:u.file,type:"set-jsx-prop",locator:Jn(u,r.params.slotName),value:r.params.value}],a)}async planValueCollectionOperation(t,r,i){let n=this.graph.getCapability(i.key);if(!n.canUpdateText)return{ok:!1,errorCode:"capability-denied",reason:"Cannot update bound value on this node"};let s=await this.graph.getTextWriteTarget(i.key,r.params.segmentIndex);if(!s||s.kind!=="value-binding"||!s.locator)return{ok:!1,errorCode:"unsupported-operation",reason:"Node does not resolve to a writable value path"};let a=s.locator;switch(r.kind){case"set-object-field":{let o=UP(a);return!o||o.kind!=="property"?{ok:!1,errorCode:"invalid-params",reason:"set-object-field requires an object-field value target"}:this.buildPlan(t,r,[{order:0,file:s.file,type:"set-object-field",locator:a,value:r.params.value}],n)}case"insert-object-field":{let o=hj(a);return o?this.buildPlan(t,r,[{order:0,file:s.file,type:"insert-object-field",locator:o,field:r.params.field,value:r.params.value}],n):{ok:!1,errorCode:"invalid-params",reason:"insert-object-field requires an object-field value target"}}case"remove-object-field":{let o=UP(a),c=r.params.field??(o?.kind==="property"?o.name:null),u=hj(a);return!c||!u?{ok:!1,errorCode:"invalid-params",reason:"remove-object-field requires an object-field value target"}:this.buildPlan(t,r,[{order:0,file:s.file,type:"remove-object-field",locator:u,field:c}],n)}case"update-array-item":{if(!ki(a))return{ok:!1,errorCode:"invalid-params",reason:"update-array-item requires an array-backed value target"};let c=r.params.index===void 0?a:s.collectionPathMap?.[r.params.index]?Rf(a,s.collectionPathMap[r.params.index]):tSe(a,BP(r.params.index,s.collectionIndexMap));return c?this.buildPlan(t,r,[{order:0,file:s.file,type:"update-array-item",locator:c,value:r.params.value}],n):{ok:!1,errorCode:"invalid-params",reason:"update-array-item requires an array-backed value target"}}case"insert-array-item":{let o=ki(a);return o?this.buildPlan(t,r,[{order:0,file:s.file,type:"insert-array-item",locator:o.locator,index:Of(r.params.index,s.collectionIndexMap),value:r.params.value}],n):{ok:!1,errorCode:"invalid-params",reason:"insert-array-item requires an array-backed value target"}}case"remove-array-item":{let o=ki(a);return o?this.buildPlan(t,r,[{order:0,file:s.file,type:"remove-array-item",locator:o.locator,index:r.params.index===void 0?o.index:BP(r.params.index,s.collectionIndexMap)}],n):{ok:!1,errorCode:"invalid-params",reason:"remove-array-item requires an array-backed value target"}}case"move-array-item":{let o=ki(a);return o?this.buildPlan(t,r,[{order:0,file:s.file,type:"move-array-item",locator:o.locator,fromIndex:r.params.fromIndex===void 0?o.index:BP(r.params.fromIndex,s.collectionIndexMap),toIndex:Of(r.params.toIndex,s.collectionIndexMap)}],n):{ok:!1,errorCode:"invalid-params",reason:"move-array-item requires an array-backed value target"}}}}resolveNodeRequest(t){let r=$xe(t);if(!r)return{ok:!1,result:{ok:!1,errorCode:"invalid-target",reason:`Operation '${t.kind}' requires a node target`}};let i=this.graph.getNode(r);return i?{ok:!0,node:i}:{ok:!1,result:{ok:!1,errorCode:"locator-miss",reason:`Target key '${r}' not found in graph`}}}resolveRouteRequest(t){let r=jxe(t);if(!r)return{ok:!1,result:{ok:!1,errorCode:"invalid-target",reason:`Operation '${t.kind}' requires a route target`}};let i=this.graph.getRouteEntryFile(r);return i?{ok:!0,file:i}:{ok:!1,result:{ok:!1,errorCode:"route-not-found",reason:`Route '${r}' is not registered`}}}planNodeAttributeOperation(t,r,i){let n=i.file,s=this.graph.getCapability(i.key);switch(r.kind){case"set-jsx-prop":return this.buildPlan(t,r,[{order:0,file:n,type:"set-jsx-prop",locator:Jn(i,r.params.name),value:r.params.value}],s);case"remove-jsx-prop":return this.buildPlan(t,r,[{order:0,file:n,type:"remove-jsx-prop",locator:Jn(i,r.params.name)}],s);case"set-class-name":return this.buildPlan(t,r,[{order:0,file:n,type:"set-class-name",locator:Jn(i,"className"),value:r.params.value}],s);case"add-class-token":return this.buildPlan(t,r,[{order:0,file:n,type:"add-class-token",locator:Jn(i,"className"),token:r.params.token}],s);case"remove-class-token":return this.buildPlan(t,r,[{order:0,file:n,type:"remove-class-token",locator:Jn(i,"className"),token:r.params.token}],s);case"set-style-property":return this.planStyleClassNameOperation(t,r,i,{[r.params.property]:r.params.value});case"set-style-properties":return this.planStyleClassNameOperation(t,r,i,r.params.properties);case"set-css-module-class":return this.buildPlan(t,r,[{order:0,file:n,type:"set-css-module-class",locator:Jn(i,"className"),from:r.params.from,to:r.params.to}],s)}}planStyleClassNameOperation(t,r,i,n){let s=dSe(i);if(!s.ok)return s.result;let a=s.value;for(let[o,c]of Object.entries(n)){let u=x$(a,o,c);if(u===null)return{ok:!1,errorCode:"invalid-params",reason:`CSS style property '${o}' received a value that cannot be mapped to Tailwind`};a=u}return this.buildPlan(t,r,[{order:0,file:i.file,type:"set-class-name",locator:Jn(i,"className"),value:a}],this.graph.getCapability(i.key))}planRouteOperation(t,r,i){let n=this.graph.getFileContent(i);switch(r.kind){case"set-directive":{let s=Lxe(n);return this.buildPlan(t,r,[{order:0,file:i,type:"set-directive",mode:s?"update":"add",currentValue:s??void 0,value:r.params.value}])}case"remove-directive":return this.buildPlan(t,r,[{order:0,file:i,type:"remove-directive",value:r.params.value}]);case"set-route-export":return this.buildPlan(t,r,[{order:0,file:i,type:"set-route-export",name:r.params.name,value:r.params.value}]);case"set-metadata-field":return this.buildPlan(t,r,[{order:0,file:i,type:"set-metadata-field",field:r.params.field,value:r.params.value}]);case"set-generate-metadata":return this.buildPlan(t,r,[{order:0,file:i,type:"set-generate-metadata",field:r.params.field,value:r.params.value}])}}buildTextRewriteSteps(t,r,i,n){return n?.kind==="value-binding"&&n.locator?[{order:0,file:n.file,type:"update-value",locator:n.locator,value:i}]:n?.kind==="external-entry"?[{order:0,file:`external:${n.sourceId}`,type:"invoke-external-adapter",sourceType:n.sourceType,sourceId:n.sourceId,adapterId:n.adapterId,capability:"write-text",value:i}]:[{order:0,file:t.file,type:"update-text",locator:Xt(t),segmentIndex:r,newText:i}]}checkDocumentVersion(t,r){for(let i of new Set(r)){let n=this.graph.getFileVersion(i);if(t<n)return{ok:!1,errorCode:"stale-version",reason:`Document version ${t} is stale (current: ${n})`}}return null}toTextContent(t){return typeof t=="string"?t:typeof t=="number"||typeof t=="boolean"?String(t):null}planUpdateText(t,r,i,n,s){return n.canUpdateText?this.buildPlan(t,r,this.buildTextRewriteSteps(i,r.params.segmentIndex,r.params.value,s),n):{ok:!1,errorCode:"capability-denied",reason:"Cannot update text on this node"}}async planRemoveNode(t,r,i,n){if(!n.canRemove)return{ok:!1,errorCode:"capability-denied",reason:"Cannot remove this node"};if(i.richTextBlock)return this.planRichTextBlockRemoval(t,r,i,n);let s=await this.graph.getTextWriteTarget(i.key,0);if(s?.kind==="external-entry")return this.buildPlan(t,r,[{order:0,file:`external:${s.sourceId}`,type:"invoke-external-adapter",sourceType:s.sourceType,sourceId:s.sourceId,adapterId:s.adapterId,capability:"remove-node",value:{operation:"remove-node"}}],n);if(i.isRepeatItemRoot){let d=s;if(d?.kind==="value-binding"&&d.locator){let h=ki(d.locator);if(h)return this.buildPlan(t,r,[{order:0,file:d.file,type:"remove-array-item",locator:h.locator,index:h.index}],n)}return{ok:!1,errorCode:"unsupported-operation",reason:"Repeat-backed node removal requires a writable array target"}}let a=Nf(i,s,this.graph.getTextProvenance?.(i.key,0)??null);if(a)return{ok:!1,errorCode:"unsupported-operation",reason:a};let o=this.getRepeatBackedTemplateStructureReason(i);if(o)return{ok:!1,errorCode:"unsupported-operation",reason:o};let c=await this.getUpstreamBackedDescendantReason(i);if(c)return{ok:!1,errorCode:"unsupported-operation",reason:c};let u=[{order:0,file:i.file,type:"remove-node",locator:Xt(i),removeWhitespace:!0}],p=this.buildRemoveComponentImportStep(i);return p&&u.push({...p,order:u.length}),this.buildPlan(t,r,u,n)}buildRemoveComponentImportStep(t){if(!t.importedFrom||!t.exportName||!t.tag||Hxe(this.graph.getFileContent(t.file),t.tag)>1)return null;let r=MP(t.file,t.importedFrom);return{order:0,file:t.file,type:"remove-import",moduleSpecifier:r,imports:t.exportName==="default"?[{kind:"default"}]:[{kind:"named",imported:t.exportName}]}}async planInsertChild(t,r,i,n,s){let a=this.planRichTextBlockInsert(t,r,i,n,s);if(a)return a;if(!n.canInsertChild)return{ok:!1,errorCode:"capability-denied",reason:"Cannot insert child into this node"};let o=this.graph.getEditableTextSegmentIndex(i.key),c=o!==null?await this.graph.getTextWriteTarget(i.key,o):null,u=Nf(i,c,o!==null?this.graph.getTextProvenance?.(i.key,o)??null:null);if(u)return{ok:!1,errorCode:"unsupported-operation",reason:u};let p=await this.getUpstreamBackedDescendantReason(i);if(p)return{ok:!1,errorCode:"unsupported-operation",reason:p};let d=await this.planExternalBackedInsertChild(t,r,i,n,s,c);if(d)return d;let h=await this.planRepeatBackedInsertChild(t,r,i,n);if(h)return h;let y=this.getRepeatBackedTemplateStructureReason(i);if(y)return{ok:!1,errorCode:"unsupported-operation",reason:y};let T=cj(this.graph.getFileContent(i.file),i);if(!T.allowed)return{ok:!1,errorCode:"unsupported-operation",reason:T.reason??"Cannot insert child into this node"};let w=Vxe(i,r.params.node);if(w)return{ok:!1,errorCode:"unsupported-operation",reason:w};let k=[],C=0,D=r.params.node.kind==="component-call"?Xxe(r.params.node,this.graph.getFileContent(i.file)):void 0,U=D?.importStep;return U&&k.push({order:C++,file:i.file,type:"add-import",moduleSpecifier:U.moduleSpecifier,imports:U.imports}),k.push({order:C++,file:i.file,type:"insert-child",parentLocator:Xt(i),node:{jsx:Zxe(r.params.node,D?.localName)},placement:r.params.position.relation,anchorLocator:s?Xt(s):void 0}),this.buildPlan(t,r,k,n)}async planExternalBackedInsertChild(t,r,i,n,s,a){let o=a?.kind==="external-entry"?a:await this.findExternalInsertContext(i,s);if(!o)return null;let c=s?await this.graph.getTextWriteTarget(s.key,0):null;return this.buildPlan(t,r,[{order:0,file:`external:${o.sourceId}`,type:"invoke-external-adapter",sourceType:o.sourceType,sourceId:o.sourceId,adapterId:o.adapterId,capability:"insert-child",value:{operation:"insert-child",relation:r.params.position.relation,parentKey:i.key,anchorSourceId:c?.kind==="external-entry"?c.sourceId:null,node:Yxe(r.params.node)}}],n)}async findExternalInsertContext(t,r){if(r){let n=await this.graph.getTextWriteTarget(r.key,0);if(n?.kind==="external-entry")return n}if(!this.graph.getChildNodes)return null;let i=[...this.graph.getChildNodes(t.key)];for(;i.length>0;){let n=i.shift();if(!n)continue;let s=await this.graph.getTextWriteTarget(n.key,0);if(s?.kind==="external-entry")return s;let a=this.graph.getTextProvenance?.(n.key,0)?.finalSource?.externalSource;if(a)return{kind:"external-entry",file:`external:${a.sourceId}`,sourceType:a.sourceType,sourceId:a.sourceId,adapterId:a.adapterId,displayExpression:a.sourceId};i.push(...this.graph.getChildNodes(n.key))}return null}async planRepeatBackedInsertChild(t,r,i,n){if(r.params.position.relation!=="append"&&r.params.position.relation!=="prepend")return null;let s=r.params.node;if(s.kind!=="native-tag"||s.text===void 0||!this.graph.getChildNodes)return null;let a=this.graph.getChildNodes(i.key).find(d=>d.isRepeatItemRoot&&d.tag?.toLowerCase()===s.tag.toLowerCase());if(!a)return null;let o=await this.graph.getTextWriteTarget(a.key,0);if(!o||o.kind!=="value-binding"||!o.locator)return{ok:!1,errorCode:"unsupported-operation",reason:"Repeat-backed insert-child requires a writable value target"};let c=ki(o.locator);if(!c)return{ok:!1,errorCode:"unsupported-operation",reason:"Repeat-backed insert-child requires an array-backed target"};let u=eSe(o.locator,s.text);if(u===void 0)return{ok:!1,errorCode:"unsupported-operation",reason:"Repeat-backed insert-child could not infer an item shape from the template"};let p=r.params.position.relation==="prepend"?Of(0,o.collectionIndexMap):Of(o.collectionIndexMap?.length??c.index+1,o.collectionIndexMap);return this.buildPlan(t,r,[{order:0,file:o.file,type:"insert-array-item",locator:c.locator,index:p,value:u}],n)}async getUpstreamBackedDescendantReason(t){if(!this.graph.getChildNodes)return null;let r=[...this.graph.getChildNodes(t.key)];for(;r.length>0;){let i=r.shift();if(!i)continue;let n=this.graph.getEditableTextSegmentIndex(i.key),s=n!==null?await this.graph.getTextWriteTarget(i.key,n):null,a=Nf(i,s,n!==null?this.graph.getTextProvenance?.(i.key,n)??null:null);if(a)return a;r.push(...this.graph.getChildNodes(i.key))}return null}getRepeatBackedTemplateStructureReason(t){if(t.isRepeatItemRoot)return"Cannot edit repeat-backed item template structure with a generic node operation";if(t.structuralPath.includes("#repeat:")||this.isInsideMapCallback(t))return"Cannot edit repeat-backed child node structure with a generic node operation";let r=t.parentKey;for(;r;){let i=this.graph.getNode(r);if(!i)return null;if(i.isRepeatItemRoot||i.isRepeatRegion)return"Cannot edit repeat-backed child node structure with a generic node operation";r=i.parentKey}return null}isInsideMapCallback(t){let r=Lf(this.graph.getFileContent(t.file));if(!r)return!1;let i=ot(r,Xt(t)),n=i.ok&&i.match.path.isJSXElement()?i.match.path:sSe(r,t);return n?!!n.findParent(s=>{if(!s.isCallExpression())return!1;let a=s.node.callee;return Sr.isMemberExpression(a)&&Sr.isIdentifier(a.property)&&a.property.name==="map"}):!1}async planMoveNode(t,r,i,n){if(!n.canMove)return{ok:!1,errorCode:"capability-denied",reason:"Cannot move this node"};let s=fj(r.params.target,this.graph),a=s.parentNode;if(!a)return{ok:!1,errorCode:"locator-miss",reason:`Target parent for request '${r.id}' not found in graph`};if(i.richTextBlock)return this.planRichTextBlockMove(t,r,i,n,s);if(Qxe(a.key,i.key,this.graph))return{ok:!1,errorCode:"capability-denied",reason:"Cannot move node into its own subtree"};if(i.isRepeatRegion&&a.isBoundary)return{ok:!1,errorCode:"capability-denied",reason:"Cannot move repeat-region node across boundary"};if(!this.graph.getCapability(a.key).canInsertChild)return{ok:!1,errorCode:"capability-denied",reason:"Cannot move node into this parent"};let o=await this.graph.getTextWriteTarget(i.key,0);if(o?.kind==="external-entry"){let k=r.params.target.relation,C=s.anchorNode&&(k==="before"||k==="after")?await this.graph.getTextWriteTarget(s.anchorNode.key,0):null;return this.buildPlan(t,r,[{order:0,file:`external:${o.sourceId}`,type:"invoke-external-adapter",sourceType:o.sourceType,sourceId:o.sourceId,adapterId:o.adapterId,capability:"move-node",value:{operation:"move-node",relation:k,anchorSourceId:C?.kind==="external-entry"?C.sourceId:null,parentKey:"parentKey"in r.params.target?r.params.target.parentKey:null}}],n)}let c=Nf(i,o,this.graph.getTextProvenance?.(i.key,0)??null);if(c)return{ok:!1,errorCode:"unsupported-operation",reason:c};let u=i.file!==a.file,p=r.params.target.relation,d=s.anchorNode;if(i.isRepeatItemRoot&&d?.isRepeatItemRoot&&i.repeatOwnerKey&&i.repeatOwnerKey===d.repeatOwnerKey&&(p==="before"||p==="after")){let k=o,C=await this.graph.getTextWriteTarget(d.key,0);if(k?.kind==="value-binding"&&C?.kind==="value-binding"&&k.locator&&C.locator){let D=ki(k.locator),U=ki(C.locator);if(D&&U&&k.file===C.file&&rSe(D.locator,U.locator)){let z=D.index,q=U.index,ye=p==="before"?q-(z<q?1:0):q+(z<q?0:1);return this.buildPlan(t,r,[{order:0,file:k.file,type:"move-array-item",locator:D.locator,fromIndex:z,toIndex:ye}],n)}}}if(i.isRepeatItemRoot)return{ok:!1,errorCode:"unsupported-operation",reason:"Cannot move repeat-backed item outside its collection"};let h=this.getRepeatBackedTemplateStructureReason(i);if(h)return{ok:!1,errorCode:"unsupported-operation",reason:h};let y=await this.getUpstreamBackedDescendantReason(i);if(y)return{ok:!1,errorCode:"unsupported-operation",reason:y};if(u)return this.planCrossFileMove(t,r,i,a,n,p,d);let T=zxe(this.graph.getFileContent(i.file),i,a);if(!T.ok)return{ok:!1,errorCode:"unsupported-operation",reason:T.reason??`Cannot move node because it depends on bindings outside the target scope: ${T.bindingNames.join(", ")}`};let w=[{order:0,file:i.file,type:"move-node",locator:Xt(i),targetParentLocator:Xt(a),placement:p,anchorLocator:d?Xt(d):void 0}];return this.buildPlan(t,r,w,n)}planCrossFileMove(t,r,i,n,s,a,o){let c=[],u=0,p=this.graph.getFileContent(i.file),d=Rxe(this.graph,i)??`<${i.component} />`,h=uj(p,i);if(!h.allowed)return{ok:!1,errorCode:"unsupported-operation",reason:h.reason??"Cannot move subtree across files"};if(c.push({order:u++,file:i.file,type:"remove-node",locator:Xt(i),removeWhitespace:!0}),i.importedFrom&&i.exportName){let y=i.tag??i.component,T=MP(n.file,i.importedFrom),w=MP(i.file,i.importedFrom),k={moduleSpecifier:T,imports:i.exportName==="default"?[{kind:"default",local:y}]:[{kind:"named",imported:i.exportName,local:y===i.exportName?void 0:y}]};c.push({order:u++,file:n.file,type:"add-import",moduleSpecifier:k.moduleSpecifier,imports:k.imports}),c.push({order:u++,file:n.file,type:"insert-child",parentLocator:Xt(n),node:{jsx:d},placement:a,anchorLocator:o?Xt(o):void 0}),c.push({order:u++,file:i.file,type:"remove-import",moduleSpecifier:w,imports:k.imports.map(C=>C.kind==="default"?{kind:"default"}:{kind:"named",imported:C.imported})})}else c.push({order:u++,file:n.file,type:"insert-child",parentLocator:Xt(n),node:{jsx:d},placement:a,anchorLocator:o?Xt(o):void 0});return this.buildPlan(t,r,c,s)}buildPlan(t,r,i,n){let a=[...new Set(i.map(o=>o.file))].map(o=>({file:o,content:this.graph.getFileContent(o),version:this.graph.getFileVersion(o)}));return{ok:!0,plan:{operationId:t,kind:r.kind,target:r.target,documentVersion:r.documentVersion,steps:i,preSnapshots:a,validatedCapability:n}}}};var Lj=lt(en(),1),Bf=lt(rn(),1),O=lt(Ee(),1);import Ul from"node:path";var sr=lt(Ee(),1);function Ej(e){if(e.path.isVariableDeclarator()){let r=e.path.get("init");return r?.isExpression()?{expressionPath:r}:null}if(!e.path.isIdentifier()||!e.path.parentPath?.isVariableDeclarator())return null;let t=e.path.parentPath.get("init");return t?.isExpression()?{expressionPath:t}:null}function Pj(e,t){if(e.path.isObjectPattern())return t?{propName:t.base,remainingPath:t.path}:null;let r=mSe(e);if(r){let i=Ff(r.node);return i?{propName:i,remainingPath:t?.path??[]}:null}if(e.path.isIdentifier()&&e.path.key===0&&Array.isArray(e.path.container)){let[i,...n]=t?.path??[];return!i||i.kind!=="property"?null:{propName:i.name,remainingPath:n}}return null}function _j(e,t,r){if(e.path.isObjectPattern())for(let o of e.path.get("properties")){if(!o.isObjectProperty())continue;let c=Ff(o.node);if(!c||r&&c!==r)continue;let u=o.get("value");if(!u.isAssignmentPattern())continue;let p=u.get("right");if(p.isExpression())return{propName:c,componentName:t,expressionPath:p,displayPath:`${t}.${c}.default`}}let i=hSe(e);if(!i)return null;let n=i.parentPath;if(!n?.isObjectProperty())return null;let s=Ff(n.node);if(!s||r&&s!==r)return null;let a=i.get("right");return a.isExpression()?{propName:s,componentName:t,expressionPath:a,displayPath:`${t}.${s}.default`}:null}function Ja(e,t,r=[]){if(sr.isIdentifier(e))return e.name===t?r:null;if(sr.isObjectPattern(e)){for(let i of e.properties)if(sr.isObjectProperty(i)){let n=Ff(i);if(!n)continue;let s=Ja(i.value,t,[...r,{kind:"property",name:n}]);if(s)return s}else if(sr.isRestElement(i)){let n=Ja(i.argument,t,r);if(n)return n}}if(sr.isArrayPattern(e))for(let i=0;i<e.elements.length;i+=1){let n=e.elements[i];if(!n)continue;let s=sr.isRestElement(n)?n.argument:n,a=Ja(s,t,[...r,{kind:"index",index:i}]);if(a)return a}return sr.isAssignmentPattern(e)?Ja(e.left,t,r):null}function hSe(e){if(!e.path.isIdentifier())return null;let t=e.path.parentPath;return t?.isAssignmentPattern()&&t.node.left===e.path.node?t:null}function mSe(e){if(!e.path.isIdentifier())return null;let t=e.path.parentPath;if(t?.isObjectProperty()&&t.parentPath?.isObjectPattern())return t;let r=t?.isAssignmentPattern()?t.parentPath:null;return r?.isObjectProperty()&&r.parentPath?.isObjectPattern()?r:null}function Ff(e){return e.computed?null:sr.isIdentifier(e.key)?e.key.name:sr.isStringLiteral(e.key)?e.key.value:null}var Za=typeof Bf.default=="function"?Bf.default:Bf.default.default;function qP(e,t,r){return{kind:"external",file:e,sourceType:"api-field",sourceId:t,displayPath:r,editMode:"readonly",diagnostics:[{code:"external-source-readonly",message:"Dynamic API data is read-only for content edits"}]}}async function Rj(e){let{file:t,source:r,segment:i,readFile:n,exists:s}=e,a=e.fileCache??new Map,o=Fj(a,t,r);if(!o)return null;let c=Bj(o,i.sourceRange);if(!c)return null;let u=i.source??await bs({expression:c.node,scope:c.scope,source:r,currentFile:t,readFile:n,exists:s,fileCache:a,visited:new Set});if(!u){let y=await s0({currentFile:t,expressionPath:c,readFile:n,exists:s,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:a,visited:new Set});if(!y)return null;if(y.kind==="external")return{kind:"external-entry",file:y.file,sourceType:y.sourceType,sourceId:y.sourceId,adapterId:y.adapterId,displayExpression:y.displayPath};let T={kind:"value",root:y.root,path:y.path.length>0?y.path:[]};return{kind:"value-binding",file:y.file,locator:T,root:y.root,path:y.path,displayExpression:y.displayExpression??t0(c.node,r),sourceKind:y.sourceKind,...y.collectionIndexMap?{collectionIndexMap:y.collectionIndexMap}:{},...y.collectionPathMap?{collectionPathMap:y.collectionPathMap}:{}}}let p=new Set,d=await MSe({currentFile:t,expressionPath:c,segment:{...i,source:u},readFile:n,exists:s,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:a,visited:p});if(!d)return null;if(d.kind==="external")return{kind:"external-entry",file:d.file,sourceType:d.sourceType,sourceId:d.sourceId,adapterId:d.adapterId,displayExpression:d.displayPath};let h={kind:"value",root:d.root,path:d.path.length>0?d.path:[]};return{kind:"value-binding",file:d.file,locator:h,root:d.root,path:d.path,displayExpression:d.displayExpression??u.expression,sourceKind:d.sourceKind,...d.collectionIndexMap?{collectionIndexMap:d.collectionIndexMap}:{},...d.collectionPathMap?{collectionPathMap:d.collectionPathMap}:{}}}async function QP(e){let{file:t,source:r,readFile:i,exists:n}=e,s=e.fileCache??new Map,a=Fj(s,t,r);if(!a)return $r("unsupported-expression","Unable to parse source for provenance resolution");let o=new Set;return e.target.kind==="text-segment"?SSe({file:t,source:r,ast:a,segment:e.target.segment,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:o}):bSe({file:t,source:r,ast:a,candidate:e.target.candidate,readFile:i,exists:n,graph:e.graph,fileCache:s,visited:o})}function Mj(e){try{return Lj.parse(e,{sourceType:"module",plugins:["jsx","typescript"]})}catch{return null}}function Fj(e,t,r){let i=e.get(t);if(i?.source===r)return i.ast;let n=Mj(r);return e.set(t,{source:r,ast:n}),n}function Bj(e,t){let r=null,i=-1;return Za(e,{Expression(n){let s=n.node.loc;if(!s||!e0(s,t))return;let a=(n.node.end??0)-(n.node.start??0);a>=i&&(r=n,i=a)}}),r}function ySe(e,t){let r=null,i=Number.POSITIVE_INFINITY;return Za(e,{Expression(n){if(!gSe(n.node.loc,t))return;let s=(n.node.end??0)-(n.node.start??0);s<=i&&(r=n,i=s)}}),r}function zj(e,t){let r=null,i=Number.POSITIVE_INFINITY;return Za(e,{JSXElement(n){let s=n.node.loc;if(!s||!e0(s,t))return;let a=(n.node.end??0)-(n.node.start??0);a<=i&&(r=n,i=a)}}),r}function gSe(e,t){return e?e.start.line===t.startLine&&e.start.column===t.startColumn&&e.end.line===t.endLine&&e.end.column===t.endColumn:!1}function e0(e,t){let r=kj({line:e.start.line,column:e.start.column},{line:t.startLine,column:t.startColumn}),i=kj({line:e.end.line,column:e.end.column},{line:t.endLine,column:t.endColumn});return r>=0&&i<=0}function Uj(e){return e.loc?{startLine:e.loc.start.line,startColumn:e.loc.start.column,endLine:e.loc.end.line,endColumn:e.loc.end.column}:null}function kj(e,t){return e.line!==t.line?e.line<t.line?-1:1:e.column!==t.column?e.column<t.column?-1:1:0}async function bs(e){if(O.isIdentifier(e.expression))return{kind:"identifier",expression:e.expression.name,base:e.expression.name,path:[]};if(!O.isMemberExpression(e.expression))return null;let t=await Hj(e.expression,e.scope,e.currentFile,e.readFile,e.exists,e.fileCache,e.visited);return t?{kind:t.path.some(r=>r.kind==="index")?"index-expression":"member-expression",expression:t0(e.expression,e.source),base:t.base,path:t.path}:null}function t0(e,t){if(t)return r0(e,t);let r=sbe(e);return r?r.path.reduce((i,n)=>n.kind==="property"?`${i}.${n.name}`:`${i}[${n.index}]`,r.base):""}function r0(e,t){return e.start==null||e.end==null?"":t.slice(e.start,e.end)}function Kj(e,t,r){let i=null,n=Number.POSITIVE_INFINITY;return Za(e,{Expression(s){if(r0(s.node,t)!==r)return;let a=(s.node.end??0)-(s.node.start??0);a<=n&&(i=s,n=a)}}),i}function xSe(e,t,r,i){let n=null,s=Number.POSITIVE_INFINITY;return Za(e,{Expression(a){if(r0(a.node,t)!==r)return;let o=a.node.loc;if(!o||!e0(o,i))return;let c=(a.node.end??0)-(a.node.start??0);c<=s&&(n=a,s=c)}}),n}async function SSe(e){let{file:t,source:r,ast:i,segment:n,readFile:s,exists:a,fileCache:o,visited:c}=e,u=Bj(i,n.sourceRange),p=n.source??(u?await bs({expression:u.node,scope:u.scope,source:r,currentFile:t,readFile:s,exists:a,fileCache:o,visited:c}):null);if(!p){if(!u)return vSe(t,n.value);let h=await s0({currentFile:t,expressionPath:u,readFile:s,exists:a,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:o,visited:c});return h?h.kind==="external"?Nj(t,h):YP(t,t0(u.node,r),h):TSe({expression:u.node,scope:u.scope,currentFile:t,source:r,readFile:s,exists:a,fileCache:o,visited:c,functionCallContracts:e.functionCallContracts})}if(!u)return $r("unsupported-expression","Unable to locate text expression for provenance resolution");let d=await Gn({currentFile:t,expressionPath:u,sourceInfo:p,readFile:s,exists:a,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:o,visited:c});if(!d){let h=ZP(u.node);if(h)return $r(h.code,h.message);let y=u.scope.getBinding(p.base);if(y?.path.isVariableDeclarator()){let T=ZP(y.path.node.init);if(T)return $r(T.code,T.message)}return y?.path.isVariableDeclarator()&&O.isCallExpression(y.path.node.init)?ESe("unsupported-expression",Zj(y.path.node.init,e.functionCallContracts)):$r("unsupported-expression",`Unable to resolve provenance for expression "${p.expression}"`)}return d.kind==="external"?Nj(t,d):YP(t,p.expression,d)}async function bSe(e){let{file:t,source:r,ast:i,candidate:n,readFile:s,exists:a,fileCache:o,visited:c}=e;if(!n.conditionSource)return $r("conditional-branch-unresolved",`Unable to resolve conditional branch source for "${n.conditionExpression}"`);let u=Kj(i,r,n.conditionExpression);if(!u)return $r("conditional-branch-unresolved",`Unable to locate conditional expression "${n.conditionExpression}"`);let p=await Gn({currentFile:t,expressionPath:u,sourceInfo:n.conditionSource,readFile:s,exists:a,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:o,visited:c});if(!p)return $r("conditional-branch-unresolved",`Unable to resolve conditional branch source for "${n.conditionExpression}"`);if(p.kind==="external")return $r("conditional-branch-unresolved",`Unable to resolve conditional branch source for "${n.conditionExpression}"`);let d=YP(t,n.conditionExpression,p);return d.finalSource?{...d,finalSource:{...d.finalSource,kind:"conditional-branch",displayPath:n.conditionExpression},chain:[...d.chain,{kind:"conditional-branch",file:p.file,displayName:n.conditionExpression,canEditHere:!0}]}:d}function vSe(e,t){return{finalSource:{kind:"jsx-literal",file:e,locator:null,displayPath:t},chain:[{kind:"jsx-literal",file:e,displayName:t,canEditHere:!0}],confidence:"exact",editMode:"direct",diagnostics:[]}}async function TSe(e){let t=await qj(e);if(t.length===0)return $r("unsupported-expression",`Unsupported expression type: ${e.expression.type}`);if(PSe(e.expression))return Vj(t);if(Xj(e.expression))return $r("unsupported-expression","i18n helpers require a static message id string");if(O.isMemberExpression(e.expression)&&e.expression.computed&&!O.isNumericLiteral(e.expression.property)&&!O.isStringLiteral(e.expression.property))return $r("dynamic-key","Computed member expressions are not supported for provenance resolution");let[r]=t;return $r(r.code,r.message)}function $r(e,t){return{finalSource:null,chain:[],confidence:"unknown",editMode:"unsupported",diagnostics:[{code:e,message:t}]}}function ESe(e,t){return Vj([{code:e,message:t}])}function Vj(e){return{finalSource:null,chain:[],confidence:"partial",editMode:"readonly",diagnostics:e}}function PSe(e){return O.isCallExpression(e)||O.isConditionalExpression(e)||O.isLogicalExpression(e)||O.isBinaryExpression(e)}function Kl(e){let t=new Set;return e.filter(r=>{let i=`${r.code}:${r.message}`;return t.has(i)?!1:(t.add(i),!0)})}async function qj(e){let{expression:t,scope:r,currentFile:i,source:n,readFile:s,exists:a,fileCache:o,visited:c,functionCallContracts:u}=e,p=ZP(t);if(p)return[p];if(O.isCallExpression(t))return[{code:"unsupported-expression",message:Zj(t,u)}];if(O.isMemberExpression(t)&&t.computed){let d=t.property;if(!O.isNumericLiteral(d)&&!O.isStringLiteral(d)){if(!O.isExpression(d))return[{code:"dynamic-key",message:"Computed member expressions are not supported for provenance resolution"}];let y=await cn(d,r,i,s,a,o,c);if(typeof y!="string"&&!Number.isInteger(y))return[{code:"dynamic-key",message:"Computed member expressions are not supported for provenance resolution"}]}}return O.isBinaryExpression(t)?Kl([...await WP(t.left,t.right,e),{code:"unsupported-expression",message:"Mixed expressions are recognized but remain readonly until a safer composition editing strategy is available"}]):O.isLogicalExpression(t)?Kl([...await WP(t.left,t.right,e),{code:"unsupported-expression",message:t.operator==="??"||t.operator==="||"?"Fallback expressions are recognized but remain readonly until a safer composition editing strategy is available":"Complex conditional expressions are recognized but remain readonly until a safer editing strategy is available"}]):O.isConditionalExpression(t)?Kl([...await WP(t.test,t.consequent,t.alternate,e),{code:"unsupported-expression",message:"Complex conditional expressions are recognized but remain readonly until a safer editing strategy is available"}]):[]}function ZP(e){return Xj(e)?Ij("i18n helpers require a static message id string"):wSe(e)?Ij("CMS helpers require static entry id and field path string arguments"):null}async function WP(...e){let t=e[e.length-1],r=e.slice(0,-1),i=[];for(let n of r)i.push(...await qj({...t,expression:n}));return i}function _Se(e,t){let r=(t??[]).filter(i=>i.sourceType===e.sourceType&&(i.capabilities===void 0||i.capabilities.includes("write-text")));if(e.adapterId){let i=r.find(n=>n.adapterId===e.adapterId);if(i)return{adapterId:i.adapterId,editMode:"proxy",diagnostics:[]}}else if(r.length>0)return{adapterId:r[0]?.adapterId,editMode:"proxy",diagnostics:[]};return{adapterId:void 0,editMode:"readonly",diagnostics:[kSe(e.sourceType)]}}async function n0(e){for(let r of DSe){if(!Aj(e.expressionPath,r.helperNames))continue;let i=await r.resolve(e);if(i)return Cj(wj(i),e.externalAdapters)}let t={currentFile:e.currentFile,expressionPath:e.expressionPath,readFile:e.readFile,exists:e.exists,graph:e.graph};for(let r of e.externalSourceResolvers??[]){if(!Aj(e.expressionPath,r.helperNames))continue;let i=await r.resolve(t);if(i)return Cj(wj(i),e.externalAdapters)}return null}function kSe(e){return{code:"missing-adapter",message:`No external adapter is registered for ${e}`}}function ISe(e){return{code:"external-source-readonly",message:e}}function Ij(e){return{code:"unsupported-expression",message:e}}function Wj(e){return!e||!O.isCallExpression(e)?null:O.isIdentifier(e.callee)?e.callee.name:O.isMemberExpression(e.callee)&&!e.callee.computed&&O.isIdentifier(e.callee.object)&&O.isIdentifier(e.callee.property)?`${e.callee.object.name}.${e.callee.property.name}`:null}function Aj(e,t){if(!t||t.length===0)return!0;let r=Wj(e.node);return r?t.includes(r):!1}function wj(e){return"match"in e?{match:e.match,editMode:e.editMode,diagnostics:Kl(e.diagnostics??[])}:{match:e,diagnostics:[]}}function Cj(e,t){let r=_Se(e.match,t);return{kind:"external",file:e.match.file,sourceType:e.match.sourceType,sourceId:e.match.sourceId,adapterId:e.match.adapterId??r.adapterId,displayPath:e.match.displayPath,editMode:e.editMode==="readonly"?"readonly":r.editMode,diagnostics:Kl([...e.diagnostics,...e.editMode==="readonly"||r.editMode==="readonly"?r.diagnostics:[]])}}function ASe(e){if(!e.isCallExpression())return null;let t=e.node.callee;if(!O.isIdentifier(t)||t.name!=="getCmsField")return null;let[r,i]=e.node.arguments;if(!r||!i||!O.isStringLiteral(r)||!O.isStringLiteral(i))return null;let n=r.value,s=i.value;return{sourceType:"cms-field",sourceId:`${n}:${s}`,file:`cms://${n}/${s.replace(/\./g,"/")}`,displayPath:`${n}.${s}`}}function wSe(e){return!!e&&O.isCallExpression(e)&&O.isIdentifier(e.callee)&&e.callee.name==="getCmsField"&&(e.arguments.length<2||!O.isStringLiteral(e.arguments[0])||!O.isStringLiteral(e.arguments[1]))}function Jj(e){if(!(!e||!O.isCallExpression(e))){if(O.isIdentifier(e.callee)&&e.callee.name==="t"){let[t]=e.arguments;return t&&O.isStringLiteral(t)?t.value:null}if(O.isMemberExpression(e.callee)&&!e.callee.computed&&O.isIdentifier(e.callee.object)&&e.callee.object.name==="intl"&&O.isIdentifier(e.callee.property)&&e.callee.property.name==="formatMessage"){let[t]=e.arguments;if(!t||!O.isObjectExpression(t))return null;for(let r of t.properties)if(O.isObjectProperty(r)&&!r.computed&&(O.isIdentifier(r.key)&&r.key.name==="id"||O.isStringLiteral(r.key)&&r.key.value==="id")&&O.isStringLiteral(r.value))return r.value.value;return null}}}function Xj(e){return Jj(e)===null}async function CSe(e,t,r){let i=new Set,n=Ul.posix.dirname(e);for(;i.add(n),!(n==="."||n==="/");){let s=Ul.posix.dirname(n);if(s===n){i.add(".");break}n=s}i.add("src"),i.add(".");for(let s of i){let a=s==="."?["locales","messages"]:[Ul.posix.join(s,"locales"),Ul.posix.join(s,"messages")];for(let o of a){let c=Ul.posix.join(o,`${t}.json`);if(await r(c))return c}}return null}async function NSe(e){let t=Jj(e.expressionPath.node);if(typeof t!="string"||t.length===0)return null;let r="en",i=await CSe(e.currentFile,r,e.exists);return i?{sourceType:"i18n-message",sourceId:`${r}:${t}`,file:i,displayPath:t}:null}async function OSe(e){if(!e.expressionPath.isCallExpression())return null;let t=e.expressionPath.node.callee;if(!O.isIdentifier(t)||t.name!=="apiField")return null;let[r,i]=e.expressionPath.node.arguments;if(!r||!O.isExpression(r))return null;let n=await cn(r,e.expressionPath.scope,e.currentFile,e.readFile,e.exists,e.fileCache,e.visited);if(typeof n!="string"||n.length===0)return null;let s={sourceType:"api-field",sourceId:n,file:`api://${n}`,displayPath:n};return i?{match:s,editMode:"readonly",diagnostics:[ISe("API mapping transforms must stay readonly until a reversible mapping strategy is registered")]}:s}var DSe=[{helperNames:["getCmsField"],resolve:({expressionPath:e})=>ASe(e)},{helperNames:["apiField"],resolve:e=>OSe(e)},{helperNames:["t","intl.formatMessage"],resolve:({currentFile:e,expressionPath:t,exists:r})=>NSe({currentFile:e,expressionPath:t,exists:r})}];function Nj(e,t){return{finalSource:{kind:t.sourceType,file:t.file,locator:null,displayPath:t.displayPath,externalSource:{sourceType:t.sourceType,sourceId:t.sourceId,adapterId:t.adapterId}},chain:[...t.chainPrefix??[],{kind:t.sourceType,file:t.file,displayName:t.displayPath,canEditHere:t.editMode!=="readonly"}],confidence:"exact",editMode:t.editMode==="direct"?t.file===e?"direct":"proxy":t.editMode,diagnostics:t.diagnostics}}function YP(e,t,r){let i={kind:"value",root:r.root,path:r.path.length>0?r.path:[]},n=r.path.some(u=>u.kind==="index"),s=RSe(r),a;r.semanticKind?a=r.semanticKind:s?a="config-entry":r.sourceKind==="repeat-template"?a="repeat-template":r.path.length===0?a=r.sourceKind==="imported-binding"?"imported-binding":"binding":a=n?"array-item":"object-field";let o=r.displayExpression??t,c=[...r.chainPrefix??[]];return r.sourceKind==="binding"?c.push({kind:"binding",file:r.file,displayName:r.root.kind==="binding"?r.root.name:o,canEditHere:!0}):r.sourceKind==="imported-binding"?c.push({kind:"imported-binding",file:r.file,displayName:r.root.kind==="named-export"?r.root.name:"default",canEditHere:!0}):r.sourceKind==="repeat-template"&&c.push({kind:"repeat-template",file:r.file,displayName:t,canEditHere:!0}),r.path.length>0&&r.sourceKind!=="repeat-template"&&c.push({kind:n?"array-item":"object-field",file:r.file,displayName:o,canEditHere:!0}),s&&c.push({kind:"config-entry",file:r.file,displayName:s.displayPath,canEditHere:!0}),{finalSource:{kind:a,file:r.file,locator:i,root:r.root,path:r.path,displayPath:o,externalSource:s?{sourceType:"config-entry",sourceId:s.sourceId}:void 0},chain:c,confidence:r.sourceKind==="repeat-template"?"safe-derived":"exact",editMode:r.editMode??(r.file===e?"direct":"proxy"),diagnostics:r.diagnostics??[]}}var $Se=[{helperName:"formatPrice",purity:"pure",sourceArgIndex:0},{helperName:"formatDate",purity:"pure",sourceArgIndex:0},{helperName:"pickLabel",purity:"pure",sourceArgIndex:0}];function i0(e,t){let r=[...$Se,...t??[]];for(let i=r.length-1;i>=0;i-=1){let n=r[i];if(n?.helperName===e)return n}return null}function Zj(e,t){let r=e.callee;return O.isIdentifier(r)&&i0(r.name,t)?.purity==="side-effect"?`Helper "${r.name}" is registered as side-effectful and remains readonly`:"Function calls are recognized but remain readonly until a pure-call strategy is registered"}async function s0(e){let t=await n0(e);if(t)return t;if(e.expressionPath.isTemplateLiteral()){let r=e.expressionPath.node.expressions[0],i=e.expressionPath.get("expressions.0");if(e.expressionPath.node.expressions.length===1&&r&&i&&!Array.isArray(i)&&i.isExpression()){let n=await bs({expression:i.node,scope:i.scope,source:e.fileCache.get(e.currentFile)?.source,currentFile:e.currentFile,readFile:e.readFile,exists:e.exists,fileCache:e.fileCache,visited:e.visited});if(n){let s=await Gn({...e,expressionPath:i,sourceInfo:n});if(s&&s.kind==="value")return{...s,displayExpression:n.expression,editMode:"readonly",diagnostics:[{code:"unsupported-expression",message:"Mixed expressions are recognized but remain readonly until a safer composition editing strategy is available"}]}}}}return await jSe(e)}async function jSe(e){if(!e.expressionPath.isCallExpression())return null;let t=Wj(e.expressionPath.node);if(!t)return null;let r=i0(t,e.functionCallContracts);if(!r||r.purity!=="pure")return null;let i=r.sourceArgIndex??0,n=e.expressionPath.get(`arguments.${i}`);return!n||Array.isArray(n)||!n.isExpression()?null:await Yj({currentFile:e.currentFile,argumentPath:n,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited})}async function Yj(e){let t=await n0({currentFile:e.currentFile,expressionPath:e.argumentPath,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});if(t)return t;let r=await bs({expression:e.argumentPath.node,scope:e.argumentPath.scope,source:e.fileCache.get(e.currentFile)?.source,currentFile:e.currentFile,readFile:e.readFile,exists:e.exists,fileCache:e.fileCache,visited:e.visited});if(r){let i=await Gn({currentFile:e.currentFile,expressionPath:e.argumentPath,sourceInfo:r,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});return!i||i.kind==="external"?i:{...i,displayExpression:r.expression}}return await s0({currentFile:e.currentFile,expressionPath:e.argumentPath,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited})}async function LSe(e){if(!e.binding.path.isVariableDeclarator())return null;let t=e.binding.path.node.init;if(!t||!O.isCallExpression(t))return null;let r=t.callee;if(!O.isIdentifier(r))return null;let i=i0(r.name,e.functionCallContracts);if(!i||i.purity!=="pure")return null;let n=i.sourceArgIndex??0,s=e.binding.path.get("init");if(!s||Array.isArray(s)||!s.isCallExpression())return null;let a=s.get(`arguments.${n}`);return!a||Array.isArray(a)||!a.isExpression()?null:await Yj({currentFile:e.currentFile,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited,argumentPath:a})}function RSe(e){if(e.sourceKind!=="imported-binding")return null;let t=e.root.kind==="binding"||e.root.kind==="named-export"?e.root.name:e.root.kind==="default-export"?"default":null;if(!t)return null;let r=/(^|[\/.-])(config|settings)([\/.-]|$)/i.test(e.file),i=/config|settings/i.test(t);if(!r&&!i)return null;let n=zf(t,e.path);return{sourceId:n,displayPath:n}}async function MSe(e){let t=e.segment.source;return t?Gn({currentFile:e.currentFile,expressionPath:e.expressionPath,sourceInfo:t,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited}):null}async function Gn(e){let t=e.sourceInfo,r=FSe(e.expressionPath,t.base);if(r&&(t.path.length>0||r.basePath.length>0)){let u=await zSe({currentFile:e.currentFile,callPath:r.callPath,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,fileCache:e.fileCache,visited:e.visited});if(!u){let w=Oj(r.callPath,[...r.basePath,...t.path]);return Va(w)?qP(e.currentFile,w.sourceId,w.displayPath):null}let p=abe(u,[...r.basePath,...t.path]),d=u.collectionIndexMap?.[0]??0,h=[...u.pathPrefix??[],{kind:"index",index:d},...r.basePath,...t.path],y=[{kind:"index",index:0},...r.basePath,...t.path];return Yn(u.value,y)===void 0?null:{kind:"value",file:u.file,root:u.root,path:p?.[0]??h,sourceKind:"repeat-template",collectionIndexMap:u.collectionIndexMap,...p?{collectionPathMap:p}:{}}}if(r){let u=Oj(r.callPath,[]);return Va(u)?qP(e.currentFile,u.sourceId,u.displayPath):null}let i=e.expressionPath.scope.getBinding(t.base);if(!i)return null;let n=Ej(i);if(n){let u=n.expressionPath,p=await bs({expression:u.node,scope:u.scope,currentFile:e.currentFile,readFile:e.readFile,exists:e.exists,fileCache:e.fileCache,visited:e.visited});if(p){let d=await Gn({...e,expressionPath:u,sourceInfo:{...p,expression:zf(p.expression,t.path),path:[...p.path,...t.path]}});if(d)return d}}if(i.kind==="param")return QSe({currentFile:e.currentFile,binding:i,sourceInfo:t,graph:e.graph,readFile:e.readFile,exists:e.exists,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});let s=await LSe({currentFile:e.currentFile,binding:i,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});if(s)return s;let a=kf(i,t.path);if(Va(a))return qP(e.currentFile,a.sourceId,a.displayPath);let o=await Xa({currentFile:e.currentFile,binding:i,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});return o?o.kind==="external"?t.path.length===0?o:null:Yn(o.value,t.path)===void 0?null:{kind:"value",file:o.file,root:o.root,path:t.path,sourceKind:o.sourceKind,collectionIndexMap:o.collectionIndexMap}:null}function FSe(e,t){let r=e.scope.getBinding(t);if(!r)return null;let i=r.path.getFunctionParent();if(!i||!i.isArrowFunctionExpression()&&!i.isFunctionExpression())return null;let n=i.node.params[0],s=Ja(n,t);if(!s)return null;let a=i.parentPath;return!a||!a.isCallExpression()||!BSe(a,i)?null:{callPath:a,basePath:s}}function BSe(e,t){let r=e.node.callee;return!O.isMemberExpression(r)||!O.isIdentifier(r.property)||r.property.name!=="map"?!1:e.node.arguments.some(i=>i===t.node)}async function zSe(e){let{currentFile:t,callPath:r,readFile:i,exists:n,fileCache:s,visited:a}=e,o=r.node.callee;if(!O.isMemberExpression(o)||!O.isIdentifier(o.property)||o.property.name!=="map")return null;let c=r.get("callee");if(!c.isMemberExpression())return null;let u=c.get("object");if(Array.isArray(u)||!u.isExpression())return null;let p=await Vl({currentFile:t,expressionPath:u,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});return!p||!Array.isArray(p.value)||p.value.length===0?null:p}function Oj(e,t){let r=e.get("callee");if(!r.isMemberExpression())return null;let i=r.get("object");return Array.isArray(i)||!i.isExpression()?null:Af(i,t)}async function Vl(e){let{currentFile:t,expressionPath:r,readFile:i,exists:n,fileCache:s,visited:a}=e;if(r.isIdentifier()){let o=r.scope.getBinding(r.node.name);if(!o)return null;let c=await Xa({currentFile:t,binding:o,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});return c?.kind==="static"?c:null}if(r.isCallExpression())return Gj({currentFile:t,callPath:r,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});if(r.isTSAsExpression()||r.isTSSatisfiesExpression()||r.isTSNonNullExpression()){let o=r.get("expression");if(!Array.isArray(o)&&o.isExpression())return Vl({...e,expressionPath:o})}if(r.isArrayExpression()){let o=Uj(r.node);if(!o)return null;let c=await cn(r.node,r.scope,t,i,n,s,a);return Array.isArray(c)?{kind:"static",file:t,root:{kind:"expression",sourceRange:o},value:c,sourceKind:"binding"}:null}if(r.isMemberExpression()){let o=await bs({expression:r.node,scope:r.scope,currentFile:t,readFile:i,exists:n,fileCache:s,visited:a});if(!o)return null;let c=await Gn({currentFile:t,expressionPath:r,sourceInfo:o,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});if(!c||c.kind==="external")return null;let u=await USe({currentFile:t,expressionPath:r,provenance:c,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});if(!u||u.kind!=="static")return null;if(c.collectionPathMap?.length){let d=obe(u.value,c.collectionPathMap);if(d)return{kind:"static",file:c.file,root:c.root,value:d.value,sourceKind:c.sourceKind,collectionPathMap:d.collectionPathMap}}let p=Yn(u.value,c.path);return Array.isArray(p)?{kind:"static",file:c.file,root:c.root,value:p,sourceKind:c.sourceKind,pathPrefix:c.path,collectionIndexMap:c.collectionIndexMap,collectionPathMap:c.collectionPathMap}:null}return null}async function USe(e){let{provenance:t}=e;if(t.root.kind==="binding"){let s=e.expressionPath.scope.getBinding(t.root.name);return s?await Xa({currentFile:e.currentFile,binding:s,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited}):null}if(t.root.kind!=="expression")return null;let r=await ql(t.file,e.readFile,e.fileCache);if(!r.ast)return null;let i=ySe(r.ast,t.root.sourceRange);if(!i)return null;let n=await cn(i.node,i.scope,t.file,e.readFile,e.exists,e.fileCache,e.visited);return n===void 0?null:{kind:"static",file:t.file,root:t.root,value:n,sourceKind:t.sourceKind}}async function Gj(e){return await KSe(e)??await VSe(e)??await qSe(e)}async function KSe(e){let{callPath:t}=e,r=t.node.callee;if(!O.isMemberExpression(r)||!O.isIdentifier(r.property)||r.property.name!=="filter")return null;let i=t.get("callee");if(!i.isMemberExpression())return null;let n=i.get("object");if(Array.isArray(n)||!n.isExpression())return null;let s=await Vl({currentFile:e.currentFile,expressionPath:n,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});if(!s||!Array.isArray(s.value))return null;let[a]=t.node.arguments;if(!O.isArrowFunctionExpression(a)&&!O.isFunctionExpression(a))return null;let o=a.params[0];if(!O.isIdentifier(o))return null;let c=WSe(a);if(!c)return null;let u=[],p=[],d=[];for(let[h,y]of s.value.entries()){let T=JSe(c,o.name,y);if(typeof T!="boolean")return null;if(T){u.push(y),p.push(s.collectionIndexMap?.[h]??h);let w=s.collectionPathMap?.[h];w&&d.push(w)}}return{...s,value:u,pathPrefix:s.pathPrefix,collectionIndexMap:p,...d.length>0?{collectionPathMap:d}:{}}}async function VSe(e){let{callPath:t}=e,r=t.node.callee;if(!O.isMemberExpression(r)||!O.isIdentifier(r.property)||r.property.name!=="slice")return null;let i=t.get("callee");if(!i.isMemberExpression())return null;let n=i.get("object");if(Array.isArray(n)||!n.isExpression())return null;let s=await Vl({currentFile:e.currentFile,expressionPath:n,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});if(!s||!Array.isArray(s.value))return null;let[a,o]=t.node.arguments,c=Dj(a,0),u=Dj(o,s.value.length);if(c===null||u===null)return null;let p=Math.max(0,c<0?s.value.length+c:c),d=Math.max(0,u<0?s.value.length+u:u),h=s.value.map((T,w)=>s.collectionIndexMap?.[w]??w).slice(p,d),y=s.collectionPathMap?.slice(p,d);return{...s,value:s.value.slice(p,d),pathPrefix:s.pathPrefix,collectionIndexMap:h,...y?{collectionPathMap:y}:{}}}function Dj(e,t){return e?O.isNumericLiteral(e)&&Number.isInteger(e.value)?e.value:null:t}async function qSe(e){let{callPath:t}=e,r=t.node.callee;if(!O.isMemberExpression(r)||!O.isIdentifier(r.property)||r.property.name!=="sort"&&r.property.name!=="toSorted")return null;let i=t.get("callee");if(!i.isMemberExpression())return null;let n=i.get("object");if(Array.isArray(n)||!n.isExpression())return null;let s=await Vl({currentFile:e.currentFile,expressionPath:n,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});if(!s||!Array.isArray(s.value))return null;let[a]=t.node.arguments;if(!O.isArrowFunctionExpression(a)&&!O.isFunctionExpression(a))return null;let[o,c]=a.params;if(!O.isIdentifier(o)||!O.isIdentifier(c))return null;let u=s.value.map((d,h)=>({value:d,sourceIndex:s.collectionIndexMap?.[h]??h,originalIndex:h})),p=[...u];for(let d of u)for(let h of u)if($j(a,o.name,c.name,d.value,h.value)===void 0)return null;return p.sort((d,h)=>{let y=$j(a,o.name,c.name,d.value,h.value)??0;return y===0?d.originalIndex-h.originalIndex:y}),{...s,value:p.map(d=>d.value),pathPrefix:s.pathPrefix,collectionIndexMap:p.map(d=>d.sourceIndex),...s.collectionPathMap?{collectionPathMap:p.map(d=>s.collectionPathMap?.[d.originalIndex]).filter(d=>!!d)}:{}}}function $j(e,t,r,i,n){let s=O.isExpression(e.body)?e.body:e.body.body.find(o=>O.isReturnStatement(o))?.argument;if(!s||!O.isExpression(s))return;let a=GP(s,t,r,i,n);return typeof a=="number"?a:void 0}function GP(e,t,r,i,n){if(O.isNumericLiteral(e)||O.isStringLiteral(e)||O.isBooleanLiteral(e))return e.value;if(O.isIdentifier(e))return e.name===t?i:e.name===r?n:void 0;if(O.isMemberExpression(e)){let s=HP(e,t);if(s)return Yn(i,s);let a=HP(e,r);return a?Yn(n,a):void 0}if(O.isBinaryExpression(e)&&e.operator==="-"){let s=O.isExpression(e.left)?GP(e.left,t,r,i,n):void 0,a=O.isExpression(e.right)?GP(e.right,t,r,i,n):void 0;return typeof s=="number"&&typeof a=="number"?s-a:void 0}}function WSe(e){if(O.isExpression(e.body))return e.body;for(let t of e.body.body)if(O.isReturnStatement(t)&&t.argument&&O.isExpression(t.argument))return t.argument;return null}function JSe(e,t,r){let i=Ss(e,t,r);return typeof i=="boolean"?i:void 0}function Ss(e,t,r){if(O.isStringLiteral(e)||O.isNumericLiteral(e)||O.isBooleanLiteral(e))return e.value;if(O.isNullLiteral(e))return null;if(O.isIdentifier(e))return e.name===t?r:void 0;if(O.isMemberExpression(e)){let i=HP(e,t);return i?Yn(r,i):void 0}if(O.isUnaryExpression(e)&&e.operator==="!"){let i=Ss(e.argument,t,r);return i===void 0?void 0:!i}if(O.isLogicalExpression(e)){let i=Ss(e.left,t,r);if(i===void 0)return;if(e.operator==="&&")return i&&Ss(e.right,t,r);if(e.operator==="||")return i||Ss(e.right,t,r)}if(O.isBinaryExpression(e)){let i=O.isExpression(e.left)?Ss(e.left,t,r):void 0,n=O.isExpression(e.right)?Ss(e.right,t,r):void 0;if(i===void 0||n===void 0)return;switch(e.operator){case"===":return i===n;case"!==":return i!==n;case"==":return i==n;case"!=":return i!=n;default:return}}}function HP(e,t){let r=[],i=e;for(;O.isMemberExpression(i);){if(i.computed)if(O.isNumericLiteral(i.property))r.unshift({kind:"index",index:i.property.value});else if(O.isStringLiteral(i.property))r.unshift({kind:"property",name:i.property.value});else return null;else{if(!O.isIdentifier(i.property))return null;r.unshift({kind:"property",name:i.property.name})}i=i.object}return!O.isIdentifier(i)||i.name!==t?null:r}async function Xa(e){let{currentFile:t,binding:r,readFile:i,exists:n,fileCache:s,visited:a}=e,o=`${t}::${r.kind}::${r.identifier.name}`;if(a.has(o))return null;a.add(o);try{let c=await XSe({currentFile:t,binding:r,readFile:i,exists:n,fileCache:s,visited:a});if(c)return c;if(r.path.isImportSpecifier()||r.path.isImportDefaultSpecifier())return await rbe({currentFile:t,binding:r,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,fileCache:s,visited:a});if(r.kind==="param")return null;if(r.path.isVariableDeclarator()){let u=r.path.node.init;if(!u||!O.isExpression(u))return null;let p=r.path.get("init");if(p&&!Array.isArray(p)&&p.isExpression()){let h=await n0({currentFile:t,expressionPath:p,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});if(h)return h;if(p.isCallExpression()){let y=await Gj({currentFile:t,callPath:p,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});if(y)return y}}let d=await cn(u,r.path.scope,t,i,n,s,a);return d===void 0?null:{kind:"static",file:t,root:{kind:"binding",name:r.identifier.name},value:d,sourceKind:"binding"}}if(r.path.isIdentifier()&&r.path.parentPath?.isExportDefaultDeclaration()){let u=r.path.parentPath.node.declaration;if(!O.isExpression(u))return null;let p=await cn(u,r.path.scope,t,i,n,s,a);return p===void 0?null:{kind:"static",file:t,root:{kind:"binding",name:r.identifier.name},value:p,sourceKind:"binding"}}return null}finally{a.delete(o)}}async function XSe(e){let{currentFile:t,binding:r,readFile:i,exists:n,fileCache:s,visited:a}=e;if(!r.path.isVariableDeclarator()||!r.path.get("id").isArrayPattern())return null;let o=r.path,c=o.node.init;if(!c||!O.isCallExpression(c))return null;let u=ZSe(c);if(!u||!O.isArrayPattern(o.node.id)||o.node.id.elements.findIndex(T=>O.isIdentifier(T)&&T.name===r.identifier.name)!==0)return null;let d=u==="useReducer"?1:0,h=c.arguments[d];if(!h||!O.isExpression(h))return null;let y=await cn(h,o.scope,t,i,n,s,a);return y===void 0?null:{kind:"static",file:t,root:{kind:"hook-state",name:r.identifier.name,hook:u},value:y,sourceKind:"binding"}}function ZSe(e){return O.isIdentifier(e.callee)&&(e.callee.name==="useState"||e.callee.name==="useReducer")?e.callee.name:O.isMemberExpression(e.callee)&&O.isIdentifier(e.callee.property)&&(e.callee.property.name==="useState"||e.callee.property.name==="useReducer")?e.callee.property.name:null}function YSe(e){let t=e.getFunctionParent();if(!t)return null;if(t.isFunctionDeclaration()){let a=t.node.id?.name;if(!a)return null;let o=t.parentPath?.isExportDefaultDeclaration()?"default":(t.parentPath?.isExportNamedDeclaration(),a);return{componentName:a,exportName:o}}if(!t.isArrowFunctionExpression()&&!t.isFunctionExpression())return null;let r=t.parentPath;if(!r?.isVariableDeclarator()||!O.isIdentifier(r.node.id))return null;let i=r.node.id.name,n=r.parentPath,s=n?.parentPath?.isExportDefaultDeclaration()?"default":(n?.parentPath?.isExportNamedDeclaration(),i);return{componentName:i,exportName:s}}function GSe(e,t){let r=YSe(e.path);if(!r)return null;let i=Pj(e,t);return i?{...r,...i}:null}function zf(e,t){return t.reduce((r,i)=>i.kind==="property"?`${r}.${i.name}`:`${r}[${i.index}]`,e)}function HSe(e,t,r,i){return e.importedFrom===t?i?e.exportName===i:!0:e.sourceFile===t&&e.tag===r}async function QSe(e){let t=GSe(e.binding,e.sourceInfo);if(!t||!e.graph)return null;let r=[...e.graph.elements.values()].filter(u=>HSe(u,e.currentFile,t.componentName,t.exportName));if(r.length!==1)return null;let i=r[0],n=i.attributes?.find(u=>u.name===t.propName);if(n&&!n.source){let u=await ebe({caller:i,propName:t.propName,remainingPath:t.remainingPath,readFile:e.readFile,fileCache:e.fileCache});if(u)return JP(u,{componentName:t.componentName,propName:t.propName,file:i.sourceFile})}if(!n?.source){let u=await tbe({caller:i,propName:t.propName,remainingPath:t.remainingPath,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});if(u)return JP(u,{componentName:t.componentName,propName:t.propName,file:i.sourceFile});let p=_j(e.binding,t.componentName,t.propName);if(!p||p.propName!==t.propName)return null;let d=await cn(p.expressionPath.node,p.expressionPath.scope,e.currentFile,e.readFile,e.exists,e.fileCache,e.visited);if(d===void 0)return null;let h=t.remainingPath;return h.length>0&&Yn(d,h)===void 0?null:{kind:"value",file:e.currentFile,root:{kind:"binding",name:t.propName},path:h,sourceKind:"binding",semanticKind:"component-prop",displayExpression:p.displayPath,chainPrefix:[{kind:"component-prop",file:e.currentFile,displayName:p.displayPath,canEditHere:!0}],editMode:"upstream",diagnostics:[]}}let s=await ql(i.sourceFile,e.readFile,e.fileCache);if(!s.ast)return null;let a=xSe(s.ast,s.source,n.source.expression,n.sourceRange)??Kj(s.ast,s.source,n.source.expression);if(!a)return null;let o={...n.source,expression:zf(n.source.expression,t.remainingPath),path:[...n.source.path,...t.remainingPath]},c=await Gn({currentFile:i.sourceFile,expressionPath:a,sourceInfo:o,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});return c?JP(c.kind==="external"?c:{...c,displayExpression:o.expression},{componentName:t.componentName,propName:t.propName,file:i.sourceFile}):null}async function ebe(e){let t=await ql(e.caller.sourceFile,e.readFile,e.fileCache);if(!t.ast)return null;let r=zj(t.ast,e.caller.sourceRange);if(!r)return null;let i=r.get("openingElement").get("attributes").find(o=>o.isJSXAttribute()&&o.node.name.type==="JSXIdentifier"&&o.node.name.name===e.propName);if(!i?.isJSXAttribute())return null;let n=i.get("value"),s=n.isStringLiteral()?n:n.isJSXExpressionContainer()?n.get("expression"):null;if(!s?.isExpression())return null;let a=Uj(s.node);return a?{kind:"value",file:e.caller.sourceFile,root:{kind:"expression",sourceRange:a},path:e.remainingPath,sourceKind:"binding",semanticKind:"component-prop",displayExpression:e.propName,editMode:"upstream",diagnostics:[]}:null}async function tbe(e){let t=await ql(e.caller.sourceFile,e.readFile,e.fileCache);if(!t.ast)return null;let r=zj(t.ast,e.caller.sourceRange);if(!r)return null;let i=r.get("openingElement");for(let n of i.get("attributes")){if(!n.isJSXSpreadAttribute())continue;let s=n.get("argument");if(!s.isExpression())continue;let a=await bs({expression:s.node,scope:s.scope,source:t.source,currentFile:e.caller.sourceFile,readFile:e.readFile,exists:e.exists,fileCache:e.fileCache,visited:e.visited});if(!a)continue;let o=[{kind:"property",name:e.propName},...e.remainingPath],c={...a,expression:zf(a.expression,o),path:[...a.path,...o]},u=await Gn({currentFile:e.caller.sourceFile,expressionPath:s,sourceInfo:c,readFile:e.readFile,exists:e.exists,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:e.fileCache,visited:e.visited});if(u)return u.kind==="external"?u:{...u,displayExpression:c.expression}}return null}function JP(e,t){let r=[{kind:"component-prop",file:t.file,displayName:`${t.componentName}.${t.propName}`,canEditHere:!0}];return e.kind==="external"?{...e,chainPrefix:[...r,...e.chainPrefix??[]],editMode:e.editMode==="readonly"?"readonly":"upstream"}:{...e,chainPrefix:[...r,...e.chainPrefix??[]],editMode:"upstream"}}async function rbe(e){let{currentFile:t,binding:r,readFile:i,exists:n,fileCache:s,visited:a}=e,o=r.path.parentPath;if(!o||!o.isImportDeclaration())return null;let c=o.node.source.value;if(typeof c!="string")return null;let u=await Dl(t,c,n);if(!u)return null;if(r.path.isImportDefaultSpecifier()){let y=await jj({file:u,exportName:"default",readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});return!y||y.kind!=="static"?null:{kind:"static",file:u,root:{kind:"default-export"},value:y.value,sourceKind:"imported-binding"}}if(!r.path.isImportSpecifier())return null;let p=r.path.node.imported,d=O.isIdentifier(p)?p.name:p.value,h=await jj({file:u,exportName:d,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a});return h?h.kind==="external"?h:{kind:"static",file:u,root:{kind:"named-export",name:d},value:h.value,sourceKind:"imported-binding"}:null}async function jj(e){let{file:t,exportName:r,readFile:i,exists:n,fileCache:s,visited:a}=e,o=await ql(t,i,s);if(!o.ast)return;let c=ibe(o.ast,r);if(!c||c.kind==="default-expression")return;let u=c.name;if(!u)return;let p=nbe(o.ast).getBinding(u);return p?await Xa({currentFile:t,binding:p,readFile:i,exists:n,graph:e.graph,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters,functionCallContracts:e.functionCallContracts,fileCache:s,visited:a})??void 0:void 0}function nbe(e){let t=null;if(Za(e,{Program(r){t=r.scope,r.stop()}}),!t)throw new Error("Unable to determine program scope");return t}function ibe(e,t){for(let r of e.program.body){if(t==="default"&&O.isExportDefaultDeclaration(r))return O.isExpression(r.declaration)?{kind:"default-expression",expression:r.declaration}:(O.isFunctionDeclaration(r.declaration)||O.isClassDeclaration(r.declaration))&&r.declaration.id?{kind:"default-binding",name:r.declaration.id.name}:null;if(O.isExportNamedDeclaration(r)){if(r.declaration){if(O.isVariableDeclaration(r.declaration)){for(let i of r.declaration.declarations)if(O.isIdentifier(i.id)&&i.id.name===t)return{kind:"local-binding",name:i.id.name}}if((O.isFunctionDeclaration(r.declaration)||O.isClassDeclaration(r.declaration))&&r.declaration.id&&r.declaration.id.name===t)return{kind:"local-binding",name:t}}for(let i of r.specifiers)if((O.isIdentifier(i.exported)?i.exported.name:i.exported.value)===t&&O.isExportSpecifier(i))return{kind:"local-binding",name:i.local.name}}}return null}async function cn(e,t,r,i,n,s,a){if(O.isStringLiteral(e)||O.isNumericLiteral(e)||O.isBooleanLiteral(e))return e.value;if(O.isNullLiteral(e))return null;if(O.isTemplateLiteral(e))return e.expressions.length===0&&e.quasis.length===1?e.quasis[0].value.cooked??e.quasis[0].value.raw:void 0;if(O.isTSAsExpression(e)||O.isTSSatisfiesExpression(e)||O.isTSNonNullExpression(e))return await cn(e.expression,t,r,i,n,s,a);if(O.isIdentifier(e)){let o=t.getBinding(e.name);if(!o)return;let c=await Xa({currentFile:r,binding:o,readFile:i,exists:n,fileCache:s,visited:a});return c?.kind==="static"?c.value:void 0}if(O.isArrayExpression(e)){let o=[];for(let c of e.elements){if(!c||O.isSpreadElement(c))return;let u=await XP(c,t,r,i,n,s,a);if(u===void 0)return;o.push(u)}return o}if(O.isObjectExpression(e)){let o={};for(let c of e.properties){if(!O.isObjectProperty(c)||c.computed)return;let u=null;if(O.isIdentifier(c.key)?u=c.key.name:O.isStringLiteral(c.key)&&(u=c.key.value),!u)return;if(c.shorthand){if(!O.isIdentifier(c.value))return;let d=await XP(c.value,t,r,i,n,s,a);if(d===void 0)return;o[u]=d;continue}if(!O.isExpression(c.value))return;let p=await XP(c.value,t,r,i,n,s,a);p!==void 0&&(o[u]=p)}return o}if(O.isMemberExpression(e)){let o=await Hj(e,t,r,i,n,s,a);if(!o)return;let c=t.getBinding(o.base);if(!c)return;let u=await Xa({currentFile:r,binding:c,readFile:i,exists:n,fileCache:s,visited:a});return!u||u.kind!=="static"?void 0:Yn(u.value,o.path)}}async function XP(e,t,r,i,n,s,a){if(!O.isSpreadElement(e))return await cn(e,t,r,i,n,s,a)}async function Hj(e,t,r,i,n,s,a){if(O.isIdentifier(e))return{base:e.name,path:[]};if(!O.isMemberExpression(e))return null;let o=[],c=e;for(;O.isMemberExpression(c);){if(c.computed){let u=c.property;if(O.isNumericLiteral(u))o.unshift({kind:"index",index:u.value});else if(O.isStringLiteral(u))o.unshift({kind:"property",name:u.value});else{let p=O.isExpression(u)?await cn(u,t,r,i,n,s,a):void 0;if(typeof p=="string")o.unshift({kind:"property",name:p});else if(Number.isInteger(p))o.unshift({kind:"index",index:p});else return null}}else{if(!O.isIdentifier(c.property))return null;o.unshift({kind:"property",name:c.property.name})}c=c.object}return O.isIdentifier(c)?{base:c.name,path:o}:null}function sbe(e){if(O.isIdentifier(e))return{base:e.name,path:[]};if(!O.isMemberExpression(e))return null;let t=[],r=e;for(;O.isMemberExpression(r);){if(r.computed)if(O.isNumericLiteral(r.property))t.unshift({kind:"index",index:r.property.value});else if(O.isStringLiteral(r.property))t.unshift({kind:"property",name:r.property.value});else return null;else{if(!O.isIdentifier(r.property))return null;t.unshift({kind:"property",name:r.property.name})}r=r.object}return O.isIdentifier(r)?{base:r.name,path:t}:null}function Yn(e,t){let r=e;for(let i of t){if(i.kind==="property"){if(r===null||Array.isArray(r)||typeof r!="object"||!(i.name in r))return;r=r[i.name];continue}if(!Array.isArray(r)||i.index<0||i.index>=r.length)return;r=r[i.index]}return r}function abe(e,t){if(!Array.isArray(e.value))return null;let r=e.collectionPathMap?.length?e.collectionPathMap:e.value.map((i,n)=>[...e.pathPrefix??[],{kind:"index",index:e.collectionIndexMap?.[n]??n}]);return r.length>0?r.map(i=>[...i,...t]):null}function obe(e,t){let r=[],i=[];for(let n of t){let s=Yn(e,n);if(!Array.isArray(s))return null;for(let[a,o]of s.entries())r.push(o),i.push([...n,{kind:"index",index:a}])}return{value:r,collectionPathMap:i}}async function ql(e,t,r){let i=r.get(e);if(i)return i;let n=await t(e),s=Mj(n),a={source:n,ast:s};return r.set(e,a),a}function Qj(e,t={}){let r=[],i=[],n=t.externalAdapters??[],s=new Map;function a(h){return typeof e.getVersion=="function"?e.getVersion(h):s.get(h)??0}function o(h){if(typeof e.bumpVersion=="function")return e.bumpVersion(h);let y=(s.get(h)??0)+1;return s.set(h,y),y}return{execute:c,undo:u,redo:p};async function c(h){let y=[],T=new Set(h.steps.filter(D=>D.type!=="invoke-external-adapter").map(D=>D.file));for(let D of T)try{let U=await e.readFile(D),z=a(D);y.push({file:D,content:U,version:z})}catch{y.push({file:D,content:"",version:0})}let w=[...h.steps].sort((D,U)=>D.order-U.order),k=new Map;for(let D of y)k.set(D.file,D.content);for(let D=0;D<w.length;){let U=w[D];if(U.type==="invoke-external-adapter"){let Pe=U.capability??"write-text",Qe=n.find(wt=>wt.sourceType===U.sourceType&&(U.adapterId===void 0||wt.adapterId===U.adapterId)&&(wt.capabilities===void 0||wt.capabilities.includes(Pe)));if(!Qe)return await d(y),{ok:!1,operationId:h.operationId,errorCode:"unsupported-operation",reason:`No external adapter registered for ${U.sourceType}`,rolledBack:!0};let yt=await Qe.execute(U);if(!yt.ok)return await d(y),{ok:!1,operationId:h.operationId,errorCode:"writeback-failed",reason:yt.reason??`External adapter failed for ${U.sourceType}`,rolledBack:!0};D+=1;continue}let z=k.get(U.file)??"",q=cbe(w,D),ye=ube(w,D),we=q.length>1?pbe(q,z):ye.length>1?dbe(ye,z):lbe(U,z);if(!we.ok)return await d(y),{ok:!1,operationId:h.operationId,errorCode:we.errorCode,reason:we.reason,rolledBack:!0};k.set(U.file,we.source),D+=Math.max(1,q.length,ye.length)}let C=[];for(let[D,U]of k){await e.writeFile(D,U);let z=o(D);C.push({file:D,content:U,version:z})}return r.push({operationId:h.operationId,preSnapshots:y,postSnapshots:C,plan:h}),i.length=0,{ok:!0,operationId:h.operationId,resultVersion:Math.max(1,...C.map(D=>D.version)),affectedFiles:[...T]}}async function u(){let h=r.pop();if(!h)return{ok:!1,operationId:"",errorCode:"unknown",reason:"Nothing to undo"};for(let y of h.preSnapshots)await e.writeFile(y.file,y.content),o(y.file);return i.push(h),{ok:!0,operationId:h.operationId,resultVersion:Math.max(...h.preSnapshots.map(y=>y.version+1)),affectedFiles:h.preSnapshots.map(y=>y.file)}}async function p(){let h=i.pop();if(!h)return{ok:!1,operationId:"",errorCode:"unknown",reason:"Nothing to redo"};for(let y of h.postSnapshots)await e.writeFile(y.file,y.content),o(y.file);return r.push(h),{ok:!0,operationId:h.operationId,resultVersion:Math.max(...h.postSnapshots.map(y=>y.version+1)),affectedFiles:h.postSnapshots.map(y=>y.file)}}async function d(h){for(let y of h)try{await e.writeFile(y.file,y.content)}catch{}}}function lbe(e,t){switch(e.type){case"invoke-external-adapter":return{ok:!1,reason:"External adapter steps must be executed asynchronously",errorCode:"unsupported-operation"};case"add-import":return He(Gd({source:t,moduleSpecifier:e.moduleSpecifier,imports:e.imports}));case"remove-import":return He(Hd({source:t,moduleSpecifier:e.moduleSpecifier,imports:e.imports}));case"remove-node":return He(Xd({source:t,locator:e.locator,removeWhitespace:e.removeWhitespace}));case"insert-child":return He(Zd({source:t,locator:e.parentLocator,node:e.node,placement:e.placement,anchorLocator:e.anchorLocator}));case"update-text":return He(Wd({source:t,locator:e.locator,segmentIndex:e.segmentIndex,newText:e.newText}));case"update-value":return He(za({source:t,locator:e.locator,next:e.value}));case"set-object-field":return He(za({source:t,locator:e.locator,next:e.value}));case"insert-object-field":return He(rf({source:t,locator:e.locator,property:{key:e.field,value:e.value}}));case"remove-object-field":return He(nf({source:t,locator:e.locator,key:e.field}));case"update-array-item":return He(za({source:t,locator:e.locator,next:e.value}));case"insert-array-item":return He(Qd({source:t,locator:e.locator,index:e.index,value:e.value}));case"remove-array-item":return He(ef({source:t,locator:e.locator,index:e.index}));case"move-array-item":return He(tf({source:t,locator:e.locator,fromIndex:e.fromIndex,toIndex:e.toIndex}));case"replace-conditional-expression":return He(sf({source:t,locator:e.locator,nextExpression:e.nextExpression}));case"set-conditional-branch-content":return He(af({source:t,locator:e.locator,branch:e.branch,content:e.content}));case"move-node":return He(Yd({source:t,locator:e.locator,targetParentLocator:e.targetParentLocator,placement:e.placement,anchorLocator:e.anchorLocator}));case"set-jsx-prop":return He(Ml({source:t,locator:e.locator,value:e.value}));case"remove-jsx-prop":return He(xf({source:t,locator:e.locator}));case"set-class-name":return He(Sf({source:t,locator:e.locator,value:e.value}));case"add-class-token":return He(bf({source:t,locator:e.locator,token:e.token}));case"remove-class-token":return He(vf({source:t,locator:e.locator,token:e.token}));case"set-style-property":return He(Tf({source:t,locator:e.locator,property:e.property,value:e.value}));case"set-style-properties":return He(Ef({source:t,locator:e.locator,properties:e.properties}));case"set-css-module-class":return He(Pf({source:t,locator:e.locator,nextClass:e.to}));case"set-directive":return He(e.mode==="add"?lf({source:t,value:e.value}):uf({source:t,locator:{kind:"directive",value:e.currentValue??e.value},nextValue:e.value}));case"remove-directive":return He(cf({source:t,locator:{kind:"directive",value:e.value}}));case"set-route-export":return He(pf({source:t,locator:{kind:"export",exportKind:"named",name:e.name},next:e.value}));case"set-metadata-field":return He(df({source:t,locator:{kind:"export",exportKind:"metadata"},path:[{kind:"property",name:e.field}],next:e.value}));case"set-generate-metadata":return He(ff({source:t,locator:{kind:"export",exportKind:"generate-metadata"},path:[{kind:"property",name:e.field}],next:e.value}));default:return{ok:!1,reason:`Unknown step type: ${e.type}`,errorCode:"unknown"}}}function cbe(e,t){let r=e[t];if(r?.type!=="set-jsx-prop")return[];let i=[];for(let n=t;n<e.length;n+=1){let s=e[n];if(s.type!=="set-jsx-prop"||s.file!==r.file)break;i.push(s)}return i}function ube(e,t){let r=e[t];if(r?.type!=="remove-jsx-prop")return[];let i=[];for(let n=t;n<e.length;n+=1){let s=e[n];if(s.type!=="remove-jsx-prop"||s.file!==r.file)break;i.push(s)}return i}function pbe(e,t){let r=Ge(t,"jsx-attribute");if(!r.ok)return He(r.result);for(let i of e){let n=fbe(r.ast,t,i);if(!n.ok)return He(n)}return He(Ae(r.ast,t,{kind:"set-jsx-attribute",target:"jsx-attribute",inverse:"remove-jsx-attribute"}))}function dbe(e,t){let r=Ge(t,"jsx-attribute");if(!r.ok)return He(r.result);for(let i of e){let n=hbe(r.ast,t,i);if(!n.ok)return He(n)}return He(Ae(r.ast,t,{kind:"remove-jsx-attribute",target:"jsx-attribute",inverse:"set-jsx-attribute"}))}function fbe(e,t,r){let i=gs(e,r.locator.element,t);if(!i.ok)return i.result;let n=i.match.path.node.openingElement.attributes,s=n.findIndex(o=>o.type==="JSXAttribute"&&o.name.type==="JSXIdentifier"&&o.name.name===r.locator.name);if(s>=0&&n.some((o,c)=>c>s&&o.type==="JSXSpreadAttribute"))return ee(t,"unsupported-syntax","cannot edit explicit attribute when spread props follow it","jsx-attribute");let a=n.find(o=>o.type==="JSXAttribute"&&o.name.type==="JSXIdentifier"&&o.name.name===r.locator.name);return a?.type==="JSXAttribute"?a.value=_i(r.locator.name,r.value).value:n.push(_i(r.locator.name,r.value)),{ok:!0,source:t}}function hbe(e,t,r){let i=gs(e,r.locator.element,t);return i.ok?(i.match.path.node.openingElement.attributes=i.match.path.node.openingElement.attributes.filter(n=>n.type!=="JSXAttribute"||n.name.type!=="JSXIdentifier"||n.name.name!==r.locator.name),{ok:!0,source:t}):i.result}function He(e){if(e.ok)return{ok:!0,source:e.source};switch(e.diagnostic.code){case"locator-miss":return{ok:!1,reason:e.diagnostic.message,errorCode:"locator-miss"};case"unsupported-syntax":case"binding-not-found":case"export-not-found":case"property-not-found":case"array-index-out-of-range":case"directive-conflict":case"metadata-shape-unsupported":return{ok:!1,reason:e.diagnostic.message,errorCode:"unsupported-operation"};case"invalid-parent-child-relation":case"self-closing-element":return{ok:!1,reason:e.diagnostic.message,errorCode:"invalid-target"};case"parse-failed":case"printer-failed":return{ok:!1,reason:e.diagnostic.message,errorCode:"ast-error"};default:return{ok:!1,reason:e.diagnostic.message,errorCode:"writeback-failed"}}}function eL(){let e=new Set;return{emit(t){for(let r of e)r(t)},subscribe(t){return e.add(t),()=>{e.delete(t)}}}}var mbe=/^(?:src\/)?app\/.*\/?page\.[cm]?[jt]sx?$/,ybe=["layout.tsx","layout.ts","layout.jsx","layout.js","layout.mjs","layout.cjs"],a0="::repeat-item#",o0="::rich-text-block#";function gbe(){let e=new Map;return{async readFile(t){return(await import("node:fs/promises")).readFile(t,"utf-8")},async writeFile(t,r){await(await import("node:fs/promises")).writeFile(t,r,"utf-8")},async exists(t){let r=await import("node:fs/promises");try{return await r.access(t),!0}catch{return!1}},getVersion(t){return e.get(t)??0},bumpVersion(t){let r=(e.get(t)??0)+1;return e.set(t,r),r}}}function xbe(e){if(!e||e.kind!=="value-binding")return null;let t="path"in e?e.path:void 0,r=e.root,i=r&&(r.kind==="binding"||r.kind==="named-export")?r.name:void 0;return{kind:e.sourceKind,file:e.file,expression:e.displayExpression,bindingName:i,path:t?.map(n=>n.kind==="property"?n.name:n.index)}}function Sbe(e){return{kind:e.isProxy?"component-proxy":"jsx-node",file:e.file,componentName:e.componentName,isProxy:e.isProxy}}function Vf(e){let t="idle",r=e.fileSystem??gbe(),i=eL(),n=new Map,s=null,a=new Set,o=null,c=Qj(r,{externalAdapters:e.externalAdapters}),u=new Map,p=0,d=0;if(e.onEvent&&i.subscribe(e.onEvent),e.routes)for(let $ of e.routes)n.set($.routeId,{routeId:$.routeId,entryFile:$.entryFile,graph:null,topology:null,capabilities:null,document:null,detailProjections:null,fileVersions:new Map});async function h($,te,le){let pe=new Map,K=new Map,B=typeof r.exists=="function"?j=>r.exists(j):async()=>!1;for(let[j,G]of $.elements){let xe=te.nodes.get(j);if(!xe)continue;let ke=le.get(G.sourceFile)??u.get(G.sourceFile),je=new Map,De=new Map,et=new Map,We=[];for(let ut of G.textSegments){if(!ke){je.set(ut.index,null);continue}let re=await Rj({file:G.sourceFile,source:ke,segment:ut,readFile:de=>r.readFile(de),exists:B,graph:$,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters?.map(({sourceType:de,adapterId:Ce,capabilities:Oe})=>({sourceType:de,adapterId:Ce,capabilities:Oe})),functionCallContracts:e.functionCallContracts,fileCache:K}),W=await QP({file:G.sourceFile,source:ke,target:{kind:"text-segment",segment:ut},readFile:de=>r.readFile(de),exists:B,graph:$,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters?.map(({sourceType:de,adapterId:Ce,capabilities:Oe})=>({sourceType:de,adapterId:Ce,capabilities:Oe})),functionCallContracts:e.functionCallContracts,fileCache:K}),ce=xbe(re);je.set(ut.index,ce),De.set(ut.index,re),et.set(ut.index,W),We.push({editable:ut.editable,source:ce})}let Le=ZD(Sbe(xe.writeTarget),We),it=GD({key:j,element:G,graph:$,provenances:et}),gt=t$(G),Ue=r$(G),dt=g$(G),ft=$.regions.find(ut=>ut.kind==="conditional-region"&&ut.childKeys.includes(j)),Vt,zt=ft?.sourceCandidates?.[0];if(ke&&ft&&zt?.kind==="conditional-branch"){let ut=await QP({file:G.sourceFile,source:ke,target:{kind:"conditional-branch",candidate:zt},readFile:W=>r.readFile(W),exists:B,graph:$,externalSourceResolvers:e.externalSourceResolvers,externalAdapters:e.externalAdapters?.map(({sourceType:W,adapterId:ce,capabilities:de})=>({sourceType:W,adapterId:ce,capabilities:de})),functionCallContracts:e.functionCallContracts,fileCache:K});Vt={currentBranch:ft.childKeys.indexOf(j)<=0?"then":"else",availableBranches:ft.childKeys.length>1?["then","else"]:["then"],conditionExpression:zt.conditionExpression,provenance:{finalSource:ut.finalSource?{kind:ut.finalSource.kind,file:ut.finalSource.file,displayPath:ut.finalSource.displayPath}:null,chain:ut.chain.map(W=>({kind:W.kind,file:W.file,displayName:W.displayName,canEditHere:W.canEditHere})),confidence:ut.confidence,editMode:ut.editMode,diagnostics:ut.diagnostics.map(W=>({code:W.code,message:W.message}))}}}pe.set(j,{textSources:je,textTargets:De,provenances:et,writeTarget:Le,componentSemantic:it,contentModel:gt,mediaModel:Ue,styleSource:dt,conditional:Vt})}return pe}function y($){return typeof r.getVersion=="function"?r.getVersion($):0}function T($,te){let le=1;for(let pe of te.values())le=Math.max(le,pe);return Math.max(le,$.graph?.version??0)}async function w($,te,le={}){let pe=n.get($);if(!pe)return;let K=await k(pe.entryFile),{graph:B,allSources:j}=await KD(pe.entryFile,te,Le=>r.readFile(Le),typeof r.exists=="function"?Le=>r.exists(Le):async()=>!1,{additionalEntries:K,version:pe.graph?.version??1}),G=new Map;for(let Le of j.keys())G.set(Le,y(Le));let xe=Math.max(T(pe,G),le.minimumVersion??0);le.changed&&xe<=(pe.graph?.version??0)&&(xe=(pe.graph?.version??0)+1),B.version=xe,p=Math.max(p,xe);for(let[Le,it]of j)u.set(Le,it);B.routeId=$;let ke=VD(B),je=WD(ke,B),De=await h(B,ke,j),et=C(B,je,De),We=Obe(Nbe(JD(B,ke,je,{canUpdateTextByKey:et}),B,De),B,De);pe.graph=B,pe.topology=ke,pe.capabilities=je,pe.document=We,pe.detailProjections=De,pe.fileVersions=G}async function k($){let te=[];for(let le of Tbe($))typeof r.exists=="function"&&await r.exists(le)&&te.push({file:le,source:await r.readFile(le)});return te}function C($,te,le){let pe=new Map;for(let[K,B]of $.elements){if(!te.get(K)?.canUpdateText){pe.set(K,!1);continue}let G=le.get(K),xe=B.textSegments.some(ke=>{if(!ke.editable)return!1;let je=G?.provenances.get(ke.index)??null;return!je||D(je)});pe.set(K,xe)}return pe}function D($){return $.editMode==="direct"||$.editMode==="proxy"||$.editMode==="upstream"}async function U($,te={}){let le=new Set($),pe={rebuiltRoutes:[],failedRoutes:[]};for(let K of n.values())if([...le].some(j=>K.entryFile===j||K.graph?.fileIndex.has(j)))try{let j=await r.readFile(K.entryFile);await w(K.routeId,j,te),K.graph&&pe.rebuiltRoutes.push({routeId:K.routeId,version:K.graph.version})}catch(j){pe.failedRoutes.push({routeId:K.routeId,message:vbe(j)})}return pe}function z($,te=0){let le=new Set($),pe=te;for(let K of n.values())[...le].some(j=>K.entryFile===j||K.graph?.fileIndex.has(j))&&K.graph&&(pe=Math.max(pe,K.graph.version));return pe}function q($){let te=new Set($),le=new Set;for(let pe of n.values())[...te].some(B=>pe.entryFile===B||pe.graph?.fileIndex.has(B))&&le.add(pe.routeId);return[...le]}function ye($){for(let te of $)a.add(te);o||t==="disposed"||(o=(async()=>{t="building";try{for(;a.size>0;){await we();let te=[...a];a.clear();let le=await Pe(te);if(le.length===0)continue;let pe=q(le);for(let j of pe)i.emit({type:"graph-invalidated",routeId:j});let{rebuiltRoutes:K,failedRoutes:B}=await U(le,{changed:!0});for(let{routeId:j,version:G}of K)i.emit({type:"graph-ready",routeId:j,version:G});for(let{routeId:j,message:G}of B)i.emit({type:"graph-error",routeId:j,message:G})}}finally{o=null,t!=="disposed"&&(t="ready"),a.size>0&&ye([])}})())}async function we(){for(;d>0;)await new Promise($=>setTimeout($,0))}async function Pe($){let te=[];for(let le of new Set($)){let pe=u.get(le);if(pe===void 0){te.push(le);continue}try{await r.readFile(le)!==pe&&te.push(le)}catch{te.push(le)}}return te}async function Qe($){let te=n.get($);if(!te)throw new Error(`Route not found: ${$}`);if(te.graph)return;let le=await r.readFile(te.entryFile);await w($,le)}function yt($,te){if(te){let le=n.get(te)??null;return!le||!wt(le,$)?null:le}for(let le of n.values())if(wt(le,$))return le;return null}function wt($,te){if($.graph?.elements.has(te))return!0;let le=vs(te);if(le)return $.graph?.elements.has(le.baseKey)===!0;let pe=Kf(te);return pe?$.graph?.elements.has(pe.ownerKey)===!0:!1}return{get status(){return t},dispose(){t="disposed"},registerRoute($,te){n.set($,{routeId:$,entryFile:te,graph:null,topology:null,capabilities:null,document:null,detailProjections:null,fileVersions:new Map})},async setActiveRoute($){let te=n.get($);if(!te)throw new Error(`Route not found: ${$}`);let le=s===$;if(s=$,!te.graph){t="building";try{let pe=await r.readFile(te.entryFile);await w($,pe);let K=n.get($)?.graph?.version??1;t="ready",i.emit({type:"graph-ready",routeId:$,version:K})}catch{t="ready"}return}t="ready",le||i.emit({type:"graph-ready",routeId:$,version:te.graph.version})},getDocument($){let te=n.get($);if(!te)throw new Error(`Route not found: ${$}`);if(!te.document)throw new Error(`Route not built: ${$}`);return te.document},getObjectCapabilities($,te){let le=yt($,te);if(Kf($))return{key:$,canUpdateText:!1,canInsertChild:!1,canMove:!0,canRemove:!0,boundaryKind:null,isOpaque:!1};let K=vs($)?.baseKey??$,B=le?.graph?.elements.get(K),j=le?.capabilities?.get(K);if(B&&j)return{key:$,canUpdateText:j.canUpdateText,canInsertChild:j.canInsertChild,canMove:j.canMove,canRemove:j.canRemove,boundaryKind:B.boundaryKind,isOpaque:B.isOpaque};throw new Error(`Key not found: ${$}`)},getRenderDetail($,te){let le=yt($,te),K=Kf($)?.ownerKey??vs($)?.baseKey??$;if(le?.graph&&le.topology&&le.capabilities&&le.detailProjections){let B=le.detailProjections.get(K);if(B){let j=XD(K,le.graph,le.topology,le.capabilities,B.textSources,B.writeTarget,B.provenances,B.conditional,B.componentSemantic,B.contentModel,B.mediaModel,B.styleSource);return $===K?j:{...j,key:$}}}throw new Error(`Key not found: ${$}`)},getClassNameSource($,te){let le=yt($,te),pe=vs($)?.baseKey??$;if(!le?.graph)throw new Error(`Key not found: ${$}`);let K=le.graph.elements.get(pe);if(!K)throw new Error(`Key not found: ${$}`);let B=u.get(K.sourceFile);if(B===void 0)throw new Error(`Source not loaded: ${K.sourceFile}`);return jP({key:pe,route:{routeId:le.routeId,graph:le.graph,source:B}})},async setClassNameSource($){let te=yt($.key,$.routeId),le=vs($.key)?.baseKey??$.key;if(!te?.graph)return{ok:!1,error:{code:"node_not_found",message:`Key not found: ${$.key}`},diagnostics:[{code:"source-locator-warning",message:`Key not found: ${$.key}`}]};let pe=te.graph.elements.get(le);if(!pe)return{ok:!1,error:{code:"node_not_found",message:`Key not found: ${$.key}`},diagnostics:[{code:"source-locator-warning",message:`Key not found: ${$.key}`}]};let K=u.get(pe.sourceFile)??await r.readFile(pe.sourceFile),B=jP({key:le,route:{routeId:te.routeId,graph:te.graph,source:K}}),j=await O$({request:$,current:B,source:K,writeSource:async G=>{await r.writeFile(pe.sourceFile,G),r.bumpVersion?.(pe.sourceFile),u.set(pe.sourceFile,G)}});return j.ok?(await U([pe.sourceFile],{changed:!0,minimumVersion:$.expectedVersion.documentVersion+1}),{ok:!0,data:this.getClassNameSource(le,te.routeId)}):j},async execute($){let te=null;if($.target.kind==="node"?te=yt($.target.key,$.routeId):(te=n.get($.target.routeId)??null,te&&!te.graph&&await Qe(te.routeId)),!te)return{requestId:$.id,kind:$.kind,target:$.target,ok:!1,resultVersion:p,error:{code:$.target.kind==="route"?Nt.ROUTE_NOT_FOUND:Nt.NODE_NOT_FOUND,message:$.target.kind==="route"?`Route not found: ${$.target.routeId}`:`Target key not found: ${$.target.key}`}};if(!te.graph||!te.topology||!te.capabilities)return{requestId:$.id,kind:$.kind,target:$.target,ok:!1,resultVersion:p,error:{code:$.target.kind==="route"?Nt.ROUTE_NOT_FOUND:Nt.NODE_NOT_FOUND,message:$.target.kind==="route"?`Route not ready: ${$.target.routeId}`:`Target key not found: ${$.target.key}`}};let le=bbe(te,te.graph,te.capabilities,u),pe=await new $f(le).plan($);if(!pe.ok)return{requestId:$.id,kind:$.kind,target:$.target,ok:!1,resultVersion:p,error:{code:tL(pe.errorCode),message:pe.reason}};let K=pe.plan;if(K.steps.length===0)return{requestId:$.id,kind:$.kind,target:$.target,ok:!1,resultVersion:p,error:{code:Nt.PLAN_FAILED,message:"Planner could not generate a valid execution plan"}};d+=1;let B=await c.execute(K);if(!B.ok)return d-=1,{requestId:$.id,kind:$.kind,target:$.target,ok:!1,resultVersion:p,error:{code:tL(B.errorCode),message:B.reason}};try{await U(B.affectedFiles,{changed:!0,minimumVersion:B.resultVersion})}finally{d-=1}let j=z(B.affectedFiles,B.resultVersion);p=Math.max(p,j);let G={requestId:$.id,kind:$.kind,target:$.target,ok:!0,resultVersion:j,affectedFiles:B.affectedFiles};return i.emit({type:"operation-completed",result:G}),te.routeId&&i.emit({type:"document-changed",routeId:te.routeId,version:j}),G},async undo(){d+=1;let $=await c.undo();if(!$.ok)return d-=1,{requestId:"undo",kind:"update-text",target:{kind:"node",key:""},ok:!1,resultVersion:p,error:{code:Nt.INTERNAL_ERROR,message:$.reason}};try{await U($.affectedFiles,{changed:!0,minimumVersion:$.resultVersion})}finally{d-=1}let te=z($.affectedFiles,$.resultVersion);return p=Math.max(p,te),{requestId:"undo",kind:"update-text",target:{kind:"node",key:""},ok:!0,resultVersion:te,affectedFiles:$.affectedFiles}},async redo(){d+=1;let $=await c.redo();if(!$.ok)return d-=1,{requestId:"redo",kind:"update-text",target:{kind:"node",key:""},ok:!1,resultVersion:p,error:{code:Nt.INTERNAL_ERROR,message:$.reason}};try{await U($.affectedFiles,{changed:!0,minimumVersion:$.resultVersion})}finally{d-=1}let te=z($.affectedFiles,$.resultVersion);return p=Math.max(p,te),{requestId:"redo",kind:"update-text",target:{kind:"node",key:""},ok:!0,resultVersion:te,affectedFiles:$.affectedFiles}},notifyFileChanged($){let te=new Set;for(let le of n.values())(le.entryFile===$||le.graph?.fileIndex.has($))&&te.add($);ye(te)},subscribe($){return i.subscribe($)}}}function bbe(e,t,r,i){let n=new Map,s=new Map,a=(u,p)=>{if(s.has(u))return;s.set(u,p);let d=t.elements.get(u);for(let h of d?.childKeys??[])a(h,p)};for(let u of t.regions)if(u.kind==="repeat-region")for(let p of u.childKeys)n.set(p,u.ownerKey),a(p,u.ownerKey);return{getNode(u){let p=o(u),d=t.elements.get(p.baseKey);return d?c(u,d,p.repeatIndex,p.richTextBlock):null},getChildNodes(u){let p=o(u);if(p.richTextBlock)return[];let d=t.elements.get(p.baseKey);return d?d.childKeys.map(h=>{let y=t.elements.get(h);return y?c(h,y):null}).filter(h=>h!==null):[]},getCapability(u){let p=o(u);if(p.richTextBlock)return{key:u,canUpdateText:!1,canRemove:!0,canInsertChild:!1,canMove:!0,constraints:[]};let d=r.get(p.baseKey);return d?{key:u,canUpdateText:d.canUpdateText,canRemove:d.canRemove,canInsertChild:d.canInsertChild,canMove:d.canMove,constraints:d.constraints.map(h=>h.message)}:{key:u,canUpdateText:!1,canRemove:!1,canInsertChild:!1,canMove:!1,constraints:[]}},getFileContent(u){return i.get(u)??""},getFileVersion(u){return Math.max(e.fileVersions.get(u)??0,t.version)},getRouteEntryFile(u){return e.routeId===u?e.entryFile:null},getComponentSemantic(u){let p=o(u);return e.detailProjections?.get(p.baseKey)?.componentSemantic??null},getEditableTextSegmentIndex(u){let p=o(u),h=e.detailProjections?.get(p.baseKey)?.textTargets.keys()?.next();return h&&!h.done?h.value:null},async getTextWriteTarget(u,p){let d=o(u);return Cbe(e.detailProjections?.get(d.baseKey)?.textTargets.get(p)??null,d.repeatIndex)},getTextProvenance(u,p){let d=o(u);return e.detailProjections?.get(d.baseKey)?.provenances.get(p)??null}};function o(u){let p=Kf(u);if(p)return{baseKey:p.ownerKey,repeatIndex:null,richTextBlock:p};let d=vs(u);return d?{baseKey:d.baseKey,repeatIndex:d.repeatIndex,richTextBlock:null}:{baseKey:u,repeatIndex:null,richTextBlock:null}}function c(u,p,d=null,h=null){let y=h?.ownerKey??vs(u)?.baseKey??u,T=e.detailProjections?.get(y);return{key:u,file:p.sourceFile,component:p.componentName,tag:p.tag,structuralPath:p.identity.structuralPath,sourceRange:p.sourceRange,parentKey:p.parentKey??void 0,isRepeatRegion:p.boundaryKind==="repeat-region"||s.has(y),isBoundary:!1,importedFrom:p.importedFrom,exportName:p.exportName,isRepeatItemRoot:d!==null||n.has(y),repeatOwnerKey:n.get(y)??s.get(y),contentModel:T?.contentModel,richTextBlock:h?{field:h.field,index:h.index}:void 0,attributes:p.attributes?.map(w=>({name:w.name,value:w.value,source:w.source?{expression:w.source.expression,base:w.source.base,path:w.source.path.map(k=>({...k}))}:null,resolvedValue:w.resolvedValue}))}}}function tL(e){switch(e){case"stale-version":return Nt.VERSION_STALE;case"capability-denied":return Nt.CAPABILITY_REJECTED;case"route-not-found":return Nt.ROUTE_NOT_FOUND;case"unsupported-operation":return Nt.UNSUPPORTED_OPERATION;case"invalid-target":return Nt.INVALID_TARGET;case"invalid-params":return Nt.INVALID_PARAMS;case"locator-miss":return Nt.LOCATOR_FAILED;case"ast-error":return Nt.AST_PARSE_ERROR;case"writeback-failed":return Nt.WRITE_IO_ERROR;case"rollback-failed":return Nt.ROLLBACK_FAILED;default:return Nt.INTERNAL_ERROR}}function vbe(e){return e instanceof Error&&e.message?e.message:String(e)}function Tbe(e){let t=Ebe(e);if(!mbe.test(t))return[];let r=t.startsWith("src/app/")?"src/app":"app",i=t.slice(0,t.lastIndexOf("/")),n=[],s=i;for(;(s===r||s.startsWith(`${r}/`))&&(n.unshift(s),s!==r);)s=s.slice(0,s.lastIndexOf("/"));return n.flatMap(a=>ybe.map(o=>`${a}/${o}`))}function Ebe(e){return e.replace(/\\/g,"/").replace(/^\.\//,"")}function Pbe(e,t){return`${e}${a0}${t}`}function _be(e,t,r){return`${e}${o0}${encodeURIComponent(t)}#${r}`}function Kf(e){if(typeof e!="string")return null;let t=e.lastIndexOf(o0);if(t<0)return null;let r=e.slice(0,t),i=e.slice(t+o0.length),n=i.lastIndexOf("#");if(!r||n<=0)return null;let s=decodeURIComponent(i.slice(0,n)),a=Number(i.slice(n+1));return!s||!Number.isInteger(a)||a<0?null:{ownerKey:r,field:s,index:a}}function vs(e){if(typeof e!="string")return null;let t=e.lastIndexOf(a0);if(t<0)return null;let r=e.slice(0,t),i=Number(e.slice(t+a0.length));return!r||!Number.isInteger(i)||i<0?null:{baseKey:r,repeatIndex:i}}function kbe(e){let t=1;for(let r of e?.textTargets.values()??[])r?.kind==="value-binding"&&r.sourceKind==="repeat-template"&&(t=Math.max(t,r.collectionIndexMap?.length??0,r.collectionPathMap?.length??0));return t}function Ibe(e){return typeof e=="string"?e===""?[]:e.split(/\n{2,}/):Array.isArray(e)?e.filter(Wl):Abe(e)&&Array.isArray(e.content)&&e.content.every(Wl)?e.content:[]}function Abe(e){return!Array.isArray(e)&&typeof e=="object"&&e!==null}function Wl(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?!0:Array.isArray(e)?e.every(Wl):typeof e=="object"&&e!==null?Object.values(e).every(Wl):!1}function wbe(e,t){let r=e.attributes?.find(i=>i.name===t);if(r)return r.resolvedValue!==void 0?r.resolvedValue:Wl(r.value)?r.value:void 0}function Uf(e){return e?.map(t=>({...t}))}function Cbe(e,t){if(t===null||e?.kind!=="value-binding"||e.sourceKind!=="repeat-template")return e;let r=e.collectionIndexMap?.[t]??t,i=Uf(e.collectionPathMap?.[t])??Uf(e.locator?.path);if(i)for(let n=i.length-1;n>=0;n-=1){let s=i[n];if(s.kind==="index"){s.index=r;break}}return{...e,path:Uf(e.path),locator:e.locator?{...e.locator,path:i}:e.locator,collectionIndexMap:e.collectionIndexMap?[...e.collectionIndexMap]:void 0,collectionPathMap:e.collectionPathMap?.map(n=>Uf(n)??[])}}function Nbe(e,t,r){let i=new Set;for(let a of t.regions)if(a.kind==="repeat-region")for(let o of a.childKeys)i.add(o);if(i.size===0)return e;let n=new Map(e.entries.map(a=>[a.key,{...a,childKeys:[...a.childKeys]}])),s=[];for(let a of e.entries){let o=n.get(a.key)??{...a,childKeys:[...a.childKeys]};if(s.push(o),!i.has(o.key))continue;let c=kbe(r.get(o.key));if(c<=1)continue;let u=o.parentKey?n.get(o.parentKey):null,p=u?.childKeys.indexOf(o.key)??-1,d=[];for(let h=1;h<c;h+=1){let y=Pbe(o.key,h);d.push(y),s.push({...o,key:y,parentKey:o.parentKey,childKeys:[...o.childKeys]})}u&&p>=0&&u.childKeys.splice(p+1,0,...d)}return{...e,rootKeys:[...e.rootKeys],entries:s}}function Obe(e,t,r){let i=new Map(e.entries.map(a=>[a.key,{...a,childKeys:[...a.childKeys]}])),n=[],s=!1;for(let a of e.entries){let o=i.get(a.key)??{...a,childKeys:[...a.childKeys]};n.push(o);let c=r.get(o.key)?.contentModel;if(!c?.operationBoundary.includes("remove-rich-text-block"))continue;let u=t.elements.get(o.key);if(!u)continue;let p=Ibe(wbe(u,c.field));if(p.length===0)continue;let d=p.map((h,y)=>_be(o.key,c.field,y));o.childKeys.push(...d);for(let h=0;h<d.length;h+=1)n.push({key:d[h],tag:"rich-text-block",label:`${c.field} block ${h+1}`,parentKey:o.key,childKeys:[],operationSummary:{canUpdateText:!1,canInsertChild:!1,canMove:!0,canRemove:!0}});s=!0}return s?{...e,rootKeys:[...e.rootKeys],entries:n}:e}var qf=class{constructor(t){this.options=t,this.fileSystem=new Ll(t.files),this.engine=this.createEngine(this.fileSystem)}get status(){return this.engine.status}async setActiveRoute(t){await this.engine.setActiveRoute(t)}getDocument(t){return Vu(this.engine.getDocument(t),{siteId:this.options.siteId,snapshotId:this.options.snapshotId})}getObjectCapabilities(t,r){let i=Zu(this.engine.getRenderDetail(t,r));return{key:i.key,canUpdateText:i.capabilities.canUpdateText,canInsertChild:i.capabilities.canInsertChild,canMove:i.capabilities.canMove,canRemove:i.capabilities.canRemove,boundaryKind:i.boundaryKind,isOpaque:i.isOpaque}}getObjectSummary(t,r){return qu(this.engine.getRenderDetail(t,r))}getObjectEditContext(t,r){return Wu(this.engine.getRenderDetail(t,r))}getObjectContentDetail(t,r){return Ju(this.engine.getRenderDetail(t,r))}getObjectMediaDetail(t,r){return Xu(this.engine.getRenderDetail(t,r))}getClassNameSource(t,r){return this.engine.getClassNameSource(t,r)}setClassNameSource(t){return this.engine.setClassNameSource(t)}async planOperation(t){let r=new Ll(this.options.files),i=this.createEngine(r);for(let c of this.options.routes)await i.setActiveRoute(c.routeId);let n=await i.execute(Ku(t));if(!n.ok)return{result:{ok:!1,error:{code:n.error?.code??"INTERNAL_ERROR",message:n.error?.message??"Operation failed"},data:{requestId:n.requestId,kind:n.kind,target:Ki(n.target),resultVersion:n.resultVersion}}};let s={ok:!0,data:Ui(n)},a=r.getChangedFiles();if(a.length===0)return{result:s};let o=CI.parse({siteId:t.siteId,baseSnapshotId:t.baseSnapshotId,operationId:t.id,reason:`site-edit:${t.kind}`,patches:a.map(c=>({path:c.path,operation:c.before===void 0?"create":"update",expectedHash:c.before===void 0?void 0:Fa(c.before),fullContent:c.after})),changedRouteIds:this.getChangedRouteIds(a.map(c=>c.path)),diagnostics:[]});return this.options.onEvent?.({type:"site-edit.operation.planned",siteId:t.siteId,operationId:t.id,baseSnapshotId:t.baseSnapshotId,changedFiles:o.patches.map(c=>c.path),at:new Date().toISOString()}),{result:s,patchPlan:o}}dispose(){this.engine.dispose()}createEngine(t){return Vf({projectRoot:"/snapshot",fileSystem:t,routes:this.options.routes.map(r=>({routeId:r.routeId,entryFile:r.entryFile})),onEvent:this.options.onEvent?r=>{let i=Yu(r,{siteId:this.options.siteId,snapshotId:this.options.snapshotId});i&&this.options.onEvent?.(i)}:void 0,dev:this.options.dev})}getChangedRouteIds(t){let r=new Set(t),i=this.options.routes.filter(n=>r.has(n.entryFile)).map(n=>n.routeId);return i.length>0?i:this.options.routes.map(n=>n.routeId)}};function Dbe(e){return new qf(e)}import l0 from"node:fs/promises";import c0 from"node:path";var Wf=class{constructor(t){this.options=t,this.engine=Vf({...t,fileSystem:this.createFileSystem()})}get status(){return this.engine.status}registerRoute(t,r){this.engine.registerRoute(t,r)}async setActiveRoute(t){await this.engine.setActiveRoute(t)}getDocument(t){return this.engine.getDocument(t)}getObjectCapabilities(t,r){return this.engine.getObjectCapabilities(t,r)}getRenderDetail(t,r){return this.engine.getRenderDetail(t,r)}getClassNameSource(t,r){return this.engine.getClassNameSource(t,r)}setClassNameSource(t){return this.engine.setClassNameSource(t)}execute(t){return this.engine.execute(t)}undo(){return this.engine.undo()}redo(){return this.engine.redo()}notifyFileChanged(t){this.engine.notifyFileChanged(t)}subscribe(t){return this.engine.subscribe(t)}dispose(){this.engine.dispose()}createFileSystem(){if(this.options.fileSystem)return this.options.fileSystem;let t=new Map,{projectRoot:r}=this.options;return{async readFile(i){return l0.readFile(c0.join(r,i),"utf8")},async writeFile(i,n){await l0.writeFile(c0.join(r,i),n,"utf8")},async exists(i){try{return await l0.access(c0.join(r,i)),!0}catch{return!1}},getVersion(i){return t.get(i)??0},bumpVersion(i){let n=(t.get(i)??0)+1;return t.set(i,n),n}}}};function u0(e){return new Wf(e)}var Jf=class{constructor(t){this.options=t,this.listeners=new Set,this.engine=u0({projectRoot:t.projectRoot,fileSystem:t.fileSystem,routes:t.routes.map(r=>({routeId:r.routeId,entryFile:r.entryFile})),onEvent:r=>{let i=Yu(r,{siteId:t.siteId,snapshotId:t.snapshotId});if(i){t.onEvent?.(i);for(let n of this.listeners)n(i)}},dev:t.dev})}get status(){return this.engine.status}registerRoute(t,r){this.engine.registerRoute(t,r)}async setActiveRoute(t){await this.engine.setActiveRoute(t)}getDocument(t){return{ok:!0,data:Vu(this.engine.getDocument(t),{siteId:this.options.siteId,snapshotId:this.options.snapshotId})}}getObjectCapabilities(t,r){let i=Zu(this.engine.getRenderDetail(t,r));return{ok:!0,data:{key:i.key,canUpdateText:i.capabilities.canUpdateText,canInsertChild:i.capabilities.canInsertChild,canMove:i.capabilities.canMove,canRemove:i.capabilities.canRemove,boundaryKind:i.boundaryKind,isOpaque:i.isOpaque}}}getObjectSummary(t,r){return{ok:!0,data:qu(this.engine.getRenderDetail(t,r))}}getObjectEditContext(t,r){return{ok:!0,data:Wu(this.engine.getRenderDetail(t,r))}}getObjectContentDetail(t,r){return{ok:!0,data:Ju(this.engine.getRenderDetail(t,r))}}getObjectMediaDetail(t,r){return{ok:!0,data:Xu(this.engine.getRenderDetail(t,r))}}getClassNameSource(t,r){return{ok:!0,data:this.engine.getClassNameSource(t,r)}}setClassNameSource(t){return this.engine.setClassNameSource(t)}async executeOperation(t){let r=await this.engine.execute(Ku(t));if(!r.ok){let i=r.error;if(!i)throw new Error("executeOperation failed without an error payload");return{ok:!1,error:{code:i.code,message:i.message},data:{requestId:r.requestId,kind:r.kind,target:Ki(r.target),resultVersion:r.resultVersion}}}return{ok:!0,data:Ui(r)}}async undo(){let t=await this.engine.undo();if(!t.ok){let r=t.error;if(!r)throw new Error("undo failed without an error payload");return{ok:!1,error:{code:r.code,message:r.message},data:{requestId:t.requestId,kind:t.kind,target:Ki(t.target),resultVersion:t.resultVersion}}}return{ok:!0,data:Ui(t)}}async redo(){let t=await this.engine.redo();if(!t.ok){let r=t.error;if(!r)throw new Error("redo failed without an error payload");return{ok:!1,error:{code:r.code,message:r.message},data:{requestId:t.requestId,kind:t.kind,target:Ki(t.target),resultVersion:t.resultVersion}}}return{ok:!0,data:Ui(t)}}notifyFileChanged(t){this.engine.notifyFileChanged(t)}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}dispose(){this.listeners.clear(),this.engine.dispose()}};function $be(e){return new Jf(e)}import p0 from"node:fs";import Jl from"node:path";var jbe=/^page\.(?:tsx|ts|jsx|js|mjs|cjs)$/;function rL(e){let t=Lbe(e);return t?nL(t).map(r=>({routeId:Rbe(t,r),entryFile:iL(Jl.relative(e,r))})).sort((r,i)=>r.routeId.localeCompare(i.routeId)):[]}function Lbe(e){for(let t of["app","src/app"]){let r=Jl.join(e,t);if(p0.existsSync(r)&&p0.statSync(r).isDirectory())return r}return null}function nL(e){let t=[];for(let r of p0.readdirSync(e,{withFileTypes:!0})){let i=Jl.join(e,r.name);if(r.isDirectory()){if(r.name==="node_modules"||r.name.startsWith(".")||r.name.startsWith("_")||r.name.startsWith("@"))continue;t.push(...nL(i));continue}r.isFile()&&jbe.test(r.name)&&t.push(i)}return t}function Rbe(e,t){let r=iL(Jl.relative(e,Jl.dirname(t))),i=r?r.split("/").filter(n=>Mbe(n)):[];return i.length===0?"/":`/${i.join("/")}`}function Mbe(e){return!!e&&!e.startsWith("@")&&!e.startsWith("_")&&!Fbe(e)}function Fbe(e){return e.startsWith("(")&&e.endsWith(")")}function iL(e){return e.replace(/\\/g,"/")}var aL=/^\[[^\]]+\]$/,oL=/^\[\.\.\.[^\]]+\]$/,lL=/^\[\[\.\.\.[^\]]+\]\]$/;function Bbe(e,t,r=""){let i=zbe(e,r);return t.some(s=>s.routeId===i)?i:[...t].sort((s,a)=>sL(a.routeId)-sL(s.routeId)).find(s=>Ube(s.routeId).test(i))?.routeId??"/"}function zbe(e,t=""){let i=((e??"/").trim()||"/").split(/[?#]/,1)[0]||"/",n=i.startsWith("/")?i:`/${i}`,s=Kbe(t),a=s&&(n===s||n.startsWith(`${s}/`))?n.slice(s.length)||"/":n,o=a.startsWith("/")?a:`/${a}`;return o==="/"?"/":o.replace(/\/+$/,"")}function Ube(e){if(e==="/")return/^\/$/;let t=e.split("/").filter(Boolean).map(r=>lL.test(r)?"(?:/.*)?":oL.test(r)?"/.+":aL.test(r)?"/[^/]+":`/${Vbe(r)}`).join("");return new RegExp(`^${t}$`)}function sL(e){return e.split("/").filter(Boolean).reduce((t,r)=>lL.test(r)?t+1:oL.test(r)?t+2:aL.test(r)?t+3:t+4,0)}function Kbe(e){let t=e.trim();return!t||t==="/"?"":(t.startsWith("/")?t:`/${t}`).replace(/\/+$/,"")}function Vbe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}import Ya from"node:fs";import Ga from"node:path";var qbe=["app","src/app","components","src/components","lib","src/lib"],cL=/\.(?:tsx|ts|jsx|js|mjs|cjs|css|scss|sass)$/,uL=/^(?:\.next|node_modules|\.git)(?:\/|$)/,d0=class{constructor(t){this.options=t,this.watchers=[],this.fileMtimes=new Map,this.pollingTimer=null,this.isPolling=!1}start(){for(let t of this.getWatchDirs()){let r=Ga.join(this.options.projectRoot,t);if(Ya.existsSync(r)&&!this.registerWatcher(r,!0))for(let i of pL(r))this.registerWatcher(i,!1)}return this.scanFiles(),this.pollingTimer=setInterval(()=>this.poll(),this.options.interval_ms??1e3),()=>this.stop()}stop(){this.pollingTimer&&(clearInterval(this.pollingTimer),this.pollingTimer=null);for(let t of this.watchers)t.close();this.watchers.length=0}getWatchDirs(){return this.options.watch_dirs?.length?this.options.watch_dirs:qbe}registerWatcher(t,r){try{let i=Ya.watch(t,{recursive:r},(n,s)=>{let a=Wbe(this.options.projectRoot,t,s);a&&this.options.on_change(a)});return this.watchers.push(i),!0}catch{return!1}}poll(){if(!this.isPolling){this.isPolling=!0;try{this.scanFiles()}finally{this.isPolling=!1}}}scanFiles(){for(let t of this.getWatchDirs()){let r=Ga.join(this.options.projectRoot,t);if(Ya.existsSync(r))for(let i of dL(this.options.projectRoot,r))try{let n=Ya.statSync(i),s=f0(this.options.projectRoot,i),a=this.fileMtimes.get(s);a!==void 0&&a!==n.mtimeMs&&this.options.on_change(s),this.fileMtimes.set(s,n.mtimeMs)}catch{}}}};function pL(e){let t=[e];for(let r of Ya.readdirSync(e,{withFileTypes:!0}))!r.isDirectory()||r.name.startsWith(".")||r.name==="node_modules"||t.push(...pL(Ga.join(e,r.name)));return t}function dL(e,t){let r=[];for(let i of Ya.readdirSync(t,{withFileTypes:!0})){let n=Ga.join(t,i.name);if(i.isDirectory()){if(i.name.startsWith(".")||i.name==="node_modules")continue;r.push(...dL(e,n));continue}let s=f0(e,n);!uL.test(s)&&cL.test(s)&&r.push(n)}return r}function Wbe(e,t,r){if(!r)return null;let i=Ga.join(t,r.toString()),n=f0(e,i);return!n||n.startsWith("..")||uL.test(n)||!cL.test(n)?null:n}function f0(e,t){return Ga.relative(e,t).replace(/\\/g,"/")}export{Jf as PreviewFileSystemSiteEditEngineRuntime,d0 as SiteEditSourceWatcher,qf as SnapshotSiteEditEngineRuntime,$be as createPreviewSiteEditEngineRuntime,Dbe as createSiteEditEngineRuntime,Bbe as resolveNextAppRouteId,rL as scanNextAppRouterRoutes};
|