@peter.naydenov/cuts 2.0.2 → 2.0.3
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/Changelog.md +5 -0
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/src/findInstructions.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/main.js.html +1 -1
- package/coverage/lcov-report/src/methods/hide.js.html +1 -1
- package/coverage/lcov-report/src/methods/index.html +1 -1
- package/coverage/lcov-report/src/methods/jump.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpBack.js.html +1 -1
- package/coverage/lcov-report/src/methods/jumpsReset.js.html +1 -1
- package/coverage/lcov-report/src/methods/listShortcuts.js.html +1 -1
- package/coverage/lcov-report/src/methods/setScenes.js.html +1 -1
- package/coverage/lcov-report/src/methods/show.js.html +1 -1
- package/coverage/lcov-report/src/setInstruction.js.html +1 -1
- package/package.json +14 -18
- package/playwright.config.js +13 -0
- package/test/01-findPosition.test.js +119 -0
- package/test/02-cuts.test.js +412 -0
- package/test-e2e/01-general.test.js +290 -0
- package/test-e2e/index.html +30 -0
- package/test-e2e/node_modules/.package-lock.json +584 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js +36 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_log.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js +983 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_shortcuts.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js +267 -0
- package/test-e2e/node_modules/.vite/deps/@peter__naydenov_visual-controller-for-vue3.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/_metadata.json +44 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js +223 -0
- package/test-e2e/node_modules/.vite/deps/ask-for-promise.js.map +1 -0
- package/test-e2e/node_modules/.vite/deps/package.json +3 -0
- package/test-e2e/node_modules/.vite/deps/vue.js +2 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js +8579 -0
- package/test-e2e/node_modules/.vite/deps/vue.runtime.esm-bundler-DaROHT9e.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js +295 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-string-parser/package.json +31 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/README.md +19 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js +70 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js +57 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js +35 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/test-e2e/node_modules/@babel/helper-validator-identifier/package.json +31 -0
- package/test-e2e/node_modules/@babel/parser/CHANGELOG.md +1073 -0
- package/test-e2e/node_modules/@babel/parser/LICENSE +19 -0
- package/test-e2e/node_modules/@babel/parser/README.md +19 -0
- package/test-e2e/node_modules/@babel/parser/bin/babel-parser.js +15 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js +14582 -0
- package/test-e2e/node_modules/@babel/parser/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/parser/package.json +50 -0
- package/test-e2e/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
- package/test-e2e/node_modules/@babel/types/LICENSE +22 -0
- package/test-e2e/node_modules/@babel/types/README.md +19 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js +16 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/assertNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js +1251 -0
- package/test-e2e/node_modules/@babel/types/lib/asserts/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js +3 -0
- package/test-e2e/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js +2902 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/lowercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js +272 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/generated/uppercase.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/productions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/react/buildChildren.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/builders/validateNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/clone.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js +107 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComment.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js +22 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/addComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritInnerComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/inheritsComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/comments/removeComments.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js +60 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/constants/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/ensureBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js +29 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toBlock.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toComputedKey.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js +25 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js +38 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toKeyAlias.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js +19 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toSequenceExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js +39 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/toStatement.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js +89 -0
- package/test-e2e/node_modules/@babel/types/lib/converters/valueToNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js +1725 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/core.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/deprecated-aliases.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js +124 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/experimental.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js +495 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/flow.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js +106 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js +157 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/jsx.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js +31 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/misc.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/placeholders.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js +528 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/typescript.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js +296 -0
- package/test-e2e/node_modules/@babel/types/lib/definitions/utils.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/index-legacy.d.ts +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/index.d.ts +3617 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js +582 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.flow +2650 -0
- package/test-e2e/node_modules/@babel/types/lib/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js +65 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js +28 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/inherits.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js +24 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removeProperties.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js +66 -0
- package/test-e2e/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js +48 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js +102 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js +63 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getFunctionName.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js +50 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverse.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/traverse/traverseFast.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/deprecationWarning.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/inherit.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js +40 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/utils/shallowEqual.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js +2797 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/generated/index.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/is.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js +27 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBinding.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isBlockScoped.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js +21 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isImmutable.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isLet.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js +12 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNode.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js +57 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isNodesEquivalent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isPlaceholderType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js +96 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isReferenced.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isScope.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +14 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js +17 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isType.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js +13 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidES3Identifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js +18 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isValidIdentifier.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js +15 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/isVar.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js +44 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/matchesPattern.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isCompatTag.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js +11 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/react/isReactComponent.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js +42 -0
- package/test-e2e/node_modules/@babel/types/lib/validators/validate.js.map +1 -0
- package/test-e2e/node_modules/@babel/types/package.json +39 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/test-e2e/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/test-e2e/node_modules/@oxc-project/types/LICENSE +22 -0
- package/test-e2e/node_modules/@oxc-project/types/README.md +3 -0
- package/test-e2e/node_modules/@oxc-project/types/package.json +26 -0
- package/test-e2e/node_modules/@oxc-project/types/types.d.ts +1912 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/CODE_OF_CONDUCT.md +128 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/Changelog.md +88 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/README.md +294 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/SECURITY.md +18 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/base.css +224 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/block-navigation.js +87 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/favicon.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/index.html +116 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/main.js.html +592 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/prettify.js +2 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov-report/sorter.js +196 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/lcov.info +246 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46509-1760816753149-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/coverage/tmp/coverage-46510-1760816753116-0.json +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/dist/notice.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/notice-desk.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/package.json +64 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/rollup.config.js +37 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/src/main.js +168 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/tsconfig.json +11 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts +12 -0
- package/test-e2e/node_modules/@peter.naydenov/notice/types/src/main.d.ts.map +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/API.md +939 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CODE_OF_CONDUCT.md +84 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/CONTRIBUTING.md +476 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Changelog.md +217 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/How.to.create.plugins.md +929 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/Migration.guide.md +176 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README-v.2.x.x.md +375 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/README.md +900 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/shortcuts.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/main.d.ts +172 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_normalizeWithPlugins.d.ts +64 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_readShortcutWithPlugins.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_setupPlugin.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/_systemAction.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/changeContext.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/index.d.ts +19 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/listShortcuts.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/load.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/methods/unload.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_listenDOM.d.ts +78 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_normalizeShortcutName.d.ts +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_readClickEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/click/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_defaults.d.ts +17 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/_registerShortcutEvents.d.ts +96 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/form/index.d.ts +9 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_findTarget.d.ts +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_listenDOM.d.ts +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/hover/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_listenDOM.d.ts +63 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_readKeyEvent.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/_specialChars.d.ts +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/key/index.d.ts +14 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_listenDOM.d.ts +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_normalizeShortcutName.d.ts +2 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/_registerShortcutEvents.d.ts +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/dist/src/plugins/scroll/index.d.ts +16 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/eslint.config.js +80 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-COTh6lXR.css +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/assets/index-DOkKC3NI.js +53 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/bg.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.ico +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/favicon.svg +5 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/html.meta.json.gz +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/html/index.html +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/index.html +126 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/javascript.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/jsconfig.json +10 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/package.json +66 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/rollup.config.js +40 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/shortcuts.png +0 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/main.js +302 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_normalizeWithPlugins.js +49 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_readShortcutWithPlugins.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_setupPlugin.js +93 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/_systemAction.js +33 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/changeContext.js +68 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/index.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/listShortcuts.js +34 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/load.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/methods/unload.js +38 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_listenDOM.js +165 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_normalizeShortcutName.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_readClickEvent.js +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/_registerShortcutEvents.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/click/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_defaults.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_listenDOM.js +127 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/_registerShortcutEvents.js +147 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/form/index.js +58 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_findTarget.js +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_listenDOM.js +154 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/_registerShortcutEvents.js +51 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/hover/index.js +71 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_listenDOM.js +186 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_normalizeShortcutName.js +32 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_readKeyEvent.js +28 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_registerShortcutEvents.js +57 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/_specialChars.js +43 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/key/index.js +67 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_listenDOM.js +141 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_normalizeShortcutName.js +21 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/_registerShortcutEvents.js +50 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/src/plugins/scroll/index.js +61 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/style.css +97 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/01-general.test.js +275 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/02-key.test.js +473 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/03-click.test.js +596 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/04-form.test.js +327 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/05-hover.test.js +463 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test/06-scroll.test.js +374 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/Block.jsx +15 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/setup.js +18 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/style.css +26 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/test-helpers/wait.js +8 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/tsconfig.json +24 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vite.config.js +7 -0
- package/test-e2e/node_modules/@peter.naydenov/shortcuts/vitest.config.js +23 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/LICENSE +21 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/fixtures/example.json +5 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/commands.js +25 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component-index.html +12 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress/support/component.js +27 -0
- package/{cypress.config.mjs → test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/cypress.config.js} +2 -3
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.cjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.esm.mjs +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/dist/visual-controller-for-vue3.umd.js +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/index.html +13 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/package.json +43 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/public/vite.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/readme.md +233 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/rollup.config.js +42 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/App.vue +44 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/assets/vue.svg +1 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/components/HelloWorld.vue +26 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/main.js +101 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/src/style.css +90 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/test/01_general.cy.js +98 -0
- package/test-e2e/node_modules/@peter.naydenov/visual-controller-for-vue3/vite.config.js +7 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/README.md +3 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/package.json +37 -0
- package/test-e2e/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/README.md +77 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/LICENSE +21 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/README.md +278 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.d.mts +120 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/dist/index.mjs +1745 -0
- package/test-e2e/node_modules/@vitejs/plugin-vue/package.json +65 -0
- package/test-e2e/node_modules/@vue/compiler-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-core/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6888 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
- package/test-e2e/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5835 -0
- package/test-e2e/node_modules/@vue/compiler-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-core/package.json +58 -0
- package/test-e2e/node_modules/@vue/compiler-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-dom/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +934 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +6644 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +690 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +6814 -0
- package/test-e2e/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +14 -0
- package/test-e2e/node_modules/@vue/compiler-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/compiler-dom/package.json +57 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/README.md +79 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +25619 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +487 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +50833 -0
- package/test-e2e/node_modules/@vue/compiler-sfc/package.json +67 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/README.md +1 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
- package/test-e2e/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/test-e2e/node_modules/@vue/reactivity/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/reactivity/README.md +19 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.js +2033 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1877 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.d.ts +756 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.js +2031 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1990 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.js +2087 -0
- package/test-e2e/node_modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
- package/test-e2e/node_modules/@vue/reactivity/index.js +7 -0
- package/test-e2e/node_modules/@vue/reactivity/package.json +55 -0
- package/test-e2e/node_modules/@vue/runtime-core/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-core/README.md +28 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js +8718 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6856 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1866 -0
- package/test-e2e/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8647 -0
- package/test-e2e/node_modules/@vue/runtime-core/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-core/package.json +52 -0
- package/test-e2e/node_modules/@vue/runtime-dom/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/runtime-dom/README.md +13 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1946 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1796 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1450 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12794 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1985 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.js +12847 -0
- package/test-e2e/node_modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/index.js +7 -0
- package/test-e2e/node_modules/@vue/runtime-dom/package.json +60 -0
- package/test-e2e/node_modules/@vue/server-renderer/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/server-renderer/README.md +178 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.js +1159 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +883 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.js +8627 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-browser.prod.js +5 -0
- package/test-e2e/node_modules/@vue/server-renderer/dist/server-renderer.esm-bundler.js +1097 -0
- package/test-e2e/node_modules/@vue/server-renderer/index.js +7 -0
- package/test-e2e/node_modules/@vue/server-renderer/package.json +55 -0
- package/test-e2e/node_modules/@vue/shared/LICENSE +21 -0
- package/test-e2e/node_modules/@vue/shared/README.md +3 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.js +612 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.d.ts +334 -0
- package/test-e2e/node_modules/@vue/shared/dist/shared.esm-bundler.js +536 -0
- package/test-e2e/node_modules/@vue/shared/index.js +7 -0
- package/test-e2e/node_modules/@vue/shared/package.json +47 -0
- package/test-e2e/node_modules/ask-for-promise/LICENSE +21 -0
- package/test-e2e/node_modules/ask-for-promise/README.md +278 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.cjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.esm.mjs +1 -0
- package/test-e2e/node_modules/ask-for-promise/dist/ask-for-promise.umd.js +1 -0
- package/test-e2e/node_modules/ask-for-promise/package.json +77 -0
- package/test-e2e/node_modules/ask-for-promise/src/askForPromise.js +277 -0
- package/test-e2e/node_modules/ask-for-promise/types/index.d.ts +18 -0
- package/test-e2e/node_modules/csstype/LICENSE +19 -0
- package/test-e2e/node_modules/csstype/README.md +291 -0
- package/test-e2e/node_modules/csstype/index.d.ts +22569 -0
- package/test-e2e/node_modules/csstype/index.js.flow +6863 -0
- package/test-e2e/node_modules/csstype/package.json +70 -0
- package/test-e2e/node_modules/detect-libc/LICENSE +201 -0
- package/test-e2e/node_modules/detect-libc/README.md +163 -0
- package/test-e2e/node_modules/detect-libc/index.d.ts +14 -0
- package/test-e2e/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/test-e2e/node_modules/detect-libc/lib/elf.js +39 -0
- package/test-e2e/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/test-e2e/node_modules/detect-libc/lib/process.js +24 -0
- package/test-e2e/node_modules/detect-libc/package.json +44 -0
- package/test-e2e/node_modules/entities/LICENSE +11 -0
- package/test-e2e/node_modules/entities/decode.d.ts +3 -0
- package/test-e2e/node_modules/entities/decode.js +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/test-e2e/node_modules/entities/dist/commonjs/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js +92 -0
- package/test-e2e/node_modules/entities/dist/commonjs/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js +138 -0
- package/test-e2e/node_modules/entities/dist/commonjs/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js +14 -0
- package/test-e2e/node_modules/entities/dist/commonjs/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js +131 -0
- package/test-e2e/node_modules/entities/dist/commonjs/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js +94 -0
- package/test-e2e/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/commonjs/package.json +3 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js +72 -0
- package/test-e2e/node_modules/entities/dist/esm/decode-codepoint.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts +205 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js +554 -0
- package/test-e2e/node_modules/entities/dist/esm/decode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts +22 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js +88 -0
- package/test-e2e/node_modules/entities/dist/esm/encode.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts +46 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js +134 -0
- package/test-e2e/node_modules/entities/dist/esm/escape.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js +4 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js +11 -0
- package/test-e2e/node_modules/entities/dist/esm/generated/encode-html.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts +96 -0
- package/test-e2e/node_modules/entities/dist/esm/index.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js +107 -0
- package/test-e2e/node_modules/entities/dist/esm/index.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js +18 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js +28 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/decode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js +91 -0
- package/test-e2e/node_modules/entities/dist/esm/internal/encode-shared.js.map +1 -0
- package/test-e2e/node_modules/entities/dist/esm/package.json +3 -0
- package/test-e2e/node_modules/entities/escape.d.ts +3 -0
- package/test-e2e/node_modules/entities/escape.js +3 -0
- package/test-e2e/node_modules/entities/package.json +120 -0
- package/test-e2e/node_modules/entities/readme.md +143 -0
- package/test-e2e/node_modules/entities/src/decode-codepoint.ts +81 -0
- package/test-e2e/node_modules/entities/src/decode.ts +685 -0
- package/test-e2e/node_modules/entities/src/encode.ts +93 -0
- package/test-e2e/node_modules/entities/src/escape.ts +161 -0
- package/test-e2e/node_modules/entities/src/generated/.eslintrc.json +10 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-html.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/decode-data-xml.ts +6 -0
- package/test-e2e/node_modules/entities/src/generated/encode-html.ts +17 -0
- package/test-e2e/node_modules/entities/src/index.ts +187 -0
- package/test-e2e/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
- package/test-e2e/node_modules/entities/src/internal/decode-shared.ts +30 -0
- package/test-e2e/node_modules/entities/src/internal/encode-shared.ts +121 -0
- package/test-e2e/node_modules/estree-walker/CHANGELOG.md +92 -0
- package/test-e2e/node_modules/estree-walker/LICENSE +7 -0
- package/test-e2e/node_modules/estree-walker/README.md +48 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/estree-walker.js +333 -0
- package/test-e2e/node_modules/estree-walker/dist/esm/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/test-e2e/node_modules/estree-walker/package.json +37 -0
- package/test-e2e/node_modules/estree-walker/src/async.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/index.js +35 -0
- package/test-e2e/node_modules/estree-walker/src/package.json +1 -0
- package/test-e2e/node_modules/estree-walker/src/sync.js +118 -0
- package/test-e2e/node_modules/estree-walker/src/walker.js +61 -0
- package/test-e2e/node_modules/estree-walker/types/async.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/index.d.ts +56 -0
- package/test-e2e/node_modules/estree-walker/types/sync.d.ts +53 -0
- package/test-e2e/node_modules/estree-walker/types/tsconfig.tsbuildinfo +345 -0
- package/test-e2e/node_modules/estree-walker/types/walker.d.ts +37 -0
- package/test-e2e/node_modules/fdir/LICENSE +7 -0
- package/test-e2e/node_modules/fdir/README.md +91 -0
- package/test-e2e/node_modules/fdir/dist/index.cjs +588 -0
- package/test-e2e/node_modules/fdir/dist/index.d.cts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.d.mts +155 -0
- package/test-e2e/node_modules/fdir/dist/index.mjs +570 -0
- package/test-e2e/node_modules/fdir/package.json +103 -0
- package/test-e2e/node_modules/lightningcss/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss/README.md +105 -0
- package/test-e2e/node_modules/lightningcss/node/ast.d.ts +9892 -0
- package/test-e2e/node_modules/lightningcss/node/ast.js.flow +10539 -0
- package/test-e2e/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
- package/test-e2e/node_modules/lightningcss/node/composeVisitors.js +450 -0
- package/test-e2e/node_modules/lightningcss/node/flags.js +28 -0
- package/test-e2e/node_modules/lightningcss/node/index.d.ts +494 -0
- package/test-e2e/node_modules/lightningcss/node/index.js +59 -0
- package/test-e2e/node_modules/lightningcss/node/index.js.flow +843 -0
- package/test-e2e/node_modules/lightningcss/node/index.mjs +4 -0
- package/test-e2e/node_modules/lightningcss/node/targets.d.ts +40 -0
- package/test-e2e/node_modules/lightningcss/node/targets.js.flow +39 -0
- package/test-e2e/node_modules/lightningcss/package.json +110 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/LICENSE +373 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/README.md +1 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
- package/test-e2e/node_modules/lightningcss-darwin-arm64/package.json +34 -0
- package/test-e2e/node_modules/magic-string/LICENSE +7 -0
- package/test-e2e/node_modules/magic-string/README.md +325 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js +1594 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.cjs.js.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs +1588 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js +1682 -0
- package/test-e2e/node_modules/magic-string/dist/magic-string.umd.js.map +1 -0
- package/test-e2e/node_modules/magic-string/package.json +67 -0
- package/test-e2e/node_modules/nanoid/LICENSE +20 -0
- package/test-e2e/node_modules/nanoid/README.md +39 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.cjs +69 -0
- package/test-e2e/node_modules/nanoid/async/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/async/index.cjs +71 -0
- package/test-e2e/node_modules/nanoid/async/index.d.ts +56 -0
- package/test-e2e/node_modules/nanoid/async/index.js +35 -0
- package/test-e2e/node_modules/nanoid/async/index.native.js +26 -0
- package/test-e2e/node_modules/nanoid/async/package.json +12 -0
- package/test-e2e/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/test-e2e/node_modules/nanoid/index.browser.cjs +72 -0
- package/test-e2e/node_modules/nanoid/index.browser.js +34 -0
- package/test-e2e/node_modules/nanoid/index.cjs +85 -0
- package/test-e2e/node_modules/nanoid/index.d.cts +91 -0
- package/test-e2e/node_modules/nanoid/index.d.ts +91 -0
- package/test-e2e/node_modules/nanoid/index.js +45 -0
- package/test-e2e/node_modules/nanoid/nanoid.js +1 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.cjs +34 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/test-e2e/node_modules/nanoid/non-secure/index.js +21 -0
- package/test-e2e/node_modules/nanoid/non-secure/package.json +6 -0
- package/test-e2e/node_modules/nanoid/package.json +89 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.cjs +7 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/test-e2e/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/test-e2e/node_modules/picocolors/LICENSE +15 -0
- package/test-e2e/node_modules/picocolors/README.md +21 -0
- package/test-e2e/node_modules/picocolors/package.json +25 -0
- package/test-e2e/node_modules/picocolors/picocolors.browser.js +4 -0
- package/test-e2e/node_modules/picocolors/picocolors.d.ts +5 -0
- package/test-e2e/node_modules/picocolors/picocolors.js +75 -0
- package/test-e2e/node_modules/picocolors/types.d.ts +51 -0
- package/test-e2e/node_modules/picomatch/LICENSE +21 -0
- package/test-e2e/node_modules/picomatch/README.md +749 -0
- package/test-e2e/node_modules/picomatch/index.js +17 -0
- package/test-e2e/node_modules/picomatch/lib/constants.js +184 -0
- package/test-e2e/node_modules/picomatch/lib/parse.js +1386 -0
- package/test-e2e/node_modules/picomatch/lib/picomatch.js +349 -0
- package/test-e2e/node_modules/picomatch/lib/scan.js +391 -0
- package/test-e2e/node_modules/picomatch/lib/utils.js +72 -0
- package/test-e2e/node_modules/picomatch/package.json +82 -0
- package/test-e2e/node_modules/picomatch/posix.js +3 -0
- package/test-e2e/node_modules/postcss/LICENSE +20 -0
- package/test-e2e/node_modules/postcss/README.md +28 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.d.ts +139 -0
- package/test-e2e/node_modules/postcss/lib/at-rule.js +25 -0
- package/test-e2e/node_modules/postcss/lib/comment.d.ts +67 -0
- package/test-e2e/node_modules/postcss/lib/comment.js +13 -0
- package/test-e2e/node_modules/postcss/lib/container.d.ts +478 -0
- package/test-e2e/node_modules/postcss/lib/container.js +447 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
- package/test-e2e/node_modules/postcss/lib/css-syntax-error.js +133 -0
- package/test-e2e/node_modules/postcss/lib/declaration.d.ts +150 -0
- package/test-e2e/node_modules/postcss/lib/declaration.js +24 -0
- package/test-e2e/node_modules/postcss/lib/document.d.ts +68 -0
- package/test-e2e/node_modules/postcss/lib/document.js +33 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/fromJSON.js +54 -0
- package/test-e2e/node_modules/postcss/lib/input.d.ts +226 -0
- package/test-e2e/node_modules/postcss/lib/input.js +273 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.d.ts +189 -0
- package/test-e2e/node_modules/postcss/lib/lazy-result.js +550 -0
- package/test-e2e/node_modules/postcss/lib/list.d.ts +60 -0
- package/test-e2e/node_modules/postcss/lib/list.js +58 -0
- package/test-e2e/node_modules/postcss/lib/map-generator.js +376 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/no-work-result.js +137 -0
- package/test-e2e/node_modules/postcss/lib/node.d.ts +555 -0
- package/test-e2e/node_modules/postcss/lib/node.js +449 -0
- package/test-e2e/node_modules/postcss/lib/parse.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/parse.js +42 -0
- package/test-e2e/node_modules/postcss/lib/parser.js +611 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.mts +66 -0
- package/test-e2e/node_modules/postcss/lib/postcss.d.ts +456 -0
- package/test-e2e/node_modules/postcss/lib/postcss.js +101 -0
- package/test-e2e/node_modules/postcss/lib/postcss.mjs +30 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.d.ts +80 -0
- package/test-e2e/node_modules/postcss/lib/previous-map.js +145 -0
- package/test-e2e/node_modules/postcss/lib/processor.d.ts +114 -0
- package/test-e2e/node_modules/postcss/lib/processor.js +67 -0
- package/test-e2e/node_modules/postcss/lib/result.d.ts +204 -0
- package/test-e2e/node_modules/postcss/lib/result.js +42 -0
- package/test-e2e/node_modules/postcss/lib/root.d.ts +86 -0
- package/test-e2e/node_modules/postcss/lib/root.js +61 -0
- package/test-e2e/node_modules/postcss/lib/rule.d.ts +126 -0
- package/test-e2e/node_modules/postcss/lib/rule.js +27 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.d.ts +45 -0
- package/test-e2e/node_modules/postcss/lib/stringifier.js +353 -0
- package/test-e2e/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/test-e2e/node_modules/postcss/lib/stringify.js +11 -0
- package/test-e2e/node_modules/postcss/lib/symbols.js +5 -0
- package/test-e2e/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/test-e2e/node_modules/postcss/lib/tokenize.js +266 -0
- package/test-e2e/node_modules/postcss/lib/warn-once.js +13 -0
- package/test-e2e/node_modules/postcss/lib/warning.d.ts +146 -0
- package/test-e2e/node_modules/postcss/lib/warning.js +37 -0
- package/test-e2e/node_modules/postcss/package.json +88 -0
- package/test-e2e/node_modules/rolldown/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/README.md +11 -0
- package/test-e2e/node_modules/rolldown/bin/cli.mjs +2 -0
- package/test-e2e/node_modules/rolldown/dist/cli.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/cli.mjs +1191 -0
- package/test-e2e/node_modules/rolldown/dist/config.d.mts +14 -0
- package/test-e2e/node_modules/rolldown/dist/config.mjs +4 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.d.mts +253 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-index.mjs +320 -0
- package/test-e2e/node_modules/rolldown/dist/experimental-runtime-types.d.ts +98 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.d.mts +196 -0
- package/test-e2e/node_modules/rolldown/dist/filter-index.mjs +386 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
- package/test-e2e/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/index.d.mts +4 -0
- package/test-e2e/node_modules/rolldown/dist/index.mjs +50 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
- package/test-e2e/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
- package/test-e2e/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
- package/test-e2e/node_modules/rolldown/dist/plugins-index.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-DUEnSb0A.d.mts +1872 -0
- package/test-e2e/node_modules/rolldown/dist/shared/binding-s-V_wTpj.mjs +582 -0
- package/test-e2e/node_modules/rolldown/dist/shared/bindingify-input-options-DYpBf1OG.mjs +2235 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-BaEBnHl3.mjs +68 -0
- package/test-e2e/node_modules/rolldown/dist/shared/constructors-DYemMpPL.d.mts +37 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
- package/test-e2e/node_modules/rolldown/dist/shared/define-config-DhJZwTRw.d.mts +3795 -0
- package/test-e2e/node_modules/rolldown/dist/shared/error-w0u7biK-.mjs +85 -0
- package/test-e2e/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
- package/test-e2e/node_modules/rolldown/dist/shared/load-config-pmbgQdFU.mjs +120 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +50 -0
- package/test-e2e/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
- package/test-e2e/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
- package/test-e2e/node_modules/rolldown/dist/shared/normalize-string-or-regex-CVvpepxa.mjs +66 -0
- package/test-e2e/node_modules/rolldown/dist/shared/parse-BywQARUG.mjs +74 -0
- package/test-e2e/node_modules/rolldown/dist/shared/prompt-BYQIwEjg.mjs +845 -0
- package/test-e2e/node_modules/rolldown/dist/shared/resolve-tsconfig-CNjJwuKB.mjs +113 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-BLMDGLfI.mjs +40 -0
- package/test-e2e/node_modules/rolldown/dist/shared/rolldown-build-DtGk-m96.mjs +3321 -0
- package/test-e2e/node_modules/rolldown/dist/shared/transform-Kz3D2LbX.d.mts +149 -0
- package/test-e2e/node_modules/rolldown/dist/shared/watch-Cixa7HbR.mjs +374 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.d.mts +376 -0
- package/test-e2e/node_modules/rolldown/dist/utils-index.mjs +2414 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/LICENSE +25 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/README.md +83 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
- package/test-e2e/node_modules/rolldown/node_modules/@rolldown/pluginutils/package.json +37 -0
- package/test-e2e/node_modules/rolldown/package.json +153 -0
- package/test-e2e/node_modules/source-map-js/LICENSE +28 -0
- package/test-e2e/node_modules/source-map-js/README.md +765 -0
- package/test-e2e/node_modules/source-map-js/lib/array-set.js +121 -0
- package/test-e2e/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/test-e2e/node_modules/source-map-js/lib/base64.js +67 -0
- package/test-e2e/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/test-e2e/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/test-e2e/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.d.ts +1 -0
- package/test-e2e/node_modules/source-map-js/lib/source-node.js +413 -0
- package/test-e2e/node_modules/source-map-js/lib/util.js +594 -0
- package/test-e2e/node_modules/source-map-js/package.json +71 -0
- package/test-e2e/node_modules/source-map-js/source-map.d.ts +104 -0
- package/test-e2e/node_modules/source-map-js/source-map.js +8 -0
- package/test-e2e/node_modules/tinyglobby/LICENSE +21 -0
- package/test-e2e/node_modules/tinyglobby/README.md +25 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.cjs +334 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/test-e2e/node_modules/tinyglobby/dist/index.mjs +306 -0
- package/test-e2e/node_modules/tinyglobby/package.json +73 -0
- package/test-e2e/node_modules/vite/LICENSE.md +2230 -0
- package/test-e2e/node_modules/vite/README.md +20 -0
- package/test-e2e/node_modules/vite/bin/openChrome.js +68 -0
- package/test-e2e/node_modules/vite/bin/vite.js +79 -0
- package/test-e2e/node_modules/vite/client.d.ts +282 -0
- package/test-e2e/node_modules/vite/dist/client/client.mjs +1235 -0
- package/test-e2e/node_modules/vite/dist/client/env.mjs +18 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/build2.js +5378 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/chunk.js +37 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/config.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/dist.js +6719 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/lib.js +371 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/logger.js +322 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/node.js +34785 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/optimizer.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/preview.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/chunks/server.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/cli.js +837 -0
- package/test-e2e/node_modules/vite/dist/node/index.d.ts +3867 -0
- package/test-e2e/node_modules/vite/dist/node/index.js +3 -0
- package/test-e2e/node_modules/vite/dist/node/internal.d.ts +2 -0
- package/test-e2e/node_modules/vite/dist/node/internal.js +2 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.d.ts +315 -0
- package/test-e2e/node_modules/vite/dist/node/module-runner.js +1262 -0
- package/test-e2e/node_modules/vite/misc/false.js +1 -0
- package/test-e2e/node_modules/vite/misc/true.js +1 -0
- package/test-e2e/node_modules/vite/package.json +192 -0
- package/test-e2e/node_modules/vite/types/customEvent.d.ts +79 -0
- package/test-e2e/node_modules/vite/types/hmrPayload.d.ts +80 -0
- package/test-e2e/node_modules/vite/types/hot.d.ts +39 -0
- package/test-e2e/node_modules/vite/types/import-meta.d.ts +5 -0
- package/test-e2e/node_modules/vite/types/importGlob.d.ts +89 -0
- package/test-e2e/node_modules/vite/types/importMeta.d.ts +30 -0
- package/test-e2e/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
- package/test-e2e/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
- package/test-e2e/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
- package/test-e2e/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
- package/test-e2e/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
- package/test-e2e/node_modules/vite/types/metadata.d.ts +47 -0
- package/test-e2e/node_modules/vue/LICENSE +21 -0
- package/test-e2e/node_modules/vue/README.md +58 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.js +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.browser.mjs +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.js +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/index.mjs +3 -0
- package/test-e2e/node_modules/vue/compiler-sfc/package.json +4 -0
- package/test-e2e/node_modules/vue/compiler-sfc/register-ts.js +3 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.js +80 -0
- package/test-e2e/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/test-e2e/node_modules/vue/dist/vue.d.mts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.d.ts +7 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.js +18708 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-browser.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.esm-bundler.js +71 -0
- package/test-e2e/node_modules/vue/dist/vue.global.js +18588 -0
- package/test-e2e/node_modules/vue/dist/vue.global.prod.js +13 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.js +12817 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-browser.prod.js +7 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.js +12871 -0
- package/test-e2e/node_modules/vue/dist/vue.runtime.global.prod.js +7 -0
- package/test-e2e/node_modules/vue/index.js +7 -0
- package/test-e2e/node_modules/vue/index.mjs +1 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.d.ts +25 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.js +15 -0
- package/test-e2e/node_modules/vue/jsx-runtime/index.mjs +12 -0
- package/test-e2e/node_modules/vue/jsx-runtime/package.json +5 -0
- package/test-e2e/node_modules/vue/jsx.d.ts +22 -0
- package/test-e2e/node_modules/vue/package.json +112 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.mts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.d.ts +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.js +1 -0
- package/test-e2e/node_modules/vue/server-renderer/index.mjs +1 -0
- package/test-e2e/node_modules/vue/server-renderer/package.json +4 -0
- package/test-e2e/package-lock.json +1164 -0
- package/test-e2e/package.json +17 -0
- package/test-e2e/vite.config.js +17 -0
- package/test-results/.last-run.json +4 -0
- package/vite.config.js +12 -2
- package/vitest.config.js +1 -1
- package/cypress/support/component-index.html +0 -11
- package/test/01-general.cy.js +0 -348
- /package/{test → test-e2e}/blue.vue +0 -0
- /package/{test → test-e2e}/dummy.vue +0 -0
- /package/{test → test-e2e}/gray.vue +0 -0
- /package/{test → test-e2e}/red.vue +0 -0
|
@@ -0,0 +1,1990 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/reactivity v3.5.32
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
import { extend, hasChanged, isArray, isIntegerKey, isSymbol, isMap, hasOwn, isObject, makeMap, capitalize, toRawType, def, isFunction, EMPTY_OBJ, isSet, isPlainObject, remove, NOOP } from '@vue/shared';
|
|
7
|
+
|
|
8
|
+
function warn(msg, ...args) {
|
|
9
|
+
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let activeEffectScope;
|
|
13
|
+
class EffectScope {
|
|
14
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
15
|
+
constructor(detached = false) {
|
|
16
|
+
this.detached = detached;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
this._active = true;
|
|
21
|
+
/**
|
|
22
|
+
* @internal track `on` calls, allow `on` call multiple times
|
|
23
|
+
*/
|
|
24
|
+
this._on = 0;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
this.effects = [];
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
this.cleanups = [];
|
|
33
|
+
this._isPaused = false;
|
|
34
|
+
this.__v_skip = true;
|
|
35
|
+
this.parent = activeEffectScope;
|
|
36
|
+
if (!detached && activeEffectScope) {
|
|
37
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
38
|
+
this
|
|
39
|
+
) - 1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
get active() {
|
|
43
|
+
return this._active;
|
|
44
|
+
}
|
|
45
|
+
pause() {
|
|
46
|
+
if (this._active) {
|
|
47
|
+
this._isPaused = true;
|
|
48
|
+
let i, l;
|
|
49
|
+
if (this.scopes) {
|
|
50
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
51
|
+
this.scopes[i].pause();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
55
|
+
this.effects[i].pause();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Resumes the effect scope, including all child scopes and effects.
|
|
61
|
+
*/
|
|
62
|
+
resume() {
|
|
63
|
+
if (this._active) {
|
|
64
|
+
if (this._isPaused) {
|
|
65
|
+
this._isPaused = false;
|
|
66
|
+
let i, l;
|
|
67
|
+
if (this.scopes) {
|
|
68
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
69
|
+
this.scopes[i].resume();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
73
|
+
this.effects[i].resume();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
run(fn) {
|
|
79
|
+
if (this._active) {
|
|
80
|
+
const currentEffectScope = activeEffectScope;
|
|
81
|
+
try {
|
|
82
|
+
activeEffectScope = this;
|
|
83
|
+
return fn();
|
|
84
|
+
} finally {
|
|
85
|
+
activeEffectScope = currentEffectScope;
|
|
86
|
+
}
|
|
87
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
88
|
+
warn(`cannot run an inactive effect scope.`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This should only be called on non-detached scopes
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
on() {
|
|
96
|
+
if (++this._on === 1) {
|
|
97
|
+
this.prevScope = activeEffectScope;
|
|
98
|
+
activeEffectScope = this;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* This should only be called on non-detached scopes
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
off() {
|
|
106
|
+
if (this._on > 0 && --this._on === 0) {
|
|
107
|
+
activeEffectScope = this.prevScope;
|
|
108
|
+
this.prevScope = void 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
stop(fromParent) {
|
|
112
|
+
if (this._active) {
|
|
113
|
+
this._active = false;
|
|
114
|
+
let i, l;
|
|
115
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
116
|
+
this.effects[i].stop();
|
|
117
|
+
}
|
|
118
|
+
this.effects.length = 0;
|
|
119
|
+
for (i = 0, l = this.cleanups.length; i < l; i++) {
|
|
120
|
+
this.cleanups[i]();
|
|
121
|
+
}
|
|
122
|
+
this.cleanups.length = 0;
|
|
123
|
+
if (this.scopes) {
|
|
124
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
125
|
+
this.scopes[i].stop(true);
|
|
126
|
+
}
|
|
127
|
+
this.scopes.length = 0;
|
|
128
|
+
}
|
|
129
|
+
if (!this.detached && this.parent && !fromParent) {
|
|
130
|
+
const last = this.parent.scopes.pop();
|
|
131
|
+
if (last && last !== this) {
|
|
132
|
+
this.parent.scopes[this.index] = last;
|
|
133
|
+
last.index = this.index;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
this.parent = void 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function effectScope(detached) {
|
|
141
|
+
return new EffectScope(detached);
|
|
142
|
+
}
|
|
143
|
+
function getCurrentScope() {
|
|
144
|
+
return activeEffectScope;
|
|
145
|
+
}
|
|
146
|
+
function onScopeDispose(fn, failSilently = false) {
|
|
147
|
+
if (activeEffectScope) {
|
|
148
|
+
activeEffectScope.cleanups.push(fn);
|
|
149
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !failSilently) {
|
|
150
|
+
warn(
|
|
151
|
+
`onScopeDispose() is called when there is no active effect scope to be associated with.`
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
let activeSub;
|
|
157
|
+
const EffectFlags = {
|
|
158
|
+
"ACTIVE": 1,
|
|
159
|
+
"1": "ACTIVE",
|
|
160
|
+
"RUNNING": 2,
|
|
161
|
+
"2": "RUNNING",
|
|
162
|
+
"TRACKING": 4,
|
|
163
|
+
"4": "TRACKING",
|
|
164
|
+
"NOTIFIED": 8,
|
|
165
|
+
"8": "NOTIFIED",
|
|
166
|
+
"DIRTY": 16,
|
|
167
|
+
"16": "DIRTY",
|
|
168
|
+
"ALLOW_RECURSE": 32,
|
|
169
|
+
"32": "ALLOW_RECURSE",
|
|
170
|
+
"PAUSED": 64,
|
|
171
|
+
"64": "PAUSED",
|
|
172
|
+
"EVALUATED": 128,
|
|
173
|
+
"128": "EVALUATED"
|
|
174
|
+
};
|
|
175
|
+
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
|
|
176
|
+
class ReactiveEffect {
|
|
177
|
+
constructor(fn) {
|
|
178
|
+
this.fn = fn;
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
*/
|
|
182
|
+
this.deps = void 0;
|
|
183
|
+
/**
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
this.depsTail = void 0;
|
|
187
|
+
/**
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
this.flags = 1 | 4;
|
|
191
|
+
/**
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
this.next = void 0;
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
this.cleanup = void 0;
|
|
199
|
+
this.scheduler = void 0;
|
|
200
|
+
if (activeEffectScope && activeEffectScope.active) {
|
|
201
|
+
activeEffectScope.effects.push(this);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
pause() {
|
|
205
|
+
this.flags |= 64;
|
|
206
|
+
}
|
|
207
|
+
resume() {
|
|
208
|
+
if (this.flags & 64) {
|
|
209
|
+
this.flags &= -65;
|
|
210
|
+
if (pausedQueueEffects.has(this)) {
|
|
211
|
+
pausedQueueEffects.delete(this);
|
|
212
|
+
this.trigger();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
notify() {
|
|
220
|
+
if (this.flags & 2 && !(this.flags & 32)) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
if (!(this.flags & 8)) {
|
|
224
|
+
batch(this);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
run() {
|
|
228
|
+
if (!(this.flags & 1)) {
|
|
229
|
+
return this.fn();
|
|
230
|
+
}
|
|
231
|
+
this.flags |= 2;
|
|
232
|
+
cleanupEffect(this);
|
|
233
|
+
prepareDeps(this);
|
|
234
|
+
const prevEffect = activeSub;
|
|
235
|
+
const prevShouldTrack = shouldTrack;
|
|
236
|
+
activeSub = this;
|
|
237
|
+
shouldTrack = true;
|
|
238
|
+
try {
|
|
239
|
+
return this.fn();
|
|
240
|
+
} finally {
|
|
241
|
+
if (!!(process.env.NODE_ENV !== "production") && activeSub !== this) {
|
|
242
|
+
warn(
|
|
243
|
+
"Active effect was not restored correctly - this is likely a Vue internal bug."
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
cleanupDeps(this);
|
|
247
|
+
activeSub = prevEffect;
|
|
248
|
+
shouldTrack = prevShouldTrack;
|
|
249
|
+
this.flags &= -3;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
stop() {
|
|
253
|
+
if (this.flags & 1) {
|
|
254
|
+
for (let link = this.deps; link; link = link.nextDep) {
|
|
255
|
+
removeSub(link);
|
|
256
|
+
}
|
|
257
|
+
this.deps = this.depsTail = void 0;
|
|
258
|
+
cleanupEffect(this);
|
|
259
|
+
this.onStop && this.onStop();
|
|
260
|
+
this.flags &= -2;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
trigger() {
|
|
264
|
+
if (this.flags & 64) {
|
|
265
|
+
pausedQueueEffects.add(this);
|
|
266
|
+
} else if (this.scheduler) {
|
|
267
|
+
this.scheduler();
|
|
268
|
+
} else {
|
|
269
|
+
this.runIfDirty();
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
runIfDirty() {
|
|
276
|
+
if (isDirty(this)) {
|
|
277
|
+
this.run();
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
get dirty() {
|
|
281
|
+
return isDirty(this);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
let batchDepth = 0;
|
|
285
|
+
let batchedSub;
|
|
286
|
+
let batchedComputed;
|
|
287
|
+
function batch(sub, isComputed = false) {
|
|
288
|
+
sub.flags |= 8;
|
|
289
|
+
if (isComputed) {
|
|
290
|
+
sub.next = batchedComputed;
|
|
291
|
+
batchedComputed = sub;
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
sub.next = batchedSub;
|
|
295
|
+
batchedSub = sub;
|
|
296
|
+
}
|
|
297
|
+
function startBatch() {
|
|
298
|
+
batchDepth++;
|
|
299
|
+
}
|
|
300
|
+
function endBatch() {
|
|
301
|
+
if (--batchDepth > 0) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (batchedComputed) {
|
|
305
|
+
let e = batchedComputed;
|
|
306
|
+
batchedComputed = void 0;
|
|
307
|
+
while (e) {
|
|
308
|
+
const next = e.next;
|
|
309
|
+
e.next = void 0;
|
|
310
|
+
e.flags &= -9;
|
|
311
|
+
e = next;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
let error;
|
|
315
|
+
while (batchedSub) {
|
|
316
|
+
let e = batchedSub;
|
|
317
|
+
batchedSub = void 0;
|
|
318
|
+
while (e) {
|
|
319
|
+
const next = e.next;
|
|
320
|
+
e.next = void 0;
|
|
321
|
+
e.flags &= -9;
|
|
322
|
+
if (e.flags & 1) {
|
|
323
|
+
try {
|
|
324
|
+
;
|
|
325
|
+
e.trigger();
|
|
326
|
+
} catch (err) {
|
|
327
|
+
if (!error) error = err;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
e = next;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
if (error) throw error;
|
|
334
|
+
}
|
|
335
|
+
function prepareDeps(sub) {
|
|
336
|
+
for (let link = sub.deps; link; link = link.nextDep) {
|
|
337
|
+
link.version = -1;
|
|
338
|
+
link.prevActiveLink = link.dep.activeLink;
|
|
339
|
+
link.dep.activeLink = link;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
function cleanupDeps(sub) {
|
|
343
|
+
let head;
|
|
344
|
+
let tail = sub.depsTail;
|
|
345
|
+
let link = tail;
|
|
346
|
+
while (link) {
|
|
347
|
+
const prev = link.prevDep;
|
|
348
|
+
if (link.version === -1) {
|
|
349
|
+
if (link === tail) tail = prev;
|
|
350
|
+
removeSub(link);
|
|
351
|
+
removeDep(link);
|
|
352
|
+
} else {
|
|
353
|
+
head = link;
|
|
354
|
+
}
|
|
355
|
+
link.dep.activeLink = link.prevActiveLink;
|
|
356
|
+
link.prevActiveLink = void 0;
|
|
357
|
+
link = prev;
|
|
358
|
+
}
|
|
359
|
+
sub.deps = head;
|
|
360
|
+
sub.depsTail = tail;
|
|
361
|
+
}
|
|
362
|
+
function isDirty(sub) {
|
|
363
|
+
for (let link = sub.deps; link; link = link.nextDep) {
|
|
364
|
+
if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
|
|
365
|
+
return true;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
if (sub._dirty) {
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
function refreshComputed(computed) {
|
|
374
|
+
if (computed.flags & 4 && !(computed.flags & 16)) {
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
computed.flags &= -17;
|
|
378
|
+
if (computed.globalVersion === globalVersion) {
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
computed.globalVersion = globalVersion;
|
|
382
|
+
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
computed.flags |= 2;
|
|
386
|
+
const dep = computed.dep;
|
|
387
|
+
const prevSub = activeSub;
|
|
388
|
+
const prevShouldTrack = shouldTrack;
|
|
389
|
+
activeSub = computed;
|
|
390
|
+
shouldTrack = true;
|
|
391
|
+
try {
|
|
392
|
+
prepareDeps(computed);
|
|
393
|
+
const value = computed.fn(computed._value);
|
|
394
|
+
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
395
|
+
computed.flags |= 128;
|
|
396
|
+
computed._value = value;
|
|
397
|
+
dep.version++;
|
|
398
|
+
}
|
|
399
|
+
} catch (err) {
|
|
400
|
+
dep.version++;
|
|
401
|
+
throw err;
|
|
402
|
+
} finally {
|
|
403
|
+
activeSub = prevSub;
|
|
404
|
+
shouldTrack = prevShouldTrack;
|
|
405
|
+
cleanupDeps(computed);
|
|
406
|
+
computed.flags &= -3;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
function removeSub(link, soft = false) {
|
|
410
|
+
const { dep, prevSub, nextSub } = link;
|
|
411
|
+
if (prevSub) {
|
|
412
|
+
prevSub.nextSub = nextSub;
|
|
413
|
+
link.prevSub = void 0;
|
|
414
|
+
}
|
|
415
|
+
if (nextSub) {
|
|
416
|
+
nextSub.prevSub = prevSub;
|
|
417
|
+
link.nextSub = void 0;
|
|
418
|
+
}
|
|
419
|
+
if (!!(process.env.NODE_ENV !== "production") && dep.subsHead === link) {
|
|
420
|
+
dep.subsHead = nextSub;
|
|
421
|
+
}
|
|
422
|
+
if (dep.subs === link) {
|
|
423
|
+
dep.subs = prevSub;
|
|
424
|
+
if (!prevSub && dep.computed) {
|
|
425
|
+
dep.computed.flags &= -5;
|
|
426
|
+
for (let l = dep.computed.deps; l; l = l.nextDep) {
|
|
427
|
+
removeSub(l, true);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
if (!soft && !--dep.sc && dep.map) {
|
|
432
|
+
dep.map.delete(dep.key);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
function removeDep(link) {
|
|
436
|
+
const { prevDep, nextDep } = link;
|
|
437
|
+
if (prevDep) {
|
|
438
|
+
prevDep.nextDep = nextDep;
|
|
439
|
+
link.prevDep = void 0;
|
|
440
|
+
}
|
|
441
|
+
if (nextDep) {
|
|
442
|
+
nextDep.prevDep = prevDep;
|
|
443
|
+
link.nextDep = void 0;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function effect(fn, options) {
|
|
447
|
+
if (fn.effect instanceof ReactiveEffect) {
|
|
448
|
+
fn = fn.effect.fn;
|
|
449
|
+
}
|
|
450
|
+
const e = new ReactiveEffect(fn);
|
|
451
|
+
if (options) {
|
|
452
|
+
extend(e, options);
|
|
453
|
+
}
|
|
454
|
+
try {
|
|
455
|
+
e.run();
|
|
456
|
+
} catch (err) {
|
|
457
|
+
e.stop();
|
|
458
|
+
throw err;
|
|
459
|
+
}
|
|
460
|
+
const runner = e.run.bind(e);
|
|
461
|
+
runner.effect = e;
|
|
462
|
+
return runner;
|
|
463
|
+
}
|
|
464
|
+
function stop(runner) {
|
|
465
|
+
runner.effect.stop();
|
|
466
|
+
}
|
|
467
|
+
let shouldTrack = true;
|
|
468
|
+
const trackStack = [];
|
|
469
|
+
function pauseTracking() {
|
|
470
|
+
trackStack.push(shouldTrack);
|
|
471
|
+
shouldTrack = false;
|
|
472
|
+
}
|
|
473
|
+
function enableTracking() {
|
|
474
|
+
trackStack.push(shouldTrack);
|
|
475
|
+
shouldTrack = true;
|
|
476
|
+
}
|
|
477
|
+
function resetTracking() {
|
|
478
|
+
const last = trackStack.pop();
|
|
479
|
+
shouldTrack = last === void 0 ? true : last;
|
|
480
|
+
}
|
|
481
|
+
function onEffectCleanup(fn, failSilently = false) {
|
|
482
|
+
if (activeSub instanceof ReactiveEffect) {
|
|
483
|
+
activeSub.cleanup = fn;
|
|
484
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !failSilently) {
|
|
485
|
+
warn(
|
|
486
|
+
`onEffectCleanup() was called when there was no active effect to associate with.`
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
function cleanupEffect(e) {
|
|
491
|
+
const { cleanup } = e;
|
|
492
|
+
e.cleanup = void 0;
|
|
493
|
+
if (cleanup) {
|
|
494
|
+
const prevSub = activeSub;
|
|
495
|
+
activeSub = void 0;
|
|
496
|
+
try {
|
|
497
|
+
cleanup();
|
|
498
|
+
} finally {
|
|
499
|
+
activeSub = prevSub;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
let globalVersion = 0;
|
|
505
|
+
class Link {
|
|
506
|
+
constructor(sub, dep) {
|
|
507
|
+
this.sub = sub;
|
|
508
|
+
this.dep = dep;
|
|
509
|
+
this.version = dep.version;
|
|
510
|
+
this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
class Dep {
|
|
514
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
515
|
+
constructor(computed) {
|
|
516
|
+
this.computed = computed;
|
|
517
|
+
this.version = 0;
|
|
518
|
+
/**
|
|
519
|
+
* Link between this dep and the current active effect
|
|
520
|
+
*/
|
|
521
|
+
this.activeLink = void 0;
|
|
522
|
+
/**
|
|
523
|
+
* Doubly linked list representing the subscribing effects (tail)
|
|
524
|
+
*/
|
|
525
|
+
this.subs = void 0;
|
|
526
|
+
/**
|
|
527
|
+
* For object property deps cleanup
|
|
528
|
+
*/
|
|
529
|
+
this.map = void 0;
|
|
530
|
+
this.key = void 0;
|
|
531
|
+
/**
|
|
532
|
+
* Subscriber counter
|
|
533
|
+
*/
|
|
534
|
+
this.sc = 0;
|
|
535
|
+
/**
|
|
536
|
+
* @internal
|
|
537
|
+
*/
|
|
538
|
+
this.__v_skip = true;
|
|
539
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
540
|
+
this.subsHead = void 0;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
track(debugInfo) {
|
|
544
|
+
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
|
545
|
+
return;
|
|
546
|
+
}
|
|
547
|
+
let link = this.activeLink;
|
|
548
|
+
if (link === void 0 || link.sub !== activeSub) {
|
|
549
|
+
link = this.activeLink = new Link(activeSub, this);
|
|
550
|
+
if (!activeSub.deps) {
|
|
551
|
+
activeSub.deps = activeSub.depsTail = link;
|
|
552
|
+
} else {
|
|
553
|
+
link.prevDep = activeSub.depsTail;
|
|
554
|
+
activeSub.depsTail.nextDep = link;
|
|
555
|
+
activeSub.depsTail = link;
|
|
556
|
+
}
|
|
557
|
+
addSub(link);
|
|
558
|
+
} else if (link.version === -1) {
|
|
559
|
+
link.version = this.version;
|
|
560
|
+
if (link.nextDep) {
|
|
561
|
+
const next = link.nextDep;
|
|
562
|
+
next.prevDep = link.prevDep;
|
|
563
|
+
if (link.prevDep) {
|
|
564
|
+
link.prevDep.nextDep = next;
|
|
565
|
+
}
|
|
566
|
+
link.prevDep = activeSub.depsTail;
|
|
567
|
+
link.nextDep = void 0;
|
|
568
|
+
activeSub.depsTail.nextDep = link;
|
|
569
|
+
activeSub.depsTail = link;
|
|
570
|
+
if (activeSub.deps === link) {
|
|
571
|
+
activeSub.deps = next;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
if (!!(process.env.NODE_ENV !== "production") && activeSub.onTrack) {
|
|
576
|
+
activeSub.onTrack(
|
|
577
|
+
extend(
|
|
578
|
+
{
|
|
579
|
+
effect: activeSub
|
|
580
|
+
},
|
|
581
|
+
debugInfo
|
|
582
|
+
)
|
|
583
|
+
);
|
|
584
|
+
}
|
|
585
|
+
return link;
|
|
586
|
+
}
|
|
587
|
+
trigger(debugInfo) {
|
|
588
|
+
this.version++;
|
|
589
|
+
globalVersion++;
|
|
590
|
+
this.notify(debugInfo);
|
|
591
|
+
}
|
|
592
|
+
notify(debugInfo) {
|
|
593
|
+
startBatch();
|
|
594
|
+
try {
|
|
595
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
596
|
+
for (let head = this.subsHead; head; head = head.nextSub) {
|
|
597
|
+
if (head.sub.onTrigger && !(head.sub.flags & 8)) {
|
|
598
|
+
head.sub.onTrigger(
|
|
599
|
+
extend(
|
|
600
|
+
{
|
|
601
|
+
effect: head.sub
|
|
602
|
+
},
|
|
603
|
+
debugInfo
|
|
604
|
+
)
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
for (let link = this.subs; link; link = link.prevSub) {
|
|
610
|
+
if (link.sub.notify()) {
|
|
611
|
+
;
|
|
612
|
+
link.sub.dep.notify();
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
} finally {
|
|
616
|
+
endBatch();
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
function addSub(link) {
|
|
621
|
+
link.dep.sc++;
|
|
622
|
+
if (link.sub.flags & 4) {
|
|
623
|
+
const computed = link.dep.computed;
|
|
624
|
+
if (computed && !link.dep.subs) {
|
|
625
|
+
computed.flags |= 4 | 16;
|
|
626
|
+
for (let l = computed.deps; l; l = l.nextDep) {
|
|
627
|
+
addSub(l);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
const currentTail = link.dep.subs;
|
|
631
|
+
if (currentTail !== link) {
|
|
632
|
+
link.prevSub = currentTail;
|
|
633
|
+
if (currentTail) currentTail.nextSub = link;
|
|
634
|
+
}
|
|
635
|
+
if (!!(process.env.NODE_ENV !== "production") && link.dep.subsHead === void 0) {
|
|
636
|
+
link.dep.subsHead = link;
|
|
637
|
+
}
|
|
638
|
+
link.dep.subs = link;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
642
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
643
|
+
!!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
|
|
644
|
+
);
|
|
645
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
646
|
+
!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : ""
|
|
647
|
+
);
|
|
648
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
649
|
+
!!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
|
|
650
|
+
);
|
|
651
|
+
function track(target, type, key) {
|
|
652
|
+
if (shouldTrack && activeSub) {
|
|
653
|
+
let depsMap = targetMap.get(target);
|
|
654
|
+
if (!depsMap) {
|
|
655
|
+
targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
|
|
656
|
+
}
|
|
657
|
+
let dep = depsMap.get(key);
|
|
658
|
+
if (!dep) {
|
|
659
|
+
depsMap.set(key, dep = new Dep());
|
|
660
|
+
dep.map = depsMap;
|
|
661
|
+
dep.key = key;
|
|
662
|
+
}
|
|
663
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
664
|
+
dep.track({
|
|
665
|
+
target,
|
|
666
|
+
type,
|
|
667
|
+
key
|
|
668
|
+
});
|
|
669
|
+
} else {
|
|
670
|
+
dep.track();
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
675
|
+
const depsMap = targetMap.get(target);
|
|
676
|
+
if (!depsMap) {
|
|
677
|
+
globalVersion++;
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
const run = (dep) => {
|
|
681
|
+
if (dep) {
|
|
682
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
683
|
+
dep.trigger({
|
|
684
|
+
target,
|
|
685
|
+
type,
|
|
686
|
+
key,
|
|
687
|
+
newValue,
|
|
688
|
+
oldValue,
|
|
689
|
+
oldTarget
|
|
690
|
+
});
|
|
691
|
+
} else {
|
|
692
|
+
dep.trigger();
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
startBatch();
|
|
697
|
+
if (type === "clear") {
|
|
698
|
+
depsMap.forEach(run);
|
|
699
|
+
} else {
|
|
700
|
+
const targetIsArray = isArray(target);
|
|
701
|
+
const isArrayIndex = targetIsArray && isIntegerKey(key);
|
|
702
|
+
if (targetIsArray && key === "length") {
|
|
703
|
+
const newLength = Number(newValue);
|
|
704
|
+
depsMap.forEach((dep, key2) => {
|
|
705
|
+
if (key2 === "length" || key2 === ARRAY_ITERATE_KEY || !isSymbol(key2) && key2 >= newLength) {
|
|
706
|
+
run(dep);
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
} else {
|
|
710
|
+
if (key !== void 0 || depsMap.has(void 0)) {
|
|
711
|
+
run(depsMap.get(key));
|
|
712
|
+
}
|
|
713
|
+
if (isArrayIndex) {
|
|
714
|
+
run(depsMap.get(ARRAY_ITERATE_KEY));
|
|
715
|
+
}
|
|
716
|
+
switch (type) {
|
|
717
|
+
case "add":
|
|
718
|
+
if (!targetIsArray) {
|
|
719
|
+
run(depsMap.get(ITERATE_KEY));
|
|
720
|
+
if (isMap(target)) {
|
|
721
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
722
|
+
}
|
|
723
|
+
} else if (isArrayIndex) {
|
|
724
|
+
run(depsMap.get("length"));
|
|
725
|
+
}
|
|
726
|
+
break;
|
|
727
|
+
case "delete":
|
|
728
|
+
if (!targetIsArray) {
|
|
729
|
+
run(depsMap.get(ITERATE_KEY));
|
|
730
|
+
if (isMap(target)) {
|
|
731
|
+
run(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
break;
|
|
735
|
+
case "set":
|
|
736
|
+
if (isMap(target)) {
|
|
737
|
+
run(depsMap.get(ITERATE_KEY));
|
|
738
|
+
}
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
endBatch();
|
|
744
|
+
}
|
|
745
|
+
function getDepFromReactive(object, key) {
|
|
746
|
+
const depMap = targetMap.get(object);
|
|
747
|
+
return depMap && depMap.get(key);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
function reactiveReadArray(array) {
|
|
751
|
+
const raw = toRaw(array);
|
|
752
|
+
if (raw === array) return raw;
|
|
753
|
+
track(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
754
|
+
return isShallow(array) ? raw : raw.map(toReactive);
|
|
755
|
+
}
|
|
756
|
+
function shallowReadArray(arr) {
|
|
757
|
+
track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
758
|
+
return arr;
|
|
759
|
+
}
|
|
760
|
+
function toWrapped(target, item) {
|
|
761
|
+
if (isReadonly(target)) {
|
|
762
|
+
return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
|
|
763
|
+
}
|
|
764
|
+
return toReactive(item);
|
|
765
|
+
}
|
|
766
|
+
const arrayInstrumentations = {
|
|
767
|
+
__proto__: null,
|
|
768
|
+
[Symbol.iterator]() {
|
|
769
|
+
return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));
|
|
770
|
+
},
|
|
771
|
+
concat(...args) {
|
|
772
|
+
return reactiveReadArray(this).concat(
|
|
773
|
+
...args.map((x) => isArray(x) ? reactiveReadArray(x) : x)
|
|
774
|
+
);
|
|
775
|
+
},
|
|
776
|
+
entries() {
|
|
777
|
+
return iterator(this, "entries", (value) => {
|
|
778
|
+
value[1] = toWrapped(this, value[1]);
|
|
779
|
+
return value;
|
|
780
|
+
});
|
|
781
|
+
},
|
|
782
|
+
every(fn, thisArg) {
|
|
783
|
+
return apply(this, "every", fn, thisArg, void 0, arguments);
|
|
784
|
+
},
|
|
785
|
+
filter(fn, thisArg) {
|
|
786
|
+
return apply(
|
|
787
|
+
this,
|
|
788
|
+
"filter",
|
|
789
|
+
fn,
|
|
790
|
+
thisArg,
|
|
791
|
+
(v) => v.map((item) => toWrapped(this, item)),
|
|
792
|
+
arguments
|
|
793
|
+
);
|
|
794
|
+
},
|
|
795
|
+
find(fn, thisArg) {
|
|
796
|
+
return apply(
|
|
797
|
+
this,
|
|
798
|
+
"find",
|
|
799
|
+
fn,
|
|
800
|
+
thisArg,
|
|
801
|
+
(item) => toWrapped(this, item),
|
|
802
|
+
arguments
|
|
803
|
+
);
|
|
804
|
+
},
|
|
805
|
+
findIndex(fn, thisArg) {
|
|
806
|
+
return apply(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
807
|
+
},
|
|
808
|
+
findLast(fn, thisArg) {
|
|
809
|
+
return apply(
|
|
810
|
+
this,
|
|
811
|
+
"findLast",
|
|
812
|
+
fn,
|
|
813
|
+
thisArg,
|
|
814
|
+
(item) => toWrapped(this, item),
|
|
815
|
+
arguments
|
|
816
|
+
);
|
|
817
|
+
},
|
|
818
|
+
findLastIndex(fn, thisArg) {
|
|
819
|
+
return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
820
|
+
},
|
|
821
|
+
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
822
|
+
forEach(fn, thisArg) {
|
|
823
|
+
return apply(this, "forEach", fn, thisArg, void 0, arguments);
|
|
824
|
+
},
|
|
825
|
+
includes(...args) {
|
|
826
|
+
return searchProxy(this, "includes", args);
|
|
827
|
+
},
|
|
828
|
+
indexOf(...args) {
|
|
829
|
+
return searchProxy(this, "indexOf", args);
|
|
830
|
+
},
|
|
831
|
+
join(separator) {
|
|
832
|
+
return reactiveReadArray(this).join(separator);
|
|
833
|
+
},
|
|
834
|
+
// keys() iterator only reads `length`, no optimization required
|
|
835
|
+
lastIndexOf(...args) {
|
|
836
|
+
return searchProxy(this, "lastIndexOf", args);
|
|
837
|
+
},
|
|
838
|
+
map(fn, thisArg) {
|
|
839
|
+
return apply(this, "map", fn, thisArg, void 0, arguments);
|
|
840
|
+
},
|
|
841
|
+
pop() {
|
|
842
|
+
return noTracking(this, "pop");
|
|
843
|
+
},
|
|
844
|
+
push(...args) {
|
|
845
|
+
return noTracking(this, "push", args);
|
|
846
|
+
},
|
|
847
|
+
reduce(fn, ...args) {
|
|
848
|
+
return reduce(this, "reduce", fn, args);
|
|
849
|
+
},
|
|
850
|
+
reduceRight(fn, ...args) {
|
|
851
|
+
return reduce(this, "reduceRight", fn, args);
|
|
852
|
+
},
|
|
853
|
+
shift() {
|
|
854
|
+
return noTracking(this, "shift");
|
|
855
|
+
},
|
|
856
|
+
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
857
|
+
some(fn, thisArg) {
|
|
858
|
+
return apply(this, "some", fn, thisArg, void 0, arguments);
|
|
859
|
+
},
|
|
860
|
+
splice(...args) {
|
|
861
|
+
return noTracking(this, "splice", args);
|
|
862
|
+
},
|
|
863
|
+
toReversed() {
|
|
864
|
+
return reactiveReadArray(this).toReversed();
|
|
865
|
+
},
|
|
866
|
+
toSorted(comparer) {
|
|
867
|
+
return reactiveReadArray(this).toSorted(comparer);
|
|
868
|
+
},
|
|
869
|
+
toSpliced(...args) {
|
|
870
|
+
return reactiveReadArray(this).toSpliced(...args);
|
|
871
|
+
},
|
|
872
|
+
unshift(...args) {
|
|
873
|
+
return noTracking(this, "unshift", args);
|
|
874
|
+
},
|
|
875
|
+
values() {
|
|
876
|
+
return iterator(this, "values", (item) => toWrapped(this, item));
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
function iterator(self, method, wrapValue) {
|
|
880
|
+
const arr = shallowReadArray(self);
|
|
881
|
+
const iter = arr[method]();
|
|
882
|
+
if (arr !== self && !isShallow(self)) {
|
|
883
|
+
iter._next = iter.next;
|
|
884
|
+
iter.next = () => {
|
|
885
|
+
const result = iter._next();
|
|
886
|
+
if (!result.done) {
|
|
887
|
+
result.value = wrapValue(result.value);
|
|
888
|
+
}
|
|
889
|
+
return result;
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
return iter;
|
|
893
|
+
}
|
|
894
|
+
const arrayProto = Array.prototype;
|
|
895
|
+
function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
896
|
+
const arr = shallowReadArray(self);
|
|
897
|
+
const needsWrap = arr !== self && !isShallow(self);
|
|
898
|
+
const methodFn = arr[method];
|
|
899
|
+
if (methodFn !== arrayProto[method]) {
|
|
900
|
+
const result2 = methodFn.apply(self, args);
|
|
901
|
+
return needsWrap ? toReactive(result2) : result2;
|
|
902
|
+
}
|
|
903
|
+
let wrappedFn = fn;
|
|
904
|
+
if (arr !== self) {
|
|
905
|
+
if (needsWrap) {
|
|
906
|
+
wrappedFn = function(item, index) {
|
|
907
|
+
return fn.call(this, toWrapped(self, item), index, self);
|
|
908
|
+
};
|
|
909
|
+
} else if (fn.length > 2) {
|
|
910
|
+
wrappedFn = function(item, index) {
|
|
911
|
+
return fn.call(this, item, index, self);
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
const result = methodFn.call(arr, wrappedFn, thisArg);
|
|
916
|
+
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
|
|
917
|
+
}
|
|
918
|
+
function reduce(self, method, fn, args) {
|
|
919
|
+
const arr = shallowReadArray(self);
|
|
920
|
+
const needsWrap = arr !== self && !isShallow(self);
|
|
921
|
+
let wrappedFn = fn;
|
|
922
|
+
let wrapInitialAccumulator = false;
|
|
923
|
+
if (arr !== self) {
|
|
924
|
+
if (needsWrap) {
|
|
925
|
+
wrapInitialAccumulator = args.length === 0;
|
|
926
|
+
wrappedFn = function(acc, item, index) {
|
|
927
|
+
if (wrapInitialAccumulator) {
|
|
928
|
+
wrapInitialAccumulator = false;
|
|
929
|
+
acc = toWrapped(self, acc);
|
|
930
|
+
}
|
|
931
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
932
|
+
};
|
|
933
|
+
} else if (fn.length > 3) {
|
|
934
|
+
wrappedFn = function(acc, item, index) {
|
|
935
|
+
return fn.call(this, acc, item, index, self);
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
const result = arr[method](wrappedFn, ...args);
|
|
940
|
+
return wrapInitialAccumulator ? toWrapped(self, result) : result;
|
|
941
|
+
}
|
|
942
|
+
function searchProxy(self, method, args) {
|
|
943
|
+
const arr = toRaw(self);
|
|
944
|
+
track(arr, "iterate", ARRAY_ITERATE_KEY);
|
|
945
|
+
const res = arr[method](...args);
|
|
946
|
+
if ((res === -1 || res === false) && isProxy(args[0])) {
|
|
947
|
+
args[0] = toRaw(args[0]);
|
|
948
|
+
return arr[method](...args);
|
|
949
|
+
}
|
|
950
|
+
return res;
|
|
951
|
+
}
|
|
952
|
+
function noTracking(self, method, args = []) {
|
|
953
|
+
pauseTracking();
|
|
954
|
+
startBatch();
|
|
955
|
+
const res = toRaw(self)[method].apply(self, args);
|
|
956
|
+
endBatch();
|
|
957
|
+
resetTracking();
|
|
958
|
+
return res;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
962
|
+
const builtInSymbols = new Set(
|
|
963
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol)
|
|
964
|
+
);
|
|
965
|
+
function hasOwnProperty(key) {
|
|
966
|
+
if (!isSymbol(key)) key = String(key);
|
|
967
|
+
const obj = toRaw(this);
|
|
968
|
+
track(obj, "has", key);
|
|
969
|
+
return obj.hasOwnProperty(key);
|
|
970
|
+
}
|
|
971
|
+
class BaseReactiveHandler {
|
|
972
|
+
constructor(_isReadonly = false, _isShallow = false) {
|
|
973
|
+
this._isReadonly = _isReadonly;
|
|
974
|
+
this._isShallow = _isShallow;
|
|
975
|
+
}
|
|
976
|
+
get(target, key, receiver) {
|
|
977
|
+
if (key === "__v_skip") return target["__v_skip"];
|
|
978
|
+
const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
|
|
979
|
+
if (key === "__v_isReactive") {
|
|
980
|
+
return !isReadonly2;
|
|
981
|
+
} else if (key === "__v_isReadonly") {
|
|
982
|
+
return isReadonly2;
|
|
983
|
+
} else if (key === "__v_isShallow") {
|
|
984
|
+
return isShallow2;
|
|
985
|
+
} else if (key === "__v_raw") {
|
|
986
|
+
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
987
|
+
// this means the receiver is a user proxy of the reactive proxy
|
|
988
|
+
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
989
|
+
return target;
|
|
990
|
+
}
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
const targetIsArray = isArray(target);
|
|
994
|
+
if (!isReadonly2) {
|
|
995
|
+
let fn;
|
|
996
|
+
if (targetIsArray && (fn = arrayInstrumentations[key])) {
|
|
997
|
+
return fn;
|
|
998
|
+
}
|
|
999
|
+
if (key === "hasOwnProperty") {
|
|
1000
|
+
return hasOwnProperty;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
const res = Reflect.get(
|
|
1004
|
+
target,
|
|
1005
|
+
key,
|
|
1006
|
+
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
1007
|
+
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
1008
|
+
// its class methods
|
|
1009
|
+
isRef(target) ? target : receiver
|
|
1010
|
+
);
|
|
1011
|
+
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
1012
|
+
return res;
|
|
1013
|
+
}
|
|
1014
|
+
if (!isReadonly2) {
|
|
1015
|
+
track(target, "get", key);
|
|
1016
|
+
}
|
|
1017
|
+
if (isShallow2) {
|
|
1018
|
+
return res;
|
|
1019
|
+
}
|
|
1020
|
+
if (isRef(res)) {
|
|
1021
|
+
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
1022
|
+
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
1023
|
+
}
|
|
1024
|
+
if (isObject(res)) {
|
|
1025
|
+
return isReadonly2 ? readonly(res) : reactive(res);
|
|
1026
|
+
}
|
|
1027
|
+
return res;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
class MutableReactiveHandler extends BaseReactiveHandler {
|
|
1031
|
+
constructor(isShallow2 = false) {
|
|
1032
|
+
super(false, isShallow2);
|
|
1033
|
+
}
|
|
1034
|
+
set(target, key, value, receiver) {
|
|
1035
|
+
let oldValue = target[key];
|
|
1036
|
+
const isArrayWithIntegerKey = isArray(target) && isIntegerKey(key);
|
|
1037
|
+
if (!this._isShallow) {
|
|
1038
|
+
const isOldValueReadonly = isReadonly(oldValue);
|
|
1039
|
+
if (!isShallow(value) && !isReadonly(value)) {
|
|
1040
|
+
oldValue = toRaw(oldValue);
|
|
1041
|
+
value = toRaw(value);
|
|
1042
|
+
}
|
|
1043
|
+
if (!isArrayWithIntegerKey && isRef(oldValue) && !isRef(value)) {
|
|
1044
|
+
if (isOldValueReadonly) {
|
|
1045
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1046
|
+
warn(
|
|
1047
|
+
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
1048
|
+
target[key]
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
return true;
|
|
1052
|
+
} else {
|
|
1053
|
+
oldValue.value = value;
|
|
1054
|
+
return true;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);
|
|
1059
|
+
const result = Reflect.set(
|
|
1060
|
+
target,
|
|
1061
|
+
key,
|
|
1062
|
+
value,
|
|
1063
|
+
isRef(target) ? target : receiver
|
|
1064
|
+
);
|
|
1065
|
+
if (target === toRaw(receiver)) {
|
|
1066
|
+
if (!hadKey) {
|
|
1067
|
+
trigger(target, "add", key, value);
|
|
1068
|
+
} else if (hasChanged(value, oldValue)) {
|
|
1069
|
+
trigger(target, "set", key, value, oldValue);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
return result;
|
|
1073
|
+
}
|
|
1074
|
+
deleteProperty(target, key) {
|
|
1075
|
+
const hadKey = hasOwn(target, key);
|
|
1076
|
+
const oldValue = target[key];
|
|
1077
|
+
const result = Reflect.deleteProperty(target, key);
|
|
1078
|
+
if (result && hadKey) {
|
|
1079
|
+
trigger(target, "delete", key, void 0, oldValue);
|
|
1080
|
+
}
|
|
1081
|
+
return result;
|
|
1082
|
+
}
|
|
1083
|
+
has(target, key) {
|
|
1084
|
+
const result = Reflect.has(target, key);
|
|
1085
|
+
if (!isSymbol(key) || !builtInSymbols.has(key)) {
|
|
1086
|
+
track(target, "has", key);
|
|
1087
|
+
}
|
|
1088
|
+
return result;
|
|
1089
|
+
}
|
|
1090
|
+
ownKeys(target) {
|
|
1091
|
+
track(
|
|
1092
|
+
target,
|
|
1093
|
+
"iterate",
|
|
1094
|
+
isArray(target) ? "length" : ITERATE_KEY
|
|
1095
|
+
);
|
|
1096
|
+
return Reflect.ownKeys(target);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
class ReadonlyReactiveHandler extends BaseReactiveHandler {
|
|
1100
|
+
constructor(isShallow2 = false) {
|
|
1101
|
+
super(true, isShallow2);
|
|
1102
|
+
}
|
|
1103
|
+
set(target, key) {
|
|
1104
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1105
|
+
warn(
|
|
1106
|
+
`Set operation on key "${String(key)}" failed: target is readonly.`,
|
|
1107
|
+
target
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
return true;
|
|
1111
|
+
}
|
|
1112
|
+
deleteProperty(target, key) {
|
|
1113
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1114
|
+
warn(
|
|
1115
|
+
`Delete operation on key "${String(key)}" failed: target is readonly.`,
|
|
1116
|
+
target
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
return true;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
|
|
1123
|
+
const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
|
|
1124
|
+
const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true);
|
|
1125
|
+
const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
|
|
1126
|
+
|
|
1127
|
+
const toShallow = (value) => value;
|
|
1128
|
+
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
1129
|
+
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
1130
|
+
return function(...args) {
|
|
1131
|
+
const target = this["__v_raw"];
|
|
1132
|
+
const rawTarget = toRaw(target);
|
|
1133
|
+
const targetIsMap = isMap(rawTarget);
|
|
1134
|
+
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
1135
|
+
const isKeyOnly = method === "keys" && targetIsMap;
|
|
1136
|
+
const innerIterator = target[method](...args);
|
|
1137
|
+
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
1138
|
+
!isReadonly2 && track(
|
|
1139
|
+
rawTarget,
|
|
1140
|
+
"iterate",
|
|
1141
|
+
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1142
|
+
);
|
|
1143
|
+
return extend(
|
|
1144
|
+
// inheriting all iterator properties
|
|
1145
|
+
Object.create(innerIterator),
|
|
1146
|
+
{
|
|
1147
|
+
// iterator protocol
|
|
1148
|
+
next() {
|
|
1149
|
+
const { value, done } = innerIterator.next();
|
|
1150
|
+
return done ? { value, done } : {
|
|
1151
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1152
|
+
done
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
);
|
|
1157
|
+
};
|
|
1158
|
+
}
|
|
1159
|
+
function createReadonlyMethod(type) {
|
|
1160
|
+
return function(...args) {
|
|
1161
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1162
|
+
const key = args[0] ? `on key "${args[0]}" ` : ``;
|
|
1163
|
+
warn(
|
|
1164
|
+
`${capitalize(type)} operation ${key}failed: target is readonly.`,
|
|
1165
|
+
toRaw(this)
|
|
1166
|
+
);
|
|
1167
|
+
}
|
|
1168
|
+
return type === "delete" ? false : type === "clear" ? void 0 : this;
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
function createInstrumentations(readonly, shallow) {
|
|
1172
|
+
const instrumentations = {
|
|
1173
|
+
get(key) {
|
|
1174
|
+
const target = this["__v_raw"];
|
|
1175
|
+
const rawTarget = toRaw(target);
|
|
1176
|
+
const rawKey = toRaw(key);
|
|
1177
|
+
if (!readonly) {
|
|
1178
|
+
if (hasChanged(key, rawKey)) {
|
|
1179
|
+
track(rawTarget, "get", key);
|
|
1180
|
+
}
|
|
1181
|
+
track(rawTarget, "get", rawKey);
|
|
1182
|
+
}
|
|
1183
|
+
const { has } = getProto(rawTarget);
|
|
1184
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1185
|
+
if (has.call(rawTarget, key)) {
|
|
1186
|
+
return wrap(target.get(key));
|
|
1187
|
+
} else if (has.call(rawTarget, rawKey)) {
|
|
1188
|
+
return wrap(target.get(rawKey));
|
|
1189
|
+
} else if (target !== rawTarget) {
|
|
1190
|
+
target.get(key);
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
get size() {
|
|
1194
|
+
const target = this["__v_raw"];
|
|
1195
|
+
!readonly && track(toRaw(target), "iterate", ITERATE_KEY);
|
|
1196
|
+
return target.size;
|
|
1197
|
+
},
|
|
1198
|
+
has(key) {
|
|
1199
|
+
const target = this["__v_raw"];
|
|
1200
|
+
const rawTarget = toRaw(target);
|
|
1201
|
+
const rawKey = toRaw(key);
|
|
1202
|
+
if (!readonly) {
|
|
1203
|
+
if (hasChanged(key, rawKey)) {
|
|
1204
|
+
track(rawTarget, "has", key);
|
|
1205
|
+
}
|
|
1206
|
+
track(rawTarget, "has", rawKey);
|
|
1207
|
+
}
|
|
1208
|
+
return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
|
|
1209
|
+
},
|
|
1210
|
+
forEach(callback, thisArg) {
|
|
1211
|
+
const observed = this;
|
|
1212
|
+
const target = observed["__v_raw"];
|
|
1213
|
+
const rawTarget = toRaw(target);
|
|
1214
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1215
|
+
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1216
|
+
return target.forEach((value, key) => {
|
|
1217
|
+
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
extend(
|
|
1222
|
+
instrumentations,
|
|
1223
|
+
readonly ? {
|
|
1224
|
+
add: createReadonlyMethod("add"),
|
|
1225
|
+
set: createReadonlyMethod("set"),
|
|
1226
|
+
delete: createReadonlyMethod("delete"),
|
|
1227
|
+
clear: createReadonlyMethod("clear")
|
|
1228
|
+
} : {
|
|
1229
|
+
add(value) {
|
|
1230
|
+
const target = toRaw(this);
|
|
1231
|
+
const proto = getProto(target);
|
|
1232
|
+
const rawValue = toRaw(value);
|
|
1233
|
+
const valueToAdd = !shallow && !isShallow(value) && !isReadonly(value) ? rawValue : value;
|
|
1234
|
+
const hadKey = proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue);
|
|
1235
|
+
if (!hadKey) {
|
|
1236
|
+
target.add(valueToAdd);
|
|
1237
|
+
trigger(target, "add", valueToAdd, valueToAdd);
|
|
1238
|
+
}
|
|
1239
|
+
return this;
|
|
1240
|
+
},
|
|
1241
|
+
set(key, value) {
|
|
1242
|
+
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1243
|
+
value = toRaw(value);
|
|
1244
|
+
}
|
|
1245
|
+
const target = toRaw(this);
|
|
1246
|
+
const { has, get } = getProto(target);
|
|
1247
|
+
let hadKey = has.call(target, key);
|
|
1248
|
+
if (!hadKey) {
|
|
1249
|
+
key = toRaw(key);
|
|
1250
|
+
hadKey = has.call(target, key);
|
|
1251
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1252
|
+
checkIdentityKeys(target, has, key);
|
|
1253
|
+
}
|
|
1254
|
+
const oldValue = get.call(target, key);
|
|
1255
|
+
target.set(key, value);
|
|
1256
|
+
if (!hadKey) {
|
|
1257
|
+
trigger(target, "add", key, value);
|
|
1258
|
+
} else if (hasChanged(value, oldValue)) {
|
|
1259
|
+
trigger(target, "set", key, value, oldValue);
|
|
1260
|
+
}
|
|
1261
|
+
return this;
|
|
1262
|
+
},
|
|
1263
|
+
delete(key) {
|
|
1264
|
+
const target = toRaw(this);
|
|
1265
|
+
const { has, get } = getProto(target);
|
|
1266
|
+
let hadKey = has.call(target, key);
|
|
1267
|
+
if (!hadKey) {
|
|
1268
|
+
key = toRaw(key);
|
|
1269
|
+
hadKey = has.call(target, key);
|
|
1270
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1271
|
+
checkIdentityKeys(target, has, key);
|
|
1272
|
+
}
|
|
1273
|
+
const oldValue = get ? get.call(target, key) : void 0;
|
|
1274
|
+
const result = target.delete(key);
|
|
1275
|
+
if (hadKey) {
|
|
1276
|
+
trigger(target, "delete", key, void 0, oldValue);
|
|
1277
|
+
}
|
|
1278
|
+
return result;
|
|
1279
|
+
},
|
|
1280
|
+
clear() {
|
|
1281
|
+
const target = toRaw(this);
|
|
1282
|
+
const hadItems = target.size !== 0;
|
|
1283
|
+
const oldTarget = !!(process.env.NODE_ENV !== "production") ? isMap(target) ? new Map(target) : new Set(target) : void 0;
|
|
1284
|
+
const result = target.clear();
|
|
1285
|
+
if (hadItems) {
|
|
1286
|
+
trigger(
|
|
1287
|
+
target,
|
|
1288
|
+
"clear",
|
|
1289
|
+
void 0,
|
|
1290
|
+
void 0,
|
|
1291
|
+
oldTarget
|
|
1292
|
+
);
|
|
1293
|
+
}
|
|
1294
|
+
return result;
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
);
|
|
1298
|
+
const iteratorMethods = [
|
|
1299
|
+
"keys",
|
|
1300
|
+
"values",
|
|
1301
|
+
"entries",
|
|
1302
|
+
Symbol.iterator
|
|
1303
|
+
];
|
|
1304
|
+
iteratorMethods.forEach((method) => {
|
|
1305
|
+
instrumentations[method] = createIterableMethod(method, readonly, shallow);
|
|
1306
|
+
});
|
|
1307
|
+
return instrumentations;
|
|
1308
|
+
}
|
|
1309
|
+
function createInstrumentationGetter(isReadonly2, shallow) {
|
|
1310
|
+
const instrumentations = createInstrumentations(isReadonly2, shallow);
|
|
1311
|
+
return (target, key, receiver) => {
|
|
1312
|
+
if (key === "__v_isReactive") {
|
|
1313
|
+
return !isReadonly2;
|
|
1314
|
+
} else if (key === "__v_isReadonly") {
|
|
1315
|
+
return isReadonly2;
|
|
1316
|
+
} else if (key === "__v_raw") {
|
|
1317
|
+
return target;
|
|
1318
|
+
}
|
|
1319
|
+
return Reflect.get(
|
|
1320
|
+
hasOwn(instrumentations, key) && key in target ? instrumentations : target,
|
|
1321
|
+
key,
|
|
1322
|
+
receiver
|
|
1323
|
+
);
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
const mutableCollectionHandlers = {
|
|
1327
|
+
get: /* @__PURE__ */ createInstrumentationGetter(false, false)
|
|
1328
|
+
};
|
|
1329
|
+
const shallowCollectionHandlers = {
|
|
1330
|
+
get: /* @__PURE__ */ createInstrumentationGetter(false, true)
|
|
1331
|
+
};
|
|
1332
|
+
const readonlyCollectionHandlers = {
|
|
1333
|
+
get: /* @__PURE__ */ createInstrumentationGetter(true, false)
|
|
1334
|
+
};
|
|
1335
|
+
const shallowReadonlyCollectionHandlers = {
|
|
1336
|
+
get: /* @__PURE__ */ createInstrumentationGetter(true, true)
|
|
1337
|
+
};
|
|
1338
|
+
function checkIdentityKeys(target, has, key) {
|
|
1339
|
+
const rawKey = toRaw(key);
|
|
1340
|
+
if (rawKey !== key && has.call(target, rawKey)) {
|
|
1341
|
+
const type = toRawType(target);
|
|
1342
|
+
warn(
|
|
1343
|
+
`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
1344
|
+
);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
const reactiveMap = /* @__PURE__ */ new WeakMap();
|
|
1349
|
+
const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
|
|
1350
|
+
const readonlyMap = /* @__PURE__ */ new WeakMap();
|
|
1351
|
+
const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
|
|
1352
|
+
function targetTypeMap(rawType) {
|
|
1353
|
+
switch (rawType) {
|
|
1354
|
+
case "Object":
|
|
1355
|
+
case "Array":
|
|
1356
|
+
return 1 /* COMMON */;
|
|
1357
|
+
case "Map":
|
|
1358
|
+
case "Set":
|
|
1359
|
+
case "WeakMap":
|
|
1360
|
+
case "WeakSet":
|
|
1361
|
+
return 2 /* COLLECTION */;
|
|
1362
|
+
default:
|
|
1363
|
+
return 0 /* INVALID */;
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
function getTargetType(value) {
|
|
1367
|
+
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1368
|
+
}
|
|
1369
|
+
// @__NO_SIDE_EFFECTS__
|
|
1370
|
+
function reactive(target) {
|
|
1371
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1372
|
+
return target;
|
|
1373
|
+
}
|
|
1374
|
+
return createReactiveObject(
|
|
1375
|
+
target,
|
|
1376
|
+
false,
|
|
1377
|
+
mutableHandlers,
|
|
1378
|
+
mutableCollectionHandlers,
|
|
1379
|
+
reactiveMap
|
|
1380
|
+
);
|
|
1381
|
+
}
|
|
1382
|
+
// @__NO_SIDE_EFFECTS__
|
|
1383
|
+
function shallowReactive(target) {
|
|
1384
|
+
return createReactiveObject(
|
|
1385
|
+
target,
|
|
1386
|
+
false,
|
|
1387
|
+
shallowReactiveHandlers,
|
|
1388
|
+
shallowCollectionHandlers,
|
|
1389
|
+
shallowReactiveMap
|
|
1390
|
+
);
|
|
1391
|
+
}
|
|
1392
|
+
// @__NO_SIDE_EFFECTS__
|
|
1393
|
+
function readonly(target) {
|
|
1394
|
+
return createReactiveObject(
|
|
1395
|
+
target,
|
|
1396
|
+
true,
|
|
1397
|
+
readonlyHandlers,
|
|
1398
|
+
readonlyCollectionHandlers,
|
|
1399
|
+
readonlyMap
|
|
1400
|
+
);
|
|
1401
|
+
}
|
|
1402
|
+
// @__NO_SIDE_EFFECTS__
|
|
1403
|
+
function shallowReadonly(target) {
|
|
1404
|
+
return createReactiveObject(
|
|
1405
|
+
target,
|
|
1406
|
+
true,
|
|
1407
|
+
shallowReadonlyHandlers,
|
|
1408
|
+
shallowReadonlyCollectionHandlers,
|
|
1409
|
+
shallowReadonlyMap
|
|
1410
|
+
);
|
|
1411
|
+
}
|
|
1412
|
+
function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
|
|
1413
|
+
if (!isObject(target)) {
|
|
1414
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1415
|
+
warn(
|
|
1416
|
+
`value cannot be made ${isReadonly2 ? "readonly" : "reactive"}: ${String(
|
|
1417
|
+
target
|
|
1418
|
+
)}`
|
|
1419
|
+
);
|
|
1420
|
+
}
|
|
1421
|
+
return target;
|
|
1422
|
+
}
|
|
1423
|
+
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1424
|
+
return target;
|
|
1425
|
+
}
|
|
1426
|
+
const targetType = getTargetType(target);
|
|
1427
|
+
if (targetType === 0 /* INVALID */) {
|
|
1428
|
+
return target;
|
|
1429
|
+
}
|
|
1430
|
+
const existingProxy = proxyMap.get(target);
|
|
1431
|
+
if (existingProxy) {
|
|
1432
|
+
return existingProxy;
|
|
1433
|
+
}
|
|
1434
|
+
const proxy = new Proxy(
|
|
1435
|
+
target,
|
|
1436
|
+
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
1437
|
+
);
|
|
1438
|
+
proxyMap.set(target, proxy);
|
|
1439
|
+
return proxy;
|
|
1440
|
+
}
|
|
1441
|
+
// @__NO_SIDE_EFFECTS__
|
|
1442
|
+
function isReactive(value) {
|
|
1443
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
1444
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1445
|
+
}
|
|
1446
|
+
return !!(value && value["__v_isReactive"]);
|
|
1447
|
+
}
|
|
1448
|
+
// @__NO_SIDE_EFFECTS__
|
|
1449
|
+
function isReadonly(value) {
|
|
1450
|
+
return !!(value && value["__v_isReadonly"]);
|
|
1451
|
+
}
|
|
1452
|
+
// @__NO_SIDE_EFFECTS__
|
|
1453
|
+
function isShallow(value) {
|
|
1454
|
+
return !!(value && value["__v_isShallow"]);
|
|
1455
|
+
}
|
|
1456
|
+
// @__NO_SIDE_EFFECTS__
|
|
1457
|
+
function isProxy(value) {
|
|
1458
|
+
return value ? !!value["__v_raw"] : false;
|
|
1459
|
+
}
|
|
1460
|
+
// @__NO_SIDE_EFFECTS__
|
|
1461
|
+
function toRaw(observed) {
|
|
1462
|
+
const raw = observed && observed["__v_raw"];
|
|
1463
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1464
|
+
}
|
|
1465
|
+
function markRaw(value) {
|
|
1466
|
+
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
1467
|
+
def(value, "__v_skip", true);
|
|
1468
|
+
}
|
|
1469
|
+
return value;
|
|
1470
|
+
}
|
|
1471
|
+
const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1472
|
+
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1473
|
+
|
|
1474
|
+
// @__NO_SIDE_EFFECTS__
|
|
1475
|
+
function isRef(r) {
|
|
1476
|
+
return r ? r["__v_isRef"] === true : false;
|
|
1477
|
+
}
|
|
1478
|
+
// @__NO_SIDE_EFFECTS__
|
|
1479
|
+
function ref(value) {
|
|
1480
|
+
return createRef(value, false);
|
|
1481
|
+
}
|
|
1482
|
+
// @__NO_SIDE_EFFECTS__
|
|
1483
|
+
function shallowRef(value) {
|
|
1484
|
+
return createRef(value, true);
|
|
1485
|
+
}
|
|
1486
|
+
function createRef(rawValue, shallow) {
|
|
1487
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
1488
|
+
return rawValue;
|
|
1489
|
+
}
|
|
1490
|
+
return new RefImpl(rawValue, shallow);
|
|
1491
|
+
}
|
|
1492
|
+
class RefImpl {
|
|
1493
|
+
constructor(value, isShallow2) {
|
|
1494
|
+
this.dep = new Dep();
|
|
1495
|
+
this["__v_isRef"] = true;
|
|
1496
|
+
this["__v_isShallow"] = false;
|
|
1497
|
+
this._rawValue = isShallow2 ? value : toRaw(value);
|
|
1498
|
+
this._value = isShallow2 ? value : toReactive(value);
|
|
1499
|
+
this["__v_isShallow"] = isShallow2;
|
|
1500
|
+
}
|
|
1501
|
+
get value() {
|
|
1502
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1503
|
+
this.dep.track({
|
|
1504
|
+
target: this,
|
|
1505
|
+
type: "get",
|
|
1506
|
+
key: "value"
|
|
1507
|
+
});
|
|
1508
|
+
} else {
|
|
1509
|
+
this.dep.track();
|
|
1510
|
+
}
|
|
1511
|
+
return this._value;
|
|
1512
|
+
}
|
|
1513
|
+
set value(newValue) {
|
|
1514
|
+
const oldValue = this._rawValue;
|
|
1515
|
+
const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue);
|
|
1516
|
+
newValue = useDirectValue ? newValue : toRaw(newValue);
|
|
1517
|
+
if (hasChanged(newValue, oldValue)) {
|
|
1518
|
+
this._rawValue = newValue;
|
|
1519
|
+
this._value = useDirectValue ? newValue : toReactive(newValue);
|
|
1520
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1521
|
+
this.dep.trigger({
|
|
1522
|
+
target: this,
|
|
1523
|
+
type: "set",
|
|
1524
|
+
key: "value",
|
|
1525
|
+
newValue,
|
|
1526
|
+
oldValue
|
|
1527
|
+
});
|
|
1528
|
+
} else {
|
|
1529
|
+
this.dep.trigger();
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
function triggerRef(ref2) {
|
|
1535
|
+
if (ref2.dep) {
|
|
1536
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1537
|
+
ref2.dep.trigger({
|
|
1538
|
+
target: ref2,
|
|
1539
|
+
type: "set",
|
|
1540
|
+
key: "value",
|
|
1541
|
+
newValue: ref2._value
|
|
1542
|
+
});
|
|
1543
|
+
} else {
|
|
1544
|
+
ref2.dep.trigger();
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
function unref(ref2) {
|
|
1549
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1550
|
+
}
|
|
1551
|
+
function toValue(source) {
|
|
1552
|
+
return isFunction(source) ? source() : unref(source);
|
|
1553
|
+
}
|
|
1554
|
+
const shallowUnwrapHandlers = {
|
|
1555
|
+
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1556
|
+
set: (target, key, value, receiver) => {
|
|
1557
|
+
const oldValue = target[key];
|
|
1558
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1559
|
+
oldValue.value = value;
|
|
1560
|
+
return true;
|
|
1561
|
+
} else {
|
|
1562
|
+
return Reflect.set(target, key, value, receiver);
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
function proxyRefs(objectWithRefs) {
|
|
1567
|
+
return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
1568
|
+
}
|
|
1569
|
+
class CustomRefImpl {
|
|
1570
|
+
constructor(factory) {
|
|
1571
|
+
this["__v_isRef"] = true;
|
|
1572
|
+
this._value = void 0;
|
|
1573
|
+
const dep = this.dep = new Dep();
|
|
1574
|
+
const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
|
|
1575
|
+
this._get = get;
|
|
1576
|
+
this._set = set;
|
|
1577
|
+
}
|
|
1578
|
+
get value() {
|
|
1579
|
+
return this._value = this._get();
|
|
1580
|
+
}
|
|
1581
|
+
set value(newVal) {
|
|
1582
|
+
this._set(newVal);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
function customRef(factory) {
|
|
1586
|
+
return new CustomRefImpl(factory);
|
|
1587
|
+
}
|
|
1588
|
+
// @__NO_SIDE_EFFECTS__
|
|
1589
|
+
function toRefs(object) {
|
|
1590
|
+
if (!!(process.env.NODE_ENV !== "production") && !isProxy(object)) {
|
|
1591
|
+
warn(`toRefs() expects a reactive object but received a plain one.`);
|
|
1592
|
+
}
|
|
1593
|
+
const ret = isArray(object) ? new Array(object.length) : {};
|
|
1594
|
+
for (const key in object) {
|
|
1595
|
+
ret[key] = propertyToRef(object, key);
|
|
1596
|
+
}
|
|
1597
|
+
return ret;
|
|
1598
|
+
}
|
|
1599
|
+
class ObjectRefImpl {
|
|
1600
|
+
constructor(_object, key, _defaultValue) {
|
|
1601
|
+
this._object = _object;
|
|
1602
|
+
this._defaultValue = _defaultValue;
|
|
1603
|
+
this["__v_isRef"] = true;
|
|
1604
|
+
this._value = void 0;
|
|
1605
|
+
this._key = isSymbol(key) ? key : String(key);
|
|
1606
|
+
this._raw = toRaw(_object);
|
|
1607
|
+
let shallow = true;
|
|
1608
|
+
let obj = _object;
|
|
1609
|
+
if (!isArray(_object) || isSymbol(this._key) || !isIntegerKey(this._key)) {
|
|
1610
|
+
do {
|
|
1611
|
+
shallow = !isProxy(obj) || isShallow(obj);
|
|
1612
|
+
} while (shallow && (obj = obj["__v_raw"]));
|
|
1613
|
+
}
|
|
1614
|
+
this._shallow = shallow;
|
|
1615
|
+
}
|
|
1616
|
+
get value() {
|
|
1617
|
+
let val = this._object[this._key];
|
|
1618
|
+
if (this._shallow) {
|
|
1619
|
+
val = unref(val);
|
|
1620
|
+
}
|
|
1621
|
+
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1622
|
+
}
|
|
1623
|
+
set value(newVal) {
|
|
1624
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1625
|
+
const nestedRef = this._object[this._key];
|
|
1626
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1627
|
+
nestedRef.value = newVal;
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
this._object[this._key] = newVal;
|
|
1632
|
+
}
|
|
1633
|
+
get dep() {
|
|
1634
|
+
return getDepFromReactive(this._raw, this._key);
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
class GetterRefImpl {
|
|
1638
|
+
constructor(_getter) {
|
|
1639
|
+
this._getter = _getter;
|
|
1640
|
+
this["__v_isRef"] = true;
|
|
1641
|
+
this["__v_isReadonly"] = true;
|
|
1642
|
+
this._value = void 0;
|
|
1643
|
+
}
|
|
1644
|
+
get value() {
|
|
1645
|
+
return this._value = this._getter();
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
// @__NO_SIDE_EFFECTS__
|
|
1649
|
+
function toRef(source, key, defaultValue) {
|
|
1650
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1651
|
+
return source;
|
|
1652
|
+
} else if (isFunction(source)) {
|
|
1653
|
+
return new GetterRefImpl(source);
|
|
1654
|
+
} else if (isObject(source) && arguments.length > 1) {
|
|
1655
|
+
return propertyToRef(source, key, defaultValue);
|
|
1656
|
+
} else {
|
|
1657
|
+
return /* @__PURE__ */ ref(source);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
function propertyToRef(source, key, defaultValue) {
|
|
1661
|
+
return new ObjectRefImpl(source, key, defaultValue);
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
class ComputedRefImpl {
|
|
1665
|
+
constructor(fn, setter, isSSR) {
|
|
1666
|
+
this.fn = fn;
|
|
1667
|
+
this.setter = setter;
|
|
1668
|
+
/**
|
|
1669
|
+
* @internal
|
|
1670
|
+
*/
|
|
1671
|
+
this._value = void 0;
|
|
1672
|
+
/**
|
|
1673
|
+
* @internal
|
|
1674
|
+
*/
|
|
1675
|
+
this.dep = new Dep(this);
|
|
1676
|
+
/**
|
|
1677
|
+
* @internal
|
|
1678
|
+
*/
|
|
1679
|
+
this.__v_isRef = true;
|
|
1680
|
+
// TODO isolatedDeclarations "__v_isReadonly"
|
|
1681
|
+
// A computed is also a subscriber that tracks other deps
|
|
1682
|
+
/**
|
|
1683
|
+
* @internal
|
|
1684
|
+
*/
|
|
1685
|
+
this.deps = void 0;
|
|
1686
|
+
/**
|
|
1687
|
+
* @internal
|
|
1688
|
+
*/
|
|
1689
|
+
this.depsTail = void 0;
|
|
1690
|
+
/**
|
|
1691
|
+
* @internal
|
|
1692
|
+
*/
|
|
1693
|
+
this.flags = 16;
|
|
1694
|
+
/**
|
|
1695
|
+
* @internal
|
|
1696
|
+
*/
|
|
1697
|
+
this.globalVersion = globalVersion - 1;
|
|
1698
|
+
/**
|
|
1699
|
+
* @internal
|
|
1700
|
+
*/
|
|
1701
|
+
this.next = void 0;
|
|
1702
|
+
// for backwards compat
|
|
1703
|
+
this.effect = this;
|
|
1704
|
+
this["__v_isReadonly"] = !setter;
|
|
1705
|
+
this.isSSR = isSSR;
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* @internal
|
|
1709
|
+
*/
|
|
1710
|
+
notify() {
|
|
1711
|
+
this.flags |= 16;
|
|
1712
|
+
if (!(this.flags & 8) && // avoid infinite self recursion
|
|
1713
|
+
activeSub !== this) {
|
|
1714
|
+
batch(this, true);
|
|
1715
|
+
return true;
|
|
1716
|
+
} else if (!!(process.env.NODE_ENV !== "production")) ;
|
|
1717
|
+
}
|
|
1718
|
+
get value() {
|
|
1719
|
+
const link = !!(process.env.NODE_ENV !== "production") ? this.dep.track({
|
|
1720
|
+
target: this,
|
|
1721
|
+
type: "get",
|
|
1722
|
+
key: "value"
|
|
1723
|
+
}) : this.dep.track();
|
|
1724
|
+
refreshComputed(this);
|
|
1725
|
+
if (link) {
|
|
1726
|
+
link.version = this.dep.version;
|
|
1727
|
+
}
|
|
1728
|
+
return this._value;
|
|
1729
|
+
}
|
|
1730
|
+
set value(newValue) {
|
|
1731
|
+
if (this.setter) {
|
|
1732
|
+
this.setter(newValue);
|
|
1733
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
1734
|
+
warn("Write operation failed: computed value is readonly");
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
// @__NO_SIDE_EFFECTS__
|
|
1739
|
+
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
1740
|
+
let getter;
|
|
1741
|
+
let setter;
|
|
1742
|
+
if (isFunction(getterOrOptions)) {
|
|
1743
|
+
getter = getterOrOptions;
|
|
1744
|
+
} else {
|
|
1745
|
+
getter = getterOrOptions.get;
|
|
1746
|
+
setter = getterOrOptions.set;
|
|
1747
|
+
}
|
|
1748
|
+
const cRef = new ComputedRefImpl(getter, setter, isSSR);
|
|
1749
|
+
if (!!(process.env.NODE_ENV !== "production") && debugOptions && !isSSR) {
|
|
1750
|
+
cRef.onTrack = debugOptions.onTrack;
|
|
1751
|
+
cRef.onTrigger = debugOptions.onTrigger;
|
|
1752
|
+
}
|
|
1753
|
+
return cRef;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
const TrackOpTypes = {
|
|
1757
|
+
"GET": "get",
|
|
1758
|
+
"HAS": "has",
|
|
1759
|
+
"ITERATE": "iterate"
|
|
1760
|
+
};
|
|
1761
|
+
const TriggerOpTypes = {
|
|
1762
|
+
"SET": "set",
|
|
1763
|
+
"ADD": "add",
|
|
1764
|
+
"DELETE": "delete",
|
|
1765
|
+
"CLEAR": "clear"
|
|
1766
|
+
};
|
|
1767
|
+
const ReactiveFlags = {
|
|
1768
|
+
"SKIP": "__v_skip",
|
|
1769
|
+
"IS_REACTIVE": "__v_isReactive",
|
|
1770
|
+
"IS_READONLY": "__v_isReadonly",
|
|
1771
|
+
"IS_SHALLOW": "__v_isShallow",
|
|
1772
|
+
"RAW": "__v_raw",
|
|
1773
|
+
"IS_REF": "__v_isRef"
|
|
1774
|
+
};
|
|
1775
|
+
|
|
1776
|
+
const WatchErrorCodes = {
|
|
1777
|
+
"WATCH_GETTER": 2,
|
|
1778
|
+
"2": "WATCH_GETTER",
|
|
1779
|
+
"WATCH_CALLBACK": 3,
|
|
1780
|
+
"3": "WATCH_CALLBACK",
|
|
1781
|
+
"WATCH_CLEANUP": 4,
|
|
1782
|
+
"4": "WATCH_CLEANUP"
|
|
1783
|
+
};
|
|
1784
|
+
const INITIAL_WATCHER_VALUE = {};
|
|
1785
|
+
const cleanupMap = /* @__PURE__ */ new WeakMap();
|
|
1786
|
+
let activeWatcher = void 0;
|
|
1787
|
+
function getCurrentWatcher() {
|
|
1788
|
+
return activeWatcher;
|
|
1789
|
+
}
|
|
1790
|
+
function onWatcherCleanup(cleanupFn, failSilently = false, owner = activeWatcher) {
|
|
1791
|
+
if (owner) {
|
|
1792
|
+
let cleanups = cleanupMap.get(owner);
|
|
1793
|
+
if (!cleanups) cleanupMap.set(owner, cleanups = []);
|
|
1794
|
+
cleanups.push(cleanupFn);
|
|
1795
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !failSilently) {
|
|
1796
|
+
warn(
|
|
1797
|
+
`onWatcherCleanup() was called when there was no active watcher to associate with.`
|
|
1798
|
+
);
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
function watch(source, cb, options = EMPTY_OBJ) {
|
|
1802
|
+
const { immediate, deep, once, scheduler, augmentJob, call } = options;
|
|
1803
|
+
const warnInvalidSource = (s) => {
|
|
1804
|
+
(options.onWarn || warn)(
|
|
1805
|
+
`Invalid watch source: `,
|
|
1806
|
+
s,
|
|
1807
|
+
`A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.`
|
|
1808
|
+
);
|
|
1809
|
+
};
|
|
1810
|
+
const reactiveGetter = (source2) => {
|
|
1811
|
+
if (deep) return source2;
|
|
1812
|
+
if (isShallow(source2) || deep === false || deep === 0)
|
|
1813
|
+
return traverse(source2, 1);
|
|
1814
|
+
return traverse(source2);
|
|
1815
|
+
};
|
|
1816
|
+
let effect;
|
|
1817
|
+
let getter;
|
|
1818
|
+
let cleanup;
|
|
1819
|
+
let boundCleanup;
|
|
1820
|
+
let forceTrigger = false;
|
|
1821
|
+
let isMultiSource = false;
|
|
1822
|
+
if (isRef(source)) {
|
|
1823
|
+
getter = () => source.value;
|
|
1824
|
+
forceTrigger = isShallow(source);
|
|
1825
|
+
} else if (isReactive(source)) {
|
|
1826
|
+
getter = () => reactiveGetter(source);
|
|
1827
|
+
forceTrigger = true;
|
|
1828
|
+
} else if (isArray(source)) {
|
|
1829
|
+
isMultiSource = true;
|
|
1830
|
+
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
1831
|
+
getter = () => source.map((s) => {
|
|
1832
|
+
if (isRef(s)) {
|
|
1833
|
+
return s.value;
|
|
1834
|
+
} else if (isReactive(s)) {
|
|
1835
|
+
return reactiveGetter(s);
|
|
1836
|
+
} else if (isFunction(s)) {
|
|
1837
|
+
return call ? call(s, 2) : s();
|
|
1838
|
+
} else {
|
|
1839
|
+
!!(process.env.NODE_ENV !== "production") && warnInvalidSource(s);
|
|
1840
|
+
}
|
|
1841
|
+
});
|
|
1842
|
+
} else if (isFunction(source)) {
|
|
1843
|
+
if (cb) {
|
|
1844
|
+
getter = call ? () => call(source, 2) : source;
|
|
1845
|
+
} else {
|
|
1846
|
+
getter = () => {
|
|
1847
|
+
if (cleanup) {
|
|
1848
|
+
pauseTracking();
|
|
1849
|
+
try {
|
|
1850
|
+
cleanup();
|
|
1851
|
+
} finally {
|
|
1852
|
+
resetTracking();
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
const currentEffect = activeWatcher;
|
|
1856
|
+
activeWatcher = effect;
|
|
1857
|
+
try {
|
|
1858
|
+
return call ? call(source, 3, [boundCleanup]) : source(boundCleanup);
|
|
1859
|
+
} finally {
|
|
1860
|
+
activeWatcher = currentEffect;
|
|
1861
|
+
}
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
} else {
|
|
1865
|
+
getter = NOOP;
|
|
1866
|
+
!!(process.env.NODE_ENV !== "production") && warnInvalidSource(source);
|
|
1867
|
+
}
|
|
1868
|
+
if (cb && deep) {
|
|
1869
|
+
const baseGetter = getter;
|
|
1870
|
+
const depth = deep === true ? Infinity : deep;
|
|
1871
|
+
getter = () => traverse(baseGetter(), depth);
|
|
1872
|
+
}
|
|
1873
|
+
const scope = getCurrentScope();
|
|
1874
|
+
const watchHandle = () => {
|
|
1875
|
+
effect.stop();
|
|
1876
|
+
if (scope && scope.active) {
|
|
1877
|
+
remove(scope.effects, effect);
|
|
1878
|
+
}
|
|
1879
|
+
};
|
|
1880
|
+
if (once && cb) {
|
|
1881
|
+
const _cb = cb;
|
|
1882
|
+
cb = (...args) => {
|
|
1883
|
+
_cb(...args);
|
|
1884
|
+
watchHandle();
|
|
1885
|
+
};
|
|
1886
|
+
}
|
|
1887
|
+
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
1888
|
+
const job = (immediateFirstRun) => {
|
|
1889
|
+
if (!(effect.flags & 1) || !effect.dirty && !immediateFirstRun) {
|
|
1890
|
+
return;
|
|
1891
|
+
}
|
|
1892
|
+
if (cb) {
|
|
1893
|
+
const newValue = effect.run();
|
|
1894
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
|
|
1895
|
+
if (cleanup) {
|
|
1896
|
+
cleanup();
|
|
1897
|
+
}
|
|
1898
|
+
const currentWatcher = activeWatcher;
|
|
1899
|
+
activeWatcher = effect;
|
|
1900
|
+
try {
|
|
1901
|
+
const args = [
|
|
1902
|
+
newValue,
|
|
1903
|
+
// pass undefined as the old value when it's changed for the first time
|
|
1904
|
+
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
1905
|
+
boundCleanup
|
|
1906
|
+
];
|
|
1907
|
+
oldValue = newValue;
|
|
1908
|
+
call ? call(cb, 3, args) : (
|
|
1909
|
+
// @ts-expect-error
|
|
1910
|
+
cb(...args)
|
|
1911
|
+
);
|
|
1912
|
+
} finally {
|
|
1913
|
+
activeWatcher = currentWatcher;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
} else {
|
|
1917
|
+
effect.run();
|
|
1918
|
+
}
|
|
1919
|
+
};
|
|
1920
|
+
if (augmentJob) {
|
|
1921
|
+
augmentJob(job);
|
|
1922
|
+
}
|
|
1923
|
+
effect = new ReactiveEffect(getter);
|
|
1924
|
+
effect.scheduler = scheduler ? () => scheduler(job, false) : job;
|
|
1925
|
+
boundCleanup = (fn) => onWatcherCleanup(fn, false, effect);
|
|
1926
|
+
cleanup = effect.onStop = () => {
|
|
1927
|
+
const cleanups = cleanupMap.get(effect);
|
|
1928
|
+
if (cleanups) {
|
|
1929
|
+
if (call) {
|
|
1930
|
+
call(cleanups, 4);
|
|
1931
|
+
} else {
|
|
1932
|
+
for (const cleanup2 of cleanups) cleanup2();
|
|
1933
|
+
}
|
|
1934
|
+
cleanupMap.delete(effect);
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1938
|
+
effect.onTrack = options.onTrack;
|
|
1939
|
+
effect.onTrigger = options.onTrigger;
|
|
1940
|
+
}
|
|
1941
|
+
if (cb) {
|
|
1942
|
+
if (immediate) {
|
|
1943
|
+
job(true);
|
|
1944
|
+
} else {
|
|
1945
|
+
oldValue = effect.run();
|
|
1946
|
+
}
|
|
1947
|
+
} else if (scheduler) {
|
|
1948
|
+
scheduler(job.bind(null, true), true);
|
|
1949
|
+
} else {
|
|
1950
|
+
effect.run();
|
|
1951
|
+
}
|
|
1952
|
+
watchHandle.pause = effect.pause.bind(effect);
|
|
1953
|
+
watchHandle.resume = effect.resume.bind(effect);
|
|
1954
|
+
watchHandle.stop = watchHandle;
|
|
1955
|
+
return watchHandle;
|
|
1956
|
+
}
|
|
1957
|
+
function traverse(value, depth = Infinity, seen) {
|
|
1958
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
1959
|
+
return value;
|
|
1960
|
+
}
|
|
1961
|
+
seen = seen || /* @__PURE__ */ new Map();
|
|
1962
|
+
if ((seen.get(value) || 0) >= depth) {
|
|
1963
|
+
return value;
|
|
1964
|
+
}
|
|
1965
|
+
seen.set(value, depth);
|
|
1966
|
+
depth--;
|
|
1967
|
+
if (isRef(value)) {
|
|
1968
|
+
traverse(value.value, depth, seen);
|
|
1969
|
+
} else if (isArray(value)) {
|
|
1970
|
+
for (let i = 0; i < value.length; i++) {
|
|
1971
|
+
traverse(value[i], depth, seen);
|
|
1972
|
+
}
|
|
1973
|
+
} else if (isSet(value) || isMap(value)) {
|
|
1974
|
+
value.forEach((v) => {
|
|
1975
|
+
traverse(v, depth, seen);
|
|
1976
|
+
});
|
|
1977
|
+
} else if (isPlainObject(value)) {
|
|
1978
|
+
for (const key in value) {
|
|
1979
|
+
traverse(value[key], depth, seen);
|
|
1980
|
+
}
|
|
1981
|
+
for (const key of Object.getOwnPropertySymbols(value)) {
|
|
1982
|
+
if (Object.prototype.propertyIsEnumerable.call(value, key)) {
|
|
1983
|
+
traverse(value[key], depth, seen);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
return value;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
export { ARRAY_ITERATE_KEY, EffectFlags, EffectScope, ITERATE_KEY, MAP_KEY_ITERATE_KEY, ReactiveEffect, ReactiveFlags, TrackOpTypes, TriggerOpTypes, WatchErrorCodes, computed, customRef, effect, effectScope, enableTracking, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onEffectCleanup, onScopeDispose, onWatcherCleanup, pauseTracking, proxyRefs, reactive, reactiveReadArray, readonly, ref, resetTracking, shallowReactive, shallowReadArray, shallowReadonly, shallowRef, stop, toRaw, toReactive, toReadonly, toRef, toRefs, toValue, track, traverse, trigger, triggerRef, unref, watch };
|