@peter.naydenov/cuts 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.graphify_uncached.txt +1 -0
- package/.opencode/plugins/graphify.js +22 -0
- package/AGENTS.md +8 -0
- package/Changelog.md +9 -0
- package/README.md +154 -1
- 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/dist/cuts.umd.js +1 -1
- package/graphify-out/.graphify_python +1 -0
- package/graphify-out/GRAPH_REPORT.md +308 -0
- package/graphify-out/cache/012d3294918720b55e6b92b199990cfc018241eea880e1f6e6a0724aa6e1f17f.json +1 -0
- package/graphify-out/cache/01cec5959c65918486350dcf1673e6e3fc496e3f888d6872533927da64581a04.json +1 -0
- package/graphify-out/cache/0940319c089ade1ec8424e8d1a54cb8b4d8b5398da48bbb44dd68cefe9d33c00.json +1 -0
- package/graphify-out/cache/0da80b47b352499ba03cd5dee2fc281a98f09a19480e622d15faf49157df074b.json +1 -0
- package/graphify-out/cache/0e905bdb9bcd5a94e8d4f53d8c3a5c074283166b302d39436dbb245f2ec35e70.json +1 -0
- package/graphify-out/cache/0fa5cad2f351dcaa7d35b48576dee7f9ac9c5cc4b394b1f0deaff8a180e3c451.json +1 -0
- package/graphify-out/cache/10aa1439c5bfd598b80d729e5ba3b6cfdb58bd2b359f420c292aafc8c035a02d.json +1 -0
- package/graphify-out/cache/131c1daae8abc86c8218622f56273af8b1b9f9fa4aec2998ef825bca0f62913d.json +1 -0
- package/graphify-out/cache/17e5f2beac577cb4a9318ab14e559216c17efa10b9066767965970dbb5303aa8.json +1 -0
- package/graphify-out/cache/1e04390c6e1cff4babe570ffb9ca69c7dc48aedbd5a590844ad0306870c384a4.json +1 -0
- package/graphify-out/cache/240c8091236475ff2ee2cf2f9f9f6e80be1616c8f608aec6f0bd7df848581adc.json +1 -0
- package/graphify-out/cache/24418a06ce214a93595cb57c1a4c951b233e7e8fdc47122e2ba02935970a7266.json +1 -0
- package/graphify-out/cache/2675052ddc9cfa31333f6810c81eb9cfac04a6a627bd897a68963adcfb6a8c08.json +1 -0
- package/graphify-out/cache/309a7e48db971f382ade80198bb1fc2afaa016a36a2a7cfcb2a8538d79061530.json +1 -0
- package/graphify-out/cache/323e2198675ff4fba301afb26c3b188db91039aed029d2b3c4afd659ce75ca92.json +1 -0
- package/graphify-out/cache/3493a990cec8e577d0da3de4a54229b649a63400a4023ca1911c082309e27e7b.json +1 -0
- package/graphify-out/cache/35745072ea817929ae9707d52b4601e63a15233d033c67575cd13f4fef4a6374.json +1 -0
- package/graphify-out/cache/3bb336d107d9e0f7243aaf6249f4218da2af6734736192633943f0fabe04bd11.json +1 -0
- package/graphify-out/cache/4182a1dd2fcfa44f6ccc7615259fc5288fc1c5f23b6e41dd1d31acaad9d9672a.json +1 -0
- package/graphify-out/cache/4b1b786ba42a5f31760aacecaec23d8a430fdc7054d9fc94aeda68e1a814a37b.json +1 -0
- package/graphify-out/cache/53400873bbb9d220df1cd34714577c750185538ca2f43ce726c7e9d2064d9890.json +1 -0
- package/graphify-out/cache/5552036f9715ed1c0e0793131c919739e887f413ef8979efd8dac0d347d26a92.json +1 -0
- package/graphify-out/cache/55f4ffb8c1f3a0a68dd78016df9e1309f481b5942b468abab7f567fc8aa0f2ab.json +1 -0
- package/graphify-out/cache/570424b2534780740fec1c08d7435bb228af7705e3f6e9fa28ee087a6092c916.json +1 -0
- package/graphify-out/cache/573b92c02548ab00fcf9351dfa2c6fe7f401acca2b9315133edc7453e82a25bb.json +1 -0
- package/graphify-out/cache/57c611c887a762e47fff496f1438e35bff2794807b327ace69dc40b4b5126f6c.json +1 -0
- package/graphify-out/cache/682fea1576e6f89f0bbeecab480fdf3a3a15649f6f41b1af6db758248b4669a1.json +1 -0
- package/graphify-out/cache/6ca8a0aa9022e68f010ca8ece5ee0c5ba9616d31aa1716634bcb61fd7c03baf0.json +1 -0
- package/graphify-out/cache/7098a2a328c738b93faea79761188f18a8c8daaf530a590df89f1e3f6ecce7ed.json +1 -0
- package/graphify-out/cache/782b5a020c37aa0cc0163a21d32ea7af9a9677dbbf267a6c109aa9a919e5d79d.json +1 -0
- package/graphify-out/cache/8771f4d3ccb4ae55a13a2d1a452626e0dadb16a146ef0839dd963e42b3decfa2.json +1 -0
- package/graphify-out/cache/93fdbd9b92d3928bec4b31972bc7f458551868ce10157e68b624addbc310e45e.json +1 -0
- package/graphify-out/cache/941ca37c98b5c5e4224d8f28c98d82164fb9e047f551122ed9dd1e172c9ca210.json +1 -0
- package/graphify-out/cache/9603602b27e8453e47faac0e540e17de9e2473d716d2c1399b860d1ede74e649.json +1 -0
- package/graphify-out/cache/965a31d7d62cd7f81146f1c4c39b37535a7b0c720a800856477250781254fc23.json +1 -0
- package/graphify-out/cache/9a192662abf3d936dfc83c16bf18d6a46ac2ce3f16fb493050178eafcf640326.json +1 -0
- package/graphify-out/cache/9a4c098d43c0f0ec653bdfd3b68a482376fdd3a25c31c6b92bb92d8a49ed4de7.json +1 -0
- package/graphify-out/cache/9aec2f693fa17698f1d16683fff1947eab153d1fd788ee25ec4d06f6ba0b8171.json +1 -0
- package/graphify-out/cache/9daaa95737c689bd88ed99b880c7b4add83dfffa17ad6431aade0e8037946ce1.json +1 -0
- package/graphify-out/cache/a12981414bb5c59b6e9ad87b36cb4eb9c1e9b49cb7446ecb2789ab4496d1d4b3.json +1 -0
- package/graphify-out/cache/aa9a32d2538270661b9f591dec199134eb51488f103325c93e8eeb29f6088307.json +1 -0
- package/graphify-out/cache/ae75925bf4fc6a110fa7af9a0a8b20da642d6e61b8ac079b9a843c2e7848d2bf.json +1 -0
- package/graphify-out/cache/b0e7e88b335107d2ebb72524803d5575fc84eeb6c065e5c8dce8e659f59b14ce.json +1 -0
- package/graphify-out/cache/b5bad0c1d525f2d57687ff82e3f52644140625f0bb9a91e2a40bb94f172295ba.json +1 -0
- package/graphify-out/cache/bb9cde14b37ae2b22720974339bda8c8698f8db8e03ae108fc4e0a1b175a5799.json +1 -0
- package/graphify-out/cache/bfb8682a587eb2a75f2de9a6cb68eea52c6791ce763ed9fd370e4186f2ca964d.json +1 -0
- package/graphify-out/cache/c0e0ab86119b69a71d7c07134e3259961c112ac293d1c1976ebdaa975c6634a1.json +1 -0
- package/graphify-out/cache/cbd4d1c99376a1a9cbac38a927bc9bab92bdf6715ca31f99388b02ccab3accc1.json +1 -0
- package/graphify-out/cache/df569c88c4ba775eea79ac5596fe3b70345f3ee7a53459d865e196e0e807d966.json +1 -0
- package/graphify-out/cache/f6feb53a375f42d12de35e3a7d29cc2f3263f9fca0eff30b5f0ea2dd50a4bc7f.json +1 -0
- package/graphify-out/cache/ffc7c58210d00973bed4dc58e0d97fe862129d2dfeba3a60ea643bcb5ae6757f.json +1 -0
- package/graphify-out/cost.json +12 -0
- package/graphify-out/graph.html +266 -0
- package/graphify-out/graph.json +3190 -0
- package/graphify-out/manifest.json +52 -0
- package/opencode.json +6 -0
- package/package.json +21 -21
- 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,1588 @@
|
|
|
1
|
+
import { encode } from '@jridgewell/sourcemap-codec';
|
|
2
|
+
|
|
3
|
+
class BitSet {
|
|
4
|
+
constructor(arg) {
|
|
5
|
+
this.bits = arg instanceof BitSet ? arg.bits.slice() : [];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
add(n) {
|
|
9
|
+
this.bits[n >> 5] |= 1 << (n & 31);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
has(n) {
|
|
13
|
+
return !!(this.bits[n >> 5] & (1 << (n & 31)));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class Chunk {
|
|
18
|
+
constructor(start, end, content) {
|
|
19
|
+
this.start = start;
|
|
20
|
+
this.end = end;
|
|
21
|
+
this.original = content;
|
|
22
|
+
|
|
23
|
+
this.intro = '';
|
|
24
|
+
this.outro = '';
|
|
25
|
+
|
|
26
|
+
this.content = content;
|
|
27
|
+
this.storeName = false;
|
|
28
|
+
this.edited = false;
|
|
29
|
+
|
|
30
|
+
{
|
|
31
|
+
this.previous = null;
|
|
32
|
+
this.next = null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
appendLeft(content) {
|
|
37
|
+
this.outro += content;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
appendRight(content) {
|
|
41
|
+
this.intro = this.intro + content;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
clone() {
|
|
45
|
+
const chunk = new Chunk(this.start, this.end, this.original);
|
|
46
|
+
|
|
47
|
+
chunk.intro = this.intro;
|
|
48
|
+
chunk.outro = this.outro;
|
|
49
|
+
chunk.content = this.content;
|
|
50
|
+
chunk.storeName = this.storeName;
|
|
51
|
+
chunk.edited = this.edited;
|
|
52
|
+
|
|
53
|
+
return chunk;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
contains(index) {
|
|
57
|
+
return this.start < index && index < this.end;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
eachNext(fn) {
|
|
61
|
+
let chunk = this;
|
|
62
|
+
while (chunk) {
|
|
63
|
+
fn(chunk);
|
|
64
|
+
chunk = chunk.next;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
eachPrevious(fn) {
|
|
69
|
+
let chunk = this;
|
|
70
|
+
while (chunk) {
|
|
71
|
+
fn(chunk);
|
|
72
|
+
chunk = chunk.previous;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
edit(content, storeName, contentOnly) {
|
|
77
|
+
this.content = content;
|
|
78
|
+
if (!contentOnly) {
|
|
79
|
+
this.intro = '';
|
|
80
|
+
this.outro = '';
|
|
81
|
+
}
|
|
82
|
+
this.storeName = storeName;
|
|
83
|
+
|
|
84
|
+
this.edited = true;
|
|
85
|
+
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
prependLeft(content) {
|
|
90
|
+
this.outro = content + this.outro;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
prependRight(content) {
|
|
94
|
+
this.intro = content + this.intro;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
reset() {
|
|
98
|
+
this.intro = '';
|
|
99
|
+
this.outro = '';
|
|
100
|
+
if (this.edited) {
|
|
101
|
+
this.content = this.original;
|
|
102
|
+
this.storeName = false;
|
|
103
|
+
this.edited = false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
split(index) {
|
|
108
|
+
const sliceIndex = index - this.start;
|
|
109
|
+
|
|
110
|
+
const originalBefore = this.original.slice(0, sliceIndex);
|
|
111
|
+
const originalAfter = this.original.slice(sliceIndex);
|
|
112
|
+
|
|
113
|
+
this.original = originalBefore;
|
|
114
|
+
|
|
115
|
+
const newChunk = new Chunk(index, this.end, originalAfter);
|
|
116
|
+
newChunk.outro = this.outro;
|
|
117
|
+
this.outro = '';
|
|
118
|
+
|
|
119
|
+
this.end = index;
|
|
120
|
+
|
|
121
|
+
if (this.edited) {
|
|
122
|
+
// after split we should save the edit content record into the correct chunk
|
|
123
|
+
// to make sure sourcemap correct
|
|
124
|
+
// For example:
|
|
125
|
+
// ' test'.trim()
|
|
126
|
+
// split -> ' ' + 'test'
|
|
127
|
+
// ✔️ edit -> '' + 'test'
|
|
128
|
+
// ✖️ edit -> 'test' + ''
|
|
129
|
+
// TODO is this block necessary?...
|
|
130
|
+
newChunk.edit('', false);
|
|
131
|
+
this.content = '';
|
|
132
|
+
} else {
|
|
133
|
+
this.content = originalBefore;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
newChunk.next = this.next;
|
|
137
|
+
if (newChunk.next) newChunk.next.previous = newChunk;
|
|
138
|
+
newChunk.previous = this;
|
|
139
|
+
this.next = newChunk;
|
|
140
|
+
|
|
141
|
+
return newChunk;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
toString() {
|
|
145
|
+
return this.intro + this.content + this.outro;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
trimEnd(rx) {
|
|
149
|
+
this.outro = this.outro.replace(rx, '');
|
|
150
|
+
if (this.outro.length) return true;
|
|
151
|
+
|
|
152
|
+
const trimmed = this.content.replace(rx, '');
|
|
153
|
+
|
|
154
|
+
if (trimmed.length) {
|
|
155
|
+
if (trimmed !== this.content) {
|
|
156
|
+
this.split(this.start + trimmed.length).edit('', undefined, true);
|
|
157
|
+
if (this.edited) {
|
|
158
|
+
// save the change, if it has been edited
|
|
159
|
+
this.edit(trimmed, this.storeName, true);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return true;
|
|
163
|
+
} else {
|
|
164
|
+
this.edit('', undefined, true);
|
|
165
|
+
|
|
166
|
+
this.intro = this.intro.replace(rx, '');
|
|
167
|
+
if (this.intro.length) return true;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
trimStart(rx) {
|
|
172
|
+
this.intro = this.intro.replace(rx, '');
|
|
173
|
+
if (this.intro.length) return true;
|
|
174
|
+
|
|
175
|
+
const trimmed = this.content.replace(rx, '');
|
|
176
|
+
|
|
177
|
+
if (trimmed.length) {
|
|
178
|
+
if (trimmed !== this.content) {
|
|
179
|
+
const newChunk = this.split(this.end - trimmed.length);
|
|
180
|
+
if (this.edited) {
|
|
181
|
+
// save the change, if it has been edited
|
|
182
|
+
newChunk.edit(trimmed, this.storeName, true);
|
|
183
|
+
}
|
|
184
|
+
this.edit('', undefined, true);
|
|
185
|
+
}
|
|
186
|
+
return true;
|
|
187
|
+
} else {
|
|
188
|
+
this.edit('', undefined, true);
|
|
189
|
+
|
|
190
|
+
this.outro = this.outro.replace(rx, '');
|
|
191
|
+
if (this.outro.length) return true;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
function getBtoa() {
|
|
197
|
+
if (typeof globalThis !== 'undefined' && typeof globalThis.btoa === 'function') {
|
|
198
|
+
return (str) => globalThis.btoa(unescape(encodeURIComponent(str)));
|
|
199
|
+
} else if (typeof Buffer === 'function') {
|
|
200
|
+
return (str) => Buffer.from(str, 'utf-8').toString('base64');
|
|
201
|
+
} else {
|
|
202
|
+
return () => {
|
|
203
|
+
throw new Error('Unsupported environment: `window.btoa` or `Buffer` should be supported.');
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
const btoa = /*#__PURE__*/ getBtoa();
|
|
209
|
+
|
|
210
|
+
class SourceMap {
|
|
211
|
+
constructor(properties) {
|
|
212
|
+
this.version = 3;
|
|
213
|
+
this.file = properties.file;
|
|
214
|
+
this.sources = properties.sources;
|
|
215
|
+
this.sourcesContent = properties.sourcesContent;
|
|
216
|
+
this.names = properties.names;
|
|
217
|
+
this.mappings = encode(properties.mappings);
|
|
218
|
+
if (typeof properties.x_google_ignoreList !== 'undefined') {
|
|
219
|
+
this.x_google_ignoreList = properties.x_google_ignoreList;
|
|
220
|
+
}
|
|
221
|
+
if (typeof properties.debugId !== 'undefined') {
|
|
222
|
+
this.debugId = properties.debugId;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
toString() {
|
|
227
|
+
return JSON.stringify(this);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
toUrl() {
|
|
231
|
+
return 'data:application/json;charset=utf-8;base64,' + btoa(this.toString());
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function guessIndent(code) {
|
|
236
|
+
const lines = code.split('\n');
|
|
237
|
+
|
|
238
|
+
const tabbed = lines.filter((line) => /^\t+/.test(line));
|
|
239
|
+
const spaced = lines.filter((line) => /^ {2,}/.test(line));
|
|
240
|
+
|
|
241
|
+
if (tabbed.length === 0 && spaced.length === 0) {
|
|
242
|
+
return null;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// More lines tabbed than spaced? Assume tabs, and
|
|
246
|
+
// default to tabs in the case of a tie (or nothing
|
|
247
|
+
// to go on)
|
|
248
|
+
if (tabbed.length >= spaced.length) {
|
|
249
|
+
return '\t';
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Otherwise, we need to guess the multiple
|
|
253
|
+
const min = spaced.reduce((previous, current) => {
|
|
254
|
+
const numSpaces = /^ +/.exec(current)[0].length;
|
|
255
|
+
return Math.min(numSpaces, previous);
|
|
256
|
+
}, Infinity);
|
|
257
|
+
|
|
258
|
+
return new Array(min + 1).join(' ');
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function getRelativePath(from, to) {
|
|
262
|
+
const fromParts = from.split(/[/\\]/);
|
|
263
|
+
const toParts = to.split(/[/\\]/);
|
|
264
|
+
|
|
265
|
+
fromParts.pop(); // get dirname
|
|
266
|
+
|
|
267
|
+
while (fromParts[0] === toParts[0]) {
|
|
268
|
+
fromParts.shift();
|
|
269
|
+
toParts.shift();
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (fromParts.length) {
|
|
273
|
+
let i = fromParts.length;
|
|
274
|
+
while (i--) fromParts[i] = '..';
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
return fromParts.concat(toParts).join('/');
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const toString = Object.prototype.toString;
|
|
281
|
+
|
|
282
|
+
function isObject(thing) {
|
|
283
|
+
return toString.call(thing) === '[object Object]';
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
function getLocator(source) {
|
|
287
|
+
const originalLines = source.split('\n');
|
|
288
|
+
const lineOffsets = [];
|
|
289
|
+
|
|
290
|
+
for (let i = 0, pos = 0; i < originalLines.length; i++) {
|
|
291
|
+
lineOffsets.push(pos);
|
|
292
|
+
pos += originalLines[i].length + 1;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return function locate(index) {
|
|
296
|
+
let i = 0;
|
|
297
|
+
let j = lineOffsets.length;
|
|
298
|
+
while (i < j) {
|
|
299
|
+
const m = (i + j) >> 1;
|
|
300
|
+
if (index < lineOffsets[m]) {
|
|
301
|
+
j = m;
|
|
302
|
+
} else {
|
|
303
|
+
i = m + 1;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
const line = i - 1;
|
|
307
|
+
const column = index - lineOffsets[line];
|
|
308
|
+
return { line, column };
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const wordRegex = /\w/;
|
|
313
|
+
|
|
314
|
+
class Mappings {
|
|
315
|
+
constructor(hires) {
|
|
316
|
+
this.hires = hires;
|
|
317
|
+
this.generatedCodeLine = 0;
|
|
318
|
+
this.generatedCodeColumn = 0;
|
|
319
|
+
this.raw = [];
|
|
320
|
+
this.rawSegments = this.raw[this.generatedCodeLine] = [];
|
|
321
|
+
this.pending = null;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
addEdit(sourceIndex, content, loc, nameIndex) {
|
|
325
|
+
if (content.length) {
|
|
326
|
+
const contentLengthMinusOne = content.length - 1;
|
|
327
|
+
let contentLineEnd = content.indexOf('\n', 0);
|
|
328
|
+
let previousContentLineEnd = -1;
|
|
329
|
+
// Loop through each line in the content and add a segment, but stop if the last line is empty,
|
|
330
|
+
// else code afterwards would fill one line too many
|
|
331
|
+
while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
|
|
332
|
+
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
333
|
+
if (nameIndex >= 0) {
|
|
334
|
+
segment.push(nameIndex);
|
|
335
|
+
}
|
|
336
|
+
this.rawSegments.push(segment);
|
|
337
|
+
|
|
338
|
+
this.generatedCodeLine += 1;
|
|
339
|
+
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
340
|
+
this.generatedCodeColumn = 0;
|
|
341
|
+
|
|
342
|
+
previousContentLineEnd = contentLineEnd;
|
|
343
|
+
contentLineEnd = content.indexOf('\n', contentLineEnd + 1);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
347
|
+
if (nameIndex >= 0) {
|
|
348
|
+
segment.push(nameIndex);
|
|
349
|
+
}
|
|
350
|
+
this.rawSegments.push(segment);
|
|
351
|
+
|
|
352
|
+
this.advance(content.slice(previousContentLineEnd + 1));
|
|
353
|
+
} else if (this.pending) {
|
|
354
|
+
this.rawSegments.push(this.pending);
|
|
355
|
+
this.advance(content);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
this.pending = null;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) {
|
|
362
|
+
let originalCharIndex = chunk.start;
|
|
363
|
+
let first = true;
|
|
364
|
+
// when iterating each char, check if it's in a word boundary
|
|
365
|
+
let charInHiresBoundary = false;
|
|
366
|
+
|
|
367
|
+
while (originalCharIndex < chunk.end) {
|
|
368
|
+
if (original[originalCharIndex] === '\n') {
|
|
369
|
+
loc.line += 1;
|
|
370
|
+
loc.column = 0;
|
|
371
|
+
this.generatedCodeLine += 1;
|
|
372
|
+
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
373
|
+
this.generatedCodeColumn = 0;
|
|
374
|
+
first = true;
|
|
375
|
+
charInHiresBoundary = false;
|
|
376
|
+
} else {
|
|
377
|
+
if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
|
|
378
|
+
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
379
|
+
|
|
380
|
+
if (this.hires === 'boundary') {
|
|
381
|
+
// in hires "boundary", group segments per word boundary than per char
|
|
382
|
+
if (wordRegex.test(original[originalCharIndex])) {
|
|
383
|
+
// for first char in the boundary found, start the boundary by pushing a segment
|
|
384
|
+
if (!charInHiresBoundary) {
|
|
385
|
+
this.rawSegments.push(segment);
|
|
386
|
+
charInHiresBoundary = true;
|
|
387
|
+
}
|
|
388
|
+
} else {
|
|
389
|
+
// for non-word char, end the boundary by pushing a segment
|
|
390
|
+
this.rawSegments.push(segment);
|
|
391
|
+
charInHiresBoundary = false;
|
|
392
|
+
}
|
|
393
|
+
} else {
|
|
394
|
+
this.rawSegments.push(segment);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
loc.column += 1;
|
|
399
|
+
this.generatedCodeColumn += 1;
|
|
400
|
+
first = false;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
originalCharIndex += 1;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
this.pending = null;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
advance(str) {
|
|
410
|
+
if (!str) return;
|
|
411
|
+
|
|
412
|
+
const lines = str.split('\n');
|
|
413
|
+
|
|
414
|
+
if (lines.length > 1) {
|
|
415
|
+
for (let i = 0; i < lines.length - 1; i++) {
|
|
416
|
+
this.generatedCodeLine++;
|
|
417
|
+
this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
418
|
+
}
|
|
419
|
+
this.generatedCodeColumn = 0;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
this.generatedCodeColumn += lines[lines.length - 1].length;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
const n = '\n';
|
|
427
|
+
|
|
428
|
+
const warned = {
|
|
429
|
+
insertLeft: false,
|
|
430
|
+
insertRight: false,
|
|
431
|
+
storeName: false,
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
class MagicString {
|
|
435
|
+
constructor(string, options = {}) {
|
|
436
|
+
const chunk = new Chunk(0, string.length, string);
|
|
437
|
+
|
|
438
|
+
Object.defineProperties(this, {
|
|
439
|
+
original: { writable: true, value: string },
|
|
440
|
+
outro: { writable: true, value: '' },
|
|
441
|
+
intro: { writable: true, value: '' },
|
|
442
|
+
firstChunk: { writable: true, value: chunk },
|
|
443
|
+
lastChunk: { writable: true, value: chunk },
|
|
444
|
+
lastSearchedChunk: { writable: true, value: chunk },
|
|
445
|
+
byStart: { writable: true, value: {} },
|
|
446
|
+
byEnd: { writable: true, value: {} },
|
|
447
|
+
filename: { writable: true, value: options.filename },
|
|
448
|
+
indentExclusionRanges: { writable: true, value: options.indentExclusionRanges },
|
|
449
|
+
sourcemapLocations: { writable: true, value: new BitSet() },
|
|
450
|
+
storedNames: { writable: true, value: {} },
|
|
451
|
+
indentStr: { writable: true, value: undefined },
|
|
452
|
+
ignoreList: { writable: true, value: options.ignoreList },
|
|
453
|
+
offset: { writable: true, value: options.offset || 0 },
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
this.byStart[0] = chunk;
|
|
457
|
+
this.byEnd[string.length] = chunk;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
addSourcemapLocation(char) {
|
|
461
|
+
this.sourcemapLocations.add(char);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
append(content) {
|
|
465
|
+
if (typeof content !== 'string') throw new TypeError('outro content must be a string');
|
|
466
|
+
|
|
467
|
+
this.outro += content;
|
|
468
|
+
return this;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
appendLeft(index, content) {
|
|
472
|
+
index = index + this.offset;
|
|
473
|
+
|
|
474
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
|
475
|
+
|
|
476
|
+
this._split(index);
|
|
477
|
+
|
|
478
|
+
const chunk = this.byEnd[index];
|
|
479
|
+
|
|
480
|
+
if (chunk) {
|
|
481
|
+
chunk.appendLeft(content);
|
|
482
|
+
} else {
|
|
483
|
+
this.intro += content;
|
|
484
|
+
}
|
|
485
|
+
return this;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
appendRight(index, content) {
|
|
489
|
+
index = index + this.offset;
|
|
490
|
+
|
|
491
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
|
492
|
+
|
|
493
|
+
this._split(index);
|
|
494
|
+
|
|
495
|
+
const chunk = this.byStart[index];
|
|
496
|
+
|
|
497
|
+
if (chunk) {
|
|
498
|
+
chunk.appendRight(content);
|
|
499
|
+
} else {
|
|
500
|
+
this.outro += content;
|
|
501
|
+
}
|
|
502
|
+
return this;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
clone() {
|
|
506
|
+
const cloned = new MagicString(this.original, { filename: this.filename, offset: this.offset });
|
|
507
|
+
|
|
508
|
+
let originalChunk = this.firstChunk;
|
|
509
|
+
let clonedChunk = (cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone());
|
|
510
|
+
|
|
511
|
+
while (originalChunk) {
|
|
512
|
+
cloned.byStart[clonedChunk.start] = clonedChunk;
|
|
513
|
+
cloned.byEnd[clonedChunk.end] = clonedChunk;
|
|
514
|
+
|
|
515
|
+
const nextOriginalChunk = originalChunk.next;
|
|
516
|
+
const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
|
|
517
|
+
|
|
518
|
+
if (nextClonedChunk) {
|
|
519
|
+
clonedChunk.next = nextClonedChunk;
|
|
520
|
+
nextClonedChunk.previous = clonedChunk;
|
|
521
|
+
|
|
522
|
+
clonedChunk = nextClonedChunk;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
originalChunk = nextOriginalChunk;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
cloned.lastChunk = clonedChunk;
|
|
529
|
+
|
|
530
|
+
if (this.indentExclusionRanges) {
|
|
531
|
+
cloned.indentExclusionRanges = this.indentExclusionRanges.slice();
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
cloned.sourcemapLocations = new BitSet(this.sourcemapLocations);
|
|
535
|
+
|
|
536
|
+
cloned.intro = this.intro;
|
|
537
|
+
cloned.outro = this.outro;
|
|
538
|
+
|
|
539
|
+
return cloned;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
generateDecodedMap(options) {
|
|
543
|
+
options = options || {};
|
|
544
|
+
|
|
545
|
+
const sourceIndex = 0;
|
|
546
|
+
const names = Object.keys(this.storedNames);
|
|
547
|
+
const mappings = new Mappings(options.hires);
|
|
548
|
+
|
|
549
|
+
const locate = getLocator(this.original);
|
|
550
|
+
|
|
551
|
+
if (this.intro) {
|
|
552
|
+
mappings.advance(this.intro);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
this.firstChunk.eachNext((chunk) => {
|
|
556
|
+
const loc = locate(chunk.start);
|
|
557
|
+
|
|
558
|
+
if (chunk.intro.length) mappings.advance(chunk.intro);
|
|
559
|
+
|
|
560
|
+
if (chunk.edited) {
|
|
561
|
+
mappings.addEdit(
|
|
562
|
+
sourceIndex,
|
|
563
|
+
chunk.content,
|
|
564
|
+
loc,
|
|
565
|
+
chunk.storeName ? names.indexOf(chunk.original) : -1,
|
|
566
|
+
);
|
|
567
|
+
} else {
|
|
568
|
+
mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
if (chunk.outro.length) mappings.advance(chunk.outro);
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
if (this.outro) {
|
|
575
|
+
mappings.advance(this.outro);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
return {
|
|
579
|
+
file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
|
|
580
|
+
sources: [
|
|
581
|
+
options.source ? getRelativePath(options.file || '', options.source) : options.file || '',
|
|
582
|
+
],
|
|
583
|
+
sourcesContent: options.includeContent ? [this.original] : undefined,
|
|
584
|
+
names,
|
|
585
|
+
mappings: mappings.raw,
|
|
586
|
+
x_google_ignoreList: this.ignoreList ? [sourceIndex] : undefined,
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
generateMap(options) {
|
|
591
|
+
return new SourceMap(this.generateDecodedMap(options));
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
_ensureindentStr() {
|
|
595
|
+
if (this.indentStr === undefined) {
|
|
596
|
+
this.indentStr = guessIndent(this.original);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
_getRawIndentString() {
|
|
601
|
+
this._ensureindentStr();
|
|
602
|
+
return this.indentStr;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
getIndentString() {
|
|
606
|
+
this._ensureindentStr();
|
|
607
|
+
return this.indentStr === null ? '\t' : this.indentStr;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
indent(indentStr, options) {
|
|
611
|
+
const pattern = /^[^\r\n]/gm;
|
|
612
|
+
|
|
613
|
+
if (isObject(indentStr)) {
|
|
614
|
+
options = indentStr;
|
|
615
|
+
indentStr = undefined;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
if (indentStr === undefined) {
|
|
619
|
+
this._ensureindentStr();
|
|
620
|
+
indentStr = this.indentStr || '\t';
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if (indentStr === '') return this; // noop
|
|
624
|
+
|
|
625
|
+
options = options || {};
|
|
626
|
+
|
|
627
|
+
// Process exclusion ranges
|
|
628
|
+
const isExcluded = {};
|
|
629
|
+
|
|
630
|
+
if (options.exclude) {
|
|
631
|
+
const exclusions =
|
|
632
|
+
typeof options.exclude[0] === 'number' ? [options.exclude] : options.exclude;
|
|
633
|
+
exclusions.forEach((exclusion) => {
|
|
634
|
+
for (let i = exclusion[0]; i < exclusion[1]; i += 1) {
|
|
635
|
+
isExcluded[i] = true;
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
let shouldIndentNextCharacter = options.indentStart !== false;
|
|
641
|
+
const replacer = (match) => {
|
|
642
|
+
if (shouldIndentNextCharacter) return `${indentStr}${match}`;
|
|
643
|
+
shouldIndentNextCharacter = true;
|
|
644
|
+
return match;
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
this.intro = this.intro.replace(pattern, replacer);
|
|
648
|
+
|
|
649
|
+
let charIndex = 0;
|
|
650
|
+
let chunk = this.firstChunk;
|
|
651
|
+
|
|
652
|
+
while (chunk) {
|
|
653
|
+
const end = chunk.end;
|
|
654
|
+
|
|
655
|
+
if (chunk.edited) {
|
|
656
|
+
if (!isExcluded[charIndex]) {
|
|
657
|
+
chunk.content = chunk.content.replace(pattern, replacer);
|
|
658
|
+
|
|
659
|
+
if (chunk.content.length) {
|
|
660
|
+
shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === '\n';
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
} else {
|
|
664
|
+
charIndex = chunk.start;
|
|
665
|
+
|
|
666
|
+
while (charIndex < end) {
|
|
667
|
+
if (!isExcluded[charIndex]) {
|
|
668
|
+
const char = this.original[charIndex];
|
|
669
|
+
|
|
670
|
+
if (char === '\n') {
|
|
671
|
+
shouldIndentNextCharacter = true;
|
|
672
|
+
} else if (char !== '\r' && shouldIndentNextCharacter) {
|
|
673
|
+
shouldIndentNextCharacter = false;
|
|
674
|
+
|
|
675
|
+
if (charIndex === chunk.start) {
|
|
676
|
+
chunk.prependRight(indentStr);
|
|
677
|
+
} else {
|
|
678
|
+
this._splitChunk(chunk, charIndex);
|
|
679
|
+
chunk = chunk.next;
|
|
680
|
+
chunk.prependRight(indentStr);
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
charIndex += 1;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
charIndex = chunk.end;
|
|
690
|
+
chunk = chunk.next;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
this.outro = this.outro.replace(pattern, replacer);
|
|
694
|
+
|
|
695
|
+
return this;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
insert() {
|
|
699
|
+
throw new Error(
|
|
700
|
+
'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)',
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
insertLeft(index, content) {
|
|
705
|
+
if (!warned.insertLeft) {
|
|
706
|
+
console.warn(
|
|
707
|
+
'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead',
|
|
708
|
+
);
|
|
709
|
+
warned.insertLeft = true;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
return this.appendLeft(index, content);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
insertRight(index, content) {
|
|
716
|
+
if (!warned.insertRight) {
|
|
717
|
+
console.warn(
|
|
718
|
+
'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead',
|
|
719
|
+
);
|
|
720
|
+
warned.insertRight = true;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
return this.prependRight(index, content);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
move(start, end, index) {
|
|
727
|
+
start = start + this.offset;
|
|
728
|
+
end = end + this.offset;
|
|
729
|
+
index = index + this.offset;
|
|
730
|
+
|
|
731
|
+
if (index >= start && index <= end) throw new Error('Cannot move a selection inside itself');
|
|
732
|
+
|
|
733
|
+
this._split(start);
|
|
734
|
+
this._split(end);
|
|
735
|
+
this._split(index);
|
|
736
|
+
|
|
737
|
+
const first = this.byStart[start];
|
|
738
|
+
const last = this.byEnd[end];
|
|
739
|
+
|
|
740
|
+
const oldLeft = first.previous;
|
|
741
|
+
const oldRight = last.next;
|
|
742
|
+
|
|
743
|
+
const newRight = this.byStart[index];
|
|
744
|
+
if (!newRight && last === this.lastChunk) return this;
|
|
745
|
+
const newLeft = newRight ? newRight.previous : this.lastChunk;
|
|
746
|
+
|
|
747
|
+
if (oldLeft) oldLeft.next = oldRight;
|
|
748
|
+
if (oldRight) oldRight.previous = oldLeft;
|
|
749
|
+
|
|
750
|
+
if (newLeft) newLeft.next = first;
|
|
751
|
+
if (newRight) newRight.previous = last;
|
|
752
|
+
|
|
753
|
+
if (!first.previous) this.firstChunk = last.next;
|
|
754
|
+
if (!last.next) {
|
|
755
|
+
this.lastChunk = first.previous;
|
|
756
|
+
this.lastChunk.next = null;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
first.previous = newLeft;
|
|
760
|
+
last.next = newRight || null;
|
|
761
|
+
|
|
762
|
+
if (!newLeft) this.firstChunk = first;
|
|
763
|
+
if (!newRight) this.lastChunk = last;
|
|
764
|
+
return this;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
overwrite(start, end, content, options) {
|
|
768
|
+
options = options || {};
|
|
769
|
+
return this.update(start, end, content, { ...options, overwrite: !options.contentOnly });
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
update(start, end, content, options) {
|
|
773
|
+
start = start + this.offset;
|
|
774
|
+
end = end + this.offset;
|
|
775
|
+
|
|
776
|
+
if (typeof content !== 'string') throw new TypeError('replacement content must be a string');
|
|
777
|
+
|
|
778
|
+
if (this.original.length !== 0) {
|
|
779
|
+
while (start < 0) start += this.original.length;
|
|
780
|
+
while (end < 0) end += this.original.length;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
if (end > this.original.length) throw new Error('end is out of bounds');
|
|
784
|
+
if (start === end)
|
|
785
|
+
throw new Error(
|
|
786
|
+
'Cannot overwrite a zero-length range – use appendLeft or prependRight instead',
|
|
787
|
+
);
|
|
788
|
+
|
|
789
|
+
this._split(start);
|
|
790
|
+
this._split(end);
|
|
791
|
+
|
|
792
|
+
if (options === true) {
|
|
793
|
+
if (!warned.storeName) {
|
|
794
|
+
console.warn(
|
|
795
|
+
'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string',
|
|
796
|
+
);
|
|
797
|
+
warned.storeName = true;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
options = { storeName: true };
|
|
801
|
+
}
|
|
802
|
+
const storeName = options !== undefined ? options.storeName : false;
|
|
803
|
+
const overwrite = options !== undefined ? options.overwrite : false;
|
|
804
|
+
|
|
805
|
+
if (storeName) {
|
|
806
|
+
const original = this.original.slice(start, end);
|
|
807
|
+
Object.defineProperty(this.storedNames, original, {
|
|
808
|
+
writable: true,
|
|
809
|
+
value: true,
|
|
810
|
+
enumerable: true,
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
const first = this.byStart[start];
|
|
815
|
+
const last = this.byEnd[end];
|
|
816
|
+
|
|
817
|
+
if (first) {
|
|
818
|
+
let chunk = first;
|
|
819
|
+
while (chunk !== last) {
|
|
820
|
+
if (chunk.next !== this.byStart[chunk.end]) {
|
|
821
|
+
throw new Error('Cannot overwrite across a split point');
|
|
822
|
+
}
|
|
823
|
+
chunk = chunk.next;
|
|
824
|
+
chunk.edit('', false);
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
first.edit(content, storeName, !overwrite);
|
|
828
|
+
} else {
|
|
829
|
+
// must be inserting at the end
|
|
830
|
+
const newChunk = new Chunk(start, end, '').edit(content, storeName);
|
|
831
|
+
|
|
832
|
+
// TODO last chunk in the array may not be the last chunk, if it's moved...
|
|
833
|
+
last.next = newChunk;
|
|
834
|
+
newChunk.previous = last;
|
|
835
|
+
}
|
|
836
|
+
return this;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
prepend(content) {
|
|
840
|
+
if (typeof content !== 'string') throw new TypeError('outro content must be a string');
|
|
841
|
+
|
|
842
|
+
this.intro = content + this.intro;
|
|
843
|
+
return this;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
prependLeft(index, content) {
|
|
847
|
+
index = index + this.offset;
|
|
848
|
+
|
|
849
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
|
850
|
+
|
|
851
|
+
this._split(index);
|
|
852
|
+
|
|
853
|
+
const chunk = this.byEnd[index];
|
|
854
|
+
|
|
855
|
+
if (chunk) {
|
|
856
|
+
chunk.prependLeft(content);
|
|
857
|
+
} else {
|
|
858
|
+
this.intro = content + this.intro;
|
|
859
|
+
}
|
|
860
|
+
return this;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
prependRight(index, content) {
|
|
864
|
+
index = index + this.offset;
|
|
865
|
+
|
|
866
|
+
if (typeof content !== 'string') throw new TypeError('inserted content must be a string');
|
|
867
|
+
|
|
868
|
+
this._split(index);
|
|
869
|
+
|
|
870
|
+
const chunk = this.byStart[index];
|
|
871
|
+
|
|
872
|
+
if (chunk) {
|
|
873
|
+
chunk.prependRight(content);
|
|
874
|
+
} else {
|
|
875
|
+
this.outro = content + this.outro;
|
|
876
|
+
}
|
|
877
|
+
return this;
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
remove(start, end) {
|
|
881
|
+
start = start + this.offset;
|
|
882
|
+
end = end + this.offset;
|
|
883
|
+
|
|
884
|
+
if (this.original.length !== 0) {
|
|
885
|
+
while (start < 0) start += this.original.length;
|
|
886
|
+
while (end < 0) end += this.original.length;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
if (start === end) return this;
|
|
890
|
+
|
|
891
|
+
if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');
|
|
892
|
+
if (start > end) throw new Error('end must be greater than start');
|
|
893
|
+
|
|
894
|
+
this._split(start);
|
|
895
|
+
this._split(end);
|
|
896
|
+
|
|
897
|
+
let chunk = this.byStart[start];
|
|
898
|
+
|
|
899
|
+
while (chunk) {
|
|
900
|
+
chunk.intro = '';
|
|
901
|
+
chunk.outro = '';
|
|
902
|
+
chunk.edit('');
|
|
903
|
+
|
|
904
|
+
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
|
905
|
+
}
|
|
906
|
+
return this;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
reset(start, end) {
|
|
910
|
+
start = start + this.offset;
|
|
911
|
+
end = end + this.offset;
|
|
912
|
+
|
|
913
|
+
if (this.original.length !== 0) {
|
|
914
|
+
while (start < 0) start += this.original.length;
|
|
915
|
+
while (end < 0) end += this.original.length;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
if (start === end) return this;
|
|
919
|
+
|
|
920
|
+
if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds');
|
|
921
|
+
if (start > end) throw new Error('end must be greater than start');
|
|
922
|
+
|
|
923
|
+
this._split(start);
|
|
924
|
+
this._split(end);
|
|
925
|
+
|
|
926
|
+
let chunk = this.byStart[start];
|
|
927
|
+
|
|
928
|
+
while (chunk) {
|
|
929
|
+
chunk.reset();
|
|
930
|
+
|
|
931
|
+
chunk = end > chunk.end ? this.byStart[chunk.end] : null;
|
|
932
|
+
}
|
|
933
|
+
return this;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
lastChar() {
|
|
937
|
+
if (this.outro.length) return this.outro[this.outro.length - 1];
|
|
938
|
+
let chunk = this.lastChunk;
|
|
939
|
+
do {
|
|
940
|
+
if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1];
|
|
941
|
+
if (chunk.content.length) return chunk.content[chunk.content.length - 1];
|
|
942
|
+
if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1];
|
|
943
|
+
} while ((chunk = chunk.previous));
|
|
944
|
+
if (this.intro.length) return this.intro[this.intro.length - 1];
|
|
945
|
+
return '';
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
lastLine() {
|
|
949
|
+
let lineIndex = this.outro.lastIndexOf(n);
|
|
950
|
+
if (lineIndex !== -1) return this.outro.substr(lineIndex + 1);
|
|
951
|
+
let lineStr = this.outro;
|
|
952
|
+
let chunk = this.lastChunk;
|
|
953
|
+
do {
|
|
954
|
+
if (chunk.outro.length > 0) {
|
|
955
|
+
lineIndex = chunk.outro.lastIndexOf(n);
|
|
956
|
+
if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr;
|
|
957
|
+
lineStr = chunk.outro + lineStr;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
if (chunk.content.length > 0) {
|
|
961
|
+
lineIndex = chunk.content.lastIndexOf(n);
|
|
962
|
+
if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr;
|
|
963
|
+
lineStr = chunk.content + lineStr;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
if (chunk.intro.length > 0) {
|
|
967
|
+
lineIndex = chunk.intro.lastIndexOf(n);
|
|
968
|
+
if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr;
|
|
969
|
+
lineStr = chunk.intro + lineStr;
|
|
970
|
+
}
|
|
971
|
+
} while ((chunk = chunk.previous));
|
|
972
|
+
lineIndex = this.intro.lastIndexOf(n);
|
|
973
|
+
if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr;
|
|
974
|
+
return this.intro + lineStr;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
slice(start = 0, end = this.original.length - this.offset) {
|
|
978
|
+
start = start + this.offset;
|
|
979
|
+
end = end + this.offset;
|
|
980
|
+
|
|
981
|
+
if (this.original.length !== 0) {
|
|
982
|
+
while (start < 0) start += this.original.length;
|
|
983
|
+
while (end < 0) end += this.original.length;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
let result = '';
|
|
987
|
+
|
|
988
|
+
// find start chunk
|
|
989
|
+
let chunk = this.firstChunk;
|
|
990
|
+
while (chunk && (chunk.start > start || chunk.end <= start)) {
|
|
991
|
+
// found end chunk before start
|
|
992
|
+
if (chunk.start < end && chunk.end >= end) {
|
|
993
|
+
return result;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
chunk = chunk.next;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
if (chunk && chunk.edited && chunk.start !== start)
|
|
1000
|
+
throw new Error(`Cannot use replaced character ${start} as slice start anchor.`);
|
|
1001
|
+
|
|
1002
|
+
const startChunk = chunk;
|
|
1003
|
+
while (chunk) {
|
|
1004
|
+
if (chunk.intro && (startChunk !== chunk || chunk.start === start)) {
|
|
1005
|
+
result += chunk.intro;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
const containsEnd = chunk.start < end && chunk.end >= end;
|
|
1009
|
+
if (containsEnd && chunk.edited && chunk.end !== end)
|
|
1010
|
+
throw new Error(`Cannot use replaced character ${end} as slice end anchor.`);
|
|
1011
|
+
|
|
1012
|
+
const sliceStart = startChunk === chunk ? start - chunk.start : 0;
|
|
1013
|
+
const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length;
|
|
1014
|
+
|
|
1015
|
+
result += chunk.content.slice(sliceStart, sliceEnd);
|
|
1016
|
+
|
|
1017
|
+
if (chunk.outro && (!containsEnd || chunk.end === end)) {
|
|
1018
|
+
result += chunk.outro;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
if (containsEnd) {
|
|
1022
|
+
break;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
chunk = chunk.next;
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
return result;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// TODO deprecate this? not really very useful
|
|
1032
|
+
snip(start, end) {
|
|
1033
|
+
const clone = this.clone();
|
|
1034
|
+
clone.remove(0, start);
|
|
1035
|
+
clone.remove(end, clone.original.length);
|
|
1036
|
+
|
|
1037
|
+
return clone;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
_split(index) {
|
|
1041
|
+
if (this.byStart[index] || this.byEnd[index]) return;
|
|
1042
|
+
|
|
1043
|
+
let chunk = this.lastSearchedChunk;
|
|
1044
|
+
let previousChunk = chunk;
|
|
1045
|
+
const searchForward = index > chunk.end;
|
|
1046
|
+
|
|
1047
|
+
while (chunk) {
|
|
1048
|
+
if (chunk.contains(index)) return this._splitChunk(chunk, index);
|
|
1049
|
+
|
|
1050
|
+
chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
|
|
1051
|
+
|
|
1052
|
+
// Prevent infinite loop (e.g. via empty chunks, where start === end)
|
|
1053
|
+
if (chunk === previousChunk) return;
|
|
1054
|
+
|
|
1055
|
+
previousChunk = chunk;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
_splitChunk(chunk, index) {
|
|
1060
|
+
if (chunk.edited && chunk.content.length) {
|
|
1061
|
+
// zero-length edited chunks are a special case (overlapping replacements)
|
|
1062
|
+
const loc = getLocator(this.original)(index);
|
|
1063
|
+
throw new Error(
|
|
1064
|
+
`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`,
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
const newChunk = chunk.split(index);
|
|
1069
|
+
|
|
1070
|
+
this.byEnd[index] = chunk;
|
|
1071
|
+
this.byStart[index] = newChunk;
|
|
1072
|
+
this.byEnd[newChunk.end] = newChunk;
|
|
1073
|
+
|
|
1074
|
+
if (chunk === this.lastChunk) this.lastChunk = newChunk;
|
|
1075
|
+
|
|
1076
|
+
this.lastSearchedChunk = chunk;
|
|
1077
|
+
return true;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
toString() {
|
|
1081
|
+
let str = this.intro;
|
|
1082
|
+
|
|
1083
|
+
let chunk = this.firstChunk;
|
|
1084
|
+
while (chunk) {
|
|
1085
|
+
str += chunk.toString();
|
|
1086
|
+
chunk = chunk.next;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
return str + this.outro;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
isEmpty() {
|
|
1093
|
+
let chunk = this.firstChunk;
|
|
1094
|
+
do {
|
|
1095
|
+
if (
|
|
1096
|
+
(chunk.intro.length && chunk.intro.trim()) ||
|
|
1097
|
+
(chunk.content.length && chunk.content.trim()) ||
|
|
1098
|
+
(chunk.outro.length && chunk.outro.trim())
|
|
1099
|
+
)
|
|
1100
|
+
return false;
|
|
1101
|
+
} while ((chunk = chunk.next));
|
|
1102
|
+
return true;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
length() {
|
|
1106
|
+
let chunk = this.firstChunk;
|
|
1107
|
+
let length = 0;
|
|
1108
|
+
do {
|
|
1109
|
+
length += chunk.intro.length + chunk.content.length + chunk.outro.length;
|
|
1110
|
+
} while ((chunk = chunk.next));
|
|
1111
|
+
return length;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
trimLines() {
|
|
1115
|
+
return this.trim('[\\r\\n]');
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
trim(charType) {
|
|
1119
|
+
return this.trimStart(charType).trimEnd(charType);
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
trimEndAborted(charType) {
|
|
1123
|
+
const rx = new RegExp((charType || '\\s') + '+$');
|
|
1124
|
+
|
|
1125
|
+
this.outro = this.outro.replace(rx, '');
|
|
1126
|
+
if (this.outro.length) return true;
|
|
1127
|
+
|
|
1128
|
+
let chunk = this.lastChunk;
|
|
1129
|
+
|
|
1130
|
+
do {
|
|
1131
|
+
const end = chunk.end;
|
|
1132
|
+
const aborted = chunk.trimEnd(rx);
|
|
1133
|
+
|
|
1134
|
+
// if chunk was trimmed, we have a new lastChunk
|
|
1135
|
+
if (chunk.end !== end) {
|
|
1136
|
+
if (this.lastChunk === chunk) {
|
|
1137
|
+
this.lastChunk = chunk.next;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
this.byEnd[chunk.end] = chunk;
|
|
1141
|
+
this.byStart[chunk.next.start] = chunk.next;
|
|
1142
|
+
this.byEnd[chunk.next.end] = chunk.next;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
if (aborted) return true;
|
|
1146
|
+
chunk = chunk.previous;
|
|
1147
|
+
} while (chunk);
|
|
1148
|
+
|
|
1149
|
+
return false;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
trimEnd(charType) {
|
|
1153
|
+
this.trimEndAborted(charType);
|
|
1154
|
+
return this;
|
|
1155
|
+
}
|
|
1156
|
+
trimStartAborted(charType) {
|
|
1157
|
+
const rx = new RegExp('^' + (charType || '\\s') + '+');
|
|
1158
|
+
|
|
1159
|
+
this.intro = this.intro.replace(rx, '');
|
|
1160
|
+
if (this.intro.length) return true;
|
|
1161
|
+
|
|
1162
|
+
let chunk = this.firstChunk;
|
|
1163
|
+
|
|
1164
|
+
do {
|
|
1165
|
+
const end = chunk.end;
|
|
1166
|
+
const aborted = chunk.trimStart(rx);
|
|
1167
|
+
|
|
1168
|
+
if (chunk.end !== end) {
|
|
1169
|
+
// special case...
|
|
1170
|
+
if (chunk === this.lastChunk) this.lastChunk = chunk.next;
|
|
1171
|
+
|
|
1172
|
+
this.byEnd[chunk.end] = chunk;
|
|
1173
|
+
this.byStart[chunk.next.start] = chunk.next;
|
|
1174
|
+
this.byEnd[chunk.next.end] = chunk.next;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
if (aborted) return true;
|
|
1178
|
+
chunk = chunk.next;
|
|
1179
|
+
} while (chunk);
|
|
1180
|
+
|
|
1181
|
+
return false;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
trimStart(charType) {
|
|
1185
|
+
this.trimStartAborted(charType);
|
|
1186
|
+
return this;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
hasChanged() {
|
|
1190
|
+
return this.original !== this.toString();
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
_replaceRegexp(searchValue, replacement) {
|
|
1194
|
+
function getReplacement(match, str) {
|
|
1195
|
+
if (typeof replacement === 'string') {
|
|
1196
|
+
return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => {
|
|
1197
|
+
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter
|
|
1198
|
+
if (i === '$') return '$';
|
|
1199
|
+
if (i === '&') return match[0];
|
|
1200
|
+
const num = +i;
|
|
1201
|
+
if (num < match.length) return match[+i];
|
|
1202
|
+
return `$${i}`;
|
|
1203
|
+
});
|
|
1204
|
+
} else {
|
|
1205
|
+
return replacement(...match, match.index, str, match.groups);
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
function matchAll(re, str) {
|
|
1209
|
+
let match;
|
|
1210
|
+
const matches = [];
|
|
1211
|
+
while ((match = re.exec(str))) {
|
|
1212
|
+
matches.push(match);
|
|
1213
|
+
}
|
|
1214
|
+
return matches;
|
|
1215
|
+
}
|
|
1216
|
+
if (searchValue.global) {
|
|
1217
|
+
const matches = matchAll(searchValue, this.original);
|
|
1218
|
+
matches.forEach((match) => {
|
|
1219
|
+
if (match.index != null) {
|
|
1220
|
+
const replacement = getReplacement(match, this.original);
|
|
1221
|
+
if (replacement !== match[0]) {
|
|
1222
|
+
this.overwrite(match.index, match.index + match[0].length, replacement);
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
} else {
|
|
1227
|
+
const match = this.original.match(searchValue);
|
|
1228
|
+
if (match && match.index != null) {
|
|
1229
|
+
const replacement = getReplacement(match, this.original);
|
|
1230
|
+
if (replacement !== match[0]) {
|
|
1231
|
+
this.overwrite(match.index, match.index + match[0].length, replacement);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
return this;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
_replaceString(string, replacement) {
|
|
1239
|
+
const { original } = this;
|
|
1240
|
+
const index = original.indexOf(string);
|
|
1241
|
+
|
|
1242
|
+
if (index !== -1) {
|
|
1243
|
+
if (typeof replacement === 'function') {
|
|
1244
|
+
replacement = replacement(string, index, original);
|
|
1245
|
+
}
|
|
1246
|
+
if (string !== replacement) {
|
|
1247
|
+
this.overwrite(index, index + string.length, replacement);
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
return this;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
replace(searchValue, replacement) {
|
|
1255
|
+
if (typeof searchValue === 'string') {
|
|
1256
|
+
return this._replaceString(searchValue, replacement);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
return this._replaceRegexp(searchValue, replacement);
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
_replaceAllString(string, replacement) {
|
|
1263
|
+
const { original } = this;
|
|
1264
|
+
const stringLength = string.length;
|
|
1265
|
+
for (
|
|
1266
|
+
let index = original.indexOf(string);
|
|
1267
|
+
index !== -1;
|
|
1268
|
+
index = original.indexOf(string, index + stringLength)
|
|
1269
|
+
) {
|
|
1270
|
+
const previous = original.slice(index, index + stringLength);
|
|
1271
|
+
let _replacement = replacement;
|
|
1272
|
+
if (typeof replacement === 'function') {
|
|
1273
|
+
_replacement = replacement(previous, index, original);
|
|
1274
|
+
}
|
|
1275
|
+
if (previous !== _replacement) this.overwrite(index, index + stringLength, _replacement);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
return this;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
replaceAll(searchValue, replacement) {
|
|
1282
|
+
if (typeof searchValue === 'string') {
|
|
1283
|
+
return this._replaceAllString(searchValue, replacement);
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
if (!searchValue.global) {
|
|
1287
|
+
throw new TypeError(
|
|
1288
|
+
'MagicString.prototype.replaceAll called with a non-global RegExp argument',
|
|
1289
|
+
);
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
return this._replaceRegexp(searchValue, replacement);
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
const hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1297
|
+
|
|
1298
|
+
class Bundle {
|
|
1299
|
+
constructor(options = {}) {
|
|
1300
|
+
this.intro = options.intro || '';
|
|
1301
|
+
this.separator = options.separator !== undefined ? options.separator : '\n';
|
|
1302
|
+
this.sources = [];
|
|
1303
|
+
this.uniqueSources = [];
|
|
1304
|
+
this.uniqueSourceIndexByFilename = {};
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
addSource(source) {
|
|
1308
|
+
if (source instanceof MagicString) {
|
|
1309
|
+
return this.addSource({
|
|
1310
|
+
content: source,
|
|
1311
|
+
filename: source.filename,
|
|
1312
|
+
separator: this.separator,
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
if (!isObject(source) || !source.content) {
|
|
1317
|
+
throw new Error(
|
|
1318
|
+
'bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`',
|
|
1319
|
+
);
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
['filename', 'ignoreList', 'indentExclusionRanges', 'separator'].forEach((option) => {
|
|
1323
|
+
if (!hasOwnProp.call(source, option)) source[option] = source.content[option];
|
|
1324
|
+
});
|
|
1325
|
+
|
|
1326
|
+
if (source.separator === undefined) {
|
|
1327
|
+
// TODO there's a bunch of this sort of thing, needs cleaning up
|
|
1328
|
+
source.separator = this.separator;
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
if (source.filename) {
|
|
1332
|
+
if (!hasOwnProp.call(this.uniqueSourceIndexByFilename, source.filename)) {
|
|
1333
|
+
this.uniqueSourceIndexByFilename[source.filename] = this.uniqueSources.length;
|
|
1334
|
+
this.uniqueSources.push({ filename: source.filename, content: source.content.original });
|
|
1335
|
+
} else {
|
|
1336
|
+
const uniqueSource = this.uniqueSources[this.uniqueSourceIndexByFilename[source.filename]];
|
|
1337
|
+
if (source.content.original !== uniqueSource.content) {
|
|
1338
|
+
throw new Error(`Illegal source: same filename (${source.filename}), different contents`);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
this.sources.push(source);
|
|
1344
|
+
return this;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
append(str, options) {
|
|
1348
|
+
this.addSource({
|
|
1349
|
+
content: new MagicString(str),
|
|
1350
|
+
separator: (options && options.separator) || '',
|
|
1351
|
+
});
|
|
1352
|
+
|
|
1353
|
+
return this;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
clone() {
|
|
1357
|
+
const bundle = new Bundle({
|
|
1358
|
+
intro: this.intro,
|
|
1359
|
+
separator: this.separator,
|
|
1360
|
+
});
|
|
1361
|
+
|
|
1362
|
+
this.sources.forEach((source) => {
|
|
1363
|
+
bundle.addSource({
|
|
1364
|
+
filename: source.filename,
|
|
1365
|
+
content: source.content.clone(),
|
|
1366
|
+
separator: source.separator,
|
|
1367
|
+
});
|
|
1368
|
+
});
|
|
1369
|
+
|
|
1370
|
+
return bundle;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
generateDecodedMap(options = {}) {
|
|
1374
|
+
const names = [];
|
|
1375
|
+
let x_google_ignoreList = undefined;
|
|
1376
|
+
this.sources.forEach((source) => {
|
|
1377
|
+
Object.keys(source.content.storedNames).forEach((name) => {
|
|
1378
|
+
if (!~names.indexOf(name)) names.push(name);
|
|
1379
|
+
});
|
|
1380
|
+
});
|
|
1381
|
+
|
|
1382
|
+
const mappings = new Mappings(options.hires);
|
|
1383
|
+
|
|
1384
|
+
if (this.intro) {
|
|
1385
|
+
mappings.advance(this.intro);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
this.sources.forEach((source, i) => {
|
|
1389
|
+
if (i > 0) {
|
|
1390
|
+
mappings.advance(this.separator);
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
const sourceIndex = source.filename ? this.uniqueSourceIndexByFilename[source.filename] : -1;
|
|
1394
|
+
const magicString = source.content;
|
|
1395
|
+
const locate = getLocator(magicString.original);
|
|
1396
|
+
|
|
1397
|
+
if (magicString.intro) {
|
|
1398
|
+
mappings.advance(magicString.intro);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
magicString.firstChunk.eachNext((chunk) => {
|
|
1402
|
+
const loc = locate(chunk.start);
|
|
1403
|
+
|
|
1404
|
+
if (chunk.intro.length) mappings.advance(chunk.intro);
|
|
1405
|
+
|
|
1406
|
+
if (source.filename) {
|
|
1407
|
+
if (chunk.edited) {
|
|
1408
|
+
mappings.addEdit(
|
|
1409
|
+
sourceIndex,
|
|
1410
|
+
chunk.content,
|
|
1411
|
+
loc,
|
|
1412
|
+
chunk.storeName ? names.indexOf(chunk.original) : -1,
|
|
1413
|
+
);
|
|
1414
|
+
} else {
|
|
1415
|
+
mappings.addUneditedChunk(
|
|
1416
|
+
sourceIndex,
|
|
1417
|
+
chunk,
|
|
1418
|
+
magicString.original,
|
|
1419
|
+
loc,
|
|
1420
|
+
magicString.sourcemapLocations,
|
|
1421
|
+
);
|
|
1422
|
+
}
|
|
1423
|
+
} else {
|
|
1424
|
+
mappings.advance(chunk.content);
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
if (chunk.outro.length) mappings.advance(chunk.outro);
|
|
1428
|
+
});
|
|
1429
|
+
|
|
1430
|
+
if (magicString.outro) {
|
|
1431
|
+
mappings.advance(magicString.outro);
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
if (source.ignoreList && sourceIndex !== -1) {
|
|
1435
|
+
if (x_google_ignoreList === undefined) {
|
|
1436
|
+
x_google_ignoreList = [];
|
|
1437
|
+
}
|
|
1438
|
+
x_google_ignoreList.push(sourceIndex);
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1441
|
+
|
|
1442
|
+
return {
|
|
1443
|
+
file: options.file ? options.file.split(/[/\\]/).pop() : undefined,
|
|
1444
|
+
sources: this.uniqueSources.map((source) => {
|
|
1445
|
+
return options.file ? getRelativePath(options.file, source.filename) : source.filename;
|
|
1446
|
+
}),
|
|
1447
|
+
sourcesContent: this.uniqueSources.map((source) => {
|
|
1448
|
+
return options.includeContent ? source.content : null;
|
|
1449
|
+
}),
|
|
1450
|
+
names,
|
|
1451
|
+
mappings: mappings.raw,
|
|
1452
|
+
x_google_ignoreList,
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
generateMap(options) {
|
|
1457
|
+
return new SourceMap(this.generateDecodedMap(options));
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
getIndentString() {
|
|
1461
|
+
const indentStringCounts = {};
|
|
1462
|
+
|
|
1463
|
+
this.sources.forEach((source) => {
|
|
1464
|
+
const indentStr = source.content._getRawIndentString();
|
|
1465
|
+
|
|
1466
|
+
if (indentStr === null) return;
|
|
1467
|
+
|
|
1468
|
+
if (!indentStringCounts[indentStr]) indentStringCounts[indentStr] = 0;
|
|
1469
|
+
indentStringCounts[indentStr] += 1;
|
|
1470
|
+
});
|
|
1471
|
+
|
|
1472
|
+
return (
|
|
1473
|
+
Object.keys(indentStringCounts).sort((a, b) => {
|
|
1474
|
+
return indentStringCounts[a] - indentStringCounts[b];
|
|
1475
|
+
})[0] || '\t'
|
|
1476
|
+
);
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
indent(indentStr) {
|
|
1480
|
+
if (!arguments.length) {
|
|
1481
|
+
indentStr = this.getIndentString();
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
if (indentStr === '') return this; // noop
|
|
1485
|
+
|
|
1486
|
+
let trailingNewline = !this.intro || this.intro.slice(-1) === '\n';
|
|
1487
|
+
|
|
1488
|
+
this.sources.forEach((source, i) => {
|
|
1489
|
+
const separator = source.separator !== undefined ? source.separator : this.separator;
|
|
1490
|
+
const indentStart = trailingNewline || (i > 0 && /\r?\n$/.test(separator));
|
|
1491
|
+
|
|
1492
|
+
source.content.indent(indentStr, {
|
|
1493
|
+
exclude: source.indentExclusionRanges,
|
|
1494
|
+
indentStart, //: trailingNewline || /\r?\n$/.test( separator ) //true///\r?\n/.test( separator )
|
|
1495
|
+
});
|
|
1496
|
+
|
|
1497
|
+
trailingNewline = source.content.lastChar() === '\n';
|
|
1498
|
+
});
|
|
1499
|
+
|
|
1500
|
+
if (this.intro) {
|
|
1501
|
+
this.intro =
|
|
1502
|
+
indentStr +
|
|
1503
|
+
this.intro.replace(/^[^\n]/gm, (match, index) => {
|
|
1504
|
+
return index > 0 ? indentStr + match : match;
|
|
1505
|
+
});
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
return this;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
prepend(str) {
|
|
1512
|
+
this.intro = str + this.intro;
|
|
1513
|
+
return this;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
toString() {
|
|
1517
|
+
const body = this.sources
|
|
1518
|
+
.map((source, i) => {
|
|
1519
|
+
const separator = source.separator !== undefined ? source.separator : this.separator;
|
|
1520
|
+
const str = (i > 0 ? separator : '') + source.content.toString();
|
|
1521
|
+
|
|
1522
|
+
return str;
|
|
1523
|
+
})
|
|
1524
|
+
.join('');
|
|
1525
|
+
|
|
1526
|
+
return this.intro + body;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
isEmpty() {
|
|
1530
|
+
if (this.intro.length && this.intro.trim()) return false;
|
|
1531
|
+
if (this.sources.some((source) => !source.content.isEmpty())) return false;
|
|
1532
|
+
return true;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
length() {
|
|
1536
|
+
return this.sources.reduce(
|
|
1537
|
+
(length, source) => length + source.content.length(),
|
|
1538
|
+
this.intro.length,
|
|
1539
|
+
);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
trimLines() {
|
|
1543
|
+
return this.trim('[\\r\\n]');
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
trim(charType) {
|
|
1547
|
+
return this.trimStart(charType).trimEnd(charType);
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
trimStart(charType) {
|
|
1551
|
+
const rx = new RegExp('^' + (charType || '\\s') + '+');
|
|
1552
|
+
this.intro = this.intro.replace(rx, '');
|
|
1553
|
+
|
|
1554
|
+
if (!this.intro) {
|
|
1555
|
+
let source;
|
|
1556
|
+
let i = 0;
|
|
1557
|
+
|
|
1558
|
+
do {
|
|
1559
|
+
source = this.sources[i++];
|
|
1560
|
+
if (!source) {
|
|
1561
|
+
break;
|
|
1562
|
+
}
|
|
1563
|
+
} while (!source.content.trimStartAborted(charType));
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
return this;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
trimEnd(charType) {
|
|
1570
|
+
const rx = new RegExp((charType || '\\s') + '+$');
|
|
1571
|
+
|
|
1572
|
+
let source;
|
|
1573
|
+
let i = this.sources.length - 1;
|
|
1574
|
+
|
|
1575
|
+
do {
|
|
1576
|
+
source = this.sources[i--];
|
|
1577
|
+
if (!source) {
|
|
1578
|
+
this.intro = this.intro.replace(rx, '');
|
|
1579
|
+
break;
|
|
1580
|
+
}
|
|
1581
|
+
} while (!source.content.trimEndAborted(charType));
|
|
1582
|
+
|
|
1583
|
+
return this;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
export { Bundle, SourceMap, MagicString as default };
|
|
1588
|
+
//# sourceMappingURL=magic-string.es.mjs.map
|